mirror of https://github.com/YosysHQ/nextpnr.git
Fixes
This commit is contained in:
parent
1ab73d4b7c
commit
994afb2261
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue