This is an old revision of the document!
Nexys A7 GPIO Demo
Description
This project is a Vivado demo using the Nexys A7's switches, LEDs, RGB LED's, pushbuttons, seven-segment display, PWM audio output, PDM microphone and USB UART bridge, written in VHDL. When programmed onto the board, all sixteen of the switches are tied to their corresponding LEDs. Every time a switch is toggled, the LED directly above it will toggle with it. If the center push button is pressed, all the LEDs will be tied to ground. The two tri-color LEDs are set to gradually change colors at all times.
The seven segment display counts up from 0 to 9 as long as no buttons are pressed. As long as BTNU is pressed, the first digit on the seven segment display is turned off. In the same manner, BTNL turns off the second digit, BTNR turns off the third, and BTND turns off the fourth. BTNC turns off the entire display and resets the counter. The microphone which is next to Pmod connector JC, records audio data and sends it to the mono audio output located at J8. To listen to the mics output, you will need to plug in headphones or a speaker.
To use the USB-UART bridge feature of this demo, the Nexys A7 must be connected to a serial terminal on the computer it is connected to over the MicroUSB cable. For more information on how to set up and use a serial terminal, such as Tera Term or PuTTY, refer to this tutorial. Whenever the reset button or BTNC is pressed, the Nexys A7 sends the line “Nexys A7 GPIO/UART DEMO!” to the serial terminal. Whenever one of the D-pad buttons other than BTNC is pressed, the line “Button press detected!” is sent.
Additional information on how this demo can be used can be found in appropriate READMEs, linked below.
Inventory
- Nexys A7 with a MicroUSB Programming Cable
- Vivado installation compatible with the latest release of this demo (2020.1)
- See Installing Vivado, Vitis, and Digilent Board Files for installation instructions.
- Serial Terminal application to receive messages printed by the demo
- See Installing and Using a Terminal Emulator (Redirect) for more information.
- Headphones or Speakers with 3.5mm Audio Jack
Download and Usage Instructions
The following releases of this demo can be used with instructions found in the corresponding READMEs in order to run the demo.
Releases are only compatible with the version of the Xilinx tools specified in the release version number. In addition, releases are only compatible with the specified variant of the board. For example, the v2020.1-1 release for Nexys A7-100T can only be used with Vivado 2020.1 and Nexys A7-100T variant of the board.
The latest release version for this demo is highlighted in green.
Note: Releases for FPGA demos from before 2020.1 used a different git structure, and used a different release tag naming scheme.
| Board Variant | Release Tag | Release Downloads | Setup Instructions |
|---|---|---|---|
| Nexys A7-100T | 100T/GPIO/2020.1-1 | Release ZIP Downloads | See Using the Latest Release, below |
| Nexys A7-50T | 50T/GPIO/2020.1-1 | Release ZIP Downloads | See Using the Latest Release, below |
| Nexys A7-100T | v2018.2-1 | Release ZIP downloads | Github README |
| Nexys A7-50T | v2018.2-1 | Release ZIP downloads | Github README |
Note for Advanced Users: All demos for the Nexys A7 are provided through the Nexys-A7 repository on Github. Further documentation on the structure of this repository can be found on this wiki's Digilent FPGA Demo Git Repositories (Redirect) page.
Instructions on the use of the latest release can be found in this dropdown:
- Using the Latest Release
-
This page has been moved, the new location is Using a Digilent FPGA Github Demo's Releases (2020.1).
- Set up the Nexys A7
-
Plug the microUSB programming cable into the Nexys A7's PROG/UART port and the headphones or speaker into the MONO AUDIO OUT port.
This page has been moved, the new location is Using a Digilent FPGA Github Demo's Releases (2020.1).At this point, the demo is now running on your board. Refer to the Description and Functionality sections of this document for more information on what it does.
Functionality
1. Switches and LEDs
2. Seven Segment Display
3. Tri-Color LEDs
The two tri-color LEDs are set to gradually change colors at all times. The user cannot affect them in this demonstration.
4. Microphone to PWM Output
Additional Resources
All materials related to the use of the Nexys A7 can be found on its Resource Center.
For a walkthrough of the process of creating a simple baremetal software project in Vivado and Vitis, see Getting Started with Vivado IP Integrator and Vitis (Redirect). Information on important parts of the GUIs, and indirect discussion of the steps required to modify, rebuild, and run this demo in hardware can also be found here.
For technical support, please visit the FPGA section of the Digilent Forum.
{{tag>project nexys-a7}}










