Skip to content

Commit 448d9cc

Browse files
amend! cmdref: Split passes/status from passes/cmds
cmdref: Split passes/status from passes/cmds Rename passes/cmds from "General passes" to "Design modification". More `yosys.h` includes.
1 parent 5e7c208 commit 448d9cc

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

passes/cmds/portarcs.cc

+6
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "kernel/rtlil.h"
2323
#include "kernel/utils.h"
2424
#include "kernel/celltypes.h"
25+
#include "kernel/log_help.h"
2526

2627
PRIVATE_NAMESPACE_BEGIN
2728
USING_YOSYS_NAMESPACE
@@ -38,6 +39,11 @@ static RTLIL::SigBit canonical_bit(RTLIL::SigBit bit)
3839

3940
struct PortarcsPass : Pass {
4041
PortarcsPass() : Pass("portarcs", "derive port arcs for propagation delay") {}
42+
bool formatted_help() override {
43+
auto *help = PrettyHelp::get_current();
44+
help->set_group("passes/status");
45+
return false;
46+
}
4147

4248
void help() override
4349
{

passes/cmds/scc.cc

+7-4
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,10 @@
2121
// Tarjan, R. E. (1972), "Depth-first search and linear graph algorithms", SIAM Journal on Computing 1 (2): 146-160, doi:10.1137/0201010
2222
// http://en.wikipedia.org/wiki/Tarjan's_strongly_connected_components_algorithm
2323

24-
#include "kernel/register.h"
24+
#include "kernel/yosys.h"
2525
#include "kernel/celltypes.h"
2626
#include "kernel/sigtools.h"
27-
#include "kernel/log.h"
28-
#include <stdlib.h>
29-
#include <stdio.h>
27+
#include "kernel/log_help.h"
3028

3129
USING_YOSYS_NAMESPACE
3230
PRIVATE_NAMESPACE_BEGIN
@@ -252,6 +250,11 @@ struct SccWorker
252250

253251
struct SccPass : public Pass {
254252
SccPass() : Pass("scc", "detect strongly connected components (logic loops)") { }
253+
bool formatted_help() override {
254+
auto *help = PrettyHelp::get_current();
255+
help->set_group("passes/status");
256+
return false;
257+
}
255258
void help() override
256259
{
257260
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|

0 commit comments

Comments
 (0)