aboutsummaryrefslogtreecommitdiffstats
path: root/backends/cxxrtl
diff options
context:
space:
mode:
authorwhitequark <whitequark@whitequark.org>2020-04-14 14:37:48 +0000
committerGitHub <noreply@github.com>2020-04-14 14:37:48 +0000
commitd8f2a1fda0876f78a85cb5e1674b6ada8a8726f2 (patch)
treeaf30b7ffd3a2dea84f89c13adcd68e2eb1e645bd /backends/cxxrtl
parent7025881a5e8c4feb077d296f996683094e2a313a (diff)
parent0d0bf9c4a2acd70418670518bf641f7628c92165 (diff)
downloadyosys-d8f2a1fda0876f78a85cb5e1674b6ada8a8726f2.tar.gz
yosys-d8f2a1fda0876f78a85cb5e1674b6ada8a8726f2.tar.bz2
yosys-d8f2a1fda0876f78a85cb5e1674b6ada8a8726f2.zip
Merge pull request #1922 from whitequark/write_cxxrtl-disconnected-outputs
write_cxxrtl: ignore disconnected module ports
Diffstat (limited to 'backends/cxxrtl')
-rw-r--r--backends/cxxrtl/cxxrtl.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/cxxrtl/cxxrtl.cc b/backends/cxxrtl/cxxrtl.cc
index 19c5d903a..3263f03fd 100644
--- a/backends/cxxrtl/cxxrtl.cc
+++ b/backends/cxxrtl/cxxrtl.cc
@@ -974,6 +974,8 @@ struct CxxrtlWorker {
continue;
}
if (cell->output(conn.first)) {
+ if (conn.second.empty())
+ continue; // ignore disconnected ports
f << indent;
dump_sigspec_lhs(conn.second);
f << " = " << mangle(cell) << "." << mangle_wire_name(conn.first) << ".curr;\n";