aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-06-19 13:35:01 +0200
committerDavid Shah <davey1576@gmail.com>2018-06-19 13:35:01 +0200
commit7abfd3677318152e1ff70d68a6664422b7efe5e6 (patch)
treeef50675fd3175ae026bc13dfcc9537bf6c5ddb71 /python
parentd2ff5fec0812b149c5938fcc388b8efa033f40e6 (diff)
downloadnextpnr-7abfd3677318152e1ff70d68a6664422b7efe5e6.tar.gz
nextpnr-7abfd3677318152e1ff70d68a6664422b7efe5e6.tar.bz2
nextpnr-7abfd3677318152e1ff70d68a6664422b7efe5e6.zip
ice40: Don't deduplicate local tracks when counting
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'python')
-rw-r--r--python/dump_design.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/dump_design.py b/python/dump_design.py
index 3408ef9d..37309f6f 100644
--- a/python/dump_design.py
+++ b/python/dump_design.py
@@ -1,5 +1,5 @@
# Run ./nextpnr-ice40 --json ice40/blinky.json --run python/dump_design.py
-for cell, cinfo in sorted(design.cells, key=lambda x: x.first):
+for cell, cinfo in sorted(ctx.cells, key=lambda x: x.first):
print("Cell {} : {}".format(cell, cinfo.type))
print("\tPorts:")
for port, pinfo in sorted(cinfo.ports, key=lambda x: x.first):
@@ -21,5 +21,5 @@ for cell, cinfo in sorted(design.cells, key=lambda x: x.first):
print("\t\t{}: {}".format(param, val))
if cinfo.bel.index != -1:
- print("\tBel: {}".format(chip.getBelName(cinfo.bel)))
+ print("\tBel: {}".format(ctx.getBelName(cinfo.bel)))
print()