These registers control and report the video output stage: the crop, the frame counter and the
output overflow status. VID_CTRL also holds the two embedded data output controls.
Crop: number of image lines removed at the start of every frame. Taken at each Frame Start, so it can be written while streaming.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| [31:16] | reserved | 0 | Reserved, write 0. | |
| [15:0] | LINE_SKIP | RW | 0 | Lines to skip. 0 = none. |
Crop: pixels kept from the start of each line. Rounded up to a whole beat of 2 x LANE_NUM pixels. Taken at each Frame Start.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| [31:16] | reserved | 0 | Reserved, write 0. | |
| [15:0] | WIDTH | RW | 0 | Pixels per line. 0 = the whole line. |
Crop: image lines kept after the skip. Taken at each Frame Start.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| [31:16] | reserved | 0 | Reserved, write 0. | |
| [15:0] | HEIGHT | RW | 0 | Lines per frame. 0 = every line up to Frame End. |
Clears the overflow status of the two outputs and turns the embedded data output off.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| [31:3] | reserved | 0 | Reserved, write 0. | |
| [2] | EBD_OFF | RW | 0 | 1 = drop embedded data lines; the image does not change. Sampled between embedded data lines, so a line on its way is finished. |
| [1] | EBD_OVF_CLR | RW | 0 | While 1, the EBD overflow flag and EBD_OVF_CNT are held at 0. Write 1 then 0 to clear. |
| [0] | OVF_CLR | RW | 0 | While 1, the image overflow flag and VID_OVF_CNT are held at 0. Write 1 then 0 to clear. |
One read answers the first bring-up questions: are frames arriving, and how many lines did the core deliver. Both fields are captured together.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| [31:16] | FRAMES | RO | 0 | Frame Starts seen by the output stage since reset (wraps). |
| [15:0] | LINES | RO | 0 | Lines delivered in the last complete frame, after the crop. |
Records frames cut or dropped because the output FIFO filled: a NATIVE line longer than the line buffer, or an AXI4-Stream sink that held tready low too long.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| [31] | OVF | RO | 0 | Sticky overflow flag. Cleared by reset or VID_CTRL.OVF_CLR. |
| [30:16] | reserved | 0 | Reserved, reads 0. | |
| [15:0] | OVF_EVENTS | RO | 0 | Frames cut or dropped by an overflow. Stops at 0xFFFF. |