aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-08-02 16:15:40 +0200
committerDavid Shah <davey1576@gmail.com>2018-08-02 16:15:46 +0200
commitcc32290c1ff61092bdc82d559dca8c2a812072c8 (patch)
treeed0eeaff4fd93a84e7cdb9252d176e71b1e6e346 /ecp5
parent2b0bf3f9f80ba79c677505717d008bc00f1a6124 (diff)
downloadnextpnr-cc32290c1ff61092bdc82d559dca8c2a812072c8.tar.gz
nextpnr-cc32290c1ff61092bdc82d559dca8c2a812072c8.tar.bz2
nextpnr-cc32290c1ff61092bdc82d559dca8c2a812072c8.zip
ecp5: Write tiletype names in correct order
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ecp5')
-rwxr-xr-xecp5/trellis_import.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ecp5/trellis_import.py b/ecp5/trellis_import.py
index d60ab6f4..99e9078f 100755
--- a/ecp5/trellis_import.py
+++ b/ecp5/trellis_import.py
@@ -275,7 +275,7 @@ def write_database(dev_name, chip, ddrg, endianness):
bba.l("tiletype_names", "RelPtr<char>")
- for tt in tiletype_names:
+ for tt, idx in sorted(tiletype_names.items(), key=lambda x: x[1]):
bba.s(tt, "name")
bba.l("chip_info")