Page 1 of 6
ESKI - MODULE DOCUMENTATION Automatic Gain Control
CLK
PIXI<7:0>
DVI FSYNCI
GAIN<3:0>
AGC
RESET EN_GAIN EN_EQ
AUTO_UPDATE PIXO<7:0>
I_GAIN<3:0>
DVO
Module responsible _______________________
Specification responsible Bengt Oelmann/Mattias O’Nils
Designers ____________________________________________
General description: The AGC (Automatic Gain Control) module adjusts the gain, to the CMOS camera. This parameter is dynamically computed and its value is based on the current image data.
CONTENTS
Page
1. SPECIFICATION...3
1.1 INTERFACEDESCRIPTIONDIGITALSIGNALS...3
1.2 HIERARCHY...4
1.3 FUNCTIONALITY...4
1.4 DESIGNGOALS...4
DESCRIPTION OF IMPLEMENTATION...5
2. VERIFICATION...5
3. DELIVERABLES...6
3.1 DIGITALMODULES...6
Rev Date Description of modification Sign
0 Initial issue
Page 2 of 6
1. Specification
1.1 Interface description digital signals Inputs and outputs in alphabetic order.
Input signals
Signal name From Input delay Description
CLK External - Clock
EN_GAIN Processor 20 ns Enable Gain computation function
EN_EQ Processor 20 ns Enable equalization function
PIXI<7:0> CamIF 20 ns Image data
DVI CamIF 20 ns Data valid signal for DIN
FSYNCI CamIF 20 ns Frame synchronization
I_GAIN<3:0> Processor 20 ns Initial Gain value
RESET External 20 ns Reset
Output signals
Signal name To Output delay Description
AUTO_UPDATE CamIF 20 ns Indicate that this module is activated
GAIN<3:0> CamIF 20 ns Gain value
PIXO<7:0> CamIF 20 ns Image data output
DVO CamIF 20 ns Data output valid
Page 3 of 6
1.2 Hierarchy Hierarchy of module
AGC
HISTOGRAM GAIN EQ
1.3 Functionality
The module should perform following functions:
1.3.1 Histogram equalization
The CMOS Image sensor has an input parameter that controls the dynamic range of the output image. For example, the dynamic range for a dark low-contrast image can be increased if the higher gray scale values are amplified more than lower gray scale values.
The function for performing histogram equalization shall result in a parameter controlling the image sensor.
1.3.2 Gain
The CMOS Image sensor has an input parameter that controls the amplitude of the output signal. The GAIN is an amplification factor. In order to compute the gain factor, the brightness of the image must be estimated.
1.4 Design goals Frequency: 15 MHz
Page 4 of 6
Description of implementation
The implementation strategy should be described here. If special techniques have been used to fulfill the Design goal demands, this should be pointed out.
2. Verification
Describe the strategy used for verifying that the module works according to specification.
How is the module simulated?
Which functions and parameters are covered and which are not covered by the simulations? (referred to specification)
How is the other functions and parameters verified?
What are the results compared to (Matlab model, C-program, Behavioral model, manually from specification, other)
Page 5 of 6
3. Deliverables
3.1 Digital modules
The following documents should be included in the module documentation:
RTL-code(s)
Schematics
Test bench(es)
The following documents may be included in the module documentation (optional):
Result from simulation
Synthesis script
Synthesis constraints (if other than project common constraints)
Synthesis report(s)
Page 6 of 6