Fix KEEPER setting

This commit is contained in:
Miodrag Milanovic 2025-08-29 19:47:23 +02:00
parent 878ca1a75c
commit 2af5568e98
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}