nexus: Fix LRAM x coord

This commit is contained in:
gatecat 2021-06-10 10:10:26 +01:00
parent 5e18bb1735
commit 13c037cc08

View File

@ -657,6 +657,8 @@ struct NexusFasmWriter
blank(); blank();
Loc l = ctx->getBelLocation(bel); 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)); push(stringf("IP_LRAM_CORE_R%dC%d", l.y, l.x));
for (int i = 0; i < 128; i++) { for (int i = 0; i < 128; i++) {
IdString param = ctx->id(stringf("INITVAL_%02X", i)); IdString param = ctx->id(stringf("INITVAL_%02X", i));