mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-03 04:41:22 +00:00
log_help: Add manual group support
Sets `chformal` group to "formal" for testing purposes
This commit is contained in:
parent
1efd3aeb7d
commit
aedc13ab7f
2 changed files with 5 additions and 0 deletions
|
@ -53,6 +53,7 @@ struct ContentListing {
|
||||||
class PrettyHelp
|
class PrettyHelp
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
string group = "unknown";
|
||||||
enum Mode {
|
enum Mode {
|
||||||
LOG,
|
LOG,
|
||||||
LISTING,
|
LISTING,
|
||||||
|
@ -89,6 +90,9 @@ public:
|
||||||
return content;
|
return content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void set_group(const string g) { group = g; }
|
||||||
|
bool has_group() { return group.compare("unknown") != 0; }
|
||||||
|
|
||||||
void usage(
|
void usage(
|
||||||
const string &usage,
|
const string &usage,
|
||||||
const source_location location = source_location::current()
|
const source_location location = source_location::current()
|
||||||
|
|
|
@ -75,6 +75,7 @@ struct ChformalPass : public Pass {
|
||||||
|
|
||||||
bool help_v2() override {
|
bool help_v2() override {
|
||||||
auto *help = PrettyHelp::get_current();
|
auto *help = PrettyHelp::get_current();
|
||||||
|
help->set_group("formal");
|
||||||
help->usage("chformal [types] [mode] [options] [selection]");
|
help->usage("chformal [types] [mode] [options] [selection]");
|
||||||
help->paragraph(
|
help->paragraph(
|
||||||
"Make changes to the formal constraints of the design. The [types] options "
|
"Make changes to the formal constraints of the design. The [types] options "
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue