mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
Added online help for "show" and "hierarchy" commands
This commit is contained in:
parent
6ac41b2bb1
commit
af561800ed
2 changed files with 41 additions and 4 deletions
|
@ -298,7 +298,22 @@ struct ShowWorker
|
|||
};
|
||||
|
||||
struct ShowPass : public Pass {
|
||||
ShowPass() : Pass("show") { }
|
||||
ShowPass() : Pass("show", "generate schematics using graphviz") { }
|
||||
virtual void help()
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
log(" show [-viewer <command>] [selection]\n");
|
||||
log("\n");
|
||||
log("Create a graphviz DOT file for the selected part of the design and compile it\n");
|
||||
log("to a postscript file.\n");
|
||||
log("\n");
|
||||
log(" -viewer <command>\n");
|
||||
log(" Also run the specified command with the postscript file as parameter.\n");
|
||||
log("\n");
|
||||
log("The generated output files are `yosys-show.dot' and `yosys-show.ps'.\n");
|
||||
log("\n");
|
||||
}
|
||||
virtual void execute(std::vector<std::string> args, RTLIL::Design *design)
|
||||
{
|
||||
log_header("Generating Graphviz representation of design.\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue