diff options
author | Clifford Wolf <clifford@clifford.at> | 2017-02-11 11:08:12 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2017-02-11 11:08:36 +0100 |
commit | 63dfdb5d7fcfb9c0ec2a5352a34cf9119e28766a (patch) | |
tree | 322d08190efd3c63731e896d4292c0b296b3f5cb /kernel/log.cc | |
parent | 95dae6d416bd9e9ca08fea9ab354b6de7e433fdb (diff) | |
download | yosys-63dfdb5d7fcfb9c0ec2a5352a34cf9119e28766a.tar.gz yosys-63dfdb5d7fcfb9c0ec2a5352a34cf9119e28766a.tar.bz2 yosys-63dfdb5d7fcfb9c0ec2a5352a34cf9119e28766a.zip |
Add log_wire() API
Diffstat (limited to 'kernel/log.cc')
-rw-r--r-- | kernel/log.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/log.cc b/kernel/log.cc index cd16bb344..956d93fd1 100644 --- a/kernel/log.cc +++ b/kernel/log.cc @@ -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 // --------------------------------------------------- |