diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-07-27 15:40:17 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2016-07-27 15:40:17 +0200 |
commit | a7b07696238dbfd8e4fb5fd41d597200abef4909 (patch) | |
tree | b4416478dfad389f247b49f3f528803f838c2421 /kernel | |
parent | 8537c4d2061db1ee11defc357781c6c534be5b3d (diff) | |
download | yosys-a7b07696238dbfd8e4fb5fd41d597200abef4909.tar.gz yosys-a7b07696238dbfd8e4fb5fd41d597200abef4909.tar.bz2 yosys-a7b07696238dbfd8e4fb5fd41d597200abef4909.zip |
Added "read_verilog -dump_rtlil"
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/log.cc | 7 | ||||
-rw-r--r-- | kernel/log.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/kernel/log.cc b/kernel/log.cc index fe84184a5..12dc453dc 100644 --- a/kernel/log.cc +++ b/kernel/log.cc @@ -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; diff --git a/kernel/log.h b/kernel/log.h index 33e624dcb..f830655c1 100644 --- a/kernel/log.h +++ b/kernel/log.h @@ -85,6 +85,7 @@ template<typename T> static inline const char *log_id(T *obj) { return log_id(obj->name); } +void log_module(RTLIL::Module *module, std::string indent = ""); void log_cell(RTLIL::Cell *cell, std::string indent = ""); #ifndef NDEBUG |