5-3
Address Processor KE5B256B1
5.2 Table Configuration
Table Configuration and CAM table
The CAM table construction of the device can be defined
flexibility by Table Configuration. There are eight variations of the CAM Table Configuration, as shown below.
• 32 bits x 8,192 entries (1 segment construction)
• 64 bits x 4,096 entries (2 segment construction)
• 96 bits x 2,728 entries (3 segment construction)
• 128 bits x 2,048 entries (4 segment construction)
• 160 bits x 1,636 entries (5 segment construction)
• 192 bits x 1,364 entries (6 segment construction)
• 224 bits x 1,168 entries (7 segment construction)
• 256 bits x 1,024 entries (8 segment construction)
The above constructions are defined by setting the Boundary Bit and the segment number (TC data). The 8,192CAM word (0H~1FFFH) is actually divided into four
banks. The same configuration is necessary for all banks.
In the case of one entry n segment construction, define the
segment number cyclically (e.g. 0, 1, 2,•••, n-1, 0, 1, ••• )
from the head CAM word of each bank, and set the Boundary Bit of the segment number 0 word to "1" and the other
words to "0." This operation concatenates the continuous
n segments (segment number 0 ~ segment number n) as one
entry. The concept of an entry in Table Configuration is
shown in Fig. 5.2.1. Each entry can contain contents extending across multiple segments.
In this case, the entry number m of one bank becomes the
maximum integer which satisfies the following formula.
n x m < 2,048 (1 < n < 8)
The total entry number of the four banks is 4m.
When one entry is constructed of 3, 5, 6 or 7 segments,
there are remaining segments in every bank. The segment
number of the remaining segments must be set to 7H
("111"), and the Boundary Bit must be set to "0." It is
necessary that the number of the remaining segments is in
no case identical with the quotient obtained by division of
the word number (8,192) by n because every four bank has
the remaining segments.
The device does not operate as a CAM table without the
Table Configuration. Therefore, after Power On and the
device reset operation, Table Configuration is necessary
before using the device.
Table Configuration Procedure
The Table Configuration procedure is described below.
First, write "n-1" value at the WW<2:0> bits of the CNTL
register. The value "n-1" is important when using the automatic increment function of the MEMHHA register and
MEMHEA register, which are explained in Chapter 8. At
this time, the other bits of the CNTL register must also be
set to appropriate values for every setting of the device. A
bit map of the CNTL register is shown in Chapter 13.
Move the TC sub-mode to write the TC data with the
STR_TC command. Write the CAM address in the AR register and the TC data in the CAM table in the MEMAR
register. The bit maps of these registers are shown in Chapter 13. The TC data must be set at all words of the four
banks. When an entry comprises 3, 5, 6 or 7-segments, the
remaining segments in each bank must be set (segment
number "111," Boundary Bit "0").
In the cascaded systems, the same configuration is necessary for all devices. In this case, the broadcast writing
method, which can write all devices simultaneously, is useful.
The written TC data can be confirmed by reading the
MEMAR register in the TC sub-mode. Escape to the TC
sub-mode using the END_TC command after setting the
TC data at all 8,192 words. At the end of Table Configuration, a frame of the table is complete, and all entries become
empty. The GEN_FL command must be executed immediately after Table Configuration so that the device will recognize the empty condition of all the entries. See Chapter
8 and Chapter 12 for a detailed discussion of the GEN_FL