mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-14 09:56:16 +00:00
Splitfanout index fix
This commit is contained in:
parent
443613da69
commit
2cf97cf744
1 changed files with 4 additions and 1 deletions
|
@ -136,7 +136,7 @@ struct SplitfanoutWorker
|
||||||
// Configure the driver cell
|
// Configure the driver cell
|
||||||
IdString new_name;
|
IdString new_name;
|
||||||
Cell *new_cell;
|
Cell *new_cell;
|
||||||
if (bit_user_i-- != 0) { // create a new cell
|
if (bit_user_i != 0) { // create a new cell
|
||||||
new_name = module->uniquify(stringf("%s_splfo%d", cell->name.c_str(), bit_user_i));
|
new_name = module->uniquify(stringf("%s_splfo%d", cell->name.c_str(), bit_user_i));
|
||||||
new_cell = module->addCell(new_name, cell);
|
new_cell = module->addCell(new_name, cell);
|
||||||
// Add new cell to the bit_users_db
|
// Add new cell to the bit_users_db
|
||||||
|
@ -173,6 +173,9 @@ struct SplitfanoutWorker
|
||||||
new_cell->setPort(outport, new_wire);
|
new_cell->setPort(outport, new_wire);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Decrement bit user index
|
||||||
|
bit_user_i--;
|
||||||
|
|
||||||
// Log the new cell
|
// Log the new cell
|
||||||
log_debug(" slice %d: %s => %s\n", foi++, log_id(new_name), log_signal(new_cell->getPort(outport)));
|
log_debug(" slice %d: %s => %s\n", foi++, log_id(new_name), log_signal(new_cell->getPort(outport)));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue