Single issue driver is back online

This commit is contained in:
Adam 2025-04-22 19:51:30 +02:00
parent 8db176c6b5
commit cb1bb36b63

View File

@ -98,8 +98,8 @@ begin
if rising_edge(in_clk) and valid_in = '1' and buffer_full = '0' then
write_pointer <= std_logic_vector(unsigned(write_pointer) + 1);
end if;
if rising_edge(out_clk) then
if ready_in = '1' and buffer_empty = '0' and unsigned(read_pointer) + 1 /= unsigned(write_pointer) then
if falling_edge(out_clk) then
if ready_in = '1' and buffer_empty = '0' then
read_pointer <= std_logic_vector(unsigned(read_pointer) + 1);
valid_out <= '1';
else