Sha256: 9c09b44e36c85fcc727d9a35a4bc975bab121f6135012696e1d264bc2dedcfc0
Contents?: true
Size: 700 Bytes
Versions: 1
Compression:
Stored size: 700 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
origen_spi-0.1.1 | pattern/keep_ss_active.rb |