Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Megan Wachs <[email protected]>
  • Loading branch information
jackkoenig and mwachs5 authored Jan 9, 2025
1 parent 0ca7352 commit a577460
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/cookbooks/cookbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ Chisel does not support SystemVerilog `X` directly, but it is possible to check
import chisel3._
import chisel3.util.circt.IsX

class XSafeAssert extends Module {
class AssertButAllowX extends Module {
val in = IO(Input(UInt(8.W)))

// Assert that in is never zero; also do not trigger assert in the presence of X.
Expand All @@ -919,7 +919,7 @@ class XSafeAssert extends Module {

```scala mdoc:invisible
// Hidden but will make sure this actually compiles
chisel3.docs.emitSystemVerilog(new XSafeAssert)
chisel3.docs.emitSystemVerilog(new AssertButAllowX)
```

## Predictable Naming
Expand Down

0 comments on commit a577460

Please sign in to comment.