Hello to everyone,
I want to know which is the best way to transfer data between loops in the FPGA in order to optimize the resources.
My program reads analog input in a loop, and I want to read this data simultaneously in different loops. With the code the resources usage is about 75% (Total Slices) more or less. I don't need to use DMA because the reading loops are faster than the writting loop, so I can use tags to perform it.
If I use registers I waste all the rest of the resources (about 93%, and I need to put more code in it), so I tried with memories. But the problem is that I can't read them simultaneously because I don't want to arbitrate the reading, so I have used global variables (for the non-critical loops, for the critical loop I use the memory read) but it doesn't seem a proper solution for me.
I attach an image with an example of the compilation summary in order to show wich resources are used with memory option.
Is there another way to do it optimizing the FPGA resources? If you have any doubt or question about my problem feel free to ask.
Thanks in advance.
Best regards, Igor.