- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
These are the details, about how the software driver gets the address 0xF9001080 for the LED.
After following the steps here:
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.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Ihsan.
Please let us know if there is any further query on this?
Regards
Tiwari
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page