aboutsummaryrefslogtreecommitdiffstats
path: root/generic/examples/simple.py
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-02-12 09:53:50 +0000
committerGitHub <noreply@github.com>2021-02-12 09:53:50 +0000
commit5dfbe703ae26e6af2a1a687c06f001b6788d6fc8 (patch)
tree85a04ec931762d61c0ef668bc404d00bd4c699bc /generic/examples/simple.py
parente376f950fe683b9a744437301a9e09eae1895efa (diff)
parent99e397000c2bc8a80354c31ef259c6715dd142ff (diff)
downloadnextpnr-5dfbe703ae26e6af2a1a687c06f001b6788d6fc8.tar.gz
nextpnr-5dfbe703ae26e6af2a1a687c06f001b6788d6fc8.tar.bz2
nextpnr-5dfbe703ae26e6af2a1a687c06f001b6788d6fc8.zip
Merge pull request #581 from litghost/add_isbelhidden
Add getBelHidden and add some missing "override" statements.
Diffstat (limited to 'generic/examples/simple.py')
-rw-r--r--generic/examples/simple.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/examples/simple.py b/generic/examples/simple.py
index 9379b505..4b7f4025 100644
--- a/generic/examples/simple.py
+++ b/generic/examples/simple.py
@@ -20,13 +20,13 @@ for x in range(X):
if x == y:
continue
for z in range(2):
- ctx.addBel(name="X%dY%d_IO%d" % (x, y, z), type="GENERIC_IOB", loc=Loc(x, y, z), gb=False)
+ ctx.addBel(name="X%dY%d_IO%d" % (x, y, z), type="GENERIC_IOB", loc=Loc(x, y, z), gb=False, hidden=False)
ctx.addBelInput(bel="X%dY%d_IO%d" % (x, y, z), name="I", wire="X%dY%dZ%d_I0" % (x, y, z))
ctx.addBelInput(bel="X%dY%d_IO%d" % (x, y, z), name="EN", wire="X%dY%dZ%d_I1" % (x, y, z))
ctx.addBelOutput(bel="X%dY%d_IO%d" % (x, y, z), name="O", wire="X%dY%dZ%d_Q" % (x, y, z))
else:
for z in range(N):
- ctx.addBel(name="X%dY%d_SLICE%d" % (x, y, z), type="GENERIC_SLICE", loc=Loc(x, y, z), gb=False)
+ ctx.addBel(name="X%dY%d_SLICE%d" % (x, y, z), type="GENERIC_SLICE", loc=Loc(x, y, z), gb=False, hidden=False)
ctx.addBelInput(bel="X%dY%d_SLICE%d" % (x, y, z), name="CLK", wire="X%dY%dZ%d_CLK" % (x, y, z))
for k in range(K):
ctx.addBelInput(bel="X%dY%d_SLICE%d" % (x, y, z), name="I[%d]" % k, wire="X%dY%dZ%d_I%d" % (x, y, z, k))