diff options
| author | Jack Koenig | 2021-12-07 13:18:29 -0800 |
|---|---|---|
| committer | GitHub | 2021-12-07 21:18:29 +0000 |
| commit | e85bfebb5d661de41f9ccac300fb48bf92840cfe (patch) | |
| tree | c0209789b1226ad7e3ad14921831dca65b340d1d /docs/src | |
| parent | 12ed3fe9a780a9914b3f5727d921b4e419967549 (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.md | 3 |
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 |
