Skip to content

Commit

Permalink
cxxrtl: Prevent wires with input or output ports from being aliased
Browse files Browse the repository at this point in the history
  • Loading branch information
noeamiot committed May 21, 2024
1 parent 1790370 commit edc6236
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backends/cxxrtl/cxxrtl_backend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3263,6 +3263,7 @@ struct CxxrtlWorker {
debug_wire_type = wire_type; // wire is a member

if (!debug_alias) continue;
if (wire->port_input || wire->port_output) continue; // no aliases for inputs and outputs
const RTLIL::Wire *it = wire;
while (flow.is_inlinable(it)) {
log_assert(flow.wire_comb_defs[it].size() == 1);
Expand Down

0 comments on commit edc6236

Please sign in to comment.