aboutsummaryrefslogtreecommitdiffstats
path: root/mistral
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-05-12 19:51:02 +0100
committergatecat <gatecat@ds0.me>2021-05-15 14:54:33 +0100
commit18e05ec85258bc37baff9028d775c43741725d20 (patch)
treec20836c48b1e3dfdb6e95afa8e36649338c9d675 /mistral
parentbacba274a2edf4bf8cb05b109388e6e18ca5fc16 (diff)
downloadnextpnr-18e05ec85258bc37baff9028d775c43741725d20.tar.gz
nextpnr-18e05ec85258bc37baff9028d775c43741725d20.tar.bz2
nextpnr-18e05ec85258bc37baff9028d775c43741725d20.zip
mistral: Fix constant trimming
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'mistral')
-rw-r--r--mistral/constids.inc1
-rw-r--r--mistral/pack.cc2
2 files changed, 2 insertions, 1 deletions
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);