diff options
author | David Shah <davey1576@gmail.com> | 2018-07-04 15:26:09 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-07-04 15:26:09 +0200 |
commit | 726f2020f140a1f5e89e966e7cbde1d1f79473ba (patch) | |
tree | cd4dd51251c46bf5c17064e7e029e81740406587 /python | |
parent | 11fb625195168c0b6c4d49cfb2a9ed9a70108ccf (diff) | |
download | nextpnr-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.py | 2 |
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() |