summaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorJack Koenig2021-12-07 13:18:29 -0800
committerGitHub2021-12-07 21:18:29 +0000
commite85bfebb5d661de41f9ccac300fb48bf92840cfe (patch)
treec0209789b1226ad7e3ad14921831dca65b340d1d /docs/src
parent12ed3fe9a780a9914b3f5727d921b4e419967549 (diff)
[docs] Remove body from minimizing output bits recipe (#2290)
Remove the body from the emitted Verilog. This was the original intent of the example, and it avoids an issue where Jekyll was not able to render the Markdown file due to Verilog concatenation looking like a variable escape.
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/cookbooks/cookbook.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/src/cookbooks/cookbook.md b/docs/src/cookbooks/cookbook.md
index e23b158c..d4cf3030 100644
--- a/docs/src/cookbooks/cookbook.md
+++ b/docs/src/cookbooks/cookbook.md
@@ -431,6 +431,9 @@ Unlike `Vecs` which represent a singular Chisel type and must have the same widt
```scala mdoc:verilog
chisel3.stage.ChiselStage.emitVerilog(new CountBits(4))
+ // remove the body of the module by removing everything after ');'
+ .split("\\);")
+ .head + ");\n"
```
## Predictable Naming