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 931c73d1..2a918ed9 100644
--- a/ice40/chipdb.py
+++ b/ice40/chipdb.py
@@ -712,7 +712,7 @@ class BinaryBlobAssembler:
def finalize(self):
assert not self.finalized
- for s, index in self.strings.items():
+ for s, index in sorted(self.strings.items()):
self.l("str%d" % index, "char")
for c in s:
self.data.append(ord(c))
@@ -947,7 +947,7 @@ for wire in range(num_wires):
if wire in wire_downhill_belports:
num_bels_downhill = len(wire_downhill_belports[wire])
bba.l("wire%d_downbels" % wire, "BelPortPOD")
- for belport in wire_downhill_belports[wire]:
+ for belport in sorted(wire_downhill_belports[wire]):
bba.u32(belport[0], "bel_index")
bba.u32(portpins[belport[1]], "port")
else: