axi_dmac: Reset fifo_rd_data without delaying the valid data
parent
960883c789
commit
6900c9979b
|
@ -130,13 +130,8 @@ dmac_data_mover # (
|
||||||
);
|
);
|
||||||
|
|
||||||
always @(posedge clk) begin
|
always @(posedge clk) begin
|
||||||
if ((resetn == 1'b0) || (data_enabled == 1'b0)) begin
|
if (en)
|
||||||
dout <= {DATA_WIDTH{1'b0}};
|
dout <= (data_valid) ? dout_s : {DATA_WIDTH{1'b0}};
|
||||||
end else begin
|
|
||||||
if (data_valid) begin
|
|
||||||
dout <= dout_s;
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
dmac_response_generator # (
|
dmac_response_generator # (
|
||||||
|
|
Loading…
Reference in New Issue