mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-19 20:33:39 +00:00
Wire rename
This commit is contained in:
parent
14cfd027b7
commit
d13c70c3c8
1 changed files with 9 additions and 3 deletions
|
@ -405,10 +405,16 @@ struct OptBalanceTreeWorker {
|
||||||
for (auto c : chain_start_cells) {
|
for (auto c : chain_start_cells) {
|
||||||
vector<Cell *> chain = create_chain(c);
|
vector<Cell *> chain = create_chain(c);
|
||||||
if (process_chain(chain)) {
|
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) {
|
for (Cell *cell : chain) {
|
||||||
module->rename(cell, NEW_ID2_SUFFIX("mid_cell"));
|
module->rename(cell, NEW_ID2_SUFFIX("rot_cell"));
|
||||||
log("Renaming cell %s \n", cell->name.c_str());
|
}
|
||||||
|
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);
|
cell_count[cell_type] += GetSize(chain);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue