Merge pull request #19 from daveshah1/ecp5_fix_tiletypes

ecp5: Write tiletype names in correct order
This commit is contained in:
David Shah 2018-08-02 17:23:44 +02:00 committed by GitHub
commit 109035e621
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")