MIPI D-PHY Bandwidth Matrix Table
User Guide
© 2015-2018 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at
All other brand or product names are trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
FPGA-UG-02041-1.1
13
4.
Packetizing
The MIPI CSI-2 supports YUV, RGB or RAW data with varying pixel formats from 6 to 24 bits per pixel. In the transmitter
the pixels are packed into bytes (Pixel-to-byte Packing) before sending the data to Low Level Protocol layer; in the
receiver the bytes received from the Low Level Protocol layer are unpacked into pixel (Byte-to-pixel Unpacking). One
CSI-2 long packet shall contain one line of image data. The total size of data within a long packet for all data types shall
be a multiple of eight bits (byte).
shows an example of packing four 10-bit pixel data, or RAW10, into five
bytes to look like 8-bit data format.
FS
P1
P2
FE
P4
LSBs
P3
….
P637
P638
P640
LSBs
P639
P1
P2
P4
LSBs
P3
….
P637
P638
P640
LSBs
P639
P1
P2
P4
LSBs
P3
….
P637
P638
P640
LSBs
P639
P1
P2
P4
LSBs
P3
….
P637
P638
P640
LSBs
P639
P1
P2
P4
LSBs
P3
….
P637
P638
P640
LSBs
P639
P1
P2
P4
LSBs
P3
….
P637
P638
P640
LSBs
P639
P1
P2
P4
LSBs
P3
….
P637
P638
P640
LSBs
P639
P1
P2
P4
LSBs
P3
….
P637
P638
P640
LSBs
P639
P1
P2
P4
LSBs
P3
….
P637
P638
P640
LSBs
P639
P1
P2
P4
LSBs
P3
….
P637
P638
P640
LSBs
P639
P1
P2
P4
LSBs
P3
….
P637
P638
P640
LSBs
P639
P1
P2
P4
LSBs
P3
….
P637
P638
P640
LSBs
P639
P5
P5
P5
P5
P5
P5
P5
P5
P5
P5
P5
P5
Packer Header
,
PH
Pa
cker F
oo
ter
,
PF
Data A2
P1[9:2] (A)
A3 A4 A5 A6 A7 A8 A9
P1
[1:0]
P2
[1:0]
P3
[1:0]
P4
[1:0]
A0 A1
B0 B1
C0 C1
D0 D1
P5[9:2] (E)
B2 B3 B4 B5 B6 B7 B8 B9
P2[9:2] (B)
P3[9:2] (C)
P4[9:2] (D)
8 bits
Byte Values Transmitted LS Bit First
E2 E3 E4 E5 E6 E7 E8 E9
8 bits
8 bits
F2 F3 F4 F5 F6 F7 F8 F9
P6[9:2] (F)
G2 G3 G4 G5 G6 G7 G8 G9
P7[9:2] (G)
D2 D3 D4 D5 D6 D7 D8 D9
8 bits
G2 C3 C4 C5 C6 C7 C8 C9
Line Start
Line End
P1[9:2]
P2[9:2]
P3[9:2]
P4[9:2]
P4
[1:0]
P3
[1:0]
LSBs
P2
[1:0]
P1
[1:0]
P5[9:2]
P6[9:2]
P636
[1:0]
P635
[1:0]
P634
[1:0]
P633
[1:0]
LSBs
P637[9:2]
P638[9:2]
P639[9:2]
P640[9:2]
LSBs
P640
[1:0]
P639
[1:0]
P638
[1:0]
P637
[1:0]
Figure 4.1. An Example of RAW10 Transmissions on CSI-2 Bus