Fix overflow bug from code review
This commit is contained in:
parent
8447d69326
commit
c028786702
Binary file not shown.
|
@ -136,7 +136,7 @@ class tXXDController(Module):
|
||||||
# # #
|
# # #
|
||||||
|
|
||||||
if txxd is not None:
|
if txxd is not None:
|
||||||
count = Signal(max=max(txxd, 2))
|
count = Signal(max=max(txxd+1, 2))
|
||||||
self.sync += \
|
self.sync += \
|
||||||
If(valid,
|
If(valid,
|
||||||
count.eq(txxd),
|
count.eq(txxd),
|
||||||
|
|
Loading…
Reference in New Issue