From cc32290c1ff61092bdc82d559dca8c2a812072c8 Mon Sep 17 00:00:00 2001 From: David Shah Date: Thu, 2 Aug 2018 16:15:40 +0200 Subject: [PATCH] ecp5: Write tiletype names in correct order Signed-off-by: David Shah --- ecp5/trellis_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") - 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")