mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-01-31 05:52:32 +00:00
Global design object working
Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
@@ -1,2 +1,6 @@
|
||||
for cell in design.cells:
|
||||
print(cell.first)
|
||||
# Run ./nextpnr-ice40 --json ice40/blinky.json --file python/dump_design.py
|
||||
for cell in sorted(design.cells, key=lambda x: x.first):
|
||||
print("Cell {} : {}".format(cell.first, cell.second.type))
|
||||
for port in sorted(cell.second.ports, key=lambda x: x.first):
|
||||
dir = (" <-- ", " --> ", " <-> ")[int(port.second.type)]
|
||||
print(" {} {} {}".format(port.first, dir, port.second.net.name))
|
||||
|
||||
Reference in New Issue
Block a user