Skip to content

Commit

Permalink
Splitfanout index fix
Browse files Browse the repository at this point in the history
  • Loading branch information
akashlevy committed Jan 7, 2025
1 parent 443613d commit 2cf97cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion passes/cmds/splitfanout.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)));
}
Expand Down

0 comments on commit 2cf97cf

Please sign in to comment.