Hardware compression with search string matching
11120867 · 2021-09-14
Assignee
Inventors
Cpc classification
G06F16/9535
PHYSICS
G11C15/00
PHYSICS
International classification
G11C11/41
PHYSICS
G06F16/28
PHYSICS
G06F16/9535
PHYSICS
H03M7/30
ELECTRICITY
Abstract
A plurality of stored data sequences that match one or more search data sequences are determined. Each of the stored data sequences of the plurality of stored data sequences comprise a plurality of data elements and the stored data sequences are stored in a content addressable memory array. A longest stored data sequence of the plurality of stored data sequences is determined using a plurality of tracing circuits. An address associated with the longest stored data sequence of the plurality of stored data sequences is determined. A count of data elements of the longest stored data sequence of the plurality of stored data sequences is determined.
Claims
1. An apparatus comprising: one or more iterative data searching circuits, comprising: a write buffer configured to store a plurality of search strings; and a content addressable memory (CAM) coupled to the write buffer, the CAM comprising a plurality of CAM cell rows each comprising a plurality of CAM cells each configured to store a data segment of a data set, wherein the CAM is configured to compare a search string of the plurality of search strings to the CAM cells in a same first half of a period of a clock set-reset (SR); a comparison result controlling circuit comprising: a plurality of latches each coupled to one of the CAM cell rows via one of a plurality of match lines, each of the latches indicating whether the data segment stored in a cell of the CAM cell row matches the search string of the plurality of search strings; and a plurality of signal generating circuits each coupled to one of the match lines, each signal generating circuit configured to indicate successive matches between a plurality of data segments stored in the CAM cells and respective search strings of the plurality of search strings; and a data compression controller configured to determine a data string comprised of the data segments that successively matches the search strings of the plurality of search strings indicated by the plurality of signal generating circuits, and to compress the data set by replacement of the data string with compression data, wherein determining the data string comprises: performing, at a same time, a plurality of tracings using the data segments and the plurality of search strings; and selecting the data string from a longest match sequence tracing of the plurality of tracings.
2. The apparatus of claim 1, wherein the compression data comprises a position indicator indicating a number of characters that has been replaced with the compression data.
3. The apparatus of claim 1, wherein the CAM comprises a plurality of bit line pairs that are coupled to the write buffer, wherein the write buffer drives the bit line pairs according to the plurality of search strings to compare with data stored in each of the CAM cell rows.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
DESCRIPTION OF EMBODIMENT(S)
(14) In the following, an embodiment of the present inventive subject matter will be described in detail with reference to the accompanying drawings.
(15)
(16) The microcomputer 10 further includes a plurality of iterative data searching apparatuses 20a, 20b and so on according to this embodiment, which are connected to the bus 18 via a data compression controller 22 that controls the operation of the iterative data searching apparatuses. The iterative data searching apparatuses 20a, 20b and so on have the same configuration, and P+1 iterative data searching apparatuses are provided in this embodiment. In the following, the P+1 iterative data searching apparatuses will be collectively referred to as an “iterative data searching apparatus 20”, and a configuration of the iterative data searching apparatus 20 will be described. Each individual iterative data searching apparatus will be referred to as a block, such as a “block 0” and a “block P”, to distinguish it from the other iterative data searching apparatuses.
(17)
(18) The iterative data searching circuit 21 has a CAM cell array 26 comprising a large number of content addressable memory cells 28 arranged in a matrix (the content addressable memory will be abbreviated as CAM hereinafter). In the drawing, the CAM cells 28 are shown by circles. In the CAM cell array 26, N+1 word lines WL0 to WLN, N+1 match lines MATCH0 to MATCHN and M+1 bit line pairs BL0 and BL0′ to BLM and BLM′ are each arranged in a matrix, and each CAM cell 28 is connected to any of the word lines WL0 to WLN, any of the match lines MATCH0 to MATCHN and any of the bit line pairs BL0 and BL0′ to BLM and BLM′.
(19) As shown in
(20) To write 1-bit data to the CAM cell 28, the word line WL is set at HIGH level, the bit line BL is set at a level corresponding to data D to be written (HIGH level if the data D is “1”, and LOW level if the data is “0”), and the bit line BL′ is set at a level inverted from the level of the bit line BL (LOW level if the bit line BL is at HIGH level, and HIGH level if the bit line BL is at LOW level). This causes the N-MOSFETs 34 and 36 to turn on, and thus, the data supplied via the bit lines BL and BL′ is held in the loop of the NOT circuits 30 and 32.
(21) The output terminal of the NOT circuit 30 is connected to the gate of the N-MOSFET 38, and the output terminal of the NOT circuit 32 is connected to the gate of the N-MOSFET 40. The NOT circuit 32 outputs data (Q′) inverted from the data D, and the NOT circuit 30 outputs data Q (=D) inverted from the data Q′. The drains of the N-MOSFETs 38 and 40 are connected to the bit lines BL′ and BL, respectively, and the sources of the N-MOSFETs 38 and 40 are connected to the gate of an N-MOSFET 42. The drain of the N-MOSFET 42 is connected to the match line MATCH, and the source of the N-MOSFET 42 is grounded.
(22) In this embodiment, as an example, M+1 CAM cells 28 are connected to the same word line and the same match line, so that M+1-bits of data can be stored in the plurality of CAM cells 28 connected to the same word line and the same match line (these CAM cells will be referred to as a CAM cell row hereinafter). In the CAM cell array 26, an address is allocated to each CAM cell row.
(23) Referring to
(24) A system clock CLOCK is input from the data compression controller 22 to the timing controller 50, and the timing controller 50 generates and outputs a clock SR synchronized with the system clock CLOCK. The clock SR is also output to a write buffer 56 connected to the timing controller 50.
(25) The write buffer 56 is connected to the data compression controller 22, and search data is successively input to the write buffer 56 from the controller 22. The write buffer 56 is connected to the bit line pairs BL0 and BL0′ to BLM and BLM′, holds the input search data, and changes the level of the bit line pairs BL0 and BL0′ to BLM and BLM′ (that is, drives the bit line pairs) according to the value of the held search data at a at a timing synchronized with the clock SR input from the timing controller 50. While the write buffer 56 is driving the bit line pairs according to predetermined search data, the predetermined search data is compared with the data stored in each CAM cell row and written to a predetermined CAM cell row.
(26) The timing controller 50 is also connected to an address decoder 52, and the clock SR is also output to the address decoder 52. The address decoder 52 is connected to the data compression controller 22, and the data compression controller 22 designates the address of the CAM cell row to which the search data is to be written (a write address WADR). The word lines WL0 to WLN are connected to the address decoder 52, and the address decoder 52 asserts (enables) the word line of the CAM cell row corresponding to the designated write address WADR and writes the predetermined search data to the CAM cell row corresponding to the designated address at a timing synchronized with the clock SR. More specifically, the predetermined search data is written to the CAM cell row corresponding to the designated address after comparison of the predetermined search data with the data stored in each CAM cell row during a period in which the write buffer 56 is driving the bit line pairs according to the predetermined search data.
(27) N+1 match line controllers 58.sub.0 to 58.sub.N, each of which is connected to the corresponding one of the match lines MATCH0 to MATCHN, is also connected to the timing controller 50, and the clock SR is also output to the match line controllers 58.sub.0 to 58.sub.N. Based on the input clock SR, the match line controllers 58.sub.0 to 58.sub.N charge (precharge) the match lines MATCH0 to MATCHN to HIGH level before the search data is compared with the data stored in each CAM cell row. The precharging of the match lines by the match line controllers 58.sub.0 to 58.sub.N occurs in a period after driving of the bit line pairs according to the predetermined search data by the write buffer 56 is completed and before driving of the bit line pairs according to the next search data is started.
(28) The match lines MATCH0 to MATCHN are also connected to a comparison result controlling circuit 60. As shown in
(29) The match line MATCH1 is connected to an input terminal of the latch 62.sub.1, and an output terminal of the latch 62.sub.1 is connected to one of two input terminals of each of AND circuits 68.sub.1 and 70.sub.1 in the signal generating circuit 64.sub.1. To the other of the two input terminals of the AND circuit 68.sub.1, an output terminal of an OR circuit 72.sub.1 is connected. One of two input terminals of the OR circuit 72.sub.1 and the other of the two input terminals of the AND circuit 70.sub.1 are connected to an output terminal of the latch 66.sub.0 in the preceding stage. An output terminal of the AND circuit 68.sub.1 is connected to an input terminal of the latch 66.sub.1, and an output terminal of the latch 66.sub.1 is connected to an input terminal of each of an OR circuit 72.sub.2 and an AND circuit 702 (neither shown) in the signal generating circuit 642 in the following stage, as with the output terminal of the latch 66.sub.0 described above. The output terminal of the latch 66.sub.1 is also connected to an input terminal of a first priority encoder 74. An output terminal of the AND circuit 70.sub.1 is connected to one of input terminals of an OR circuit 78. To the other input terminals of the OR circuit 78, output terminals of AND circuits 70.sub.0 and 70.sub.2 to 70.sub.N (not shown) are connected. An output terminal of the OR circuit 78 is connected to one of input terminals of an OR circuit 80. To the other input terminals of the OR circuit 80, output terminals of the OR circuits 78 in the other iterative data searching circuits 21 are connected. An output terminal of the OR circuit 80 is connected to input terminals of OR circuits 72.sub.0 to 72.sub.N in the signal generating circuits 64.sub.0 to 64.sub.N via an inverter, not shown (only the OR circuit 72.sub.1 is shown in the drawing). A feedback signal ORFB output from the OR circuit 80 is inverted and then input to the OR circuits 72.sub.0 to 72.sub.N. The feedback signal ORFB output from the OR circuit 80 is also output to the data compression controller 22 (see
(30)
(31) An output terminal of the first priority encoder 74 is connected to an input terminal of the second priority encoder 76. The first priority encoder 74 encodes an address corresponding to a signal at HIGH level after a “search” operation of the signals input from the latches 66.sub.0 to 66.sub.N in the comparison result controlling circuit 60 and outputs the encoded address as a match address MADR0 to the second priority encoder 76, and outputs a logical sum of the signals input from the latches 66.sub.0 to 66.sub.N as a match signal MSIG0 to the second priority encoder 76. If a plurality of signals of the signals input from the latches 66.sub.0 to 66.sub.N are at HIGH level, an address of the content addressable memory cell row of the highest priority according to a predetermined criterion, for example, the lowest address or the address closest to the write address WADR at that point in time, is output as the match address MADR0. The reason why the latter address is output is because distance information used in compression has a small volume and therefore leads to a high compressibility.
(32) To the input terminal of the second priority encoder 76, the match addresses MADR and the match signals MSIG output from the first priority encoders 74 in the other iterative data searching circuits 21 are also input. An output terminal of the second priority encoder 76 is connected to the data compression controller 22.
(33) The second priority encoder 76 has substantially the same configuration as the first priority encoder 74. The second priority encoder 76 outputs an address of the highest priority according to a predetermined criterion among the addresses for which the match signals MSIG0 to MSIGP are at HIGH level among the addresses MADR0 to MADRP input from the plurality of first priority encoders 74, for example, an address formed by adding the address of the relevant block (the address allocated to the relevant one of the plurality of iterative data searching apparatuses) to the lowest address or the address closest to the write address WADR at that point in time, as the match address MADR to the data compression controller 22, and outputs a signal indicating a logical sum of the match signals MSIG0 to MSIGP input from the plurality of first priority encoders 74 as the match signal MSIG to the data compression controller 22.
(34) Next, as an effect of this embodiment, a comparison operation that occurs in the iterative data searching circuit 21 will be described. To compress data to be compressed (original data), the data compression controller 22 successively extracts unit data having a predetermined bit length from the original data as search data and successively outputs the search data to the iterative data searching circuit 21 along with the search instruction SEARCH and the write address WADR, as described later.
(35) In the iterative data searching circuit 21 having received the search instruction SEARCH, the timing controller 50 outputs the clock SR to the write buffer 56, the address decoder 52 and the match line controllers 58.sub.0 to 58.sub.N, the match line controller 58 precharges the match lines MATCH0 to MATCHN before the comparison operation by the CAM cell array 26, and the write buffer 56 holds the input search data and drives the bit line pairs BL0 and BL0′ to BLM and BLM′ according to the search data.
(36) In each CAM cell 28 in the CAM cell array 26, the N-MOSFET 38 is turned on if the data Q output from the NOT circuit 30 is “1” (HIGH level), and the N-MOSFET 40 is turned on if the data Q′ output from the NOT circuit 32 is “1”. Therefore, if the data Q (Q′) held in the loop of the NOT circuits 30 and 32 matches with the data D (D′) supplied through the bit line pairs BL and BL′, the N-MOSFET 42 is not turned on. And if the data Q (Q′) does not match with the data D (D′), a current flows from the drain to the source of either of the N-MOSFETs 38 and 40 that is turned on, and the N-MOSFET 42 is turned on. As a result, the level of the precharged match line MATCH is reduced to LOW level (discharge).
(37) The data comparison described above simultaneously occurs in the CAM cells 28. A plurality of CAM cells 28 (a CAM cell row) is connected to one match line MATCH, and the comparison operation between the input character data and the character data stored in the CAM cell row is generally completed in the first half of one period of the clock SR. Each match line is maintained at HIGH level only if the N-MOSFET 42 is not turned on in all the CAM cell 28 connected thereto, that is, if the character data stored in the CAM cell row matches with the character data input to the write buffer 56, and is set at LOW level if the character data do not match with each other.
(38) In the second half of one period of the clock SR, the address decoder 52 asserts (enables) the word line of the CAM cell row corresponding to the input write address WADR, and the search data is written to the CAM cell row. Then, when writing of the search data to the CAM cell row is completed, the word line is set at LOW level, and driving of each bit line pair by the write buffer 56 is stopped, the match line controller 58 precharges each match line again.
(39) The operation (comparison operation) described above occurs in one period of the clock SR and is repeated in synchronization with input of the search data, the search instruction SEARCH and the write address WADR from the data compression controller 22.
(40) The character data in the above description is an example of data element. The feedback signal ORFB set at “1” is an example of row presence information that indicates that a row of matching data elements is stored, that is, first row presence information. The match address MADR is an example of row address information that indicates the address at which the row of matching data elements is stored, that is, first row address information. The part formed by the signal generating circuit 64, the latch 66, the first priority encoder 74, the second priority encoder 76 and the OR circuit 78 is an example of a generating circuit, in particular, a primary generating circuit. Furthermore, the data compression controller 22 is an example of a determining part that determines the search start point and the position and length of the data element row.
(41) Next, an operation of the comparison result controlling circuit 60 will be described with reference to
(42) As shown at operation 502, when character data “A” is first input as the search data, the comparison result is “match” in the CAM cell rows of addresses “0” and “2” (enclosed by the thick frame in
(43) As shown at operation 502, at this point in time, the levels held in the latches PS0 to PS5 are LOW level (“0” in
(44) As shown at operation 504, when character data “B” is input as the next search data, the comparison result is “match” in the CAM cell rows of addresses “1”, “3” and “4”, and the levels of the match lines (only the match lines MATCH1, MATCH3 and MATCH5 are at HIGH level) are held in the latches ML0 to ML5. Then, in the next period, the outputs of the latches ML1, ML3 and ML5 are set at HIGH level, and the outputs of the latches PS0 and PS2 (that is, the latches PS in the respective preceding stages of the latches ML1 and ML3) are set at HIGH level, so that the signals output from the AND circuits 701 and 703 are set at HIGH level, and the feedback signal ORFB0 output from the OR circuit 78 and the feedback signal ORFB output from the OR circuit 80 are set at HIGH level, as shown at operation 504.
(45) As can be seen from the above description, the feedback signal ORFB is set at high level only if two or more successive characters match with the stored data, that is, if a data sequence comprising a plurality of successively input pieces of search data is already stored in the CAM cell array 26. If it is assumed that the first priority encoder 74 outputs the lowest address as the match address MADR0, the match address MADR0 is an address “0”, which corresponds to the latch PS0. Although the match address MADR output from the second priority encoder 76 depends on the value of the match addresses input from the other iterative data searching apparatuses, the values of lower significance bits of the match address MADR are equal to the values of the match address MADR0 if the data does not match with the stored data in the other iterative data searching apparatuses. The values of higher significance bits of the match address MADR are the value of the address of the matching encoder block (the address allocated to the relevant one of the plurality of iterative data searching apparatuses). In this case, since the relevant block is the block of the address “0”, the values are all 0.
(46) As shown at operation 506, when character data “B” is input as the next search data, the same match lines as those in the case of the preceding search data are set at HIGH level, and the levels of the match lines are held in the latches ML0 to ML5 and then output to the signal generating circuits 64.sub.0 to 64.sub.5. At this point in time, of the latches ML1, ML3 and ML4 whose outputs are at HIGH level, only the latch ML4 receives an output at HIGH level from the latch PS in the preceding stage, so that of the signals output from the AND circuits 701, 703 and 704, only the signal output from the AND circuit 70.sub.4 is at HIGH level. Therefore, the feedback signal ORFB0 output from the OR circuit 78 is maintained at HIGH level, and the match address MADR0 is an address “4”, which corresponds to the latch PS4.
(47) Since the feedback signal ORFB is maintained at HIGH level, provided the current cycle is denoted by “m”, a signal corresponding to a logical product of an output ML(n, m) of a latch ML of an address “n” and an output PS(n−1, m) of a latch PS in the preceding stage is output to a latch PS of an address “n”. As a result, only the latch PS4 holds HIGH level.
(48) Then, as shown at operation 508, character data “B” is input as the next search data. In this case, the levels of the match lines temporarily held in the latches ML0 to ML5 and then input to the signal generating circuits 64.sub.0 to 64.sub.5 are the same as those in the case of the preceding search data. However, all the latches ML1, ML3 and ML4 that output signals at HIGH level receive signals at LOW level output from the latches PS in the respective preceding stages, so that the all the signals output from the AND circuits 70.sub.0 to 70.sub.5 are at LOW level, and the feedback signal ORFB0 and the feedback signal ORFB are at LOW level. When the feedback signal ORFB is set at LOW level, the output signals of the OR circuits 72.sub.0 to 72.sub.5 in the signal generating circuits 64.sub.0 to 64.sub.5 are set at HIGH level, so that the levels of the signals output from the latches ML1 to ML5 are held in the latches PS0 to PS5 without change.
(49) Then, as shown at operation 510, when character data “C” is input as the next search data, only the match line MATCH5 is set at HIGH level, and the levels of the match lines are temporarily held in the latches ML0 to ML5 and then output to the signal generating circuits 64.sub.0 to 64.sub.5, respectively. In this case, only the latch ML5 outputs a signal at HIGH level, and the latch PS4 in the preceding stage also outputs a signal at HIGH level. As a result, of the signals output from the AND circuits 70.sub.0 to 70.sub.5, only the signal output from the AND circuit 70.sub.5 is set at HIGH level. Therefore, the feedback signal ORFB0 output from the OR circuit 78 is maintained at HIGH level, and the match address MADR0 is an address “1”, which corresponds to the latch PS1.
(50) As described above, the iterative data searching circuit 21 has a function of searching the whole of the CAM cell array 26 for a character that matches with every input character and a function of holding information on whether the sequence of characters preceding any character that matches with a character stored in the CAM cell array 26 matches with a character sequence stored in the CAM cell array 26 and can search for a character sequence at a much higher speed than other methods.
(51) There is a problem of how to start tracing of a character sequence. Typically, tracing of the character sequence starts at the position of the first matching character. According to this method, a character sequence can be efficiently compressed to some extent. Depending on the character sequence to be compressed, however, starting tracing a character sequence at a position of the first matching character may not lead to the best compression.
(52)
(53) In this example, as shown in
(54) If tracing is started at the first matching character, the compression result is as shown in
(55) However, if the first matching character is ignored, and tracing is started at the position of the second matching character, the compression result is as shown in
(56) Whether the first matching character should be ignored or how many matching characters from the first matching character should be ignored depends on the attributes of the data to be compressed. Therefore, in a practical application, it is necessary to perform a plurality of tracings at the same time and select the tracing that yields the longest matching character sequence by discarding the others that yield shorter character sequences.
(57) To this end, according to this embodiment, the byte match detecting mechanism described above with reference to
(58)
(59) As shown in
(60) The internal configuration of the iterative data searching circuit 21 is the same as that described above with reference to
(61) As shown in
(62) Although the first priority encoder 74 and the second priority encoder 76 are provided in
(63) The tracing circuits 100.sub.1, 100.sub.2, . . . , and 100.sub.K can have the same configuration, and therefore, the tracing circuit 100.sub.1 will be described as a representative (J=1, 2, . . . , and K).
(64) The tracing circuit 100.sub.1 has substantially the same configuration as the iterative data searching circuit 21 excluding the CAM cell array 26 and the latch 62. More specifically, the tracing circuit 100.sub.1 has latches 106.sub.J0 to 106.sub.JN, AND circuits 108.sub.J0 to 108.sub.JN, AND circuits 110.sub.J0 to 110.sub.JN, OR circuits 112.sub.J0 to 112.sub.JN, an OR circuit 114.sub.4 and a priority encoder 116.sub.4 which correspond to the latches 66.sub.0 to 66.sub.N, the AND circuits 68.sub.0 to 68.sub.N, the AND circuits 70.sub.0 to 70.sub.N, the OR circuits 72.sub.0 to 72.sub.N, the OR circuit 78 and the priority encoder 82 in the iterative data searching circuit 21, respectively. Note that, for the tracing circuit 100.sub.J again, the latches 106.sub.J0 to 106.sub.JN will be collectively referred to as a latch 106.sub.J. Of the AND circuits 108.sub.J0 to 108.sub.JN, the AND circuits 110.sub.J0 to 110.sub.JN, and the OR circuits 112.sub.J0 to 112.sub.JN, only the AND circuit 108.sub.J1, the AND circuit 110.sub.J1 and the OR circuit 112.sub.J1 are shown. However, the respective second subscripts (the subscripts indicating the address of the CAM cell row) are not shown.
(65) As shown in
(66) As shown in
(67) The timing adjusting circuit group 86 includes AND circuits 118.sub.0 to 118.sub.K and D flip-flops 120.sub.0 to 120.sub.K. One of two input terminals of the AND circuit 118.sub.0 is connected to the output terminal of the OR circuit 78 in the iterative data searching circuit 21, and the other of the two input terminals of the AND circuit 118.sub.0 is connected to an output terminal of the D flip-flop 120.sub.0. A data input terminal of the D flip-flop 120.sub.0 is grounded, and a clock input terminal of the D flip-flop 120.sub.0 is connected to the output terminal of the OR circuit 78. One of two input terminals of the AND circuit 118.sub.J is connected to the output terminal of the OR circuit 114.sub.J in the tracing circuit 100.sub.J, and the other of the two input terminals of the AND circuit 118.sub.J is connected to the output terminal of the D flip-flop 120.sub.J. The data input terminal of the D flip-flop 120.sub.J is grounded, and the clock input terminal of the D flip-flop 120.sub.J is connected to the output terminal of the OR circuit 114.sub.J (J=1, 2, . . . , and K).
(68) The flip-flop group 88 includes flip-flops 122.sub.01 to 122.sub.0K, 122.sub.11 to 122.sub.1(K-1), . . . , and 122.sub.(K-1)1. The flip-flops 122.sub.J1 to 122.sub.J(K-J) form a (K-J)-stage flip-flop, and an input terminal of the flip-flop 122.sub.J(K-J) is connected to an output terminal of the AND circuit 118.sub.J, and an output terminal of the flip-flop 122.sub.J1 is connected to input terminals of the OR circuit 90 and the decoder 92 (J=1, 2, . . . , and K-1). Note that an output terminal of the AND circuit 118.sub.K is directly connected to input terminals of the OR circuit 90 and the decoder 92.
(69) The flip-flop group 94 includes flip-flops 124.sub.01 to 124.sub.0K, 124.sub.11 to 124.sub.1(K-1), . . . , and 124.sub.(K-1)1. The flip-flops 124.sub.01 to 124.sub.0K form a K-stage flip-flop, an input terminal of the flip-flop 124.sub.0K is connected to the output terminal of the priority encoder 82 in the iterative data searching circuit 21, and an output terminal of the flip-flop 124.sub.01 is connected to an input terminal of the selector 96. The flip-flop 124.sub.J1 to 124.sub.J(K-J) form a (K-J)-stage flip-flop, an input terminal of the flip-flop 124.sub.J(K-J) is connected to an output terminal of the priority encoder 116.sub.J in the tracing circuit 100.sub.J, and an output terminal of the flip-flop 124.sub.J1 is connected to an input terminal of the selector 96 (J=1, 2, . . . , and K-1). Note that an output terminal of the priority encoder 116.sub.K is directly connected to an input terminal of the selector 96.
(70) In the above description, the part formed by the latch 106.sub.J, the AND circuit 108.sub.J, the AND circuit 110.sub.J, the OR circuit 112.sub.J, the OR circuit 114.sub.J and the priority encoder 116.sub.J is an example of a generating circuit, in particular, a J-th expansion generating circuit. The OR circuit 90 is an example of a first output circuit, and the selector 96 is an example of a second output circuit. Although the comparison result controlling circuit 60 and priority encoder 82 and other components are depicted as part of the iterative data searching circuit 21, they function similarly to a tracing circuit. Thus, the iterative data searching circuit 21 can alternatively be defined to exclude the components that function similarly to a tracing circuit, while the excluded components can be defined as an additional tracing circuit.
(71) Next, an operation of the iterative data searching apparatus 20 according to this embodiment will be described with reference to
(72) As shown at operation 802 in
(73) At this point in time, the levels held in the latches PS00 to PS09 are LOW level, so that all the signals output from the AND circuits 70.sub.0 to 70.sub.9 are at LOW level, and a feedback signal ORFB-0 output from the OR circuit 78 is also at LOW level.
(74) Since the levels held in the latches PS10 to PS19, . . . , and PS50 to PS59 are LOW level, all the signals output from the AND circuits 110.sub.10 to 110.sub.19, . . . , and 110.sub.50 to 110.sub.59 are at LOW level, and feedback signals ORFB-1, . . . , and ORFB-5 output from the OR circuits 114.sub.1, . . . , and 114.sub.5 are also at LOW level.
(75) Since the feedback signals ORFB-0, ORFB-1, . . . , and ORFB-5 are at LOW level as described above, the signal output from the OR circuit 84 is at LOW level, so that all the outputs of the OR circuits 72.sub.0 to 72.sub.9 are at HIGH level, and the levels of the signals output from the latches ML0 to ML9 are held in the latches PS00 to PS09 without change. Thus, only the latch PS00 of the latches PS00 to PS09 holds HIGH level, so that the priority encoder 82 outputs an address “0” as an match address MADR-0 (see operation 804).
(76) In addition, the signal at LOW level output from the OR circuit 78 is input to the J input terminal of the JK flip-flop 1021, and the signal at HIGH level inverted from the signal at LOW level output from the OR circuit 84 is input to the K input terminal of the JK flip-flop 102.sub.1, so that the level held in the JK flip-flop 1021 is LOW level.
(77) As shown at operation 804 of
(78) At this point in time, the level held in the latch PS00 is HIGH level, so that the signal output from the AND circuit 701 is at HIGH level, and the feedback signal ORFB-0 output from the OR circuit 78 is also at HIGH level.
(79) Since the levels held in the latches PS10 to PS19, . . . , and PS50 to PS59 are LOW level, all the signals output from the AND circuits 110.sub.10 to 110.sub.19, . . . , and 110.sub.50 to 110.sub.59 are at LOW level, and the feedback signals ORFB-1, . . . , and ORFB-5 output from the OR circuits 114.sub.1, . . . , and 114.sub.5 are also at LOW level.
(80) Since the feedback signal ORFB-0 is at HIGH level as described above, the signal output from the OR circuit 84 is also at HIGH level, so that logical products of the levels of the signals output from the latches ML0 to ML9 and the signals output from the latches PS in the respective preceding stages are held in the latches PS00 to PS09. Thus, only the latch PS1 of the latches PS00 to PS09 holds HIGH level, so that the priority encoder 82 outputs an address “1” as the match address MADR-0 (see the PS0 field at operation 806 in
(81) The level having been held in the JK flip-flop 102.sub.1 is LOW level, and the signal output from the AND circuit 104.sub.1 is also at LOW level, so that all the outputs of the OR circuits 112.sub.10 to 112.sub.19 are at HIGH level, and the levels of the signals output from the latches ML0 to ML9 are held in the latches PS10 to PS19 without change. Thus, the latches PS11 and PS14 of the latches PS10 to PS19 hold HIGH level, so that the priority encoder 116.sub.1 outputs an address “1” as the match address MADR-1 (see the PS1 field at operation 806 of
(82) In addition, the signal at HIGH level output from the OR circuit 78 is input to the J input terminal of the JK flip-flop 102.sub.1, and the signal at LOW level inverted from the signal at HIGH level output from the OR circuit 84 is input to the K input terminal of the JK flip-flop 102.sub.1, so that the level held in the JK flip-flop 102.sub.1 is HIGH level.
(83) The signal at LOW level output from the OR circuit 114.sub.1 is input to the J input terminal of the JK flip-flop 102.sub.2, and the signal at HIGH level inverted from the signal at LOW level output from the OR circuit 84 is input to the K input terminal of the JK flip-flop 102.sub.2, so that the level held in the JK flip-flop 102.sub.2 is LOW level.
(84) As shown at operation 806 of
(85) At this point in time, the level held in the latch PS01 is HIGH level, so that the signal output from the AND circuit 70.sub.1 is at HIGH level, and the feedback signal ORFB-0 output from the OR circuit 78 is also at HIGH level.
(86) Since the levels held in the latches PS11 and PS14 are HIGH level, the signals output from the AND circuits 110.sub.11 and 110.sub.14 are at HIGH level, and the feedback signal ORFB-1 output from the OR circuit 114.sub.1 is also at HIGH level.
(87) Since the levels held in the latches PS20 to PS29, . . . , and PS50 to PS59 are LOW level, all the signals output from the AND circuits 110.sub.20 to 110.sub.29, . . . , and 110.sub.50 to 110.sub.59 are at LOW level, and the feedback signals ORFB-2, . . . , and ORFB-5 output from the OR circuits 114.sub.2, . . . , and 114.sub.5 are also at LOW level.
(88) Since the feedback signals ORFB-0 and ORFB-1 are at HIGH level as described above, the signal output from the OR circuit 84 is also at HIGH level, so that logical products of the levels of the signals output from the latches ML0 to ML9 and the signal output from the latch PS0 in the preceding stage are held in the latches PS00 to PS09. Thus, only the latch PS02 of the latches PS00 to PS09 holds HIGH level, so that the priority encoder 82 outputs an address “2” as the match address MADR-0 (see the PS0 field at operation 808 in
(89) The level having been held in the JK flip-flop 102.sub.1 is HIGH level, the signal output from the OR circuit 84 is at HIGH level, and the signal output from the AND circuit 104.sub.1 is also at HIGH level, so that logical products of the levels of the signals output from the latches ML0 to ML9 and the signal output from the latch PS1 in the preceding stage are held in the latches PS10 to PS19. Thus, the latches PS12 and PS15 of the latches PS10 to PS19 hold HIGH level, so that the priority encoder 116.sub.1 outputs an address “2” as the match address MADR-1 (see the PS1 field at operation 808 in
(90) The level having been held in the JK flip-flop 102.sub.2 is LOW level, and the signal output from the AND circuit 104.sub.2 is also at LOW level, so that all the outputs of the OR circuits 112.sub.20 to 112.sub.29 are at HIGH level, and the levels of the signals output from the latches ML0 to ML9 are held in the latches PS10 to PS19 without change. Thus, the latches PS22 and PS25 of the latches PS20 to PS29 hold HIGH level, so that the priority encoder 116.sub.2 outputs an address “2” as a match address MADR-2 (see the PS2 field at operation 808 in
(91) In addition, the signal at HIGH level output from the OR circuit 78 is input to the J input terminal of the JK flip-flop 102.sub.1, and the signal at LOW level inverted from the signal at HIGH level output from the OR circuit 84 is input to the K input terminal of the JK flip-flop 102.sub.1, so that the level held in the JK flip-flop 102.sub.1 is HIGH level.
(92) The signal at HIGH level output from the OR circuit 114.sub.1 is input to the J input terminal of the JK flip-flop 102.sub.2, and the signal at LOW level inverted from the signal at HIGH level output from the OR circuit 84 is input to the K input terminal of the JK flip-flop 102.sub.2, so that the level held in the JK flip-flop 102.sub.2 is HIGH level.
(93) The signal at LOW level output from the OR circuit 114.sub.2 is input to the J input terminal of the JK flip-flop 102.sub.3, and the signal at LOW level inverted from the signal at HIGH level output from the OR circuit 84 is input to the K input terminal of the JK flip-flop 102.sub.3, so that the level held in the JK flip-flop 102.sub.3 is LOW level.
(94) As shown at operation 808 in
(95) At this point in time, the level held in the latch PS05 in the preceding stage of the latch ML6 is LOW level, and the level held in the latch PS02 is HIGH level although the level held in the latch ML3 in the subsequent stage is LOW level, so that all the signals output from the AND circuits 70.sub.0 to 70.sub.9 are at LOW level, and the feedback signal ORFB-0 output from the OR circuit 78 is also at LOW level.
(96) Since the levels held in the latches PS12, PS15, PS22 and PS25 are HIGH level, all the signals output from the AND circuits 110.sub.10 to 110.sub.19 and 110.sub.20 to 110.sub.29 are at HIGH level, and the feedback signals ORFB-1 and ORFB-2 output from the OR circuits 114.sub.1 and 114.sub.2 are also at HIGH level.
(97) Since the levels held in the latches PS30 to PS39, . . . , and PS50 to PS59 are LOW level, all the signals output from the AND circuits 110.sub.30 to 110.sub.39, . . . , and 110.sub.50 to 110.sub.59 are at LOW level, and the feedback signals ORFB-3, . . . , and ORFB-5 output from the OR circuits 114.sub.3, . . . , and 114.sub.5 are also at LOW level.
(98) Since the feedback signals ORFB-1 and ORFB-2 are at HIGH level as described above, the signal output from the OR circuit 84 is also at HIGH level, so that logical products of the levels of the signals output from the latches ML0 to ML9 and the signal output from the latch PS0 in the preceding stage are held in the latches PS00 to PS09 (see the PS0 field at operation 810 in
(99) The levels having been held in the JK flip-flops 102.sub.1 and 102.sub.2 are HIGH level, the signal output from the OR circuit 84 is at HIGH level, and the signals output from the AND circuits 104.sub.1 and 104.sub.2 are also at HIGH level, so that logical products of the levels of the signals output from the latches ML0 to ML9 and the signals output from the latches PS1 and PS2 in the preceding stages are held in the latches PS10 to PS19 and PS20 to PS29. Thus, the latches PS16 and PS26 of the latches PS10 to PS19 and PS20 to PS29 hold HIGH level, so that the priority encoders 116.sub.1 and 116.sub.2 output an address “6” as the match addresses MADR-1 and MADR-2 (see the PS1 field and the PS2 field at operation 810 in
(100) The level having been held in the JK flip-flop 102.sub.3 is LOW level, and the signal output from the AND circuit 104.sub.3 is also at LOW level, so that all the outputs of the OR circuits 112.sub.30 to 112.sub.39 are at HIGH level, and the levels of the signals output from the latches ML0 to ML9 are held in the latches PS30 to PS39 without change. Thus, the latch PS36 of the latches PS30 to PS39 hold HIGH level, so that the priority encoder 116.sub.3 outputs an address “6” as a match address MADR-3 (see the PS3 field at operation 810 in
(101) In addition, the signal at LOW level output from the OR circuit 78 is input to the J input terminal of the JK flip-flop 102.sub.1, and the signal at LOW level inverted from the signal at HIGH level output from the OR circuit 84 is input to the K input terminal of the JK flip-flop 102.sub.1, so that the level held in the JK flip-flop 102.sub.1 is HIGH level.
(102) The signals at HIGH level output from the OR circuits 114.sub.1 and 114.sub.2 are input to the J input terminals of the JK flip-flops 102.sub.2 and 102.sub.3, and the signal at LOW level inverted from the signal at HIGH level output from the OR circuit 84 is input to the K input terminals of the JK flip-flops 102.sub.2 and 102.sub.3, so that the levels held in the JK flip-flops 102.sub.2 and 102.sub.3 are HIGH level.
(103) The signal at LOW level output from the OR circuit 114.sub.3 is input to the J input terminal of the JK flip-flop 102.sub.4, and the signal at LOW level inverted from the signal at HIGH level output from the OR circuit 84 is input to the K input terminal of the JK flip-flop 102.sub.4, so that the level held in the JK flip-flop 102.sub.4 is LOW level.
(104) As shown at operation 810 in
(105) At this point in time, the levels held in the latches PS00 to PS09 are LOW level, so that all the signals output from the AND circuits 70.sub.0 to 70.sub.9 are at LOW level, and the feedback signal ORFB-0 output from the OR circuit 78 is also at LOW level.
(106) Since the levels held in the latches PS16, PS26 and PS36 are HIGH level, all the signals output from the AND circuits 110.sub.10 to 110.sub.19, 110.sub.20 to 110.sub.29 and 110.sub.30 to 110.sub.39 are at HIGH level, and the feedback signals ORFB-1, ORFB-2 and ORFB-3 output from the OR circuits 114.sub.1, 114.sub.2 and 114.sub.3 are also at HIGH level.
(107) Since the levels held in the latches PS40 to PS49 and PS50 to PS59 are LOW level, all the signals output from the AND circuits 110.sub.40 to 110.sub.49 and 110.sub.50 to 110.sub.59 are at LOW level, and the feedback signals ORFB-4 and ORFB-5 output from the OR circuits 114.sub.4 and 114.sub.5 are also at LOW level.
(108) Since the feedback signals ORFB-1, ORFB-2 and ORFB-3 are at HIGH level as described above, the signal output from the OR circuit 84 is also at HIGH level, so that logical products of the levels of the signals output from the latches ML0 to ML9 and the signal output from the latch PS0 in the preceding stage are held in the latches PS00 to PS09 (see the PS0 field at operation 812 in
(109) The levels having been held in the JK flip-flops 102.sub.1, 102.sub.2 and 102.sub.3 are HIGH level, the signal output from the OR circuit 84 is at HIGH level, and the signals output from the AND circuits 104.sub.1, 104.sub.2 and 104.sub.3 are also at HIGH level, so that logical products of the levels of the signals output from the latches ML0 to ML9 and the signals output from the latches PS1, PS2 and PS3 in the preceding stages are held in the latches PS10 to PS19, PS20 to PS29 and PS30 to PS39. Thus, the latches PS17, PS27 and PS37 of the latches PS10 to PS19, PS20 to PS29 and PS30 to PS39 hold HIGH level, so that the priority encoders 116.sub.1, 116.sub.2 and 116.sub.3 output an address “7” as the match addresses MADR-1, MADR-2 and MADR-3 (see the PS1 field, the PS2 field and the PS3 field at operation 812 in
(110) The level having been held in the JK flip-flop 102.sub.4 is LOW level, and the signal output from the AND circuit 104.sub.4 is also at LOW level, so that all the outputs of the OR circuits 112.sub.40 to 112.sub.49 are at HIGH level, and the levels of the signals output from the latches ML0 to ML9 are held in the latches PS40 to PS49 without change. Thus, the latch PS47 of the latches PS40 to PS49 hold HIGH level, so that the priority encoder 116.sub.4 outputs an address “7” as a match address MADR-4 (see the PS4 field at operation 812 in
(111) In the operation described above, the feedback signals ORFB-0 to ORFB-K (K=5 in the example described above) output each time character data is input are output to the decoder 92 via the AND circuits 118.sub.0 to 118.sub.K. In this embodiment, if the feedback signal ORFB from the OR circuit 84 is set at LOW level, the D flip-flops 120.sub.0 to 120.sub.K are set at HIGH level, and the feedback signals ORFB-0 to ORFB-K can pass through the AND circuits 118.sub.0 to 118.sub.K. On the other hand, if the levels of the feedback signals ORFB-0 to ORFB-K are once set at HIGH level and then set at LOW level, the levels of the signals input to the clock input terminals of the D flip-flops 120.sub.0 to 120.sub.K change from LOW level to HIGH level, and the feedback signals ORFB-0 to ORFB-K cannot pass through the AND circuits 118.sub.0 to 118.sub.K.
(112) The match addresses MADR-0 to MADR-5 that are also output each time character data is input are output to the selector 96.
(113) However, according to this embodiment, the (K-J)-stage flip-flop 122 is provided prior to the decoder 92 on the path of the feedback signal ORFB-J, and the (K-J)-stage flip-flop 124 is provided prior to the selector 96 on the path of the match address MADR-J (J=1, 2, . . . , K−1), whereas no flip-flop is provided prior to the decoder 92 and the selector 96 on the paths of the feedback signal ORFB-K and the match address MADR-K. As a result, the feedback signals ORFB-0 to ORFB-5 and the match addresses MADR-0 to MADR-5 do not arrive at the decoder 92 and the selector 96 at a timing synchronized with the time of input of the character data, which is used as a reference in the operation described above, but arrive at the decoder 92 and the selector 96 at a timing shifted by the number of stages of the flip-flop.
(114) Next, an operation of the iterative data searching apparatus 20 with respect to the timing when the decoder 92 and the selector 96 receive the signals will be described. Although not shown in
(115) First, the point in time when the decoder 92 receives the feedback signal ORFB-0 output at the point in time shown at operation 804 in
(116) Then, the decoder 92 receives the feedback signal ORFB-0 output at the point in time shown at operation 806 in
(117) Then, the decoder 92 receives the feedback signal ORFB-0 output at the point in time shown at operation 808 in
(118) Then, the decoder 92 receives the feedback signal ORFB-0 output at the point in time shown at operation 810 in
(119) Then, the decoder 92 receives the feedback signal ORFB-0 output at the point in time shown at operation 812 in
(120) Therefore, the data compression controller 22 uses, as the match address, the address “7” received from the selector 96 immediately before the consolidated feedback signal C-ORFB is set at LOW level.
(121) Next, an operation of the data compression controller according to this embodiment will be described.
(122)
(123) The data compression controller 22 first resets the latches 62.sub.0 to 62.sub.N and the latches 66.sub.0 to 66.sub.N in the comparison result controlling circuit 60 in the iterative data searching apparatus 20 (Step 200). Then, initialization is performed to set a match length MLEN at “1” and the write address WADR at “0” (Step 202). Then, it is determined whether output of the original data to the iterative data searching apparatus 20 is completed or not (Step 204). If the determination result is negative, data on a character CO corresponding to the leading one character is extracted from the original data as search data, and the data is output to the iterative data searching apparatus 20 along with the search instruction SEARCH and the write address WADR (Step 206). In response to this, the iterative data searching apparatus 20 performs the search operation described above.
(124) Then, the data compression controller 22 determines whether the character sequence match signal C-ORFB output from the iterative data searching apparatus 20 is set at HIGH level or not (Step 208). In this case, since the latches 62 and the latches 66 have been reset in preceding Step 200, and therefore, the character sequence match signal C-ORFB is maintained at LOW level, the determination result is negative, and the process proceeds to Step 210. Then, the data compression controller 22 determines whether the current comparison operation is the first comparison operation on predetermined original data or not (Step 210). If the determination result is positive, a processing of outputting compressed data in Step 212 is bypassed, and the process proceeds to Step 214. As with the feedback signal ORFB described above, the character sequence match signal C-ORFB is not set at HIGH level unless two or more successive characters match with the stored data, and therefore, if a succession of comparison results “not match” occurs, the character searched for in the previous search is output as compressed data as described later. Thus, there is no data to be output as the compressed data at this point in time, and therefore, Step 212 is not performed.
(125) Then, the data compression controller 22 substitutes “1” for the match length MLEN (Step 214), and the process proceeds to Step 218. Then, the data compression controller 22 substitutes data on the character C1 searched for in the previous search for the character C2 searched for in the second previous search and substitutes data on the character C0 searched for in the current search for the character C1 searched for in the previous search (Step 218), and writes the data on the character C0 in the CAM cell row corresponding to the current write address WADR (0 in the first comparison operation) (Step 220). In practice, the write processing is performed by the address decoder 52 asserting (enabling) the word line of the CAM cell row corresponding to the write address WADR. Furthermore, the data compression controller 22 increments the write address WADR by 1 to provide the next write address WADR (that is, the character data is written in ascending order of the addresses of the CAM cell rows), divides the write address WADR by the size N+1 of the CAM cell array 26, and sets the remainder (Step 222).
(126) Once data are written in all the CAM cell rows in this way, data is written in the CAM cell row of an address “0”. Thus, the CAM cell array 26 is used as a so-called ring buffer, and an overflow of the CAM cell array 26 or the like does not occur.
(127) After the processing in Step 222 is performed, the process returns to Step 204. If the result of the determination in Step 204 is negative, the process in Step 206 and the following steps are performed again. In Step 206, data on the character C0 subsequent to the character C1 searched for in the previous search is extracted from the original data as the search data and output to the iterative data searching apparatus 20 along with the search instruction SEARCH and the write address WADR. Then, if the result of the determination in Step 208 is negative, the process proceeds to Step 210. If the result of the determination in Step 210 is negative, the compressed data output processing in Step 212 is performed.
(128) In this compressed data output processing, as shown in
(129) If the result of the determination in Step 230 is negative, the data compression controller 22 determines whether the match length MLEN is 1 or not (Step 232). If the result of the previous comparison is not “match”, the determination result is positive, data on the character C1 searched for in the previous search is output as the compressed data (Step 238), and then the process proceeds to Step 214 in the flowchart shown in
(130) In the flowchart shown in
(131) If the character sequence match signal C-ORFB having been at HIGH level in the previous comparison operation is changed to LOW level, and the result of the determination in Step 210 is negative, it means that the end of an iterative character sequence having a length of two or more characters is detected, so that the compressed data output processing is performed in Step 212. In this case, if both the results of the previous comparison and the second previous comparison are “match”, the match length MLEN is incremented to 3 or greater in Step 216 described above, so that the results of the determinations in Steps 230 and 232 are both negative, and the process proceeds to Step 234.
(132) Then, the data compression controller 22 determines a compression code for compressing the iterative character sequence. According to this embodiment, a compression code comprising a first code that represents a pointer that indicates the position of a character sequence that matches with the iterative character sequence and a second code that represents the length of the iterative character sequence is used, the difference between the match address MADR and the match length MLEN plus 1 (MADR−MLEN+1) is set as the first code and output, and the match length MLEN is set as the second code and output (Step 234). As a result, the length of the compressed data output from the data compression controller 22 is shorter than that of the original data.
(133) When the compression code is output, in order to distinguish between the compression code and the character data when the compressed character sequence is decompressed, the data compression controller 22 also inserts a code representing a break point between the character data and the compression code. In this way, each time an iterative character sequence is found, Step 234 is performed, the found iterative character sequence is converted into a compression code, and the compression code is output, thereby removing the redundancy of the original data and compressing the original data into compressed data.
(134) The process described above is repeated, and when the position in the original data at which data on the character C is extracted reaches the end of the original data, the result of the determination in Step 204 is positive, and the data compression controller 22 performs the compressed data output processing again (Step 224). In this case, if the value of the match length MLEN is equal to or greater than 3, the compression code is output in Step 234. However, if the value of the match length MLEN is 2, the data on the character C2 searched for in the second previous search is output as the compressed data in Step 236, the data on the character C1 searched for in the previous search is output as the compressed data in Step 238, and the process ends. If the value of the match length MLEN is 1, the data on the character C1 searched for in the previous search is output as the compressed data in Step 238, and the process ends.
(135) Although the pointer that indicates the position of a character sequence that matches with the iterative character sequence is used as the first code of the compression code in this operation example, the distance between the position of a character sequence that matches with the iterative character sequence and the position of the iterative character sequence can also be used, as in the example described above. In this case, the data compression controller 22 can recognize the circuit that has continuously output the feedback signal at HIGH level for the longest time among the iterative data searching circuit 21 and the tracing circuits 100.sub.1, 100.sub.2, . . . , and 100.sub.K based on a decode output signal (see
(136) An embodiment of the present inventive subject matter has been described above.
(137) As described above, according to this embodiment, to the iterative data searching circuit 21 that detects character data that matches with input character data from the CAM cell array 26 and determines whether the input character data matches with the detected character data as a character sequence, the plurality of tracing circuits 100 that make the matching determination for character sequences starting at different search start points shifted in steps of one character is connected. As a result, a longer character sequence can be efficiently detected from a target to be searched containing a plurality of character sequences having different lengths containing an identical part, and the compressibility can be improved.
(138) Although it is assumed in this embodiment that a character sequence is compressed by replacing a part of the character sequence with information on the position and the length of another part of the character sequence, it may be assumed that a search start point for searching a part of a character sequence is determined based on another part of the character sequence. In that case, it is enough to identify the circuit for which the number of successive generations of the feedback signal ORFB at HIGH level is the greatest of the iterative data searching circuit 21 and the tracing circuits 100.sub.1, 100.sub.2, . . . , and 100.sub.K, so that it is not always necessary to determine the consolidated feedback signal C-ORFB by taking a logical sum of the feedback signals ORFB or to count the number of successive outputs of the consolidated feedback signal C-ORFB.
(139) Although a specific start point previously determined for the circuit for which the number of successive generations of the feedback signal ORFB at HIGH level is the greatest is designated as the search start point in this embodiment, the present inventive subject matter is not limited to this implementation. For example, tracing may be terminated at the point in time when the number of successive generations of the feedback signal ORFB at HIGH level exceeds a threshold, any circuit that is generating the feedback signal at HIGH level at that point in time may be selected, and the specific start point previously determined for the selected circuit may be designated as the search start point. More generally, the specific start point previously determined for a circuit that satisfies a predetermined condition in terms of the number of successive generations of the feedback signal ORFB at HIGH level may be designated as the search start point.
(140) Furthermore, although the specific start points of the iterative data searching circuit 21 and the tracing circuits 100.sub.1, 100.sub.2, . . . , and 100.sub.k are shifted in steps of one character in this embodiment, the present inventive subject matter is not limited to this implementation. It is essential only that the circuits have different specific start points, and the specific start points can be shifted in steps of any number of characters.
(141) Although an embodiment of the present inventive subject matter has been described above, the technical scope of the present inventive subject matter is not limited to the embodiment described above. It is obvious to those skilled in the art that various modifications can be made and various alternatives can be used without departing from the spirit and scope of the present inventive subject matter.