Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
learn:programmable-logic:tutorials:nexys-video-dma-audio-demo:start [2017/05/02 22:12] – Updated Download ZIP Link Arthur Brown | learn:programmable-logic:tutorials:nexys-video-dma-audio-demo:start [2017/10/24 22:35] – Arthur Brown | ||
---|---|---|---|
Line 6: | Line 6: | ||
----- | ----- | ||
===== Overview ===== | ===== Overview ===== | ||
+ | |||
+ | ==== Description ==== | ||
+ | |||
+ | The audio demo records a 5 second sample from microphone(J6) or line in (J7) and plays it back on headphone out(J4) or line out (J5). Recording and playback are started by push buttons | ||
+ | |||
==== Features Used ==== | ==== Features Used ==== | ||
Line 26: | Line 31: | ||
^ Pmod for XADC signals | ^ Pmod for XADC signals | ||
^ USB HID Host | ^ USB HID Host | ||
- | |||
- | ==== Description ==== | ||
- | |||
- | The audio demo records a 5 second sample from microphone(J6) or line in (J7) and plays it back on headphone out(J4) or line out (J5). Record and playback is started by push buttons: | ||
- | ^ Button | ||
- | ^ BTNL | play on Line out | | ||
- | ^ BTNR | record from line in | | ||
- | ^ BTNU | record from microphone | ||
- | ^ BTND | playback on headphone | ||
- | |||
- | For example, with the push of BTNU this demo records 5 | ||
- | seconds of audio data from the MIC (J6) input. Consequently by pressing BTND the demo plays on the HPH OUT (J4) the recorded samples. | ||
- | |||
- | |||
===== Prerequisites ===== | ===== Prerequisites ===== | ||
Line 53: | Line 44: | ||
* **Vivado Design Suite 2016.4** | * **Vivado Design Suite 2016.4** | ||
* //Newer versions can be used, but the procedure may vary slightly// | * //Newer versions can be used, but the procedure may vary slightly// | ||
+ | * **Digilent Board Support Files for Vivado** | ||
+ | * Follow the [[vivado: | ||
+ | ===== Downloads ===== | ||
+ | Nexys Video DMA Audio Project Repository -- [[https:// | ||
- | ==== 1. Setup ==== | + | ===== Download and Launch |
- | + | ||
- | Plug in your microphone or aux input into the respective jack on your Nexys Video. Plug your speakers/ | + | |
- | + | ||
- | ==== 2. Download | + | |
- | + | ||
- | Nexys Video Support Repository -- [[https:// | + | |
- | + | ||
- | ==== 3. Load the Vivado Project ==== | + | |
- | + | ||
- | In your now unzipped project, open the file NexysVideoDMAAudio.xpr. This should open your project in Vivado. | + | |
- | + | ||
- | *The screenshots below are from another project but should look relatively the same and will work for our purposes. | + | |
- | + | ||
- | + | ||
- | {{: | + | |
- | + | ||
- | ==== 4. Synthesize, Implement and Generate Bitstream ==== | + | |
- | + | ||
- | To complete this step all that you need to do is click **Generate Bitstream** on the left hand menu towards the bottom. Vivado will run through both Run Synthesis and Run Implementation before it generates the bitstream automatically. If you want, you can click each step by itself in the order of **Run Synthesis**, | + | |
- | + | ||
- | {{: | + | |
- | + | ||
- | ==== 5. Connect and Program | + | |
- | + | ||
- | Once you have generated your bit file, Click on the hardware manager and connect to your board by choosing the local server option (Or press auto connect). | + | |
- | + | ||
- | {{: | + | |
- | + | ||
- | After your board is connected, click program device to load the DMA Audio Demo onto your Nexys Video. | + | |
- | + | ||
- | ==== 4. Export to SDK ==== | + | |
- | + | ||
- | Export the microblaze project by going to **File> | + | |
- | + | ||
- | + | ||
- | ==== 5. Import the SDK files ==== | + | |
- | In your project Explorer window on the left side, click **File>Import** then expand | + | >1) Follow |
- | ==== 6. Program | + | >2) In order to use the demo, you will need to plug in your microphone or aux input into the respective jack on your Nexys Video. Plug your speakers/ |
+ | > | ||
+ | > | ||
- | Click **Xilinx Tools>Program FPGA** | + | >3) Make sure that your board is plugged into a 12 Volt power supply, turn on your board, |
+ | > | ||
+ | >< | ||
+ | ===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. | ||
+ | </ | ||
+ | > | ||
+ | > | ||
- | ==== 7. Run the program | + | |
+ | ===== Using the Nexys Video DMA Audio Demo ===== | ||
- | Right click on the **demo** folder and click **Run as> | + | ==== 1. Controls ==== |
- | ===== Running the Nexys Video DMA Audio Demo ===== | + | Audio playback and recording are controlled by push buttons as below. |
- | This portion will help you run the demo and observe all its features. | + | ^ Button |
+ | ^ BTNU | record from microphone in | | ||
+ | ^ BTNR | record from line in | | ||
+ | ^ BTNL | play on line out | | ||
+ | ^ BTND | play on headphone out | | ||
- | ==== 1. Recording from an input ==== | + | ==== 2. Recording from an input ==== |
- | To record | + | Press the record |
- | ==== 2. Playing to an output ==== | + | ==== 3. Playing to an output ==== |
- | To play to the microphone input, press btnd. To play to the line output, press btnl. Once the playback is activated, | + | Press the play button associated with the output you want to play to. Once the playback is activated, the message "Start Playback..." |
- | {{tag> | + | {{tag> |