FPGA VPK180: Getting Started

This page introduces the Versal Premium device and provides step-by-step instructions for setting up, debugging, and programming the VPK180 FPGA board. It assumes that you have already generated the Programmable Device Images (PDIs) and installed the necessary tools. Please refer to the following guide before proceeding:

In order to fully understand this section, you also required to have understandign of the Versal design flow and architecture. You can find relateds rtesources in the following links :


Design Flow

The VPK180 target currently supports only a Processing System (PS)-connected design flow. As with Processing System-enabled designs on other FPGA targets, X-HEEP is connected to the Processing System (PS) via JTAG, UART, and some GPIO pins.

Figure 1: VPK180 on-chip PL-PS connections.

Figure 1 shows the connections between X-HEEP and the PS. This implementation enables the APU to program applications on X-HEEP. Using JTAG, the APU can program the text section of the ELF file into the embedded memory banks, select the boot mode, and retrieve the application’s return value using GPIOs. It can also monitor the standard output (stdout) of the running code via UART.

Processing System and NoC configurations

The Control, Interfaces and Processing System (CIPS) is configured as follows:

  • Boot configuration:

    • QSPI in Dual Parallel mode with x4 data mode for the Versal boot process.

    • SD1 enabled for SD card boot.

  • Ethernet 0 enabled.

The DDR configuration is as follows:

  • Number of DDR controllers: 1

  • DDRMC 1 connected to LPDDR4 triplet 1

  • LPDDR4 system clock frequency: 200 MHz

  • Total memory available to the system: 4 GiB

This target maps the 1 GiB external slave region used by X-HEEP to address 0x8C0000000, which corresponds to the last 1 GiB of the available DDR memory. This gives X-HEEP access to additional memory space and enables data transfers between X-HEEP and the PS. The Versal NoC remaps this address range so that X-HEEP only accesses the external slave region from 0xC0000000 to 0xFFFFFFFF.

Note

You can modify this configuration and change the address mapping by updating the parameters in vpk180/xilinx_generate_ps_wizard.tcl.

Hardware Connection Steps

Figure 1: VPK180 board schematic highlighting the flash interconnection and programming switches.

  1. Power Up the Board

    • Connect the power supply as shown in the schematic (1).

    • Turn on the board using the power switch (2).

  2. Connect USB

    • Use a USB cable (3) to connect your development machine to the board.

  3. Ensure Vivado Board Files Are Installed

    • Vivado must be able to recognize the VPK180 board. Ensure the board files are placed in the following directory:

      <Vivado_Install_Dir>/data/boards/board_files
      
    • You can obtain the board files from either of the following sources:

  4. Ensure Appropriate Switch Settings

    • To boot the system from the SD card with the appropriate System Controller settings, ensure that SW1 and SW11 on the board are set as shown in Figure 1 (4).

Note

Unlike other platforms, the VPK180 does not yet have a dedicated programmer. For now, X-HEEP can only be programmed using the on-chip programming flow with the help of the APU. This flow depends on the Processing System. The PS_ENABLE parameter instantiates the PS and is enabled by default for VPK180; see Build and program the FPGA using the Processing System for more information.


Software Requirements

To program the board, a stable Linux image must be running on the PS. For instructions on building a minimal VPK180 Linux image with PetaLinux, see the VPK180 PetaLinux image guide.

The PS programming flow uses a companion SDK that is also compatible with VPK180 targets. See the xheep-Xilinx-SoCs-interface repository for the software package used to program X-HEEP from the PS.

Programming the Board

To program X-HEEP, follow these steps:

  1. Compile the App

    Refer to the Compile applications documentation.

    make app TARGET=vpk180 PROJECT=hello_world
    
  2. Program via JTAG

    Note

    To program the VPK180, a stable Linux image must be running on the PS/APU. For a step-by-step guide to building this image with PetaLinux, see the VPK180 PetaLinux image guide.

    Note

    To program the VPK180, use the xheep-Xilinx-SoCs-interface repository. Clone it on the board before proceeding with this step.

    Copy the generated .elf file to the Linux system running on the PS. Then, run the xheepRun_vpk180.py script to program the device:

    sudo python3 src/xheepRun_vpk180.py \
        -f path/to/elf_file.elf \
        --jtag-addr 0xA4000000 \
        --gpio-addr 0xA4020000 \
        --uart /dev/ttyUL0
    

    The script must be run with sudo privileges to access the JTAG, GPIO, and UART modules.

    Note

    Unlike Zynq FPGA flows, the VPK180 platform does not support programming via SPI because the QuadSPI chip is unavailable. For now, the VPK180 can only be programmed through JTAG.

    Warning

    Make sure to provide the correct physical addresses for the UART, JTAG, and GPIO modules. Otherwise, the script will not work and, in some cases, may cause a kernel panic.

  3. Optional: Open a Serial Connection for Debugging

    To view printf output in the terminal, you can connect to the UART channel from the PS using the uart_monitor.py script. Run the following command, where -t is the timeout in seconds:

    sudo python3 src/uart_monitor.py -t 1000  # time in seconds
    

    [!NOTE] Make sure to register the UART module in the Linux device tree. Otherwise, use the -a option to provide the physical address of the UART module.


Notes

  • Refer to the schematic diagram included in the repository for switch and connection references.

  • Always make sure the PDI file and Vivado configuration match your hardware revision.