mistral: Fix constant trimming

Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
gatecat 2021-05-12 19:51:02 +01:00
parent bacba274a2
commit 18e05ec852
2 changed files with 2 additions and 1 deletions

View File

@ -72,6 +72,7 @@ X(WIRE)
X(GND) X(GND)
X(VCC) X(VCC)
X(Y)
X(LOC) X(LOC)

View File

@ -137,7 +137,7 @@ struct MistralPacker
CellInfo *ci = cell.second; CellInfo *ci = cell.second;
if (ci->type != id_MISTRAL_NOT && ci->type != id_GND && ci->type != id_VCC) if (ci->type != id_MISTRAL_NOT && ci->type != id_GND && ci->type != id_VCC)
continue; continue;
IdString port = (ci->type == id_MISTRAL_NOT) ? id_Q : ci->type; IdString port = (ci->type == id_MISTRAL_NOT) ? id_Q : id_Y;
NetInfo *out = get_net_or_empty(ci, port); NetInfo *out = get_net_or_empty(ci, port);
if (out == nullptr) { if (out == nullptr) {
trim_cells.push_back(ci->name); trim_cells.push_back(ci->name);