sdram/module: add MT47H128M8 DDR2 (used for a customer)
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Sat, 21 Mar 2015 17:52:10 +0000 (18:52 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Sat, 21 Mar 2015 17:52:10 +0000 (18:52 +0100)
misoclib/mem/sdram/module.py

index e41bced063c3ed1292f170a9056972ddea62beee..d105adb8a75a5b866aad1cf8fb397ea1199cc6a3 100644 (file)
@@ -138,6 +138,23 @@ class MT46H32M16(SDRAMModule):
                        self.timing_settings)
 
 # DDR2
+class MT47H128M8(SDRAMModule):
+       geom_settings = {
+               "nbanks":       8,
+               "nrows":        16384,
+               "ncols":        1024
+       }
+       timing_settings = {
+               "tRP":          15,
+               "tRCD":         15,
+               "tWR":          15,
+               "tWTR":         2,
+               "tREFI":        7800,
+               "tRFC":         127.5
+       }
+       def __init__(self, clk_freq):
+               SDRAMModule.__init__(self, clk_freq, self.geom_settings,
+                       self.timing_settings)
 
 # DDR3
 class MT8JTF12864(SDRAMModule):