Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12603 Discussions

How to transfer data from FPGA to HPS and vice-versa in Cyclone V

Altera_Forum
Honored Contributor II
2,370 Views

Hii Everyone, 

I've been looking everywhere and could not find any resources to help me. 

 

I am designing Ethernet board with Cyclone V(5CSEBA5U19A7N) using Quartus 15.1 Prime Standard & DS-5. 

I need to send data from FPGA to HPS and vice-versa.Which bus we have to use,which thing we have to change  

and edit,finally how to transfer data.If u have any documents or links from scratch regarding to my query, 

plz forward and help me. 

 

Thanks & Regards,  

Chethan.
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
826 Views

I recommend that you get the Cyclone V SoC dev kit and download some reference designs to get you started. There's a lot of information available. Even if you don't want to buy the dev kit you can download reference designs and open them in Quartus. Here's one example: 

 

https://rocketboards.org/foswiki/view/projects/alterasoctriplespeedethernetdesignexample
0 Kudos
Altera_Forum
Honored Contributor II
826 Views

Thanks rsefton..

0 Kudos
Altera_Forum
Honored Contributor II
826 Views

This targets Arria 10 SoC but from an interface perspective is similar to Cyclone V SoC: https://www.altera.com/support/support-resources/design-examples/soc/fpga-to-hps-bridges-design-example.html 

 

You are probably better off putting a DMA engine in the FPGA side of the design and have it push/pull data between the FPGA and HPS. If you want the FPGA to have a cacheable view of the data then have the logic access the F2H bridge and make sure the mastering logic performs cacheable accesses to the ACP mapper memory range at 0x8000_0000-0xBFFF_FFFF which you can remap to any 1GB window inside the MPU view of the memory (design above does this slightly differently in A10 SoC). 

 

If you don't need cacheable data then your highest speed path will be the FPGA-to-SDRAM interface. In Cyclone V SoC you can have up to 4 64-bit AXI ports or gang them together into dual 128-bit or a single 256-bit interface. If you use Avalon-MM then you can have read-only or write-only ports as well, just remember each port consumes a command port (there are 6) and for reads and writes they consume a data port each (there are 4 for writes and 4 for reads).
0 Kudos
Reply