origen_verilog 0.2.1 → 0.2.2

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: 0207e203009d5cf40464956c13a925c766664943
4
- data.tar.gz: ae778926da1f0107a18e75035f692ecd4a473122
3
+ metadata.gz: 3c7a81cc003052c9650effbc42a5ddb3a096399b
4
+ data.tar.gz: 584f7d83ee912aa617705c30e5beb92789646c6f
5
5
  SHA512:
6
- metadata.gz: d54a3168ae0487c033bf5512e2c3e6238caa324595e89c062dca8a10843911ba76fa4e2a861fff3c1227a0792d7a2523e0ab7863e4b85bbea2297ffc7044b6fb
7
- data.tar.gz: 5db1b07f5e7ee55ccc5c7555af875e754d33d04e19ace6461a090c5c0ac0db9d452118f85831af22c9832ee6e79f547700aaaac67fd2d72f2746ad6a3773f770
6
+ metadata.gz: ecd84377d882d00eb80e8e4699f84fb9ec55d9fe858c2c0357ae8a13fa8cf26ac8594cfb84b378d2321c3a759f1bb8d2b35110f2bc5229ba9635f117e6d528d0
7
+ data.tar.gz: 4c442636d46e2dffd3371ab0d75189936b52fcf2cde00bc323ee20e03ad4492f702383054bcaf00031d8ee78bbecc2e027572a75ecf9526b362a4f81d3a52942
data/config/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module OrigenVerilog
2
2
  MAJOR = 0
3
3
  MINOR = 2
4
- BUGFIX = 1
4
+ BUGFIX = 2
5
5
  DEV = nil
6
6
 
7
7
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: origen_verilog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen McGinty