genlib/misc: fix missing *args in Counter
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 4 Mar 2015 22:49:15 +0000 (23:49 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 4 Mar 2015 22:49:15 +0000 (23:49 +0100)
migen/genlib/misc.py

index 340de13a9acdb58392fa1dc20e8345b5b2fb81d0..cffb372d700e967f57fab02745d00069b1d3c478 100644 (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)