From b896b20e46d902312909d274eda56b9b53b19e44 Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Wed, 2 Dec 2020 13:24:15 +0100 Subject: [PATCH] don't add pins without pad location in constraints file --- litex/build/generic_platform.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/litex/build/generic_platform.py b/litex/build/generic_platform.py index 54b48509b..24fa4720e 100644 --- a/litex/build/generic_platform.py +++ b/litex/build/generic_platform.py @@ -8,6 +8,7 @@ import sys import os +import re from migen.fhdl.structure import Signal, Cat from migen.genlib.record import Record @@ -395,7 +396,8 @@ class GenericPlatform: # resolve signal names in constraints sc = self.constraint_manager.get_sig_constraints() named_sc = [(vns.get_name(sig), pins, others, resource) - for sig, pins, others, resource in sc] + for sig, pins, others, resource in sc + if not re.match(r"^X+$", ''.join(pins))] # resolve signal names in platform commands pc = self.constraint_manager.get_platform_commands() named_pc = []