Cyclone V GX Starter kit – HW LED flasher

The first in the projects for the Cyclone V GX Starter kit will be a HW LED flasher. Although the design is very easy, it is a complete design including absolutely all the elements needed to achieve a reliable design with timing closure.

For an introduction about the Cyclone V GX Starter kit evaluation board, please refer to this post.

What will the project do:

  1. Flash a sequence of LEDs (red and green) by dividing the clock input
  2. Make a ‘lamp test’ (all LEDs lit) when reset is pressed
  3. LEDs sequence is accelerated if the user presses the second push button on the board.

cycgx_bd

The design includes the following blocks:

  1. PLL: Takes the 50MHz input to the board and generates an internal 100MHz clock signal.
  2. Reset synchronizer: Reset signal is sampled by this block using two flip-flops. Reset is released only on rising edge of internal 100MHz clock. This is the recommended reset connection by Altera for avoiding recovery and removal timing failures. Actually the result is to connect a synchronized reset to the async. reset input of all FFs in the design.
  3. top block: Includes a counter to divide the input frequency to blink the LEDs at a speed visible to humans. Also takes care of reset treatment (all LEDs lit) and of LEDs blink acceleration.

The design also includes the following files:

  1. QSF including pin assignment
  2. SDC – Timing constraint file
  3. vhdl source files
  4. qip files for Altera generated IP sources

Design directories structure:

  • quartus: project files, .qsf file, .sdc file
  • src
    • top.vhd and reset_sync.vhd source files
    • ip directory
      • pll1 directory
        • files generated by Altera IP Wizard for ‘pll1’ (50MHz -> 100 MHz)

The design was generated using Quartus Prime 17.0

The project, including all sources and .qar file are available at Github

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s