Fix overflow bug from code review

This commit is contained in:
John Sully 2018-09-23 11:01:58 +02:00
parent 8447d69326
commit c028786702
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -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),