mirror of https://github.com/m-labs/artiq.git
kasli: only add moninj core if there are probes to monitor
This commit is contained in:
parent
5d31cf2268
commit
4499ef1748
|
@ -133,6 +133,9 @@ class StandaloneBase(MiniSoC, AMPSoC):
|
||||||
[self.rtio.cri, self.rtio_dma.cri],
|
[self.rtio.cri, self.rtio_dma.cri],
|
||||||
[self.rtio_core.cri])
|
[self.rtio_core.cri])
|
||||||
self.register_kernel_cpu_csrdevice("cri_con")
|
self.register_kernel_cpu_csrdevice("cri_con")
|
||||||
|
|
||||||
|
# Only add MonInj core if there is anything to monitor
|
||||||
|
if any([len(c.probes) for c in rtio_channels]):
|
||||||
self.submodules.rtio_moninj = rtio.MonInj(rtio_channels)
|
self.submodules.rtio_moninj = rtio.MonInj(rtio_channels)
|
||||||
self.csr_devices.append("rtio_moninj")
|
self.csr_devices.append("rtio_moninj")
|
||||||
|
|
||||||
|
@ -596,6 +599,8 @@ class MasterBase(MiniSoC, AMPSoC):
|
||||||
fix_serdes_timing_path(platform)
|
fix_serdes_timing_path(platform)
|
||||||
|
|
||||||
def add_rtio(self, rtio_channels):
|
def add_rtio(self, rtio_channels):
|
||||||
|
# Only add MonInj core if there is anything to monitor
|
||||||
|
if any([len(c.probes) for c in rtio_channels]):
|
||||||
self.submodules.rtio_moninj = rtio.MonInj(rtio_channels)
|
self.submodules.rtio_moninj = rtio.MonInj(rtio_channels)
|
||||||
self.csr_devices.append("rtio_moninj")
|
self.csr_devices.append("rtio_moninj")
|
||||||
|
|
||||||
|
@ -785,6 +790,8 @@ class SatelliteBase(BaseSoC):
|
||||||
fix_serdes_timing_path(platform)
|
fix_serdes_timing_path(platform)
|
||||||
|
|
||||||
def add_rtio(self, rtio_channels):
|
def add_rtio(self, rtio_channels):
|
||||||
|
# Only add MonInj core if there is anything to monitor
|
||||||
|
if any([len(c.probes) for c in rtio_channels]):
|
||||||
self.submodules.rtio_moninj = rtio.MonInj(rtio_channels)
|
self.submodules.rtio_moninj = rtio.MonInj(rtio_channels)
|
||||||
self.csr_devices.append("rtio_moninj")
|
self.csr_devices.append("rtio_moninj")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue