diff --git a/library/axi_dmac/src_fifo_inf.v b/library/axi_dmac/src_fifo_inf.v index bffb2c26a..4663c4bd1 100644 --- a/library/axi_dmac/src_fifo_inf.v +++ b/library/axi_dmac/src_fifo_inf.v @@ -90,6 +90,14 @@ begin end end +always @(posedge clk) +begin + if (en) begin + buffer <= din; + buffer_sync <= sync; + end +end + always @(posedge clk) begin if (resetn == 1'b0) begin @@ -98,8 +106,6 @@ begin end else begin if (enable) begin if (en) begin - buffer <= din; - buffer_sync <= sync; valid <= 1'b1; end else if (ready) begin valid <= 1'b0;