-
Notifications
You must be signed in to change notification settings - Fork 589
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add utility for pretty Verilog emission in mdoc (#4369)
And deploy this utility, replacing most uses of ChiselStage with chisel3.docs.emitSystemVerilog.
- Loading branch information
1 parent
f425f1a
commit 4c0c194
Showing
18 changed files
with
128 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package chisel3 | ||
|
||
import circt.stage.ChiselStage | ||
|
||
/** Useful utility methods for generating docs */ | ||
package object docs { | ||
def emitSystemVerilog(gen: => RawModule): String = { | ||
val prettyArgs = Array("-disable-all-randomization", "-strip-debug-info", "-default-layer-specialization=enable") | ||
ChiselStage.emitSystemVerilog(gen, firtoolOpts = prettyArgs) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.