origen_swd 0.3.8 → 0.3.9
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_swd/driver.rb +6 -0
- data/lib/origen_swd/dut.rb +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcbe732650eea0d64b8dddbd0b5cb88536aa6a44
|
4
|
+
data.tar.gz: 3215bca189c41252cbf10e5db109d2b2e37b2e5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d1fcefc8a6d56a11af21cf78c44184e86c799471688be31382e49d0a2df3778d5b402b53379cf06043ee14f8220dfda6657ba4fb657a45ccd18d0a173c2439f
|
7
|
+
data.tar.gz: aac1777d49a34068ed0fad353b375d210820ecfeb55d98bcbcc7e010a989a5b3cbf5676d84c48f4e48fdb928ec145f09cc9cfee35c328fc4a08abf3c8e08218a
|
data/config/version.rb
CHANGED
data/lib/origen_swd/driver.rb
CHANGED
@@ -11,6 +11,12 @@ module OrigenSWD
|
|
11
11
|
# Initialize class variables
|
12
12
|
# owner - parent object
|
13
13
|
# options - any miscellaneous custom arguments
|
14
|
+
# Returns nothing.
|
15
|
+
#
|
16
|
+
# Examples
|
17
|
+
#
|
18
|
+
# DUT.new.swd
|
19
|
+
#
|
14
20
|
def initialize(owner, options = {})
|
15
21
|
@owner = owner
|
16
22
|
@current_apaddr = 0
|
data/lib/origen_swd/dut.rb
CHANGED
@@ -11,6 +11,8 @@ module OrigenSWD
|
|
11
11
|
include Origen::Pins
|
12
12
|
|
13
13
|
# Initializes simple dut model with test register and required swd pins
|
14
|
+
# options - any miscellaneous custom arguments
|
15
|
+
# Returns nothing.
|
14
16
|
def initialize(options = {})
|
15
17
|
add_reg :test, 0x0, 32, data: { pos: 0, bits: 32 },
|
16
18
|
bit: { pos: 0 }
|
@@ -19,7 +21,8 @@ module OrigenSWD
|
|
19
21
|
end
|
20
22
|
|
21
23
|
# Add any custom startup business here.
|
22
|
-
#
|
24
|
+
# options - any miscellaneous custom arguments
|
25
|
+
# Returns nothing.
|
23
26
|
def startup(options = {})
|
24
27
|
$tester.set_timeset('swd', 40)
|
25
28
|
end
|