Skip to content

Commit

Permalink
[Genesys2] Fixed for optional MonInj
Browse files Browse the repository at this point in the history
  • Loading branch information
kaolpr committed Jan 16, 2023
1 parent 76e26a4 commit da67334
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions artiq/gateware/targets/digilent_genesys2.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,11 @@ def add_rtio(self, rtio_channels):
[self.rtio.cri, self.rtio_dma.cri],
[self.rtio_core.cri])
self.register_kernel_cpu_csrdevice("cri_con")
self.submodules.rtio_moninj = rtio.MonInj(rtio_channels)
self.csr_devices.append("rtio_moninj")

# 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.csr_devices.append("rtio_moninj")

self.platform.add_period_constraint(self.rtio_crg.cd_rtio.clk, 8.)
self.platform.add_false_path_constraints(
Expand Down

0 comments on commit da67334

Please sign in to comment.