mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-12 20:18:20 +00:00
tribuf: set scratchpad boolean 'tribuf.added_something'
This commit is contained in:
parent
2666482282
commit
abf99d4dae
|
@ -86,6 +86,7 @@ struct TribufWorker {
|
||||||
cell->unsetPort(ID(S));
|
cell->unsetPort(ID(S));
|
||||||
cell->type = tri_type;
|
cell->type = tri_type;
|
||||||
tribuf_cells[sigmap(cell->getPort(ID::Y))].push_back(cell);
|
tribuf_cells[sigmap(cell->getPort(ID::Y))].push_back(cell);
|
||||||
|
module->design->scratchpad_set_bool("tribuf.added_something", true);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -95,6 +96,7 @@ struct TribufWorker {
|
||||||
cell->unsetPort(ID(S));
|
cell->unsetPort(ID(S));
|
||||||
cell->type = tri_type;
|
cell->type = tri_type;
|
||||||
tribuf_cells[sigmap(cell->getPort(ID::Y))].push_back(cell);
|
tribuf_cells[sigmap(cell->getPort(ID::Y))].push_back(cell);
|
||||||
|
module->design->scratchpad_set_bool("tribuf.added_something", true);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -130,8 +132,10 @@ struct TribufWorker {
|
||||||
|
|
||||||
if (no_tribuf)
|
if (no_tribuf)
|
||||||
module->connect(it.first, muxout);
|
module->connect(it.first, muxout);
|
||||||
else
|
else {
|
||||||
module->addTribuf(NEW_ID, muxout, module->ReduceOr(NEW_ID, pmux_s), it.first);
|
module->addTribuf(NEW_ID, muxout, module->ReduceOr(NEW_ID, pmux_s), it.first);
|
||||||
|
module->design->scratchpad_set_bool("tribuf.added_something", true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue