AR0331
36
Figure 36. Format of Embedded Statistics Output within a Frame
{2’b00,frame
_countLSB}
{2’b00,frame
_IDMSB}
{2’b00,frame
_IDLSB}
histogram
bin0[9:0]
histogram
bin1[9:0]
#words=
10’h1EC
data_format_
code=8’h0B
#words=
10’h00C
data_format_
code=8’h0B
mean
[9:0]
histBegin
[19:10]
histBegin
[9:0]
histEnd
[19:10]
histEnd
[9:0]
lowEndMean
[19:10]
lowEndMean
[9:0]
perc_lowEnd
[19:10]
perc_lowEnd
[9:0]
norm_abs_
dev[19:10]
norm_abs_
dev[9:0]
8’h07
8’h07
8’h07
statsline1
statsline2
histogram
bin0[19:10]
histogram
bin243 [19:0]
histogram
bin243 [9:0]
histogram
bin1 [19:0]
mean
[19:10]
The statistics embedded in these rows are as follows:
Line 1:
•
0x0B0
−
identifier
•
Register 0x303A
−
frame_count
•
Register 0x31D2
−
frame ID
•
Histogram data
−
histogram bins 0
−
243
Line 2:
•
0x0B0 (TAG)
•
Mean
•
Histogram Begin
•
Histogram End
•
Low End Histogram Mean
•
Percentage of Pixels Below Low End Mean
•
Normal Absolute Deviation
Test Patterns
The AR0331 has the capability of injecting a number of
test patterns into the top of the datapath to debug the digital
logic. With one of the test patterns activated, any of the
datapath functions can be enabled to exercise it in a
deterministic fashion. Test patterns are selected by
Test_Pattern_Mode register (R0x3070). Only one of the test
patterns can be enabled at a given point in time by setting the
Test_Pattern_Mode register according to Table 20. When
test patterns are enabled the active area will receive the value
specified by the selected test pattern and the dark pixels will
receive the value in Test_Pattern_Green (R0x3074 and
R0x3078) for green pixels, Test_Pattern_Blue (R0x3076)
for blue pixels, and Test_Pattern_Red (R0x3072) for red
pixels.
Table 20.
TEST PATTERN MODES
Test_Pattern_Mode
Test Pattern Output
0
No Test Pattern (Normal Operation)
1
Solid Color Test Pattern
2
100% Vertical Color Bars Test Pattern
3
Fade-to-Gray Vertical Color Bars Test Pattern
256
Walking 1s Test Pattern (12-bit)
Solid Color
When the color field mode is selected, the value for each
pixel is determined by its color. Green pixels will receive the
value in Test_Pattern_Green, red pixels will receive the
value in Test_Pattern_Red, and blue pixels will receive the
value in Test_Pattern_Blue.
Vertical Color Bars
When the vertical color bars mode is selected, a typical
color bar pattern will be sent through the digital pipeline.
Walking 1s
When the walking 1 s mode is selected, a walking 1 s
pattern will be sent through the digital pipeline. The first
value in each row is 1.