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, 2 insertions, 2 deletions
diff --git a/ice40/chipdb.py b/ice40/chipdb.py
index eec7aad0..9e783dd0 100644
--- a/ice40/chipdb.py
+++ b/ice40/chipdb.py
@@ -108,7 +108,7 @@ for wire in range(num_wires):
wireinfo.append(info)
-print("extern WireInfo wire_data_%s[%d];" % (dev_name, num_wires))
-print("WireInfo wire_data_%s[%d] = {" % (dev_name, num_wires))
+print("int num_wires_%s = %d;" % (dev_name, num_wires))
+print("WireInfoPOD wire_data_%s[%d] = {" % (dev_name, num_wires))
print(",\n".join(wireinfo))
print("};")