From f0de06091ecdf854cfffc47638df705cb64755e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Boczar?= Date: Wed, 24 Mar 2021 10:09:13 +0100 Subject: [PATCH] core/refresher: use A10=1 for all banks REF This is needed because newer DRAMs like LPDDR4 or DDR5 have separate commands for per-bank refresh and all banks refresh. Other DRAM types ignore address for REF commands. --- litedram/core/refresher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litedram/core/refresher.py b/litedram/core/refresher.py index 6adb14b..6c92a74 100644 --- a/litedram/core/refresher.py +++ b/litedram/core/refresher.py @@ -50,7 +50,7 @@ class RefreshExecuter(Module): ]), # Auto Refresh after tRP (trp, [ - cmd.a.eq( 0), + cmd.a.eq( 2**10), # all banks in LPDDR4/DDR5, ignored in other memories cmd.ba.eq( 0), cmd.cas.eq(1), cmd.ras.eq(1),