aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-08-02 17:23:44 +0200
committerGitHub <noreply@github.com>2018-08-02 17:23:44 +0200
commit109035e621aad5f567195f485ff4406721e44ac9 (patch)
treefca88fa16f58209d7bf09488da0accbc97b8ceca /ecp5
parent34a42342ff84a1277fb8e898367fffa494a548ac (diff)
parentcc32290c1ff61092bdc82d559dca8c2a812072c8 (diff)
downloadnextpnr-109035e621aad5f567195f485ff4406721e44ac9.tar.gz
nextpnr-109035e621aad5f567195f485ff4406721e44ac9.tar.bz2
nextpnr-109035e621aad5f567195f485ff4406721e44ac9.zip
Merge pull request #19 from daveshah1/ecp5_fix_tiletypes
ecp5: Write tiletype names in correct order
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")