mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 06:03:23 +00:00
cmdref: Groups and group names
This commit is contained in:
parent
1161dfd274
commit
925b00dd94
4 changed files with 17 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
||||||
hierarchy
|
Working with hierarchy
|
||||||
------------------
|
----------------------
|
||||||
|
|
||||||
.. autocmdgroup:: passes/hierarchy
|
.. autocmdgroup:: passes/hierarchy
|
||||||
:members:
|
:members:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
sat
|
Simulating circuits
|
||||||
------------------
|
-------------------
|
||||||
|
|
||||||
.. autocmdgroup:: passes/sat
|
.. autocmdgroup:: passes/sat
|
||||||
:members:
|
:members:
|
||||||
|
|
|
@ -17,11 +17,10 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "kernel/register.h"
|
#include "kernel/yosys.h"
|
||||||
#include "kernel/celltypes.h"
|
#include "kernel/celltypes.h"
|
||||||
#include "kernel/sigtools.h"
|
#include "kernel/sigtools.h"
|
||||||
#include "kernel/rtlil.h"
|
#include "kernel/log_help.h"
|
||||||
#include "kernel/log.h"
|
|
||||||
|
|
||||||
USING_YOSYS_NAMESPACE
|
USING_YOSYS_NAMESPACE
|
||||||
PRIVATE_NAMESPACE_BEGIN
|
PRIVATE_NAMESPACE_BEGIN
|
||||||
|
@ -217,6 +216,11 @@ RTLIL::Wire *add_new_wire(RTLIL::Module *module, RTLIL::IdString name, int width
|
||||||
|
|
||||||
struct ExposePass : public Pass {
|
struct ExposePass : public Pass {
|
||||||
ExposePass() : Pass("expose", "convert internal signals to module ports") { }
|
ExposePass() : Pass("expose", "convert internal signals to module ports") { }
|
||||||
|
bool formatted_help() override {
|
||||||
|
auto *help = PrettyHelp::get_current();
|
||||||
|
help->set_group("passes/cmds");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
void help() override
|
void help() override
|
||||||
{
|
{
|
||||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
#include "kernel/celltypes.h"
|
#include "kernel/celltypes.h"
|
||||||
#include "kernel/utils.h"
|
#include "kernel/utils.h"
|
||||||
#include "kernel/satgen.h"
|
#include "kernel/satgen.h"
|
||||||
|
#include "kernel/log_help.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <queue>
|
#include <queue>
|
||||||
|
@ -690,6 +691,11 @@ struct RecoverNamesWorker {
|
||||||
|
|
||||||
struct RecoverNamesPass : public Pass {
|
struct RecoverNamesPass : public Pass {
|
||||||
RecoverNamesPass() : Pass("recover_names", "Execute a lossy mapping command and recover original netnames") { }
|
RecoverNamesPass() : Pass("recover_names", "Execute a lossy mapping command and recover original netnames") { }
|
||||||
|
bool formatted_help() override {
|
||||||
|
auto *help = PrettyHelp::get_current();
|
||||||
|
help->set_group("passes/opt");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
void help() override
|
void help() override
|
||||||
{
|
{
|
||||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue