diff options
author | David Shah <davey1576@gmail.com> | 2018-07-08 11:15:30 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-07-11 10:41:36 +0200 |
commit | bb683d71d698481f472df26747c5332d49d933c1 (patch) | |
tree | a4c81608456b986dd6a066224b92d95bbbd91edb /ecp5/trellis_import.py | |
parent | 6f90c3df6118a857b24ee3ef031b54ef8aa8b7a8 (diff) | |
download | nextpnr-bb683d71d698481f472df26747c5332d49d933c1.tar.gz nextpnr-bb683d71d698481f472df26747c5332d49d933c1.tar.bz2 nextpnr-bb683d71d698481f472df26747c5332d49d933c1.zip |
ecp5: Add 25k database
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ecp5/trellis_import.py')
-rwxr-xr-x | ecp5/trellis_import.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ecp5/trellis_import.py b/ecp5/trellis_import.py index ff86098b..aabcffb1 100755 --- a/ecp5/trellis_import.py +++ b/ecp5/trellis_import.py @@ -602,7 +602,7 @@ def write_database(dev_name, endianness): bba.finalize() return bba -dev_names = {"LFE5U-25F": "25k", "LFE5U-45F": "45k", "LFE5U-85F": "85k"} +dev_names = {"25k": "LFE5U-25F", "45k": "LFE5U-45F", "85k": "LFE5U-85F"} def main(): global max_row, max_col @@ -623,7 +623,7 @@ def main(): portpins[line[1]] = idx print("Initialising chip...") - chip = pytrellis.Chip(args.device) + chip = pytrellis.Chip(dev_names[args.device]) print("Building routing graph...") rg = chip.get_routing_graph() max_row = chip.get_max_row() @@ -646,7 +646,7 @@ def main(): print(" At R{}C{}".format(y, x)) import_location(rg, x, y) print("{} unique location types".format(len(location_types))) - bba = write_database(dev_names[args.device], "le") + bba = write_database(args.device, "le") if args.c_file: |