mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
cellref: Move default help message to register.cc
Drop the default help message from rst while still displaying it on the command line. Fix command line formatting for older style help messages.
This commit is contained in:
parent
c662529316
commit
04b0ae540d
2 changed files with 7 additions and 7 deletions
|
@ -1111,18 +1111,20 @@ struct HelpPass : public Pass {
|
|||
log("\n");
|
||||
log("%s\n", help_cell.code.c_str());
|
||||
} else {
|
||||
log("\n %s %s\n\n", help_cell.name.c_str(), help_cell.ports.c_str());
|
||||
if (help_cell.ver == "2" || help_cell.ver == "2a") {
|
||||
log("\n %s %s\n\n", help_cell.name.c_str(), help_cell.ports.c_str());
|
||||
if (help_cell.title != "") log("%s\n", help_cell.title.c_str());
|
||||
if (help_cell.title != "") log("%s:\n", help_cell.title.c_str());
|
||||
std::stringstream ss;
|
||||
ss << help_cell.desc;
|
||||
for (std::string line; std::getline(ss, line, '\n');) {
|
||||
if (line != "::") log("%s\n", line.c_str());
|
||||
}
|
||||
} else {
|
||||
} else if (help_cell.desc.length()) {
|
||||
log("%s\n", help_cell.desc.c_str());
|
||||
} else {
|
||||
log("No help message for this cell type found.\n");
|
||||
}
|
||||
log("Run 'help %s+' to display the Verilog model for this cell type.\n", args[1].c_str());
|
||||
log("\nRun 'help %s+' to display the Verilog model for this cell type.\n", args[1].c_str());
|
||||
log("\n");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue