Skip to content

Commit

Permalink
Adding asserts to Counter update rule
Browse files Browse the repository at this point in the history
  • Loading branch information
krame505 committed Feb 1, 2024
1 parent 2e37c26 commit 8704c63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Libraries/GenC/GenCMsg/GenCMsg.bs
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ mkCounter init = module
dec :: Wire (UInt 8) <- mkDWire 0

rules
{-# ASSERT fire when enabled #-}
{-# ASSERT no implicit conditions #-}
"update": when True ==> value := value + inc - dec

interface
Expand Down

0 comments on commit 8704c63

Please sign in to comment.