diff options
author | Eddie Hung <eddieh@ece.ubc.ca> | 2018-07-30 18:14:40 -0700 |
---|---|---|
committer | Eddie Hung <eddieh@ece.ubc.ca> | 2018-07-30 18:14:40 -0700 |
commit | 46b74696527d3b217070ff4820b537e0b989a00f (patch) | |
tree | da95e6dc441eb8608cd77d1eea218ec9cb5f26fb /python/functions.py | |
parent | 9c45f762c8280b5f7948df15554e54a38a896da2 (diff) | |
parent | 7da64ee167d518641a479cad1b660c608fb3dede (diff) | |
download | nextpnr-46b74696527d3b217070ff4820b537e0b989a00f.tar.gz nextpnr-46b74696527d3b217070ff4820b537e0b989a00f.tar.bz2 nextpnr-46b74696527d3b217070ff4820b537e0b989a00f.zip |
Merge remote-tracking branch 'origin/master' into redist_slack
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") |