Microsemi makes no warranty, representation, or guarantee regarding the information contained herein or the suitability of
its products and services for any particular purpose, nor does Microsemi assume any liability whatsoever arising out of the
application or use of any product or circuit. The products sold hereunder and any other products sold by Microsemi have
been subject to limited testing and should not be used in conjunction with mission-critical equipment or applications. Any
performance specifications are believed to be reliable but are not verified, and Buyer must conduct and complete all
Microsemi Headquarters
One Enterprise, Aliso Viejo,
CA 92656 USA
Within the USA: +1 (800) 713-4113
Outside the USA: +1 (949) 380-6100
Sales: +1 (949) 380-6136
Fax: +1 (949) 215-4996
performance and other testing of the products, alone and together with, or installed in, any end-products. Buyer shall not
rely on any data and performance specifications or parameters provided by Microsemi. It is the Buyer’s responsibility to
independently determine suitability of any products and to test and verify the same. The information provided by Microsemi
hereunder is provided “as is, where is” and with all faults, and the entire risk associated with such information is entirely
with the Buyer. Microsemi does not grant, explicitly or implicitly, to any party any patent rights, licenses, or any other IP
rights, whether with regard to such information itself or anything described by such information. Information provided in this
document is proprietary to Microsemi, and Microsemi reserves the right to make any changes to the information in this
document or to any products and services at any time without notice.
Microsemi, a wholly owned subsidiary of Microchip Technology Inc. (Nasdaq: MCHP), offers a comprehensive portfolio of
semiconductor and system solutions for aerospace & defense, communications, data center and industrial markets.
Products include high-performance and radiation-hardened analog mixed-signal integrated circuits, FPGAs, SoCs and
ASICs; power management products; timing and synchronization devices and precise time solutions, setting the world's
standard for time; voice processing devices; RF solutions; discrete components; enterprise storage and communication
solutions, security technologies and scalable anti-tamper products; Ethernet solutions; Power-over-Ethernet ICs and
midspans; as well as custom design capabilities and services. Learn more at www.microsemi.com.
The revision history describes the changes that were implemented in the document. The changes are
listed by revision, starting with the most current publication.
This document describes how to run the imaging and video demo using the PolarFire Video Kit, Dual
Camera sensor module, and a HDMI monitor. The demo design features a fully integrated solution
created using Microsemi Libero SoC PolarFire
The demo demonstrates the following functions:
•MIPI CSI-2 RX to read the camera input
•CFA (Color filter array) to RGB (red, green, blue) conversion
•Display controller
•Picture in picture (PIP)
•Edge detection
•Image enhancements such as contrast, brightness, color balance
Note: The solution includes a user-friendly GUI used to control these image/video settings.
The PolarFire Video Kit (DVP-102-000512-001) features:
•A 300K LE FPGA (MPF300T, FCG1152)
•HDMI 1.4 transmitter (ADV7511) chipset and corresponding connector
•HDMI 2.0 with rail clamps and redrivers and corresponding connectors
•Dual camera sensor featuring IMX334 Sony image sensor
•Image sensor interface to support upto two MIPI CSI-2 cameras
•DSI Interface
•NVIDIA Jetson Interface
•A high pin count (HPC) FMC connector to connect to high-speed interfaces (like HDSDI)
Note: On this web page, you are prompted to download the Program_Debug_PolarFire_v2.3_win.exe
binary file. Installation of this executable installs FlashPro and SmartDebug used for FPGA programming
and debugging. FlashPro is used in this demo.
2.3Demo Resources
The programming files folder contains the following resources:
•A programming file (STP file): This file is the FPGA bitstream to be programmed.
•A binary file (BIN file) for the on-board SPI flash: This file is the user application that is executed
by the Mi-V soft processor in the FPGA. The file is stored in SPI flash and is used to initialize the
fabric RAMs at device power-up.
•A TCL script file: This script stores the TCL instructions to program the PolarFire device and the
SPI Flash.
Follow these steps to make the TCL file compatible with your setup.
1.Unzip the <programming files>.zip file.
2.Open the TCL file using a text editor like notepad++
3.Update the location of the STP and BIN files as per your file system paths.
4.Replace the path separator ‘\’ with ‘/’ when copying the Windows file paths.
1.Extract the Installer.rar file from the <$DownloadedFolder>\Installer folder and run the
setup.exe file.
2.Click Yes for any message from User Account Control.
The Video Control GUI installation wizard is displayed.
3.Confirm the installation directory locations for the GUI and the National Instruments products and
click Next.
4.Accept the license agreement, and click Next.
5.Review the summary and click Next.
The installation proceeds with a progress bar. After the installation, a confirmation message is displayed.
6.Click Next to exit the installation wizard.
7.Restart the host PC when prompted.
The Video_Control GUI is installed.
2.5Setting Up the Demo
Setting up the demo involves the following steps:
1.Setting Up the Hardware, page 4
2.Programming the PolarFire Device, page 5
2.5.1Setting Up the Hardware
Setting up the hardware involves interfacing the dual camera sensor module with the PolarFire Video Kit
and verifying the jumper settings. The following steps describe how to connect the camera module to
video kit.
1.Connect the J1 connector of the dual camera sensor module to J38 interface of the video kit.
2.Connect the video kit and the HDMI monitor through J2 (HDMI 1.4) of the video kit using the HDMI
cable.
3.Connect the Host PC and the video kit through J12 of the video kit using the USB mini cable.
4.Connect the power supply cable to J20 of the video kit.
5.Ensure that the following jumper settings are set on the video kit.
Table 2 • Jumper Settings
JumperDefault PositionFunctionality
J15OpenSPI Slave and Master mode selection. By Default SPI
master
J17Open100K PD for TRSTn, by default 1K PD is connected.
J19Pin 1&2Default: XCVR_VREF is connected to GND
J28Pin 1&2Default: Programming through the FTDI
J24Pin 2&4Default: VDDAUX4 voltage is set to 3V3
J25Pin 5&6Default: Bank4 voltage is set to 1V8
J36Pin 1&2Default: Board power up through the SW4
SW4OFF (Pin 2-3,5-6 Positions) Power ON\OFF switch
SW6OFF positionuser slide switch, Default OFF position
5.Use the Contrast and Brightness sliders to adjust the contrast and brightness and observe the
change on the HDMI monitor. These sliders are highlighted in the following figure.
Figure 10 • Adjusting Contrast and Brightness
6.Similarly, adjust the color balance of the image using the color balance sliders.
Figure 11 • Adjusting Colors
7.Similarly, adjust the Alpha slider. The alpha blending feature enables adjusting the transparency of
the PIP image. When the alpha value is adjusted to minimum (0), the image disappears.
8.Switch to edge detection mode using the Edge option.
10. In the PIP Menu, the source of the PIP window can be selected between Camera 1 and Camera 2
using PIP: Source Select. The position of the PIP window can be moved anywhere within the
screen by dragging it. The Auto Mode Start option moves the PIP window automatically. The speed
of this movement can be controlled using the Auto Mode Step slider.