We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af85b9e commit 9b4f207Copy full SHA for 9b4f207
examples/chatter_clear/chatter_clear.py
@@ -11,7 +11,7 @@
11
def mkChatterClear(length=1024):
12
m = Module("chatter_clear")
13
14
- _length = m.Parameter('length', length)
+ length = m.Parameter('length', length)
15
16
clk = m.Input('CLK')
17
rst = m.Input('RST')
@@ -25,8 +25,8 @@ def mkChatterClear(length=1024):
25
26
seq.add( count(0), cond=din==dout )
27
seq.add( count.inc(), cond=din!=dout )
28
- seq.add( count(0), cond=count==_length )
29
- seq.add( dout(din), cond=count==_length )
+ seq.add( count(0), cond=count==length )
+ seq.add( dout(din), cond=count==length )
30
31
seq.make_always()
32
0 commit comments