mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-08-30 09:58:25 +02:00
python: Fixing builds as importable module
Signed-off-by: David Shah <[email protected]>
This commit is contained in:
@@ -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))
|
||||
Reference in New Issue
Block a user