Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardt committed Nov 21, 2023
1 parent 3d6bf7f commit dcbbf1f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/test_ready_valid.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,13 @@ def test_basic_ready_valid_sequence_fail():
pytest.skip("Untested with earlier verilator versions")
I = [BitVector.random(8) for _ in range(8)] + [0]
O = [0] + [i - 1 for i in I[:-1]]
f.run_ready_valid_test(Main, {"I": I, "O": O}, "verilator",
compile_and_run_kwargs={"tmp_dir": True,
"flags": ['-Wno-UNUSED']})
with pytest.raises(AssertionError):
f.run_ready_valid_test(
Main, {"I": I, "O": O},
"verilator",
compile_and_run_kwargs={"tmp_dir": True,
"flags": ['-Wno-UNUSED']}
)


class Main2(m.Circuit):
Expand Down

0 comments on commit dcbbf1f

Please sign in to comment.