1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-01-11 23:53:21 +00:00

gatemate: invert output enable for io buffer

This commit is contained in:
Miodrag Milanovic 2025-05-19 09:47:17 +02:00
parent 27594f904f
commit 23a99989d1

View File

@ -503,7 +503,9 @@ void GateMatePacker::pack_io_sel()
Loc root_loc = ctx->getBelLocation(ci.bel);
for (int i = 0; i < 4; i++) {
move_ram_o_fixed(&ci, ctx->idf("OUT%d", i + 1), root_loc);
CellInfo *cpe = move_ram_o_fixed(&ci, ctx->idf("OUT%d", i + 1), root_loc);
if (cpe && i == 2)
cpe->params[id_INIT_L10] = Property(0b0101, 4); // Invert CPE out for output enable (OUT3)
}
}
flush_cells();