origen_std_lib 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 23e07c1053dbf863471b6358d7695c9d67a298ec
4
- data.tar.gz: 85629fd2efc77a3e5f320d01efc7b3cca92016e1
3
+ metadata.gz: e7491879a1a9488386b692822015822e313e049d
4
+ data.tar.gz: 1dfad1eadd3e38a4a08273e658768052e712ee32
5
5
  SHA512:
6
- metadata.gz: 5ff4fabc366485fd8123219b502c5d31257f9f150c126b19946a2c5df938a51132709d09d8fc53cf5821e1290ef88d70a240e8cbbd37029e4cefeb3db4a3e4a5
7
- data.tar.gz: ba7a297071ee31fce54aeebfbd0a62805a62588c2c0df5834eead7595bed7047c9bea5aab7afaaf508dfcf0bdc24c3fb83844356ae88e3731ea7e5bd8becc44a
6
+ metadata.gz: a119bb555d36bfbbbf4e5c28559a0428238cdf68cbafb607c08b3412d16ef17f582d90ad6d3994dd57e48b176d460ac4405ba9730fb786a5497621a4e3ec2cf1
7
+ data.tar.gz: 45eeff8d6cbefafaf0ff68598cae879e40c0e425e98731c326278d911752fdd81c0f7db0b89258c3652c0bdc1d175a7914138e8c1baec1711ce4e15678886ddd
data/config/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module OrigenStdLib
2
2
  MAJOR = 0
3
- MINOR = 3
3
+ MINOR = 4
4
4
  BUGFIX = 0
5
5
  DEV = nil
6
6
 
@@ -5,22 +5,24 @@ module OrigenStdLib
5
5
  # THIS FILE SHOULD ONLY BE USED TO LOAD RUNTIME DEPENDENCIES
6
6
  # If this plugin has any development dependencies (e.g. dummy DUT or other models that are only used
7
7
  # for testing), then these should be loaded from config/boot.rb
8
+ require 'origen_std_lib/v93k'
8
9
 
9
- # Example of how to explicitly require a file
10
- # require "origen_std_lib/my_file"
11
-
12
- # Load all files in the lib/origen_std_lib directory.
13
- # Note that there is no problem from requiring a file twice (Ruby will ignore
14
- # the second require), so if you have a file that must be required first, then
15
- # explicitly require it up above and then let this take care of the rest.
16
- Dir.glob("#{File.dirname(__FILE__)}/origen_std_lib/**/*.rb").sort.each do |file|
17
- require file
10
+ def includes_origen_std_lib?
11
+ true
18
12
  end
19
13
 
20
- def initialize(*args)
21
- super
22
- if tester.v93k?
23
- OrigenStdLib.add_v93k_std_lib(self)
14
+ # Injects the library into the test program interface at the start of
15
+ # the flow
16
+ class PersistentCallbackHandlers
17
+ include Origen::PersistentCallbacks
18
+
19
+ def on_flow_start(options)
20
+ if Origen.interface.respond_to?(:includes_origen_std_lib?) && tester.v93k?
21
+ OrigenStdLib.add_v93k_std_lib(Origen.interface)
22
+ end
24
23
  end
25
24
  end
25
+ # Instantiate an instance of this class immediately when this file is loaded, this object will
26
+ # then listen for the remainder of the Origen thread
27
+ PersistentCallbackHandlers.new
26
28
  end
@@ -11,6 +11,7 @@ module OrigenStdLib
11
11
 
12
12
  apply_shutdown: [:integer, 1],
13
13
  shutdown_pattern: [:string, nil],
14
+ check_shutdown: [:integer, 1],
14
15
  measure: [:string, 'VOLT', %w(VOLT CURR v i voltage current)],
15
16
  settling_time: [:double, 0],
16
17
  pin: [:string, nil],
@@ -14,6 +14,7 @@ module OrigenStdLibDev
14
14
  i = test_suites.add(name)
15
15
  tm = test_methods.origen.dc_measurement
16
16
  tm.apply_shutdown = 1
17
+ tm.check_shutdown = 1
17
18
  tm.shutdown_pattern = 'some_pattern'
18
19
  tm.measure = 'CURR'
19
20
  tm.settling_time = 100
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: origen_std_lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen McGinty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-14 00:00:00.000000000 Z
11
+ date: 2016-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: origen
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.7.29
19
+ version: 0.7.31
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.7.29
26
+ version: 0.7.31
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: origen_testers
29
29
  requirement: !ruby/object:Gem::Requirement