diff options
author | David Shah <davey1576@gmail.com> | 2018-06-08 11:17:04 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-06-08 11:17:04 +0200 |
commit | c16a971c0fe5980a2d6da23e7d3d6d917cb9dc67 (patch) | |
tree | 7258aa4dbe3ff282ecc3a8ed12ff088a06c35a07 /python | |
parent | 7f330af9f397ab121e11723bdf7b976630b7e450 (diff) | |
download | nextpnr-c16a971c0fe5980a2d6da23e7d3d6d917cb9dc67.tar.gz nextpnr-c16a971c0fe5980a2d6da23e7d3d6d917cb9dc67.tar.bz2 nextpnr-c16a971c0fe5980a2d6da23e7d3d6d917cb9dc67.zip |
python: Fixing builds as importable module
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'python')
-rw-r--r-- | python/python_mod_test.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/python/python_mod_test.py b/python/python_mod_test.py new file mode 100644 index 00000000..e7a8de94 --- /dev/null +++ b/python/python_mod_test.py @@ -0,0 +1,7 @@ +# 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)) |