Figure27 : Clocks received and deliveredby the
Figure28 : SynchronizationSignals receivedby the
Figure29 : GCI Synchro Signal delivered by the
Figure30 : V* SynchronizationSignal delivered by the
Figure31 : Dynamic Memory Read Signals from the
Figure32 : Dynamic Memory Write Signalsfrom the
Figure33 : Static MemoryRead Signals from the
Figure34 : Static MemoryWrite Signals from the
3XTAL2OCrystal 2. If the internal crystal oscillator is used, the second crystal pin isapplied
7VCXO INO4VCXO input signal. This signal is compared to clock A(or B) selected inside the
8VCXO OUTI3VCXO error signal. This pin delivers the result of the comparison.
10CLOCKAI3Input Clock A (4096kHz or 8192kHz)
11CLOCKBI3Input Clock B (4096kHz or 8192kHz)
12FRAMEAI3Clock A at 8kHz
13FRAMEBO8Clock B at 8kHz
9DCLKO8Data Clock issuedfrom Input Clock A (or B). This clock is delivered by the circuit
17FSCGO8Frame synchronization for GCI at 8kHz. This clockis issued from FRAME A (or B).
18FSCV*I3Frame synchronization for V Star at 8kHz
16FSO8Frame synchronization.This signal synchronizesDIN0/7 and DOUT0/7.
19PSSI3Programmable synchronization Signal. The PS bit of connection memory is read
at 4096kHz(or2048kHz). DOUT0/7 aretransmittedon the risingedge of thissignal.
DIN0/7 are sampled on the fallingedge of this signal.
in real time.
= 32000kHz can be applied to this input (or one pin
Min.
-6
< ∆f < +50.10-6.
9/83
STLC5464
I - PIN INFORMATION(continued)
I.2 - Pin Description (continued)
Pin N°SymbolTypeFunction
TIMEDIVISION MULTIPLEXES (TDM)
20DIN0I1TDM0Data Input 0
21DIN1I1TDM1Data Input 1
22DIN2I1TDM2Data Input 2
23DIN3I1TDM3Data Input 3
24DIN4I1TDM4Data Input 4
25DIN5I1TDM5Data Input 5
26DIN6I1TDM6Data Input 6
27DIN7I1TDM7Data Input 7
28DIN8I1TDM8Data Input 8
31DOUT0O8DTTDM0 Data Output0
32DOUT1O8DTTDM1 Data Output1
33DOUT2O8DTTDM2 Data Output2
34DOUT3O8DTTDM3 Data Output3
35DOUT4O8DTTDM4 Data Output4
36DOUT5O8DTTDM5 Data Output5
37DOUT6O8DTTDM6 Data Output6
38DOUT7O8DTTDM7 Data Output7
39NDISI1DOUT 0/7 Not Disable. When this pin is at 0V, the Data Output 0/7 are at high
5CBO8DContention Bus for CSMA/CR
6ECI1Echo. Wired at VSS if not used.
BOUDARY SCAN
40NTRSTI4Reset for boundary scan
41TMSI2Mode Selection for boundary scan
42TDII2Input Data for boundary scan
43TDOO4Output Datafor boundary scan
44TCKI4Clock for boundary scan
MICROPROCESSOR INTERFACE
58MOD0I11 1 0 1
59MOD1I11 1 0 0
60MOD2I10 1 1 0
1NRESETI3CircuitReset
47NCS0I3Chip Select 0 : internal registers are selected
48NCS1I3Chip Select 1 : external memory isselected
49INT0O4Interrupt generated by HDLC, RxC/Ior RxMON. Active high.
50INT1O4Interrupt1.This pin goes to 5V when the selected clock A (or B) has disappeared ;
4WDOO4Watch Dog Output.This pingoes to5V during1ms when the microprocessor has not
250µs after resetthis pin goesto 5V also if clock A is not present.
reset the Watch Dog during the programmable time.
10/83
I - PIN INFORMATION(continued)
I.2 - Pin Description (continued)
Pin N°SymbolTypeFunction
MICROPROCESSOR INTERFACE (continued)
51NLDSI3Lower Data Strobe (68000)
52NUDSI3Bus High Enable (Intel) / Upper Data Strobe(68000)
53NDTACKO8DData Transfer Acknowledge (68000)
54READYO8TData TransferAcknowledge (Intel)
55NAS/ALEI3Address Strobe(Motorola) / Addresss Latch Enable(Intel)
56R/W / NWRI3Read/Write (Motorola) /Write(Intel)
57NDS/NRDI3Data Strobe (Motorola)/Read Data(Intel)
63A0/AD0I/OAddress bit 0 (Motorola) / Address/Data bit 0 (Intel)
64A1/AD1I/OAddress bit 1 (Motorola) / Address/Data bit 1 (Intel)
65A2/AD2I/OAddress bit 2 (Motorola) / Address/Data bit 2 (Intel)
66A3/AD3I/OAddress bit 3 (Motorola) / Address/Data bit 3 (Intel)
67A4/AD4I/OAddress bit 4 (Motorola) / Address/Data bit 4 (Intel)
68A5/AD5I/OAddress bit 5 (Motorola) / Address/Data bit 5 (Intel)
69A6/AD6I/OAddress bit 6 (Motorola) / Address/Data bit 6 (Intel)
70A7/AD7I/OAddress bit 7 (Motorola) / Address/Data bit 7 (Intel)
71A8/AD8I/OAddress bit 8 (Motorola) / Address/Data bit 8 (Intel)
72A9/AD9I/OAddress bit 9 (Motorola) / Address/Data bit 9 (Intel)
75A10/AD10I/OAddress bit 10 (Motorola) / Address/Data bit 10 (Intel)
76A11/AD11I/OAddress bit 11 (Motorola) / Address/Data bit 11 (Intel)
77A12/AD12I/OAddress bit 12 (Motorola) / Address/Data bit 12 (Intel)
78A13/AD13I/OAddress bit 13 (Motorola) / Address/Data bit 13 (Intel)
79A14/AD14I/OAddress bit14 (Motorola) / Address/Data bit 14 (Intel)
80A15/AD15I/OAddress bit15 (Motorola) / Address/Data bit 15 (Intel)
81A16I1Address bit16 (Motorola) / Address bit 16 (Intel)
82A17I1Address bit17 (Motorola) / Address bit 17 (Intel)
83A18I1Address bit18 (Motorola) / Address bit 18 (Intel)
84A19I1Address bit19 (Motorola) / Address bit 19 (Intel)
85A20/ADM15I/OAddress bit 20 from µP (input) / Address bit 15 forSRAM (output)
86A21/ADM16I/OAddress bit 21 from µP (input) / Address bit 16 forSRAM (output)
87A22/ADM17I/OAddress bit 22 fromµP (input) / Addressbit 17 for SRAM (output)
88A23/ADM18I/OAddress bit 23 from µP (input) / Address bit 18 forSRAM (output)
91DOI/OData bit 0 for µP ifnot multiplexed (seeNote 1).
92D1I/OData bit 1forµP if not multiplexed
93D2I/OData bit 2for µP if not multiplexed
94D3I/OData bit 3for µP if not multiplexed
95D4I/OData bit 4forµP if not multiplexed
96D5I/OData bit 5for µP if not multiplexed
97D6I/OData bit 6for µP if not multiplexed
98D7I/OData bit 7forµP if not multiplexed
99D8I/OData bit 8for µP if not multiplexed
I - PIN INFORMATION(continued)
I.2 - Pin Description (continued)
Pin N°SymbolTypeFunction
MICROPROCESSOR INTERFACE (continued)
100D9I/OData bit 9for µP if not multiplexed
101D10I/OData bit 10for µP if not multiplexed
102D11I/OData bit 11forµP if not multiplexed
103D12I/OData bit 12for µP if not multiplexed
104D13I/OData bit 13for µP if not multiplexed
105D14I/OData bit 14forµP if not multiplexed
106D15I/OData bit 15for µP if not multiplexed
MEMORY INTERFACE
109TRII3Token Ring Input (foruse
110TROO4Token Ring Output (for use
111NWEO4TWrite Enable for memory circuits
112NOEO4TControl Output Enable for memory circuits
113NRAS0/NCE0O4TRow Address Strobe Bank0 / Chip Enable0 for SRAM
114NCAS0/NCE1O4TColumn Address StrobeBank 0 / Chip Enable1 for SRAM
115NRAS1/NCE2O4TRow Address Strobe Bank1 / Chip Enable2 for SRAM
116NCAS1/NCE3O4TColumn Address StrobeBank 1 / Chip Enable 3 for SRAM
117NRAS2/NCE4O4TRow Address Strobe Bank2 / Chip Enable4 for SRAM
118NCE5O4TChip Enable 5 for SRAM
119NRAS3/NCE6O4TRow Address Strobe Bank3 / Chip Enable6 for SRAM
120NCE7O4TChip Enable 7 for SRAM
123ADM0O8TAddress bit 0for SRAM and DRAM
124ADM1O8TAddress bit 1for SRAM and DRAM
125ADM2O8TAddress bit 2for SRAM and DRAM
126ADM3O8TAddress bit 3for SRAM and DRAM
127ADM4O8TAddress bit 4for SRAM and DRAM
128ADM5O8TAddress bit 5for SRAM and DRAM
129ADM6O8TAddress bit 6for SRAM and DRAM
130ADM7O8TAddress bit 7for SRAM and DRAM
131ADM8O8TAddress bit 8for SRAM and DRAM
132ADM9O8TAddress bit 9for SRAM and DRAM
135ADM10O8TAddress bit 10 for SRAM and DRAM
136ADM11O8TAddress bit 11 for SRAM only
137ADM12O8TAddress bit 12 for SRAM only
138ADM13O8TAddress bit 13 for SRAM only
139ADM14O8TAddress bit 14 for SRAM only
I - PIN INFORMATION(continued)
I.2 - Pin Description (continued)
Pin N°SymbolTypeFunction
MEMORY INTERFACE (continued)
140DM0I/OMemory Data bit 0
141DM1I/OMemory Data bit 1
142DM2I/OMemory Data bit 2
143DM3I/OMemory Data bit 3
144DM4I/OMemory Data bit 4
147DM5I/OMemory Data bit 5
148DM6I/OMemory Data bit 6
149DM7I/OMemory Data bit 7
150DM8I/OMemory Data bit 8
151DM9I/OMemory Data bit 9
152DM10I/OMemory Data bit 10
153DM11I/OMemory Data bit 11
154DM12I/OMemory Data bit 12
155DM13I/OMemory Data bit 13
156DM14I/OMemory Data bit 14
157DM15I/OMemory Data bit 15
160NTESTI2Test Control. When this pin is at 0V each output is high impedance except XTAL2 Pin.
Thetop levelfunctionalities of
Figure1 : GeneralBlock Diagram
DIN5
DIN4
DIN3
25 24 23 22 21 20
GCI1
GCI0
DIN6
26
DIN7
27
DIN8
28
VCX IN
7
8
2
3
4
COUNTER
XTAL
WATCHDOG
32 Rx HDLC
with Adress
Recognition
32 Rx DMAC
VCX OUT
XTAL1
XTAL2
WDO
Multi-HDLC
DIN2
DIN1
DIN0
D7
V10
TIME SLOT ASSIGNER FOR MULTIHDLC
16 Rx
appearon the general block diagram.
0
SWITCHING MATRIX
1
n x64 kb/s
2
3
4
5
6
Pseudo
Random
Sequence
7
Analyser
GCI CHANNELDEFINITION
C/I
16 Rx
MON
Sequence
Generator
16 Tx
Pseudo
Random
C/I
NDIS
39 31 32 33 34
0
1
2
3
4
5
6
7
16 Tx
MON
DOUT0
DOUT1
32 Tx HDLC
with CSMA CR
for Content.Bus
32 Tx DMAC
DOUT2
DOUT3
DOUT4
35
DOUT537DOUT6
36
GCI0
GCI1
Rx
C/IRxMONTxC/ITxMON
INTERRUPT
CONTROLLER
DOUT712FRAME A10CLOCK A13FRAME B11CLOCK B
38
V10
To
Internal
Circuit
CLOCK
SELECTION
18
FSCV*
17
FSCG
9
DCLK
16 FS
5CB
6EC
49 INT0
50 INT1
µP Bus
µP
INTERFACE
Internal Bus
BUS ARBITRATION
Thereare :
- The switching matrix,
- The time slot assigner,
- The 32 HDLC transmitters with associated DMA
controllers,
- The 32 HDLC receivers with associated DMA
controllers,
- The 16 Command/Indicateand MonitorChannel
transmitters belonging to two General Component Interfaces(GCI),
RAM
INTERFACE
RAM
Bus
STLC5464
- The 16 Command/Indicateand Monitor Channel
receivers belonging to two General Component
Interfaces(GCI),
- The memoryinterface,
- The microprocessor interface,
- The bus arbitration,
- The clock selection and time synchronization
function,
- The interruptcontroller,
- The watchdog,
5464-02.EPS
14/83
III - FUNCTIONAL DESCRIPTION
III.1- The SwitchingMatrix N x 64 KBits/S
III.1.1 - Function Description
The matrix performs a non-blockingswitch of 256
time slots from 8 Input Time Division Multiplex
(TDM) at 2 Mbit/sto 8 output Time Division Multiplex.A TDM is composedof 32 TimeSlots (TS)at
64 kbit/s. The matrix is designed to switch a 64
kbit/s channel (Variable delay mode) or an hyperchannel of data (Sequence integrity mode).So, it
will both provide minimum throughput switching
delayfor voiceapplicationsandtimeslotsequence
integrity for data applications on a per channel
basis.
The requirements of theSequence Integrity(n*64
kbit/s)mode are the following:
Allthe time slotsof agiveninputframemust beput
out during a same output frame.
The time slots of an hyperchannel(concatenation
of TS in the same TDM) are not crossed together
at output in different frames.
In variable delay mode, the time slot is put out as
soon as possible. (The delay is two or three time
slots minimum between input and output).
For test facilities, any time slot of an OutputTDM
(OTDM) can be internally looped back into the
sameInput TDM number(ITDM) at thesame time
slotnumber.
A Pseudo Random Sequence Generator and a
Pseudo Random Sequence Analyzer are implemented in thematrix. They allowthe generationa
sequence on a channel or on a hyperchannel,to
analyse it and verify its integrity after several
switching in the matrix or some passing of the
sequenceacross different boards.
The Frame Signal (FS) synchronises ITDM and
OTDMbut a programmabledelay or advancecan
beintroducedseparatelyoneachITDMand OTDM
(a half bit time, a bittime or two bit times).
An additionalpin (PSS) permitsthe generationof
a programmable signal composed of 256 bits per
frameat abit rate of 2048 kbit/s.
STLC5464
An externalpin (NDIS) asserts a high impedance
on all the TDM outputs of the matrix when active
(duringthe initialization of theboard for example).
III.1.2 - Architecture of the Matrix
The matrix is essentially composed of buffer data
memoriesand a connection memory.
Thereceivedserialdatais firstconvertedtoparallel
byaserialto parallelconverterandstoredconsecutively in a 256 position Buffer Data Memory (see
Figure 2 onPage 16).
To satisfy the Sequence Integrity (n*64 kbit/s) requirements,the data memoryis built with an even
memory, an odd memory and an output memory.
Twoconsecutiveframesare storedalternatively in
theoddandevenmemory.Duringthe timeaninput
frame is stored, the one previouslystoredis transferred into the output memory according to the
connectionmemoryswitchingorders.Aframelater,
the outputmemoryis readand datais convertedto
serial and transferred to the outputTDM.
III.1.3 - ConnectionFunction
Twotypes of connectionsare offered:
- unidirectionalconnection and
- bidirectionalconnection.
Anunidirectionalconnectionmakesonlytheswitch
ofaninputtimeslotthroughan outputonewhereas
abidirectionalconnectionestablishesthelinkin the
other direction too. So a doubleconnectioncan be
achieved by a single command (see Figure 3 on
Page 17).
III.1.4 - LoopBack Function
Any time slot of an Output TDM can be internally
looped back on the timeslot which has the same
TDM numberand the same TS number
(OTDMi,TSj) ----> (ITDMi, TSj).
In the case of a bidirectional connection, only the
one specified by the microprocessoris concerned
by the loop back (see Figure 4 onPage 17).
15/83
STLC5464
III - FUNCTIONAL DESCRIPTION(continued)
Figure2 :SwitchingMatrixData Path
III - FUNCTIONAL DESCRIPTION(continued)
Figure3 :Unidirectionaland Bidirectional Connections
STLC5464
Figure4 : LoopBack
OTSy, OTDMq
DOWN STREAM
OTSy, OTDMq
DOWN STREAM
OTSy, OTDMq
DOWN STREAM
ITSy, ITDMq
UP STREAM
DATA
MEMORY
n x 64kb/s
Unidirectional Connection
DATA
MEMORY
n x 64kb/s
DATA
MEMORY
n x 64kb/s
Bidirectional Connection
OTSV
DATA
MEMORY
n x 64kb/s
ITSx,ITDMp
DOWN STREAM
ITSx,ITDMp
DOWN STREAM
OTSx, OTDMp
UP STREAM
DOWN STREAM
p, q = 0 to7
x, y = 0 to 31
ITSx,ITDMp
5464-04.EPS
ITSy, ITDMq
UP STREAM
Loopback per channel relevant if bidirectional connection has been done.
III.1.5 - Delay through the Matrix
III.1.5.1- VariableDelay Mode
In the variable delay mode, the delay through the
matrixdependsontherelativepositionsof theinput
and output time slots in the frame.
So,some limits are fixed:
- the maximumdelay is a frame+ 2time slots,
- the minimum delay is programmable.
Three time slotsifIMTD = 1, inthis case n = 2 in
the fo rmula he reafter or two time slots if
IMTD = 0, in this case n = 1 inthe sameformula
(see Paragraph ”Switching Matrix Configuration
Reg SMCR (0C)H” on Page60).
Allthe possibilitiescan be rankedin three cases :
a) If OTSy> ITSx+ n then the variable delay is :
OTSy- ITSxTime slots
DATA
MEMORY
n x 64kb/s
Loop
OTSx, OTDMp
UP STREAM
p, q = 0 to 7
x, y = 0 to 31
b) IfITSx<OTSy< ITSx+ n thenthevariabledelay
is :
OTSy - ITSx+ 32 Timeslots
c) OTSy < ITSxthenthe variable delay is :
32 - (ITSx- OTSy)Time slots.
N.B. Ruleb) andrule c) are identical.
For n = 1 and n =2, see Figure 5 on Page 18.
III.1.5.2- SequenceIntegrity Mode
In the sequenceintegrity mode (SI = 1, bit located
in theConnectionMemory),theinputtimeslotsare
put out 2 frames later (see Figure 6 on Page 19).
Inthiscase,thedelayis definedbya singleexpression :
ConstantDelay = (32 - ITSx)+ 32 + OTSy
So, the delay in sequence integrity mode varies
from 33 to 95 time slots.
5464-05.EPS
17/83
STLC5464
III - FUNCTIONAL DESCRIPTION(continued)
Figure5 :VariableDelay through the matrixwith ITDM = 1
1) Case : If OTSy > ITSx + 2, then Variable Dela y is : OTSy - ITSx TimeSlots
Frame nFrame n + 1
Inpu t
Frame
Output
Frame
2) Case : If ITSx≤OTSy≤ITSx + 2, then Variable Delay is : OTSy - ITSx + 32 TimeSlots
Inpu t
Frame
Output
Frame
ITS0ITS31 ITS0ITS31
OTS0OTS31
ITS0ITS31 ITS0ITS31
OTS0OTS31
ITSx ITSx+1 ITSx+2
y>x+2
Variable Delay
(OTSy - ITSx)
Frame nFrame n + 1
ITSx ITSx+1 ITSx+2
x≤y≤x+2
OTSy
Variable Delay : OTSy - ITSx + 32 TimeSlots
OTSy
ITSx
32 TimeS lots
OTSy
3) Case : If OTSy < ITSx, then Variable Delay is : 32 - (ITSx - OTSy) Tim eSlots
Frame nFrame n + 1
Inpu t
Frame
Output
Frame
ITS0ITS31 ITS0ITS31
OTS0OTS31
OTSy
ITSx
y<x
Variable Delay : 32 - (ITSx - OTSy) Time Slots
32 TimeSlots
18/83
ITSx
OTSy
5464-06.EPS
III - FUNCTIONAL DESCRIPTION(continued)
Figure6 :VariableDelay through the matrixwith ITDM = 0
1) Case : If OTSy > ITSx + 1, then Variable Delay is : OTSy - ITSx TimeSlots
Frame nFrame n + 1
STLC5464
Input
Frame
Output
Frame
2) Case : If ITSx ≤ OTSy≤ ITSx+ 1, then Variable Delayis : OTSy - ITSx + 32 TimeSlots
Input
Frame
Output
Frame
ITS0ITS31 ITS0ITS31
OTS0OTS31
ITS0ITS31 ITS0ITS31
OTS0OTS31
ITSx ITSx+1 ITSx+2
y>x+1
Variable Delay
(OTSy - ITSx)
ITSx ITSx+1 ITSx+2
x
≤ y ≤ x+1
OTSy
Frame nFrame n + 1
OTSy
Variable Delay : OTSy - ITSx + 32 TimeSlots
32 TimeSlots
ITSx
OTSy
3) Case : If OTSy < ITSx, then Variable Delay is : 32 - (ITSx- OTSy) TimeSlots
Frame nFrame n + 1
Input
Frame
Output
Frame
ITS0ITS31 ITS0ITS31
OTS0OTS31
OTSy
ITSx
y<x
Variable Delay : 32 - (ITSx- OTSy)TimeSlots
32 TimeSlots
ITSx
OTSy
5464-07.EPS
19/83
STLC5464
III - FUNCTIONAL DESCRIPTION(continued)
Figure7 :ConstantDelay through the matrix with SI = 1
Cons tant Delay = (32 -ITSx) + 32 + OTSy
ITS0
ITS:
OTS :
FramenFramen+1Framen+2
ITS31ITS0ITS31ITS0ITS31
Min. Constant Delay = 33TS
1+
Input Time Slot
Output TimeSlot
32 TimeSlots+ 0= 33
0≤x≤31
0≤y≤31
OTS0OTS 31
TimeSlots
20/83
Max. ConstantDelay = 95 TimeSlots
32 - 0+ 32+ 31= 95
(32 - ITSx)
+32+OTSy=Constant
OTS 31
TimeSlots
Delay
5464-08.EPS
III - FUNCTIONAL DESCRIPTION(continued)
III.1.6 - ConnectionMemory
III.1.6.1- Description
Theconnection memoryis composedof 256 locations addressed by the numberof OTDM and TS
(8x32).
Eachlocation permits :
- toconnecteachinputtimeslotto one outputtime
slot (If two or more output time slots are connected to the same input time slot number,there
is broadcasting).
- toselectthe variabledelaymodeorthesequence
integritymode for anytime slot.
- to loop back an outputtime slot.In thiscase the
contentsof aninputtimeslot(ITSx,ITDMp)is the
same as the output time slot (OTSx,OTDMp).
- to output the contents of the corresponding connection memory instead of the data which has
been stored in data memory.
- to output the sequence of the pseudo random
sequence generator on an output time slot: a
pseudo random sequencecan be insertedin one
or severaltime slots (hyperchannel)of thesame
Output TDM; this insertion must be enabled by
the microprocessor in the configuration register
of the matrix.
- todefinethe sourceof a sequenceby the pseudo
random sequence analyzer: a pseudo random
sequence can be extracted from one or several
time slots (hyperchannel)of thesame InputTDM
and routedto the analyzer;this extractioncanbe
enabled by the microprocessorin the configuration register of the matrix (SMCR).
- to assert a high impedance level on an output
time slot (disconnection).
The internal HDLC controller can run up to 32
channels in a conventional HDLC mode or in a
transparent (non-HDLC) mode (configurable per
channel).
Eachchannel bitrateis programmablefrom4kbit/s
to 64kbit/s.All the configurationsare alsopossible
from 32 channels (from 4 to 64 kbit/s) to one
channelat 2 Mbit/s.
Inreception,theHDLCtime slotscandirectlycome
from the input TDM DIN8 (direct HDLC Input) or
from any otherTDM inputafter switching towards
the output 7 of the matrix (configurable per time
slot).
In transmission,the HDLC frames are sent on the
output DOUT6 and on theoutput CB (with or without contention mechanism), or are switched towards the other TDM output via the input 7 of the
matrix (see Figure 8 on Page 22 and Paragraph
III.2.2on Page23).
III.2.1.1- Formatof the HDLC Frame
Theformatof anHDLCframeisthesameinreceive
and transmitdirectionand shownhere after.
III.2.1.2- Composition of an HDLC Frame
Opening Flag
Address Field (first byte)
Address Field (second byte)
Command Field (first byte)
Command Field (second byte)
Data (first byte)
III.1.6.2- Access to ConnectionMemory
Supposingthat theSwitchingMatrix Configuration
Register(SMCR) has been already written by the
microprocessor, it is possibleto accessto the connectionmemoryfrom microprocessor with the help
of two registers :
- ConnectionMemory Data Register(CMDR) and
- ConnectionMemory Address Register (CMAR).
III.1.6.3- Access to Data Memory
To extract the contents of the data memory it is
possibleto readthe data memory from microprocessorwith the help of the two registers :
- ConnectionMemory Data Register(CMDR) and
Data (optional)
Data (last byte)
FCS (first byte)
FCS (second byte)
Closing Flag
- OpeningFlag
- One or two bytes for address recognition(reception) and insertion(transmission)
III - FUNCTIONAL DESCRIPTION(continued)
Figure8 :HDLC and DMAControllerBlock Diagram
From Output 7
of the Matrix
From Output 6
of the Matrix
Direct HDLC Input
DIN 8
To Input 7 ofthe Matrix
TIME SLOT AS SIGNER
DOUT 6
Direct HDLC Output
Contention
Bus
P
µ
INTERFACE
32 Rx HDLC
32 ADDRES S
RECOGNITION
32 Rx FIFO’s
32 Rx DMAC32 Rx DMAC
32 CSMA-CR
32 Tx HDLC
32 Tx FIFO’s
Echo
RAM
INTERFACE
5464-09.EPS
22/83
III - FUNCTIONAL DESCRIPTION(continued)
III.2.1.3- Descriptionand Functions of the
HDLCBytes
- FLAG
The binarysequence01111110marks thebeginning and the end of the HDLCFrame.
Note : In reception,three possibleflag configurations are allowed and correctlydetected :
- two normal consecutiveflags :
...0111111001111110...
- two consecutiveflags with a ”0” common :
...011111101111110...
- a global common flag : ...01111110...
this flag is the closing flag for the current frame
and theopening flagfor the nextframe
- ABORT
The binary sequence 1111111 marks an Abort
command.
Inreception,sevenconsecutive1’s,insidea message, are detected as an abort command and
generatesan interrupt to the host.
In transmit direction, an abort is sent upon command of the micro-processor. No ending flag is
expected after the abort command.
- BITSTUFFING AND UNSTUFFING
This operation is done to avoid the confusion of
a databyte with a flag.
In transmission, if fiveconsecutive1’s appear in
theserialstreambeingtransmitted,azero isautomaticallyinserted(bit stuffing)after hefifth ”1”.
In reception, if fiveconsecutive”1” followed by a
zero are received, the ”0” is assumed to have
been inserted and is automatically deleted (bit
unstuffing).
- FRAMECHECK SEQUENCE
TheFrameCheckSequenceiscalculatedaccordi ng
totherecommendationQ921oftheCCITT.
- ADDRESS RECOGNITION
In the frame, one or two bytes are transmittedto
indicate the destinationof the message.
Two types of addressesare possible :
- a specific destinationaddress
- a broadcast address.
In reception, the controller compares the receive
addressesto internalregisters,whichcontainthe
addressmessage.4bitsinthe receivecommand
register (HRCR) inform the receiver of which
registers,it hasto takeinto accountfor the comparison.The receiver compares thetwo address
bytes of the message to the specific board address and the broadcast address. Upon an address match, the address and the datafollowing
are writtento the data buffers;upon an address
mismatch,the frame is ignored.So, it authorizes
the filteringof the messages.Ifno comparisonis
STLC5464
specified, each frame is received whatever its
addressfield.
In Transmission, the controller sends the frame including the destinati on or broadcastaddresses .
III.2.2 - CSMA/CRCapability
An HDLC channel can come in and goout by any
TDM input on the matrix. For time constraints,
direct HDLC Accessis achievedby the input TDM
(DIN 8) and theoutputTDM (DOUT6).
Intransmission,a timeslotofaTDMcanbe shared
between different sources in Multi-point to point
configuration(differentsubscriber’s boards for example). The arbitration system is the CSMA/CR
(Carrier Sense Multiple access with Contention
Resolution).
The contention is resolved by a bus connectedto
the CB pin (ContentionBus).This bus is a 2Mbit/s
wire line commonto allthe potentialsources.
Multi-HDLC
If a
thedatato transmitis sentsimultaneouslyontheCB
lineandtheoutputTDM. Theresultofthe contention
isreadbackontheEcholine.Ifacollisionisdetected,
the transmission is stoppedimmediately. Acontentionona bitbasisisso achieved. Each message to
be sentwithCSMA/CRhas a priorityclass(PRI= 8,
10) indicatedby theTransmit Descriptor and some
rulesare implementedto arbitratethe accessto the
line. The CSMA/CR Algorithm is given. When a
requestto send a message occurs, the transmitterdetermines if thesharedchannelisfree.The
Multi-HDLC
consecutive ”1” are detected (C dependingon the
message’spriority), the
its message. Each bit sent is sampled back and
compared with the original value to send. If a bit is
different, the transmission is instantaneously
stopped (before the end of this bit time) and will
restartas soonasthe
channel is freewithout interruptingthe microprocessor.
After a successful transmission of a message, a
programmablepenaltyPEN(1or2) isappliedtothe
transmitter (see ParagraphHDLC Transmit CommandRegisteron Page65).It guaranteesthat the
same transmitterwill nottakethe busanothertime
before a transmitterwhich has to send a message
of same priority.
In case of a collision, the frame which has been
abortedis automaticallyretransmittedby theDMA
controller without warning the microprocessor of
this collision. The frame can be located in several
buffers in external memory. The collision can be
detectedfrom the second bit of theopeningframe
to thelast but one bitof the closingframe.
hasobtained the accessto the bus,
listens to the Echo line. If C or more
Multi-HDLC
Multi-HDLC
beginsto send
willdetectthatthe
23/83
STLC5464
III - FUNCTIONAL DESCRIPTION(continued)
III.2.3 - TimeSlot AssignerMemory
Each HDLC channel is bidirectional and configurateby the Time Slot Assigner(TSA).
TheTSAis amemoryof 32 words(oneper physical
TimeSlot)whereall ofthe 32inputand outputtime
slots of the HDLC controllerscan be associated
to logical HDLC channels. Super channels are
created by assigning the same logical channel
numberto severalphysicaltime slots.
The following features are configurate for each
HDLC time slot :
- Time slot used or not
- Onelogicalchannel number
- Itssource : (DIN 8 or theoutput 7 of thematrix)
- Its bit rate and concerned bits (4kbit/s to
64kbit/s). 4kbit/s correspondto one bit transmitted each two frames. This bit mustbe present in
two consecutive frames in reception, and repeated twice in transmission.
- Itsdestination :
- direct output on DOUT6
- direct output on DOUT6and on the Contention
Bus(CB)
- on another OTDM via input7 of the matrix and
on theContentionBus (CB)
III.2.4 - Data Storage Structure
Dataassociatedwitheach Rx andTx HDLCchannelisstoredinexternalmemory;Thedatatransfers
between the HDLC controllers and memory are
ensuredby32 DMAC(DirectMemoryAccessController)in receptionand 32 DMAC in transmission.
The storage structure chosen in both directionsis
composed of one circular queue of buffers per
channel. In such a queue, each data buffer is
pointedto by a Descriptorlocatedinexternalmemory too. The main information contained in the
Descriptor is the address of the Data Buffer, its
length and the address of the next Descriptor; so
the descriptors can belinked together.
This structure allows to :
- Store receive frames of variable and unknown
length
- Readtransmitframes stored in external memory
by thehost
- Easilyperform the frame relay function.
III.2.4.1- Reception
At the initialization of the application, the host has
to prepare an Initialization Block memory, which
containsthe firstreceive buffer descriptoraddress
for eachchannel, and the receivecircularqueues.
At the opening of a receive channel, the DMA
controller reads the address of the first buffer descriptorcorrespondingtothischannelin the initialization Block. Then, the data transfer can occur
withoutinterventionof the processor(see Figure 9
on Page 25).
Anew HDLCframe always begins in a new buffer.
A long frame can be splitbetween severalbuffers
if thebuffersize is not sufficient.All the information
concerning the frame and its location in the
circular queue is included in the Receive Buffer
Descriptor:
- The ReceiveBufferAddress(RBA),
- The size of thereceive buffer (SOB),
- Thenumberof byteswrittenintothebuffer(NBR),
- The NextReceive DescriptorAddress (NRDA),
- The status concerningthe receive frame,
- The controlof the queue.
III.2.4.2- Transmission
In transmission, the data is managed by a similar
structure as in reception (see Figure 10 on
Page 25).
By thesame way, a frame can be split up between
consecutivetransmit buffers.
The main information contained in the Transmit
Descriptorare :
The principle of the frame relay is to transmit a
frame which has been received without treatment.
A new heading is just added. This will be easily
achieved,takingintoaccountthat the queue structure allows the transmission of a frame split between several buffers.
24/83
III - FUNCTIONAL DESCRIPTION(continued)
Figure9 :Structureof the Receive Circular Queue
Initialization Block
up to 32 channels
RDA0
RDA1
RDA31
Initial Receive
Descriptor
NRDA
RBA
RECEIVE
DMA
CONTROLLER
Receive
Descriptor 2
NRDA
RBA
STLC5464
Receive
Buffer 1
Receive
Descriptorn
NRDA
RBA
Receive
Buffer n
One receive circular queue by channel
Figure10 : Structureof the TransmitCircular Queue
Initialization Block
up to 32 channels
TDA0
TDA1
TDA31
Initial Transmit
Descriptor
NTDA
TBA
Receive
Buffer 3
TRANSMIT
DMA
CONTROLLER
Receive
Buffer 2
Receive
Descriptor3
NRDA
RBA
Transmit
Descriptor 2
NTDA
TBA
5464-10.EPS
NTDA
TBA
Transmit
Descriptor n
Transmit
Buffer n
Transmit
Buffer 1
Transmit
Buffer 3
One transmit circular queue by channel
Transmit
Buffer 2
Transmit
Descriptor3
NTDA
TBA
5464-11.EPS
25/83
Loading...
+ 58 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.