1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-01-26 04:02:25 +00:00

python: Fixing builds as importable module

Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
David Shah
2018-06-08 11:17:04 +02:00
parent 7f330af9f3
commit c16a971c0f
5 changed files with 21 additions and 0 deletions

View File

@@ -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))