mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	cmdref: Split passes/status from passes/cmds
Rename passes/cmds from "General passes" to "Design modification". More `yosys.h` includes. cmdref: Split passes/status from passes/cmds Rename passes/cmds from "General passes" to "Design modification". More `yosys.h` includes.
This commit is contained in:
		
							parent
							
								
									f2ef17b581
								
							
						
					
					
						commit
						5d010789e2
					
				
					 27 changed files with 180 additions and 39 deletions
				
			
		|  | @ -22,12 +22,18 @@ | |||
| #include "kernel/celledges.h" | ||||
| #include "kernel/celltypes.h" | ||||
| #include "kernel/utils.h" | ||||
| #include "kernel/log_help.h" | ||||
| 
 | ||||
| USING_YOSYS_NAMESPACE | ||||
| PRIVATE_NAMESPACE_BEGIN | ||||
| 
 | ||||
| struct CheckPass : public Pass { | ||||
| 	CheckPass() : Pass("check", "check for obvious problems in the design") { } | ||||
| 	bool formatted_help() override { | ||||
| 		auto *help = PrettyHelp::get_current(); | ||||
| 		help->set_group("passes/status"); | ||||
| 		return false; | ||||
| 	} | ||||
| 	void help() override | ||||
| 	{ | ||||
| 		//   |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
 | ||||
|  |  | |||
|  | @ -18,6 +18,7 @@ | |||
|  */ | ||||
| 
 | ||||
| #include "kernel/yosys.h" | ||||
| #include "kernel/log_help.h" | ||||
| #include <sys/types.h> | ||||
| 
 | ||||
| #ifndef _WIN32 | ||||
|  | @ -26,15 +27,18 @@ | |||
| #  include <io.h> | ||||
| #endif | ||||
| 
 | ||||
| #include "kernel/register.h" | ||||
| #include "kernel/rtlil.h" | ||||
| #include "kernel/log.h" | ||||
| 
 | ||||
| USING_YOSYS_NAMESPACE | ||||
| PRIVATE_NAMESPACE_BEGIN | ||||
| 
 | ||||
| struct CoverPass : public Pass { | ||||
| 	CoverPass() : Pass("cover", "print code coverage counters") { } | ||||
| 	CoverPass() : Pass("cover", "print code coverage counters") { | ||||
| 		internal(); | ||||
| 	} | ||||
| 	bool formatted_help() override { | ||||
| 		auto *help = PrettyHelp::get_current(); | ||||
| 		help->set_group("passes/status"); | ||||
| 		return false; | ||||
| 	} | ||||
| 	void help() override | ||||
| 	{ | ||||
| 		//   |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
 | ||||
|  |  | |||
|  | @ -19,12 +19,18 @@ | |||
| 
 | ||||
| #include "kernel/yosys.h" | ||||
| #include "kernel/sigtools.h" | ||||
| #include "kernel/log_help.h" | ||||
| 
 | ||||
| USING_YOSYS_NAMESPACE | ||||
| PRIVATE_NAMESPACE_BEGIN | ||||
| 
 | ||||
| struct EdgetypePass : public Pass { | ||||
| 	EdgetypePass() : Pass("edgetypes", "list all types of edges in selection") { } | ||||
| 	bool formatted_help() override { | ||||
| 		auto *help = PrettyHelp::get_current(); | ||||
| 		help->set_group("passes/status"); | ||||
| 		return false; | ||||
| 	} | ||||
| 	void help() override | ||||
| 	{ | ||||
| 		//   |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
 | ||||
|  |  | |||
|  | @ -21,15 +21,17 @@ struct ExampleWorker | |||
| 
 | ||||
| struct ExampleDtPass : public Pass | ||||
| { | ||||
| 	ExampleDtPass() : Pass("example_dt", "drivertools example") {} | ||||
| 	ExampleDtPass() : Pass("example_dt", "drivertools example") { | ||||
| 		internal(); | ||||
| 	} | ||||
| 
 | ||||
|     void help() override | ||||
| 	void help() override | ||||
| 	{ | ||||
| 		//   |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
 | ||||
| 		log("\n"); | ||||
| 		log("TODO: add help message\n"); | ||||
| 		log("\n"); | ||||
|     } | ||||
| 	} | ||||
| 
 | ||||
| 
 | ||||
| 	void execute(std::vector<std::string> args, RTLIL::Design *design) override | ||||
|  |  | |||
|  | @ -17,8 +17,8 @@ | |||
|  * | ||||
|  */ | ||||
| 
 | ||||
| #include "kernel/register.h" | ||||
| #include "kernel/log.h" | ||||
| #include "kernel/yosys.h" | ||||
| #include "kernel/log_help.h" | ||||
| #include <cstdio> | ||||
| 
 | ||||
| #if defined(_WIN32) | ||||
|  | @ -38,6 +38,11 @@ PRIVATE_NAMESPACE_BEGIN | |||
| 
 | ||||
| struct ExecPass : public Pass { | ||||
| 	ExecPass() : Pass("exec", "execute commands in the operating system shell") { } | ||||
| 	bool formatted_help() override { | ||||
| 		auto *help = PrettyHelp::get_current(); | ||||
| 		help->set_group("passes/status"); | ||||
| 		return false; | ||||
| 	} | ||||
| 	void help() override | ||||
| 	{ | ||||
| 		//   |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
 | ||||
|  |  | |||
|  | @ -18,8 +18,6 @@ | |||
|  */ | ||||
| 
 | ||||
| #include <iterator> | ||||
| #include <optional> | ||||
| #include <stdint.h> | ||||
| 
 | ||||
| #include "kernel/yosys.h" | ||||
| #include "kernel/celltypes.h" | ||||
|  | @ -71,7 +69,10 @@ std::optional<uint64_t> current_mem_bytes() { | |||
| } | ||||
| 
 | ||||
| struct InternalStatsPass : public Pass { | ||||
| 	InternalStatsPass() : Pass("internal_stats", "print internal statistics") { } | ||||
| 	InternalStatsPass() : Pass("internal_stats", "print internal statistics") { | ||||
| 		experimental(); | ||||
| 		internal(); | ||||
| 	} | ||||
| 	void help() override | ||||
| 	{ | ||||
| 		//   |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
 | ||||
|  |  | |||
|  | @ -18,15 +18,19 @@ | |||
|  * | ||||
|  */ | ||||
| 
 | ||||
| #include "kernel/register.h" | ||||
| #include "kernel/rtlil.h" | ||||
| #include "kernel/log.h" | ||||
| #include "kernel/yosys.h" | ||||
| #include "kernel/log_help.h" | ||||
| 
 | ||||
| USING_YOSYS_NAMESPACE | ||||
| PRIVATE_NAMESPACE_BEGIN | ||||
| 
 | ||||
| struct LogPass : public Pass { | ||||
| 	LogPass() : Pass("log", "print text and log files") { } | ||||
| 	bool formatted_help() override { | ||||
| 		auto *help = PrettyHelp::get_current(); | ||||
| 		help->set_group("passes/status"); | ||||
| 		return false; | ||||
| 	} | ||||
| 	void help() override | ||||
| 	{ | ||||
| 		//   |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
 | ||||
|  |  | |||
|  | @ -17,14 +17,19 @@ | |||
|  * | ||||
|  */ | ||||
| 
 | ||||
| #include "kernel/register.h" | ||||
| #include "kernel/log.h" | ||||
| #include "kernel/yosys.h" | ||||
| #include "kernel/log_help.h" | ||||
| 
 | ||||
| USING_YOSYS_NAMESPACE | ||||
| PRIVATE_NAMESPACE_BEGIN | ||||
| 
 | ||||
| struct LoggerPass : public Pass { | ||||
| 	LoggerPass() : Pass("logger", "set logger properties") { } | ||||
| 	bool formatted_help() override { | ||||
| 		auto *help = PrettyHelp::get_current(); | ||||
| 		help->set_group("passes/status"); | ||||
| 		return false; | ||||
| 	} | ||||
| 	void help() override | ||||
| 	{ | ||||
| 		//   |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
 | ||||
|  |  | |||
|  | @ -20,6 +20,7 @@ | |||
| #include "kernel/yosys.h" | ||||
| #include "kernel/celltypes.h" | ||||
| #include "kernel/sigtools.h" | ||||
| #include "kernel/log_help.h" | ||||
| 
 | ||||
| USING_YOSYS_NAMESPACE | ||||
| PRIVATE_NAMESPACE_BEGIN | ||||
|  | @ -141,6 +142,11 @@ struct LtpWorker | |||
| 
 | ||||
| struct LtpPass : public Pass { | ||||
| 	LtpPass() : Pass("ltp", "print longest topological path") { } | ||||
| 	bool formatted_help() override { | ||||
| 		auto *help = PrettyHelp::get_current(); | ||||
| 		help->set_group("passes/status"); | ||||
| 		return false; | ||||
| 	} | ||||
| 	void help() override | ||||
| 	{ | ||||
| 		//   |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
 | ||||
|  |  | |||
|  | @ -18,6 +18,7 @@ | |||
|  */ | ||||
| 
 | ||||
| #include "kernel/yosys.h" | ||||
| #include "kernel/log_help.h" | ||||
| 
 | ||||
| #ifdef YOSYS_ENABLE_PLUGINS | ||||
| #  include <dlfcn.h> | ||||
|  | @ -122,6 +123,11 @@ void load_plugin(std::string, std::vector<std::string>) | |||
| 
 | ||||
| struct PluginPass : public Pass { | ||||
| 	PluginPass() : Pass("plugin", "load and list loaded plugins") { } | ||||
| 	bool formatted_help() override { | ||||
| 		auto *help = PrettyHelp::get_current(); | ||||
| 		help->set_group("passes/status"); | ||||
| 		return false; | ||||
| 	} | ||||
| 	void help() override | ||||
| 	{ | ||||
| 		//   |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
 | ||||
|  |  | |||
|  | @ -22,6 +22,7 @@ | |||
| #include "kernel/rtlil.h" | ||||
| #include "kernel/utils.h" | ||||
| #include "kernel/celltypes.h" | ||||
| #include "kernel/log_help.h" | ||||
| 
 | ||||
| PRIVATE_NAMESPACE_BEGIN | ||||
| USING_YOSYS_NAMESPACE | ||||
|  | @ -38,6 +39,11 @@ static RTLIL::SigBit canonical_bit(RTLIL::SigBit bit) | |||
| 
 | ||||
| struct PortarcsPass : Pass { | ||||
| 	PortarcsPass() : Pass("portarcs", "derive port arcs for propagation delay") {} | ||||
| 	bool formatted_help() override { | ||||
| 		auto *help = PrettyHelp::get_current(); | ||||
| 		help->set_group("passes/status"); | ||||
| 		return false; | ||||
| 	} | ||||
| 
 | ||||
| 	void help() override | ||||
| 	{ | ||||
|  |  | |||
|  | @ -19,12 +19,18 @@ | |||
| 
 | ||||
| #include "kernel/yosys.h" | ||||
| #include "kernel/sigtools.h" | ||||
| #include "kernel/log_help.h" | ||||
| 
 | ||||
| USING_YOSYS_NAMESPACE | ||||
| PRIVATE_NAMESPACE_BEGIN | ||||
| 
 | ||||
| struct PortlistPass : public Pass { | ||||
| 	PortlistPass() : Pass("portlist", "list (top-level) ports") { } | ||||
| 	bool formatted_help() override { | ||||
| 		auto *help = PrettyHelp::get_current(); | ||||
| 		help->set_group("passes/status"); | ||||
| 		return false; | ||||
| 	} | ||||
| 	void help() override | ||||
| 	{ | ||||
| 		//   |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
 | ||||
|  |  | |||
|  | @ -18,12 +18,18 @@ | |||
|  */ | ||||
| 
 | ||||
| #include "kernel/yosys.h" | ||||
| #include "kernel/log_help.h" | ||||
| 
 | ||||
| USING_YOSYS_NAMESPACE | ||||
| PRIVATE_NAMESPACE_BEGIN | ||||
| 
 | ||||
| struct PrintAttrsPass : public Pass { | ||||
| 	PrintAttrsPass() : Pass("printattrs", "print attributes of selected objects") { } | ||||
| 	bool formatted_help() override { | ||||
| 		auto *help = PrettyHelp::get_current(); | ||||
| 		help->set_group("passes/status"); | ||||
| 		return false; | ||||
| 	} | ||||
| 	void help() override | ||||
| 	{ | ||||
| 		//   |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
 | ||||
|  |  | |||
|  | @ -21,12 +21,10 @@ | |||
| // Tarjan, R. E. (1972), "Depth-first search and linear graph algorithms", SIAM Journal on Computing 1 (2): 146-160, doi:10.1137/0201010
 | ||||
| // http://en.wikipedia.org/wiki/Tarjan's_strongly_connected_components_algorithm
 | ||||
| 
 | ||||
| #include "kernel/register.h" | ||||
| #include "kernel/yosys.h" | ||||
| #include "kernel/celltypes.h" | ||||
| #include "kernel/sigtools.h" | ||||
| #include "kernel/log.h" | ||||
| #include <stdlib.h> | ||||
| #include <stdio.h> | ||||
| #include "kernel/log_help.h" | ||||
| 
 | ||||
| USING_YOSYS_NAMESPACE | ||||
| PRIVATE_NAMESPACE_BEGIN | ||||
|  | @ -252,6 +250,11 @@ struct SccWorker | |||
| 
 | ||||
| struct SccPass : public Pass { | ||||
| 	SccPass() : Pass("scc", "detect strongly connected components (logic loops)") { } | ||||
| 	bool formatted_help() override { | ||||
| 		auto *help = PrettyHelp::get_current(); | ||||
| 		help->set_group("passes/status"); | ||||
| 		return false; | ||||
| 	} | ||||
| 	void help() override | ||||
| 	{ | ||||
| 		//   |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
 | ||||
|  |  | |||
|  | @ -18,15 +18,19 @@ | |||
|  * | ||||
|  */ | ||||
| 
 | ||||
| #include "kernel/register.h" | ||||
| #include "kernel/rtlil.h" | ||||
| #include "kernel/log.h" | ||||
| #include "kernel/yosys.h" | ||||
| #include "kernel/log_help.h" | ||||
| 
 | ||||
| USING_YOSYS_NAMESPACE | ||||
| PRIVATE_NAMESPACE_BEGIN | ||||
| 
 | ||||
| struct ScratchpadPass : public Pass { | ||||
| 	ScratchpadPass() : Pass("scratchpad", "get/set values in the scratchpad") { } | ||||
| 	bool formatted_help() override { | ||||
| 		auto *help = PrettyHelp::get_current(); | ||||
| 		help->set_group("passes/status"); | ||||
| 		return false; | ||||
| 	} | ||||
| 	void help() override | ||||
| 	{ | ||||
| 		//   |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
 | ||||
|  |  | |||
|  | @ -20,8 +20,7 @@ | |||
| #include "kernel/yosys.h" | ||||
| #include "kernel/celltypes.h" | ||||
| #include "kernel/sigtools.h" | ||||
| #include <string.h> | ||||
| #include <errno.h> | ||||
| #include "kernel/log_help.h" | ||||
| 
 | ||||
| USING_YOSYS_NAMESPACE | ||||
| PRIVATE_NAMESPACE_BEGIN | ||||
|  | @ -1085,6 +1084,11 @@ PRIVATE_NAMESPACE_BEGIN | |||
| 
 | ||||
| struct SelectPass : public Pass { | ||||
| 	SelectPass() : Pass("select", "modify and view the list of selected objects") { } | ||||
| 	bool formatted_help() override { | ||||
| 		auto *help = PrettyHelp::get_current(); | ||||
| 		help->set_group("passes/status"); | ||||
| 		return false; | ||||
| 	} | ||||
| 	void help() override | ||||
| 	{ | ||||
| 		//   |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
 | ||||
|  | @ -1664,6 +1668,11 @@ struct SelectPass : public Pass { | |||
| 
 | ||||
| struct CdPass : public Pass { | ||||
| 	CdPass() : Pass("cd", "a shortcut for 'select -module <name>'") { } | ||||
| 	bool formatted_help() override { | ||||
| 		auto *help = PrettyHelp::get_current(); | ||||
| 		help->set_group("passes/status"); | ||||
| 		return false; | ||||
| 	} | ||||
| 	void help() override | ||||
| 	{ | ||||
| 		//   |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
 | ||||
|  | @ -1776,6 +1785,11 @@ static void log_matches(const char *title, Module *module, const T &list) | |||
| 
 | ||||
| struct LsPass : public Pass { | ||||
| 	LsPass() : Pass("ls", "list modules or objects in modules") { } | ||||
| 	bool formatted_help() override { | ||||
| 		auto *help = PrettyHelp::get_current(); | ||||
| 		help->set_group("passes/status"); | ||||
| 		return false; | ||||
| 	} | ||||
| 	void help() override | ||||
| 	{ | ||||
| 		//   |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
 | ||||
|  |  | |||
|  | @ -17,15 +17,18 @@ | |||
|  * | ||||
|  */ | ||||
| 
 | ||||
| #include "kernel/register.h" | ||||
| #include "kernel/rtlil.h" | ||||
| #include "kernel/log.h" | ||||
| #include <stdlib.h> | ||||
| #include "kernel/yosys.h" | ||||
| #include "kernel/log_help.h" | ||||
| 
 | ||||
| USING_YOSYS_NAMESPACE | ||||
| PRIVATE_NAMESPACE_BEGIN | ||||
| struct SetenvPass : public Pass { | ||||
| 	SetenvPass() : Pass("setenv", "set an environment variable") { } | ||||
| 	bool formatted_help() override { | ||||
| 		auto *help = PrettyHelp::get_current(); | ||||
| 		help->set_group("passes/status"); | ||||
| 		return false; | ||||
| 	} | ||||
| 	void help() override | ||||
| 	{ | ||||
| 		//   |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
 | ||||
|  |  | |||
|  | @ -17,10 +17,9 @@ | |||
|  * | ||||
|  */ | ||||
| 
 | ||||
| #include "kernel/register.h" | ||||
| #include "kernel/yosys.h" | ||||
| #include "kernel/celltypes.h" | ||||
| #include "kernel/log.h" | ||||
| #include <string.h> | ||||
| #include "kernel/log_help.h" | ||||
| 
 | ||||
| #ifndef _WIN32 | ||||
| #  include <dirent.h> | ||||
|  | @ -658,6 +657,11 @@ struct ShowWorker | |||
| 
 | ||||
| struct ShowPass : public Pass { | ||||
| 	ShowPass() : Pass("show", "generate schematics using graphviz") { } | ||||
| 	bool formatted_help() override { | ||||
| 		auto *help = PrettyHelp::get_current(); | ||||
| 		help->set_group("passes/status"); | ||||
| 		return false; | ||||
| 	} | ||||
| 	void help() override | ||||
| 	{ | ||||
| 		//   |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
 | ||||
|  |  | |||
|  | @ -21,6 +21,7 @@ | |||
| #include "kernel/yosys.h" | ||||
| #include "kernel/sigtools.h" | ||||
| #include "kernel/timinginfo.h" | ||||
| #include "kernel/log_help.h" | ||||
| #include <deque> | ||||
| 
 | ||||
| USING_YOSYS_NAMESPACE | ||||
|  | @ -275,6 +276,11 @@ struct StaWorker | |||
| 
 | ||||
| struct StaPass : public Pass { | ||||
| 	StaPass() : Pass("sta", "perform static timing analysis") { } | ||||
| 	bool formatted_help() override { | ||||
| 		auto *help = PrettyHelp::get_current(); | ||||
| 		help->set_group("passes/status"); | ||||
| 		return false; | ||||
| 	} | ||||
| 	void help() override | ||||
| 	{ | ||||
| 		//   |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
 | ||||
|  |  | |||
|  | @ -25,6 +25,7 @@ | |||
| #include "kernel/cost.h" | ||||
| #include "kernel/gzip.h" | ||||
| #include "libs/json11/json11.hpp" | ||||
| #include "kernel/log_help.h" | ||||
| 
 | ||||
| USING_YOSYS_NAMESPACE | ||||
| PRIVATE_NAMESPACE_BEGIN | ||||
|  | @ -367,6 +368,11 @@ void read_liberty_cellarea(dict<IdString, cell_area_t> &cell_area, string libert | |||
| 
 | ||||
| struct StatPass : public Pass { | ||||
| 	StatPass() : Pass("stat", "print some statistics") { } | ||||
| 	bool formatted_help() override { | ||||
| 		auto *help = PrettyHelp::get_current(); | ||||
| 		help->set_group("passes/status"); | ||||
| 		return false; | ||||
| 	} | ||||
| 	void help() override | ||||
| 	{ | ||||
| 		//   |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
 | ||||
|  |  | |||
|  | @ -18,15 +18,19 @@ | |||
|  * | ||||
|  */ | ||||
| 
 | ||||
| #include "kernel/register.h" | ||||
| #include "kernel/rtlil.h" | ||||
| #include "kernel/log.h" | ||||
| #include "kernel/yosys.h" | ||||
| #include "kernel/log_help.h" | ||||
| 
 | ||||
| USING_YOSYS_NAMESPACE | ||||
| PRIVATE_NAMESPACE_BEGIN | ||||
| 
 | ||||
| struct TeePass : public Pass { | ||||
| 	TeePass() : Pass("tee", "redirect command output to file") { } | ||||
| 	bool formatted_help() override { | ||||
| 		auto *help = PrettyHelp::get_current(); | ||||
| 		help->set_group("passes/status"); | ||||
| 		return false; | ||||
| 	} | ||||
| 	void help() override | ||||
| 	{ | ||||
| 		//   |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
 | ||||
|  |  | |||
|  | @ -21,12 +21,18 @@ | |||
| #include "kernel/celltypes.h" | ||||
| #include "kernel/sigtools.h" | ||||
| #include "kernel/utils.h" | ||||
| #include "kernel/log_help.h" | ||||
| 
 | ||||
| USING_YOSYS_NAMESPACE | ||||
| PRIVATE_NAMESPACE_BEGIN | ||||
| 
 | ||||
| struct TorderPass : public Pass { | ||||
| 	TorderPass() : Pass("torder", "print cells in topological order") { } | ||||
| 	bool formatted_help() override { | ||||
| 		auto *help = PrettyHelp::get_current(); | ||||
| 		help->set_group("passes/status"); | ||||
| 		return false; | ||||
| 	} | ||||
| 	void help() override | ||||
| 	{ | ||||
| 		//   |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
 | ||||
|  |  | |||
|  | @ -19,6 +19,7 @@ | |||
|  */ | ||||
| 
 | ||||
| #include "kernel/yosys.h" | ||||
| #include "kernel/log_help.h" | ||||
| 
 | ||||
| USING_YOSYS_NAMESPACE | ||||
| PRIVATE_NAMESPACE_BEGIN | ||||
|  | @ -60,6 +61,11 @@ struct TraceMonitor : public RTLIL::Monitor | |||
| 
 | ||||
| struct TracePass : public Pass { | ||||
| 	TracePass() : Pass("trace", "redirect command output to file") { } | ||||
| 	bool formatted_help() override { | ||||
| 		auto *help = PrettyHelp::get_current(); | ||||
| 		help->set_group("passes/status"); | ||||
| 		return false; | ||||
| 	} | ||||
| 	void help() override | ||||
| 	{ | ||||
| 		//   |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
 | ||||
|  | @ -96,6 +102,11 @@ struct TracePass : public Pass { | |||
| 
 | ||||
| struct DebugPass : public Pass { | ||||
| 	DebugPass() : Pass("debug", "run command with debug log messages enabled") { } | ||||
| 	bool formatted_help() override { | ||||
| 		auto *help = PrettyHelp::get_current(); | ||||
| 		help->set_group("passes/status"); | ||||
| 		return false; | ||||
| 	} | ||||
| 	void help() override | ||||
| 	{ | ||||
| 		//   |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
 | ||||
|  |  | |||
|  | @ -19,6 +19,7 @@ | |||
| 
 | ||||
| #include "kernel/yosys.h" | ||||
| #include "kernel/sigtools.h" | ||||
| #include "kernel/log_help.h" | ||||
| 
 | ||||
| #ifndef _WIN32 | ||||
| #  include <dirent.h> | ||||
|  | @ -817,6 +818,11 @@ struct VizWorker | |||
| 
 | ||||
| struct VizPass : public Pass { | ||||
| 	VizPass() : Pass("viz", "visualize data flow graph") { } | ||||
| 	bool formatted_help() override { | ||||
| 		auto *help = PrettyHelp::get_current(); | ||||
| 		help->set_group("passes/status"); | ||||
| 		return false; | ||||
| 	} | ||||
| 	void help() override | ||||
| 	{ | ||||
| 		//   |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
 | ||||
|  |  | |||
|  | @ -19,12 +19,18 @@ | |||
|  */ | ||||
| 
 | ||||
| #include "kernel/yosys.h" | ||||
| #include "kernel/log_help.h" | ||||
| 
 | ||||
| USING_YOSYS_NAMESPACE | ||||
| PRIVATE_NAMESPACE_BEGIN | ||||
| 
 | ||||
| struct WriteFileFrontend : public Frontend { | ||||
| 	WriteFileFrontend() : Frontend("=write_file", "write a text to a file") { } | ||||
| 	bool formatted_help() override { | ||||
| 		auto *help = PrettyHelp::get_current(); | ||||
| 		help->set_group("passes/status"); | ||||
| 		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