Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| learn:programmable-logic:tutorials:nexys-4-user-demo:start [2016/07/08 21:15] – created Sam K | learn:programmable-logic:tutorials:nexys-4-user-demo:start [2022/10/04 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| {{: | {{: | ||
| ===== Overview ===== | ===== Overview ===== | ||
| - | ==== Features Used ==== | ||
| - | |||
| - | | ^ Not Used ^ Used ^ | ||
| - | ^ 16 user switches | ||
| - | ^ 16 user LEDs | ||
| - | ^ Two tri-color LEDs | ||
| - | ^ 5 User Push Buttons | ||
| - | ^ Two 4-digit 7-segment displays | ||
| - | ^ 4 Pmod ports | ||
| - | ^ Pmod for XADC signals | ||
| - | ^ 12-bit VGA output | ||
| - | ^ USB-UART Bridge | ||
| - | ^ Serial Flash for Application Data | X | | | ||
| - | ^ USB HID Host With Mouse | | ||
| - | ^ USB HID Host With Keyboard | ||
| - | ^ Micro SD card connector | ||
| - | ^ PWM audio output | ||
| - | ^ PDM microphone | ||
| - | ^ 3-axis accelerometer | ||
| - | ^ 16Mbyte CellularRAM | ||
| - | ^ Temperature sensor | ||
| - | ^ 10/100 Ethernet PHY | X | | | ||
| Line 34: | Line 12: | ||
| usage of the VGA display in 1280 X 1024 mode, the Artix7 XADC, the Nexys4 onboard ADT7420 | usage of the VGA display in 1280 X 1024 mode, the Artix7 XADC, the Nexys4 onboard ADT7420 | ||
| Temperature Sensor on Two-Wire Interface, the ADXL362 Accelerometer on SPI Interface, | Temperature Sensor on Two-Wire Interface, the ADXL362 Accelerometer on SPI Interface, | ||
| - | the PS2 interface, the RGB Leds, the ADMP421 Omnidirectional Microphone, Audio Output, | + | the PS2 interface, the RGB LEDs, the ADMP421 Omnidirectional Microphone, Audio Output, |
| the 16MB PSRAM Memory, user buttons, switches and LEDs. | the 16MB PSRAM Memory, user buttons, switches and LEDs. | ||
| - | The project was created under ISE 14.7 and then ported to Vivado | + | The project was created under ISE 14.7 and ported to Vivado |
| The behavior is as follows: | The behavior is as follows: | ||
| Line 44: | Line 22: | ||
| items on the screen: | items on the screen: | ||
| - | * a Digilent / Analog Devices logo | + | * A Digilent / Analog Devices logo |
| - | * a mouse cursor, if a Usb mouse is connected to the board when the project is started | + | * 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 | + | * 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 | + | * 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 FPGA temperature, |
| - | * The value of the R, G and B components sent to the RGB Leds LD16 and LD17 | + | * The value of the R, G and B components sent to the RGB LEDs LD16 and LD17 |
| Other features: | Other features: | ||
| Line 56: | Line 34: | ||
| * Pressing BTNL, BTNC and BTNR will toggle between Red, Green and Blue colors on LD16 and LD17 Color sweeping returns when BTND is pressed. BTND also togles between LD16, LD17, none or both | * Pressing BTNL, BTNC and BTNR will toggle between Red, Green and Blue colors on LD16 and LD17 Color sweeping returns when BTND is pressed. BTND also togles between LD16, LD17, none or both | ||
| * Pressing BTNU will start audio recording for about 5S, then the audio data will be played back on the Audio output. While recording, LD15..LD0 will show a progressbar moving to the right, while playing back, LD15..LD0 will show a progressbar moving to the left. Recorded audio data is stored in the onboard Cellular RAM. | * Pressing BTNU will start audio recording for about 5S, then the audio data will be played back on the Audio output. While recording, LD15..LD0 will show a progressbar moving to the right, while playing back, LD15..LD0 will show a progressbar moving to the left. Recorded audio data is stored in the onboard Cellular RAM. | ||
| + | |||
| + | ==== Features Used ==== | ||
| + | |||
| + | | ^ Not Used ^ Used ^ | ||
| + | ^ 16 User Switches | ||
| + | ^ 16 User LEDs | ||
| + | ^ Two Tri-color LEDs | ||
| + | ^ 5 User Push Buttons | ||
| + | ^ Two 4-Digit 7-Segment Displays | ||
| + | ^ 4 Pmod Ports | ||
| + | ^ Pmod for XADC Signals | ||
| + | ^ 12-Bit VGA Output | ||
| + | ^ USB-UART Bridge | ||
| + | ^ Serial Flash for Application Data | X | | | ||
| + | ^ USB HID Host with Mouse | | ||
| + | ^ USB HID Host with Keyboard | ||
| + | ^ Micro SD Card Connector | ||
| + | ^ PWM Audio Output | ||
| + | ^ PDM Microphone | ||
| + | ^ 3-Axis Accelerometer | ||
| + | ^ 16Mbyte CellularRAM | ||
| + | ^ Temperature Sensor | ||
| + | ^ 10/100 Ethernet PHY | X | | | ||
| + | |||
| ------- | ------- | ||
| ===== Prerequisites ===== | ===== Prerequisites ===== | ||
| - | |||
| - | ===Skills=== | ||
| - | * **Basic familiarity with Vivado** | ||
| - | * //This experience can be found by walking through our " | ||
| ===Hardware=== | ===Hardware=== | ||
| - | * **Nexys4 FPGA board** | + | * **Nexys4 FPGA Board** |
| - | * **Micro-USB | + | * **Micro-USB |
| - | * **Headphones or speaker** | + | * **Headphones or Speaker** |
| * **VGA Monitor** | * **VGA Monitor** | ||
| * **USB Mouse** | * **USB Mouse** | ||
| ===Software=== | ===Software=== | ||
| - | * **Vivado Design Suite 2015.X** | + | * **Vivado Design Suite 2016.4** |
| - | * //Newer/ | + | * //Newer versions can be used, but the procedure may vary slightly// |
| ----- | ----- | ||
| ===== Downloads ===== | ===== Downloads ===== | ||
| - | Nexys4 | + | |
| + | Nexys4 | ||
| ------- | ------- | ||
| - | ===== How to... ===== | ||
| + | ===== Download and Launch the Nexys 4 Out of Box Demo ===== | ||
| + | >Follow the [[: | ||
| - | ==== 1. Generate | + | ===== Using the Nexys 4 |
| - | >1.1) Download | + | This portion will help you run the demo and observe all its features. |
| - | >1.2) Generate | + | ==== 1. Using the Switches with LEDs ==== |
| - | ==== 2. Build the Project ==== | + | >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. If the center push button is pressed, all the LEDs will be tied to ground |
| - | + | ||
| - | >2.1) Click **Generate Bitstream** on the left hand menu towards the bottom. Vivado | + | |
| > | > | ||
| - | >Note: If you want, you can click each step by itself in the order of **Run Synthesis**, | + | >{{:nexys4-ddr: |
| - | > | + | |
| - | >{{:basys3:buildflow.png?600|}} | + | |
| - | ==== 3. Program the Board ==== | + | ==== 2. Seven Segment Display |
| - | >3.1) Once you have generated your bit file, Click on the hardware manager and connect | + | >The 7-Segment display runs a constant snake pattern. There is no way to change this pattern with the Nexys4 I/O. |
| - | > | + | |
| - | > | + | |
| - | >3.2) Click program to load the project onto your Nexys4. | + | ==== 3. Tri-color LEDs and Push Buttons ==== |
| - | ==== 4. Run the Project ==== | + | >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 pushed btnR, the LEDs are set to blue. If the user pushed btnC, the LEDs are set to green. If the user pushed btnL, the LEDs are set to red. Finally if the user pushed 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. |
| - | + | ||
| - | 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 led. Every time a switch is toggled, the led directly above it will toggle with it. If the center push button is pressed, all the Leds will be tied to ground | + | >{{: |
| - | > | + | |
| - | >{{: | + | |
| - | >4.2) Seven Segment Display | + | ==== 4. Audio Recorder ==== |
| - | > | + | |
| - | >The 7-Segment display runs a constant snake pattern. There is no way to change this pattern with the Nexys4 I/O. | + | |
| - | >4.3) Tri-color Leds and Push Buttons | + | >If the user pushes btnU, an audio recording is started and data is taken from the omnidirectional |
| - | > | + | |
| - | >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 pushed btnR, the leds are set to blue. If the user pushed btnC, the leds are set to green. If the user pushed btnL, the leds are set to red. Finally if the user pushed 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. | + | |
| - | > | + | |
| - | > | + | |
| - | + | ||
| - | >4.4) Audio Recorder | + | |
| - | > | + | |
| - | >If the user pushes btnU, an audio recording is started and data is taken from the omni-directional | + | |
| > | > | ||
| > | > | ||
| - | >4.5) VGA Output and Mouse Control | + | ==== 5. VGA Output and Mouse Control |
| > | > | ||
| >The project connects to the VGA display in a 1280*1024 resolution and displays various items on the screen: | >The project connects to the VGA display in a 1280*1024 resolution and displays various items on the screen: | ||
| > | > | ||
| - | > * a Digilent / Analog Devices logo | + | > * A Digilent / Analog Devices logo. |
| - | > * a mouse cursor, if a Usb mouse is connected to the board when the project is started | + | > * 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 | + | > * 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 | + | > * 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 FPGA temperature, |
| - | > * The value of the R, G and B components sent to the RGB Leds LD16 and LD17 | + | > * The value of the R, G and B components sent to the RGB LEDs LD16 and LD17. |
| > | > | ||
| > | > | ||
| - | {{tag> | + | {{tag> |

