File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -57,3 +57,4 @@ OBJS += passes/cmds/abstract.o
5757OBJS += passes/cmds/test_select.o
5858OBJS += passes/cmds/timeest.o
5959OBJS += passes/cmds/linecoverage.o
60+ OBJS += passes/cmds/sort.o
Original file line number Diff line number Diff line change 1+ #include " kernel/yosys.h"
2+
3+ USING_YOSYS_NAMESPACE
4+ PRIVATE_NAMESPACE_BEGIN
5+
6+ struct SortPass : Pass {
7+ SortPass () : Pass(" sort" , " sort the design objects" ) {}
8+ void help () override
9+ {
10+ // |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
11+ log (" \n " );
12+ log (" sort\n " );
13+ log (" \n " );
14+ log (" Sorts the design objects.\n " );
15+ log (" \n " );
16+ }
17+ void execute (std::vector<std::string> args, RTLIL::Design *d) override
18+ {
19+ log_header (d, " Executing SORT pass.\n " );
20+ if (args.size () != 1 )
21+ log_cmd_error (" This pass takes no arguments.\n " );
22+ d->sort ();
23+ }
24+ } SortPass;
25+
26+ PRIVATE_NAMESPACE_END
You can’t perform that action at this time.
0 commit comments