HPS Legacy Baseline System Example Design with HPS Test Board for Agilex 5 FPGA E-Series 065B Premium Development Kit (ES)
Legacy Baseline Golden Hardware Reference Design (GHRD) for Agilex 5 FPGA E-Series 065B Premium Development Kit with HPS Test Board.
Agilex 5 GHRD is a reference design for Altera Agilex 5 System On Chip (SoC) FPGA.
The GHRD is part of the Golden System Reference Design (GSRD), which provides a complete solution, including exercising soft IP in the fabric, booting to U-Boot, then Linux, and running sample Linux applications.\nRefer to the Agilex 5 E-Series Premium Development Kit GSRD for information about GSRD.
The design uses HPS First configuration mode.
This reference design demonstrates the following system integration between Hard Processor System (HPS) and FPGA IPs:
- Hard Processor System (HPS) enablement and configuration
- Enable dual core Arm Cortex-A76 processor
- Enable dual core Arm Cortex-A55 processor
- HPS Peripheral and I/O (SD/MMC, EMAC, SPI, MDIO, I3C, JTAG, UART, TRACE, and GPIO)
- HPS Clock and Reset
- HPS FPGA Bridge and Interrupt
- Note: The System MMU port in F2H and F2SDRAM bridges are disabled by default
- HPS EMIF configuration (starting 25.1.1 ECC is enabled by default)
- System integration with FPGA IPs
- Peripheral subsystem that consists of System ID, Programmable I/O (PIO) IP for controlling DIPSW, PushButton, and LEDs
- Debug subsystem that consists of JTAG-to-Avalon Master IP to allow System-Console debug activity and FPGA content access through JTAG
- 256KB of FPGA On-Chip Memory
- Family: Agilex 5 E-Series
- Quartus Version: 26.1
- Development Kit: Agilex 5 FPGA E-Series 065B Premium Development Kit DK-A5E065BB32AES1
- Device Part: A5ED065BB32AE6SR0
- Category: HPS
- Source: Quartus Prime Pro
- URL: https://www.github.com/altera-fpga/agilex5e-ed-gsrd
- Design Package: a5ed065es-premium-devkit-debug2-legacy-baseline.zip
- Title: HPS GSRD User Guide for the Agilex 5 E-Series Premium Development Kit URL: https://altera-fpga.github.io/latest/embedded-designs/agilex-5/e-series/premium/gsrd/ug-gsrd-agx5e-premium/
- Title: GHRD README for the Agilex 5 E-Series Premium Development Kit URL: https://github.com/altera-fpga/agilex5e-ed-gsrd/blob/main/a5ed065es-premium-devkit-debug2/legacy-baseline/README.md
The GHRD HPS configuration matches the board schematic. Refer to Agilex 5 Hard Processor System Technical Reference Manual and Hard Processor System Component Reference Manual: Agilex 5 SoCs for more information on HPS configuration.
The GHRD HPS EMIF configuration matches the board schematic. Refer to External Memory Interfaces (EMIF) IP User Guide: Agilex 5 FPGAs and SoCs for more information on HPS EMIF configuration.
Bridges are used to move data between FPGA fabric and HPS logic. Refer to HPS Bridges
The HPS address map and the FPGA address map are the same for Agilex 5. Refer to Total Address Map Graphical for more information.
Therefore, when accessing HPS logic in uboot or linux, the base address would be the same as, when using Debug Subsystem from FPGA fabric.
| Bridge | Use Case |
|---|---|
| F2SDRAM | move data from FPGA fabric to HPS logic (non-coherent). Can access HPS EMIF. |
| F2S | move data from FPGA fabric to HPS logic (coherent). Can access all HPS peripherial except the GIC. |
| LWS2F | move data from HPS logic to FPGA fabric. Access FPGA peripherial Control Status Register (CSR). |
| H2F | move data from HPS logic to FPGA fabric. Access FPGA Onchip Memory as scratch pad. |
The GHRD JTAG master interfaces allows you to access peripherals in the FPGA with System Console, through the JTAG master module. This access does not rely on HPS software drivers.
Refer to this Guide for information about system console.
| Peripheral | Address Offset | Size (bytes) | Attribute | Interrupt Number |
|---|---|---|---|---|
| sysid | 0x0001_0000 | 8 | Unique system ID | None |
| led_pio | 0x0001_0080 | 16 | LED outputs | None |
| button_pio | 0x0001_0060 | 16 | Push button inputs | 1 |
| dipsw_pio | 0x0001_0070 | 16 | DIP switch inputs | 0 |
- There are 4 user DIP switch inputs, 4 user push-button inputs and 4 LED outputs that is connected to fpga pins on Agilex 5 FPGA E-Series 065B Premium Development Kit.
- Only the lower three bits of LED outputs are available for software to control. The most significant bit of the LED is used in GHRD top module as heartbeat led. This LED blinks when the fpga design is loaded. Users will not be able to control this LED with HPS software, for example U-Boot or Linux.
- The peripherial is accessed via the LWS2F bridge and have offset of 0x0_2000_0000. Refer to Total Address Map Graphical
- The FPGA IRQ has offset of 17 when mapped to Generic Interrupt Controller (GIC) in device tree structure(dts). Refer to fpga2hps_interrupt_irq0[0] in GIC Shared Peripheral Interrupts Map for the SoC HPS
After build, the bitstream (sof) can be found in output_files folder.