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

Try again

This commit is contained in:
Akash Levy 2024-08-21 23:21:00 -07:00
parent 7f52eb0be8
commit 0ba088e5ed

View file

@ -152,7 +152,7 @@ struct MuxpackWorker
b_sig = sigmap(cell->getPort(ID::B));
SigSpec y_sig = sigmap(cell->getPort(ID::Y));
if (sig_chain_next.count(a_sig))
if (sig_chain_next.count(a_sig) && !a_sig.is_fully_const())
for (auto a_bit : a_sig.bits())
sigbit_with_non_chain_users.insert(a_bit);
else {
@ -161,7 +161,7 @@ struct MuxpackWorker
}
if (!b_sig.empty()) {
if (sig_chain_next.count(b_sig))
if (sig_chain_next.count(b_sig) && !b_sig.is_fully_const())
for (auto b_bit : b_sig.bits())
sigbit_with_non_chain_users.insert(b_bit);
else {