mirror of
https://github.com/enjoy-digital/litedram.git
synced 2025-01-04 09:52:25 -05:00
gen: use sys_clk_freq for SDRAMPHYModel timings, instead of 100MHz.
This commit is contained in:
parent
2b0f806c96
commit
5aad6cd3d1
1 changed files with 2 additions and 3 deletions
|
@ -557,15 +557,14 @@ class LiteDRAMCore(SoCCore):
|
|||
# Sim.
|
||||
if isinstance(platform, SimPlatform):
|
||||
from litex.tools.litex_sim import get_sdram_phy_settings
|
||||
sdram_clk_freq = int(100e6) # FIXME: use 100MHz timings
|
||||
phy_settings = get_sdram_phy_settings(
|
||||
memtype = sdram_module.memtype,
|
||||
data_width = core_config["sdram_module_nb"]*8,
|
||||
clk_freq = sdram_clk_freq)
|
||||
clk_freq = sys_clk_freq)
|
||||
self.submodules.ddrphy = sdram_phy = SDRAMPHYModel(
|
||||
module = sdram_module,
|
||||
settings = phy_settings,
|
||||
clk_freq = sdram_clk_freq)
|
||||
clk_freq = sys_clk_freq)
|
||||
|
||||
# GENSDRPHY.
|
||||
elif core_config["sdram_phy"] in [litedram_phys.GENSDRPHY]:
|
||||
|
|
Loading…
Reference in a new issue