This section elaborates the pixel encoding and the s_axis_tdata or the vid_pxl port width generation followed by the MIPI CSI-2 TX controller. For more details, refer to AXI4-Stream Video IP and System Design Guide (UG934) [Ref 2] .
The width of the s_axis_tdata or the vid_pxl port is calculated as shown below:
Width of s_axis_tdata/vid_pix Port = Byte aligned of (C_CSI_MAX_BPC*3*Pixel Mode)
For example, C_CSI_MAX_BPC is 14 then data width for 1 Pixel mode will be 14*3*1 resulting in 42. Therefore, the width has to be byte aligned with the final Data Width, which in this case is 48 ([47:0]). For individual data types pixel encoding refer to Table: Pixel Encoding for Single Pixel per Beat with C_CSI_MAX_BPC =14 to Table: Pixel Encoding for Quad Pixel per Beat with C_CSI_MAX_BPC =20 correspondingly,
Table: Pixel Encoding for Single Pixel per Beat with C_CSI_MAX_BPC =14 lists the pixel encoding for single pixel per beat.
Generic |
[12DW-1: 11DW]
|
[11DW-1: 10DW] |
[10DW-1: 9DW]
|
[9DW-1: 8DW] |
[8DW-1: 7DW] |
[7DW-1: 6DW] |
[6DW-1: 5DW] |
[5DW-1: 4DW] |
[4DW-1: 3DW]
|
[3DW-1: 2DW] |
[2DW-1: DW] |
[DW-1:0] |
---|---|---|---|---|---|---|---|---|---|---|---|---|
Boundary |
[239:220] |
[219:200] |
[199:180] |
[179:160] |
[159:140] |
[139:120] |
[119:100] |
[99:80] |
[79:60] |
[59:40] |
[39:20] |
[19:0] |
Data Type |
|
|
|
|
|
|
|
|
|
|
|
|
RAW8 |
|
|
|
|
|
|
|
|
|
|
|
P0 [19:12] |
RAW10 |
|
|
|
|
|
|
|
|
|
|
|
P0 [19:10] |
RAW12 |
|
|
|
|
|
|
|
|
|
|
|
P0 [19:8] |
RAW14 |
|
|
|
|
|
|
|
|
|
|
|
P0 [19:6] |
YUV422-8Bit |
|
|
|
|
|
|
|
|
|
|
U0/V0 [39:32] |
Y0/Y1 [19:12] |
YUV 422-10 Bit |
|
|
|
|
|
|
|
|
|
|
U0/V0 [39:30] |
Y0/Y1 [19:10] |
RGB888 |
|
|
|
|
|
|
|
|
|
R0 [59:52] |
B0 [39:32] |
G0 [19:12] |
RGB565 |
|
|
|
|
|
|
|
|
|
R0 [59:55] |
B0 [39:35] |
G0 [19:14] |
RAW16 |
|
|
|
|
|
|
|
|
|
|
|
P0 [19:4] |
RAW20 |
|
|
|
|
|
|
|
|
|
|
|
P0 [19:0] |
Table: Pixel Encoding for Dual Pixel per Beatwith C_CSI_MAX_BPC =14 lists the pixel encoding for dual pixel per beat.
Generic |
[12DW-1: 11DW] |
[11DW-1: 10DW] |
[10DW-1: 9DW] |
[9DW-1: 8DW] |
[8DW-1: 7DW] |
[7DW-1: 6DW] |
[6DW-1: 5DW] |
[5DW-1: 4DW] |
[4DW-1: 3DW] |
[3DW-1: 2DW] |
[2DW-1: DW] |
[DW-1:0] |
---|---|---|---|---|---|---|---|---|---|---|---|---|
Boundary |
[239:220] |
[219:200] |
[199:180] |
[179:160] |
[159:140] |
[139:120] |
[119:100] |
[99:80] |
[79:60] |
[59:40] |
[39:20] |
[19:0] |
Data Type |
|
|
|
|
|
|
|
|
|
|
|
|
RAW8 |
|
|
|
|
|
|
|
|
|
|
P1 [39:32] |
P0 [19:12] |
RAW10
|
|
|
|
|
|
|
|
|
|
|
P1 [39:30] |
P0 [19:10] |
RAW12 |
|
|
|
|
|
|
|
|
|
|
P1 [39:28] |
P0 [19:8] |
RAW14 |
|
|
|
|
|
|
|
|
|
|
P1 [39:26] |
P0 [19:6] |
YUV422-8Bit |
|
|
|
|
|
|
|
|
V0 [79:72] |
Y1 [59:52]
|
U0 [39:32] |
Y0 [19:12] |
YUV 422-10 Bit |
|
|
|
|
|
|
|
|
V0 [79:70] |
Y1 [59:50] |
U0 [39:30] |
Y0 [19:10] |
RGB888 |
|
|
|
|
|
|
R1 [119:112] |
B1 [99:92] |
G1 [79:72]
|
R0 [59:52] |
B0 [39:32] |
G0 [19:12] |
RGB565 |
|
|
|
|
|
|
R1 [119:115] |
B1 [99:95] |
G1 [79:74] |
R0 [59:55]
|
B0 [39:35]
|
G0 [19:14] |
RAW16 |
|
|
|
|
|
|
|
|
|
|
P1 [39:24] |
P0 [19:4] |
RAW20 |
|
|
|
|
|
|
|
|
|
|
P1 [39:20] |
P0 [19:0] |
Table: Pixel encoding for Quad Pixel per Beat with C_CSI_MAX_BPC =14 lists the pixel encoding for quad pixel per beat.