beautypg.com

Locking to the incoming sdi stream, Locking to the incoming sdi stream –25 – Altera Serial Digital Interface (SDI) MegaCore Function User Manual

Page 55

background image

Chapter 3: Functional Description

3–25

Block Description

February 2013

Altera Corporation

Serial Digital Interface (SDI) MegaCore Function

User Guide

First, the transceiver controller makes a coarse rate detection of the incoming data
stream. Then, the transceiver is reprogrammed using transceiver dynamic
reconfiguration (refer to

“Transceiver Dynamic Reconfiguration for Dual Standard

and Triple Standard Receivers” on page 3–27

and

“Transceiver Dynamic

Reconfiguration with PLL Reconfiguration Mode—Cyclone IV GX” on page 3–33

) to

the correct rate for the standard that has been detected. After the reprogramming, the
transceiver attempts to lock to the incoming stream. If no valid data is seen in 0.1 s, the
receiver path is reset and the rate detection is performed again.

At the start of the rate detection process, the level of the three enable_xx signals is
sampled. The level of these signals and the knowledge of the currently programmed
state of the transceiver determines if the transceiver requires programming. This
process ensures that the transceiver is reprogrammed only when necessary.

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, refer to

Figure 3–14

.

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 operation of this missing or misplaced TRS tolerance is shown in

Figure 3–15

,

Figure 3–16

, and

Figure 3–17

.

Figure 3–14. Locking Algorithm

trs_strobe

word count

trs_loose_lock

New TRS reasserts

n-th missing EAV