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

HPS to FPGA bridge in GSRD Agilex 7 m-series

ihsan28
Beginner
1,554 Views

Hi,

 

I am following this tutorial to generate the GSRD for my fpga

https://altera-fpga.github.io/rel-25.1/embedded-designs/agilex-7/m-series/hbm2e/ug-gsrd-agx7m-hbm2e/

everything work, until I want to test the HPS to FPGA bridge. At least, the LW bridge has been used in the design for controlling the LEDs, right? but I cannot manage to find out how to access or manipulate it? 

Does the bridge include in the GSRD? or no?

Thank you.

Labels (2)
0 Kudos
4 Replies
Jeet14
Employee
1,316 Views

Hi Ihsan,


Yes, I can see that GHRD and GSRD is having the LEDS with the lwsoc2fpga bridge.

led_pio = "/soc/gpio@f9001080";


you can try with below command.

./blink <led_number> <delay_ms>


  • The led_number specifies the desired LED, and is a value between 0 and 3.
  • The delay_ms is a number that specifies the desired delay in ms between turning the LED on and off.


Regards

Jeetesh




0 Kudos
ShunJingG_Altera
Employee
1,210 Views

Hi Ihsan28,

 

in order to test the bridges, you may need information on the addresses.

For quick answer, you can find them in

https://www.intel.com/content/www/us/en/programmable/hps/agilex7/hps.html

The bridge addresses are 

FPGA_bridge_soc2fpga_1G_default

0x80000000

FPGA_bridge_lwsoc2fpga_2M

0xF9000000

FPGA_bridge_soc2fpga_1G

0x2000000000

With these addresses, you can access the bridges via "md" or "mw" in uboot or "devmem2" in linux.

There is also the FPGA to HPS bridge (last one in the table above). This can be accessed via system console.

Refer: https://www.intel.com/content/www/us/en/docs/programmable/683819/current/analyzing-and-debugging-designs-with-84752.html

 

These are the details, about how the software driver gets the address 0xF9001080 for the LED.

After following the steps here:

https://altera-fpga.github.io/rel-25.1/embedded-designs/agilex-7/m-series/hbm2e/ug-gsrd-agx7m-hbm2e/#build-hardware-design

You can find ghrd_agfb027r24c2e2v.qpf and qsys_top.qsys in the agilex_soc_devkit_ghrd.

These can be used to open the project in Platform Designer.

By default, GHRD enables all HPS bridges.

You can find more information for the HPS Parameters for bridges here:

https://www.intel.com/content/www/us/en/docs/programmable/683581/current/hps-fpga-axi-bridges.html

You also can check where the bridges connected to via the Agilex HPS IP.

ShunJingG_Altera_0-1752034911545.png

Tracing down to h2f_lw_axi_master, the address offset for the pipeline bridge is 0x1000.

Through the pipeline bridge, the PIO IP (led_pio) that controls LEDs has address offset of  0x80.

0xF9000000 + 0x1000 + 0x80 = 0xF9001080

 

Regards,

shun jing

0 Kudos
Jeet14
Employee
1,073 Views

Hi Ihsan.


Please let us know if there is any further query on this?


Regards

Tiwari


0 Kudos
Jeet14
Employee
839 Views

As we do not receive any response from you on the previous question/reply/answer that we have provided. 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.


0 Kudos
Reply