
MT90500
58
4.4.2.1
RX_SAR Control Structures
The RX_SAR Control Structure is quite similar to the Transmit Control Structure shown in Figure 16, but it has
added cell delay variation control fields (as seen in Figure 22). The “First Entry”, “Current Entry”, “Last Entry”,
“AS”, “S”, “Payload Size”, “V”, and “RX Circular Buffer Base Address” fields all have the same properties as in
the TX_SAR.
BS
0
7
8
15
Last Entry
First Entry
Figure 22 - RX_SAR Control Structure
Average Lead
Payload Size
Current Entry
AAL1 Byte
Reserved
RX_SAR Write Pointer
Minimum Lead
Maximum Lead
RX Circular Buffer Base Address
(bits<20:6>)
RX Circular Buffer Base Address
(bits<20:6>)
RX Circular Buffer Base Address
(bits<20:6>)
RX Circular Buffer Base Address
(bits<20:6>)
RX Circular Buffer Base Address
(bits<20:6>)
RX Circular Buffer Base Address
(bits<20:6>)
V
V
V
V
V
V
V
V
V
V
+00
+02
+04
+06
+08
+0A
+0C
+0E
+10
+12
+14
+16
+F8
+FA
+FC
+FE
S
0
AS
0
Pointer to First RX Circular Buffer Entry
20
0
7
8
0
First Entry
Upper Struct Address
Pointer to Current RX Circular Buffer Entry
20
0
7
8
0
Current Entry
Upper Struct Address
Pointer to Last RX Circular Buffer Entry
20
0
7
8
0
Last Entry
Upper Struct Address
First Entry:
Indicates location of the first RX Circular Buffer Base
Address within the RX_SAR Control Structure.
Last Entry:
Indicates where the last RX Circular Buffer Base
Address is located within the RX_SAR Control Structure.
Minimum Lead:
Indicates the minimum number of bytes that
must always be valid in the RX Circular Buffer (to get the number
of bytes, multiply Minimum Lead by four). Usually initialized to
01h.
Maximum Lead:
Indicates the maximum number of bytes that
may be valid in the RX Circular Buffer (to get the number of bytes,
multiply Maximum Lead by four).
Average Lead:
Indicates the average number of bytes that are
valid in the RX Circular Buffer (to get the number of bytes, multiply
Average Lead by four). Equal to (Minimum Lead + Maximum
Lead) / 2.
AS:
AAL Type. “00”= CBR-AAL0 & CBR-AAL5; “01”=Reserved;
“10”=AAL1; “11”=AAL1-SRTS
Payload Size:
Indicates the number of payload bytes within an
ATM cell. Full cell = 2Fh (48 bytes). Partially-filled cells = 03h to
2Eh.
Current Entry:
Indicates location of the current Receive Circular
Buffer. Must be initialized to First Entry value and is incremented
by hardware (or realigned with arrival of pointer byte).
AAL1 Byte:
Used by hardware to check for cell loss / misinser-
tion. Should be initialized to 00h.
S:
Structure Initialized. ‘0’ = uninitialized; ‘1’ = initialized. Must be
set as ‘0’ by S/W.
BS:
Circular Buffer Size. “000” = 64 bytes; “001” = 128 bytes;
“010” = 256 bytes; “011” = 512 bytes; “100” = 1024 bytes; other =
reserved.
RX_SAR Write Pointer:
When S bit is ‘0’, uninitialized; when S
bit is ‘1’, indicates which byte in the RX Circular Buffer the hard-
ware will write first with the data in the next cell.
V:
Receive Circular Buffer Valid Bit. ‘0’ = not valid; ‘1’ = valid
(write received cell data to a circular buffer).
RX Circular Buffer Base Address:
This is the upper part (bits
20:6) of the address that points to a Receive Circular Buffer.
Note
: RX Circular Buffers
must
be located on boundaries corre-
sponding to the size of the buffer (see Figure 7 on page 37 for
clarification).
Reserved:
Set to all zeroes.
Reserved
Minimum Structure
Size - 14 bytes
Maximum Structure
Size - 256 bytes
20
18 17
0
3
4
RX Structure Address
(set by software)
Pointer to Start of RX_SAR Control Structure
RXBASE
(from 4000)
0 0 0 0
0
Note:
Upper Struct Address is obtained from the upper 13 bits
(i.e. bits<20:8>) of the Pointer to Start of RX_SAR Control
Structure.
Note:
RX_SAR Control Structures must start on 16-byte boundaries
and
cannot
overlap 256-byte boundaries.
RX Circular Buffer Base Address
(bits<20:6>)
RX Circular Buffer Base Address
(bits<20:6>)
RX Circular Buffer Base Address
(bits<20:6>)
RX Circular Buffer Base Address
(bits<20:6>)