aboutsummaryrefslogtreecommitdiffstats
path: root/generic/examples/simple_timing.py
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2019-08-05 17:28:54 +0100
committerDavid Shah <dave@ds0.me>2019-08-05 17:28:54 +0100
commitebcdfc1ae83eaef8e4a4d7586385eafdf8443386 (patch)
treeb4ae25c38d44280091b9a5c41f6064608ddbb6d5 /generic/examples/simple_timing.py
parentec48f8f464a63dece47e9af903098387088c68c5 (diff)
downloadnextpnr-ebcdfc1ae83eaef8e4a4d7586385eafdf8443386.tar.gz
nextpnr-ebcdfc1ae83eaef8e4a4d7586385eafdf8443386.tar.bz2
nextpnr-ebcdfc1ae83eaef8e4a4d7586385eafdf8443386.zip
generic: New Property interface
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'generic/examples/simple_timing.py')
-rw-r--r--generic/examples/simple_timing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/examples/simple_timing.py b/generic/examples/simple_timing.py
index a955c8d7..2ccb197e 100644
--- a/generic/examples/simple_timing.py
+++ b/generic/examples/simple_timing.py
@@ -4,7 +4,7 @@ for cname, cell in ctx.cells:
if cname in ("$PACKER_GND", "$PACKER_VCC"):
continue
K = int(cell.params["K"])
- if cell.params["FF_USED"] == "1":
+ if int(cell.params["FF_USED"], 2) == 1:
ctx.addCellTimingClock(cell=cname, port="CLK")
for i in range(K):
ctx.addCellTimingSetupHold(cell=cname, port="I[%d]" % i, clock="CLK",