aboutsummaryrefslogtreecommitdiffstats
path: root/generic/examples/write_fasm.py
diff options
context:
space:
mode:
Diffstat (limited to 'generic/examples/write_fasm.py')
-rw-r--r--generic/examples/write_fasm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/examples/write_fasm.py b/generic/examples/write_fasm.py
index ede8f16b..057e779c 100644
--- a/generic/examples/write_fasm.py
+++ b/generic/examples/write_fasm.py
@@ -29,7 +29,7 @@ def write_fasm(ctx, paramCfg, f):
for nname, net in sorted(ctx.nets, key=lambda x: str(x[1].name)):
print("# Net %s" % nname, file=f)
for wire, pip in sorted(net.wires, key=lambda x: str(x[1])):
- if pip.pip != "":
+ if pip.pip is not None:
print("%s" % pip.pip, file=f)
print("", file=f)
for cname, cell in sorted(ctx.cells, key=lambda x: str(x[1].name)):