diff options
author | Sergiusz Bazanski <q3k@q3k.org> | 2018-08-01 00:22:09 +0100 |
---|---|---|
committer | Sergiusz Bazanski <q3k@q3k.org> | 2018-08-01 00:22:09 +0100 |
commit | 6241052e115695e7f47029a7e2058607dfe20e07 (patch) | |
tree | 3176b0813405a9b93ba26ff8dd5294ddfa75d68c /python/functions.py | |
parent | cc0ffee3fe53371915a1aa583878b15a57f9e390 (diff) | |
parent | bf78c055953256c4f67a6a670db7c970da2ce161 (diff) | |
download | nextpnr-6241052e115695e7f47029a7e2058607dfe20e07.tar.gz nextpnr-6241052e115695e7f47029a7e2058607dfe20e07.tar.bz2 nextpnr-6241052e115695e7f47029a7e2058607dfe20e07.zip |
Merge branch 'master' into q3k/treemodel-fast
Diffstat (limited to 'python/functions.py')
-rw-r--r-- | python/functions.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/python/functions.py b/python/functions.py deleted file mode 100644 index 8d2e2fb8..00000000 --- a/python/functions.py +++ /dev/null @@ -1,21 +0,0 @@ -def get_drivers(wire): - wid = chip.getWireByName(wire) - assert not wid.nil(), "wire {} not found".format(wire) - bp = chip.getBelPinUphill(wid) - if not bp.bel.nil(): - print("Bel pin: {}.{}".format(chip.getBelName(bp.bel), str(bp.pin))) - for pip in sorted(chip.getPipsUphill(wid), key=lambda x: x.index): - print("Pip: {}".format(chip.getWireName(chip.getPipSrcWire(pip)))) - - -def get_loads(wire): - wid = chip.getWireByName(wire) - assert not wid.nil(), "wire {} not found".format(wire) - for bp in sorted(chip.getBelPinsDownhill(wid), key=lambda x: (x.bel.index, x.pin)): - print("Bel pin: {}.{}".format(chip.getBelName(bp.bel), str(bp.pin))) - for pip in sorted(chip.getPipsDownhill(wid), key=lambda x: x.index): - print("Pip: {}".format(chip.getWireName(chip.getPipDstWire(pip)))) - - -#get_drivers("12_14_lutff_7/in_3") -#get_loads("12_14_lutff_global/clk") |