Sha256: 7548ae3782d8a33c04b39b5a5d21823f29583be5d7d6e615a96ec8791a0f9530

Contents?: true

Size: 743 Bytes

Versions: 2

Compression:

Stored size: 743 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
  dut.spi.sclk_cycle
  tester.cycle
  
  cc 'change multiple to 2'
  dut.spi.clk_multiple = 2
  dut.spi.sclk_cycle
  tester.cycle
  
  cc 'change multiple to 80'
  dut.spi.clk_multiple = 80
  dut.spi.sclk_cycle
  tester.cycle
  
  cc 'change clock format and repeat'
  dut.pin(:sclk).drive 1
  dut.spi.clk_format = :rh
  dut.spi.clk_multiple = 1
  dut.spi.sclk_cycle
  tester.cycle

  cc 'change multiple to 2'
  dut.spi.clk_multiple = 2
  dut.spi.sclk_cycle
  tester.cycle
  
  cc 'change multiple to 80'
  dut.spi.clk_multiple = 80
  dut.spi.sclk_cycle
  tester.cycle
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

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