Forum Discussion
Altera_Forum
Honored Contributor
15 years agoAltera FIFO Megafunction
Hi, i've got a question! How do you work with the altera FIFO megafunction? I don't know how to handle the FIFO, because the status signals are updated one or two clock cycles after reading/wri...
Altera_Forum
Honored Contributor
10 years ago --- Quote Start --- you should only moniter the signals on the side of the FIFO you are looking at, you should never anticipate when data will be ready. On the write side of the fifo, you can keep writing on every clock cycle until it is full (and you can set a nearly full threshold to help you control). and on the read side you can keep reading until it is empty. --- Quote End --- Hi, To read fast and simple from the fifo( do this with underflow protection and show ahead ON): When read_state => Read<='1'; if read='1' and empty='0' then .... if (done_condition_variable='1') then read<='0'; state<=other_state: end if; end if: