When auto-precharging assert track_close

This commit is contained in:
2018-08-10 20:48:30 -04:00
parent 74279ea26a
commit 32069858ee
1 changed files with 6 additions and 1 deletions

View File

@ -144,6 +144,12 @@ class BankMachine(Module):
), ),
track_close.eq(1) track_close.eq(1)
) )
fsm.act("AUTOPRECHARGE",
If(self.precharge_timer.done,
NextState("TRP")
),
track_close.eq(1)
)
fsm.act("ACTIVATE", fsm.act("ACTIVATE",
sel_row_adr.eq(1), sel_row_adr.eq(1),
track_open.eq(1), track_open.eq(1),
@ -166,4 +172,3 @@ class BankMachine(Module):
) )
fsm.delayed_enter("TRP", "ACTIVATE", settings.timing.tRP-1) fsm.delayed_enter("TRP", "ACTIVATE", settings.timing.tRP-1)
fsm.delayed_enter("TRCD", "REGULAR", settings.timing.tRCD-1) fsm.delayed_enter("TRCD", "REGULAR", settings.timing.tRCD-1)
fsm.delayed_enter("AUTOPRECHARGE", "TRP", precharge_time-1)