aboutsummaryrefslogtreecommitdiffstats
path: root/generic/examples
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-12-30 13:12:20 +0000
committerGitHub <noreply@github.com>2021-12-30 13:12:20 +0000
commitd65c629fb0da55a8aa897d615551442e6be740d0 (patch)
tree28463b159ce424cdf7780174f1fffb421d04bf88 /generic/examples
parentc272d28e575bde2675a6ae7090a0d5f0f4c9c88f (diff)
parent59874188a6800fbaa03ec21e3578160e963c2eb5 (diff)
downloadnextpnr-d65c629fb0da55a8aa897d615551442e6be740d0.tar.gz
nextpnr-d65c629fb0da55a8aa897d615551442e6be740d0.tar.bz2
nextpnr-d65c629fb0da55a8aa897d615551442e6be740d0.zip
Merge pull request #889 from YosysHQ/gatecat/generic-refactor
generic: Refactor for faster performance
Diffstat (limited to 'generic/examples')
-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)):