PS4210-1099
The Data Coding Leader
Advanced Hardware
Architectures
TM
Advanced Hardware
Architectures, Inc.
2365 NE Hopkins Court
Pullman, WA 99163-5601
509.334.1000
Fax: 509.334.9000
e-mail: sales@aha.com
http://www.aha.com
Product Specification
AHA4210 RSVP
Viterbi with
Reed-Solomon Decoder
PS4210-1099
Advanced Hardware Architectures, Inc.
Notes to Customers of AHA4210
1) Patent(s) pending. One or more patent(s) have been applied for this product.
2) Purchase of I2C components of AHA conveys a license under the Philips I2C
Patent Rights to use these components in an I2C system, provided that the
system conforms to the I2C Standard Specification as defined by Philips.
Advanced Hardware Architectures, Inc.
PS4210-1099 i
Table of Contents
1.0 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
1.1 Applications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
1.2 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
1.3 Conventions and Notations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
1.4 Definition of Terms and Programmability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
2.0 Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3
2.1 Synchronization. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3
2.1.1 Explanation of C locking Schemes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3
2.2 Viterbi D ecoder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
2.2.1 Depuncture. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
2.3 Deinterleaver. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
2.4 RS Decoder. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5
2.5 Derandomize/Energy Dispersal. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5
2.6 Modes of Operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5
2.7 Microprocessor Interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
2.7.1 Parallel 80C188 Microprocessor Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
2.7.2 Serial I2C Protocol Interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
2.8 Latency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
3.0 Register Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
3.1 Register Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
3.2 ERRSTAT: Error Count Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
3.3 ERRSIZE: Error Block Count. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10
3.4 VRSSIZE: Total Block Count for VRSTH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10
3.5 VSYNCP: Sync Decoder Pattern. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10
3.6 VRSTH: RS Uncorrectable Blocks Threshold. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10
3.7 VERTH: Sync Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10
3.8 VCON: Viterbi Control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
3.9 MSGBYTES2: Message Bytes K. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
3.10 RSEED0: Derandomizer Seed LSB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
3.11 RSEED1: Derandomizer Seed MSB. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
3.12 IOCNTRL: Input/Output Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
3.13 NJL: Block Length Times Interleave Depth LSB. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
3.14 NJM: Block Length Times Interleave Depth MSB. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
3.15 BLKLEN2: RS Block Length N . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
3.16 JDEPTH: Interleave Depth . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13
3.17 RSCONTROL: Reed-Solomon Control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13
4.0 Signal Descriptions and Specifications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14
4.1 Input Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14
4.2 Output Signals. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 5
4.3 Bidirectional Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15
4.4 Input Specifications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 6
4.5 Output Specifications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16
4.6 Bidirectional Pin Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
4.7 Power & Ground Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 7
4.8 Pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
5.0 Timing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
6.0 DC Electrical Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2 6
7.0 Packaging. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28
Advanced Hardware Architectures, Inc.
ii PS4210-1099
8.0 Ordering Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29
8.1 Available Parts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29
8.2 Part Numbering. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29
9.0 AHA Related Technical Publications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29
10.0 Other Technical Publications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30
Advanced Hardware Architectures, Inc.
PS4210-1099 iii
Figures
Figure 1: AHA4210 Block D iagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3
Figure 2: I2C Internal Register Increment Example, Writing the Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7
Figure 3: I2C Reading Internal Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7
Figure 4: Bit Transfer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
Figure 5: Start and Stop Conditions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
Figure 6: Clock Timing - SC LK and VCLK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
Figure 7: Reset Timing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
Figure 8: DATAFLUSH Timing - Byte Input M ode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19
Figure 9: Microprocessor Write Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19
Figure 10: Microprocessor Read Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
Figure 11: I2C Interface Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21
Figure 12: Input - Serial Mo de: IOCN TRL[2:1] = 0x Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22
Figure 13: Input - Byte Mode: IOCNTRL[2:1] = 10 Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22
Figure 14: Input - Byte Mode IOCNTRL[2:1] = 11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23
Figure 15: Output - BCLK Mode: IOCNTRL[4:3] = 10, [2:1] = 11. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24
Figure 16: Output - Byte Mode: IOCNTRL[4:3] = 10, IOC NTRL[2:1] 11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24
Figure 17: IOCNTRL[4:3] = 00, Serial Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25
Figure 18: IOCNTRL[4:3] = 01, Serial Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25
Figure 19: IOCNTRL[4:3] = 10, Byte Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25
Figure 20: IOCNTRL[4:3] = 11, Byte Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25
Figure 21: Power vs. VCLK Rate, Estimated for Modes 1 and 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27
Figure 22: Max Ambient Temperature (Ta) vs. VCLK Rate, Estimated for Modes 1 and 3. . . . . . . . . . . . . . . . . . .27
Advanced Hardware Architectures, Inc.
iv PS4210-1099
Tables
Table 1: Various Modes Supported by the AHA4210 Device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5
Table 2: Register Settings for Functional Block Bypass. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5
Table 3: Maximum Latency in VCLK Cycles. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
PS4210-1099 Page 1 of 30
Advanced Hardware Architectures, Inc.
1.0 INTRODUCTION
The AHA4210, referred to as the RSVP, is a
single-chip Forward Error Correction LSI device
combining a Viterbi decoder, a Reed-Solomon
decoder, a descrambler (energy dispersal) and a
deinter leav er . Th e de vice conforms to the MPEG- II
transport layer protocol spe cified by ISO /IEC
standard and FEC requirements of Digital Video
Broadcasting (DVB) DT/8622/DVB and DT/8610/
III-B specification. These documents are referred to
as the DVB specification.
The Viterbi decoder supports selectable code
rates of 1/2, 2/3, 3/4, 5/6, 6/7 or 7/8 using industry
standard puncturing algorithms. Viterbi decoded
data rate is up to 62 Mbits/second at all code rates.
The chip also performs byte alignment and block/
packet synchronization detecting sync bytes used in
transmission. The descrambling function is
selectable with a programmable seed or performed
ex t er nal ly. Each functiona l block may be bypas sed
giving more flexibility to a system designer.
Block size programmability, several code rate
choices and programmable RS error correction
capability allows flexibility to a digital
communications system designer incorporating
Forward Error Correction into a receiver. Intel
80C188 multiplexed parallel or serial I2C protocol
interface allows the system microprocessor to
program internal registers and monitor channel
performance.
This docume nt cont ai ns k ey features,
correction terms, functional description, signal
functions, Related Technical Publications, DC and
AC characteristics, pinout, package dimension and
ordering information.
1.1 APPLICATIONS
Satelli te communications/VSAT
DBS
Military Communications
1.2 FEATURES
GENERAL:
Conforms t o t he ISO/ IEC- CD 13818-1 MPEG-II
transport layer protocol and Digital Video
Broadcasting (DVB)FEC specification
Viterbi decoded data rates up to 62 Mbits/sec at
any code rate
Programmable block size from 34 to 255 bytes
Multiplexed parallel Intel 80C188 or serial I2C
protocol microprocessor interface
Byte or serial data output
On -Chip err or rate monitor
Programmable bypass modes for each of the
major b locks
Configured to DVB mode of operation on
power-up
68 pin P LCC
VITERBI DECODER:
Selectable decoder rates 1/2, 2/3, 3/4, 5/6, 6/7
and 7/8 or automatic acquire mode
3-Bit soft-decision decoder inputs
Constraint length k=7
SYNCHRONIZATION CONTROL:
Automatic synchronization capability for QPSK
based demodulator
Up to one sync byte per block
Responds to inverted sync byte
REED-SOLOMON:
t=1 through 8 in increments of 0.5
Correction capability of up to 8 bytes
Intern al FIFOs
DEINTERLEAVER:
Programmable convolutional deinterleaving
(Ramsey II, Ramsey II modified or Forney) to
depth I=16
No external RAM required
ENERGY DISPERSAL:
Selectable on-chip DVB specification Energy
Dispersal
Optional bypass mode
Programmable seed
1.3 CONVENTIONS AND NOTATIONS
- Certain signals are log ically true at a voltage
defined as “low” in the data sheet. All such
signals have an “N” appended to the end of the
signal name. For example, RSTN and RDYON.
- “Signal assertion” means the signal is logically true.
- Hex values are defined with a prefix of “0x”,
such as “0x10”.
- A range of signal names is denoted by a set of
colons b etween the numbers . Most si gnif i cant b it
is always shown first, followed by least
significant bit. For example, ERRSTAT[ 6:0]
represents number of bytes corrected by the
Reed-Solomon decoder.
- A product of two variables is expressed with an
“x”, for example, BLKLEN2 x JDEPTH
represe nts Block Length mu ltip lied b y Int erle a ve
Depth.
- Megabytes per second is referred to as MBytes/
sec or MB/se c. Megabit s per second i s referred as
Mbits/sec or Mb/sec.
- Frequency of a clock signal is referred to as
F(name). For example, F(VCLK) specifies
frequency of VCLK.
Page 2 of 30 PS4210-1099
Advanced Hardware Architectures, Inc.
1.4 DEFINITION OF TERMS AND PROGRAMMABILITY
VITERBI
TERM NAME
(other references) DEFINITION RANGE
k Constr ai nt Lengt h Number of input bits over which convolutional
code is computed. 7
Traceback Depth Length of path through the trellis over which the
Viterbi decoder computes the likelihood of a
decoded bit value. minimum=115
Puncturing Process of deriving a h igher rate c ode from a ba si c
rate code. N/A
Puncture Pattern Mapping between 1/2 rate encoded bits and new
higher rate encoded bits. N/A
Convolutional Code
Rate (Puncture Rate) Ratio of input to output bits for convolutional
code. 1/2, 2/3, 3/4, 5/6, 6/
7, 7/8
DEINTERLEAVER
TERM NAME
(other references) DEFINITION RANGE
Ramsey or Forney Convolutional interleave techniques. N/A
J Int erleave Dept h Minimum separation in the interleaved stream. 1 through 16
REED-SOLOMON
TERM NAME
(other references) DEFINITION RANGE
KMessage Length (user
data or message bytes)
Number of user data symbols in one message
block. Size of a symbol in AHA4210 is 8-bits.
Message length is .
32 thru 253 bytes
(32, 33, 34 . . . 253)
RCheck symbols
(parity or redundancy)
Symbols appended to the user data to detect and
correct errors. The number of check symbols
required in a sys te m is . Every 2 check byt es
correct 1 e rror byte.
2 thru 16 bytes in
increments of 1
(2, 3, 4 . . . 16)
NCodeword Length
(block length) Sum of message and check symbols. . 34 thru 255 bytes
(34, 35, 36 . . . 255)
t Error Corrections Maximum number of error corrections performed
by the dev ice. T he va lue is t=Integer .
1 thru 8 bytes in
increments of 0 .5
(1, 1.5, 2, 2.5 . . . 8)
e Number of Errors An error is defined as an erroneous byte whose
correct value and position within the message
block are both unknown. min imum 0
RS Code Rate Ratio of message to block length, . 0.67 through 0.99
GENERAL
TERM NAME
(other references) DEFINITION RANGE
Bypass Processing data either through or around a
functional block. N/A
Block An entity of both message and Reed-Solomon check
bytes. The number of message bytes is equal to the
length of the MPEG-II packet for a DVB system.
(34, 35, . . . 255)
bytes
Packet MPEG-II transport layer packet size. 188 including one
sync mark byte
KNR=
R2e
NKR+=
NK
2
--------------
K
N
----
PS4210-1099 Page 3 of 30
Advanced Hardware Architectures, Inc.
2.0 FUNCTIONAL DESCRIPTION
This section presents an architectural overview of the chip and its many functions, features and
operating modes. Block diagram of the chip shows the Viterbi and Reed-Solomon decoder modules.
Figure 1: AHA4210 Block Diagram
2.1 SYNCHRONIZATION
This module synchronizes data received from
Viterbi to byte and packet boundaries. The
synch ron iza ti on algorithm is summarize d below.
Bit-to-byte mapping is performed while
looking for sync marks specified in register
VSYNCP. Every bit position is examined for a sync
mark byte. If no sync mark is det ected afte r looking
for a mini mum of two block lengths, then the phase
is incremented and the process is repeated. Carrier
and depuncture phases are cycled through
searching for sync marks. This process terminates
when sync is achieved.
After a sync mark is detected, additional sync
marks as specified in SYNCON[2:0] are searched.
Detection of additional sync completes the block
sync pro cess a nd data is output on the ne xt i n ver ted
sync (or regular sync if VCON[7] = 0). Once the
output data flow starts, consecutiv e sy nc marks are
required if enabled by the VCON[6] to remain in
sync. In this case if SYNCOFF[2:0] consecutive
sync marks are missed, then the block goes out of
the sync condition.
The block may also go out of sync if the Reed-
Solomon uncorrectable blocks threshold is
exceeded over a programmable number of blocks.
This feature is enabled by VCON [5]. Total Block
Count and Threshold are programmed by
VRSSIZE and VRSTH registers.
2.1.1 EXPLANATION OF CLOCKING SCHEMES
The Viterbi block has two clock inputs: SCLK
and VCLK. VCLK runs the actual Viterbi decoder
block whi le SCLK simply dri v es the input stage for
V iterbi. The data inputs I[2:0] , Q[2:0] and IQSTRB
are synchronous to SCLK.
There are two approaches to using this
interface. Approa ch one involv es ty ing IQSTRB to
VDD (active) and assuring that:
Where CR is def ined as the code ra te. Note that
this is a strict requirement and the chip wil l enter a
state requiring a hard res et if this is not met.
One advantage to this approach is that in some
designs SCLK is already available and I and Q are
already synchronous to this signal.
The other method is to tie SCLK and VCLK
together and throttle the data with IQSTRB. For
any given code rate , where Y is even, IQSTRB
would be held high (clocking in I[2:0] and Q[2:0]
on that cycle) for no more than out of every X
clocks. If Y is odd then IQSTRB would be held high
for no more tha n Y out of every 2X clocks and no
more than in eve ry X clock cycles.
In the final approach it is not necessary to
supply a separate clock (SCLK), however, the
customer mu st supp ly the circ uit ry to drive
IQSTRB appropriately.
MUX
REED-SOLOMON
DECODER
&
ENGER Y DISPERSAL
(DESCRAMBLER)
DEPUNCTURING
LOGIC
INPUT
INTERFACE VITERBI
DECODER
DEINTERLEAVER
&
RAM
MICROPROCESSOR INTERFACE
DECODER CONTROL DECODER
CLOCK CONTROL
SYNC CONTROL
BYTE[1:0]
I[2:0]
IQSTRB
Q[2:0]
SCLK
DATAFLUSH
RSTN
BLKNEW
DO[7:0]
RDYON
BLKERR
SCL
SDA
MRDN
MWRN
MD[7:0]
MCSN
MAL
READY
VCLK
BCLK
Frequency SCLK()Frequency VCLK
2CR×
-----------------


X
Y
---
Y
2
---
Y1+
2
------------
Page 4 of 30 PS4210-1099
Advanced Hardware Architectures, Inc.
The Viterbi decoder can be set up to cycle
through all convolutional code rates. In this case,
use convolutional code rate 7/8 in the equation:
2.2 VITERBI DECODER
The Viterbi decoder takes the data from an I
and a Q channe l and decodes these using a 3 bit soft
decisi on. The Viterbi d ecoder is bas ed on a 1/2 rate
code, b ut also sup ports punct ured cod es with ra te s:
2/3, 3/4, 5/6, 6/7 and 7/8.
The generator polynomials are:
The minimum trace back depth is 115.
The output of the Viterbi decoder is converted
to 8 bit bytes, sync bytes are detected and after
which the data is run through the deinterleaver to
restore the ECC blocks.
The V iterbi decoder can be byp assed by bit 2 of
the IOCNTRL and disabled by bit 4 of the VCON
register.
The la tenc y of th e Viterbi block i s meas ure d in
two ways. First, there is a latency associated with
“synching” to the incoming signal. Assuming that
there is no valid sync byte pat terns in the data the
worst case sync time is given by:
This assumes that SCLK runs fast enough to
keep the data pipeline full. Once the V iterbi block is
synched up, the maximum latency from input to
output is 258 VCLK cycles.
2.2.1 DEPUNCTURE
The Viterbi module can be programmed to
depuncture according to a specified code rate or
automatically find the code rate used in the channel.
F ollowing i s a lis t of punc tu re patt erns a nd number
of phases that are cycled through in an attempt to
align the puncture phase.
During the encoding process, X and Y are
mapped into I and Q b y taking the nondeleted terms
in order of X1, Y1, X2, Y2, etc. Deleted terms are
simply skipped. The decoding process is simply the
reverse of this procedure. Erasures are inserted on
the pattern locations with zeroes. For example, the
rate 5/6 I and Q have values:
I = X1, Y2, Y4, X1, Y2, Y4, . . .
Q = Y1, X3, X5, Y1, X3, X5, . . .
The chip is capable of supporting a limited
number of depuncture codes not included in this
specification. The procedure for supporting these
codes are beyond the scope of this specification.
Please contact AHA Applications Engineering for
these codes.
The Viterbi core can be configured to self
synchronize to the appropriate depuncture pattern
phase and correct for phase ambiguity. If
VRSSIZE[6] is set, Viterbi sync does not cycle
through carrier phases. If the code rate is not
known, the core can also be configured to cycle
through 1/2, 2/3, 3/4, 5/6, 6/7 and 7/8 code rates
looking for a valid pattern.
2.3 DEINTERLEAVER
The deinterleaver supports a variety of
programmed options:
A Ramse y type II interleaver is specified in J.L.
Ramsey, “Realization of Optimal Interleavers,”
IEEE Transaction on Information Theory, May
1970, pp. 3 38-345. A Forne y/Ramse y ty pe III i nter-
leaver is specified in DVB DT/8622/DVB
specification. The interleave depth is programmable
up to 16 packets and the block size is programmable
up to 255 bytes. However, the product of the inter-
leave depth and block length cannot be larger than
2688 bytes. In a ddi ti on t o t hi s, t he following condi -
tions must be satisfied for various applications.
Maximum processing latency =
Note that the “&” is a concatenation symbol.
RATE PATTERN: X:Y # OF PHASES
1/2 X
Y1
11
2/3 X
Y10
11 3
3/4 X
Y101
110 2
5/6 X
Y10101
11010 3
6/7 X
Y100101
111010 7
7/8 X
Y1000101
1111010 4
F SCLK()
F VCLK()
2CR×
------------------------
g1 171(octal) and g2 133(octal)==
8 block length 384+×()4 # of puncture phases()512+×× TECHNIQUE TYPE WITH
VITERBI WITHOUT
VITERBI
Ramsey II No Yes
Forney/Ramsey III Yes Yes
Modified Ramsey II Yes Yes
APP INTERLEAVE CONSTRAINT
DVB Forney/
Ramsey III BLKLEN2/JDEPTH[3:0]
must be an integer
Ramsey II BLK LEN a nd JD EPTH [3:0 ]
must be relati vely prime
Ramsey II
modified Same as Ramsey II
pi
2
-----
8 NJM[3:0] & NJL[7:0]()×VCLKS
PS4210-1099 Page 5 of 30
Advanced Hardware Architectures, Inc.
2.4 RS DECODER
The RS block performs the outer decoding. The
Reed-Solomon decoder conforms to the DVB
specificati on. Th e RS bl ock can be programmed t o
decode t=1, 1.5, 2, . . . 7.5, 8.
The block length of the code is programmable
up to 255 bytes. Block lengt h is 204 with 16 check
bytes and a correction power of 8 bytes per block
for the DVB specification. Maximum latency
through the RS Decoder Block is:
2.5 DERANDOMIZE/ENERGY
DISPERSAL
The derandomizer is specified in the DVB
specification. It is built as a 15 stage pseudo-
random binary sequence generator with
initialization sequence specified by RSEED0 and
RSEED1 registers. The randomization occurs over
8 blocks of MGSBYTES2 (188 bytes for DVB
specification). Randomization does not occur over
Reed-Solomon parity bytes nor sync bytes.
However, the pseudo-random binary sequence
generator continues to run during non-in verted sync
bytes. Maximum latency = 10 VCLKs.
2.6 MODES OF OPERATION
The FEC decoder has been designed with a
modular approach so that each of the four major
functions: Viterbi dec oding, deinte rleaving, R S
decoding and derandomization can be individually
enabled or disabled. Five operating modes are
supported by the device. These are:
1) Normal mode. All functions enabled. Inputs
clocked with SCLK.
2) Byte Input mode. All functions except Viterbi
enabled. Inputs clocked with VCLK. Ti e
SCLK to VCLK. Use Byte [1:0], I[2:0] and
Q[2:0] as byte wide data path. Bytes must
arrive on packet boundaries.
3) Viterbi decode mode. Inputs clocked with
SCLK.
4) Reed-Solomon decode mode. Same input
constraints as byte input mode.
5) Deinterleave mode. Same input constraints as
byte input mode.
These modes may be operated with or without
the derandomizer enabled.
Table 1: Various Modes Supported by the AHA4210 Device
Table 2: Register Settings for Functional Block Bypass
px() x8x4x3x21++++=
gx() xα0
+()xα1
+(). . . xα2t1
()
+()=
α1primitive element=
N1()81202RN2.67×+++×
MODE FUNCTIONAL BLOCK
VITERBI DEINTERLEAVER RS DECODER DERANDOMIZER
1) Normal Enabled Enabled Enabled Either
2) Byte Input Disabled Enabled Enabled Either
3) Viterbi Decode Enable d Disabled Disabled Either
4) RS Decode Disabled Disabled Enabled Either
5) Deinterleaver Disabled Enabled Disabled Either
FUNCTIONAL BLOCK ENABLED DISABLED
Viterbi VCON[4]=1
IOCNTRL[2]=0 VCON[4]=0
IOCNTRL[2]=1
Deinterleaver JDEPTH[4]=1 JDEPTH[4]=0
Reed-Solomon RSCONTROL=0C RSCONTROL=1C
Derandomizer IOCNTRL[7]=1; VCON[7]=1 IOCNTRL[7]=0; VCON[7]=0
Page 6 of 30 PS4210-1099
Advanced Hardware Architectures, Inc.
2.7 MICROPROCESSOR INTERFACE
The device is capable of interfacing to a
multiplexed eight bit bus or the I2C serial inter face.
The system microprocessor is referred to as the host
and beha ves as a “mast er” a nd the AHA device is a
“slave.”
2.7.1 P ARALLEL 80C188 MICROPR OCESSOR
INTERFACE
The paral lel inte rface suppo rts an Intel 8 0C188
microprocessor with a multiplexed address and data
bus. For a register read operation the chip select
(MCSN) is asserted. The device asserts the READ Y
signal low. This is followed by the host outputting
the re gi ster add ress on the MD[ 7:0] bus along wit h
the address latch e nable (MAL). The host then
asserts the read strobe (MRDN). The device
responds by ou tputting t he data o n the MD[7:0] bus
and tristating the READY signal. Valid data is
available when READY is tristated by the device.
Bus cycle is terminated by the host deasserting the
MRDN signal.
A register write oper ation is similar to the
register read except the host asserts the MWRN
strobe along with the data. The device then loads
the data into the appropriate register and tristates
the READY signal. The b us c ycle te rminat es when
the MWRN strobe gets deasserted.
When using the parallel interface t ie the SCL
and the SDA signals high. MCSN must not glitch.
2.7.2 SERIAL I2C PROTOCOL INTERFACE
The I2C interface is a serial microprocessor
interface using two signals named SCL and SDA.
Any drivers connected to these signals must be
open drain or open collector to facilitate the wired-
AND operati on of this b us . There is o ne SCL pul se
per data bit an d th e SDA line must be stabl e duri ng
the high period of the SCL pulse, changing only
when SCL is low for data tr ansfers .
In a ta r get desi gn usi ng t he I 2C seri al i nterf ace ,
the following connections need to be made.
Connect MRDN and MWRN to Ground. Tie
MCSN high and connect MAL to Ground. The
lower five bits of the MD[7:0] bus need to be
hardwired to the correct Slave ID address. For
example, if a Slave ID address of 5 is needed,
connect bi ts 0 and 2 to VDD, and bits 1, 3 and 4 to
Ground.
The following paragraphs describe briefly the
serial communication over this bus. For more
detailed information please refer to the I2C Bus
Specification listed in the Related Technical
Publications section. This device works in either
high speed mode or standard low speed mode.
In high speed mode, the f irst two bytes between
a host and a slave device determine the device
selected. These two bytes are the first two bytes
following the Start condition as shown in Figure 5.
The bytes contain: 1, 1, 1, 1, 0, AD4, AD3, R/
W, and AD2, AD1, AD0, A4, A3, A2, A1, A0.
AD[4:0] = Slave ID address
A[4:0] = Register address
R/W = Direc tion of data tran sfer wh ere:
1 = Re ad; 0 = Write
When programming the registers in I2C mode,
the device performs auto increment of interna l
addresses. All 16 addresses may be accessed by
writing 21 values to Address 0x00 as shown in
Figure 2. Alternatively a register may be randomly
accessed by specifying its address, such as 0x04.
Figure 2 is an example of writing to one or
more re gi sters. Figure 3 is an example of readi ng a
register.
The serial I2C interface protocol conforms to
the I2C Bus Specification. For electrical
performanc e of this interface , please refer to the
Timing section.
Notes:
1) This document contains a very brief description of
the I2C Bus functions. For a detailed description,
please refer to Specification documents available
from Philips.
2) I2C Bus protocol s up por t ed by AHA4210 requires a
10-bit addressing.
3) See Note 2 on back of cover page.
PS4210-1099 Page 7 of 30
Advanced Hardware Architectures, Inc.
Figure 2: I2C Internal Register Increment Exampl e, Writing the Registe r s
Figure 3: I2C Reading Internal Registers
ST 11110AD4 AD3 R/W ACK
AD2 AD1 AD0 A4 A3 A2 A1 A0 ACK
Acknowledge
Direction
MSB’s of ID
Address (Hard Wired)
Special Code for
Start Condition
10-b it Addressing
Acknowledge
5 bits of Internal
Register Addr essi ng
(Start Address)
3 LSB’s of ID Address
(Hard Wired)
BYTE 0 ACK
BYTE 1 ACK
BYTE 2 ACK STP
Stop Condition
An ‘ACK’ is generat e d by the master
device on termination of read operation.
Data
ST 11110AD4 AD3 R/W ACK
AD2 AD1 AD0 A4 A3 A2 A1 A0 ACK
Write, Set to 0
Internal Regis t er
Address
Register Read Data ACK
Sr 11110AD4 AD3 R/W ACK
Read, Set to 1
Repeated Start
STP
Page 8 of 30 PS4210-1099
Advanced Hardware Architectures, Inc.
Figure 4: Bit Transfer
Figure 5: Start and Stop Conditions
2.8 LATENCY
Maximum latency measured in VCLK cycles
through the various blocks is summarized in
Table 3.
Table 3: Maxi mum Latency in VCLK Cycles
SDA
SCL
SDA
SCL
MSB
Acknowledge
Start Condition Stop Condition
12 89
FUNCTIONAL
BLOCK LATENCY
Viterbi 258 (afte r sync has be en acqui red)
Dein terleaver 8 x (N JM[3:0] & NJL[7:0])
RS Decoder (N-1)x8+120+2R+Nx2.67
Derandomizer 10
PS4210-1099 Page 9 of 30
Advanced Hardware Architectures, Inc.
3.0 REGISTER DESCRIPTION
This sec tion contains a summary and a desc ription of re gisters. Unless other wise specif ied, all re gisters
are Read/Write. The following registers can be changed during operation: ERRSIZE, VRSSIZE[5:0],
VSYNCP, VRSTH, VERTH, VCON[3:0], RSEED0 and RSEED1. The other registers must be
programmed before the first data is input to the AHA4210 after a reset.
3.1 REGISTER SUMMARY
Notes:
1) Reed-Solomon registers, address 0x0F, are Write only. All other registers are Read/Write.
2) All six registers of the Reed-Solomon block must be programmed consecutively. Write to address 0x0F accesses
these registers.
3) On Reset, the AHA4210 device is configured for DVB specification operation.
3.2 ERRSTAT: ERROR COUNT STATUS
Address: 0x00; Reset Value= 0x00
FUNCTIONAL
BLOCK ADDRESS MNEMONIC REGISTER NAME RESET
VALUE
Error Moni tor 0x00 ERRSTAT Error Count 0x00
0x01 ERRSIZE Total Block Count for ERRSTAT 0x20
Viterbi and
Synchronizer
0x02 VRSSIZE Total Block Count for VRSTH 0x18
0x03 VSYNCP Sync Decoder Pattern 0x47
0x04 VRSTH Reed-Solomon Uncorrectable Blocks Threshold 0x08
0x05 VERTH Sync Control 0x27
0x06 VCON Viterbi Control 0xB3
Derandomizer
0x07 MSGBYTES2 Messa ge bytes, k 0xBC
0x08 RSEED0 Derandom izer seed, LSB 0xA9
0x09 RSEED1 Derandom izer seed, MSB 0x00
0x0A IOCNTRL Input/Output Control 0x90
Deinterleaver
0x0B NJL Block Length times Interleave Depth, LSB 0x90
0x0C NJM Block Length times Interleave Depth, MSB 0x09
0x0D BLKLEN2 Reed-Solomon Block Length, N 0xCC
0x0E JDEPTH Interleave Depth 0x1C
Reed-Solomon 0x0F
RES
RES
CHKBYTES
MSGBYTES
BLKLEN
RSCONTROL
Reserved
Reserved
Check bytes
Messa ge b y t es
Block Length
Reed-Solomon Co ntr ol
0xFF
0xFF
0x90
0xBC
0xCC
0x0C
BIT DESCRIPTION
71 = One or more blocks within ERRSIZE is flagged uncorrectable. Bits [6:0] values do not
represent total corrected locations.
0 = Errors have been corrected. Bits [6:0] represent total corrected location s.
6:0 Numb er of bytes corre ct ed by RS in ERRSIZE blocks. These bits should be ignored when bi t [ 7]
is set to ‘1’ or when RS is bypassed. If the number of errors exceeds 126, then the value in this
regist er saturates at 127.
Page 10 of 30 PS4210-1099
Advanced Hardware Architectures, Inc.
3.3 ERRSIZE: ERROR BLOCK COUNT
Address: 0x01; Reset Value= 0x20
3.4 VRSSIZE: TO TAL BLOCK COUNT FOR VRSTH
Address: 0x02; Reset Value= 0x18
3.5 VSYNCP: SYNC DECO DER PATTERN
Address: 0x03; Reset Value= 0x47
3.6 VRSTH: RS UNCORRECTABLE BLOCKS THRESHOLD
Address: 0x04; Reset Value= 0x08
3.7 VERTH: SYNC CONTROL
Address: 0x05; Reset Value= 0x27
Inverted Sync Note:
When the SYNCO N value is set to ‘010’ and VCON[7]=1, the AHA4210 can sync onto an in verted data str eam, such as
can occur if the demod is 180 de gr ees out of phase. When SYNCOFF value is set to ‘111’ and VCON[7:5] is set to ‘110’
or ‘100’, the AHA4210 does not go out of sync when an in verted data str eam occur s. In either case, enabling the Reed-
Solomon error rate control over r esync hronization VCON[5] causes the AHA4210 to re cover from these conditions.
BIT DESCRIPTION
7:0 Total number of blocks over which ERRSTAT counts corrected bytes by Reed-Solomon.
BIT DESCRIPTION
7Reserved. Set to ‘0’.
6 If set, then Viterbi sync does not cycle through carrier phases.
5:0 The number of total blocks over which the number of uncorrectable blocks is counted and
compared to the VRSTH value.
BIT DESCRIPTION
7:0 The value of the sync byte. The inverted sync value is derived from VSYNCP.
BIT DESCRIPTION
7:4 Reserved. Set to ‘0’.
3:0 RSOFF is Reed-Solomon uncorrectable blocks threshold.
BIT DESCRIPTION
7 Res erved. S et to ‘0’.
6:4 SYNCON is the number of sync bytes that must be detected before the synchronization block
claims s ync hronization has been achiev ed. Mi nimum value is 2. Values of 0 a nd 1 are ille gal and
result in unknown operation. See Inverted Sync Note.
3
Specify mapping number on the input signal.
0 = mapping #1
0 = strongest zero, 3 = weakest zero
4 = weakest one, 7 = strongest one
1 = mapping #2
3 = strongest zero, 0 = weakest zero
4 = weakest one, 7 = strongest one
2:0 SYNCOFF is the number of sync bytes that must be missed before the synchronization block
claims synchronization has been lost. 0 is illegal. See Inverted Sync Note.
PS4210-1099 Page 11 of 30
Advanced Hardware Architectures, Inc.
3.8 VCON: VITERBI CONTROL
Address: 0x06; Reset Value= 0xB3
Burst Error Note:
When the resynchron ization of the AHA4210 is co ntrolled only by the Reed-Solomon error rate control and a
bu rst of all in put va lues are zer o of an y strength, then the Reed-Solomon receives a valid code word (of a ll 0s). I n
this cas e , t he AHA42 10 d oes not g o ou t o f sync during the burst and does no t fla g t he ou tp ut as un correctable . If
this condition is unacceptable, enable the missed sync byte resynchronization mechanism, VCON[6].
3.9 MSGBYTES2: MESSAG E BYTES K
Address: 0x07; Reset Value= 0xBC
3.10 RSEED0: DERANDOMIZER SEED LSB
Address: 0x08; Reset Value= 0xA9
3.11 RSEED1: DERANDOMIZER SEED MSB
Address: 0x09; Reset Value= 0x00
BIT DESCRIPTION
7 1 = enable, 0 = disable inverted sync detection.
61 = enable, 0 = disable resynchronization if the missed sync byte threshold (SYNCOFF) is
exceeded. See Burst Error Note.
51 = enable, 0 = disable Reed-Solomon error rate control over resynchronization (VRSTH,
VRSSIZE).
41 = enable, 0 = disable Viterbi decoder. This does not provide a bypass mode. It turns off the
Viterbi for power savings.
3 1 = hard, 0 = soft decision input.
2:0
Puncture rate:
0 = automatic puncture detection
1 = 1/2 rate
2 = 2/3 rate
3 = 3/4 rate
4=reserved
5 = 5/6 rate
6 = 6/7 rate
7 = 7/8 rate
BIT DESCRIPTION
7:0 Set equal to MSGBYTES. This value is used by the derandomizer module.
BIT DESCRIPTION
7:0 Least significant byte of derandomizer seed.
BIT DESCRIPTION
7Reserved. Set to ‘0’
6:0 Most significant byte of derandomizer seed.
Page 12 of 30 PS4210-1099
Advanced Hardware Architectures, Inc.
3.12 IOCNTRL: INPUT/OUTPUT CONTROL
Address: 0x0A; Reset Value= 0x90
3.13 NJL: BLOCK LENGTH TIMES INTERLEAVE DEPTH LSB
Address: 0x0B; Reset Value= 0x90
3.14 NJM: BLOCK LENGTH TIMES INTERLEAVE DEPTH MSB
Address: 0x0C; Reset Value= 0x09
3.15 BLKLEN2: RS BLOCK LENGTH N
Address: 0x0D; Reset Value= 0xCC
BIT DESCRIPTION
71 = Enable derandomization.
0 = Bypass derandomization.
61 = Output check bytes.
0 = Do not output check bytes.
51 = Set error flag in packet header according to ISO/IEC CD 13818-1 (MPEG-II).
(Bit seven of second byte of the block is set if the block is uncorrectable.)
0 = Do not set error flag in packet header.
41 = Bytes output.
0 = Serial output.
31 = 4 VCLK active RDYON.
0 = 1 VCLK active RDYON. See timing diagrams for these output modes for further details.
2:1
11 = Data is taken from BYTE[1:0]; I[2:0]; Q[2:0] directly into the deinterleaver on B CLK.
Output is available on BCLK. When this mode is selected, set IOCNTRL[4:3]=10.
10 = Data is taken from BYTE[1:0]; I[2:0]; Q[2:0] directly into the deinterleaver on V CLK.
Output is available on VCLK.
0x = Dat a taken fr om I[ 2:0] and Q[2:0] i nto the Viterb i decoder on SCLK. Output i s av a il abl e on
VCLK.
0Set to ‘1’ if deinterleaver is p rogrammed to remove sync byt es.
BIT DESCRIPTION
7:0 LSByte of BLKLEN x JDEPTH product.
BIT DESCRIPTION
7:5 Reserved. Set to ‘0’.
4Set for deinterleaver to remove the first byte of each block sp ecified by BLKL EN2 register and
perform a modified Ramsey II.
3:0 Most s ign ificant nibble of BLKLEN x JDEPTH product. Th is product must be less than or equal
to 2688 decimal.
BIT DESCRIPTION
7:0 Set equal to BLKLEN exc ept whe n NJM[4 ] i s set. Then use BLKLEN2 = BLKLEN +1. Writing
to this register loads the same value into a register in the synchronization (in Viterbi),
derandomization and deinterleave modules.
PS4210-1099 Page 13 of 30
Advanced Hardware Architectures, Inc.
3.16 JDEPTH: INTERLEA VE DEPT H
Address: 0x0E; Reset Value= 0x1C
3.17 RSCONTROL: REED-SO LOMON CONTROL
The RS block must be programmed sequentially since there is only one address allocated for it.
Address: 0x0F; Reset Value= 0xFF, 0xFF, 0x90, 0xBC, 0xCC, 0x0C
BIT DESCRIPTION
7Reserved. Set to ‘0’.
6
A statu s bit i ndicati ng that d einterlea v ed data is being sent to the Reed-Solomon decoder. This bit
is only v al id if the dei nte rl eav er is enabled ( JDEPTH[4] is a ‘1’ ). When a ‘0’ is writ ten t o this bit
then the current value is not changed.
0 = deinterleaver is not passing data.
1 = deinterleaver is passing data.
5 0 = Forney, 1 = Ramsey II
4 1 = Enable, 0 = Bypass
3:0 Interleave depth. 0 sets depth to 16. 1 is illegal. For more constraints on depth see Functional
Description Section.
BIT DESCRIPTION
RES
7:0 Reserved. Set to FF. RES
7:0 Reserved. Set to FF. CHKBYTES
7 Res erved. S et to ‘1’.
6:5 Reserved. Set to ‘0’.
4:0 Number of check bytes, R. Between 0x02 and 0x10.
MSGBYTES
7:0 Number of message bytes in the code, K. Between 0x20 and 0xFD.
BLKLEN
7:0 Number of bytes in a block, N. Between 0x22 and 0xFF.
RSCONTROL
7:0 0C = Output c orrected data.
1C = Pass uncorrected raw data through.
Page 14 of 30 PS4210-1099
Advanced Hardware Architectures, Inc.
4.0 SIGNAL DESCRIPTIONS AND SPECIFICATIONS
This section describes the signals and each of their characteristics including setup and hold times
relative to their synchronization clocks where applicable, reset conditions and load capacitances.
4.1 INPUT SIGNALS
SIGNAL NAME AND DESCRIPTION A CTIVE STATE
OR EDGE
RSTN Reset. When active, force s all internal control circuitry into a known
state and initializes all data path elements. Must remain active and
remain high as specified in AC Timing before the device can be used. Low
SCLK Symbol clock for I and Q. Rising edge
VCLK Clock input for Viterbi decoder and for outputs. Rising edge
BYTE[1:0] Byte input. Top two bits of input byte for Byte Input mode bypassing
the Viterbi block. When this mode is not used, ground these pins. N/A
I[2:0]
3-bit i n-phase s oft decisi on inp ut. Soft decision component fro m demod
to the Viterbi decoder. For hard decision input use I[2], I[1:0] are
grounded. Us ed as middle three bi ts for by te inp ut mod e. Synchronized
to VCLK in byte input mode, to SCLK for Vi terbi.
N/A
Q[2:0]
3-bit quadrature-phase soft decision input. Soft decision component
from demod to the Viterbi decoder. For hard decision input use I[2],
I[1:0] are grounded. Used as lowest three bits for byte input mode.
Synchronized to VCLK in byte input mode; to SCLK for Viterbi.
N/A
IQSTRB
Clock in I, Q and Byte data. When active, inputs Byte, I and Q are
strobed into the device. For byte input mode, synchronize to VCLK; to
SCLK for Viterbi. For byte input mode, max rate of IQSTRB is 1/8
VCLK or 1 BCLK. Active for one VCLK period.
High
MRDN Microprocessor Read Enable. For I2C operation, this must be tied to
ground. Low
MWRN Microp rocesso r Write E nable. For I2C operation, this must be tied to
ground. Low
MCSN Microprocessor Chip Select. For I2C operation, this must be tied high.
For parallel 80C188 interface, this signal is low true and Must not
Glitch.Low
MAL Microprocessor Address Latch. For I2C operation, this must be tied to
ground. High
SCL I2C Clock. Synchronous clock for I2C interface. For 80C188 interface,
this must be tied high. See timing
diagram
DATAFLUSH
Data Flush. A high signal for a minimum of one VCLK period resets
the deinterleaver and initiates a data pipeline flush in Byte Input mode.
New data must not be input for at least 16 x BLKLEN2 x VCLK
periods after the signal goe s low. This period is required to fl ush the
data completely through the pipeline. For Viterbi input mode tie to
VSS.
High
PS4210-1099 Page 15 of 30
Advanced Hardware Architectures, Inc.
4.2 OUTPU T SIGNALS
4.3 BIDIRECTIONAL SIGNALS
SIGNAL NAME AND DESCRIPTION A CTIVE STATE
OR EDGE
DO[7:0] Data Output Bus. The output byte is driven from the rising edge of
VCLK or BCLK. For serial output mode, DO[7] contains the data and
DO[6:0] is ‘0’. N/A
BLKNEW Start of block signal. MPEG-II transport stream packet start flag. Valid
with RDYON low during the first byte of each block. High
RDYON Output Ready strobe. Indicates that output data on DO[7:0] is valid.
There is no external signal to throttle output data transfer. The max rate
of RDYON is 1/8 VCLK or BCLK. Low
BLKERR Block uncorrectable. Active during first output byte of packet (with
RDYON low and BLKNEW high) if the block to be output cannot be
corrected. Should be ignored if Reed-Solomon block is bypassed. High
READY
Microprocessor Access Ready. Indicates that the chip has completed a
microprocessor read or write cycle. At the beginning of processor
cycles, this output is driven to a low voltage, indicating that the chip is
not ready. This signal is tristated when processor cycles are inactive.
The reset state of this pin is high impedance.
Low when busy ,
Otherwise,
tristated.
BCLK Output Cloc k. This cl ock is der i ved fr om VCLK and is 1/ 8 freque ncy of
VCLK.
SIGNAL NAME AND DESCRIPTION A CTIVE STATE
OR EDGE
MD[7:0] Multiplexed Address/Data Bus. Mux bus supporting 80C188. For I2C
interface, MD[4:0] specify the top five bits of address for the device
while MD[7:5] are don’t cares and must be terminated high or low. N/A
SDA I2C Data Bus. Serial data for I2C interface. For 80 C188, this must be
tied high. N/A
Page 16 of 30 PS4210-1099
Advanced Hardware Architectures, Inc.
4.4 INPUT SPECIFI CATIONS
4.5 OUTPUT SPECIFICATIONS
PIN NUMBER SIGNAL NAME SELF LOAD
(MAX IN pF) STROBE
31 I[2] 10 VCLK/SCLK
30 I[1] 10 VCLK/SCLK
28 I[0] 10 VCLK/SCLK
25 Q[2] 10 VCLK/SCLK
24 Q[1] 10 VCLK/SCLK
23 Q[0] 10 VCLK/SCLK
37 BYTE[1] 10 VCLK
38 BYTE[0] 10 VCLK
48 RSTN 10 VCLK
26 IQSTRB 10 VCLK/SCLK
45 MRDN 10 See timing
diagram
46 MWRN 10
41 MCSN 10
43 MAL 10
21 SCLK 10 N/A
34 VCLK 10 N/A
39 SCL 10 VCLK
19 Reserved, connect to VSS 10 N/A
18 DATAFLUSH 10 VCLK
PIN NUMBER SIGNAL NAME LOAD CAP
(MAX IN pF) STROBE REF
9 DO[7] 20 VCLK
8 DO[6] 20 VCLK
6 DO[5] 20 VCLK
4 DO[4] 20 VCLK
3 DO[3] 20 VCLK
1 DO[2] 20 VCLK
67 DO[1] 20 VCLK
66 DO[0] 20 VCLK
12 RDYON 20 VCLK
11 BLKNEW 20 VCLK
13 BLKERR 20 VCLK
51 READY 20 VCLK
16 BCLK 20 VCLK
14 Reserved N/A N/A
PS4210-1099 Page 17 of 30
Advanced Hardware Architectures, Inc.
4.6 BIDIRECTIONAL PIN SPECIFICATIONS
4.7 POWER & GROUND PINS
4.8 PINOUT
PIN NUMBER SIGNAL
NAME SELF LOAD
(MAX IN pF) LOAD CAP
(MAX IN pF) STROBE REF
50 SDA 10 20 VCLK
52 MD[0] 10 20
See timing
diagrams
54 MD[1] 10 20
56 MD[2] 10 20
57 MD[3] 10 20
59 MD[4] 10 20
61 MD[5] 10 20
62 MD[6] 10 20
64 MD[7] 10 20
PIN NUMBER SIGNAL NAME
2, 7, 17, 22, 29, 35, 36, 42, 49, 55, 60, 65 VDD
5, 10, 15, 20, 27, 32, 33, 40, 44, 47, 53, 58, 63, 68 VSS
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
45
44
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
9
8
7
6
5
4
3
2
1
68
67
66
65
64
63
62
61
VSS
I0
VDD
I1
I2
VSS
VSS
VCLK
VDD
VDD
BYTE1
BYTE0
SCL
VSS
MCSN
VDD
MAL
DO7
DO6
VDD
DO5
VSS
DO4
DO3
VDD
DO2
VSS
DO1
DO0
VDD
MD7
VSS
MD6
MD5
VDD
MD4
VSS
MD3
MD2
VDD
MD1
VSS
MD0
READY
SDA
VDD
RSTN
VSS
MWRN
MRDN
VSS
VSS
BLKNEW
RDYON
BLKERR
RESERVED
VSS
BCLK
VDD
DATAFLUSH
RESERVED
VSS
SCLK
VDD
Q0
Q1
Q2
IQSTRB
TM
AHA4210A-062 PJC
Reserv ed Pins: Leave pin 14 No Connect
Tie pin 19 to VSS
Page 18 of 30 PS4210-1099
Advanced Hardware Architectures, Inc.
5.0 TIMING
Unle ss othe rwise specified, all timing refere nces fr om cloc k edge s are referred to the cro ssover-to-
crossover point of SCLK and VCLK at 1.4 Volts.
Figure 6: Clock Timing - SCLK and VCLK
Notes:
1) In 80C188 mode.
2) In fast I2C mode.
3) In st andard I2C mode.
4) Based on design goals.
Figure 7: Reset Timing
Notes:
1) The RSTN signal can be asynchronous to the VCLK signal. It is internally synchronized to the rising edge of
VCLK.
2) Interaction with the chip can occur after this period.
3) Hold IQSTRB low un til all registers are programmed.
NUMBER PARAMETER MIN MAX UNITS NOTES
1
1
1
1
VCLK period
VCLK period
VCLK period
SCLK period
16.13
16.13
16.13
16.13
100
400
nsec
nsec
nsec
nsec
1
2
3
2 CLK rise time 2 nsec 4
3 C LK fall tim e 2 nse c 4
4 CLK high pulsewidth 6.4 nsec
5 CLK lo w pulsewidt h 7.7 nsec
NUMBER PARAMETER MIN MAX UNITS NOTES
1 RSTN low pulsewidth 20 VCLK clocks
2 RSTN setup to VCLK 5 nsec 1
3 Internal initialization time 28 VCLK clocks 2
CLK 2.0
0.8 1.4
23 45
1
22
13
VCLK
RSTN
IQSTRB
PS4210-1099 Page 19 of 30
Advanced Hardware Architectures, Inc.
Figure 8: DATAFLUSH Timing - Byte Input Mode
Notes:
1) DATAFLUSH function requires (16×BLKLEN2) VCLKs after the DATAFLUSH pulse.
Figure 9: Microprocessor Write Timing
NUMBER PARAMETER MIN MAX UNITS NOTES
1 DATAFLUSH setup 5 nsec
2 DATAFLUSH hold 5 nsec
3 DATAFLUSH pulsewidth 1 VCLK
NUMBER PARAMETER MIN MAX UNITS NOTES
1 MCSN hold from MWRN deasserted 0 nsec
2 MAL pulsewidth 16 nsec
3 MCSN low and MAL low to MWRN low 0 nsec
4 MWRN pulsewidth 14 VCLK clocks
5 MCSN low to READY low 22 nsec
6 MWRN low to READY deasserted 12 14 VCLK clocks
7 READY deasserted to MWRN high 0 nsec
8 Address setup to MAL 10 nsec
9 Address hold from MAL 5 nsec
10 MWRN low to data valid 6 VCLK clocks
11 DATA hold 0 nsec
1
2
3
VCLK
DATAFLUSH
Address1 Data
tristatetristate
tristate
1
23
3
5
89 10
6
4
7
11
VCLK
MCSN
MAL
MWRN
READY
M
D[7:0]
Page 20 of 30 PS4210-1099
Advanced Hardware Architectures, Inc.
Figure 10: Microprocessor Read Timing
NUMBER PARAMETER MIN MAX UNITS NOTES
1 MCSN hold from MRDN deasserted 0 nsec
2 MAL pulsewidth 16 nsec
3 MCSN low and MAL low to MRDN low 0 nsec
4 MRDN pulsewidth 12 VCLK clocks
5 MCSN low to READY low 22 nsec
6 MRDN low to READY deasserted 12 VCLK clocks
7 READY deasserted to MRDN high 0 nsec
8 Address setup to MAL fall 10 nsec
9 Address hold from MAL fall 5 nsec
10 MRDN low to data driven 0 n sec
11 MRDN deassert to data released 0 nsec
12 MRDN low to data valid 7 VCLK clocks
Address1 Data
tristatetristate
tristate
1
23
3
5
89
10
6
4
7
11
VCLK
MCSN
MAL
MRDN
READY
M
D[7:0] tristate
12
PS4210-1099 Page 21 of 30
Advanced Hardware Architectures, Inc.
Figure 11: I2C In terface Timing
Notes:
(1) A ll I2C Interface timings are based on design goals.
(2) A device must intern ally provide a hold time of at least 300 nsec for th e SDA signal in order to bridge the
undefined region of the falling edge of SCL.
(3) The maximum data hold time, 6, has only to be met if the device does not stretch the low period, 7, of the SCL
signal.
(4) A fast mode I2C bus device can be used in a standard mode I2C bu s system, but the requirement for data setup
time 250 nsec must then be met. This will automatically be the case if the device does not str etch the low period
of th e SC L si gn al . I f such a de vi ce d oes st retch th e l ow per i od o f t he s i gna l, i t must output the next data b it t o t he
SDA line tR max + tSU:DAT = 1000 + 250 +1250 nsec (according to the standard mode I2C bus specification)
before the SCL line is releas ed.
NUMBER PARAMETER STANDARD MODE(1) HIG H SPEED (1) UNIT
MIN MAX MIN MAX
SCL Clock frequency 100 400 KHz
1Bus free time between a STOP and
START condition 4.7 1.3 µsec
2Hold time (r epeated) STAR T condi tion.
After thi s period, the f irst cl ock pulse is
generated 40.6
µsec
3 Low period of the SCL clock 4.7 1.3 µsec
4 High period of the SCL clock 4.0 0.6 µsec
5 Setup time for a repeated START 4.7 0.6 µsec
6 Data hold time 0(2) 0(2) 0.9(3) µsec
7 Data setup time 250 100(4) nsec
8 Rise time of both SDA and SCL 250 250 nsec
9 Fall time of both SDA and SCL 250 250 nsec
10 Setup time for STOP condition 4.0 0.6 µsec
5
138
2647
9
10
SDA
SCL
STOPSTARTSTOP START
Page 22 of 30 PS4210-1099
Advanced Hardware Architectures, Inc.
Figure 12: Input - Serial Mode: IOCNTRL[2:1] = 0x Mode
Note:I and Q signals may be strobed once per SCLK and IQSTRB may be held high. The timing diagram above
illustrates I and Q d ata on every other SCLK.
Figure 13: Input - Byte Mode: IOCNTRL[2:1] = 10 Mode
NUMBER PARAMETER MIN MAX UNITS NOTES
1 IQSTRB setup to SCLK 5 nsec
2 IQSTRB hold from SCLK 1 nsec
3 IQ setup to SCLK 5 nsec
4 IQ hold from SC LK 1 nsec
NUMBER PARAMETER MIN MAX UNITS NOTES
1 IQSTRB setup to VCLK 5 nsec
2 IQSTRB hold from VCLK 3 nsec
3 Byte, I and Q setup to VCLK 5 nsec
4 Byte, I and Q hold from VCLK 3 nsec
5 IQSTRB period 8 VCLK clocks
1
3
SCLK
I+Q
IQSTRB 2
4
VCLK
IQSTRB
BYTE, I, Q
4
3
12
5
PS4210-1099 Page 23 of 30
Advanced Hardware Architectures, Inc.
Figure 14: Input - Byte Mode IOCNTRL[2:1] = 11
Note:
1) Data and IQSTRB are latched on the rising edge of VCLK when BCLK is low and IQSTRB is hi gh.
NUMBER PARAMETER MIN MAX UNITS NOTES
1 BCLK delay from VCLK 11 nsec
2 IQSTRB setup to VCLK 5 nsec 1
3 IQSTRB hold to VCLK 3 nsec 1
4 Byte, I and Q setup to VCLK 5 nsec 1
5 Byte, I and Q hold to VCLK 3 nsec 1
1
VCLK
BCLK
IQSTRB
1
23
45
BYTE, I, Q
Page 24 of 30 PS4210-1099
Advanced Hardware Architectures, Inc.
Figure 15: Output - BCLK Mode: IOCNTRL[4:3] = 10, [2:1] = 11
Figure 16: Output - Byte Mode: IOCNTRL[4:3] = 10, IOCNTRL[2:1] 11
Note: RDYON remains asserted for one clock period. Output data stays asserted for eight clocks minimum.
Timing diagrams 15 through 18 show first two bytes of a block with uncorrectable errors for va rious
RDYON modes.
NUMBER PARAMETER MIN MAX UNITS NOTES
1 BCLK delay from VCLK 11 nsec
2DO [7:0], RDYON, BLKNEW and
BLKERR from VCLK 11 nsec
3 RDYON output hold 1 nsec
4 RDYON deassert time 7 VCLK clocks
1
VCLK
BCLK
DO[7:0]
1
RDYON
2
2
BLKNEW
BLKERR
2
VCLK
RDYON
DO[7:0]
BLKNEW
BLKERR
34
2
2
2
PS4210-1099 Page 25 of 30
Advanced Hardware Architectures, Inc.
Figure 17: IOCNTRL[4:3] = 00, Serial Output
Figure 18: IOCNTRL[4:3] = 01, Serial Output
Figure 19: IOCNTRL[4:3] = 10, Byte Output
Figure 20: IOCNTRL[4:3] = 11, Byte Output
VCLK
RDYON
DO[7]
0
BLKERR
BLKNEW
1234567
76543210 765432
VCLK
RDYON
DO[7]
0
BLKERR
BLKNEW
1234567
76543210 765432
VCLK
RDYON
DO[7:0]
0
BLKERR
BLKNEW
1234567
8 bits of data 8 bits of data
VCLK
RDYON
DO[7:0]
0
BLKERR
BLKNEW
1234567
8 bits of data 8 bits of data
Page 26 of 30 PS4210-1099
Advanced Hardware Architectures, Inc.
6.0 DC ELECTRICAL CHARACTERISTICS
Note 1: Modes 2, 4 and 5 data are based on design goals and charaterization of sample devices, not production
tested.
ABSOLUTE MAXIMUM STRESS RATINGS
SYMBOL CHARACTERISTICS MIN MAX UNITS TEST CONDITIONS
Tstg Storage temperature -55 150 °C
Vdd Supply voltage -0.5 6.0 V
Vin Input voltage Vss-0.5 Vdd+0.5 V
Package: 68 pin PLCC
OPERATING CONDITIONS
SYMBOL CHARACTERISTICS MIN MAX UNITS TEST CONDITIONS
Vdd Supply voltage 4.75 5.25 V
Idd Supply current 1 mA Static - clocks stopped
Idd Supply current 360 mA @43 MHz; Dy namic;
modes 1 and 3 at 5.25V;
Figure 21
Idd Supply current 240 mA @62 MHz; Dynamic; modes
2, 4 and 5 at 5.25V. Note 1
Ta Ambient temperature 0 7 0 °CFigure 22
INPUTS
SYMBOL CHARACTERISTICS MIN MAX UNITS TEST CONDITIONS
Vih Input high voltage 2.0 Vdd V
Vil Input low voltage Vss 0.8 V All signals except VCLK
Vil Input low voltage for VCLK Vss 0.6 V
Iil Input leakage -10 10 µA0<Vin<Vdd
Cin Self load capacitance 10 pF
OUTPUTS
SYMBOL CHARACTERISTICS MIN MAX UNITS TEST COND ITIONS
Voh Output high voltage 2.4 Vdd V Ioh=4mA
Vol Output low voltage Vss 0.4 V Iol=4mA
Ioh Output high current -4 mA Voh=2.4V
Iol Output low current 4 mA Vol=0.4
Ioz High Impedance leakage 10 µA0<Vout<Vdd bidir ectional s
only
Cout Self load capacitance 10 pF
Cl Load capacitance 20 pF
PS4210-1099 Page 27 of 30
Advanced Hardware Architectures, Inc.
Figure 21: Power vs. VCLK Rate, Estimated for Modes 1 and 3
Figure 22: Max Ambient Temperature (Ta) vs. VCLK Rate, Estimated for Modes 1 and 3
Note: Curves represent 68 pin PLCC. For other packaging options, please contact AHA.
0.0 10.0 20.0 30.0 40.0 50.0 60.0 70.0
VCLK Frequency
0.0
100.0
200.0
300.0
400.0
500.0
I (mA @ 5.25v)
0.0 10.0 20.0 30.0 40.0 50.0 60.0 70.0
VCLK Frequency
50.0
55.0
60.0
65.0
70.0
75.0
80.0
Ambient Temperature
Air Flow = 225 LFPM
Page 28 of 30 PS4210-1099
Advanced Hardware Architectures, Inc.
7.0 PACKAGING
PLCC Dimensio ns Inches
(Millimeters)
Packaging
Complete Package Drawing Available Upon Request
AB
min/max C
min/max D
min/max E
min F
±G
±
.050
(1.27) .985/.995
(25.02/25.27) .950/.956
(24.13/24.28) .165/.200
(4.19/5.08) .020
(0.51) .002
(0.051) .0035
(0.089)
TM
AHA4210A-0 62 PJC
YYWWD-(COUNTRY OF ORIGIN)
LLLLL
A
CB
ED
Pin 1 Identification
F = Lead Planarity G = Lead Skew
Note: YYWWD = Data Code
LLLL L = Lot Number
PS4210-1099 Page 29 of 30
Advanced Hardware Architectures, Inc.
8.0 ORDERING INF ORMATION
8.1 AVAILABLE PARTS
8.2 PART NUMBERING
Device Number:
4210
Revision Letter:
A
Pa ckage Material Codes:
P Plastic
Package Type Codes:
J J - Leaded Chip Carrier
Test Specifications:
C Commercial 0°C to +70°C
9.0 AHA RELATED TECHNICAL PUBLICATIONS
PART NUMBER DESCRIPTION
AHA4210A-062 PJC Viterbi with Reed-Solomon Decoder
AHA 4210 A- 062 P J C
Manufacturer Device
Number Revision
Level Speed
Designation Package
Material Package
Type Test
Specification
DOCUMENT # DESCRIPTION
ABRS05 AHA Application Brief - Programming the AHA4210 for Non-DVB/DAVIC
Applications
ABSTD1 AHA Application Brief - Data Compression and Forward Error Correction
Standards
ANRS01 AHA Application Note - Primer: Reed-Solomon Error Correction Codes (ECC)
ANRS02 AHA Application Note - Reed-Solomon Interleaving for Burst Error Correction
ANRS06 AHA Applicat io n Note - Code Perf orma nce, Error Rat e Moni t ori ng and Processing
Delays Through the AHA4210
ANRS07 AHA Application Note - Soft Decision Thresholds and Effects on Viterbi
Performance
ANRS08 AHA Application Note - AHA4210 RSVP Synchronization Performance
ANRS09 AHA Application Note - Frequently Asked Questions and Answers about the
AHA4210 RSVP
ANRS10 AHA Application Note - AHA4210 Viterbi Decoder Low Code Rate Noise Floor
FECESW Concatenated FEC Encoder Software (RSVP)
GLGEN1 General Glossary of Terms
IEEEART Greg Zweigle, TJ Berge, Paul Winterrowd and Aziz Makhani, “A Viterbi,
Convolutional Interleave, and Reed-Solomon Decoder IC,” IEEE 1995
International Conference on Consumer Electronics
Page 30 of 30 PS4210-1099
Advanced Hardware Architectures, Inc.
10.0 OTHER TECHNICAL PUBLICATIONS
DOCUMENT
J.L. Ramsey, “Realization of Optimal Interleavers,” IEEE Transaction on
Information Theory, May 1970, pp. 338-345
Philips/Signetics, “The I2C Bus and How to Use It,” January 1992
Philips, “Specification IIC bus.” TVE 80134
Digital Video Broadcasting, DT/8622/DVB, “Implementation Guidelines for the
use of MPEG-II Systems, Video and Audio in Satellite and Cable Broadcasting
Applications in Europe,” May 26, 1994
Digital Video Broadcasting, DT/8610/III-B, “User Requirements for Digital
Broadcasting Systems by Satellite and Cable,” May 2, 1994