aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/trellis_import.py
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-07-08 18:25:53 +0200
committerDavid Shah <davey1576@gmail.com>2018-07-11 10:42:09 +0200
commit54f06fdf72307579a6808a051f81a6d67e89f0ff (patch)
treeae45f11d424774cac2ccc90c54e7a44eeb4a31b0 /ecp5/trellis_import.py
parent6cc6113d5a5e3a6463f3e3923efee613acc50579 (diff)
downloadnextpnr-54f06fdf72307579a6808a051f81a6d67e89f0ff.tar.gz
nextpnr-54f06fdf72307579a6808a051f81a6d67e89f0ff.tar.bz2
nextpnr-54f06fdf72307579a6808a051f81a6d67e89f0ff.zip
ecp5: Adding tiletypes to database
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ecp5/trellis_import.py')
-rwxr-xr-xecp5/trellis_import.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ecp5/trellis_import.py b/ecp5/trellis_import.py
index 62aa4d81..6ff929f7 100755
--- a/ecp5/trellis_import.py
+++ b/ecp5/trellis_import.py
@@ -592,6 +592,10 @@ def write_database(dev_name, endianness):
for x in range(0, max_col+1):
bba.u32(type_at_location[x, y], "loctype")
+ bba.l("tiletype_names", "RelPtr<char>")
+ for tt in tiletype_names:
+ bba.s(tt, "name")
+
bba.l("chip_info")
bba.u32(max_col + 1, "width")
bba.u32(max_row + 1, "height")
@@ -599,6 +603,7 @@ def write_database(dev_name, endianness):
bba.u32(len(location_types), "num_location_types")
bba.r("locations", "locations")
bba.r("location_types", "location_type")
+ bba.r("tiletype_names", "tiletype_names")
bba.finalize()
return bba