aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-06-02 13:33:45 +0200
committerDavid Shah <davey1576@gmail.com>2018-06-02 13:48:28 +0200
commit363ddd0f3c6e1e2f9e5caf2851ffcacf32765437 (patch)
treecdba5841cdcbfe126dfd088b8bf6906d33fd4282 /python
parentd3f74eb0567b557f261018131a04ab5eed3ddb7e (diff)
downloadnextpnr-363ddd0f3c6e1e2f9e5caf2851ffcacf32765437.tar.gz
nextpnr-363ddd0f3c6e1e2f9e5caf2851ffcacf32765437.tar.bz2
nextpnr-363ddd0f3c6e1e2f9e5caf2851ffcacf32765437.zip
Python bindings working on both architectures
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'python')
-rw-r--r--python/python_test.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/python_test.py b/python/python_test.py
new file mode 100644
index 00000000..1a6ebfc6
--- /dev/null
+++ b/python/python_test.py
@@ -0,0 +1,6 @@
+from nextpnrpy_ice40 import Chip, ChipArgs, iCE40Type
+args = ChipArgs()
+args.type = iCE40Type.LP384
+chip = Chip(args)
+for wire in chip.getWires():
+ print(chip.getWireName(wire))