Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
learn:programmable-logic:tutorials:nexys-4-ddr-user-demo:start [2017/01/06 01:33] – [Downloads] jon peyronlearn:programmable-logic:tutorials:nexys-4-ddr-user-demo:start [2024/04/16 17:21] (current) – [Overview] James Colvin
Line 1: Line 1:
  
-====== Nexys4-DDR Advanced I/O Demo ( Built-In Self-Test) ======+====== Nexys 4 DDR Advanced I/O Demo ( Built-In Self-Test) ======
  
 {{:nexys4-ddr:userdemo1.jpg?500|}} {{:nexys4-ddr:userdemo1.jpg?500|}}
  
 ===== Overview ===== ===== 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 [[/programmable-logic/nexys-a7/start#example_projects|Nexys A7 Resource center]].
 +</WRAP>
 +
 +==== Description ====
 +
 +The project represents the User Demo found on the Nexys4-DDR out-of-box and demonstrates 
 +usage of the VGA display in 1280x1024 mode, the Artix7 XADC, the Nexys4 DDR onboard ADT7420 
 +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 16MB PSRAM Memory, user buttons, switches and LEDs.
 +
 +The project was created under ISE 14.7 and then ported to Vivado 2016.4
 +
 +The behavior is as follows:
 +
 +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 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
 +  * 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 onboard ADT7420 temperature sensor temperature value and the accelerometertemperature value
 +  * The value of the R, G and B components sent to the RGB LEDs LD16 and LD17
 +
 +Other Features:
 +
 +  * The 16 Switches (SW0..SW15) are connected to LD0..LD15 except when audio recording is done
 +  * 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 DDR2 memory. 
 +
 ==== Features Used ==== ==== Features Used ====
  
Line 27: Line 59:
 ^ Temperature sensor                      X  | ^ Temperature sensor                      X  |
 ^ 10/100 Ethernet PHY                |  X  |     | ^ 10/100 Ethernet PHY                |  X  |     |
- 
- 
- 
- 
-==== Description ==== 
- 
-The project represents the User Demo found on the Nexys4-DDR configuration and demonstrates  
-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,  
-the PS2 interface, the RGB Leds, the ADMP421 Omnidirectional Microphone, Audio Output,  
-the 16MB PSRAM Memory, user buttons, switches and LEDs. 
- 
-The project was created under ISE 14.7 and then ported to Vivado 14.2 
- 
-The behavior is as follows: 
- 
-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 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 
-  * 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 onboard ADT7420 temperature sensor temperature value and the accelerometertemperature value 
-  * The value of the R, G and B components sent to the RGB Leds LD16 and LD17 
- 
-Other features: 
- 
-  * The 16 Switches (SW0..SW15) are connected to LD0..LD15 except when audio recording is done 
-  * 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 DDR2 memory.  
  
 ------- -------
Line 68: Line 69:
  
 ===Hardware=== ===Hardware===
-  * **Basys3 FPGA board**+  * **Nexys 4 DDR FPGA board**
   * **Micro-USB cable**   * **Micro-USB cable**
   * **Headphones or speaker**    * **Headphones or speaker** 
Line 75: Line 76:
  
 ===Software=== ===Software===
-  * **Vivado Design Suite 2015.X** +  * **Vivado Design Suite 2016.4** 
     * //Newer/older versions can be used, but the procedure may vary slightly//     * //Newer/older versions can be used, but the procedure may vary slightly//
  
Line 81: Line 82:
  
 ===== Downloads ===== ===== Downloads =====
-Nexys4-DDR Support Repository -- [[https://github.com/Digilent/Nexys4DDR/archive/master.zip|ZIP]] [[https://github.com/Digilent/Nexys4DDR|GIT Repo]]+Nexys 4 DDR OOB Project Repository -- [[https://github.com/Digilent/Nexys-4-DDR-OOB/releases/download/v2016.4-2/Nexys-4-DDR-OOB-2016.4-2.zip|ZIP Archive]] [[https://github.com/Digilent/Nexys-4-DDR-OOB|GIT Repo]]
  
-Project Name: User_Demo 
 ------- -------
  
-===== How to... ===== 
  
-==== 1. Generate the Project ====+===== Download and Launch the Nexys 4 DDR Advanced User Demo =====
  
->1.1) Download the repository linked in the download section and place it in the location of your choosing+>Follow the [[:learn:programmable-logic:tutorials:github-demos:start|Using Digilent Github Demo Projects]] Tutorial. This is an HDL design project, and as such does not support Vivado SDK, select the tutorial options appropriate for a Vivado-only design. As you do not need to set up any of your additional hardware until after your board has been programmed, you do not need to return to this guide when prompted to check for extra hardware requirements and setup.
  
->1.2) Generate the **User_Demo** project in the Projects folder by following this guide before continuing: [[vivado:github|How to Generate a Project from Digilent's Github]]+===== Using the Nexys 4 DDR Advanced User Demo =====
  
-==== 2Build the Project ====+==== 1Using the Switches with LEDs ====
  
->2.1) 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+>For this section, all the switches are tied to their corresponding LEDEvery time a switch is toggled, the LED directly above it will toggle with it.
 > >
->NoteIf you want, you can click each step by itself in the order of **Run Synthesis**, **Run Implementation** and then **Generate Bitstream**. +>{{:nexys4-ddr:userdemo10.jpg?300|}}{{:nexys4-ddr:userdemo11.jpg?300|}}{{:nexys4-ddr:userdemo12.jpg?300|}}
-+
->{{:basys3:buildflow.png?600|}}+
  
-==== 3Program the Board ====+==== 2Seven Segment Display ====
  
->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. +>The 7-Segment display runs a constant snake patternThere is no way to change this pattern with the Nexys4-DDR I/O.
-+
->{{:nexys4-ddr:deviceconnected.jpg?600|}}+
  
->3.2) Click program to load the project onto your Nexys4-DDR.+==== 3. Tri-color LEDs and Push Buttons ====
  
-==== 4Run the Project ==== +>The two tri-color LEDs are initially set to gradually change from red to green, then green to blue, then back to redIf the user pushes btnR, the LEDs are set to blueIf the user pushes btnC, the LEDs are set to greenIf the user pushes btnL, the LEDs are set to red. Finally if the user pushes 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 ledEvery time a switch is toggled, the led directly above it will toggle with itIf the center push button is pressed, all the Leds will be tied to ground  +>{{:nexys4-ddr:userdemo2.jpg?200|}}{{:nexys4-ddr:userdemo3.jpg?200|}}{{:nexys4-ddr:userdemo4.jpg?200|}}{{:nexys4-ddr:userdemo5.jpg?200|}}{{:nexys4-ddr:userdemo6.jpg?200|}}{{:nexys4-ddr:userdemo7.jpg?200|}}{{:nexys4-ddr:userdemo8.jpg?200|}}
-+
->{{:nexys4-ddr:userdemo10.jpg?300|}}{{:nexys4-ddr:userdemo11.jpg?300|}}{{:nexys4-ddr:userdemo12.jpg?300|}}+
  
->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-DDR I/O.+
  
->4.3) Tri-color Leds and Push Buttons   +>If the user pushes btnUan audio recording is started and data is taken from the omni-directional microphoneThe data is stored into the DDR2 memoryWhile the recorder is recording, the LEDs will light up from left to rightAfter about five seconds, the audio will be read from DDR2 memory and played through the headphone jack (labeled mono audio out). LEDs will turn off from right to left.
->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 blueIf the user pushed btnC, the leds are set to greenIf the user pushed btnL, the leds are set to redFinally 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.+
 > >
->{{:nexys4-ddr:userdemo2.jpg?200|}}{{:nexys4-ddr:userdemo3.jpg?200|}}{{:nexys4-ddr:userdemo4.jpg?200|}}{{:nexys4-ddr:userdemo5.jpg?200|}}{{:nexys4-ddr:userdemo6.jpg?200|}}{{:nexys4-ddr:userdemo7.jpg?200|}}{{:nexys4-ddr:userdemo8.jpg?200|}}+>{{:nexys4-ddr:userdemo9.jpg?300|}} 
  
->4.4) Audio Recorder +==== 5VGA Output and Mouse Control ====
->   +
->If the user pushes btnU, an audio recording is started and data is taken from the omni-directional microphone. The data is stored into the DDR2 memory. While the recorder is recording, the leds will light up from left to right. After about five seconds, the audio will be read from DDR2 memory and played through the headphone jack. Leds will turn off from right to left. +
-+
->{{:nexys4-ddr:userdemo9.jpg?300|}} +
  
->4.5) VGA Output and Mouse Control +>When the demo is connected to a VGA display, the following is displayed at 1280x1024 resolution:
->   +
->The project connects to the VGA display in 1280*1024 resolution and displays various items on the screen:+
 > >
->  * Digilent / Analog Devices logo +>  * Digilent / Analog Devices logo 
->  * mouse cursor, if a Usb mouse is connected to the board when the project is started +>  * 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 
->  * 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 +>  * 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 onboard ADT7420 temperature sensor temperature value and the accelerometertemperature value +>  * The FPGA temperature, the onboard ADT7420 temperature sensor temperature value and the accelerometer temperature value 
->  * 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 color components sent to the RGB LEDs LD16 and LD17
 > >
 >{{:nexys4-ddr:userdemo1.jpg?500|}} >{{:nexys4-ddr:userdemo1.jpg?500|}}
  
-{{tag>learn programmable-logic tutorial nexys-4-ddr}}+{{tag>learn programmable-logic project nexys-4-ddr}}