From: whitequark Date: Tue, 15 Dec 2020 03:46:06 +0000 (+0000) Subject: cxxrtl: print names of cells inlined in connections. X-Git-Tag: working-ls180~161^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d889a3df35e539b6dcfbee9c6a98461eca1a0b0e;p=yosys.git cxxrtl: print names of cells inlined in connections. --- diff --git a/backends/cxxrtl/cxxrtl_backend.cc b/backends/cxxrtl/cxxrtl_backend.cc index 7bf44626a..9875aba60 100644 --- a/backends/cxxrtl/cxxrtl_backend.cc +++ b/backends/cxxrtl/cxxrtl_backend.cc @@ -911,7 +911,16 @@ struct CxxrtlWorker { if (for_debug && !is_connect_outlined(conn)) return; - f << indent << "// connection\n"; + std::vector 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 << " = ";