diff options
author | whitequark <whitequark@whitequark.org> | 2020-04-14 14:37:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-14 14:37:48 +0000 |
commit | d8f2a1fda0876f78a85cb5e1674b6ada8a8726f2 (patch) | |
tree | af30b7ffd3a2dea84f89c13adcd68e2eb1e645bd /backends | |
parent | 7025881a5e8c4feb077d296f996683094e2a313a (diff) | |
parent | 0d0bf9c4a2acd70418670518bf641f7628c92165 (diff) | |
download | yosys-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')
-rw-r--r-- | backends/cxxrtl/cxxrtl.cc | 2 |
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"; |