Genesys 2 DMA Audio Demo
Overview
Description
The audio demo records a 5 second sample from microphone(J12) or line in (J13) and plays it back on headphone out (J10) or line out (J11). Recording and playback are started by push buttons.
Features Used
Not Used | Used | |
---|---|---|
8 User Switches | X | |
8 User LEDs | X | |
6 User Push Buttons | X | |
128×32 MonochromeOLEDDisplay | X | |
USB-UART Bridge | X | |
Fully Bonded 400-pin FMC HPC Connector | X | |
Micro SD Card Connector | X | |
HDMI Sink and HDMI Source | X | |
VGA Connector | X | |
Two four-lane DisplayPort Connectors | X | |
Audio Codec w/ Four 3.5mm Jacks | X | |
10/100/1000 Ethernet PHY | X | |
1GiB 1800Mt/s DDR3 Memory | X | |
Serial Flash | X | |
Five Pmod Ports | X | |
Pmod for XADC Signals | X | |
USB HID Host | X | |
USB 2.0 Host/Device/OTG PHY | X |
Prerequisites
Hardware
-
Genesys 2 FPGA board
-
Micro-USB cable
-
Genesys 2 Power Supply
-
Headphones or Speakers
-
Audio Input device (Aux-In, Guitar, etc.)
Software
-
Vivado Design Suite 2016.4
-
Newer versions can be used, but the procedure may vary slightly
-
Xilinx SDK 2016.4 must be included in the installation
-
-
Digilent Board Support Files for Vivado
-
Follow theVivado Board Files for Digilent 7-Series FPGA Boardsguide on how to install Board Support Files for Vivado.
-
Downloads
Download and Launch the Genesys 2 DMA Audio Demo
1) Follow theUsing Digilent Github Demo ProjectsTutorial. Since this is a Vivado SDK Project, you can either directly launch SDK and import the hardware handoff, or you can generate a bitstream in Vivado before launching SDK. Select the hardware handoff options in the tutorial if you don't want to modify the project block design later. Return to this guide when prompted to check for additional hardware requirements and setup.
3) Make sure that your board is plugged into a 12 Volt power supply, turn on your board, and open a serial terminal (such as TeraTerm) on your computer to receive status messages. Setup the serial port to connect to the appropriate port for your board, with a baud rate of 9600. Then return to the Github Project Tutorial to finish programming and running the demo.
Tip
You can connect your serial terminal to your board before the board is programmed, this will make sure that you don't miss any startup messages. If the demo is already running, you can restart the demo in SDK to make sure you get these messages.
Using the Genesys 2 DMA Audio Demo
1. Controls
Audio playback and recording are controlled by push buttons as below.
Button | Function |
---|---|
BTNU | record from mic in |
BTNR | record from line in |
BTNL | play on line out |
BTND | play on headphone out |
2. Recording from an input
Press the record button associated with the input you want to record from. Once the recording is activated, the message “Start Recording…” will be sent over UART and the demo will record 5 seconds of audio. If any buttons are pressed during the recording, the message “Still Recording…” will be sent over UART.
3. Playing to an output
Press the play button associated with the output you want to play to. Once the playback is activated, the message “Start Playback…” will be sent over UART and the demo will play 5 seconds of audio. If any buttons are pressed during the playback, the message “Still Playing…” will be sent over UART.