mirror of
https://github.com/YosysHQ/yosys
synced 2025-05-04 06:15:47 +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
a74aeb1301
commit
d1d419cb51
19 changed files with 117 additions and 22 deletions
|
@ -18,6 +18,7 @@
|
|||
*/
|
||||
|
||||
#include "kernel/yosys.h"
|
||||
#include "kernel/log_help.h"
|
||||
#include "kernel/sigtools.h"
|
||||
#include "kernel/ffinit.h"
|
||||
#include "kernel/ff.h"
|
||||
|
@ -27,6 +28,11 @@ PRIVATE_NAMESPACE_BEGIN
|
|||
|
||||
struct Async2syncPass : public Pass {
|
||||
Async2syncPass() : Pass("async2sync", "convert async FF inputs to sync circuits") { }
|
||||
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