mirror of
https://github.com/fpganinja/taxi.git
synced 2025-12-07 00:28:38 -08:00
axis: Use bin2gray function in async FIFO
Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user