Merge pull request #841 from gatecat/radiant_pins_x

build/radiant: Skip location constraint for X pins
This commit is contained in:
enjoy-digital 2021-03-08 16:30:22 +01:00 committed by GitHub
commit 834c90b71f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,7 +85,7 @@ def _format_constraint(c):
def _format_ldc(signame, pin, others, resname): def _format_ldc(signame, pin, others, resname):
fmt_c = [_format_constraint(c) for c in ([Pins(pin)] + others)] fmt_c = [_format_constraint(c) for c in ([Pins(pin)] + others) if not isinstance(c, Pins) or c.identifiers[0] != "X"]
ldc = [] ldc = []
for pre, suf in fmt_c: for pre, suf in fmt_c:
ldc.append(pre + signame + suf) ldc.append(pre + signame + suf)