Genesys 2 HDMI Demo
概述
Description
Genesys 2 HDMI演示项目展示了Genesys 2的HDMI和HDMI端口的用法。。行为如下:
-
A menu is displayed over UART at 115200 baud.
-
There are 3 video buffers that can hold video data, as well as an input pointer and an output pointer.
-
输入指针选择要写入的缓冲区(测试模式或HDMI IN的输入流)。
-
输出指针选择哪些显示缓冲区以通过HDMI OUT端口显示。
-
The output resolution is controlled independent from the input data. This output resolution can be changed using the menu.
重要的
The drawing functions (Functions 3, 4, 7, and 8) were designed for the Zynq processor. These functions run very slowly on the Microblaze processor, so it is advised not to use these functions for the time being. It is possible that the floating point calculations are slowing these functions down. This should be fixed in a later release.
Features Used
Not Used | 用过的 | |
---|---|---|
8个用户开关 | X | |
8 User LEDs | X | |
6 User Push Buttons | X | |
128×32单色OLEDDisplay | X | |
USB-UART Bridge | X | |
Fully Bonded 400-pin FMC HPC Connector | X | |
微型SD卡连接器 | X | |
HDMI Sink and HDMI Source | X | |
VGA连接器 | X | |
Two four-lane DisplayPort Connectors | X | |
Audio Codec w/ Four 3.5mm Jacks | X | |
10/100/1000 Ethernet PHY | X | |
1GiB 1800Mt/s DDR3 Memory | X | |
Serial Flash | X | |
五个PMOD端口 | X | |
XADC信号的PMOD | X | |
USB HID Host | X | |
USB 2.0 Host/Device/OTG PHY | X |
Prerequisites
硬件
-
Genesys 2 FPGA board
-
2条微型USB电缆
-
Genesys 2 Power Supply
-
1或2 HDMI-HDMI或HDMI-DVI电缆
Software
-
Vivado Design Suite 2016.4
-
The project must be generated in 2016.4
-
-
Xilinx SDK 2016.4
-
Newer versions can be used, but the procedure may vary slightly
-
Board Support Files
-
Genesys 2支持文件
-
These files will describeGPIO在板上的接口,使选择FPGA板并添加更容易GPIOIP blocks.
-
Follow the Wiki guide:Vivado Board Files for Digilent 7-Series FPGA Boardson how to install Board Support Files for Vivado.
-
Downloads
Download and Launch the Genesys 2 HDMI Demo
1) Follow theUsing Digilent Github Demo Projects教程。由于这是一个Vivado SDK项目,因此您可以直接启动SDK并导入硬件交接,也可以在启动SDK之前在Vivado生成Bitstream。如果您不想以后修改项目块设计,请在教程中选择硬件交接选项。当提示检查其他硬件要求和设置时,请返回本指南。
2) Turn on your board and open a serial terminal (such as TeraTerm) on your computer to receive status messages. Setup the serial port to connect to the appropriate port for your board, with a baud rate of 115200. Then return to the Github Project Tutorial to finish programming and running the demo.
Tip
You can connect your serial terminal to your board before the board is programmed, this will make sure that you don't miss any startup messages. If the demo is already running, you can restart the demo in SDK to make sure you get these messages.
3) In order to use the demo, you will need to plug in your HDMI cables to the Genesys 2's HDMI ports. Connect the HDMI TX port to a cable that connects through to a DVI or HDMI port on your monitor and the HDMI RX port to a cable that connects to a DVI or HDMI port on your computer or other source. These cables do not need to be connected until the demo is running, but it is recommended to set them up now. Note that some features of this demo only require that the HDMI TX port be connected to a monitor.
使用Genesys 2 HDMI演示
Tip
The scaling function (Functions 8) was designed for the Zynq processor. In its current state, this function run VERY slowly on the Microblaze processor, so it is advised not to use these functions for the time being. This should be fixed in a later release.
1. View the Menu
2. Change the Display Resolution (Option 1)
3. Change the Frame Buffer Index (Option 2)
选择选项2将在3帧缓冲区之间循环以输出到监视器。
4.打印测试图案(选项3和4)
Selecting these will print a test pattern on the selected input video frame buffer.
5.开始/停止视频流(选项5)
This option will start or stop the video data stream from the HDMI input. When streaming, the HDMI input data will be displayed on the current video frame buffer.
6.更改视频框架缓冲区(选项6)
This option will change the buffer that video input will stream into.
7.获取视频框架和倒转颜色(选项7)
This option will grab the current frame from the HDMI input and invert the colors. The inverted frame will be output on the following display buffer.
8. Grab Video Frame and Scale to Display resolution (Option 8)
Tip
This will run very slowly on the Genesys 2.
This option will grab the current frame from the HDMI input and scale it to the current output resolution.