Sha256: a7f75773f0bba2471c67908e3d6928a304a1f1beedb12c2cbcec7c32fd6d22ee

Contents?: true

Size: 1.16 KB

Versions: 9

Compression:

Stored size: 1.16 KB

Contents

Pattern.create(options = { name: 'two_port' }) do

  ss 'test using first jtag port'
  jtag = $dut.jtag
  reg = $dut.reg(:full16)

  cc 'TDO should be HLHL_LHLH_HLHL_LHLH'
  jtag.write_dr 0xFFFF, size: 16, shift_out_data: 0xA5A5

  cc 'TDO should be XXXX_XXXX_HHHH_HHHH'
  reg.write(0xFFFF)
  reg.bits[0..7].read
  jtag.write_dr 0xFFFF, size: 16, shift_out_data: reg


  cc 'TDO should be HLHL_LHLH_HLHL_LHLH'
  reg.write(0xFFFF)
  jtag.write_dr reg, shift_out_data: 0xA5A5

  cc 'TDO should be XXXX_XXXX_HHHH_HHHH'
  reg.write(0xFFFF)
  reg2 = reg.dup
  reg2.bits[0..7].read
  jtag.write_dr reg, size: 16, shift_out_data: reg2

  
  ss 'test using second jtag port'
  jtag = $dut.jtag2

  cc 'TDO should be HLHL_LHLH_HLHL_LHLH'
  jtag.write_dr 0xFFFF, size: 16, shift_out_data: 0xA5A5

  cc 'TDO should be XXXX_XXXX_HHHH_HHHH'
  reg.write(0xFFFF)
  reg.bits[0..7].read
  jtag.write_dr 0xFFFF, size: 16, shift_out_data: reg


  cc 'TDO should be HLHL_LHLH_HLHL_LHLH'
  reg.write(0xFFFF)
  jtag.write_dr reg, shift_out_data: 0xA5A5

  cc 'TDO should be XXXX_XXXX_HHHH_HHHH'
  reg.write(0xFFFF)
  reg2 = reg.dup
  reg2.bits[0..7].read
  jtag.write_dr reg, size: 16, shift_out_data: reg2
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
origen_jtag-0.22.3 pattern/two_port.rb
origen_jtag-0.22.2 pattern/two_port.rb
origen_jtag-0.22.1 pattern/two_port.rb
origen_jtag-0.22.0 pattern/two_port.rb
origen_jtag-0.21.1 pattern/two_port.rb
origen_jtag-0.21.0 pattern/two_port.rb
origen_jtag-0.20.0 pattern/two_port.rb
origen_jtag-0.19.0 pattern/two_port.rb
origen_jtag-0.18.0 pattern/two_port.rb