From 1cde20273a48b0716cf1b3206edaff716fc78097 Mon Sep 17 00:00:00 2001 From: David Shah Date: Mon, 30 Jul 2018 15:58:13 +0200 Subject: python: Remove obsolete python_mod_test.py Signed-off-by: David Shah --- python/python_mod_test.py | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 python/python_mod_test.py (limited to 'python') diff --git a/python/python_mod_test.py b/python/python_mod_test.py deleted file mode 100644 index e7a8de94..00000000 --- a/python/python_mod_test.py +++ /dev/null @@ -1,7 +0,0 @@ -# Run: PYTHONPATH=. python3 python/python_mod_test.py -from nextpnrpy_ice40 import Chip, ChipArgs, iCE40Type -args = ChipArgs() -args.type = iCE40Type.HX1K -chip = Chip(args) -for wire in chip.getWires(): - print(chip.getWireName(wire)) -- cgit v1.2.3 From 66a5b99f02b41c415911a7f2e045d167699cd82f Mon Sep 17 00:00:00 2001 From: David Shah Date: Mon, 30 Jul 2018 16:47:52 +0200 Subject: python: Remove more dead files Signed-off-by: David Shah --- python/functions.py | 21 --------------------- python/python_test.py | 2 -- 2 files changed, 23 deletions(-) delete mode 100644 python/functions.py delete mode 100644 python/python_test.py (limited to 'python') 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") diff --git a/python/python_test.py b/python/python_test.py deleted file mode 100644 index 31d066b2..00000000 --- a/python/python_test.py +++ /dev/null @@ -1,2 +0,0 @@ -for wire in chip.getWires(): - print(chip.getWireName(wire)) -- cgit v1.2.3