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
parent
a3dbd5ac00
commit
de0edc2083
|
@ -108,12 +108,12 @@ begin
|
||||||
if (enable) begin
|
if (enable) begin
|
||||||
if (en) begin
|
if (en) begin
|
||||||
valid <= 1'b1;
|
valid <= 1'b1;
|
||||||
end else if (ready) begin
|
end else if (ready || ~xfer_req) begin
|
||||||
valid <= 1'b0;
|
valid <= 1'b0;
|
||||||
end
|
end
|
||||||
overflow <= en & valid & ~ready;
|
overflow <= en & valid & ~ready;
|
||||||
end else begin
|
end else begin
|
||||||
if (ready)
|
if (ready || ~xfer_req)
|
||||||
valid <= 1'b0;
|
valid <= 1'b0;
|
||||||
overflow <= en;
|
overflow <= en;
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue