First Agilex5 Reference Design AXE5000 - ArrowElectronics/Agilex-5 GitHub Wiki

Introduction

This reference design uses only FPGA fabric resources. A differential 25MHz clock drives a PLL. The PLL generates a 2 MHz output clock from the 25 MHz input clock. This is used to clock a 24-bit binary counter. The three most significant bits of the counter are connected to the red, green, and blue LEDs of the RGB_LED. The LED will cycle through eight colors, with RED being the longest since it is connected to the most significant bit of the counter. If you press the USER_BTN push button, the design will be held in reset and the LED colors will stop changing. Changing the position of DIP_SW[0] will reverse the direction of the colors since the count is down instead of up.

Prerequisites

  • Review Getting Started
  • Host machine running Linux or Windows.
  • Internet connection to download the tools and clone the repositories from github. If you are behind a firewall you will need your system administrator to enable you to get to the git trees.
  • Quartus Prime Pro version 24.3

Set up the Environment

Open a shell (niosv command shell for Windows)

    $ mkdir axe5000
    $ cd axe5000

Build the Reference Design

This can be built under Windows or Linux.

Clone the repository. Open a shell (niosv command shell for Windows)

    $ git clone -b QPDS24.3_QPDS_REL_PR https://github.com/ArrowElectronics/refdes-agilex5 refdes-agilex5
    $ cd refdes-agilex5/axe5000/first_agilex5_refdes

Open Quartus and load the Project located in the folder shown above

    $ File --> Open Project. Select axe5000_top.qpf

Add pin assignments

    $ View --> Tcl Console
    $ In the Tcl Console window type 'source sources/axe5000_pin_assignment.tcl' and press Enter

Compile the Quartus project

    $ Processing --> Start Compilation

The following file is created:

  • axe5000/refdes-agilex5/axe5000/first_agilex5_refdes/output_files/axe5000_top.sof

Configure the Board for the Demo

The following components are required for the demo:

  • AXE5000 (TEI0181) development board,
  • USB C Cable

Assemble the Hardware

  • Plug the USB Cable into J9, the USB C connector.

Program the FPGA configuration file

Open the Quartus Programmer

    $ Tools --> Programmer

Detect the JTAG chain

    $ Processing --> Auto Detect

Select the A5EC008BM16AE device in the topology diagram

Program the device

    $ Edit --> Change File. Select output_files/axe5000_top.sof
    $ Click the 'Program/Configure' check box.
    $ Processing --> Start

This will take a few seconds to complete.

Run the demo

The RGB_LED will begin cycling through Red --> Green --> Blue after downloading the sof file. Press the USER_BTN button to reset the logic and move the DIP_SW[0] position to reverse the count direction.