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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cc6050891bc69e2a38991157a3423a8765284b257a56d68c2fb87a8b5844f98b
4
- data.tar.gz: 4e491ddb526412da9761cd1d5a6886a7a17a009e60ea2736db46365035cf94e2
3
+ metadata.gz: 1e408b1d8688221c536224742008b1e8816f175f7204a042f6227cfc92a3c938
4
+ data.tar.gz: 8038f326e6d212978e7f21404319b1178c89d3ee12a01fca74f5abbaa0b9536e
5
5
  SHA512:
6
- metadata.gz: dbb5ac9d278793a4994d8a50079bb587f326186701ed760edc119824b899cb29bb0551693d4d8f7f72e7eaff2fefc2c7fd2e6fd4f4563ed2049b208f63b6b8a6
7
- data.tar.gz: 93668e735cb0c23de2788bb6be7bb057a2e58a41bfff14a3a204de7c6a33f1ab6b2aaee427804869f62c9bf474fd888e6e82ab85ecf2b764a2f193c63db16f5d
6
+ metadata.gz: db3581cd8d7d7cababf02df48b7f8e3ad7478f657c9c88e8db68e7de88fa95693c107a06e0bc1bf6b7ad7bb0d4d47009283de60744d921db03a36f20347e4b3e
7
+ data.tar.gz: fa0a8fa73da0f59d2ea3f4fd23a352022b8498c925c901709b7fcc41ac18bc77ce8992aacb4a842eebfaf5803f11e729052d073775abad31eaf3bc3649dbbcfd
data/config/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module OrigenJTAG
2
2
  MAJOR = 0
3
3
  MINOR = 22
4
- BUGFIX = 2
4
+ BUGFIX = 3
5
5
  DEV = nil
6
6
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
7
7
  end
@@ -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?(Fixnum) || !reg_or_val.respond_to?(:size)
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.2
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: 2022-04-28 00:00:00.000000000 Z
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
@@ -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