1
0
mirror of synced 2026-04-05 06:11:11 +00:00

Merge pull request #1922 from whitequark/write_cxxrtl-disconnected-outputs

write_cxxrtl: ignore disconnected module ports
This commit is contained in:
whitequark
2020-04-14 14:37:48 +00:00
committed by GitHub

View File

@@ -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";