Skip to content

Commit

Permalink
Fix sequence logic
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardt committed Nov 18, 2023
1 parent 1cc700f commit b3eca7e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/test_property.py
Original file line number Diff line number Diff line change
Expand Up @@ -822,9 +822,9 @@ class Foo(m.Circuit):
if use_sva:
f.assert_(
f.sva(
f.sequence(
f.sequence(f.sva(
f.not_(~(io.valid & io.ready.value() & io.eop))
),
)),
"throughout",
# Note: need sequences to wrap parens
f.sequence(f.sva((io.valid & io.ready.value() & io.sop),
Expand All @@ -842,9 +842,8 @@ class Foo(m.Circuit):
)
else:
f.assert_(
f.sequence(
f.not_(~(io.valid & io.ready.value() & io.eop))
) | f.throughout |
f.not_(~(io.valid & io.ready.value() & io.eop))
| f.throughout |
((io.valid & io.ready.value() & io.sop) | f.goto[2]),
name="eop_must_happen_btn_two_sop_A",
on=f.posedge(io.CLK),
Expand Down

0 comments on commit b3eca7e

Please sign in to comment.