From f324f9531af311853d83eb4700af0e08e440e75f Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 1 Feb 2021 13:08:37 +0100 Subject: [PATCH] build/gowin: Don't generate IO_LOC is pin name is X. --- litex/build/gowin/gowin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litex/build/gowin/gowin.py b/litex/build/gowin/gowin.py index 337d2ab93..1b218d2fe 100644 --- a/litex/build/gowin/gowin.py +++ b/litex/build/gowin/gowin.py @@ -26,7 +26,8 @@ def _build_cst(named_sc, named_pc): flat_sc.append((name, pins[0], other)) for name, pin, other in flat_sc: - lines.append(f"IO_LOC \"{name}\" {pin};") + if pin != "X": + lines.append(f"IO_LOC \"{name}\" {pin};") for c in other: if isinstance(c, IOStandard):