Sha256: 6f7dfacf8369dd71d51484452828da472e552548d9edd9f43cf04e76ca8ce74b

Contents?: true

Size: 676 Bytes

Versions: 2

Compression:

Stored size: 676 Bytes

Contents

Pattern.create do
  tester.set_timeset 'tp0', 20
  dut.pin(:ss).drive 1
  dut.pin(:sclk).drive 0
  dut.pin(:mosi).drive 0
  dut.pin(:miso).dont_care
  
  tester.cycle

  out_data = Origen::Registers::Reg.dummy(12).write 7
  in_data = Origen::Registers::Reg.dummy(12).read 0x5a5
  cc 'shifting 12-bits lsb first, 0x7 out, 0x5a5 in -- keeping ss active'
  dut.spi.shift master_out: out_data, master_in: in_data, keep_ss_active: true
  
  cc 'cycle with ss active'
  tester.cycle

  cc 'shifting 12-bits lsb first, 0x7 out, 0x5a5 in -- allow ss inactive'
  in_data.read
  dut.spi.shift master_out: out_data, master_in: in_data
  
  cc 'cycle with ss inactive'
  tester.cycle

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
origen_spi-0.3.0 pattern/keep_ss_active.rb
origen_spi-0.2.0 pattern/keep_ss_active.rb