Fix ice40 gfx wire indices
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
cbfb030264
commit
44663fa589
@ -77,7 +77,7 @@ with open(args.gfxh) as f:
|
|||||||
state = 1
|
state = 1
|
||||||
elif state == 1 and line.startswith("};"):
|
elif state == 1 and line.startswith("};"):
|
||||||
state = 0
|
state = 0
|
||||||
elif state == 1 and line.startswith("{"):
|
elif state == 1 and (line.startswith("{") or line.strip() == ""):
|
||||||
pass
|
pass
|
||||||
elif state == 1:
|
elif state == 1:
|
||||||
idx = len(gfx_wire_ids)
|
idx = len(gfx_wire_ids)
|
||||||
|
Loading…
Reference in New Issue
Block a user