core/controller: fix burst_length regression introduced by #206.
This commit is contained in:
parent
c4ac887ec2
commit
f51052f8b7
|
@ -45,7 +45,10 @@ class ControllerSettings(Settings):
|
|||
class LiteDRAMController(Module):
|
||||
def __init__(self, phy_settings, geom_settings, timing_settings, clk_freq,
|
||||
controller_settings=ControllerSettings()):
|
||||
burst_length = phy_settings.nphases * (1 if phy_settings.memtype == "SDR" else 2)
|
||||
if phy_settings.memtype == "SDR":
|
||||
burst_length = phy_settings.nphases
|
||||
else:
|
||||
burst_length = burst_lengths[phy_settings.memtype]
|
||||
address_align = log2_int(burst_length)
|
||||
|
||||
# Settings ---------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue