python: Convert empty BelId to None

Signed-off-by: David Shah <[email protected]>
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
+1 -1
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()