Product guide

How to Run
XAPP1178 (v2.0) January 23, 2015 www.xilinx.com 17
Note:
You can also export the generated hardware to SDK and build the project and create the elf file
afresh instead of loading the SDK work space provided in the package. Refer to the SDK user guide to
export hardware from the Vivado design tools, load the driver repository, create empty application,
import the source code provide under the XAPP1178/DP_Tx_Xapp/sst/sw/src folder, build the
project and create the elf file. The same steps can be followed for the MST application that exists under
the XAPP1178/DP_Tx_Xapp/mst/sw/mst folder.
How to Run on Hardware
The following steps are used to run the bitstream and elf files on the hardware setup.
1. Connect the JTAG cable to the board.
2. In a command shell, change directory to
XAPP1178/DP_Tx_Xapp/sst/hw/project_1/project_1.runs/impl_1
or
XAPP1178/DP_Tx_Xapp/ready_for_download,
where the bit file can be found.
3. Start the Xilinx Microprocessor Debugger (XMD) by typing xmd in the command prompt.
Download the bitstream to the board.
%xmd
%fpga -f sst_wrapper.bit
%exit
4. Download and execute the software on board. The ELF file can be found in
XAPP1178/DP_Tx_Xapp/sst/sw/Debug or
XAPP1178/DP_Tx_Xapp/ready_for_download.
%cd XAPP1178/DP_Tx_Xapp/ready_for_download
%xmd
%connect mb mdm
%rst
%stop
%dow sst.elf
%run
This starts the DisplayPort source policy maker software and the user menu options can be
seen on the com port.
5. Use the same steps to download the mst_wrapper.bit and mst.elf files from the
corresponding locations.
Display User Console
The hot-plug-detect and link training take place after the software is initialized/run. After the
link is trained, the UART terminal input command processor is active. Press Enter to see the user
console options. The source code base is the same for both the SST and MST modes. Based on
the hardware design, the application checks if it is MST/SST enabled and the corresponding
code is executed. It reads the RX capabilities of the Sink Monitor and TX capabilities of the
source. Then decides the Max supported link rate and lane count values and displays the video
for default resolution of 640x480@60Hz with bits per color of 8.