axis: Use bin2gray function in async FIFO

Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
Alex Forencich
2025-11-12 17:05:38 -08:00
parent ee31bbf936
commit b4d958d477

View File

@@ -651,7 +651,7 @@ always_ff @(posedge m_clk) begin
mem_rd_valid_pipe_reg[0] <= 1'b1;
rd_ptr_temp = rd_ptr_reg + 1;
rd_ptr_reg <= rd_ptr_temp;
rd_ptr_gray_reg <= rd_ptr_temp ^ (rd_ptr_temp >> 1);
rd_ptr_gray_reg <= bin2gray(rd_ptr_temp);;
end
end