Intel® SoC FPGA Embedded Development Suite
Support for SoC FPGA Software Development, SoC FPGA HPS Architecture, HPS SoC Boot and Configuration, Operating Systems
489 Discussions

Linux to/from fpga fabric command line examples

kikoss
New Contributor I
187 Views

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 

 

Labels (1)
0 Kudos
1 Solution
JingyangTeh
Employee
111 Views

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:

https://www.intel.com/content/www/us/en/docs/programmable/683567/23-1/bridges-falconmesa-stratix-10.html

 

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/docs/programmable/683567/23-1/bridge-address-space-falconmesa.html

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.

Screenshot 2024-11-20 115505.png

 

Regards

Jingyang, Teh

 

View solution in original post

0 Kudos
3 Replies
JingyangTeh
Employee
112 Views

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:

https://www.intel.com/content/www/us/en/docs/programmable/683567/23-1/bridges-falconmesa-stratix-10.html

 

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/docs/programmable/683567/23-1/bridge-address-space-falconmesa.html

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.

Screenshot 2024-11-20 115505.png

 

Regards

Jingyang, Teh

 

0 Kudos
kikoss
New Contributor I
96 Views

Hello 

Its enough infos for starting 
Thank you very much 

 

Thx 

 

0 Kudos
JingyangTeh
Employee
75 Views

Hi


I’m glad that your question has been addressed, I now transition this thread to community support. If you have a new question, Please login to ‘https://supporttickets.intel.com/s/?language=en_US’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.



Regards

Jingyang, Teh


0 Kudos
Reply