aboutsummaryrefslogtreecommitdiffstats
path: root/nexus/fasm.cc
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-06-10 10:10:26 +0100
committergatecat <gatecat@ds0.me>2021-06-10 10:10:26 +0100
commit13c037cc0847d8eea94dabf719ca17dad69254c9 (patch)
treef938cf7d20dae401f872c6104e6741a2a58b3b63 /nexus/fasm.cc
parent5e18bb173575557eac49e77b9010c90f1a8ca62c (diff)
downloadnextpnr-13c037cc0847d8eea94dabf719ca17dad69254c9.tar.gz
nextpnr-13c037cc0847d8eea94dabf719ca17dad69254c9.tar.bz2
nextpnr-13c037cc0847d8eea94dabf719ca17dad69254c9.zip
nexus: Fix LRAM x coord
Diffstat (limited to 'nexus/fasm.cc')
-rw-r--r--nexus/fasm.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/nexus/fasm.cc b/nexus/fasm.cc
index 48483bfe..548117e9 100644
--- a/nexus/fasm.cc
+++ b/nexus/fasm.cc
@@ -657,6 +657,8 @@ struct NexusFasmWriter
blank();
Loc l = ctx->getBelLocation(bel);
+ if (is_lifcl_17 && l.x == 0)
+ l.x = 1;
push(stringf("IP_LRAM_CORE_R%dC%d", l.y, l.x));
for (int i = 0; i < 128; i++) {
IdString param = ctx->id(stringf("INITVAL_%02X", i));