diff options
author | Catherine <whitequark@whitequark.org> | 2021-12-16 07:29:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-16 07:29:29 +0000 |
commit | ed4642e18e73e092141b82ef2cad2d7a7f5bd283 (patch) | |
tree | f961dea7af3f159b9c0a7e021821bf15d7d834e8 /backends/cxxrtl/cxxrtl_backend.cc | |
parent | 73eea516135d5070b800d278c44ee411b7e345ba (diff) | |
parent | 7f2ea7d222f159842e391d080a1b5bdc6c5a7006 (diff) | |
download | yosys-ed4642e18e73e092141b82ef2cad2d7a7f5bd283.tar.gz yosys-ed4642e18e73e092141b82ef2cad2d7a7f5bd283.tar.bz2 yosys-ed4642e18e73e092141b82ef2cad2d7a7f5bd283.zip |
Merge pull request #3115 from whitequark/issue-3112
cxxrtl: demote wires not inlinable only in debug_eval to locals
Diffstat (limited to 'backends/cxxrtl/cxxrtl_backend.cc')
-rw-r--r-- | backends/cxxrtl/cxxrtl_backend.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/backends/cxxrtl/cxxrtl_backend.cc b/backends/cxxrtl/cxxrtl_backend.cc index 6623e025e..ba11179c6 100644 --- a/backends/cxxrtl/cxxrtl_backend.cc +++ b/backends/cxxrtl/cxxrtl_backend.cc @@ -2888,15 +2888,16 @@ struct CxxrtlWorker { debug_wire_type = {WireType::INLINE, node->cell}; // wire replaced with cell break; case FlowGraph::Node::Type::CONNECT: - debug_wire_type = {WireType::INLINE, node->connect.second}; // wire replaced with sig + debug_wire_type = {WireType::INLINE, node->connect.second}; // wire replaced with sig break; default: continue; } debug_live_nodes.erase(node); - } else if (wire_type.is_member() || wire_type.is_local()) { + } else if (wire_type.is_member() || wire_type.type == WireType::LOCAL) { debug_wire_type = wire_type; // wire not inlinable } else { - log_assert(wire_type.type == WireType::UNUSED); + log_assert(wire_type.type == WireType::INLINE || + wire_type.type == WireType::UNUSED); if (flow.wire_comb_defs[wire].size() == 0) { if (wire_init.count(wire)) { // wire never modified debug_wire_type = {WireType::CONST, wire_init.at(wire)}; |