cxxrtl: print names of cells inlined in connections.

This commit is contained in:
whitequark 2020-12-15 03:46:06 +00:00
parent f75bc6c7aa
commit d889a3df35
1 changed files with 10 additions and 1 deletions

View File

@ -911,7 +911,16 @@ struct CxxrtlWorker {
if (for_debug && !is_connect_outlined(conn))
return;
f << indent << "// connection\n";
std::vector<RTLIL::IdString> inlined_cells;
collect_sigspec_rhs(conn.second, inlined_cells);
if (for_debug || inlined_cells.empty()) {
f << indent << "// connection\n";
} else {
f << indent << "// cells";
for (auto inlined_cell : inlined_cells)
f << " " << inlined_cell.str();
f << "\n";
}
f << indent;
dump_sigspec_lhs(conn.first, for_debug);
f << " = ";