This is an old revision of the document!


Nexys A7 XADC Demo

Under Construction


Description

This project is a Vivado demo using the Nexys A7-100T's analog-to-digital converter ciruitry, switches, LEDs, and seven-segment display, written in Verilog. When programmed onto the board, voltage levels between 0 and 1 Volt are read off of the JXADC header. The 16 User LEDs increment from right to left as the voltage difference between the selected channel's pins gets larger. The seven-segment display shows the voltage difference between the selected channel's pins in volts. SW0 and SW1 select which XADC channel is displayed.

See the Nexys A7's Reference Manual for more information about how the Artix 7 FPGA's XADC is connected to header JXADC.

Additional information on how this demo can be used can be found in appropriate READMEs, linked below.


Inventory


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.

Note: The latest release tags for each variant and branch are highlighted in green.

Board Variant Release Tag Release Downloads Setup Instructions
Nexys A7-100T 100T/XADC/2020.1-1 Release ZIP Downloads See Using the Latest Release, below
Nexys A7-50T 50T/XADC/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 Nexys A7 into the computer using the microUSB cable. The circuit and wires can be attached after the demo is already running.
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. LEDs and Switches

The demo reads analog data in from each enabled XADC channel (set using sw0 and sw1). The 7-Segment display shows the current voltage across the selected xadc pins. The LEDs turn on from right to left as the input voltage increases.

2. Setting up the Circuit

As seen in the image to the right, this demo was tested using a resistor ladder to show the different brightness values the demo puts out. This demo can be used to measure any voltage between 0 and 1 volt. The circuit uses a chain of eight 1KOhm resistors in series tied to the 3V3 and GND pins of the XADC header to create these voltages.


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 HDL project in Vivado, see Getting Started with Vivado for Hardware-Only Designs (Redirect). Information on important parts of the GUI, and indirect discussion of the steps required to modify, rebuild, and run this demo in hardware can also be found there.

For technical support, please visit the FPGA section of the Digilent Forum.


{{tag>project nexys-a7}}