Class: OrigenSpi::TestDut::Dut1
- Inherits:
-
Object
- Object
- OrigenSpi::TestDut::Dut1
- Includes:
- Origen::TopLevel
- Defined in:
- lib/origen_spi_dev/dut1.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Dut1
constructor
A new instance of Dut1.
Constructor Details
#initialize(options = {}) ⇒ Dut1
Returns a new instance of Dut1
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/origen_spi_dev/dut1.rb', line 6 def initialize( = {}) add_pin :sclk add_pin :mosi add_pin :miso add_pin :ss sub_block :spi, class_name: 'OrigenSpi::Driver', sclk_pin: dut.pin(:sclk), mosi_pin: dut.pin(:mosi), miso_pin: dut.pin(:miso), ss_pin: dut.pin(:ss), clk_format: :rl, ss_active: 0, clk_multiple: 1, data_order: :lsb0 end |