aboutsummaryrefslogtreecommitdiffstats
path: root/passes/sat/expose.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-05-29 10:26:55 +0200
committerClifford Wolf <clifford@clifford.at>2014-05-29 10:26:55 +0200
commit61883b30f3ea0cd22d08519bc93c73f6e193bd65 (patch)
treec513abc708a19889f561d5df2875b6bd53e92fd9 /passes/sat/expose.cc
parent68c059565a3b75808e74eb481f14cb7f0c907f37 (diff)
parent278085fa01a9013051fbec842314cb6b5642e9bb (diff)
downloadyosys-61883b30f3ea0cd22d08519bc93c73f6e193bd65.tar.gz
yosys-61883b30f3ea0cd22d08519bc93c73f6e193bd65.tar.bz2
yosys-61883b30f3ea0cd22d08519bc93c73f6e193bd65.zip
Merge pull request #36 from hansiglaser/master
Various changes merged
Diffstat (limited to 'passes/sat/expose.cc')
-rw-r--r--passes/sat/expose.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/passes/sat/expose.cc b/passes/sat/expose.cc
index 2ac7b35f6..831a43aa5 100644
--- a/passes/sat/expose.cc
+++ b/passes/sat/expose.cc
@@ -259,6 +259,8 @@ struct ExposePass : public Pass {
bool flag_evert_dff = false;
std::string sep = ".";
+ log_header("Executing EXPOSE pass (exposing internal signals as outputs).\n");
+
size_t argidx;
for (argidx = 1; argidx < args.size(); argidx++)
{
@@ -629,7 +631,7 @@ struct ExposePass : public Pass {
w->port_input = true;
add_new_wire(module, w);
- log("New module port: %s/%s\n", RTLIL::id2cstr(module->name), RTLIL::id2cstr(w->name));
+ log("New module port: %s/%s (%s)\n", RTLIL::id2cstr(module->name), RTLIL::id2cstr(w->name), RTLIL::id2cstr(cell->type));
RTLIL::SigSpec sig;
if (cell->connections.count(p->name) != 0)
@@ -654,7 +656,7 @@ struct ExposePass : public Pass {
w->port_input = true;
add_new_wire(module, w);
- log("New module port: %s/%s\n", RTLIL::id2cstr(module->name), RTLIL::id2cstr(w->name));
+ log("New module port: %s/%s (%s)\n", RTLIL::id2cstr(module->name), RTLIL::id2cstr(w->name), RTLIL::id2cstr(cell->type));
if (w->port_input)
module->connections.push_back(RTLIL::SigSig(it.second, w));
@@ -667,7 +669,7 @@ struct ExposePass : public Pass {
}
for (auto &it : delete_cells) {
- log("Removing cell: %s/%s\n", RTLIL::id2cstr(module->name), RTLIL::id2cstr(it));
+ log("Removing cell: %s/%s (%s)\n", RTLIL::id2cstr(module->name), RTLIL::id2cstr(it), RTLIL::id2cstr(module->cells.at(it)->type));
delete module->cells.at(it);
module->cells.erase(it);
}