The ATM-SHAP4-B: Multi port & grouping Traffic Shaper
5.1.6 Queue status bits
There are three status bits of the queue, the empty, full and indication level status bit. These bits are automatically updated when
a parameter is read from the on chip queue control RAM. The indication level status bit is set if the queue level is larger than the
indication level. The level status can also be read from the queue status interface.
5.1.7 Read/Write queue control RAM
The queue base address, queue size, indication level, discarded cells counter, read pointer, write pointer and the three configuration
bits (
all purpose data register
1 bit 5..7) are stored in the queue control RAM. It is not possible to access the queue control RAM
directly from the microprocessor. Instead the
all purpose data register
is used for intermediate data storage. Under all conditions it
is possible to address the queue control RAM.
Write queue control RAM To write to the queue control RAM first the
all purpose data register
0..16 must be written. It is
important that the read pointer, write pointer and bit 7 of the
all purpose data register
1 used by the queue control algorithm are
cleared when setting up a queue control entry. Then the
class select register
must be set with the number of the class to write to.
Finally the command
transfer to queue control RAM
(code 0x03) must be written to the
transfer control register
. The SHAP4-B
will then update the queue control RAM in such a way that it does not interfere with the normal operations. Bit 7 of the
transfer
control register
shows the status of the transfer:
If bit 7 of the
transfer control register
is cleared the transfer is still pending. No new data may be written to the
all purpose
data register
while a transfer is pending.
If bit 7 of the
transfer control register
is set the transfer is ready.
Read queue control RAM To read the data from the queue control RAM, the first task of the microprocessor is to set the
class
select register
with the number of the class to read. The command
transfer from queue control RAM
(code 0x02) must be written
to the
transfer control register
. The SHAP4-B will then read the queue control RAM data and transfer it to the
all purpose data
register
. Bit 7 of the
transfer control register
shows the status of the transfer:
If bit 7 of the
transfer control register
is cleared the transfer is still pending. The data in the
all purpose data register
is not
yet valid
If bit 7 of the
transfer control register
is set the transfer is ready. The data in the
all purpose data register
is valid
Only after the transfer is completed the microprocessor reads the values from the
all purpose data register
.
5.2 Leaky Bucket select register
When working in single Leaky Bucket mode (controlled by bit 7 of the
Leaky Bucket control register
1) the SHAP4-B still has two
single Leaky Bucket parameters per class available. This register determines for each class whether single Leaky Bucket one or two
is used.
5.3 Read/Write Shaping settings
The shaping settings are stored in two RAMs:
The Leaky Bucket parameter RAM
The Leaky Bucket level RAM
Both RAMs can be set independently. It is allowed to change the Leaky Bucket settings while the SHAP4-B is active.
All shaping parameters for all classes whether they are used or not should be initialized after reset! If a class is not used the
related shaping parameters should be set to not OK (see chapter 3.2.2 Stop data stream).
Page 30 of 82
This document is property of ATecoM GmbH. All rights are reserved. Reproduction in part or in whole is prohibitedwithout writtenconsent of the copyright owner. Technical Specifications are subject to change without priornotice.
November 9, 2000