Fix tCCD timing which watched the wrong command

This commit is contained in:
2018-08-14 23:55:01 -04:00
parent 16a852bda5
commit 627cccde59
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ class Multiplexer(Module, AutoCSR):
# tCCD timing (Column to Column delay) # tCCD timing (Column to Column delay)
self.tccdcon = tccdcon = tXXDController(settings.timing.tCCD) self.tccdcon = tccdcon = tXXDController(settings.timing.tCCD)
self.submodules += tccdcon self.submodules += tccdcon
self.comb += tccdcon.valid.eq(choose_cmd.accept() & (choose_cmd.write() | choose_cmd.read())) self.comb += tccdcon.valid.eq(choose_req.accept() & (choose_req.write() | choose_req.read()))
# CAS control # CAS control
self.comb += cas_allowed.eq(tccdcon.ready) self.comb += cas_allowed.eq(tccdcon.ready)