mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-27 14:37:55 +00:00
cmdref: Assigning cmds to formal group
Give formal index a proper title. Use `Pass::formatted_help()` to assign the group, but still return `false` because the help text still comes from `Pass::help()`. Tidy up some of the affected files' includes to make use of the shared `yosys.h` includes.
This commit is contained in:
parent
37782cb92b
commit
92ab125113
19 changed files with 117 additions and 22 deletions
|
@ -21,17 +21,12 @@
|
|||
// Niklas Een and Niklas Sörensson (2003)
|
||||
// http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.4.8161
|
||||
|
||||
#include "kernel/register.h"
|
||||
#include "kernel/celltypes.h"
|
||||
#include "kernel/consteval.h"
|
||||
#include "kernel/sigtools.h"
|
||||
#include "kernel/log.h"
|
||||
#include "kernel/satgen.h"
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <algorithm>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include "kernel/yosys.h"
|
||||
#include "kernel/log_help.h"
|
||||
|
||||
USING_YOSYS_NAMESPACE
|
||||
PRIVATE_NAMESPACE_BEGIN
|
||||
|
@ -902,6 +897,11 @@ void print_qed()
|
|||
|
||||
struct SatPass : public Pass {
|
||||
SatPass() : Pass("sat", "solve a SAT problem in the circuit") { }
|
||||
bool formatted_help() override {
|
||||
auto *help = PrettyHelp::get_current();
|
||||
help->set_group("formal");
|
||||
return false;
|
||||
}
|
||||
void help() override
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue