origen_jtag 0.16.0 → 0.17.0
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/origen_jtag/driver.rb +4 -3
- data/pattern/jtag_workout.rb +13 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc7646634845207bbbc1605bc114acbcd95ee976
|
4
|
+
data.tar.gz: 1aee4f18b9d1e40acee402ee56262819a79b600d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bc19f67dad01804c92e3c4125e313d718c56f2b6187aa61d102cadf90692c19b3b6b5edfcf80c6d43a9c23052e16288f396419b5618773542552518140c115c
|
7
|
+
data.tar.gz: 4f365c682bac5996de6d9db62b1c53b102891773a8ec40bdfac3c50490dff20894d5ef0495bf02f28360b54d2307ef2507b06688171f0e31e7389219292d2c00
|
data/config/version.rb
CHANGED
data/lib/origen_jtag/driver.rb
CHANGED
@@ -525,6 +525,7 @@ module OrigenJTAG
|
|
525
525
|
if reg_or_val.respond_to?(:data)
|
526
526
|
if options[:read]
|
527
527
|
tdo = reg_or_val.dup
|
528
|
+
tdo.read(options) unless options[:mask].nil?
|
528
529
|
else
|
529
530
|
tdo = Reg.dummy(size) unless options[:shift_out_data].is_a?(Origen::Registers::Reg)
|
530
531
|
end
|
@@ -534,7 +535,7 @@ module OrigenJTAG
|
|
534
535
|
tdo = options[:shift_out_data]
|
535
536
|
else
|
536
537
|
tdo.write(options[:shift_out_data])
|
537
|
-
tdo.read
|
538
|
+
tdo.read(options)
|
538
539
|
end
|
539
540
|
else
|
540
541
|
tdo.write(0)
|
@@ -544,14 +545,14 @@ module OrigenJTAG
|
|
544
545
|
tdo = Reg.dummy(size)
|
545
546
|
if options[:read]
|
546
547
|
tdo.write(reg_or_val)
|
547
|
-
tdo.read
|
548
|
+
tdo.read(options)
|
548
549
|
else
|
549
550
|
if options[:shift_out_data]
|
550
551
|
if options[:shift_out_data].is_a?(Origen::Registers::Reg)
|
551
552
|
tdo = options[:shift_out_data]
|
552
553
|
else
|
553
554
|
tdo.write(options[:shift_out_data])
|
554
|
-
tdo.read
|
555
|
+
tdo.read(options)
|
555
556
|
end
|
556
557
|
else
|
557
558
|
tdo.write(0)
|
data/pattern/jtag_workout.rb
CHANGED
@@ -204,4 +204,17 @@ Pattern.create(options = { name: pat_name }) do
|
|
204
204
|
end
|
205
205
|
cc 'TDO should be H'
|
206
206
|
jtag.read_dr 0xFFFF, size: 16, msg: 'Read value out of DR'
|
207
|
+
|
208
|
+
test 'Mask option for read_dr works'
|
209
|
+
cc 'TDO should be H'
|
210
|
+
jtag.read_dr 0xFFFF, size: 16, mask: 0x5555, msg: 'Read value out of DR'
|
211
|
+
|
212
|
+
test 'Write value into DR, with compare on TDO'
|
213
|
+
jtag.write_dr 0x5555, size: 16, shift_out_data: 0xAAAA, mask: 0x00FF, msg: 'Write value into DR'
|
214
|
+
|
215
|
+
test 'Shifting an explicit value out of TDO with mask'
|
216
|
+
jtag.shift 0x1234, size: 16, read: true, mask: 0xFF00
|
217
|
+
|
218
|
+
test 'Shifting an explicit value into TDI (and out of TDO)'
|
219
|
+
jtag.shift 0x1234, size: 16, cycle_last: true, shift_out_data: 0xAAAA, mask: 0x0F0F
|
207
220
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: origen_jtag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen McGinty
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: origen
|