projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f75bc6c
)
cxxrtl: print names of cells inlined in connections.
author
whitequark
<whitequark@whitequark.org>
Tue, 15 Dec 2020 03:46:06 +0000
(
03:46
+0000)
committer
whitequark
<whitequark@whitequark.org>
Tue, 15 Dec 2020 11:02:38 +0000
(11:02 +0000)
backends/cxxrtl/cxxrtl_backend.cc
patch
|
blob
|
history
diff --git
a/backends/cxxrtl/cxxrtl_backend.cc
b/backends/cxxrtl/cxxrtl_backend.cc
index 7bf44626aa998e367ca2c00b756900df939108c0..9875aba60a34255f48db71ac8c29696d6cba4c29 100644
(file)
--- 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<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 << " = ";