Page 1 of 6
ESKI - MODULE DOCUMENTATION HISTOGRAM
CLK
PIXI<7:0>
Ki<18:0>
HISTOGRAM
UPDATE I<3:0>
CLR
Ki_1<18:0>
RESET
Module responsible _______________________
Specification responsible Bengt Oelmann/Mattias O’Nils
Designers ____________________________________________
General description: The Histogram function builds a histogram for one image.
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
I<3:0> Internal 20 ns Histogram index
PIXI<7:0> CamIF 20 ns Image data
UPDATE Internal 20 ns Update histogram
CLR Internal 20 ns Clear histogram
RESET External 20 ns Reset
Output signals
Signal name To Output delay Description
Ki<18:0> Internal 20 ns Gain value
Ki_1<18:0> Internal 20 ns Reset
UPDATED Processor 20 ns Indicated when histogram update is completed
Page 3 of 6
1.2 Hierarchy Hierarchy of module -
1.3 Functionality
The module can be in one of two modes. In operational mode the histogram is only used and not updated. The pixel value in the image data (PIXI) is used as an address in the histogram.
The image histogram is divided in eight segments (K0 –K7): (0-31), (32-63), (64-95), (96- 127), (128-159), (160-191), (192-223), (224-255). If, for example, PIXI=73 the outputs of the histogram will output the histogram values of the segments K1 and K2 respectively. These two values are then used for computing the output pixel value and the gain.
In the other mode, update mode, a new histogram is built. Resetting the old histogram values by applying the CLR signal for one clock cycle must precede this. The histogram is based on the entire image’s pixel values (640x480). The input signal UPDATE must be high for one entire frame.
Histogram segment K-1 is always 0.
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