diff options
author | David Shah <davey1576@gmail.com> | 2018-08-02 16:15:40 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-08-02 16:15:46 +0200 |
commit | cc32290c1ff61092bdc82d559dca8c2a812072c8 (patch) | |
tree | ed0eeaff4fd93a84e7cdb9252d176e71b1e6e346 | |
parent | 2b0bf3f9f80ba79c677505717d008bc00f1a6124 (diff) | |
download | nextpnr-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>
-rwxr-xr-x | ecp5/trellis_import.py | 2 |
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") |