sdram/module: clean up tREFI. (use 64ms/8k or 4k)
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Sat, 28 Mar 2015 00:09:21 +0000 (01:09 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Sat, 28 Mar 2015 00:09:21 +0000 (01:09 +0100)
misoclib/mem/sdram/module.py

index d946038774380f6f2191fb6f06fc6a366b5e9613..75daaab2bd9f31d5a87f08683553723600f57fdc 100644 (file)
@@ -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):