aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-07-04 15:26:09 +0200
committerDavid Shah <davey1576@gmail.com>2018-07-04 15:26:09 +0200
commit726f2020f140a1f5e89e966e7cbde1d1f79473ba (patch)
treecd4dd51251c46bf5c17064e7e029e81740406587 /python
parent11fb625195168c0b6c4d49cfb2a9ed9a70108ccf (diff)
downloadnextpnr-726f2020f140a1f5e89e966e7cbde1d1f79473ba.tar.gz
nextpnr-726f2020f140a1f5e89e966e7cbde1d1f79473ba.tar.bz2
nextpnr-726f2020f140a1f5e89e966e7cbde1d1f79473ba.zip
python: Convert empty BelId to None
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'python')
-rw-r--r--python/dump_design.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/dump_design.py b/python/dump_design.py
index c75df9a1..419c7304 100644
--- a/python/dump_design.py
+++ b/python/dump_design.py
@@ -20,6 +20,6 @@ for cell, cinfo in sorted(ctx.cells, key=lambda x: x.first):
val = "{}'b{}".format(len(val), val)
print("\t\t{}: {}".format(param, val))
- if cinfo.bel.index != -1:
+ if cinfo.bel is not None:
print("\tBel: {}".format(cinfo.bel))
print()