Applied Micro Circuits Corporation
6195 Lusk Blvd., San Diego, CA 92121 • (619) 450-9333 Page 1
E4 FRAMING
E4 FRAMING
APPLICATION NOTE
Figure 1. E4 Framing Block Diagram
E4 FRAMING CIRCUIT DESIGN
The S3005/S3006 parts can be used to implement
serializer/deserializer CMI encode/decode and the
clock synthesis/recovery functions for the CCITT
PDH E4 standard. In E4 (CMI) mode, however, the
framing of the 8-bit data bus is not performed in the
logic of the S3006. This application note explains
how this logic can be designed in the adjacent con-
troller device. The logic functions and frequency of
operation will allow the function to be implemented in
a FPGA device or a CMOS ASIC.
Framing Pattern
The E4 Frame Detect block decodes the
111110100000 pattern for compliance to the E4
standard.
General Design
The S3006 parallel output data is sampled in each of
eight possible alignments until the correct framing
pattern and sequence is seen. When the correct
framing pattern is detected by the E4 frame detect
block the 8:1 multiplexer selection is “frozen” and the
correctly framed data will be presented in the frame
register. This circuit will frame (assuming no bit er-
rors) in a single frame. Additional filter logic can be
15-Bit Input Register
MUX
Select
Logic
8-Bit Data Register
8:1 MX
Frame
Detect
8:1 MX
POCLK POUT
S3006
8
888
8Frame
Detect
added to look for 3 consecutive “correct” framing
patterns before declaring frame sync. In addition,
the frame detect logic should be monitored to verify
that correct framing sequences are being seen after
frame sync is achieved. If correct framing se-
quences are not detected then the frame search
logic should be enabled again.
The circuit as shown in Figure 1 consists of an input
register, eight 8:1 multiplexers, the multiplexer select
logic, and the E4 frame pattern detect logic. The
timing of the circuit is done using the S3006 POCLK
which is operating at 17 MHz. Data is clocked into
the input register from the POUT data lines of the
S3006. The data is then routed to the 8:1 multiplex-
ers which select the eight possible byte alignments.
The frame register contains the data to be examined
for correct frame alignment by the E4 frame detect
logic. The frame detect logic detects all of the pos-
sible byte alignments of the E4 framing pattern.
When the FA pattern is detected, the multiplexer se-
lection is then “frozen” and the additional ØX pattern
is checked before declaring frame sync. The de-
tailed circuit design and timing diagrams are shown
in Figures 2 and 3.
®
Applied Micro Circuits Corporation
6195 Lusk Blvd., San Diego, CA 92121 • (619) 450-9333
Page 2
E4 FRAMING
BLOCK DESCRIPTIONS
Input Register: 15-bit register which holds all the
possible positions of the unframed data. The bit
position of the data in this register is dependent on
the random alignment of the data outputs of the
S3006.
8:1 Multiplexers: These eight multiplexers select the
data alignment to be clocked into the data register.
Frame Detect: These are 8 wide decoders which
decode the 111110100000 E4 framing pattern. The
inputs are connected to each of the eight possible
locations of the framing pattern.
Multiplexer Select Logic: This block takes in the
results of all the decoder blocks and outputs the cor-
rect 8:1 multiplexer select values.
Data Register: This block contains the correctly
framed data after frame alignment has occurred.
Figure 2. Detailed Schematics of E4 Framing Circuit
Applied Micro Circuits Corporation
6195 Lusk Blvd., San Diego, CA 92121 • (619) 450-9333 Page 3
E4 FRAMING
Figure 2. Detailed Schematics of E4 Framing Circuit (Con’t.)
Figure 2. Detailed Schematics of E4 Framing Circuit (Con’t.)
Applied Micro Circuits Corporation
6195 Lusk Blvd., San Diego, CA 92121 • (619) 450-9333
Page 4
E4 FRAMING
AMCC is a registered trademark of Applied Micro Circuits Corporation.
Copyright ® 1995 Applied Micro Circuits Corporation
Printed in U.S.A./06-29-95
AMCC reserves the right to change specifications for this product in any manner without notice,
and substitute devices manufactured to higher grade levels than ordered.
Applied Micro Circuits Corporation
6195 Lusk Blvd., San Diego, CA 92121 • (619) 450-9333
Figure 2. Detailed Schematics of E4 Framing Circuit (Con’t.)
AA DA A7 D2 AA 55 AA FD D5 55 AA FA ØØ
Ø
AA
AA DA
37
A7 D2 55 4A B5 5F ØA AB 55 F4 Ø1
ØØAA
CLK
DATAIN(7:Ø)
DATA(14:Ø)
DATAOUT(7:Ø)
SEL(2:Ø)
FOUNDFA
FOUNDØ
HOLD
2ADA 5AA7 27D2 52AA 2A55 55AA 2AFD 7DØ5 Ø555 55AA 2AFA 7AØØ ØØAA 2AAA
55
Figure 3. Timing Diagrams for E4 Framing Circuit