From 23a99989d18dd0a61e1c083672a51ae8298f1b8d Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Mon, 19 May 2025 09:47:17 +0200 Subject: [PATCH] gatemate: invert output enable for io buffer --- himbaechel/uarch/gatemate/pack_io.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/himbaechel/uarch/gatemate/pack_io.cc b/himbaechel/uarch/gatemate/pack_io.cc index 847c188c..0ea371ce 100644 --- a/himbaechel/uarch/gatemate/pack_io.cc +++ b/himbaechel/uarch/gatemate/pack_io.cc @@ -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();