Skip to content

Commit

Permalink
Wire rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Alain Dargelas committed Jan 14, 2025
1 parent 14cfd02 commit d13c70c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions passes/opt/opt_balance_tree.cc
Original file line number Diff line number Diff line change
Expand Up @@ -405,10 +405,16 @@ struct OptBalanceTreeWorker {
for (auto c : chain_start_cells) {
vector<Cell *> chain = create_chain(c);
if (process_chain(chain)) {
// Rename cells for formal check to pass as cells signals have changed functionalities post rotation
// Rename cells and wires for formal check to pass as cells signals have changed functionalities post rotation
for (Cell *cell : chain) {
module->rename(cell, NEW_ID2_SUFFIX("mid_cell"));
log("Renaming cell %s \n", cell->name.c_str());
module->rename(cell, NEW_ID2_SUFFIX("rot_cell"));
}
for (Cell *cell : chain) {
SigSpec y_sig = sigmap(cell->getPort(ID::Y));
Wire *wire = y_sig.as_wire();
if (wire && !wire->port_input && !wire->port_output) {
module->rename(y_sig.as_wire(), NEW_ID2_SUFFIX("rot_wire"));
}
}
}
cell_count[cell_type] += GetSize(chain);
Expand Down

0 comments on commit d13c70c

Please sign in to comment.