Sha256: 2a27cdef505fc696fe5832c5db34ee6362e8d9b3a4dc2f38bd6a030579e2f9fd

Contents?: true

Size: 515 Bytes

Versions: 1

Compression:

Stored size: 515 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'
  dut.spi.shift master_out: out_data, master_in: in_data

  tester.cycle
  cc 'shifting in same register, should be no compares'
  dut.spi.shift master_in: in_data
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
origen_spi-0.1.1 pattern/clear_flags_test.rb