Linux to/from fpga fabric command line examples
Hello
I am running a Linux OS on agilex7 SOC
I am looking for basic command line that perform the following :
- write / read FPGA register fabric
- program FPGA fabric with a new SOF file
- write / read FPGA DMA fabric
Any relevant documentation, or examples for achieving these tasks, would help
Thx
Regards
Hi
There is no documentation on the how to.
But in brief the command to access the fpga fabic from linux is using the md or mw command:
https://www.unix.com/man-page/osx/1/md/
https://www.barebox.org/doc/latest/commands/mem/mw.html
To connect the HPS to fabric, there are bridges that connects them. The bridge you are looking at is the H2F bridge:
To read and write to the FPGA Fabric you will need to access through the H2F bridge window which could be found here:
https://www.intel.com/content/www/us/en/programmable/hps/agilex/hps.html
As for the the IPs that are connected to the bridge, you could find the offset from the Address Map in the Platform Designer.
To read and write to the IP you would be h2f bridge + IP offset.
Regards
Jingyang, Teh