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 +4 -4
- data/config/version.rb +1 -1
- data/lib/origen_std_lib.rb +15 -13
- data/lib/origen_std_lib/v93k.rb +1 -0
- data/lib/origen_std_lib_dev/interface.rb +1 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7491879a1a9488386b692822015822e313e049d
|
4
|
+
data.tar.gz: 1dfad1eadd3e38a4a08273e658768052e712ee32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a119bb555d36bfbbbf4e5c28559a0428238cdf68cbafb607c08b3412d16ef17f582d90ad6d3994dd57e48b176d460ac4405ba9730fb786a5497621a4e3ec2cf1
|
7
|
+
data.tar.gz: 45eeff8d6cbefafaf0ff68598cae879e40c0e425e98731c326278d911752fdd81c0f7db0b89258c3652c0bdc1d175a7914138e8c1baec1711ce4e15678886ddd
|
data/config/version.rb
CHANGED
data/lib/origen_std_lib.rb
CHANGED
@@ -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
|
-
|
10
|
-
|
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
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
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
|
data/lib/origen_std_lib/v93k.rb
CHANGED
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.
|
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-
|
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.
|
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.
|
26
|
+
version: 0.7.31
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: origen_testers
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|