•Complies with ITU G.804 recommendations for
performing cell mapping into T1 and E1
transmission systems
•Provides ATM framing using cell delineation
according to the ITU I.432 cell delineation
process
DS5065ISSUE 4December 1999
Ordering Information
MT90221AL208 Pin MQFP
-40°C to +85°C
•Provides Header Error Control (HEC)
verification and generation, error detection,
Filler cell filtering (IMA mode) and Idle/
Unassigned cell filtering (UNI mode)
•Provides statistics to support MIB
•Connects to popular asychronous SRAM
•Provides statistics on the number of HEC errors
•8 bit Microprocessor Interface, compatible with
Intel and Motorola
•3.3V operation / 5V tolerant inputs
•MQFP-208 pin
•JTAG Test support
Utopia
Level 2
BUS
Utopia
I/F CTRL
Utopia FiFo
Processor I/F
RX External Static RAM
4
.
.
.
.
1
4 x CD Circuit
4 x TC Circuit
4 Internal
IMA
Processors
Cell
Delineator
Transmission
Convergence
2.048 or
T1/E1
Framers
P/S
4
.
.
.
.
1
P/S
4 Serial PCM Ports
T1/E1
Framers
T1/E1
Framers
1.544 Mb/s
Figure 1 - MT90221 Block Diagram with Built-in IMA functions for 4 IMA Groups over up to 4 links
1
MT90221
Applications
•Cost effective single chip solution to implement
IMA and UNI links over T1 or E1 in all public or
private UNI, NNI and B-ICI applications
•ATM Edge switch IMA and UNI Line Card
Design
•Can be used for cost reduction in current
applications based on FPGA implementation
Description
The MT90221 device is targeted to systems
implementing the ATM FORUM UNI specifications for
T1/E1 rates or Inverse Multiplexing for ATM (IMA). In
the MT90221 architecture, up to 4 physical and
independent T1/E1 streams can be terminated
through the utilization of off-the-shelf, traditional T1/
E1 framers and LIUs. This allows ATM designers to
leverage previous T1/E1 design experience,
hardware and software implementation, and to select
the best T1/E1 framer for the required application.
The MT90221 device provides ATM system
designers with a flexible architecture when
implementing ATM access over existing and
deployed trunk interfaces, allowing a migration
towards ATM service technology. In addition to
allowing for the design of ATM UNI specifications for
T1/E1 rates, the MT90221 device is compliant with
the ATM FORUM IMA specifications for controlling
IMA groups of up to 4 trunks in a single chip. The
MT90221 can be configured to operate in different
modes to facilitate the implementation of the IMA
function at both CPE and Central Office sites. For
systems targeting ATM over T1/E1 with IMA and UNI
operating simultaneously, the MT90221 device
provides the ideal architecture and capabilities.
The device provides up to 4 internal IMA circuits and
allows for bandwidth scaleability through the use of
the UTOPIA MPHY, Level 2 specification at 25Mhz.
Hardware functions that are implemented in the
MT90221 device are:
•Utopia Level 2 PHY Interface
•Incoming HEC verification and correction
(optional),
•Generation of a new HEC byte
•Format outgoing bytes into multi-vendor PCM
formats
•Retrieve ATM Cells from the incoming multivendor PCM format
•Perform cell delineation
•Provide various counters to assist in
performance monitoring
Hardware functions that are implemented by the IMA
processor in the MT90221 device are:
•Transmit scheduler (one per IMA group)
•Generation of the TX IMA Data Cell Rate
•Generation and insertion of ICP cells, Filler
Cells and Stuff Cells in IMA mode and Idle Cells
in UNI (non-IMA) mode; the ICP cells are
programmed by the user and the Filler and Idle
cells are pre-defined
•Retrieve and process ICP cells in IMA Mode
•Perform IMA Frame synchronization
•Management of RX links to be part of the
internal re-sequencer when active
•Extraction of RX IMA Data Cell Rate
•Verification of delays between links
•Perform re-sequencing of ATM cells using
external asynchronous Static RAM
•Can accommodate more than 400 msec of link
differential delay depending on the amount of
external memory
•Provide structured Interrupt scheme to report
various events.
The implementation of the IMA as per AF-PHY-
0086.001 Inverse Multiplexing for ATM (IMA)
Specification Version 1.1 is divided into hardware
and software functions. Hardware functions are
implemented in the MT90221 device and software
functions are implemented by the user. Additional
hardware functions are included to assist in the
collection of statistical information to support MIB
implementation.
2.2 The ATM Transmission Convergence...................................................................................................... 10
2.2.1 TX Cell Ram and TX FIFO Length................................................................................................... 10
2.3 Parallel to Serial PCM Interface ............................................................................................................... 11
2.4 ATM Transmit Path in IMA Mode ............................................................................................................. 11
2.4.1 IMA Frame Length (M)..................................................................................................................... 11
2.4.2 Position of the ICP Cell in the IMA Frame........................................................................................ 11
2.4.10 TX IMA Group Start-Up.................................................................................................................... 14
2.4.11 TX Link Addition............................................................................................................................... 14
2.4.12 TX Link Deletion............................................................................................................................... 14
2.5 ATM Transmit Path in UNI Mode ............................................................................................................. 14
3.0 The ATM Receive Path................................................................................................................................. 15
3.1 Cell Delineation Function ......................................................................................................................... 15
3.2 De-Scrambling and ATM Cell Filtering..................................................................................................... 16
3.3 ATM Receive Path in IMA Mode .............................................................................................................. 16
3.3.10.5 Measured Delay Between Links................................................................................................ 21
3.3.10.6 Incrementing/Decrementing the Recombiner Delay ................................................................. 21
3.3.11 RX IMA Group Start-Up ...................................................................................................................22
3.3.12 Link Addition .................................................................................................................................... 22
3.3.13 Link Deletion.................................................................................................................................... 22
3.3.14 Disabling an IMA Group................................................................................................................... 22
3.4 The ATM Receive Path in UNI................................................................................................................. 22
4.0 Description of the PCM Interface................................................................................................................ 23
4.1 Serial to Parallel (S/P) and Parallel to Serial (P/S) Converters................................................................ 23
4.2 PCM System Interface Modes.................................................................................................................. 24
4.2.1 Mode 2 and 6: ST-BUS Interface for T1 .......................................................................................... 25
4.2.1.1 Detailed ST-BUS Spaced Mapping (3 of Every 4 Channels).................................................... 25
5.2 ATM Output Port ...................................................................................................................................... 31
5.3 UTOPIA Operation With a Single PHY..................................................................................................... 31
5.4 UTOPIA Operation with Multiple PHY...................................................................................................... 31
5.5 UTOPIA Operation in UNI Mode.............................................................................................................. 32
5.6 UTOPIA Operation in IMA Mode.............................................................................................................. 32
5.7 Examples of UTOPIA Operation Modes................................................................................................... 32
ii
MT90221
Table of Contents
6.0 Support Blocks............................................................................................................................................. 33
6.2.1 IRQ Master Status and IRQ Master Enable Registers..................................................................... 34
6.2.2 IRQ Link Status and IRQ Link Enable Registers.............................................................................. 34
6.2.2.1 Bit 7 and 6 of IRQ Link 0 Status and IRQ Link 0 Enable Registers .......................................... 35
6.2.3 IRQ Link UNI Overflow and IRQ UTOPIA Input UNI Overflow Status Registers............................. 36
6.2.4 IRQ IMA Group Overflow Status and Enable Registers................................................................... 36
6.2.5 IRQ IMA Overflow Status and RX UTOPIA IMA Group FIFO Overflow Enable Registers .............. 36
6.3 Register and Memory Map....................................................................................................................... 36
6.3.1 Access to the Various Registers...................................................................................................... 36
6.3.2 Direct Access................................................................................................................................... 37
6.3.5 Test Modes ...................................................................................................................................... 37
List of Changes..................................................................................................................................................100
List of Abbreviations and Acronyms...............................................................................................................102
Figure 28 - Setup and Hold Time Definition ......................................................................................................... 89
Figure 35 - JTAG Port Timing............................................................................................................................... 96
Figure 36 - System Clock and Reset.................................................................................................................... 97
Table 31 - TX Group Control Mode Registers..................................................................................................... 47
Table 32 - TX Link ID Registers .......................................................................................................................... 47
Table 35 - TX Link Control Registers ................................................................................................................... 48
Table 36 - TX IMA Control Registers................................................................................................................... 49
Table 37 - TX IMA Mode Status Register............................................................................................................ 49
Table 41 - RX Link Control Registers.................................................................................................................. 52
Table 43 - Loss of Delineation Register ............................................................................................................... 52
Table 44 - IMA Frame Delineation Register........................................................................................................ 53
Table 49 - RX Link IMA ID Registers................................................................................................................... 54
Table 97 - IRQ Link Status Registers.................................................................................................................. 73
Table 98 - IRQ Link Enable Registers................................................................................................................. 73
Table 99 - IRQ IMA Group Overflow Status Register.......................................................................................... 74
Table 100 - IRQ IMA Group Overflow Enable Register....................................................................................... 74
Table 101 - IRQ IMA Overflow Status Registers................................................................................................. 74
Table 102 - IRQ UTOPIA UNI Overflow Status Registers................................................................................... 75
Table 103 - IRQ Link UNI Overflow Status Registers.......................................................................................... 76
Table 104 - General Status Register................................................................................................................... 76
Table 105 - Test 1 Register................................................................................................................................. 76
Absolute Maximum Conditions .............................................................................................................................83
DC Electrical Characteristics.................................................................................................................................83
AC Electrical Characteristics - PCM PORT ST-BUS Interface Mode................................................................... 84
AC Electrical Characteristics - Generic PCM Interface Mode .............................................................................. 86
AC Electrical Characteristics - Utopia Interface Transmit Timing......................................................................... 88
AC Electrical Characteristics - Receive Timing.................................................................................................... 88
ATM Input Port Signals (UTOPIA Transmit Interface)
22, 23,
24, 25, 26,
27, 28, 29
21TxSOCIUTOPIA Transmit Start of Cell Signal. Active HIGH signal asserted by the ATM
TxData
[7:0]
IUTOPIA Transmit Data Bus. Byte-wide data driven from ATM LAYER device to
MT90221. Bit 7 is the MSB. All arriving data between the last byte of the previous
cell and the first byte of the following cell (indicated by the SOC signal) is ignored.
LAYER device when TxData[7:0] contains the first valid byte of the cell. After this
signal is high, the following 52 b ytes should contain v alid data. The MT90221 waits
for another TxSOC signal after reading a complete cell.
3
MT90221
Pin Description (continued)
Pin #NameI/ODescription
32TxClkIUTOPIA Transmit Clock. Transfer clock from the ATM Layer device to the
MT90221 which synchronizes data transfers on TxData[1:0]. This signal is the
clock of the incoming data. Data is sampled on the rising edge of this signal.
30TxEnbIUTOPIA Transmit Data Enable. Active LOW signal asserted by the ATM LAYER
device during cycles when TxData contains valid cell data.
20TxClavO UTOPIA Transmit Cell Available Indication Signal. For cell-le v el flo w control in a
MPHY environment, TxClav is an active high tri-stateab le signal from the MT90221
to the ATM LAYER device. A polled MT90221 drives TxClav only during each cycle
following one with its address on the TxAddr lines. The polled MT90221 asserts
TxClav high to indicate it can accept the transfer of a complete cell, otherwise it deasserts the signal.
34, 35, 36,
37, 38
205, 206,
207, 2, 3,
4, 5, 6
202RxSOCO UTOPIA Receive Start of Cell Signal. Activ e high asserted by the MT90221 when
15RxClkIUTOPIA Receive Byte Clock. This signal is the clock of the outgoing data. Data
17RxEnbIUTOPIA Receive Data Enable. Active LOW signal asserted by the ATM layer
203RxClavO UTOPIA Receive Cell Available Indication Signal. For cell-level flow control in a
TxAddr
[4:0]
RxData
[7:0]
ITransmit Address.Five bit wide true data driven from the ATM to the PHY layer to
poll and select the appropriate MT90221. TxAddr[4] is the MSB. Each MT90221
keeps its addresses. The value for the Tx and Rx portions of the MT90221 can be
different
ATM Output Port Signals (UTOPIA Receive Interface) (see Note 1)
O UTOPIA Receive Data Bus. Byte-wide data driven from MT90221 to ATM layer
device. RxData[1] is the MSB. To support multiple PHY configurations, RxData is
tri-stateable, enabled only in cycles following those with RxEnb asserted.
RxData contains the first valid byte of a cell. To support multiple PHY
configurations, RxSOC is tri-stateable, enabled only in cycles following those with
RxEnb asserted.
changes after the rising edge of this signal. The RxClk needs to be synchronized
with the system clock.
device to indicate that RxData[3:0] and RxSOC will be sampled at the end of the
next cycle. In multiple PHY configurations, RxEnb* is used to tri-state RxData and
RxSOC MT90221 outputs. In that case, RxData and RxSOC would be enabled only
in cycles following those with RxEnb asserted.
MPHY environment, RxClav is an active high tri-stateab le signal from the MT90221
to ATM LAYER device. A polled MT90221 drives RxClav only during each cycle
following one with its address on the TxAddr lines. The polled MT90221 asserts
RxClav high to indicate it has a complete cell av ailable f or transf er to the ATM Lay er
device, otherwise it de-asserts the signal. This signal indicates cycles when there is
valid information on RxData / RxSOC.
9, 10, 11,
12, 13
188, 189,
190, 191,
192, 195,
196,197
4
RxAddr
[4:0]
sr_d
[7:0]
IReceive Address. Five bit wide true data driven from the ATM to PHY layer to
select the appropriate MT90221. RxAddr[4] is the MSB. Each MT90221 keeps its
address. The value for the Tx and Rx portions of the MT90221 can be different.
Receiver Static Memory Interface Signals (see Note 1)
I/O Static Memory Data Bus. Data Bus to exchange data between the MT90221 and
186
187sr_weOStatic Memory Read/Not Write. If low, data is written from the MT90221 to the
198, 199sr_cs_1, 0OStatic Memory Chip Control Signal.
44, 45, 46,
47, 48, 49,
50, 51
55, 56, 57,
58, 59, 60,
61, 62, 63,
64, 65
41up_r/w
sr_a
[18:0]
up_d
[7:0]
up_a
[10:0]
or
up_wr
O Static Memory Address Bus. The signal is used to select an entry in the external
static memory.
memory. If high, data is read from the memory to the MT90221.
Processor Interface Signals (see Note 2)
I/O Processor Data Bus. Data Bus to exchange data between the MT90221 and a
local processor.
IProcessor Address Bus. They are used to select the internal registers and
memory positions of the MT90221.
IProcessor Read/Not Write. Motorola Mode. This is an input signal. If low, data is
written from the processor to the MT90221. If high, data is read from the MT90221
to the processor.
Processor Not Write (Intel Mode). This is an input signal. If low, data is written
from the processor to the MT90221. De-asserting this signal to high will terminate a
write cycle.
40up_oe
or
up_rd
39up_csIProcessor Chip Select. This is an active low input signal. If this signal is high, the
67up_irqO Processor Interrupt Request. If this signal is low, the MT90221 signals to the
99,107,
109,116
136, 143,
145, 151
DSTo
[3:0]
DSTi
[3:0]
IOutput enable Motorola Mode. This is an input signal. This signal should be tied
to GND for Motorola timing mode.
Processor Not Read (Intel Mode). This is an input signal. If low, data is read from
the MT90221.
MT90221 ignores all other signals on its processor bus. If this signal is low, the
MT90221 accepts the signals on its processor bus. De-asserting this signal to high
will terminate an access cycle.
processor that an interrupt condition is pending inside the MT90221. Otherwise no
interrupt is pending inside the MT90221. Open drain signal.
PCM Interface Signals
O Serial PCM Data Output 3-0. A 1.544 Mbit/s or 2.048 Mbps serial stream which
contain 24 (T1) or 32 (E1) PCM or data channels received on T1 or E1 line. The
output is set to high impedance for unused channels and if the link is not used.
ISerial PCM Data Input 3-0. A 1.544 Mbit/s or 2.048 Mbps serial stream which
contains the 24 (T1) or 32 (E1) PCM or data channels on T1 or E1 line.
5
MT90221
Pin Description (continued)
Pin #NameI/ODescription
101, 103,
111, 113
98, 106,
108, 115
135, 142,
144, 150
TXCKi/o
[3:0]
TXSYNCio
[3:0]
RXSYNCi
[3:0]
I/O PCM Interface Transmit Clock 3-0.This pin is an input for PCM Modes 2, 4, 5 and
7. It is an output for Interface Modes 1, 3, 6 and 8 (see Section 4.2, PCM System
Interface Modes).
It is the clock for serial PCM data transmission of the T1 and E1 framers . The TXCK
source is software selectable and can be either one of the eight RXCK or one of the
four REFCK signals. It is used f or internal transmit timing and should be connected
to the Transmit Clock of the framer.
1. The TXCK is 4.096 MHz for ST-BUS applications.
2. For generic PCM Interfaces (non ST-BUS or asynchronous line termination),
these outputs can be programmed to provide either a 1.544 MHz (T1) or 2.048
MHz (T1 or E1) clock.
I/O Transmit Line 8KHz Frame Pulse 3-0. This pin is an input for Interface Modes 2,
4, 5 and 7. It is an output for Interface Modes 1, 3, 6 and 8 (see PCM Section 4.2,
PCM System Interface Modes).
It is the 8 kHz reference used as transmit synchronization for the PCM system
interface. When an output, the TXSYNC is generated from the TXCK signal and is
independent from other TXSYNC signals. Two output modes can be programmed:
1. For ST-BUS applications, it is a low going pulse (F0), that delimits the 32 channel
frame of the ST-BUS interface at DSTi and DSTo lines (see Figure 25 - ST-BUS
Timing Diagram for this sync pulse). The frame pulse is typically received through
the RXSYNC[0] pin.
2. For generic PCM Interfaces, it can be programmed to generate either a positive
or negative pulse polarity that lines up with the first bit of the PCM system interface.
IReceive line 8KHz Frame Pulse 3-0. This signal represents the 8 KHz reference
received from the incoming T1 or E1 line. The MT90221 can be programmed to
accept different 8 KHz pulse formats at this input.
1. For ST-BUS applications, it is a low going pulse (F0), which delimits the 32
channel frame of ST-BUS interface at DSTi and DSTo lines. See STBUS timing
diagram for this sync pulse.
2. For generic PCM Interfaces, it can be programmed to accept either positive or
negative pulse polarities.
138, 140,
146, 148
154, 155PLLREF
158, 159,
160, 161
80, 83 85,
87, 89, 92,
94 96,
117,118,
124, 125,
126, 127,
133, 134
6
RXCKi
[3:0]
[1:0]
REFCK
[3:0]
NCNo Connect. Suggest using external pull-up to reduce noise.
IPCM Interface Receive Clock 3-0. This input line represents the clock for the
receive serial PCM data of the T1 and E1 framers. The T1 or E1 frequency value to
be received at this input clock is defined by the user through an internal register.
1. For ST-BUS applications, input pin RXCKi receives the 4.096 MHz signal.
2. For generic PCM Interfaces, these inputs can be prog r ammed to accept either a
1.544 MHz (T1) or 2.048 MHz (T1 or E1) clock.
O Output reference to an external PLL. See 4.3 Description of the PCM Interface
for details.
IInput reference clock inputs 3 to 0. Receive the de-jittered transmit clock
reference to be internally routed to the T1/E1 framer transmit clocks (output pins
TXCK[3:0]. See “Description of the PCM Interface” on page 23. for more details.
Pin Description (continued)
Pin #NameI/ODescription
MT90221
81, 88, 90,
97, 120,
122, 129,
131
74ClkISystem Clock (25 MHz nominal). In the MT90221, this clock is used for all
76Test1ITest1. This signal should be pulled up for normal operation.
54ResetISystem Reset. This is an active low input signal. It causes the device to enter the
72TCKIJTAG Test Clock. It should be pulled down if not used
71TMSIJTAG Test Mode Select. TMS is sampled on the rising edge of TCK. TMS has an
70TDIIJTAG Test Data Input.
68TDOO JTAG Test Data Output. Note: TDO is tristated by TMS pin.
69TRSTITAG Test Reset (active low). Should be asserted LOW on power-up and during
77Test2ITest2. It should be pulled down for normal operation.
NCNo Connect. Can be left unconnected.
System Signals
internal operations of the device.
initial state. The Clk signal must be active to reset the internal registers.
internal pull- up resistor.
reset. Must be HIGH for JTAG boundary-scan operation. Note: This pin has an
internal pull-down.
153Test3ITest3. It should be pulled down for normal operation.
152Test4ITest4. It should be pulled up for normal operation. NOT 5V TOLERANT
Notes:
1.Static memory stores the received cells. RAM is used for reordering the cells
2.These signals are used to transfer data between the MT90221 and the local processor
Pinout Summary
TypeInputOutputI/ON.C.PowerGround
TX UTOPIA161
RX UTOPIA710
Microprocessor Interface1418
External Memory Interface228
TX PCM Interface48
RX PCM Interface12
PLL Interface42
Miscellaneous101
No Connect24
Power25
Ground31
Total
208
634124242531
7
MT90221
1.0Device Architecture
The MT90221, supported by software, implements
the ATM Forum Inverse Multiplexing for
Asynchronous Transfer Mode (IMA) Specification.
This approach minimizes the impact of any changes
that might occur in the specification. Actions are
implemented by the MT90221 and decisions by the
software.
The MT90221 supports the following two major
modes of operation:
•the IMA mode (as defined by the ATM Forum
IMA Specification)
•the User Network Interface (UNI) mode
Up to four IMA Groups can be implemented. Any of
the four PCM Interfaces can be assigned
dynamically to any of these IMA Groups. A different
UTOPIA PHY address is assigned to each of the IMA
Groups.
The UNI mode is used to transfer the cells from the
UTOPIA Interface to a PCM port without any
overhead. Up to 4 UTOPIA PHY addresses can be
supported in UNI mode.
The MT90221 also supports a mixed mode where
the PCM Interfaces not assigned to an IMA Group
can be used in UNI mode.
The IMA implementation is divided into hardware
and software functions. The MT90221 implements
the hardware functions. The software functions are
implemented by the user. The hardware and
software functions are described below. Notice that a
number of MT90221 functions are included to assist
in the collection of statistical information. This
information supports the MIB implementation.
1.1Software Functions
For the MT90221 to comply with the IMA
specification, the following functions must be
implemented by software:
•the transmit and receive Link State Machines
(LSM)
•the IMA Group State Machines (GSM)
•the IMA Group Traffic State Machines (GTSM)
•the Operations and Maintenance (OAM)
functions
1.1.1Link State Machines
The software implemented transmit and receive
LSMs are independent (i.e., each link has its own
LSM). LSMs rely on various events from the
MT90221 interface, such as cell errors, excessive
delay between-links, etc.; or, from the T1 or E1
framer, such as Loss Of Signal (LOS), Loss Of
Frame (LOF), Remote Alarm Indication (RAI) etc.
On-chip registers are used to generate the ICP cells
that communicate the LSM states to the Far End
(FE).
1.1.2IMA Group State Machines
The IMA GSMs and Group Traffic State Machines
(GTSM) must be implemented in software. One of
each state machine should be implemented for each
IMA Group.
On-chip registers are used to generate the ICP cells
that communicate the various states to the FE.
1.1.3Link Addition, Removal or Restoration
The addition, removal or restoration of a link is
controlled by software using the various control
registers in the MT90221 and in the T1 or E1
framers. Decisions are based on the MT90221 and
T1 or E1 framers status registers.
1.1.4Interrupt
The MT90221 provides numerous registers and
counters to implement a polling and/or interrupt
mechanism for tracking link and IMA Group status.
This traffic in and out information is used by the
Management Information Base (MIB) for each IMA
Group.
1.1.5Signaling and Rate Adjustment
The microprocessor controls the operation of the T1
or E1 link by providing handshaking between the FE
and Near Ends (NE) including such functions as
signaling and loopback controls. Rate adjustment is
controlled by:
•adding or removing one or more T1 or E1 links
•providing feedback to the ATM network for adjusting the ATM traffic.
1.1.6Performance Monitoring
Software implements most of the performance
monitoring. The MT90221 provides status
information for:
•the Cell Delineation Block and IMA Fr ame State
Machine
•the number of ICP violations
•the total number of cells
•the number of idle or discarded cells.
8
MT90221
It also provides the content for received ICP cells
that contain some changes. The external T1 or E1
framers provide the low level status of the link. The
software integrates and responds to the various
events.
1.2Hardware Functions
The MT90221 circuitry implements the following
functions:
•UTOPIA L2 Interface
•verification of the incoming HEC (optional)
•generation of a new HEC byte
•transmit scheduler
•generation of the TX IMA Data Cell Rate (IDCR)
•generation and insertion of ICP cells, Filler
Cells and Stuff Cells in IMA mode
•generation of Idle Cells in UNI mode (from onchip copies of the cells)
•flexible PCM formatting of the outgoing bytes
•retrieval of ATM Cells from the incoming PCM
format
•cell delineation
•retrieval and processing of ICP cells
•synchronization of the IMA Frame
•management of the internal re-sequencer RX
links (when active)
•extraction of the RX IDCR
•verification of the delays between-links
•re-sequencing of ATM cells using external
Static RAM
•various performance monitoring counters
•8-bit microprocessor interface (adaptable to
Intel or Motorola interfaces)
The MT90221 can be separated into four major
independent blocks and three support blocks.
The four major independent blocks are:
•the ATM Transmit Path
•the ATM Receive Path
•the PCM Interface
•the UTOPIA Interface
The three support blocks are:
•the Counter Block
•the Interrupt Block
•the Microprocessor Interface Block
2.0The ATM Transmit Path
The transmit path corresponds to a cell flow from the
ATM Layer towards the T1/E1 interface. The ATM cell
path on the transmit side starts at the UTOPIA L2
Interface. Once ATM cells are received at the
UTOPIA port, the device transfers these cells to the
transmit block.
The MT90221 provides ATM cell mapping and
transmission convergence blocks to transport ATM
cell payloads over four flexible PCM Interface ports.
It uses these PCM Interface ports to communicate
with most off-the-shelf T1 or E1 framers.
Each of the four T1/E1 links can be assigned to
either an IMA Group or to an UNI link. A single T1/E1
link cannot be assigned to more than one IMA
Group.
The functional block diagram at Figure 3 illustrates
the transmit function of the MT90221.
2.1Cell_In_Control
In general terms, the MT90221 transmit input port
has the following properties:
•cell level handshaking complies with the ATM
Forum UTOPIA L2 Specification
•behaves like a UTOPIA MPHY Device
•each port can be enabled or disabled
independently
•generates and optionally verifies the HEC for
incoming cells
•includes the ATM Forum polynomial when
generating the HEC (default option that can be
disabled)
•either passes or removes incoming Idle cells
•either passes or removes incoming Unassigned
cells
•provides a counter per UTOPIA port for the total
number of Idle and Unassigned cells (24 bits)
•provides a counter per UTOPIA port for the total
number of cells with wrong incoming HEC (24
bits)
•provides a counter per UTOPIA port for the total
number of cells handled (24 bits)
The input port can be enabled to remove (filter)
Unassigned or Idle cells. If Unassigned or Idle Cell
Filtering is enabled, the device checks for and
discards Unassigned or Idle cells. This function is
programmed in the UTOPIA Input Control register.
9
MT90221
ATM In
UTOPIA L2 Interface
Cell_In_Control
from IDCR Generator
Transmitter
Cell RAM
FIFO Link 0
(see Note 1)
FIFO Link 1
(see Note 1)
FIFO Link 3
(see Note 1)
TX Utopia FIFO
Group 0
TX Utopia FIFO
Group 3
Filler Cell
Idle Cell
ICP Cell Group 1
ICP Cell Group 2
ICP Cell Group 3
ICP Cell Group 4
ICP Cell Buffer RAM
Next ICP Cell Group 1
ICP Cell Modifier and
Cell Scrambling
ICP Cell Modifier and
Cell Scrambling
ICP Cell Modifier and
Cell Scrambling
Round Robin Scheduler
and FIFO Selection
and Adaptive Shaper
(1 of 4)
to Cell_In_Control
ICP Cell Handler
P/S
P/S
P/S
IDCR Generator
(1 of 4)
Transmitter
Reference
Link Timing
Serial
Streams
Link 0
Link 1
Link 3
Micro I/F
Next ICP Cell Group 2
Next ICP Cell Group 3
Next ICP Cell Group 4
Figure 3 - Functional Block Diagram -Transmitter in IMA Mode
Section 5 describes the UTOPIA Interface in more
detail.
2.2The ATM Transmission Convergence
The Transmit Convergence (TC) function is common
for both the IMA and UNI modes. It integrates the
circuitry to support ATM cell payload scrambling,
HEC generation and the generation of Idle/Filler/ICP
cells for use with the T1 and/or E1 trunks. Each of
the four MT90221 ATM TC circuits can use the
polynomial X43 + 1 to scramble the ATM cell payload
field. The MT90221 ATM cell payload scrambling
function can be disabled.
The ITU I.432 polynomial X8 + X2 + X + 1 is used to
generate the HEC field of the ATM cell. By default,
the ATM Forum polynomial X6 + X4 + X2 + 1 is added
to the calculated HEC octet. The addition of the ATM
Forum polynomial can be disabled.
Note 1: This FIFO is the
TX UTOPIA FIFO when
the link is configured in
UNI Mode and it is the
TX LINK FIFO when it is
configured in IMA Mode.
The resulting calculation is then over-written on the
HEC field and the ATM cell is ready (i.e., complies
with the IMA transmit protocol) for transmission over
the PCM Interface.
In cases where the TC block requests a cell to be
transferred to any of the PCM Interfaces and the TX
UTOPIA FIFO has no cell ready for transmission,
then the TC block will automatically send an IDLE
cell (in UNI) or a Filler cell (in IMA mode) to the line.
The default values for the Idle and the Filler cells
comply with the ATM IMA Specification and are preloaded in the MT90221 following a reset. The TXCell RAM Control register can be used to reinitialize the TX Cell RAM.
2.2.1TX Cell Ram and TX FIFO Length
The internal TX Cell Ram can hold up to 64 cells.
The following six cells are reserved for MT90221
operation:
•one ICP cell for each IMA Group for a total of
four cells
10
MT90221
•one common Filler Cell used in IMA mode
•one Idle Cell used in UNI mode
The remaining 58 cells can be assigned to any of the
12 TX FIFOs. The TX FIFOs are divided in 8 TX
UTOPIA FIFOs and 4 TX Link FIFOs.The MT90221
implements one TX UTOPIA FIFO for each link when
used in UNI and one for each IMA Group for a total of
8 TX UTOPIA FIFOs. Each TX UTOPIA FIFO is
associated with one TX UTOPIA Address. Please
refer to the paragraph 5.0 UTOPIA Interface
Operation for more details.
In addition, for each link to be used in IMA mode, an
internal TX Link FIFO is utilized. These TX Link
FIFOs are holding the cell streams that are to be
sent on each TX serial port. There is a total of 4 TX
Link FIFOs and their size is programmed on a per
group basis using the TX IMA Control register.
When a link is used in UNI mode, its corresponding
TX Link FIFO is disabled and the TX UTOPIA FIFO
is used.
TX UTOPIA FIFO Length Definition registers are
used to set the TX UTOPIA FIFO size . A maxim um of
15 cells can be assigned to any single FIFO. The
size of unused TX UTOPIA FIFOs should be set to
zero. The recommended size for the IMA Group TX
UTOPIA FIFO is 1.
2.3Parallel to Serial PCM Interface
ATM cell octet byte alignment conforms to ITU G.804
recommendations for T1 or E1 framer parallel to
serial format conversion.
The TX PCM Control and RX PCM Control
registers are used to select the T1 or E1 mode of
operation. Refer to Section 4, Description of the
PCM Interface, for more details.
2.4ATM Transmit Path in IMA Mode
The MT90221 supports up to four independent IMA
Groups. Each of the four T1/E1 trunks can be
assigned to any one of these IMA Groups. A T1/E1
trunk cannot be assigned to more than one IMA
Group. Refer to Figure 3 for a functional block
diagram of the transmitter.
The IMA transmitter splits the incoming stream into N
sub-streams, where 1 ≤ N ≤ 4. Each sub-stream is
passed to a separate line interface device that
transmits the cells on a physical link.
The physical line rate is either 1.544 Mbps (T1) or
2.048 Mbps (E1). The transmitter inserts so-called
ICP cells in the various outgoing streams according
to the IMA specification. The ICP cells are inserted
every M ATM cells on each link. This is the task of
the scheduler.
In IMA Mode, the ATM User Cells are first placed in
the IMA TX UTOPIA FIFO and then transferred, by
the internal round robin scheduler, to the proper TX
Link FIFO. The TX UTOPIA FIFO length for each link
configured in IMA mode should be set to zero.
The TX IMA Control registers are used to set the
size of the internal TX Link FIFO. An upper and lower
level limit must be set for the internal TX Link FIFO.
In UNI Mode, the ATM User Cells are queued in the
TX UTOPIA FIFO until sent over the T1/E1 link.
The recommended upper limit value for the internal
TX Link FIFO is five and the recommended lower
limit is one when operating in ITC clocking mode.
When operating in CTC mode, the recommended
upper limit value for the internal TX Link FIFO is six
and the recommended lower limit is one. In the case
where CTC mode is used and when the ICP cells on
all the links are sent with the same ICP cell offset
and when carrying a CBR-type traffic, an upper value
of 7 may be required.
2.4.1IMA Frame Length (M)
The IMA frame length (value of M) can be 256, 128,
64, or 32. The value of M for each IMA Group is set
by the TX Group Control Mode registers. M is fixed
once an IMA Group is setup and should remain
unchanged so long as that group is operational.
2.4.2Position of the ICP Cell in the IMA Frame
The TX ICP Cell Offset registers control the position
of the ICP cell in the IMA frame for each link. This
parameter should remain unchanged so long as that
group is operational.
2.4.3Transmit Clock Operation
The MT90221 supports both the Common Transmit
Clock (CTC) and Independent Transmit Clock (ITC)
modes of operation. The desired mode is specified
by writing to the TX Group Control Mode register. A
reference link must be specified in the TX GroupControl Mode register. The MT90221 introduces a
Stuff cell on the reference link every 2048 cells and
determines the appropriate time to inser t a Stuff cell
on the remaining group links. See paragraph 2.4.4,
Stuff Cell Rate, for more details.
11
MT90221
The clocking mode and reference link are fixed once
an IMA Group is setup and should remain
unchanged so long as that group is operational. The
reference link should not change unless problems
are reported with the link.
2.4.4Stuff Cell Rate
The Stuff event algorithm differs between CTC and
ITC modes. In CTC mode, the Stuff event is typically
fixed and appears in the same IMA frame on all IMA
Group links. In ITC mode, the Stuff event is
determined using an adaptive algorithm that relates
the level of the internal TX Link FIFO to that of the
TX link FIFO of the Reference link.
The MT90221 implements 2 different stuffing
algorithms: a fixed stuffing rate and an adaptive
stuffing rate. The Stuffing events do not happen
more frequently than once every five IMA frames.
TX Group Control Mode register bit 3 selects either
the adaptive or fixed algorithm. Bit 4 determines the
timing mode declared in the ICP cell.
There are three possible combinations:
•CTC Mode with internal Fixed algorithm
•CTC Mode with internal Adaptive algorithm
•ITC Mode with internal Adaptive algorithm
In CTC mode, when using the Fixed algorithm, the
Stuff event is periodic and will appear in the same
IMA frame, once every 2048 cells, on each link that
is part of the IMA Group.
In CTC mode, when using the Adaptive algorithm,
the Stuff event will occur at an average rate of once
every 2048 cells on each link and may not occur in
the same IMA Frame on all the links.
In ITC mode, the Stuff event is determined using the
adaptive algorithm that relates the level of the
internal TX Link FIFO with that of the TX Link FIFO
of the Reference link. The reference link has one
Stuff event every 2048 cells.
Integration register and the value is indicated in
Table 1
Preferred Value
PCM Mode
T1 ISDN (23 channels)0x09 (216 clocks)
T1 (24 channels)0x0B (218 clocks)
E1 (30 channels)0x0C (219 clocks)
Table 1 - IDCR Integration Register Value
2.4.6IMA Controller (RoundRobin Scheduler)
The IMA controller produces the cell stream to be
sent to the PCM blocks using the following four cell
types:
•Data cells received from the UTOPIA port (User
cells)
•Filler cells
•IMA ICP cells with Link status information
•Stuff cells
At an IDCR clock tick, the RoundRobin scheduler
inserts either an ICP cell, a User cell or a Filler cell
into the TX Link FIFO of the next link of the IMA
group, based on ascending link ID numbers. An ICP
cell is inserted every M cells and a stuff event is
inserted when indicated by the stuffing algorithm.
If it is not time for an ICP cell and if the traffic is not
enabled for the link (see bit 6 of the TX Link Control
register), then a Filler cell is inserted in the TX Link
FIFO. If the traffic is enabled and there is a User cell
in the TX Utopia FIFO, then the User cell is
transferred from the TX UTOPIA FIFO to the TX Link
FIFO. If there is no User cell in the TX UTOPIA FIFO,
then a Filler cell is inserted in the TX Link FIFO.
2.4.7ICP Cell Generator
Once per IMA frame, an ICP cell is transmitted on
each link of the IMA Group. The content of the ICP
cell is controlled both by MT90221 and software. The
software content of the ICP cell bytes is stored in
buffer RAM. A copy of the ICP cell for each group is
kept in the internal Transmitter Cell RAM.
TX IDCR Integration
register
The state of bit seven in the TX IMA Control register
determines whether a Stuff indication is generated in
the first or first four frames preceding a Stuff event.
2.4.5IMA Data Cell Rate
The MT90221 computes the internal TX IMA Data
Cell Rate (IDCR) for each IMA Group. The cell rate
for the IMA Group reference link, specified in the TXGroup Control Mode register, is integrated over a
programmable period of time. The preferred
integration period is programmed in the TX IDCR
12
The ICP cell to be transmitted on each link is
assembled on an as required basis under the control
of the internal RoundRobin scheduler and ICP Cell
Modifier.
Hardware controls the following bytes of the ICP cell:
•Byte 5 - the HEC is always calculated and
inserted by the MT90221
•Byte 6 - the TX OAM Label is defined by the
software and the value contained in this
MT90221
ByteDescriptionControl Source
1-5ICP Cell HeaderContent of Header is under S/W control. The HEC is calculated by H/W.
6OAM labelS/W control
7Cell ID, Link IDThe Link ID is programmed through other registers and inserted by H/W
8IMA Frame SequenceHardware Control
9ICP Cell OffsetH/W Control. (Programmed by S/W through other registers)
10Link Stuff IndicationH/W Control
11Status Change Indic.H/W Control
12IMA IDS/W Control
13Group Status and ControlS/W Control except for value of M
14Sync. Info.H/W Control (Programmed by S/W through other registers)
15Test ControlS/W Control
16TX Test PatternS/W Control
17RX Test PatternS/W Control
18-49Link Status and ControlS/W Control
50UnusedS/W Control
51End-to-End ChannelS/W Control
52-53CRC Error ControlH/W Calculation
Table 2 - ICP Cell Description
location is transmitted in all ICP cells, Stuff
Cells and Filler cells sent on all the links that
are part of the corresponding TX IMA group
•Byte 7 - the TX Link ID register is used to set
the Link Logical ID and the cell type is
determined by the internal controller on a per
link basis
•Byte 8 - the frame sequence number is
controlled by an internal counter
•Byte 9 - the TX ICP Cell Offset register is used
to set the value. This value is inserted on a per
link basis
•Byte 10 - the link Stuff indication is inserted
automatically and the advance indication option
is programmed by the TX IMA Control register
on a per link basis
•Byte 11 - the SCCI is controlled by internal
circuitry. The SCCI is incremented by one for
each transfer of the TX ICP cell from the buffer
area to the TX Cell RAM.
•Byte 13 - the value of M is programmed through
the TX Group Control Mode register
•Byte 14 - the TX Group Control Mode register
is used to set the Transmit Timing Information
and define the reference link
•Bytes 52 and 53 - the calculated CRC-10 Error
Control bits are inserted automatically
Software controls all remaining bytes of the ICP
cells. It also maintains and updates all bytes that are
not directly controlled by the MT90221. A dedicated
address is reserved for each ICP cell byte for each of
the four IMA Groups. This permits direct access to
any of the bytes stored in each of the four ICP Cell
registers. Refer to Table 2, ICP Cell Description, for
details on the ICP cell byte contents.
To avoid updating or corruption problems, the
internal copy of the ICP Cell cannot be directly
accessed. ICP cells are prepared in a buffer area
(RAM inside the MT90221) and transfer commands
are issued to copy the content of the ICP cell into the
internal Cell RAM area and to start using this new
ICP cell. The MT90221 uses a flag (status bit) to
indicate that this transfer is underway. Changes
should not be made to the content of the ICP cell in
the buffer area until the transfer to the internal
memory is complete. The status bit is cleared during
the transfer and returns to ’1’ on completion of the
transfer. IMA Groups are controlled independently.
When access to the ICP cell of one group is
prohibited, the other ICP cell buffer areas can still be
updated. The TX ICP Cell Handler and TX ICPInterrupt Enable registers are used to initiate a
transfer and enable an optional interrupt to indicate
when the process is complete.
13
MT90221
The SCCI field is incremented by one for each
transfer command performed which includes a
change in at least one byte of the ICP cell.
2.4.8IMA Frame Programmable Interrupt
An optional interrupt is provided at the end of an IMA
frame to simplify software implemented changes in
the Group Control and Status field. This interrupt can
be enabled on an as required and per group basis to
implement a frame counter. The TX ICP CellHandler and TX ICP Interrupt Enable registers are
used for the transfer ready and frame interrupt.
2.4.9Filler Cell Definition
The content of the Filler cell is pre-initialized and
conforms with the IMA Specification.
2.4.10 TX IMA Group Start-Up
Initialize the TX IMA Group start-up as follows:
(Note: The startup procedure below is given
indicating the most important steps. A more detailed
and complete sequence can be found in the
MT90220/221 Programmer’s Manual and example
code)
•Configure the TX PCM port(s) by writing to the
TX PCM Link Control register 1 and 2.
•Write the value of M, the Timing Mode and the
reference link number to the TX Group Control
register corresponding to the IMA Group
number to be initialized.
•Write the Link ID (LID is between 0-31) to TXLink ID registers for each link to be used in the
IMA Group. LID should not be changed when a
group is operational. Ensure each link that is
part of an IMA group has a unique LID (note
that the MT90221 does not verify LIDs).
•Write the ICP Cell Offset value to TX ICP CellOffset registers. This value depends on the
value of M. Typically , the ref erence link will ha v e
a delay of 0 cells in the IMA Frame and the ICP
cell in each other link will be evenly spaced in a
multiple of M/N cells (where M is defined in the
IMA specification and N is the number of links).
The offset value for an operational g roup should
not be changed.
•Write to the TX Link Control registers to put
the link(s) in IMA mode and to enable the
transfer of ATM User Cells when required.
2.4.11 TX Link Addition
The MT90221 supports software controlled link
addition to the existing IMA group. Link addition is
used to increase the available bandwidth. The TXPCM Link Control register 1 and 2, the TX Link ID
and TX ICP Cell Offset registers are initialized first
with the proper IMA Group information. The link is
assigned to a TX IMA group by writing to the lower 2
bits of the TX Link Control register. The bit 3, 1 and
0 of the Test 2 register have to be written with the
proper value. The link is then configured in IMA
mode by writing to the bit 2 of the TX Link Control
register. The TX IMA Mode Status register is
monitored to detect when the link is reported in IMA
mode. When the link is in IMA mode, then the bit 3, 1
and 0 of the Test 2 register are reset to 0. TX LinkControl register bit 6 determines when ATM User
cells can be sent. Note that the Test 2 register
cannot be used as a read/modify/write register. The
values that are written and the values that are read
are independant. Note also that the bit 6 of the Test
2 register shulld always be set to 1.
2.4.12 TX Link Deletion
There are two reasons to remove a link: the required
bandwidth decreases or a link becomes faulty. The
MT90221 supports link deactivation under software
control.
A link stops transmitting User cells when bit 6 of the
TX Link Control register is set to 0. Filler and ICP
cells will still be sent on the link. The link is removed
from an IMA group by first setting the bit 2 of the TX
Link Control register to 1 while keeping the original
IMA group number. The IMA group number can be
changed only when the link is reported in UNI mode
as reported in the TX IMA Mode Status register. It
then can be assigned to another IMA group.
When removing the last link of a TX IMA group, the
TX Utopia FIFO has to be empty. This can easily be
done by first disabling the source of ATM cells (ATM
Utopia contoller), then disabling the TX Utopia Port
using the UTOPIA Input Link or Group PHY Enable
registers while still keeping the “Send User Cell” bit
of the TX Link Control register set to 1. After a period
of time corresponding to “n” IDCR clock tick has
elapsed, then the above procedure can be applied to
assign the link in UNI mode.” The value of “n”
depends on the size of the TX Utopia FIFO as
defined in the TX FIFO Length Definition registers.
The level of the TX Utopia FIFO can be monitored
using TX Utopia FIFO Level register. Then, the
above procedure can be applied to assign the link in
UNI mode.
2.5ATM Transmit Path in UNI Mode
A maximum of four independent T1/E1 interfaces
can be selected in UNI mode. Figure 4 gives a
functional block diagram of the transmitter in UNI
mode.
14
ATM In
Transmitter
Cell RAM
Cell_In_Control
Output Controller and
Cell Distribution
Tx Link [N] FIFO
P/S
Figure 4 - Functional Block Diagram of the Transmitter in UNI Mode
(For Link[N] where 1 ≤ N ≤ 4)
MT90221
Serial
Streams
Link [N]
ATM cells received from the ATM port are placed in a
TX UTOPIA FIFO, waiting to be transmitted. If the
Idle/Unassigned cell removal option is selected,
these cells are dropped. If the TX UTOPIA FIFO is
empty, an Idle cell is sent to the output link. The
content of the Idle cell is pre-initialized with the
header bytes set at 0x00, 0x00, 0x00 and 0x01. The
payload bytes are set to 0x6A.
TX UTOPIA FIFO Length Definition registers are
used to set the TX UTOPIA FIFO size. The total
number of cells in all the TX UTOPIA FIFOs and TX
Link FIFO (includes the links used in IMA Mode and
the links used in UNI Mode) is limited to 58.
Idle Cells are transmitted on the UNI PCM Interface
until the bit corresponding to the link in the UTOPIAInput Link PHY Enable register is set. Then, the
ATM User cells are transferred from the Input
UTOPIA port to the TX PCM port.
3.0The ATM Receive Path
The receive path corresponds to the cell flow from
the T1/E1 interfaces to the ATM UTOPIA Interface.
The MT90221 provides cell delineation and optional
cell filtering to discard Unassigned or Idle cells on
each link. The incoming cells are stored in the
external RAM required in IMA mode to perform cell
recovery due to delay variation between the links
introduced by the network.
boundaries. The CD circuit performs a sequential
byte by byte hunt for a correct HEC sequence. While
performing this hunt, the cell delineation state
machine is in the HUNT state. Figure 5 depicts a
state diagram of the cell delineation operation.
Correct HEC (byte by byte)
Incorrect HEC
HUNT
ALPHA
Consecutive
Incorrect HEC
(cell by cell)
(cell by cell)
SYNC
PRESYNC
DELTA Consecutive
Correct HEC
(cell by cell)
Figure 5 - Cell Delineation State Diagram
When a correct HEC is found, the CD circuit locks on
the cell boundary and enters the PRESYNC state.
The PRESYNC state keeps checking the HEC to
ensure that the previous indication was not false.
False indications are interpreted to mean the circuit
is not tracking good ATM cells. After entering the
PRESYNC state, the first false indication triggers a
transition back to HUNT state.
If the PRESYNC state HEC is correct, then a
transition to the SYNC state occurs after“δ”cells
(DELTA in ITU I.432) are correctly received. In the
SYNC state, the CD circuit treats the incoming ATM
cell stream as stable and the MT90221 functions
normally.
3.1Cell Delineation Function
This block provides the circuitry necessary to
perform functions such as Cell Delineation (CD), cell
payload de-scrambling, HEC verification and filtering
of Idle (UNI) cells. The CD circuit delineates ATM
cells received from the payload of the T1 or E1 frame
through the PCM Interface.
When performing delineation, correct HEC
calculations are interpreted to indicate cell
While in the SYNC state, if an incorrect HEC is
obtained
“a”
consecutive times (ALPHA in ITU I.432),
cell delineation is considered lost and a transition is
made back to the HUNT state (see Figure 6).
As defined by the ITU I.432 recommendations, the
value of ALPHA and DELTA determine the
robustness of the delineation method. The value of
ALPHA and DELTA for the Cell Delineation state
machine are defined in the Cell Delineation register.
15
MT90221
ATM CELL DELINEATION SYNC STATE
HCS Multi-Bit Error Detected (cell discarded)
HCS Single Bit Error Detected (corrected or dropped)
No HCS Errors Detected
DELTA
Consecutive
Correct HCS’s
(PRESYNC State)
Cell
Accepted
Correction
Figure 6 - SYNC State Block Diagram
Only one set of values is defined for the four Cell
Delineation state machines. The status of the CD
state machine for each link is av ailable in bits 0 and 1
of the RX Cell Delineation State register.
The ITU I.432 suggested values are: ALPHA = 7;
and DELTA = 6.
Loss of Cell Delineation (LCD) is detected by
counting the number of incorrect cells while in HUNT
state. The MT90221 provides an internal Loss CellDelineation register to set the threshold for this
count. A value of 360 in the LCD register would
correspond to 79 msec for E1 and 100 msec for T1
applications. The LCD state for each link is available
in bit 1 of the IRQ LinkStatus registers, and in bit 6
of the RX Link ID Number register.
The LCD status bit is reporting the current condition
of the Cell Delineation State Machine at the time it is
read and cannot not be programmed to generate an
interrupt when exiting the LCD condition. The
software has to poll the status bit to determine when
the condition is cleared.
Table 3 provides the time, in microseconds, for the
CD circuit to receive a full ATM cell from the T1 and
E1 frame payloads.
FormatAverage Cell Acquisition Time (µs)
T1276
E1221
Table 3 - Cell Acquisition Time
While the cell delineation state machine is in the
SYNC state, the verification circuit implements the
state machine shown in Figure 6.
In normal operation, the HEC verification state
machine remains in the ’correction’ state. Incoming
cells containing no HEC errors are passed to the
receive IMA block (RX IMA). Incoming single-bit
errors can be corrected if required by the application
Cell
Discarded
Detection
ALPHA
Consecutive
Incorrect HCS’s
Jump to HUNT
State
(i.e., single bit error correction can be enabled or
disabled).
After correction (when enabled), the resulting ATM
cell is passed to the RX IMA block for IMA
sequencing control.
If a single or multi bit error occurs, the state machine
goes to the ’detection’ state. When a cell with a good
HEC is detected, the state machine returns to the
’correction’ state. The HEC calculation normally
includes the ATM FORUM polynomial (X6 + X4 + X
+ 1). The use of the polynomial can be disabled by
writing to bit 1 of the RX Link Control register.
3.2De-Scrambling and ATM Cell Filtering
The CD circuit can de-scramble the cell payload
field. The de-scrambling algorithm can be enabled or
disabled using bit 5 of the RX Link Control registers.
The MT90221 can be programmed, using the RXLink Control registers, to discard received ATM cells
with HEC error.
HEC error correction is optional and can be enabled
by the CPU. When the option to correct an incoming
HEC value with 1 bit error is selected, the HEC is
corrected and the cell is not counted as a cell with a
bad HEC. If the option to remove the cells that are
received with a bad HEC is selected, then the
incoming cells are replaced by a Filler cell in IMA
mode. The cell is simply discarded when in UNI
mode. The counter is not incremented if the HEC
value is corrected, when the option is enabled.
Incoming Idle and Unassigned cells can be detected
and dropped automatically.
3.3ATM Receive Path in IMA Mode
The block diagram at Figure 7 illustrates the
MT90221 IMA mode receive path. The receiver must
rearrange the incoming bit streams from N-links (1 ≤
N ≤ 4) into a single UTOPIA cell stream.
2
16
RAM Area
MT90221
RXCK
RXSYNC
DSTi
[0]
RXCK
RXSYNC
DSTi
[3]
S/P
S/P
Buffer
IMA
Frame
State
Machine
IMA
Frame
State
Machine
RAM
Controller
Rate
Recovery
RX
Scheduler
Cell
Delineation
Cell
Delineation
Link Info
Registers
ICP
Processing
ICP
Processing
ICP Cell
With Changes
Micro
Figure 7 - The MT90221 Receiver Circuit in IMA Mode
UTOPIA
Interface
Recovered
Cell CLK
3.3.1ICP Cell Processor
In IMA mode, the transmitter inserts special ICP cells
in the various outgoing streams every M ATM cells to
comply with the IMA specification. The receive block
is using these ICP cells to synchronize with the Far
End transmit side and to reconstruct the ATM cell
original sequence.
3.3.1.1IMA Frame Synchronization
The MT90220 implements IMA Frame
Synchronization State Machines (IFSM) for each
link, as described in Section 11 of the IMA
Specification. The values of Alpha, Beta and Gamma
are programmable through the Frame Delineation
register. Their values are the same for all links.
After the link is programmed to be in IMA mode by
writing to the RX Link Control register, the IMA
Frame State Machine is enabled. At the same time,
the parameter’s value of the RX link are latched in
internal reference registers and are used to
determine if the received ICP cell meets the valid
IICP cell criteria to determine IMA frame
synchronization. Refer to section 3.3.1.2 and 3.3.1.3
for the list of link’s parameters.
Incoming ICP cells are automatically detected by the
ICP Processing block. As soon as one valid ICP cell
is received, the IMA Frame State Machine moves to
the IMA PRESYNC state. When Gamma-valid ICP
cells are received, the state machine moves to the
IMA SYNC state. In the IMA PRESYNC state, one
errored or missing ICP cell causes the state machine
to return to the IMA HUNT state. In the IMA SYNC
state, the state machine is forced to the IMA HUNT
state by any of the following events:
•one missing ICP cell
•Alpha consecutive invalid ICP cells
•Beta consecutive errored ICP cells
Bits 3 and 2 of the RX State register repor t the IMA
Frame State Machine state for a selected link. When
in IMA HUNT mode, the information required to
perform the verification is extracted from the ICP
cells received.
After the received information is validated, the IMA
Group is configured by writing to the RX Reference
Link Control, the RX Link Control and RX
Recombiner registers.
17
MT90221
3.3.1.2Link Information
All required verification and link validation
information is extracted from the ICP received cells.
The IMA ID, Link ID (LID), Reference Link Number,
ICP Cell Offset and Frame Length can be read and
validated before enabling an IMA Group link.
Software obtains this information by writing to the RXLoad Values register to select a link and by reading
the RX Link IMA ID, RX Link ICP Offset, RX LinkID and Reference and RX State registers. This
information can also be obtained by collecting all the
received ICP cells in the RX ICP Cell Buffer and then
processing the content of the ICP cell (i.e., writing to
the RX ICP Cell Type RAM register and then
reading from the RX ICP cell buffer).
The contents of the link information registers should
be read after enabling the RX PCM link in the RXPCM Link Control register and before enabling the
IMA mode. The link information can be accessed
when a link is either in UNI or IMA mode.
3.3.1.3RX OAM Label
The RX OAM Label is treated differently than the
other link’s parameters. Four registers, the RX OAMLabel registers, 1 per RX IMA Group, are used to
defined the RX OAM Label. Its value is written by the
software and can be changed at any point in time.
However, the RX OAM Label has to match the value
contained in the RX ICP cell for the IMA Frame State
Machine to reach the ACTIVE state.
3.3.2Out of IMA Frame (OIF) Condition
Status bits in the RX OIF Status register, one bit per
link, is reporting OIF conditions. The status bit is
latching an OIF condition which corresponds to a
transition of the IFSM from SYNC to HUNT. The OIF
condition is reported as a status bit only and cannot
generate an interrupt. The status bit is cleared by
writing a 0 to the corresponding bit.
There are 8 OIF counters, one per link. For each OIF
transition, the 8-bit counter associated with the link is
incremented by one. The counter can be read with
indirect access when issuing a load command with
the RX Load Values register. The counter can be
cleared by writing to the RX OIF Counter Clear
Command register.
3.3.3Link Out Of IMA Frame (LIF)
Synchronization
A link is declared out of IMA Frame (LIF)
synchronization state when the IFSM goes in HUNT
mode for ’gamma +2’ frames after it was in SYNC
state. This condition is latched in bit 2 of the IRQ
Link Status register. Refer to 6.2.2 IRQ Link Status
and IRQ Link Enable Registers for more details.
The LIF status bit is reporting the current condition of
the IMA Frame State Machine at the time it is read
and cannot not be programmed to generate an
interrupt when exiting the LIF condition. The
software has to poll the LIF status bit to determine
when the condition is cleared.
3.3.4Filler Cell Handling
The MT90221 scans each incoming cell received for
the Filler Cell Indication code. Filler cells are written
to external RAM to keep the IMA frame aligned. They
are automatically discarded after being read from the
external RAM by the recombiner.
3.3.5Stuff Cell Handling
Each incoming ICP cell received is scanned for the
Stuff Indication Code. Stuff cells are inserted at the
transmit end as two identical and consecutive ICP
cells with the Link Stuff Indication Bits set as defined
in the IMA specification. The MT90221 automatically
discards one of the two Stuff cells without storing it in
external RAM. The other is kept and processed as a
regular ICP cell. IMA Frame synchronization is
maintained for all cases (except case 7, O-19
optional requirements) as described in Figure 20 of
the IMA Specification.
3.3.6Received ICP Cell Buffer
An internal buffer is implemented to collect cells from
the RX PCM links for analysis by the software. This
storage unit is a circular buffer for each link and
contains up to three cells per link. The buffer can
selectively collect:
•all valid cells coming on a RX PCM port
•all valid ICP cells
•all valid ICP cells which contain new
information (as indicated by the SCCI field,
valid only when the link is in IMA mode).
The type of cells collected is defined in the RX ICPCell Type RAM registers. A status bit and a
maskable IRQ alerts the software when a new cell is
waiting for processing in a specific link. These are
found in the IRQ Link Status and Enable registers.
Valid ICP cells when a link is in UNI mode is
determined by a valid HEC byte. When in IMA mode,
a valid ICP cell must meet the criteria defined in
Table 16 of the ATM IMA spec.
Software can directly access the cells in the RX
buffer through a two-cell-wide access window. This
access window can be advanced, one cell at a time,
by issuing a command to move the internal pointer to
the next cells. Since the window accesses two cells,
the last processed cell can be accessed at the
18
MT90221
window’s base address and the new cell at the base
address plus 0x40.
The RX ICP Cell Level FIFO register is used to read
the level of any of the 4 RX ICP Cell buffers. A ’0’ in
this register signifies that no new cell has been
received. A ’2’ indicates the possibility that one or
more cells have been missed (overflow condition).
The cell in the last entry of the circular buffer is the
last cell that was meeting the selection criteria. If the
Cell FIFO level is 2, it is constantly overwritten by
any new valid incoming cell.
The cell that is at the window’s base address when
the level is 0 is never overwritten as it is kept for
reference.
The RX ICP Cell Buffer Increment Read Pointer
register is used to advance the access window by 1
cell at a time. Upon the command, the Buffer level is
decreased by 1. When the level reaches 0, the
window is not advanced anymore.
During the start-up phase, the software can select to
collect all valid ICP cells coming in a RX PCM port
and determine if the parameters are acceptable to
proceed and start-up an IMA group.
In normal IMA operating mode, the software will
select to collect only valid ICP with changes. The
Status and Control Change Indication (SCCI) is
monitored for all valid ICP cells received. If the SCCI
field indicates a change in the ICP cells, they are put
aside for processing by software.
To accelerate the processing of ICP cells that contain
changes, any byte of the last and next processed
ICP cell can be accessed directly. To reduce the total
processing time by the software, only those bytes
that need to be read are accessed. The storage unit
keeps the last read ICP cell and has room for up to
three new ICP cells.
3.3.7Rate Recovery
The MT90221 computes the internal RX IMA Data
Cell Rate (IDCR) for each IMA Group. The cell rate
of the reference link is integrated over a
programmable period of time. Software must specify
the reference link for the IMA Group in the RXReference Link Control register and the period of
integration in the RX IDCR Integration register.
Refer to TX IMA Data Cell Rate in Section 2.4.5.
As an option, the reference link can be extracted
automatically from the received ICP cell. This option
is selected by bit 4 of the RX Reference LinkControl registers. When this option is enabled, the
RX Reference Link is always updated to reflect the
content of the last valid RXICP cell that was
received.
3.3.8Cell Buffer/RAM Controller
The received cells are temporarily stored in external
memory buffers until they can be correctly re-ordered
for output. Memory size depends on the number of
links and the maximum delay allowed between the
links. The memory requirements for different
configurations is listed in Table 4. The memory is
Memory Size
(Kbytes)
Delay (msec)
T1 linksE1 links
32Kb1613
64Kb3427
128Kb6955
256Kb140112
512Kb281225
1024Kb560451
Note: Assuming a Guardband of 4 cells
Table 4 - Differential Delay for Various
Memory Configuration
organized in blocks of 64 bytes. Each block can hold
one cell. The following equation can be used to
determine the maximum delay value or the required
RAM size for a determined delay:
MaxDelay
RAMsize[]
---------------------------- -
1
-- -
64
1CellTime[]=
8
To simplify the RAM interface and pin loading, the
MT90221 supports the following six, SRAM Control
register selectable, external memory configurations:
•one 32 KByte SRAM device
•two 32 KByte SRAM devices
•one 128 KByte SRAM device
•two 128 KByte SRAM devices
•one 512 KBytes SRAM
•two 512 KBytes SRAM devices.
To enable the correct memory access, the Test
Mode Enable register bit 7 has to be set to 1, the
value 0x10 should be written to the RX Delay Link
Number register, the bit 3 of the RX External SRAM
Control register has to be set to 1 and the bit 6 of
Test 2 register has to be set to 1.
3.3.9Cell Sequence Recovery
When an IMA Group is active, the IMA recombiner
manages the pointers to the external RAM write and
read location for the stored ATM cells. A cell is read
out from the buffer located in the external RAM
19
MT90221
corresponding to the lowest link ID (LID) of the IMA
Group and placed in the RX UTOPIA FIFO. After a
complete cell read, a read pointer is set to the buffer
corresponding to the next LID. At the following IDCR
clock cycle, the next available cell is read. ICP cells
are skipped and Filler cells are discarded. This
operation is done in a RoundRobin fashion based on
the LID value for each IMA Group link. Faulty
conditions (i.e., buffer overflow, excessive delay) are
reported through the IRQ Link Status and IRQ
UTOPIA Status registers.
3.3.10 Delay Between Links
The delay values between links are reflecting the
various transit delays though the network. In order to
rebuild the original ATM cell sequence, the link that
exhibits less transport delay has to be stored until
the data from the slowest link (link having the largest
transport delay) has arrived. The link that exhibits
the largest transport delay will be the link that
requires the least cells to be stored. Conversely, the
line that exhibits the least transport delay is the link
that requires the largest number of cells to be stored.
Indirect access is provided to internal registers which
hold the various link delay values. The link number
and delay type are first selected by writing to the RXDelay Select register. After 2 system clock cycles,
the 14-bit value in the RX Delay MSB and LSB and
the RX Delay Link Number registers are updated
and can be read. The valid delay types are: the
Maximum Delay over Time, the Current Maximum
Delay and the Current Minimum Delay for an IMA
group and the Current Delay values for any links.
The delay values can be converted to time values by
multiplying the number of cells by the conversion
factor listed in the Table 5.
Link Type
T1 ISDN (23 ch. per frame)0.288
T1 (24 ch. per frame)0.276
E1 (30 ch. per frame)0.221
Table 5 - Conversion Factors Time/Cell
(msec)
3.3.10.1 RX Recombiner Delay Value
The ICP Cell from each link of the same IMA Group
is used to determine the external SRAM read and
write pointers. The distance between the read and
write pointers is referred to as the recombiner delay.
Setting the recombiner delay to the maximum
acceptable delay results in a fixed recombiner delay
that is not optimum. For example, setting recombiner
delay to 25 msec when the worst case delay is 12
Time per cell
(msec)
msec results in an additional, unnecessary delay of
13 msec.
The minimum recombiner delay would be the current
worst case differential delay. In the example above,
the recombiner delay would be set to 12 msec. In
this case, a link with larger transport delay than the
current worst value cannot be added to an existing
IMA group: the cells from this slower link have not
arrived when the cells sequence is rebuilt, as the
read pointer was set using the previous worst case
link. If this slower link is to be added, then the
recombiner process has to stop for the time required
to receive the cells on the slower link and then the
recombiner process can resume. This causes
disruption in the operation of the recombiner and will
affect the Cell Delay Variation (CDV).
To provide an optimal recombiner delay, the
MT90221 adds a guardband delay to the current
worst case recombination delay when the IMA Group
is first started up. Guardband delay is programmable
and minimizes the number of disruptions that would
otherwise occur in accommodating link delays
exceeding the current worst case. The guardband
delay is added to the minimum recombiner delay,
when the recombiner process is enabled for the first
link of an IMA group. The operational delay
corresponds to the guardband delay added to the
current worst case delay value.
The guardband delay value is specified for each IMA
group by writing to the Guardband/Delta Delay
register. It should be the smallest value possible
consistent with minimizing the disruptions and the
smallest allowed value is 4. When operational, the
value of the guardband delay corresponds to the
delay value of the link having the greater transport
delay (the link where the data is the last to arrive to
the MT90221).
3.3.10.2 RX Maximum Operational Delay Value
The various delays on links of the same IMA Group
are measured and compared to the programmed
’maximum allowable value’ stored in the RXMaximum Operational Delay register for the IMA
Group. This value corresponds to the worst delay
value that is expected. This value cannot be larger
than the number of cells that can be stored in the
external memory. The smallest ’maximum allowable
value’ is four cells. These values are independently
established for each of the four IMA Groups.
3.3.10.3 Link Out of Delay Synchronization (LODS)
If a link to be added is slower and cannot be
accommodated by the present guardband, an LODS
signal is generated and the link delay value is
20
MT90221
reported negative. A delay is negative when the two
most significant bits are set to "1". The value
reported is with respect to the read pointer and
represents the minimum number of cells that has to
be added to the present guardband before adding
the link in the IMA group. See paragraph 3.3.10.6
Incrementing/Decrementing the Recombiner Delay
for more details.
If a link to be added is faster and would cause its
write pointer to be set beyond the RX Maximumoperational Delay programmed value, then the link
is reported to be faulty through an LODS condition.
The recombination process will not be affected as
long as the amount of delay is not larger than the
total number of cells in the external memory.
LODS will also be reported if, during operation, the
delay of a link is changing to exhibits higher or lower
delay which result in a negative delay value or
beyond the RX Maximum Operating Delay value.
LODS events are reported by the IRQ Link Status
register and the selected Current Maximum Delay
register for an IMA Group.
3.3.10.4 Negative Delay Values
If the recombiner process is enabled for a link that is
exhibiting a negative delay value then the
recombiner process will be suspended until the write
pointers are moved in such a way that the delay is
reported with a positive value of 4. At this time the
recombiner process will resume. No cells are lost.
The same behavior applies if the delay value of a
link which is part of the round robin process
(recombiner bit ON) goes negative: the recombiner
process will be suspended until the delay value
becomes positive with a value of 4. The latter
condition can happen under severe error conditions
if the recombiner process of the faulty link is not
disabled.
3.3.10.5 Measured Delay Between Links
The values and delay type for a selected link(s) or
IMA Group can be read using the RX Delay Select
register.
IMA Group delay types include: the Maximum Delay
over time; the Current Maximum Delay and the
Current Minimum Delay of an IMA Group. Current
Link delay reports the Current Delay of a link.These values are all reported through a common RX
Delay register. The value is in number of cells. All
the delay values include the guardband delay value.
The RX Delay Link Number register is reporting the
link number associated with the delay value that is
currently in the RX Delay registers, with the
exception for the Maximum Delay over time value,
where the link number reported is not valid (reports
value of 0).
The Maximum Delay over time value can be reset at
any time by writing a clear command to bit 5 in the RXDelay Select register. The differential delays can be
easily obtained by subtracting the delay values of the
links.
3.3.10.6 Incrementing/Decrementing the
Recombiner Delay
If a link to be added has a delay value which falls
beyond the worst current delay value, then there are
2 options: either reject the link or re-adjust the
pointers. To readjust the pointers, the number of cells
to be added (delta) is specified and corresponds to
the amount of extra delay to be added to the current
recombination delay. The additional delay is first
programmed in the Guardband/Delta Delay register
and then a command to increase the delay is issued
(using the Increment/Decrement Delay Control
register). The MT90221 device stops the recombiner
process for the amount of time specified and then
resumes the recombiner process. No cells are lost
but there is an effect on the CDV. The increment
process is completed when the control bit in the
Increment/Decrement Delay Control register is
returned to a 0 value.
If the link exhibiting the longest transmission delay is
removed, the recombiner delay can be reduced
accordingly. When such a correction occurs, the
number of cells corresponding to the delay correction
will be lost. To reduce the impact of this correction,
its implementation can either be immediate or
delayed. The Increment/Decrement Delay Control
register is used for this purpose. The amount of
delay to be removed (i.e., number of cells) in the
recombiner process is controlled by the Guardband/Delta Delay register. Alternatively, the links can all
be placed in blocking mode for the transition period
to avoid losing any cells.
If a decrement delay command is issued which
would result in a negative delay value on one or
more links, the following action will take place: the
read pointer is re-adjusted as required by the
decrease delay command and since the delay is
negative, the recombiner process is suspended until
the delay on all the link are at least reaching a
positive value of 4. Then, the recombiner process will
resume.
21
MT90221
3.3.11 RX IMA Group Start-Up
A quick initialization sequence for the RX IMA Group
could be as follows (default values can be used for
some registers)
(Note: The startup procedure below is given
indicating the most important steps. A more detailed
and complete sequence can be found in the
MT90220/221 Programmer’s Manual and example
code).
•Configure the SRAM parameters using the
SRAM Control, RX External SRAM Control
and Test Mode Enable registers
•Configure the Cell delineation and IMA Frame
State Machines parameters by writing to the
Cell Delineation, Loss Cell Delineation and
IMA Frame Delineation registers
•Write to the RX Link Control register to select
the RX options
•Configure the RX PCM port(s) by writing to the
RX PCM Link Control register
•Configure the RX UTOPIA port by writing to the
UTOPIA Output Group PHY Enable and
UTOPIA OutputGroup Address registers
•Validate the IMA parameter values received
over the PCM links and configure the link in IMA
mode using the RX Recombiner and the RXLink Control register
•When ready, start the recombiner process by
writing to the RX Recombiner register
3.3.12 Link Addition
The MT90221 supports software controlled link
addition to the existing RX link group. Such an
addition can be used to increase available
bandwidth. The added link receives Filler cells until
the Far End (FE) TX side is active. During this time,
the new link’s delay is measured and compared with
the current operating limits. The link is either rejected
or accepted. The operational delay can be corrected
if required as described in 3.3.10.6 Incrementing/
Decrementing the Recombiner Delay. After
synchronization is achieved, the added link can be
included in the recombiner algorithm using bit 2 of
the RX Recombiner register. The link will be
effectively included in the IMA Group when the
corresponding bit in the Enable RecombinationStatus register is set.
A link may also be added to an IMA Group when the
first User cell is received. This is done by writing to
the RX Recombiner Delay Control register.
3.3.13 Link Deletion
There are two reasons to deactivate a link:
•the bandwidth required decreases or
•an existing link becomes faulty.
Both link deactivation procedures specified in the
IMA specification are supported under the control of
software.
The command to disable the recombination process
for a link is issued by writing to bit 2 of the RXRecombiner register.
If the delay of the link to be removed is not the worst
delay, then no pointer correction is required and the
recombiner bit (i.e., bit 2 of RX Recombiner register)
for the removed link should be set to 0.
If it is the worst case delay, then the pointer values
should be corrected to reduce the amount of
additional delay introduced by the recombiner. The
pointers need to be changed (advanced). This
results in reducing the number of cells (the amount
of time) required for the recombiner process.
To reduce the impact of this correction, its
implementation can either be immediate or delayed.
A command in the Increment/Decrement DelayControl register is used for this purpose (refer to
3.3.10.6 Incrementing/Decrementing the
Recombiner Delay, for more details).
3.3.14 Disabling an IMA Group
Before an IMA Group can be disabled, the software
should ensure that no User cells are left in memory.
As part of the higher level handshaking, the TX FE
should have sent Filler cells for a while for the RX
side to process all the User cells that could be in the
external memory.
The procedure to follow is to stop the recombination
process and then, wait for the enable process to be
reported inactive (in the Enable RecombinationStatus register) before re-assigning the link to
another IMA group or to UNI Mode.
3.4The ATM Receive Path in UNI
Up to four incoming T1/E1 lines can be connected to
the MT90221 receiver and forwarded to the UTOPIA
L2 interface served by an external ATM-Layer device
in UNI Mode. Figure 8 illustrates four of the eight
possible UTOPIA ports that can be addressed
through the UTOPIA Interface.
The size of the RX UTOPIA FIFO is fixed. The Idle
cells are automatically removed at the RX PCM block
and all other valid received cells are transferred to
the RX UTOPIA FIFO.
22
Loading...
+ 84 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.