Skip to content

Commit

Permalink
Merge pull request #606 from litex-hub/ti60_f225_hyperram_update
Browse files Browse the repository at this point in the history
ti60_f225_dev_kit: Update to new HyperRAM core with 2:1 ratio.
  • Loading branch information
enjoy-digital authored Aug 30, 2024
2 parents fd4f9ac + e7d00a8 commit 737e993
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions litex_boards/targets/efinix_titanium_ti60_f225_dev_kit.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@

class _CRG(LiteXModule):
def __init__(self, platform, sys_clk_freq):
self.rst = Signal()
self.cd_sys = ClockDomain()
self.rst = Signal()
self.cd_sys = ClockDomain()
self.cd_sys2x = ClockDomain()
self.cd_sys2x_ps = ClockDomain()

# # #

Expand All @@ -43,8 +45,9 @@ def __init__(self, platform, sys_clk_freq):
# (integer) of the reference clock. If all your system clocks do not fall within
# this range, you should dedicate one unused clock for CLKOUT0.
pll.create_clkout(None, 25e6)

pll.create_clkout(self.cd_sys, sys_clk_freq, with_reset=True)
pll.create_clkout(self.cd_sys, sys_clk_freq, phase=0, with_reset=True)
pll.create_clkout(self.cd_sys2x, 2 * sys_clk_freq, phase=0, with_reset=True)
pll.create_clkout(self.cd_sys2x_ps, 2 * sys_clk_freq, phase=315, with_reset=True)

# BaseSoC ------------------------------------------------------------------------------------------

Expand Down Expand Up @@ -93,7 +96,14 @@ def __init__(self, sys_clk_freq=200e6,
self.add_config("L2_SIZE", hyperram_cache_size)

# HyperRAM Core.
self.hyperram = HyperRAM(platform.request("hyperram"), latency=7, latency_mode="variable", sys_clk_freq=sys_clk_freq)
self.hyperram = HyperRAM(
pads = platform.request("hyperram"),
latency = 7,
latency_mode = "variable",
sys_clk_freq = sys_clk_freq,
clk_ratio = "2:1",
dq_i_cd = "sys2x_ps",
)
self.comb += self.hyperram_cache.slave.connect(self.hyperram.bus)

# Ethernet / Etherbone ---------------------------------------------------------------------
Expand Down

0 comments on commit 737e993

Please sign in to comment.