build/gowin: Don't generate IO_LOC is pin name is X.

This commit is contained in:
Florent Kermarrec 2021-02-01 13:08:37 +01:00
parent fd33e360fb
commit f324f9531a
1 changed files with 2 additions and 1 deletions

View File

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