====== Nexys A7 OOB Demo ====== {{:reference:programmable-logic:nexys-a7:demos:nexys_oob_vga.jpg?600|}} ---- ===== Description ===== This project is a Vivado demo using the Nexys A7-100T's switches, LEDs, pushbuttons, RGB LEDS, seven-segment display, VGA connector, USB HID Host port, PWM audio output, PDM microphone, 3-axis accelerometer and the temperature sensor 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. The seven-segment display runs a constant snake pattern. The two RGB LEDs are initially set to smoothly change from red to green, then green to blue, then blue to red. The table below describes how the D-pad buttons affects the RGB LEDs and the microphone. Once the audio recording is started with the BTNU button the data is taken from the omni-directional microphone and stored into the DDR2 memory. While recording audio the LEDs will light up from left to right. After about 5 seconds the recording stops and the audio will be read from DDR2 memory and played through the headphone jack (labeled mono audio out). Afterwhich the LEDs will turn off from right to left. The VGA displays a Digilent / Analog Devices logo, the mouse cursor connected by the usb HID Host port, the audio signal from the microphone, the x , y and z data from the Accelerometer, the FPGA temperature and the value of the RGB componnents. The VGA is only displayed in 1280×1024 resolution. Additional information on how this demo can be used can be found in appropriate READMEs, linked below. ---- ===== Inventory ===== * Arty Z7 with a MicroUSB Programming Cable (and external Power Supply) * Vivado and Vitis installations compatible with the latest release of this demo (2022.1) * //See [[programmable-logic:guides:installing-vivado-and-vitis|Installing Vivado, Vitis, and Digilent Board Files]] for installation instructions.// * Serial Terminal application to receive messages printed by the demo * //See [[programmable-logic:guides:serial-terminals:start]] for more information.// * Headphones or Speakers with 3.5mm Audio Jack * Monitor with a VGA Port * VGA Cable * USB Mouse ---- ===== 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, a release tagged "20/DMA/2020.1" for the Zybo Z7 is only to be used with the -20 variant of the board and Vivado 2020.1. 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 | @#C0EEBD: 100T/OOB/2023.1-1 | {{https://github.com/Digilent/Nexys-A7/releases/download/100T/OOB/2023.1-1/Nexys-A7-OOB-hw.xpr.zip}} | See //Using the Latest Release//, below | | Nexys A7-100T | 100T/OOB/2022.1-1 | {{https://github.com/Digilent/Nexys-A7/releases/download/100T/OOB/2022.1-1/Nexys-A7-100T-OOB-hw.xpr.zip}} | See //Using the Latest Release//, below | | Nexys A7-50T | 50T/OOB/2022.1-1 | {{https://github.com/Digilent/Nexys-A7/releases/download/50T/OOB/2022.1-1/Nexys-A7-50T-OOB-hw.xpr.zip}} | See //Using the Latest Release//, below | | Nexys A7-100T | 100T/OOB/2021.1-1 | {{https://github.com/Digilent/Nexys-A7/releases/download/100T/OOB/2021.1-1/Nexys-A7-100T-OOB-hw.xpr.zip}} | See //Using the Latest Release//, below | | Nexys A7-50T | 50T/OOB/2021.1-1 | {{https://github.com/Digilent/Nexys-A7/releases/download/50T/OOB/2021.1-1/Nexys-A7-50T-OOB-hw.xpr.zip}} | See //Using the Latest Release//, below | | Nexys A7-100T | 100T/OOB/2020.1-1 | {{https://github.com/Digilent/Nexys-A7/releases/download/100T/OOB/2020.1-1/Nexys-A7-100T-OOB-hw.xpr.zip}} | See //Using the Latest Release//, below | | Nexys A7-50T | 50T/OOB/2020.1-1 | {{https://github.com/Digilent/Nexys-A7/releases/download/50T/OOB/2020.1-1/Nexys-A7-50T-OOB-hw.xpr.zip}} | See //Using the Latest Release//, below | | Nexys A7-100T | v2018.2-1 | [[https://github.com/Digilent/Nexys-A7-100T-OOB/releases/tag/v2018.2-1|Release ZIP downloads]] | [[https://github.com/Digilent/Nexys-A7-100T-OOB/tree/v2018.2-1|Github README]] | | Nexys A7-50T | v2018.2-1 | [[https://github.com/Digilent/Nexys-A7-50T-OOB/releases/tag/v2018.2-1|Release ZIP downloads]] | [[https://github.com/Digilent/Nexys-A7-50T-OOB/tree/v2018.2-1|Github README]] | **Note for Advanced Users:** //GitHub sources for this demo can be found in the [[https://github.com/digilent/nexys-a7/tree/100T/OOB/master|100T/OOB/master]] and [[https://github.com/digilent/nexys-a7/tree/50T/OOB/master|50T/OOB/master]] branches of the Nexys-A7 repository. Further documentation on the structure of this repository can be found on this wiki's [[programmable-logic:documents:git]] page.// ---- Instructions on the use of the latest release can be found in this dropdown: --> Using the Latest Release #^ {{page>programmable-logic:guides:using-github-releases#hardware_only_release_before_programming&noheader}} --> Set up the Nexys A7 # Plug the microUSB programming cable into the Nexys A7's PROG/UART port, the VGA cable into the VGA port (and into the monitor), and the headphones or speaker into the MONO AUDIO OUT port. ---- <-- {{page>programmable-logic:guides:using-github-releases#hardware_only_release_programming&noheader}} At this point, the demo is now running on your board. Refer to the [[#description|Description]] and [[#functionality|Functionality]] sections of this document for more information on what it does. <-- ===== Functionality ===== ==== 1. Using the Switches with LEDs ==== >For this section, all the switches are tied to their corresponding LED. Every time a switch is toggled, the LED directly above it will toggle with it. > >{{:nexys4-ddr:userdemo10.jpg?300|}}{{:nexys4-ddr:userdemo11.jpg?300|}}{{:nexys4-ddr:userdemo12.jpg?300|}} ==== 2. Seven Segment Display ==== >The 7-Segment display runs a constant snake pattern. There is no way to change this pattern with the Nexys A7 I/O. ==== 3. Tri-color LEDs and Push Buttons ==== >The two tri-color LEDs are initially set to gradually change from red to green, then green to blue, then back to red. If the user pushes btnR, the LEDs are set to blue. If the user pushes btnC, the LEDs are set to green. If the user pushes btnL, the LEDs are set to red. Finally if the user pushes btnD, the LEDs return to their gradual change loop. If the user keeps pushing btnD, both LEDs will be isolated then both will be turned off. > >{{:reference:programmable-logic:nexys-a7:demos:nexys_oob_b0.jpg?300|}}{{:reference:programmable-logic:nexys-a7:demos:nexys_oob_b1.jpg?300|}}{{:reference:programmable-logic:nexys-a7:demos:nexys_oob_b2.jpg?300|}}{{:reference:programmable-logic:nexys-a7:demos:nexys_oob_b3.jpg?300|}}{{:reference:programmable-logic:nexys-a7:demos:nexys_oob_b4.jpg?300|}}{{:reference:programmable-logic:nexys-a7:demos:nexys_oob_b5.jpg?300|}}{{:reference:programmable-logic:nexys-a7:demos:nexys_oob_b6.jpg?300|}} ==== 4. Audio Recorder ==== >If the user pushes btnU, an audio recording is started and data is taken from the omni-directional microphone. The data is stored into the DDR2 memory. While the recorder is recording, the LEDs will light up from left to right. After about five seconds, the audio will be read from DDR2 memory and played through the headphone jack (labeled mono audio out). LEDs will turn off from right to left. > >{{:reference:programmable-logic:nexys-a7:demos:nexys_oob_setup.jpg?400|}} ==== 5. VGA Output and Mouse Control ==== When the demo is connected to a VGA display, the following is displayed at a 1280x1024 resolution: * A Digilent logo * A mouse cursor, if a USB mouse is connected to the board when the project is started * The audio signal from the onboard ADMP421 Omnidirectional Microphone * A small square representing the X and Y acceleration data from the ADXL362 onboard >Accelerometer.The square moves according the Nexys4 board position. Note that the X and Y axes on the board are exchanged due to the accelerometer layout on the Nexys4 board.The accelerometer display also displays the acceleration magnitude, calculated asSQRT( X^2 + Y^2 +Z^2), where X, Y and Z represent the acceleration value on the respective axes * The FPGA temperature, the onboard ADT7420 temperature sensor temperature value and the accelerometer temperature value * The value of the R, G and B color components sent to the RGB LEDs LD16 and LD17 {{:reference:programmable-logic:nexys-a7:demos:nexys_oob_vga.jpg?400|}} ---- ===== Additional Resources ===== All materials related to the use of the Nexys A7 can be found on its [[..:start|Resource Center]]. For a walkthrough of the process of creating a simple baremetal software project in Vivado and Vitis, see [[programmable-logic:guides:getting-started-with-ipi]]. 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 [[https://forum.digilent.com/forum/4-fpga/|FPGA]] section of the Digilent Forum. ----