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 <lars@metafoo.de>
main
Lars-Peter Clausen 2014-09-16 20:57:55 +02:00
parent a3dbd5ac00
commit de0edc2083
1 changed files with 2 additions and 2 deletions

View File

@ -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