cl = sdram_phy_settings.cl
if sdram_phy_settings.memtype == "SDR":
- bl = sdram_phy_settings.nphases
+ bl = 1
mr = log2_int(bl) + (cl << 4)
reset_dll = 1 << 8
]
elif sdram_phy_settings.memtype == "DDR":
- bl = 2*sdram_phy_settings.nphases
+ bl = 4
mr = log2_int(bl) + (cl << 4)
emr = 0
reset_dll = 1 << 8
]
elif sdram_phy_settings.memtype == "LPDDR":
- bl = 2*sdram_phy_settings.nphases
+ bl = 4
mr = log2_int(bl) + (cl << 4)
emr = 0
reset_dll = 1 << 8
]
elif sdram_phy_settings.memtype == "DDR2":
- bl = 2*sdram_phy_settings.nphases
+ bl = 4
wr = 2
mr = log2_int(bl) + (cl << 4) + (wr << 9)
emr = 0
("Load Extended Mode Register / OCD Exit", emr, 1, cmds["MODE_REGISTER"], 0),
]
elif sdram_phy_settings.memtype == "DDR3":
- bl = 2*sdram_phy_settings.nphases
+ bl = 8
def format_mr0(bl, cl, wr, dll_reset):
bl_to_mr0 = {