From 18e05ec85258bc37baff9028d775c43741725d20 Mon Sep 17 00:00:00 2001 From: gatecat Date: Wed, 12 May 2021 19:51:02 +0100 Subject: mistral: Fix constant trimming Signed-off-by: gatecat --- mistral/constids.inc | 1 + mistral/pack.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mistral/constids.inc b/mistral/constids.inc index 9450d8b1..f1b51ee5 100644 --- a/mistral/constids.inc +++ b/mistral/constids.inc @@ -72,6 +72,7 @@ X(WIRE) X(GND) X(VCC) +X(Y) X(LOC) diff --git a/mistral/pack.cc b/mistral/pack.cc index 2c0ec80f..78657321 100644 --- a/mistral/pack.cc +++ b/mistral/pack.cc @@ -137,7 +137,7 @@ struct MistralPacker CellInfo *ci = cell.second; if (ci->type != id_MISTRAL_NOT && ci->type != id_GND && ci->type != id_VCC) 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); if (out == nullptr) { trim_cells.push_back(ci->name); -- cgit v1.2.3