soc/cores/hyperbus: Directly specify default sys_clk_freq in __init__.

This commit is contained in:
Florent Kermarrec 2024-08-20 12:04:23 +02:00
parent 8f5c2dfbca
commit 7b413352c2
1 changed files with 1 additions and 3 deletions

View File

@ -44,7 +44,7 @@ class HyperRAM(LiteXModule):
pads (Record) : Platform pads of HyperRAM.
bus (wishbone.Interface) : Wishbone Interface.
"""
def __init__(self, pads, latency=6, latency_mode="variable", sys_clk_freq=None, with_csr=True):
def __init__(self, pads, latency=6, latency_mode="variable", sys_clk_freq=10e6, with_csr=True):
self.pads = pads
self.bus = bus = wishbone.Interface(data_width=32, address_width=32, addressing="word")
@ -128,8 +128,6 @@ class HyperRAM(LiteXModule):
raise ValueError
# Burst Timer ------------------------------------------------------------------------------
if sys_clk_freq is None:
sys_clk_freq = 10e6 # Defaults to 10MHz if not specified.
self.burst_timer = burst_timer = WaitTimer(sys_clk_freq * self.tCSM)
# Clock Generation (sys_clk/4) -------------------------------------------------------------