Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| learn:programmable-logic:tutorials:nexys-4-ddr-gpio-demo:start [2017/02/20 22:26] – Andrew Holzer | learn:programmable-logic:tutorials:nexys-4-ddr-gpio-demo:start [2022/10/04 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| {{: | {{: | ||
| - | |||
| ===== Overview ===== | ===== Overview ===== | ||
| + | |||
| + | ==== 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. | ||
| + | |||
| ==== Features Used ==== | ==== Features Used ==== | ||
| Line 27: | Line 40: | ||
| ^ 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. | ||
| ------- | ------- | ||
| Line 52: | Line 48: | ||
| * **Nexys 4 DDR FPGA board** | * **Nexys 4 DDR FPGA board** | ||
| * **Micro-USB cable** | * **Micro-USB cable** | ||
| - | * **Headphones | + | * **Set of headphones |
| ===Software=== | ===Software=== | ||
| Line 63: | Line 59: | ||
| ===== 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:programmable-logic: |
| - | > | + | |
| - | >{{:basys3:buildflow.png?600|}} | + | |
| - | + | ||
| - | ==== 3. Program the Board ==== | + | |
| - | + | ||
| - | >3.1) Once you have generated your bit file, Click on the hardware manager and connect to your board by choosing the local server option. | + | |
| - | > | + | |
| - | >{{:nexys4-ddr:deviceconnected.jpg?600|}} | + | |
| - | + | ||
| - | >3.2) Click program to load the project onto your Nexys4-DDR. | + | |
| - | ==== 4. Run the Project | + | =====Using |
| - | This portion will help you run the demo and observe all its features. | + | ====1. Switches and LEDs==== |
| - | >4.1) Using the Switches with Leds | + | >For this section, all the switches are tied to their corresponding |
| - | > | + | |
| - | >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> |

