Sha256: c981987175ac6ac7f7d46d3616d4eea46de06987bf8107730a848f1e3efe324d

Contents?: true

Size: 781 Bytes

Versions: 2

Compression:

Stored size: 781 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.1.1 pattern/clock_test.rb
origen_spi-0.1.0 pattern/clock_test.rb