Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
learn:programmable-logic:tutorials:nexys-4-ddr-gpio-demo:start [2016/07/08 21:25] – created Sam K | learn:programmable-logic:tutorials:nexys-4-ddr-gpio-demo:start [2024/04/16 17:21] (current) – [Overview] James Colvin | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
{{: | {{: | ||
+ | ===== Overview ===== | ||
+ | <WRAP center round tip 80%> | ||
+ | The Nexys 4 DDR was rebranded as the Nexys A7 starting with Revision D starting in 2018. Updated releases of this particular demo project, usable by all versions of both the Nexys 4 DDR and the Nexys A7 can be found in the [[/ | ||
+ | </ | ||
+ | |||
+ | ==== Description ==== | ||
+ | |||
+ | The Basic User Demo project demonstrates a simple use of the Nexys4-DDR' | ||
+ | GPIOs and UART port. The behavior is as follows: | ||
+ | |||
+ | * The 16 User LEDs are tied to the 16 User Switches. | ||
+ | * The 7-Segment display counts from 0 to 9 on each of its 8 digits. Also, single anodes of the 7-Segment display are blanked by holding BTNU, BTNL, BTND, or BTNR. Holding the center button blanks all the 7-Segment anodes. | ||
+ | * An introduction message is sent across the UART when the device is finished being configured. | ||
+ | * A message is sent over UART whenever BTNU, BTNL, BTND, or BTNR is pressed. | ||
+ | * The Tri-Color LEDs cycle through several colors in a ~4 second loop. | ||
+ | * Data from the microphone is collected and transmitted over the mono audio out port. | ||
+ | * The demo is reset whenever BTNC is pressed. | ||
- | ===== Overview ===== | ||
==== Features Used ==== | ==== Features Used ==== | ||
Line 27: | Line 43: | ||
^ Temperature sensor | ^ Temperature sensor | ||
^ 10/100 Ethernet PHY | X | | | ^ 10/100 Ethernet PHY | X | | | ||
- | |||
- | ==== Description ==== | ||
- | |||
- | The Basic User Demo project demonstrates a simple usage of the Nexys4-DDR' | ||
- | GPIO and UART. The behavior is as follows: | ||
- | |||
- | * The 16 User LEDs are tied to the 16 User Switches. While the centerUser button is pressed, the LEDs are instead tied to GND | ||
- | * The 7-Segment display counts from 0 to 9 on each of its 8 digits. This count is reset when the center button is pressed. Also, single anodes of the 7-Segment display are blanked by holding BTNU, BTNL, BTND, or BTNR. Holding the center button blanks all the 7-Segment anodes. | ||
- | * An introduction message is sent across the UART when the device is finished being configured, and after the center User button is pressed. | ||
- | * A message is sent over UART whenever BTNU, BTNL, BTND, or BTNR is pressed. | ||
- | * The Tri-Color LEDs cycle through several colors in a ~4 second loop | ||
- | * Data from the microphone is collected and transmitted over the mono audio out port. | ||
- | * Note that the center user button behaves as a user reset button | ||
- | | ||
- | All UART communication can be captured by attaching the UART port to a | ||
- | computer running a Terminal program with 9600 Baud Rate, 8 data bits, no | ||
- | parity, and 1 stop bit. | ||
------- | ------- | ||
===== Prerequisites ===== | ===== Prerequisites ===== | ||
- | |||
- | ===Skills=== | ||
- | * **Basic familiarity with Vivado** | ||
- | * //This experience can be found by walking through our " | ||
===Hardware=== | ===Hardware=== | ||
- | * **Basys3 | + | * **Nexys 4 DDR FPGA board** |
* **Micro-USB cable** | * **Micro-USB cable** | ||
- | * **Headphones | + | * **Set of headphones |
===Software=== | ===Software=== | ||
- | * **Vivado Design Suite 2015.X** | + | * **Vivado Design Suite 2016.4** |
- | * //Newer/ | + | * //Newer versions can be used, but the procedure may vary slightly// |
+ | * **Nexys 4 DDR Support Files** | ||
+ | * These files will describe GPIO interfaces on your board and make it easier to select your FPGA board and add GPIO IP blocks. | ||
+ | * Follow the Wiki guide: [[vivado: | ||
----- | ----- | ||
===== Downloads ===== | ===== Downloads ===== | ||
- | Nexys4-DDR Support | + | Nexys 4 DDR GPIO Demo Project |
------- | ------- | ||
- | ===== How to... ===== | ||
+ | =====Download and Launch the Nexys 4 DDR Basic User Demo===== | ||
+ | >1) Follow the [[: | ||
- | ==== 1. Generate the Project ==== | + | > |
- | + | ||
- | >1.1) Download the repository linked in the download section and unzip it in the location of your choosing. | + | |
- | + | ||
- | >1.2) Generate | + | |
- | + | ||
- | ==== 2. Build the Project ==== | + | |
- | + | ||
- | >2.1) Click **Generate Bitstream** | + | |
> | > | ||
- | >Note: If you want, you can click each step by itself in the order of **Run Synthesis**, | + | >{{:learn: |
- | > | + | |
- | >{{:basys3:buildflow.png?600|}} | + | |
- | ==== 3. Program | + | =====Using |
- | >3.1) Once you have generated your bit file, Click on the hardware manager | + | ====1. Switches |
- | > | + | |
- | > | + | |
- | >3.2) Click program to load the project onto your Nexys4-DDR. | + | >For this section, all the switches are tied to their corresponding |
- | + | ||
- | ==== 4. Run the Project ==== | + | |
- | + | ||
- | This portion will help you run the demo and observe all its features. | + | |
- | + | ||
- | >4.1) Using the Switches with Leds | + | |
- | > | + | |
- | >For this section, all the switches are tied to their corresponding | + | |
> | > | ||
> | > | ||
- | >4.2) Seven Segment Display | + | ====2. Seven Segment Display==== |
- | > | + | |
>The 7-Segment display counts from 0 to 9 on each of its 8 digits. This count is reset when the center button is pressed. Also, single anodes of the 7-Segment display are blanked by holding BTNU, BTNL, BTND, or BTNR. Holding the center button blanks all the 7-Segment anodes. | >The 7-Segment display counts from 0 to 9 on each of its 8 digits. This count is reset when the center button is pressed. Also, single anodes of the 7-Segment display are blanked by holding BTNU, BTNL, BTND, or BTNR. Holding the center button blanks all the 7-Segment anodes. | ||
> | > | ||
> | > | ||
- | >4.3) Tri-color Leds | + | ====3. Tri-Color LEDs==== |
- | > | + | |
- | >The two tri-color | + | >The two tri-color |
+ | |||
+ | ====4. Microphone to PWM Output==== | ||
- | >4.4) Microphone to PWM Output | ||
- | > | ||
>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. | >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. | ||
> | > | ||
> | > | ||
- | {{tag> | + | {{tag> |