From de0edc2083818de8c086b1535a4f5d36684f2300 Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Tue, 16 Sep 2014 20:57:55 +0200 Subject: [PATCH] axi_dmac: src_fifo_inf: Clear pipeline when no transfers are active Clear the pipeline when no transfers are active to make sure that we do not get residual data on the first sample for the next transfer. Signed-off-by: Lars-Peter Clausen --- library/axi_dmac/src_fifo_inf.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/axi_dmac/src_fifo_inf.v b/library/axi_dmac/src_fifo_inf.v index e72618004..fedf7fb54 100644 --- a/library/axi_dmac/src_fifo_inf.v +++ b/library/axi_dmac/src_fifo_inf.v @@ -108,12 +108,12 @@ begin if (enable) begin if (en) begin valid <= 1'b1; - end else if (ready) begin + end else if (ready || ~xfer_req) begin valid <= 1'b0; end overflow <= en & valid & ~ready; end else begin - if (ready) + if (ready || ~xfer_req) valid <= 1'b0; overflow <= en; end