cross_origen 1.2.1 → 1.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
  SHA256:
3
- metadata.gz: 3aa045609ddda2f3de9f4fe4851f7ab31201e2b1bfcf2021caffabe3b0f0a3bd
4
- data.tar.gz: a34da76233dad5ad6110c6632a0061b9b5092f380922effc4ad537c998adf6cf
3
+ metadata.gz: 22b8f1762b75a8679be92a19f549aa4cf0da1849bbd5dfbc5713163e32534b27
4
+ data.tar.gz: e618175099f2025422bee4cc92c5286ea5dae03517f8d0c72230ddaf496ebabb
5
5
  SHA512:
6
- metadata.gz: ac3d2456ce9fa735d504a76640a5cd6b68901eb7d1c669bef46057d3f404c06186f3da57f2c47ad0dc2993180dcf892c874a12db6d7f0bc2a28a5bb2d1707035
7
- data.tar.gz: 58941b7e05d5c9e82eaccf8057d823e6ddb5380c24aaf2e97cbaa2788a935f29b52d215b2035941b24135ed70768094bc9d169874605ac391d6ba83574181c15
6
+ metadata.gz: 323c13ef959afbd8334bd39534f3ca19d1dd573ef43384fb8f848e0633a4e136269a1f32f10b1727f5668c5a3590c064c74f7cc5790e3ae52acaafe317dbb63c
7
+ data.tar.gz: 8d957c81ee5f9ddadc10b297576755b66f923e177887f24c3d76fc53f6215cd572e2a30e3bd2b2a3f2c606562518b61f995b6dec5fc7d6e46e5481af26684d47
data/config/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module CrossOrigen
2
2
  MAJOR = 1
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}" : '')
@@ -168,6 +168,7 @@ xsi:schemaLocation="$REGMEM_HOME/builder/ipxact/schema/ipxact
168
168
  # :bus_interface = only 'AMBA3' supported at this time
169
169
  # :mmap_name = Optionally set the memoryMap name to something other than the module name
170
170
  # :mmap_ref = memoryMapRef name, ex: 'UserMap'
171
+ # :addr_block_name = addressBlock -> Name, ex: 'ATX'
171
172
  def owner_to_xml(options = {})
172
173
  require 'nokogiri'
173
174
 
@@ -257,7 +258,11 @@ xsi:schemaLocation="$REGMEM_HOME/builder/ipxact/schema/ipxact
257
258
  spirit.addressBlock do
258
259
  # When registers reside at the top level, do not assign an address block name
259
260
  if sub_block == owner
260
- spirit.name nil
261
+ if options[:addr_block_name].nil?
262
+ spirit.name nil
263
+ else
264
+ spirit.name options[:addr_block_name]
265
+ end
261
266
  else
262
267
  spirit.name address_block_name(domain_name, sub_block)
263
268
  end
@@ -324,9 +329,8 @@ xsi:schemaLocation="$REGMEM_HOME/builder/ipxact/schema/ipxact
324
329
  # greatly between devices, allow the user to provide an abs_path value
325
330
  # and define "full_reg_path" to assist.
326
331
  #
327
- # When registers reside at the top level of the memory map, assume "top"
328
- # for the register path name. (Need to improve this process in the future.)
329
- if reg.owner.top_level? == true
332
+ # When registers reside at the top level without a specified path, use 'top'.
333
+ if reg.owner.path.nil? || reg.owner.path.empty?
330
334
  regpath = 'top'
331
335
  else
332
336
  regpath = reg.owner.path
@@ -406,7 +410,11 @@ xsi:schemaLocation="$REGMEM_HOME/builder/ipxact/schema/ipxact
406
410
  end
407
411
  # Assume byte addressing if not specified
408
412
  if owner.methods.include?(:lau) == false
409
- spirit.addressUnitBits 8
413
+ if methods.include?(:lau) == true
414
+ spirit.addressUnitBits lau
415
+ else
416
+ spirit.addressUnitBits 8
417
+ end
410
418
  else
411
419
  spirit.addressUnitBits owner.lau
412
420
  end
@@ -423,7 +431,6 @@ xsi:schemaLocation="$REGMEM_HOME/builder/ipxact/schema/ipxact
423
431
  #
424
432
  builder.to_xml(save_with: Nokogiri::XML::Node::SaveOptions::NO_EMPTY_TAGS |
425
433
  Nokogiri::XML::Node::SaveOptions::FORMAT)
426
- # builder.to_xml
427
434
  end
428
435
 
429
436
  private
@@ -70,6 +70,10 @@ module CrossOrigenDev
70
70
  # 0 | Clock is the externally supplied bus clock bus_clk
71
71
  # 1 | Clock is the internal oscillator from the hardblock
72
72
  bit 15, :osch, reset: 1, access: :rw
73
+ # **Divider Value**
74
+ #
75
+ # Used to set clock divider value and test multi-bit import in CrossOrigen
76
+ bits 3..0, :div
73
77
  end
74
78
 
75
79
  # **Access Type Test Register**
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cross_origen
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen McGinty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-16 00:00:00.000000000 Z
11
+ date: 2019-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: origen