From 3da71dedd74b24b915f423f208bf979f8c68dd8c Mon Sep 17 00:00:00 2001 From: mwojcik Date: Tue, 30 Jan 2024 16:17:49 +0800 Subject: [PATCH] kasli_soc: use sed_lanes value from HW description --- src/gateware/kasli_soc.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/gateware/kasli_soc.py b/src/gateware/kasli_soc.py index ddd3eef..426d619 100755 --- a/src/gateware/kasli_soc.py +++ b/src/gateware/kasli_soc.py @@ -160,7 +160,9 @@ class GenericStandalone(SoCCore): self.rtio_channels.append(rtio.LogChannel()) self.submodules.rtio_tsc = rtio.TSC("async", glbl_fine_ts_width=3) - self.submodules.rtio_core = rtio.Core(self.rtio_tsc, self.rtio_channels) + self.submodules.rtio_core = rtio.Core( + self.rtio_tsc, self.rtio_channels, lane_count=description["sed_lanes"] + ) self.csr_devices.append("rtio_core") if self.acpki: @@ -287,7 +289,9 @@ class GenericMaster(SoCCore): self.add_csr_group("drtioaux", drtioaux_csr_group) self.add_memory_group("drtioaux_mem", drtioaux_memory_group) - self.submodules.rtio_core = rtio.Core(self.rtio_tsc, self.rtio_channels) + self.submodules.rtio_core = rtio.Core( + self.rtio_tsc, self.rtio_channels, lane_count=description["sed_lanes"] + ) self.csr_devices.append("rtio_core") if self.acpki: @@ -444,7 +448,9 @@ class GenericSatellite(SoCCore): self.submodules.rtio_dma = dma.DMA(self.ps7.s_axi_hp0) self.csr_devices.append("rtio_dma") - self.submodules.local_io = SyncRTIO(self.rtio_tsc, self.rtio_channels) + self.submodules.local_io = SyncRTIO( + self.rtio_tsc, self.rtio_channels, lane_count=description["sed_lanes"] + ) self.comb += self.drtiosat.async_errors.eq(self.local_io.async_errors) self.submodules.cri_con = rtio.CRIInterconnectShared(