aiger2: Fix open-coded constants

This commit is contained in:
Martin Povišer 2024-10-26 08:53:37 +02:00
parent 8c2d1a16d0
commit 598f6c9de9
1 changed files with 1 additions and 1 deletions

View File

@ -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)));