Forum Discussion
Altera_Forum
Honored Contributor
8 years ago --- Quote Start --- So, if the write side automatically stalling when the buffer is full, whether any memory manager such as ping pong buffer will help this?? --- Quote End --- Unless you have significant read and write imbalance, a single buffer will work just fine. Even in the case of imbalance, you can increase the channel depth to reduce the likelihood of stalls. I cannot think of a case where a ping pong buffer would be required here. --- Quote Start --- And how to know how much data does the buffer can hold ? --- Quote End --- You can set the channel depth using the attribute provided by Altera (check the documentation for more info). However, the compiler pretty much always increases this depth due to scheduling and FIFO overhead. You can see the final channel depth in the area report.