mirror of https://github.com/YosysHQ/yosys.git
Add log_wire() API
This commit is contained in:
parent
95dae6d416
commit
63dfdb5d7f
|
@ -488,6 +488,13 @@ void log_cell(RTLIL::Cell *cell, std::string indent)
|
|||
log("%s", buf.str().c_str());
|
||||
}
|
||||
|
||||
void log_wire(RTLIL::Wire *wire, std::string indent)
|
||||
{
|
||||
std::stringstream buf;
|
||||
ILANG_BACKEND::dump_wire(buf, indent, wire);
|
||||
log("%s", buf.str().c_str());
|
||||
}
|
||||
|
||||
// ---------------------------------------------------
|
||||
// This is the magic behind the code coverage counters
|
||||
// ---------------------------------------------------
|
||||
|
|
|
@ -90,6 +90,7 @@ template<typename T> static inline const char *log_id(T *obj) {
|
|||
|
||||
void log_module(RTLIL::Module *module, std::string indent = "");
|
||||
void log_cell(RTLIL::Cell *cell, std::string indent = "");
|
||||
void log_wire(RTLIL::Wire *wire, std::string indent = "");
|
||||
|
||||
#ifndef NDEBUG
|
||||
static inline void log_assert_worker(bool cond, const char *expr, const char *file, int line) {
|
||||
|
|
Loading…
Reference in New Issue