Skip to content

Commit 9b4f207

Browse files
committed
parameter name is changed
1 parent af85b9e commit 9b4f207

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/chatter_clear/chatter_clear.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
def mkChatterClear(length=1024):
1212
m = Module("chatter_clear")
1313

14-
_length = m.Parameter('length', length)
14+
length = m.Parameter('length', length)
1515

1616
clk = m.Input('CLK')
1717
rst = m.Input('RST')
@@ -25,8 +25,8 @@ def mkChatterClear(length=1024):
2525

2626
seq.add( count(0), cond=din==dout )
2727
seq.add( count.inc(), cond=din!=dout )
28-
seq.add( count(0), cond=count==_length )
29-
seq.add( dout(din), cond=count==_length )
28+
seq.add( count(0), cond=count==length )
29+
seq.add( dout(din), cond=count==length )
3030

3131
seq.make_always()
3232

0 commit comments

Comments
 (0)