Microsemi UG0939 White Balance IP User Guide

June 10, 2024
Microsemi

Microsemi-logo Microsemi UG0939 White Balance IP

Product Information – White Balance IP

The White Balance IP is a product developed by Microsemi for adjusting the colors of an image or video to make it look more natural. It is a configurable IP core that can be integrated into various FPGA-based systems. The key features of this product are:

  • Configurable color adjustment parameters
  • Supports various families of FPGAs
  • Compatible with different input and output formats

To use this product, you need to configure the following parameters:

  1. White point
  2. Black point
  3. Color gain
  4. Color offset

Usage Instructions

To use the White Balance IP, follow these steps:

  1. Configure the white balance parameters according to your requirements.
  2. Connect the input video source to the input port of the IP core.
  3. Connect the output port of the IP core to the display or storage device.
  4. Start the FPGA system.

The IP core will adjust the colors of the input video according to the configured white balance parameters and provide the output on the connected device.

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
Email : sales.support@microsemi.com www.microsemi.com
©2020 Microsemi, a wholly owned subsidiary of Microchip Technology Inc. All rights reserved. Microsemi and the Microsemi logo are registered trademarks of Microsemi Corporation. All other trademarks and service marks are the property of their respective owners.
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 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.
About Microsemi
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.

Revision History

The revision history describes the changes that were implemented in the document. The changes are listed by revision, starting with the most current publication.
Revision 1.0
The first publication of this document.

Introduction

White balance is the process of adjusting the color temperature so that the white objects which appear white in person are rendered as white. A scene can be lit by a light source of any temperature. A human eye adjusts to various color temperatures and detects white as white, where as a camera captures the light as it seen by the sensor.
As the color temperature rises, the color distribution becomes cooler. This may not seem intuitive but results from the fact that shorter wavelengths contain the light of higher energy. Such as 5000 K produces roughly neutral light, whereas 3000 K and 9000 K produce light spectrums, which shift to contain more orange and blue wavelengths, respectively. The temperature of commonly available light sources is described in the table below.
The white balance IP allows to set the temperature manually from user input to achieve white balance. The IP supports a temperature range of 1000 to 26500 Kelvin.

This section describes the inputs and outputs and configuration parameters of the Image Scaler IP.
Key Features

  • Supports temperature range of 1000-26500 Kelvin.
  • LUT based white balance
  • Supports 8,10,12,14, and 16 data width

Supported Families

  • PolarFire® SoC
  • PolarFire®
  • RTG4™
  • IGLOO®2
  • SmartFusion®2

Inputs and Outputs
Figure 1 • Inputs and Outputs The following table lists the input and output ports of the White Balance IP.
Table 2 • Input and Output PortsMicrosemi-UG0939-White-Balance-IP-
fig-3

Configuration Parameters
The following table lists the configuration parameters used in the hardware implementation of the White balance. These parameters are generic and can be varied based on the application requirement.Microsemi-UG0939-White-Balance-
IP-fig-4

Testbench

A testbench is provided to check the functionality of the White balance IP. To ensure that the testbench works correctly, the configuration parameters listed in Table 4 must be configured at the beginning of the testbench file.

License
White balance IP clear RTL is license locked and the obfuscated RTL available for free.

Obfuscated
Complete RTL code is provided for the core, allowing the core to be instantiated with the SmartDesign tool. Simulation, synthesis, and layout can be performed within Libero® System-on-Chip (SoC). The RTL code for the core is obfuscated.

RTL
Complete RTL source code is provided for the core.
The following steps describe how to simulate the core using the testbench. The packaged testbench will correct the white balance of an input image.

  1. In the Design Flow window, expand Create Design. Right-click Create SmartDesign testbench and click Run, as shown in the following figure.
    Figure 2 • Design Flow SmartDesign testbench is created, and a canvas appears to the right of the Design Flow pane.

  2. In the Libero SoC Catalog (View > Windows > Catalog), expand Solutions-Video, and drag the White balance IP core onto the SmartDesign testbench canvas. Figure 3 • Libero SoC Catalog

  3. Select the default component name and click OK.

  4. In the White balance Configurator GUI window, update the G_DATA_WIDTH and click OK.
    Figure 4 • Configurator

  5. On the Design Hierarchy tab, right-click White_Balance_C0 and click Set As Root.

  6. Select all the ports on the White_Balance_C0 instance, right-click, and select Promote to Top Level, as shown in the following figure.
    Figure 5 • White_Balance_C0 InstanceMicrosemi-UG0939-White-Balance-IP-
fig-9Figure 6 • SmartDesign Toolbar

  7. Click Generate Component from the SmartDesign toolbar.

  8. Go to the Files tab and select simulation > Import Files…, as shown in the following figure.
    Figure 7 • Import Files

  9. Import the Input Image file “CFA_RGB_in.txt” from the following path:
    ..\\component\Microsemi\SolutionCore\White_Balance\1.0.0\Stimulus. To import a different file, browse the folder that contains the required file, and click Open. The imported file is listed under simulation, as shown in the following figure
    Figure 8 • SimulationMicrosemi-UG0939-White-Balance-IP-
fig-12

  10. On the Stimulus Hierarchy tab, right-click white_balance_test testbench file and click Open Interactively from Simulate Pre-Synth Design.
    Figure 9 • Stimulus HierarchyMicrosemi-UG0939-White-Balance-IP-
fig-13The ModelSim tool appears with the test bench file loaded onto it, as shown in the following figure.
    Microsemi-UG0939-White-Balance-IP-fig-14If the simulation is interrupted because of the runtime limit in the DO file, use the run -all command to complete the simulation. By default, the output image file is placed in the Files/simulation directory and uses the CFA_RGB_out.txt.

Simulation Results

Timing Diagram
The following is the timing diagram for White Balance IP showing video data and output image.
Microsemi-UG0939-White-Balance-IP-fig-15

Input ImageMicrosemi-UG0939-White-Balance-IP-fig-16 Output Image
Microsemi-UG0939-White-Balance-IP-fig-17

Resource Utilization

White Balance is implemented on PolarFire FPGA (MPF500T -1FCG1152I package). The following table shows the resource utilization report after synthesis.
Note: G_DATA_WIDTH = 8

References

Read User Manual Online (PDF format)

Loading......

Download This Manual (PDF format)

Download this manual  >>

Related Manuals