diff options
author | gatecat <gatecat@ds0.me> | 2021-12-30 09:08:02 +0000 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2021-12-30 11:54:08 +0000 |
commit | 59874188a6800fbaa03ec21e3578160e963c2eb5 (patch) | |
tree | 28463b159ce424cdf7780174f1fffb421d04bf88 /generic/examples | |
parent | c272d28e575bde2675a6ae7090a0d5f0f4c9c88f (diff) | |
download | nextpnr-59874188a6800fbaa03ec21e3578160e963c2eb5.tar.gz nextpnr-59874188a6800fbaa03ec21e3578160e963c2eb5.tar.bz2 nextpnr-59874188a6800fbaa03ec21e3578160e963c2eb5.zip |
generic: Refactor for faster performance
This won't affect Python-built arches significantly; but will be useful
for the future 'viaduct' functionality where generic routing graphs can
be built on the C++ side; too.
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'generic/examples')
-rw-r--r-- | generic/examples/write_fasm.py | 2 |
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)): |