Skip to content

Commit

Permalink
Update docs/src/cookbooks/cookbook.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkoenig authored Jan 9, 2025
1 parent 52515a8 commit 0ca7352
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/cookbooks/cookbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ import chisel3.util.circt.IsX
class XSafeAssert extends Module {
val in = IO(Input(UInt(8.W)))

// Assert that in is never zero, but also guard against X
// Assert that in is never zero; also do not trigger assert in the presence of X.
assert(IsX(in) || in =/= 0.U, "in should never equal 0")
}
```
Expand Down

0 comments on commit 0ca7352

Please sign in to comment.