From 2af5568e9857e4a9157d327f0d1c25f841f4e208 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Fri, 29 Aug 2025 19:47:23 +0200 Subject: [PATCH] Fix KEEPER setting --- himbaechel/uarch/gatemate/pack_io.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/himbaechel/uarch/gatemate/pack_io.cc b/himbaechel/uarch/gatemate/pack_io.cc index 111b7e3e..e6300c7e 100644 --- a/himbaechel/uarch/gatemate/pack_io.cc +++ b/himbaechel/uarch/gatemate/pack_io.cc @@ -233,11 +233,11 @@ void GateMatePacker::pack_io() ci.params[id_SLEW] = Property(Property::State::S1); int keeper = int_or_default(ci.params, id_KEEPER, 0); + ci.unsetParam(id_KEEPER); if (keeper && (int_or_default(ci.params, id_PULLUP, 0) + int_or_default(ci.params, id_PULLDOWN, 0) > 1)) log_error("PULLUP/PULLDOWN and KEEPER are mutually exclusive parameters, issue for '%s' cell.\n", ci.name.c_str(ctx)); if (keeper) { - ci.unsetParam(id_KEEPER); ci.params[id_PULLUP] = Property(Property::State::S1); ci.params[id_PULLDOWN] = Property(Property::State::S1); }