Match trs, Scrambler, Match trs -17 – Altera SDI II MegaCore User Manual
Page 59: Scrambler -17

Match TRS
This submodule indicates that the current word is a particular TRS word in both the transmitter and
receiver. This submodule has the following features:
• Decodes synchronous pulse information (generate F, V, H and AP signals).
• Indicates availability of new synchronous information (a strobe when new synchronous values are
seen)
• Indicates the line number EAV extension words (for HD only)
• Indicates the CRC EAV extension words (for HD only)
• Indicates when the CRC should run and when the CRC should reset (for HD only)
• Indicates when the horizontal blanking region starts
Figure 4-19: Match TRS Output Signals Relative to the Video Data Stream
3FF
000
000
XYZ
3FF
000
000
XYZ
LN 0
CRC 0 CRC 1
LN 1
SAV
EAV
ACTIVE VIDEO
BLANKING
RESET CRC
RUN CRC
MATCH LN 0
MATCH LN 1
MATCH CRC 0
MATCH CRC 1
V
H
AP
FVH_STROBE
Scrambler
The SMPTE259M and SMPTE292M specifications define a common channel coding for both SD-SDI and
HD-SDI. This channel coding consists of a scrambling function (G1(X) = X9 + X4 + 1), followed by NRZI
encoding (G2(X) = X + 1).
The scrambling submodule implements the channel coding by iteratively applying the scrambling and
NRZI encoding algorithm to each bit of the output data, processing the LSB first. The code handles all
transmit data: SD (10 bits wide), HD/3G (20 bits wide), 6G (40 bits wide), and 12G (80 bits wide).
UG-01125
2015.05.04
Match TRS
4-17
SDI II IP Core Functional Description
Altera Corporation