From 53cb592d19942758488b40cd454be91cfc7a8c3d Mon Sep 17 00:00:00 2001 From: morgan Date: Wed, 8 May 2024 16:14:56 +0800 Subject: [PATCH] kasli soc: add rtio_frequency cfg for runtime --- src/gateware/kasli_soc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gateware/kasli_soc.py b/src/gateware/kasli_soc.py index bb12008..043ea8c 100755 --- a/src/gateware/kasli_soc.py +++ b/src/gateware/kasli_soc.py @@ -135,6 +135,7 @@ class GenericStandalone(SoCCore): ] fix_serdes_timing_path(platform) self.submodules.bootstrap = GTPBootstrapClock(self.platform, clk_freq) + self.config["RTIO_FREQUENCY"] = str(clk_freq/1e6) self.config["CLOCK_FREQUENCY"] = int(clk_freq) self.submodules.sys_crg = zynq_clocking.SYSCRG(self.platform, self.ps7, clk_synth_se_buf) @@ -242,6 +243,7 @@ class GenericMaster(SoCCore): pads=data_pads, clk_freq=clk_freq) self.csr_devices.append("gt_drtio") + self.config["RTIO_FREQUENCY"] = str(clk_freq/1e6) self.config["CLOCK_FREQUENCY"] = int(clk_freq) txout_buf = Signal()