aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/chipdb.py
diff options
context:
space:
mode:
Diffstat (limited to 'ice40/chipdb.py')
-rw-r--r--ice40/chipdb.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ice40/chipdb.py b/ice40/chipdb.py
index 97bc3183..f52a2283 100644
--- a/ice40/chipdb.py
+++ b/ice40/chipdb.py
@@ -73,10 +73,12 @@ with open(args.portspins) as f:
with open(args.gfxh) as f:
state = 0
for line in f:
- if state == 0 and line.startswith("enum GfxTileWireId "):
+ if state == 0 and line.startswith("enum GfxTileWireId"):
state = 1
elif state == 1 and line.startswith("};"):
state = 0
+ elif state == 1 and line.startswith("{"):
+ pass
elif state == 1:
idx = len(gfx_wire_ids)
name = line.strip().rstrip(",")