Skip to content

Commit

Permalink
util_axis_fifo: Add KEEP synthesis attribute for zerodeep CDC
Browse files Browse the repository at this point in the history
Vivado synthesis is optimizing out the zerodeep block, resulting untreated
clock domain crossing. Set KEEP attribute for the registers.
  • Loading branch information
Istvan Csomortani authored and Csomi committed Jan 19, 2021
1 parent 235fb48 commit d82f61b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/util_axis_fifo/util_axis_fifo.v
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ generate if (ADDRESS_WIDTH == 0) begin : zerodeep /* it's not a real FIFO, just

if (ASYNC_CLK) begin

reg [DATA_WIDTH-1:0] cdc_sync_fifo_ram;
(* KEEP = "yes" *) reg [DATA_WIDTH-1:0] cdc_sync_fifo_ram;
reg s_axis_waddr = 1'b0;
reg m_axis_raddr = 1'b0;

Expand Down

0 comments on commit d82f61b

Please sign in to comment.