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:
|
||||
count = Signal(max=max(txxd, 2))
|
||||
count = Signal(max=max(txxd+1, 2))
|
||||
self.sync += \
|
||||
If(valid,
|
||||
count.eq(txxd),
|
||||
|
|
Loading…
Reference in New Issue