1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-02-15 20:36:31 +00:00
This commit is contained in:
Miodrag Milanovic
2025-06-20 19:47:51 +02:00
parent e32f3a3792
commit 9f1d9d3577
2 changed files with 2 additions and 2 deletions

View File

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

View File

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