origen_verilog 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/config/version.rb +1 -1
- data/lib/origen_verilog/verilog/node.rb +6 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c7a81cc003052c9650effbc42a5ddb3a096399b
|
4
|
+
data.tar.gz: 584f7d83ee912aa617705c30e5beb92789646c6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecd84377d882d00eb80e8e4699f84fb9ec55d9fe858c2c0357ae8a13fa8cf26ac8594cfb84b378d2321c3a759f1bb8d2b35110f2bc5229ba9635f117e6d528d0
|
7
|
+
data.tar.gz: 4c442636d46e2dffd3371ab0d75189936b52fcf2cde00bc323ee20e03ad4492f702383054bcaf00031d8ee78bbecc2e027572a75ecf9526b362a4f81d3a52942
|
data/config/version.rb
CHANGED
@@ -37,11 +37,16 @@ module OrigenVerilog
|
|
37
37
|
Evaluator.new.run(self)
|
38
38
|
end
|
39
39
|
|
40
|
+
# Converts a module node to an Origen top-level model.
|
41
|
+
#
|
42
|
+
# This will re-load the Origen target with the resultant model instantiated
|
43
|
+
# as the global dut object.
|
40
44
|
def to_top_level
|
41
45
|
unless type == :module_declaration
|
42
46
|
fail 'Currently only modules support the to_model method'
|
43
47
|
end
|
44
|
-
TopLevel.new(ast: evaluate)
|
48
|
+
Origen.target.temporary = -> { TopLevel.new(ast: evaluate) }
|
49
|
+
Origen.load_target
|
45
50
|
end
|
46
51
|
end
|
47
52
|
end
|