Forum Discussion
Linux mSGDMA Driver Agilex 5
- 1 year ago
Hi,
if you have a GHRD for your current board you can easily adapt the HW design (created for a supported board via e.g. build_hw_f2h_bridge.sh). The external periphery required on the demo designs is minimal (HPS-EMIF, HPS clock and UART).
Hi,
You may be interested in checking the "HPS-FPGA Interface Demos" for Agilex 5.
The introductory documentation explains the demos repository concept and what examples are included.
One example that may be of interest is the "F2H-Bridge": it uses a msgdma core to stream data across the F2H-Bridge from an internal FPGA RAM to EMIF buffer and vice-versa. Its a different approach than using a driver, the descriptors are pushed into the msgdma and the DMA duration time is computed in the app.
The demos are run under u-boot (using u-boot API) but some have been ported to Linux environment.
The code of the "F2H-Bridge" Linux Application: https://github.com/altera-fpga/agilex5-demo-hps2fpga-interfaces/blob/main/common_sw/linux_apps/f2h_bridge.c
- K6061 year ago
Contributor
Hi Stefan - thanks for getting back to me!
Ok great; I will look into this.
I have a question though - I have been using a GHRD which is based on an Agilex which is not listed in any of these example.
It is the A5ED065BB32AE4SR0.
Would it be complex to pop that into the designs in question and have it run OOB?
Many thanks,
K