mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
genlib/misc: fix missing *args in Counter
This commit is contained in:
parent
3d7f9fd685
commit
06f3c46e35
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ class FlipFlop(Module):
|
||||||
@DecorateModule(InsertCE)
|
@DecorateModule(InsertCE)
|
||||||
class Counter(Module):
|
class Counter(Module):
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
self.value = Signal(**kwargs)
|
self.value = Signal(*args, **kwargs)
|
||||||
self.width = flen(self.value)
|
self.width = flen(self.value)
|
||||||
self.sync += self.value.eq(self.value+1)
|
self.sync += self.value.eq(self.value+1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue