origen_jtag 0.22.2 → 0.22.3
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 +1 -1
- metadata +2 -4
- data/pattern/full_reg_subr_overlay.rb +0 -26
- data/pattern/overlay_subr.rb +0 -56
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e408b1d8688221c536224742008b1e8816f175f7204a042f6227cfc92a3c938
|
4
|
+
data.tar.gz: 8038f326e6d212978e7f21404319b1178c89d3ee12a01fca74f5abbaa0b9536e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db3581cd8d7d7cababf02df48b7f8e3ad7478f657c9c88e8db68e7de88fa95693c107a06e0bc1bf6b7ad7bb0d4d47009283de60744d921db03a36f20347e4b3e
|
7
|
+
data.tar.gz: fa0a8fa73da0f59d2ea3f4fd23a352022b8498c925c901709b7fcc41ac18bc77ce8992aacb4a842eebfaf5803f11e729052d073775abad31eaf3bc3649dbbcfd
|
data/config/version.rb
CHANGED
data/lib/origen_jtag/driver.rb
CHANGED
@@ -568,7 +568,7 @@ module OrigenJTAG
|
|
568
568
|
def extract_size(reg_or_val, options = {})
|
569
569
|
size = options[:size]
|
570
570
|
unless size
|
571
|
-
if reg_or_val.is_a?(
|
571
|
+
if reg_or_val.is_a?(Integer) || !reg_or_val.respond_to?(:size)
|
572
572
|
fail 'When suppling a value to JTAG::Driver#shift you must supply a :size in the options!'
|
573
573
|
else
|
574
574
|
size = reg_or_val.size
|
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.22.
|
4
|
+
version: 0.22.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen McGinty
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: origen
|
@@ -62,10 +62,8 @@ files:
|
|
62
62
|
- lib/origen_jtag_dev/serial.rb
|
63
63
|
- lib/origen_jtag_dev/top_level.rb
|
64
64
|
- pattern/full_reg_ovly_cap.rb
|
65
|
-
- pattern/full_reg_subr_overlay.rb
|
66
65
|
- pattern/global_label_test.rb
|
67
66
|
- pattern/jtag_workout.rb
|
68
|
-
- pattern/overlay_subr.rb
|
69
67
|
- pattern/rww_test.rb
|
70
68
|
- pattern/two_port.rb
|
71
69
|
- templates/web/index.md.erb
|
@@ -1,26 +0,0 @@
|
|
1
|
-
Pattern.create do
|
2
|
-
def test(msg)
|
3
|
-
ss "Test - #{msg}"
|
4
|
-
end
|
5
|
-
|
6
|
-
jtag = $dut.jtag
|
7
|
-
reg16 = $dut.reg(:test16)
|
8
|
-
reg32 = $dut.reg(:test32)
|
9
|
-
|
10
|
-
|
11
|
-
test 'Shift register into TDI with overlay'
|
12
|
-
|
13
|
-
|
14
|
-
cc 'Full register (16 bits)'
|
15
|
-
reg16.overlay('write_overlay16')
|
16
|
-
reg16.write!
|
17
|
-
# tester.cycle # Give a padding cycle as a place for the subroutine call to go
|
18
|
-
# jtag.shift reg, cycle_last: true
|
19
|
-
|
20
|
-
cc 'Full register with additional size (32 bits)'
|
21
|
-
reg32.overlay('write_overlay32')
|
22
|
-
reg32.write!
|
23
|
-
# tester.cycle # Give a padding cycle as a place for the subroutine call to go
|
24
|
-
# jtag.shift reg, cycle_last: true, size: 32
|
25
|
-
|
26
|
-
end
|
data/pattern/overlay_subr.rb
DELETED
@@ -1,56 +0,0 @@
|
|
1
|
-
Pattern.create do
|
2
|
-
def test(msg)
|
3
|
-
ss "Test - #{msg}"
|
4
|
-
end
|
5
|
-
|
6
|
-
def subroutine(name, options = {})
|
7
|
-
options = {
|
8
|
-
compress: false,
|
9
|
-
}.merge(options)
|
10
|
-
|
11
|
-
tester.start_subroutine(name)
|
12
|
-
# $tester.set_timeset('intram', 40)
|
13
|
-
# $dut.init_pins_for_first_vector
|
14
|
-
# $dut.pin(:RESET_B).drive(1)
|
15
|
-
# $dut.pin(:JTAG_TRST_B).drive(1)
|
16
|
-
|
17
|
-
|
18
|
-
if options[:compress]
|
19
|
-
yield options
|
20
|
-
else
|
21
|
-
tester.dont_compress do
|
22
|
-
yield options
|
23
|
-
end
|
24
|
-
end
|
25
|
-
tester.end_subroutine(options)
|
26
|
-
end
|
27
|
-
def write_partial(thing_to_shift, options = {})
|
28
|
-
options = {
|
29
|
-
read: false,
|
30
|
-
length: false, # Set to the number of bits you want to shift when supplying a data value
|
31
|
-
includes_last_bit: false,
|
32
|
-
cycle_last: true
|
33
|
-
}.merge(options)
|
34
|
-
|
35
|
-
dut.jtag.shift thing_to_shift, size: options[:length], cycle_last: options[:cycle_last], includes_last_bit: options[:includes_last_bit], read: options[:read]
|
36
|
-
end
|
37
|
-
|
38
|
-
|
39
|
-
jtag = $dut.jtag
|
40
|
-
reg16 = $dut.reg(:test16)
|
41
|
-
reg32 = $dut.reg(:test32)
|
42
|
-
|
43
|
-
test 'Shift register into TDI with overlay'
|
44
|
-
|
45
|
-
subroutine 'write_overlay16' do
|
46
|
-
# write_partial(0, length: 16, includes_last_bit: true)
|
47
|
-
dut.jtag.shift 0, size: 16, cycle_last: true, includes_last_bit: true, read: false
|
48
|
-
end
|
49
|
-
|
50
|
-
subroutine 'write_overlay32' do
|
51
|
-
# write_partial(5, length: 32, includes_last_bit: true)
|
52
|
-
dut.jtag.shift 0, size: 32, cycle_last: true, includes_last_bit: false
|
53
|
-
end
|
54
|
-
|
55
|
-
|
56
|
-
end
|