1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-01-31 05:52:32 +00:00

python: Convert empty BelId to None

Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
David Shah
2018-07-04 15:26:09 +02:00
parent 11fb625195
commit 726f2020f1
5 changed files with 12 additions and 6 deletions

View File

@@ -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()