3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-22 08:35:32 +00:00

Muxpack does not need splitfanout

This commit is contained in:
Alain Dargelas 2025-01-16 11:16:03 -08:00
parent f1890c86b9
commit 088683048b

View file

@ -453,32 +453,6 @@ struct MuxpackWorker
make_sig_chain_next_prev();
find_chain_start_cells(assume_excl);
// Deselect all cells
Pass::call(design, "select -none");
bool has_cell_to_split = false;
for (auto c : chain_start_cells) {
vector<Cell *> chain = create_chain(c);
for (auto cell : chain) {
has_cell_to_split = true;
// Select the cells that are candidate
design->select(module, cell);
}
}
// Clean up
cleanup(false);
// Make sure we dup the cells with fanout, else the resulting
// transform is not logically equivalent
if (has_cell_to_split)
Pass::call(design, "splitfanout");
// Reset selection for other passes
Pass::call(design, "select -clear");
// Recreate sigmap
sigmap.set(module);
make_sig_chain_next_prev();
find_chain_start_cells(assume_excl);
// Make the actual transform
for (auto c : chain_start_cells) {
vector<Cell *> chain = create_chain(c);