Forum Discussion
BoonBengT_Altera
Moderator
4 years agoHi @Gopikrishnan,
Thank you for posting in Intel community forum and hope all is well.
Please find the response to your doubts as followed 1) yes I believe you can do so, but per my understanding you would like to prevent too much nested layer of component calling as it might impact the performance, 1-2 layers should be ok. 2) as mention by HRZ, declaring the sum as static will allocate it for lifetime of the program and will be shared.
Please do try and let us know if that fits your needs.
Best Wishes
BB