Skip to content

Commit

Permalink
rtlil: Do not create dummy wires when deleting wires in connections
Browse files Browse the repository at this point in the history
  • Loading branch information
povik committed Jan 9, 2024
1 parent f2404d3 commit deb69b8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions kernel/rtlil.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2157,12 +2157,10 @@ void RTLIL::Module::remove(const pool<RTLIL::Wire*> &wires)
}

void operator()(RTLIL::SigSpec &lhs, RTLIL::SigSpec &rhs) {
// When a deleted wire occurs on the lhs we can just remove that part
// If a deleted wire occurs on the lhs or rhs we just remove that part
// of the assignment
lhs.remove2(*wires_p, &rhs);

// Then replace all rhs occurrences with a dummy wire
(*this)(rhs);
rhs.remove2(*wires_p, &lhs);
}
};

Expand Down

0 comments on commit deb69b8

Please sign in to comment.