mirror of https://github.com/YosysHQ/yosys.git
aiger2: Fix open-coded constants
This commit is contained in:
parent
8c2d1a16d0
commit
598f6c9de9
|
@ -387,7 +387,7 @@ struct Index {
|
||||||
if (/* 4 input types */ cell->type.in(ID($_AOI4_), ID($_OAI4_)))
|
if (/* 4 input types */ cell->type.in(ID($_AOI4_), ID($_OAI4_)))
|
||||||
d = visit(cursor, cell->getPort(ID::D)[obit]);
|
d = visit(cursor, cell->getPort(ID::D)[obit]);
|
||||||
else
|
else
|
||||||
d = cell->type == ID($_AOI3_) ? 1 : 0;
|
d = cell->type == ID($_AOI3_) ? CTRUE : CFALSE;
|
||||||
|
|
||||||
if (/* aoi */ cell->type.in(ID($_AOI3_), ID($_AOI4_)))
|
if (/* aoi */ cell->type.in(ID($_AOI3_), ID($_AOI4_)))
|
||||||
return NOT(OR(AND(a, b), AND(c, d)));
|
return NOT(OR(AND(a, b), AND(c, d)));
|
||||||
|
|
Loading…
Reference in New Issue