origen 0.41.0 → 0.41.1

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
  SHA256:
3
- metadata.gz: 7b5ba8eda5e72800d451d575b48242c7483bc07260b41b2a6325e87296c512ac
4
- data.tar.gz: 873f0bbcb08ccd34c50b549f30d9932c800cc5b432584e618be5589673f7ad0e
3
+ metadata.gz: a40d2b6086ccca2701117312a47241298c9349e5edf4836264d6e76ff69a3860
4
+ data.tar.gz: 485bf7d58c55cb450aa1bd645b94a75319175c42a24063e987cba93f5996dedf
5
5
  SHA512:
6
- metadata.gz: 1cea1d1879bacccf077275bf1c04aba477d39fba1188b2806166baedbf5436e1a0bda85212c4572838b1a4dae22f92bbf7199a91a3c36056a867bf67bc46f0c0
7
- data.tar.gz: 1fba58ea8bd16b85c81b154fc4ede78257b355327cf540b802bfd2caf3fd11c98d5f40c6142b3ce3a205b57889c1fb05561b020f0d4e3bdac0b38fd25e6b6876
6
+ metadata.gz: f81f104099fbea282402b3574157a5b70d29c85b0087c29df76ae8a2c4d617e5da76b31c0b890d09b0aa9b857b2ec0aea8fe40293a051884c59f892cdd671d2c
7
+ data.tar.gz: c7e34c972a74f97b3e5a127524c54e394e526399958118bb964a78d5d79acc47892e6d4602dbb3cdb90a04c18cd0c45be33fd6b362340a4f4131e4990d9723df
@@ -38,7 +38,8 @@ class OrigenCoreApplication < Origen::Application
38
38
 
39
39
  #config.lsf.project = "origen core"
40
40
 
41
- config.web_directory = "git@github.com:Origen-SDK/Origen-SDK.github.io.git/origen"
41
+ config.web_directory = "https://github.com/Origen-SDK/Origen-SDK.github.io.git/origen"
42
+ #config.web_directory = "git@github.com:Origen-SDK/Origen-SDK.github.io.git/origen"
42
43
  config.web_domain = "http://origen-sdk.org/origen"
43
44
 
44
45
  config.pattern_prefix = "nvm"
data/config/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Origen
2
2
  MAJOR = 0
3
3
  MINOR = 41
4
- BUGFIX = 0
4
+ BUGFIX = 1
5
5
  DEV = nil
6
6
 
7
7
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
@@ -234,7 +234,7 @@ module Origen
234
234
  elsif value.is_a?(String)
235
235
  line << ", #{key}: '#{value}'"
236
236
  else
237
- line << ", #{key}: #{value}"
237
+ line << ", #{key}: #{value}" unless value.nil?
238
238
  end
239
239
  end
240
240
  block.export(id, options.merge(file_path: file_path, dir_path: dir_path))
@@ -247,7 +247,7 @@ module Origen
247
247
  unless reg.description.empty?
248
248
  reg.description.each { |l| lines << indent + "# #{l}" }
249
249
  end
250
- lines << indent + "model.add_reg :#{id}, #{reg.offset.to_hex}, size: #{reg.size} #{reg.bit_order == :msb0 ? ', bit_order: :msb0' : ''} do |reg|"
250
+ lines << indent + "model.add_reg :#{id}, #{reg.offset.to_hex}, size: #{reg.size} #{reg.bit_order == :msb0 ? ', bit_order: :msb0' : ''}#{build_reg_meta(reg)} do |reg|"
251
251
  indent = ' ' * ((options[:indent] || 0) + 2)
252
252
  reg.named_bits.each do |name, bits|
253
253
  unless bits.description.empty?
@@ -277,6 +277,20 @@ module Origen
277
277
  lines << indent + 'end'
278
278
  lines.join("\n")
279
279
  end
280
+
281
+ def build_reg_meta(reg)
282
+ ret_str = ''
283
+ reg.meta.each do |key, value|
284
+ if value.is_a?(Symbol)
285
+ ret_str += ", #{key}: :#{value}"
286
+ elsif value.is_a?(String)
287
+ ret_str += ", #{key}: '#{value}'"
288
+ else
289
+ ret_str += ", #{key}: #{value}" unless value.nil?
290
+ end
291
+ end
292
+ ret_str
293
+ end
280
294
  end
281
295
  end
282
296
  end
@@ -22,7 +22,7 @@ module Origen
22
22
  # ** A MSB0 Test Case **
23
23
  # Blah-ba-bi-blah
24
24
  # just following the comment pattern above
25
- model.add_reg :msb0_test, 0x28, size: 16 , bit_order: :msb0 do |reg|
25
+ model.add_reg :msb0_test, 0x28, size: 16 , bit_order: :msb0, some_attr: true, another_attr: :testing, fourth_attr: 'string_attr' do |reg|
26
26
  reg.bit 8, :ale
27
27
  reg.bit 9, :xsfg
28
28
  reg.bit 10, :yml
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: origen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.41.0
4
+ version: 0.41.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen McGinty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-13 00:00:00.000000000 Z
11
+ date: 2018-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport