Sha256: 183709dfe4c6a65ebaf5593c2eb612912488a0bd9d3fb23851d51621ffecd19b

Contents?: true

Size: 568 Bytes

Versions: 1

Compression:

Stored size: 568 Bytes

Contents

# This pattern is expected to fail, use it to visually inspect that OrigenSim's
# error reporting is working
Pattern.create do
  ss "Test a register-level miscompare"
  dut.cmd.write!(0x1234_5678)
  dut.cmd.read!(0x1233_5678)

  ss "Test a bit-level miscompare, expect 1"
  dut.ana_test.write!(0)
  dut.ana_test.bgap_out.read!(1)
  ss "Test a bit-level miscompare, expect 0"
  dut.ana_test.bgap_out.write!(1)
  dut.ana_test.bgap_out.read!(0)

  if tester.sim?
    ss "Test reading an X register value, expect LSB nibble to be 0"
    dut.x_reg[3..0].read!(0)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
origen_sim-0.20.2 pattern/fails.rb