32 FsmInfoPass() :
Pass(
"fsm_info",
"print information on finite state machines") { }
37 log(
" fsm_info [selection]\n");
39 log(
"This pass dumps all internal information on FSM cells. It can be useful for\n");
40 log(
"analyzing the synthesis process and is called automatically by the 'fsm'\n");
41 log(
"pass so that this information is included in the synthesis log file.\n");
46 log_header(
"Executing FSM_INFO pass (dumping all available information on FSM cells).\n");
49 for (
auto &mod_it : design->
modules_)
51 for (
auto &cell_it : mod_it.second->cells_)
52 if (cell_it.second->type ==
"$fsm" && design->
selected(mod_it.second, cell_it.second)) {
54 log(
"FSM `%s' from module `%s':\n", cell_it.second->name.c_str(), mod_it.first.c_str());
57 fsm_data.log_info(cell_it.second);
bool selected(T1 *module) const
void log_header(const char *format,...)
virtual void execute(std::vector< std::string > args, RTLIL::Design *design)
#define PRIVATE_NAMESPACE_BEGIN
#define PRIVATE_NAMESPACE_END
#define USING_YOSYS_NAMESPACE
std::map< RTLIL::IdString, RTLIL::Module * > modules_
void log(const char *format,...)
void copy_from_cell(RTLIL::Cell *cell)
void extra_args(std::vector< std::string > args, size_t argidx, RTLIL::Design *design, bool select=true)