origen_spi 0.2.0 → 0.3.0

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: ca79fb20c6efdf7cee5a6ffee65f002288e7823e324053ea8afad4e9d5812bf4
4
- data.tar.gz: 64731df38c3569ff06515e2879e6ee4a6fc5e7a471e60613e6347613d19e590b
3
+ metadata.gz: bc20702266eb5cfc96149c5ca06dc5bb74901f3fc34896434d39c207eb16bf59
4
+ data.tar.gz: 3541388965e3f327e0df21be37a3595293dd60539f1f6874c1cd62cca7373ad6
5
5
  SHA512:
6
- metadata.gz: bbc6b1197f869758b8e7bc5f454bb8024e35e54c8926e8e3776c9806dd98b65376da40f6074d511241a97bee35a890ecce5c080a99d144082ffc6d673540b182
7
- data.tar.gz: '09745be43f46ea0ccce681c1212cc0bd2dfb72840ae64eebe1559ac7586a40128bdb0880902591262f8e04bc0373570bdf4998fd947a028c4220f6f874a6218d'
6
+ metadata.gz: 5c8720e6438a0927504d00bcdb696fb282536db128fbd0465a17a64073605ebfbf706b36b96215ca061d2280486cf3657bc4d635e7dbe99a60b72de25d5ee569
7
+ data.tar.gz: 7e0fde302ca7fb13187d45c202c9a7c5a86fa21791ac5bb95efcf4dac568859e4992b989ba8def9ffbffe74cf6df83f1b8d84386eca85f2d23d0f722de7c60cc
data/config/version.rb CHANGED
@@ -1,8 +1,7 @@
1
1
  module OrigenSpi
2
2
  MAJOR = 0
3
- MINOR = 2
3
+ MINOR = 3
4
4
  BUGFIX = 0
5
5
  DEV = nil
6
-
7
6
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
8
7
  end
@@ -177,6 +177,12 @@ module OrigenSpi
177
177
  unless @settings_validated
178
178
  settings_valid = true
179
179
 
180
+ # materialize pins
181
+ @sclk_pin = dut.pins(@sclk_pin) if @sclk_pin.is_a?(Symbol)
182
+ @mosi_pin = dut.pins(@mosi_pin) if @mosi_pin.is_a?(Symbol)
183
+ @miso_pin = dut.pins(@miso_pin) if @miso_pin.is_a?(Symbol)
184
+ @ss_pin = dut.pins(@ss_pin) if @ss_pin.is_a?(Symbol)
185
+
180
186
  # check that clock and miso are provided
181
187
  unless @sclk_pin.is_a?(Origen::Pins::Pin)
182
188
  settings_valid = false
@@ -34,10 +34,10 @@ can be changed after instantiation. See API for more details.
34
34
 
35
35
  ~~~ruby
36
36
  sub_block :spi, class_name: 'OrigenSpi::Driver',
37
- sclk_pin: dut.pin(:sclk),
38
- mosi_pin: dut.pin(:mosi),
39
- miso_pin: dut.pin(:miso),
40
- ss_pin: dut.pin(:ss),
37
+ sclk_pin: :sclk,
38
+ mosi_pin: :mosi,
39
+ miso_pin: :miso,
40
+ ss_pin: :ss,
41
41
  # :rl - return low - input data changes while sclk is low and is latched on rising edge
42
42
  clk_format: :rl,
43
43
  # drive state of 0 activates the slave port
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: origen_spi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul DeRouen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-11 00:00:00.000000000 Z
11
+ date: 2021-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: origen
@@ -80,8 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  - !ruby/object:Gem::Version
81
81
  version: 1.8.11
82
82
  requirements: []
83
- rubyforge_project:
84
- rubygems_version: 2.7.7
83
+ rubygems_version: 3.1.4
85
84
  signing_key:
86
85
  specification_version: 4
87
86
  summary: Driver for SPI protocol