From aa4de790459f3d46b7ea68a2ae59f80ee34fabf5 Mon Sep 17 00:00:00 2001 From: Laszlo Nagy Date: Thu, 3 Sep 2020 17:02:48 +0100 Subject: [PATCH] jesd204/jesd204_rx: Ignore frame alignment errors if lane is not in DATA phase If the lane looses synchronization due invalid characters or disparity error the lane alignment monitor checks random input which results in irrelevant reporting of frame alignment error. --- library/jesd204/jesd204_rx/jesd204_rx.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/jesd204/jesd204_rx/jesd204_rx.v b/library/jesd204/jesd204_rx/jesd204_rx.v index b533197c6..8575d6ef4 100755 --- a/library/jesd204/jesd204_rx/jesd204_rx.v +++ b/library/jesd204/jesd204_rx/jesd204_rx.v @@ -400,7 +400,7 @@ for (i = 0; i < NUM_LANES; i = i + 1) begin: gen_lane if(ENABLE_FRAME_ALIGN_CHECK) begin : gen_frame_align_err_thresh always @(posedge clk) begin if (status_lane_frame_align_err_cnt[8*i+7:8*i] >= cfg_frame_align_err_threshold) begin - frame_align_err_thresh_met[i] <= 1'b1; + frame_align_err_thresh_met[i] <= cgs_ready[i]; event_frame_alignment_error_per_lane[i] <= ~frame_align_err_thresh_met[i]; end else begin frame_align_err_thresh_met[i] <= 1'b0;