mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-07 09:55:20 +00:00
cxxrtl: print names of cells inlined in connections.
This commit is contained in:
parent
f75bc6c7aa
commit
d889a3df35
|
@ -911,7 +911,16 @@ struct CxxrtlWorker {
|
||||||
if (for_debug && !is_connect_outlined(conn))
|
if (for_debug && !is_connect_outlined(conn))
|
||||||
return;
|
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;
|
f << indent;
|
||||||
dump_sigspec_lhs(conn.first, for_debug);
|
dump_sigspec_lhs(conn.first, for_debug);
|
||||||
f << " = ";
|
f << " = ";
|
||||||
|
|
Loading…
Reference in a new issue