Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21584 Discussions

Accessing same memory address from HPS and FPGA

Altera_Forum
Honored Contributor II
1,504 Views

Hello everyone! 

 

I am trying to accelerate some computation by developing an accelerator in the FPGA. My idea is to replace the function invocation for a "hardware" invocation, passing some requiring values for the computations in hardware. Depending on the results of the hardware operation, some data should be move from one part of the memory to the other. In the current software implementation, pointers to the source and destination of the data are passed as parameters. My idea is that, once that the computation is done, the hardware accelerator perform the memory access to copy the required values. Is there any way to access the memory in a consistent/coherent way from FPGA and HPS? For example, that the address used for the HPS could be understandable/reachable by the FPGA. 

 

I have searched for this in the Forum and other sources, but I no success yet finding an answer to this question. BTW, I am using the Cyclone V (DE1-SoC Board). 

 

Thanks in advance. I really appreciate any insight about it!
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
637 Views

Does your application run bare-metal or in Linux?

0 Kudos
Altera_Forum
Honored Contributor II
637 Views

 

--- Quote Start ---  

Does your application run bare-metal or in Linux? 

--- Quote End ---  

 

Hi! The application runs in Linux.
0 Kudos
Altera_Forum
Honored Contributor II
637 Views

The problem shouldn't be that the FPGA-Part is able to see/read/write the memory where you would like to place some data for accelerated calculations, but to give the FPGA the correct address for that, because the Linux visualizes the addresses, you would want to need a driver for that to have it work correctly.

0 Kudos
Altera_Forum
Honored Contributor II
637 Views

 

--- Quote Start ---  

https://support.criticallink.com/redmine/projects/mityarm-5cs/wiki/writing_to_hps_memory 

--- Quote End ---  

 

 

Thanks for the link Derim! I will check it! 

 

Best regards
0 Kudos
Reply