Single issue driver is back online
This commit is contained in:
parent
8db176c6b5
commit
cb1bb36b63
@ -98,8 +98,8 @@ begin
|
|||||||
if rising_edge(in_clk) and valid_in = '1' and buffer_full = '0' then
|
if rising_edge(in_clk) and valid_in = '1' and buffer_full = '0' then
|
||||||
write_pointer <= std_logic_vector(unsigned(write_pointer) + 1);
|
write_pointer <= std_logic_vector(unsigned(write_pointer) + 1);
|
||||||
end if;
|
end if;
|
||||||
if rising_edge(out_clk) then
|
if falling_edge(out_clk) then
|
||||||
if ready_in = '1' and buffer_empty = '0' and unsigned(read_pointer) + 1 /= unsigned(write_pointer) then
|
if ready_in = '1' and buffer_empty = '0' then
|
||||||
read_pointer <= std_logic_vector(unsigned(read_pointer) + 1);
|
read_pointer <= std_logic_vector(unsigned(read_pointer) + 1);
|
||||||
valid_out <= '1';
|
valid_out <= '1';
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user