mirror of https://github.com/YosysHQ/yosys.git
Try and fix again
This commit is contained in:
parent
c926eeb43a
commit
09beeee38a
|
@ -372,13 +372,12 @@ struct WreduceWorker
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < GetSize(sig); i++) {
|
for (i = 0; i < GetSize(sig); i++) {
|
||||||
if (B.at(i, Sx) != S0 && (sub || A.at(i, Sx) != S0))
|
if (B.at(i, Sx) == S0 && A.at(i, Sx) != Sx)
|
||||||
break;
|
|
||||||
if (B[i] == S0)
|
|
||||||
module->connect(sig[i], A[i]);
|
module->connect(sig[i], A[i]);
|
||||||
else if (A[i] == S0)
|
else if (!sub && A.at(i, Sx) == S0 && B.at(i, Sx) != Sx)
|
||||||
module->connect(sig[i], B[i]);
|
module->connect(sig[i], B[i]);
|
||||||
else log_abort();
|
else
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
if (i > 0) {
|
if (i > 0) {
|
||||||
cell->setPort("\\A", A.extract(i, -1));
|
cell->setPort("\\A", A.extract(i, -1));
|
||||||
|
|
Loading…
Reference in New Issue