From 9f1d9d357762b8eb8668fd5461fc0d33cbc59812 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Fri, 20 Jun 2025 19:47:51 +0200 Subject: [PATCH] Fixes --- himbaechel/uarch/gatemate/gatemate.cc | 2 +- himbaechel/uarch/gatemate/gen/arch_gen.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/himbaechel/uarch/gatemate/gatemate.cc b/himbaechel/uarch/gatemate/gatemate.cc index 5781a507..a57424fe 100644 --- a/himbaechel/uarch/gatemate/gatemate.cc +++ b/himbaechel/uarch/gatemate/gatemate.cc @@ -127,7 +127,7 @@ Loc GateMateImpl::getRelativeConstraint(Loc &root_loc, IdString id) const child_loc.y = root_loc.y + p->constr_y; child_loc.z = p->constr_z; } else { - log_error("Constrain info not available for pin.\n"); + log_error("Constrain info not available for pin '%s'.\n", id.c_str(ctx)); } } else { log_error("Bel info not available for constraints.\n"); diff --git a/himbaechel/uarch/gatemate/gen/arch_gen.py b/himbaechel/uarch/gatemate/gen/arch_gen.py index 8e3cf04d..b626439e 100644 --- a/himbaechel/uarch/gatemate/gen/arch_gen.py +++ b/himbaechel/uarch/gatemate/gen/arch_gen.py @@ -201,7 +201,7 @@ def main(): bel = tt.create_bel(prim.name, prim.type, prim.z) extra = BelExtraData() for constr in sorted(die.get_pins_constraint(type_name, prim.name, prim.type)): - extra.add_constraints(ch.strs.id(constr.name),constr.rel_x,constr.rel_y,0 if constr.pin_num==2 else 1) + extra.add_constraints(ch.strs.id(constr.name),constr.rel_x,constr.rel_y,4 if constr.pin_num==2 else 5) bel.extra_data = extra for pin in sorted(die.get_primitive_pins(prim.type)): tt.add_bel_pin(bel, pin.name, die.get_pin_connection_name(prim,pin), pin.dir)