Skip to content

Commit 23a9998

Browse files
committed
gatemate: invert output enable for io buffer
1 parent 27594f9 commit 23a9998

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

himbaechel/uarch/gatemate/pack_io.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,9 @@ void GateMatePacker::pack_io_sel()
503503

504504
Loc root_loc = ctx->getBelLocation(ci.bel);
505505
for (int i = 0; i < 4; i++) {
506-
move_ram_o_fixed(&ci, ctx->idf("OUT%d", i + 1), root_loc);
506+
CellInfo *cpe = move_ram_o_fixed(&ci, ctx->idf("OUT%d", i + 1), root_loc);
507+
if (cpe && i == 2)
508+
cpe->params[id_INIT_L10] = Property(0b0101, 4); // Invert CPE out for output enable (OUT3)
507509
}
508510
}
509511
flush_cells();

0 commit comments

Comments
 (0)