SDI IP Core User Guide

ID 683587
Date 8/20/2020
Public
Document Table of Contents

3.4. Locking to the Incoming SDI Stream

The transceiver control state machine uses the presence (or absence) of TRSs on the stream to determine if SDI is being correctly received.

A single, valid TRS indicates to the control state machine that the receiver is acquiring some valid SDI samples. The control state machine only deasserts this flag when it does not detect any EAV sequences within the number of consecutive lines you specified. At this point, the controller state machine resets and performs the relock algorithm.

Figure 17. Locking AlgorithmThis figure shows how the controller state machine resets and performs the relock algorithm.

Because the aligner realigns to a new alignment if two consecutive TRSs with the same alignment are detected, this scheme allows for an SDI source switch and an alignment change without affecting the transceiver reset state machine.

The SDI MegaCore function also monitors the incoming EAV and SAV signals to ensure their spacing is consistent over a number of lines. The MegaCore function monitors by incrementing a counter on each incoming SDI word and storing the count values at which an EAV or SAV is detected. If the EAV and SAV spacing is consistent over 6 video lines, the MegaCore function indicates trs_locked on the rx_status[3] output.

An enhancement in the current SDI MegaCore function allows a number of missing EAV or SAV that you specify to be tolerated without deasserting the trs_locked signal.

For example, when you specify the Tolerance to consecutive missed EAV/SAV parameter to 2, one or two consecutive missing EAVs set a “missed” flag but do not cause the trs_locked signal to deassert. A good EAV in the correct position resets the “missed” flag.

The following figures show examples of the operation missing or misplaces TRS tolerance.

Figure 18. Single Missing EAVThis figure shows how a single missing EAV does not cause the trs_locked signal to deassert.
Figure 19. Two Consecutive Missing EAVsThis figure shows how two consecutive missing EAVs do not cause the trs_locked signal to deassert.
Figure 20. Three Consecutive Missing EAVsThis figure shows how three consecutive missing EAVs cause the trs_locked signal to deassert.

The frame_locked signal detects TRS EAV, inspects the transition of field (F) and vertical (V) synchronizations, and then counts the line number. The inspecting transitions on the F and V synchronizations provide the frame timing. The line count value is stored if there is a rising or falling edge on the F and V synchronizations through the frame. The stored count values are compared over multiple frames to make sure they are stable, before the frame_locked signal is asserted.

The frame_locked signal deasserts when there are bad F or V synchronizations, or when there is a rising edge from frame to frame. The frame_locked signal also deasserts when the trs_locked signal deasserts.

When the frame_locked signal is zero, the frame is invalid, and the receiver is not considered to receive reliable video data.