Forum Discussion
Altera_Forum
Honored Contributor
8 years agoChannel Stall for Large Data
Hi, I'm a bit confused on how channel really works and right now facing difficulties to implement it in my project. The channel stops when passing large amount of data from one kernel to another, ...
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.