genlib/misc: fix missing *args in Counter

This commit is contained in:
Florent Kermarrec 2015-03-04 23:49:15 +01:00
parent 3d7f9fd685
commit 06f3c46e35
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ class FlipFlop(Module):
@DecorateModule(InsertCE)
class Counter(Module):
def __init__(self, *args, **kwargs):
self.value = Signal(**kwargs)
self.value = Signal(*args, **kwargs)
self.width = flen(self.value)
self.sync += self.value.eq(self.value+1)