diff options
author | gatecat <gatecat@ds0.me> | 2021-12-13 16:04:45 +0000 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2021-12-13 20:22:06 +0000 |
commit | f36188f2e18783ea692f8b6132712a0d1da6b6b7 (patch) | |
tree | d63db5e03f36e4f8598d1bcff0b475660ea57d6b /ecp5/trellis_import.py | |
parent | 8720d79f21ac052138426b3268981ccd1926342a (diff) | |
download | nextpnr-f36188f2e18783ea692f8b6132712a0d1da6b6b7.tar.gz nextpnr-f36188f2e18783ea692f8b6132712a0d1da6b6b7.tar.bz2 nextpnr-f36188f2e18783ea692f8b6132712a0d1da6b6b7.zip |
ecp5: LUT permutation support
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'ecp5/trellis_import.py')
-rwxr-xr-x | ecp5/trellis_import.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ecp5/trellis_import.py b/ecp5/trellis_import.py index 2e76fb74..a586db7b 100755 --- a/ecp5/trellis_import.py +++ b/ecp5/trellis_import.py @@ -426,6 +426,8 @@ def write_database(dev_name, chip, ddrg, endianness): if cls == 1 and "PCS" in snk_name or "DCU" in snk_name or "DCU" in src_name: cls = 2 bba.u8(cls, "pip_type") + bba.u16(arc.lutperm_flags, "lutperm_flags") + bba.u16(0, "padding") if len(loctype.wires) > 0: for wire_idx in range(len(loctype.wires)): wire = loctype.wires[wire_idx] @@ -623,7 +625,7 @@ def main(): # print("Initialising chip...") chip = pytrellis.Chip(dev_names[args.device]) # print("Building routing graph...") - ddrg = pytrellis.make_dedup_chipdb(chip) + ddrg = pytrellis.make_dedup_chipdb(chip, include_lutperm_pips=True) max_row = chip.get_max_row() max_col = chip.get_max_col() process_timing_data() |