origen_jtag 0.14.0 → 0.15.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 +12 -0
- data/pattern/jtag_workout.rb +8 -1
- 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: 9dbecdacc92743469c85938ba80bdb6314e4f366
|
4
|
+
data.tar.gz: d36ea9459ef965f61e5d1ca063067a3c44cb9110
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba9368d6fcf22c79128e56ff390825e0d73b89d716c81e2c3a66a1be1e4073dc085b37cfad492d49d82b9f4e51c493a970b16b6568044f4fe101b6ae07d8d60c
|
7
|
+
data.tar.gz: ef625c031b70f9651b2e514d431162251879afa6fab7273d6f5ee654c220dce403d47a6c0e925a5c21bfa69741445da4cafd4ebcb838355eadb8ba01230a0456
|
data/config/version.rb
CHANGED
data/lib/origen_jtag/driver.rb
CHANGED
@@ -198,6 +198,7 @@ module OrigenJTAG
|
|
198
198
|
owner.pin(:tdo).dont_care
|
199
199
|
else
|
200
200
|
@deferred_compare = true
|
201
|
+
@deferred_store = true if store_tdo_this_tclk
|
201
202
|
end
|
202
203
|
end
|
203
204
|
end
|
@@ -291,7 +292,18 @@ module OrigenJTAG
|
|
291
292
|
owner.pin(:tdo).dont_care
|
292
293
|
end
|
293
294
|
|
295
|
+
if @deferred_store
|
296
|
+
@deferred_store = nil
|
297
|
+
store_tdo_this_tclk = true
|
298
|
+
else
|
299
|
+
store_tdo_this_tclk = false
|
300
|
+
end
|
301
|
+
@next_data_vector_to_be_stored = false
|
302
|
+
|
294
303
|
tclk_cycle do
|
304
|
+
if store_tdo_this_tclk && @next_data_vector_to_be_stored
|
305
|
+
Origen.tester.store_next_cycle(owner.pin(:tdo))
|
306
|
+
end
|
295
307
|
owner.pin(:tms).drive!(val)
|
296
308
|
end
|
297
309
|
end
|
data/pattern/jtag_workout.rb
CHANGED
@@ -164,12 +164,19 @@ Pattern.create(options = { name: pat_name }) do
|
|
164
164
|
jtag.write_dr 0xFFFF, size: 16, shift_out_data: 0xAAAA, msg: 'Write value into DR'
|
165
165
|
|
166
166
|
test 'Write register into DR with full-width overlay'
|
167
|
-
r = $dut.reg(:test32)
|
167
|
+
r = $dut.reg(:test32)
|
168
|
+
r.overlay('write_overlay')
|
168
169
|
jtag.write_dr r
|
170
|
+
r.overlay(nil)
|
169
171
|
|
170
172
|
test 'Read value out of DR'
|
171
173
|
jtag.read_dr 0xFFFF, size: 16, msg: 'Read value out of DR'
|
172
174
|
|
175
|
+
test 'Store value out of DR'
|
176
|
+
r.store
|
177
|
+
jtag.read_dr r
|
178
|
+
|
179
|
+
|
173
180
|
test 'Read value out of DR, with specified shift in data into TDI'
|
174
181
|
jtag.read_dr 0xFFFF, size: 16, shift_in_data: 0x5555, msg: 'Read value out of DR'
|
175
182
|
|
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.15.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-
|
11
|
+
date: 2017-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: origen
|