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

Linux to/from fpga fabric command line examples

kikoss
Nuevo Colaborador II
737 Vistas

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 

 

Etiquetas (1)
0 kudos
1 Solución
JingyangTeh_Altera
Empleados
661 Vistas

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

 

Ver la solución en mensaje original publicado

3 Respuestas
JingyangTeh_Altera
Empleados
662 Vistas

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

 

kikoss
Nuevo Colaborador II
646 Vistas

Hello 

Its enough infos for starting 
Thank you very much 

 

Thx 

 

JingyangTeh_Altera
Empleados
625 Vistas

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


Responder