mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-22 22:03:40 +00:00
Added "read_verilog -dump_rtlil"
This commit is contained in:
parent
8537c4d206
commit
a7b0769623
5 changed files with 38 additions and 9 deletions
|
@ -427,6 +427,13 @@ const char *log_id(RTLIL::IdString str)
|
|||
return p+1;
|
||||
}
|
||||
|
||||
void log_module(RTLIL::Module *module, std::string indent)
|
||||
{
|
||||
std::stringstream buf;
|
||||
ILANG_BACKEND::dump_module(buf, indent, module, module->design, false);
|
||||
log("%s", buf.str().c_str());
|
||||
}
|
||||
|
||||
void log_cell(RTLIL::Cell *cell, std::string indent)
|
||||
{
|
||||
std::stringstream buf;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue