3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-24 01:25:33 +00:00

Splitfanout index fix

This commit is contained in:
Akash Levy 2025-01-07 01:51:00 -08:00
parent 443613da69
commit 2cf97cf744

View file

@ -136,7 +136,7 @@ struct SplitfanoutWorker
// Configure the driver cell
IdString new_name;
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_cell = module->addCell(new_name, cell);
// Add new cell to the bit_users_db
@ -173,6 +173,9 @@ struct SplitfanoutWorker
new_cell->setPort(outport, new_wire);
}
// Decrement bit user index
bit_user_i--;
// Log the new cell
log_debug(" slice %d: %s => %s\n", foi++, log_id(new_name), log_signal(new_cell->getPort(outport)));
}