Document ID
APT-DS-CXP-DEV-0001
Revision
1.0
IP version
2.2.0
Release date
November 2026
Chapter 2: Functional Description

2.4Pixel formats

Firmware selects the format in PIXEL_TYPE and writes the matching CoaXPress pixel format code into the image header registers. The code is {layout, bit depth on the link}:

Table 2-3.PIXEL_TYPE codes: bits [7:4] select the layout, bits [3:0] the bit depth on the link (8 = 8-bit to C = 16-bit). 0x00 is accepted as RGB 8-bit, the code of earlier releases.
Layout8-bit10-bit12-bit14-bit16-bitComponents, LSB firstBuilt by
Mono / Bayer / Raw0x080x090x0A0x0B0x0Cthe sampleVID_EN_MONO
RGB0x180x190x1A0x1B0x1CG, B, RVID_EN_RGB
YCbCr 4:4:40x280x290x2A0x2B0x2CY, Cb, CrVID_EN_YCBCR444
YCbCr 4:2:20x380x390x3A0x3B0x3CY, C (Cb even pixels, Cr odd)VID_EN_YCBCR422
YCbCr 4:2:00x480x490x4A0x4B0x4CY, C (C on even lines only)VID_EN_YCBCR420
  • Built by switch. Each layout has a switch in the IP GUI and Bit depths on the link picks the depths. Mono / Bayer at every depth is the default. With everything on, one build carries 25 formats. VIDEO_CAP reports what was built, and PIXEL_TYPE.NOT_BUILT flags a code the bitstream has no path for.
  • Run-time selection. A write to PIXEL_TYPE restarts the pixel packers with the new format. Write it with the acquisition stopped.
  • YCbCr 4:2:0. CoaXPress has no packed 4:2:0 format. The core takes UG934 4:2:0 on video_in, keeps the chroma of each even line in a line store and sends it again with the odd line, so the link carries a normal YCbCr 4:2:2 picture that any Host shows. The store is sized by Widest YCbCr 4:2:0 line, 1,024 to 16,384 pixels: two BRAM36 at the default 4,096.

2.4.1Lines and frames

  • A line is a multiple of 4 pixels; for YCbCr 4:2:2 and 4:2:0 a multiple of VID_PPC is enough.
  • Every line starts in a new link word, and the last word of a line is zero-padded as CoaXPress 2.1 requires.
  • Everything before the first tuser is discarded, so the first frame sent is a whole frame. A tuser inside a line starts a new frame and is flagged.
  • Line and frame size are checked against CXP_IMG_XSIZE and CXP_IMG_YSIZE; a mismatch sets an error flag in CXP_ERRORS_HS.

2.4.2Throughput

Table 2-4.Pixel path throughput: share of the link words of one connection the path takes per word clock, and the pixel rate one CXP-12 connection carries.
Format2 pixels per beat4 pixels per beatMpx/s at CXP-12
Mono / Bayer 8-bit50 %100 %1220
Mono / Bayer 10-bit62 %100 %976
Mono / Bayer 12-bit75 %100 %813
Mono / Bayer 14-bit87 %100 %697
Mono / Bayer 16-bit100 %100 %610
YCbCr 4:2:2 8 / 10 / 12-bit100 %100 %610 / 488 / 407
RGB or YCbCr 4:4:4 8 / 10 / 12-bit100 %100 %407 / 325 / 271

The video clock must carry the pixel rate: video_in_clk ≥ pixels per second / VID_PPC. When the link is slower than the source, video_in_tready pushes back; size the source’s own buffering for the frame rate the link carries.