nexus/fasm: Fix SLICE lettering

Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
David Shah 2020-01-11 20:02:31 +00:00
parent 1ff42e9936
commit ee4e30ce8b

View File

@ -154,7 +154,7 @@ struct NexusFasmWriter
BelId bel = cell->bel; BelId bel = cell->bel;
int z = ctx->bel_data(bel).z; int z = ctx->bel_data(bel).z;
int k = z & 0x1; int k = z & 0x1;
char slice = 'A' + (z >> 8); char slice = 'A' + (z >> 3);
push_tile(bel.tile, id_PLC); push_tile(bel.tile, id_PLC);
push(stringf("SLICE%c", slice)); push(stringf("SLICE%c", slice));
if (cell->params.count(id_INIT)) if (cell->params.count(id_INIT))
@ -172,7 +172,7 @@ struct NexusFasmWriter
BelId bel = cell->bel; BelId bel = cell->bel;
int z = ctx->bel_data(bel).z; int z = ctx->bel_data(bel).z;
int k = z & 0x1; int k = z & 0x1;
char slice = 'A' + (z >> 8); char slice = 'A' + (z >> 3);
push_tile(bel.tile, id_PLC); push_tile(bel.tile, id_PLC);
push(stringf("SLICE%c", slice)); push(stringf("SLICE%c", slice));
push(stringf("FF%d", k)); push(stringf("FF%d", k));