diff options
author | Clifford Wolf <clifford@clifford.at> | 2013-03-03 17:41:09 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2013-03-03 17:41:09 +0100 |
commit | 9368c11144d2766e7d1065f2eddb25e98f9f7fb7 (patch) | |
tree | b9ada40875e547877a9a7536f34e78124f73a800 /kernel | |
parent | afb4fa1aeaebf6736d26293709086ffd5cd1b653 (diff) | |
download | yosys-9368c11144d2766e7d1065f2eddb25e98f9f7fb7.tar.gz yosys-9368c11144d2766e7d1065f2eddb25e98f9f7fb7.tar.bz2 yosys-9368c11144d2766e7d1065f2eddb25e98f9f7fb7.zip |
Handle known inout ports as outputs in show command
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/show.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/show.cc b/kernel/show.cc index 6db963b2a..c556c9914 100644 --- a/kernel/show.cc +++ b/kernel/show.cc @@ -185,7 +185,7 @@ struct ShowWorker std::vector<RTLIL::IdString> in_ports, out_ports; for (auto &conn : it.second->connections) { - if (ct.cell_input(it.second->type, conn.first)) + if (!ct.cell_output(it.second->type, conn.first)) in_ports.push_back(conn.first); else out_ports.push_back(conn.first); @@ -210,7 +210,7 @@ struct ShowWorker std::string code; for (auto &conn : it.second->connections) { code += gen_portbox(stringf("c%d:p%d", id2num(it.first), id2num(conn.first)), - conn.second, !ct.cell_input(it.second->type, conn.first)); + conn.second, ct.cell_output(it.second->type, conn.first)); } #ifdef CLUSTER_CELLS_AND_PORTBOXES |