aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/log.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2017-02-11 11:08:12 +0100
committerClifford Wolf <clifford@clifford.at>2017-02-11 11:08:36 +0100
commit63dfdb5d7fcfb9c0ec2a5352a34cf9119e28766a (patch)
tree322d08190efd3c63731e896d4292c0b296b3f5cb /kernel/log.cc
parent95dae6d416bd9e9ca08fea9ab354b6de7e433fdb (diff)
downloadyosys-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.cc7
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
// ---------------------------------------------------