This example program provides a way to test most of the devices on an Altera®-provided development board. The following are tested:
- Seven-segment display
- D0 to D7 LEDs: The "walking" LED pattern is displayed on these LEDs
UART test: Tests UART functionality for the UART defined as
- LCD display: Displays a short message on the LCD display
- Memory: Runs memory tests on a user-specified range of memory
- Buttons (SW0 to SW3): Detects button presses in a tight loop and returns any non-zero value
Using This Design Example
To obtain this design example, download a free evaluation version of the Nios® II Embedded Design Suite (EDS). This embedded software example is installed with the Nios II EDS in the <Nios II EDS installation path>/examples/software directory and is available as a Nios II integrated development environment (IDE) project template. The template includes the project settings required to run this design on the supported target hardware configurations. To use this software example, simply create a new C/C++ application project in the IDE and choose the desired project template.
The use of this design is governed by, and subject to, the terms and conditions of the Altera Hardware Reference Design License Agreement.
This example requires the following devices to be present in the target hardware design:
LED programmable I/O (PIO) named
Seven-segment display PIO named
LCD display named
Button PIO named
- JTAG connection (to test the JTAG UART functionality)
You can run this software design example on the following Nios II hardware design examples:
Stratix® and Stratix II Design Examples
Cyclone® Design Examples
- Low cost
For more information about using this example in your project, go to:
Design Examples Disclaimer
These design examples may only be used within Altera Corporation devices and remain the property of Altera. They are being provided on an “as-is” basis and as an accommodation; therefore, all warranties, representations, or guarantees of any kind (whether express, implied, or statutory) including, without limitation, warranties of merchantability, non-infringement, or fitness for a particular purpose, are specifically disclaimed. Altera expressly does not recommend, suggest, or require that these examples be used in combination with any other product not provided by Altera.