Deterministic chipdb blobs
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
297a013e4d
commit
6ffae27aa1
@ -331,7 +331,7 @@ class BinaryBlobAssembler:
|
|||||||
|
|
||||||
def finalize(self):
|
def finalize(self):
|
||||||
assert not self.finalized
|
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")
|
self.l("str%d" % index, "char")
|
||||||
for c in s:
|
for c in s:
|
||||||
self.data.append(ord(c))
|
self.data.append(ord(c))
|
||||||
|
@ -712,7 +712,7 @@ class BinaryBlobAssembler:
|
|||||||
|
|
||||||
def finalize(self):
|
def finalize(self):
|
||||||
assert not self.finalized
|
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")
|
self.l("str%d" % index, "char")
|
||||||
for c in s:
|
for c in s:
|
||||||
self.data.append(ord(c))
|
self.data.append(ord(c))
|
||||||
@ -947,7 +947,7 @@ for wire in range(num_wires):
|
|||||||
if wire in wire_downhill_belports:
|
if wire in wire_downhill_belports:
|
||||||
num_bels_downhill = len(wire_downhill_belports[wire])
|
num_bels_downhill = len(wire_downhill_belports[wire])
|
||||||
bba.l("wire%d_downbels" % wire, "BelPortPOD")
|
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(belport[0], "bel_index")
|
||||||
bba.u32(portpins[belport[1]], "port")
|
bba.u32(portpins[belport[1]], "port")
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user