Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| programmable-logic:genesys-2:demos:oob [2022/09/12 15:38] – changed forum.digilentinc.com to forum.digilent.com jeff.greenberg_ni.com | programmable-logic:genesys-2:demos:oob [2022/10/04 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Genesys 2 Out of Box Demo ====== | ||
| + | |||
| + | {{: | ||
| + | |||
| + | |||
| + | ===== Overview ===== | ||
| + | |||
| + | <WRAP round important 660px> | ||
| + | ===Important.=== | ||
| + | This project can only be programmed using Vivado/SDK 2015.4 | ||
| + | </ | ||
| + | |||
| + | ==== Description ==== | ||
| + | |||
| + | The Genesys2 User Demo project demonstrates usage of most of the the Genesys2' | ||
| + | . The behavior is as follows: | ||
| + | |||
| + | * The 8 User LEDs are tied to the 8 User Switches. A back and forth animation is displayed on the LEDs. | ||
| + | * 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 pushbuttons (described in the table below). | ||
| + | * The Ethernet can be plugged into a network and is configured to work as an Echo Server. | ||
| + | * With a DVI source connected to J9 (HDMI IN), the demo works as a pass-through buffer outputting the data on DVI output J8 (HDMI OUT) and also J10 (DISPLAYPORT OUT). | ||
| + | * In the absence of a DVI source, the demo switches the video output to an internally generated pattern. | ||
| + | * The XADC is set up to monitor the internal FPGA temperature, | ||
| + | * The on-board Oled shows the Digilent logo on power-up. After two seconds, it switches to display the XADC readings and the local IP address. | ||
| + | * The Genesys2 also sends status messages through the UART terminal. It is configured to work at a baud rate of 115200 with 8 data bits, 1 stop bit, and no parity. | ||
| + | |||
| + | Despite the fact that the version of the Out-of-Box demo that is programmed into the Genesys 2's flash during manufacturing correctly drives DisplayPort, | ||
| + | |||
| + | **Note:** //The source files for the original version of the Out-of-Box demo created for 2014.4, with a functioning DisplayPort implementation, | ||
| + | ==== Features Used ==== | ||
| + | |||
| + | | ^ Not Used ^ Used ^ | ||
| + | ^ 8 user switches | ||
| + | ^ 8 user LEDs | | ||
| + | ^ 128×32 monochrome Oled display | ||
| + | ^ USB-UART Bridge | ||
| + | ^ 160-pin FMC LPC connector | ||
| + | ^ Micro SD card connector | ||
| + | ^ HDMI Sink and HDMI Source | ||
| + | ^ DisplayPort Source | ||
| + | ^ Audio codec w/ four 3.5mm jacks | | ||
| + | ^ 5 user push buttons | ||
| + | ^ User EEPROM | ||
| + | ^ 10/100/1000 Ethernet PHY | ||
| + | ^ 512MiB 800Mt/s DDR3 Memory | ||
| + | ^ Serial Flash | ||
| + | ^ Four Pmod ports | X | | | ||
| + | ^ Pmod for XADC signals | ||
| + | ^ USB HID Host | ||
| + | |||
| + | ------- | ||
| + | ===== Prerequisites ===== | ||
| + | |||
| + | ===Hardware=== | ||
| + | * **Genesys2 FPGA board** | ||
| + | * **Micro-USB cable** | ||
| + | * **Genesys2 power supply** | ||
| + | * **Various other cables** | ||
| + | |||
| + | ===Software=== | ||
| + | * **Xilinx SDK 2015.4** | ||
| + | * **Xilinx TEMAC IP Evaluation License** | ||
| + | * **Xilinx Displayport IP Evaluation License** | ||
| + | * **Digilent Board Support Files for Vivado** | ||
| + | * Follow the [[vivado: | ||
| + | |||
| + | ----- | ||
| + | |||
| + | ===== Downloads ===== | ||
| + | |||
| + | Genesys2 Project Repository -- [[https:// | ||
| + | |||
| + | ------ | ||
| + | |||
| + | ===== How to... ===== | ||
| + | |||
| + | ==== 1. Download the Project ==== | ||
| + | |||
| + | >1.1) Download the project zip file which can be downloaded above. Once you have downloaded the project, unzip it in the location of your choosing. | ||
| + | |||
| + | >1.2) If you want to generate the project in Vivado, continue to step 2. If you want to move straight to Xilinx SDK, skip to step 5. | ||
| + | |||
| + | ==== 2. Generate the Project ==== | ||
| + | >2.1) If not already installed, install the Vivado Board Files for the Genesys 2 by following this guide: [[vivado: | ||
| + | |||
| + | >2.2) Generate the **OOB** project by following this guide before continuing: [[vivado: | ||
| + | |||
| + | ==== 3. Build the Project ==== | ||
| + | |||
| + | >3.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. | ||
| + | > | ||
| + | >Note: If you want, you can click each step by itself in the order of **Run Synthesis**, | ||
| + | > | ||
| + | > | ||
| + | |||
| + | |||
| + | ==== 4. Export to SDK ==== | ||
| + | |||
| + | >4.1) Export the microblaze project by going to **File-> | ||
| + | > | ||
| + | >4.2) Skip to step 6. | ||
| + | |||
| + | ==== 5. Open Xilinx SDK and create a workspace ==== | ||
| + | |||
| + | >5.1) Open up Xilinx SDK 2015.4 and create a workspace where your project will be saved. | ||
| + | > | ||
| + | > | ||
| + | |||
| + | ==== 6. Import the SDK files ==== | ||
| + | |||
| + | >6.1) In your project Explorer window on the left side, click **File-> | ||
| + | > | ||
| + | > | ||
| + | |||
| + | >6.2) Navigate to where you saved the downloaded project, select the **sdk** folder, and click OK. In the //Import// window, click Finish to import the system hardware wrapper. | ||
| + | > | ||
| + | > | ||
| + | |||
| + | >6.3) Import the projects by clicking //Finish//. You can ignore the warnings that may pop up. | ||
| + | > | ||
| + | > | ||
| + | |||
| + | ==== 7. Program the FPGA ==== | ||
| + | |||
| + | >7.1) Click **Xilinx Tools-> | ||
| + | > | ||
| + | > | ||
| + | |||
| + | ==== 8. Program the Microblaze processor ==== | ||
| + | |||
| + | >8.1) Right click on the **demo** folder and click **Run as-> | ||
| + | > | ||
| + | > | ||
| + | |||
| + | ==== 9. Run the Project ==== | ||
| + | |||
| + | This portion will help you run the demo and observe all its features. **Note:** In its current state, the Ethernet port is not fully functional. | ||
| + | |||
| + | >9.1) Using the Switches with LEDs | ||
| + | > | ||
| + | >The Genesys2 will display a periodic light pattern once the program has started. Flipping any of the switches turns the corresponding LED on. | ||
| + | |||
| + | >9.2) Setting up UART communications | ||
| + | > | ||
| + | >Plug a micro-USB cable into the plug labeled UART, and plug this into your computer. | ||
| + | > | ||
| + | > | ||
| + | > | ||
| + | >You can use any serial terminal (Tera Term) to connect to the Genesys2 using 115200 baud rate, 8 data bits, no parity bit and 1 stop bit. Once connected, the Genesys2 will display the Internal temperature, | ||
| + | > | ||
| + | > | ||
| + | |||
| + | >9.3) Oled Display | ||
| + | > | ||
| + | > | ||
| + | > | ||
| + | > | ||
| + | |||
| + | >9.4) HDMI video | ||
| + | > | ||
| + | > | ||
| + | > | ||
| + | > | ||
| + | |||
| + | >9.5) Ethernet Echo Server | ||
| + | > | ||
| + | > | ||
| + | |||
| + | >9.6) Audio Demo | ||
| + | > | ||
| + | >> | ||
| + | >> | ||
| + | >>To record from the microphone input, press bBTNU. To record from the line input, press BTNR. Once the recording is activated, the message "Start Recording..." | ||
| + | > | ||
| + | >> | ||
| + | >> | ||
| + | >>To play to the microphone input, press BTND. To play to the line output, press BTNL. Once the playback is activated, | ||
| + | |||
| + | >9.7) Image programmer project | ||
| + | > | ||
| + | >The imagedump project can be programmed onto your Genesys 2 just as you did the g2demo project. This demo provides a way to program a 1920x1080 image stored in a C header exported from GIMP to the flash of your board. This image can then be loaded into the VDMA and displayed using the g2demo project. With minimal modification, | ||
| + | |||
| + | {{tag> | ||

