diff options
author | David Shah <davey1576@gmail.com> | 2018-07-19 12:04:35 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-07-19 12:04:35 +0200 |
commit | 0cb9ec0757c635982e0bd64f3e314786762c7483 (patch) | |
tree | ef755bdec8c9d9e5c63c036bb1cd6c51f7cfe7b8 /ice40 | |
parent | d221e90706915c8ba540805167c8e9e07d4c3d6f (diff) | |
download | nextpnr-0cb9ec0757c635982e0bd64f3e314786762c7483.tar.gz nextpnr-0cb9ec0757c635982e0bd64f3e314786762c7483.tar.bz2 nextpnr-0cb9ec0757c635982e0bd64f3e314786762c7483.zip |
ice40: Add virtual padin wires for intoscs and GB_IOs
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ice40')
-rw-r--r-- | ice40/chipdb.py | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/ice40/chipdb.py b/ice40/chipdb.py index 55ca1c1f..329fef56 100644 --- a/ice40/chipdb.py +++ b/ice40/chipdb.py @@ -159,7 +159,7 @@ def wire_type(name): name = name.split('/')[-1] wt = None - if name.startswith("glb_netwk_"): + if name.startswith("glb_netwk_") or name.startswith("padin_"): wt = "GLOBAL" elif name.startswith("D_IN_") or name.startswith("D_OUT_"): wt = "LOCAL" @@ -432,6 +432,19 @@ with open(args.filename, "r") as f: extra_cells[mode[1]].append((line[0], (int(line[1]), int(line[2]), line[3]))) continue +def add_wire(x, y, name): + global num_wires + wire_idx = num_wires + num_wires = num_wires + 1 + wname = (x, y, name) + wire_names[wname] = wire_idx + wire_names_r[wire_idx] = wname + wire_segments[wire_idx] = dict() + +# Add virtual padin wires +for i in range(8): + add_wire(0, 0, "padin_%d" % i) + def add_bel_input(bel, wire, port): if wire not in wire_downhill_belports: wire_downhill_belports[wire] = set() |