Auto precharge is too pessimistic, it will wait on its own for a valid time to execute

This commit is contained in:
John Sully 2018-09-23 20:55:24 +02:00
parent 177d7393f9
commit 79b1421878
1 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ class BankMachine(Module):
self.comb += [
If(cmd_buffer_lookahead.source.valid & cmd_buffer.source.valid,
If(slicer.row(cmd_buffer_lookahead.source.addr) != slicer.row(cmd_buffer.source.addr),
auto_precharge.eq((track_close == 0) & precharge_allowed)
auto_precharge.eq(track_close == 0)
)
)
]
@ -167,7 +167,7 @@ class BankMachine(Module):
track_close.eq(1)
)
fsm.act("AUTOPRECHARGE",
If(precharge_timer.done,
If(precharge_timer.done & precharge_allowed,
NextState("TRP")
),
track_close.eq(1)