From 0ecf4254ecf1f9ea42b74230a7d6686e5afcf97c Mon Sep 17 00:00:00 2001 From: Laszlo Nagy Date: Fri, 25 Sep 2020 07:09:04 +0100 Subject: [PATCH] axi_jesd204_rx: Ignore events if link not enabled When the link is disabled the events can be ignored. This is required by the free running event counter that can catch invalid events during startup cased for example by an invalid link clock. --- library/jesd204/axi_jesd204_rx/axi_jesd204_rx.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/jesd204/axi_jesd204_rx/axi_jesd204_rx.v b/library/jesd204/axi_jesd204_rx/axi_jesd204_rx.v index 2c14b080a..408c88a0e 100755 --- a/library/jesd204/axi_jesd204_rx/axi_jesd204_rx.v +++ b/library/jesd204/axi_jesd204_rx/axi_jesd204_rx.v @@ -162,7 +162,8 @@ sync_event #( assign up_irq_trigger = {3'b0, up_event_unexpected_lane_state_error, - up_event_frame_alignment_error}; + up_event_frame_alignment_error} & + {5{~up_cfg_is_writeable}}; up_axi #( .AXI_ADDRESS_WIDTH (14)