axi_dmac: src_fifo_inf: Simplify data path

Improves timing a bit

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
main
Lars-Peter Clausen 2014-04-08 10:35:13 +02:00
parent f9ca4fb8be
commit cb630e36a9
1 changed files with 8 additions and 2 deletions

View File

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