aboutsummaryrefslogtreecommitdiffstats
path: root/python_test.py
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-06-01 15:53:46 +0200
committerDavid Shah <davey1576@gmail.com>2018-06-02 13:48:28 +0200
commitd3f74eb0567b557f261018131a04ab5eed3ddb7e (patch)
tree1b94a959b8b607b5ae026a74235456db0f992816 /python_test.py
parentf353453a7faa8c7fa87acfac161cdcbebfae04d1 (diff)
downloadnextpnr-d3f74eb0567b557f261018131a04ab5eed3ddb7e.tar.gz
nextpnr-d3f74eb0567b557f261018131a04ab5eed3ddb7e.tar.bz2
nextpnr-d3f74eb0567b557f261018131a04ab5eed3ddb7e.zip
Simple Python test working
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'python_test.py')
-rw-r--r--python_test.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/python_test.py b/python_test.py
new file mode 100644
index 00000000..1a6ebfc6
--- /dev/null
+++ b/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))