From: Florent Kermarrec Date: Sat, 28 Mar 2015 00:09:21 +0000 (+0100) Subject: sdram/module: clean up tREFI. (use 64ms/8k or 4k) X-Git-Tag: 24jan2021_ls180~2427 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7fe748e1b0a4e533e16dd6e184e1fde91c92e7ab;p=litex.git sdram/module: clean up tREFI. (use 64ms/8k or 4k) --- diff --git a/misoclib/mem/sdram/module.py b/misoclib/mem/sdram/module.py index d9460387..75daaab2 100644 --- a/misoclib/mem/sdram/module.py +++ b/misoclib/mem/sdram/module.py @@ -13,7 +13,6 @@ # configurations. # - Modules can have different speedgrades, add support for it (and also add # a check to verify clk_freq is in the supported range) -# Try to uniformize tREFI computations between modules from math import ceil @@ -57,7 +56,7 @@ class IS42S16160(SDRAMModule): "tRCD": 20, "tWR": 20, "tWTR": 2, - "tREFI": 7800, + "tREFI": 64*1000*1000/8192, "tRFC": 70 } def __init__(self, clk_freq): @@ -94,7 +93,7 @@ class AS4C16M16(SDRAMModule): "tRCD": 18, "tWR": 12, "tWTR": 2, - "tREFI": 7800, + "tREFI": 64*1000*1000/8192, "tRFC": 60 } def __init__(self, clk_freq): @@ -113,7 +112,7 @@ class MT46V32M16(SDRAMModule): "tRCD": 15, "tWR": 15, "tWTR": 2, - "tREFI": 7800, + "tREFI": 64*1000*1000/8192, "tRFC": 70 } def __init__(self, clk_freq):