Skip to content

Commit

Permalink
Fix expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardt committed Nov 21, 2023
1 parent 1030dd9 commit 2c41d09
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions tests/test_property.py
Original file line number Diff line number Diff line change
Expand Up @@ -910,39 +910,40 @@ class Main(m.Circuit):
Total Assertions = 2, Failing Assertions = 0, Unchecked Assertions = 1\
""" in out, out
tester.clear()
tester.circuit.S = 0
tester.circuit.I = 1
tester.advance_cycle()
tester.circuit.I = 0
tester.compile_and_run("system-verilog", simulator="ncsim",
magma_output="mlir-verilog", flags=["-sv"],
skip_compile=True, magma_opts={"sv": True},
disp_type="realtime", coverage=True)
skip_compile=True, disp_type="realtime",
coverage=True)

out, _ = capsys.readouterr()
assert """\
Disabled Finish Failed Assertion Name
0 1 0 Main_tb.dut.__cover1
0 0 0 Main_tb.dut.__cover1
0 0 0 Main_tb.dut.__cover2
Total Assertions = 2, Failing Assertions = 0, Unchecked Assertions = 1\
Total Assertions = 2, Failing Assertions = 0, Unchecked Assertions = 2\
""" in out, out
tester.circuit.S = 1
tester.circuit.I = 1
tester.advance_cycle()
tester.circuit.I = 1
tester.advance_cycle()
tester.compile_and_run("system-verilog", simulator="ncsim",
flags=["-sv"], magma_opts={"sv": True},
skip_compile=True, disp_type="realtime",
coverage=True)
flags=["-sv"], skip_compile=True,
disp_type="realtime", coverage=True)

out, _ = capsys.readouterr()
assert """\
Disabled Finish Failed Assertion Name
0 1 0 Main_tb.dut.__cover1
0 1 0 Main_tb.dut.__cover2
Total Assertions = 2, Failing Assertions = 0, Unchecked Assertions = 0\
0 0 0 Main_tb.dut.__cover1
0 0 0 Main_tb.dut.__cover2
Total Assertions = 2, Failing Assertions = 0, Unchecked Assertions = 2\
""" in out, out
tester.clear()
tester.circuit.S = 1
tester.circuit.I = 1
tester.advance_cycle()
tester.circuit.I = 0
Expand Down

0 comments on commit 2c41d09

Please sign in to comment.