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 +4 -4
- data/config/version.rb +1 -1
- data/lib/cross_origen/ip_xact.rb +13 -6
- data/lib/cross_origen_dev/dut.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22b8f1762b75a8679be92a19f549aa4cf0da1849bbd5dfbc5713163e32534b27
|
4
|
+
data.tar.gz: e618175099f2025422bee4cc92c5286ea5dae03517f8d0c72230ddaf496ebabb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 323c13ef959afbd8334bd39534f3ca19d1dd573ef43384fb8f848e0633a4e136269a1f32f10b1727f5668c5a3590c064c74f7cc5790e3ae52acaafe317dbb63c
|
7
|
+
data.tar.gz: 8d957c81ee5f9ddadc10b297576755b66f923e177887f24c3d76fc53f6215cd572e2a30e3bd2b2a3f2c606562518b61f995b6dec5fc7d6e46e5481af26684d47
|
data/config/version.rb
CHANGED
data/lib/cross_origen/ip_xact.rb
CHANGED
@@ -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
|
-
|
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
|
328
|
-
|
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
|
-
|
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
|
data/lib/cross_origen_dev/dut.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2019-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: origen
|