core/bankmachine: fix cas_count size when tccd == 1

This commit is contained in:
Florent Kermarrec 2018-07-17 17:41:10 +02:00
parent f4ad65e3c4
commit 6d96bcc1e7
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ class BankMachine(Module):
cas_allowed = Signal(reset=1)
tccd = settings.timing.tCCD
if tccd is not None:
cas_count = Signal(max=tccd)
cas_count = Signal(max=tccd+1)
self.sync += \
If(cas,
cas_count.eq(tccd-1)