From 1ca5abc91e080c2ca635f9df5691e539a2ec5b0e Mon Sep 17 00:00:00 2001 From: Laszlo Nagy Date: Mon, 31 Jan 2022 15:34:25 +0000 Subject: [PATCH] common/up_xfer_cntrl: Fix transfer done timing up_xfer_done should signalize when a previous control set is transferred to the other clock domain and the current control set is latched. If a bit from the up_data_cntrl changes, it should stay in that state until the up_xfer_done asserts. --- library/common/up_xfer_cntrl.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/common/up_xfer_cntrl.v b/library/common/up_xfer_cntrl.v index 3a6307cdb..38db9d3eb 100644 --- a/library/common/up_xfer_cntrl.v +++ b/library/common/up_xfer_cntrl.v @@ -91,7 +91,7 @@ module up_xfer_cntrl #( up_xfer_state_m2 <= up_xfer_state_m1; up_xfer_state <= up_xfer_state_m2; up_xfer_count <= up_xfer_count + 1'd1; - up_xfer_done_int <= (up_xfer_count == 6'd1) ? ~up_xfer_enable_s : 1'b0; + up_xfer_done_int <= (up_xfer_count == 6'd0) ? ~up_xfer_enable_s : 1'b0; if ((up_xfer_count == 6'd1) && (up_xfer_enable_s == 1'b0)) begin up_xfer_toggle <= ~up_xfer_toggle; up_xfer_data <= up_data_cntrl;