From 32069858ee0bc196a6a8a18a148c8824ceb87ad9 Mon Sep 17 00:00:00 2001 From: Date: Fri, 10 Aug 2018 20:48:30 -0400 Subject: [PATCH] When auto-precharging assert track_close --- litedram/core/bankmachine.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/litedram/core/bankmachine.py b/litedram/core/bankmachine.py index 1ba61d5..52173a6 100644 --- a/litedram/core/bankmachine.py +++ b/litedram/core/bankmachine.py @@ -144,6 +144,12 @@ class BankMachine(Module): ), track_close.eq(1) ) + fsm.act("AUTOPRECHARGE", + If(self.precharge_timer.done, + NextState("TRP") + ), + track_close.eq(1) + ) fsm.act("ACTIVATE", sel_row_adr.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("TRCD", "REGULAR", settings.timing.tRCD-1) - fsm.delayed_enter("AUTOPRECHARGE", "TRP", precharge_time-1)