An enhanced TL-TCAM table lookup hardware search engine

By using the enhanced TL-TCAM unit circuit in the TCAM hardware search engine, the transistor connection and matching line structure are simplified, the problems of high power consumption and slow speed in the existing technology are solved, and lower power consumption and higher speed search are achieved. performance.

CN114496034BActive Publication Date: 2024-09-20DALIAN UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111640569.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-29
Publication Date
2024-09-20
Estimated Expiration
2041-12-29

AI Technical Summary

Technical Problem

Existing TCAM hardware search engines have the problems of high power consumption and slow speed, making it difficult to reduce power consumption without affecting search speed.

Method used

An enhanced TL-TCAM look-up table hardware search engine is proposed. Each word circuit includes multiple enhanced TL-TCAM unit circuits, using a structure of four memory units and thirteen N-type transistors. Through a bistable circuit Connect with transistors to simplify the matching line structure and reduce power consumption.

Benefits of technology

It achieves further reduction of power consumption, increases search speed, and improves the universality and efficiency of the circuit. The number of transistors is reduced, the matching line pull-down channel is accelerated, and the power consumption is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114496034B
    Figure CN114496034B
Patent Text Reader

Abstract

An enhanced TL-TCAM table lookup type hardware search engine, each word circuit includes a plurality of enhanced TL-TCAM unit circuits, the enhanced TL-TCAM unit circuit includes four storage cells and thirteen N-type transistors; the storage cell MC adopts a bistable circuit structure, the storage value is located at the T end of the storage cell MC, the F end of the storage cell MC is its "not" value, m enhanced TL-TCAM unit circuits are connected in parallel to form a sub-segment circuit, m is a positive integer, the word line WL, the matching line ML, and ML_x of each enhanced TL-TCAM unit circuit in the sub-segment circuit are respectively short-circuited together, the matching line ML is connected to the drain of the N-type transistor N15, ML_x is connected to the gate of the N-type transistor N15, the source of the N-type transistor N15 is grounded, ML_x is connected to the drain of the N-type transistor N14, the source of the N-type transistor N14 is grounded, the gate of the N-type transistor N14 is connected to the signal line OneX_in-Sement_b, and a plurality of sub-segment circuits are connected in parallel to form a word circuit. The present invention has the advantages of small number of transistors, high search speed, low power consumption, etc.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of information technology and relates to an enhanced TL-TCAM table lookup type hardware search engine. Background Art

[0002] The inventors continued to study this circuit and found that if the TCAM unit Tcell is combined every 2 bits to form a new circuit unit TL-Tcell, the parasitic capacitance of the matching line can be reduced by half, the probability of the search line flipping power consumption can be reduced by half, and the search performance can be greatly improved. The data stored in the TL-Tcell unit needs to be processed from the TCAM.

[0003] TCAM (Ternary Content-Addressable Memory) is a high-speed hardware search engine that is widely used in search-intensive operations, such as routers in the backbone / edge network of the Internet to implement routing table lookup and data packet forwarding. BiCAM (Binary CAM) can only store 1-bit data 0 or 1, while TCAM can store three values ​​0, 1, and X, where X is a wildcard that can represent either 0 or 1.

[0004] According to the difference in working principles, the match lines of TCAM (Ternary Content-Addressable Memory) are mainly divided into two types: NOR type and NAND type. Figure 1 As shown, it is mainly composed of storage unit, match line ML, search line SL, and comparison tubes M1-M4. Among them, the storage unit is a 6-tube SRAM unit. Figure 1 Two read-write access transistors are omitted, and the functional description of the unit circuit is shown in Table 1.

[0005] Table 1 TCAM cell encoding

[0006]

[0007] The NOR type TCAM word circuit is composed of NOR type TCAM cells connected in parallel. The NAND type TCAM word circuit is composed of NAND type TCAM cells connected in series. Figure 2 As shown in the figure. The NOR type match line structure connects the match lines ML of the NOR type TCAM unit in parallel, while the NAND type match line connects the NAND type TCAM unit in series. TCAM is composed of an array of word circuits, a decoder, and a priority encoder, such as Figure 3When TCAM is working, all word circuits are started at the same time, resulting in high power consumption of TCAM. A typical TCAM chip consumes about 25 watts of power. How to reduce power consumption without affecting the search speed is a major research direction for scholars at home and abroad.

[0008] In 2007, N. Mohan et al. proposed a NOR-type low parasitic capacitance TCAM cell structure (for details, see [1] N. Mohan, et al., “Low-capacitance and charge-shared match lines for low-energy high-performance TCAMs,” IEEE JSSC, vol. 42, no. 9, pp. 2054-2060, Sept 2007.). Figure 4 As shown. There is only one tube M1 on the matching line ML, while the traditional 16T NOR type TCAM unit (see Figure 1 (a)) Two transistors M1 and M2 are connected to ML. As the parasitic capacitance is reduced, the power consumption is also reduced, and the circuit speed can be increased.

[0009] In 2017, Jianwei Zhang et al. proposed a compact lookup table hardware search engine and its data conversion method (see [2] Zhang Jianwei et al., Compact lookup table hardware search engine and its data conversion method, invention patent, patent number: 201711402026.9; [3] Jianwei Zhang, etc., Lookup-table hardware search engine, US patent, No.: US10,831,487B2).

[0010] In 2017, Zhang Jianwei et al. proposed a table-lookup hardware search engine (see [4] Zhang Jianwei et al., Table-lookup Hardware Search Engine, Invention Patent, Patent No.: 201711402362.3). Figure 5 shown.

[0011] However, the existing technology still has the problems of high power consumption and slow speed. An enhanced TL-TCAM (ETL-TCAM) hardware search engine is proposed. Summary of the invention

[0012] In order to solve the above-mentioned problems, the present invention proposes: an enhanced TL-TCAM table lookup type hardware search engine is proposed, each word circuit includes a plurality of enhanced TL-TCAM unit circuits, the enhanced TL-TCAM unit circuit includes four storage cells MC1-MC4 and thirteen N-type transistors N1-N13, the storage cell MC adopts a bistable circuit structure, the storage value is located at the T end of the storage cell MC, the F end of the storage cell MC is its "not" value, the gate of the N-type transistor N1 is connected to OneX, the source of the N-type transistor N1 is connected to the power supply, the drain of the N-type transistor N1 is connected to the source of the N-type transistor N2, the drain of the N-type transistor N2 is connected to the N-type transistor The source of the N-type transistor N3 is connected to the drain of the N-type transistor N3 is connected to ML_X, the gate of the N-type transistor N3 is connected to the source of the N-type transistor N7, the gate of the N-type transistor N7 is connected to XSL_11, the drain of the N-type transistor N7 is connected to the F end of the storage cell MC2, the T end of the storage cell MC2 is connected to the source of the N-type transistor N6, the gate of the N-type transistor N6 is connected to LSL_11, the drain of the N-type transistor N6 is connected to the source of the N-type transistor N5, the gate of the N-type transistor N5 is connected to LSL_00, the drain of the N-type transistor N5 is connected to the T end of the storage cell MC1, the F end of the storage cell MC1 is connected to the source of the N-type transistor N4, and the N-type The gate of transistor N4 is connected to XSL_00, the drain of N-type transistor N4 is connected to the source of N-type transistor N12, the gate of N-type transistor N12 is connected to word line WL, the drain of N-type transistor N12 is connected to bit line BL1, the drain of N-type transistor N4 is connected to the source of N-type transistor N7 through MA line, the gate of N-type transistor N2 is connected to the source of N-type transistor N8, the gate of N-type transistor N8 is connected to XSL_10, the drain of N-type transistor N8 is connected to the F end of storage cell MC3, the T end of storage cell MC3 is connected to the source of N-type transistor N9, the gate of N-type transistor N9 is connected to LSL_10, the drain of N-type transistor N9 ... LSL_11, the drain of N-type transistor N9 is connected to the LSL_12, the drain of N-type transistor N9 is connected to the LSL_13, the drain of N-type transistor N9 is connected to the LSL_14, the drain of N-type transistor N9 is connected to the LSL_15, the drain of N-type transistor N9 is connected to the LSL_16, the drain of N-type transistor N9 is connected to the LSL_17, the drain of N-type transistor N9 is connected to the LSL_18, the drain of N-type transistor N9 is connected to the LSL_19, the drain of N-type transistor N9 is connected to the LSL_17, the drain of N-type transistor N9 is connected to the LSL_19, the drain of N-type transistor N9 is connected to the LSL_17, the drain of N-type transistor N9 is connected to the LSL_18, connected to the source of the N-type transistor N10, the gate of the N-type transistor N10 is connected to LSL_01, the drain of the N-type transistor N10 is connected to the T terminal of the storage cell MC4, the F terminal of the storage cell MC3 is connected to the source of the N-type transistor N11, the gate of the N-type transistor N11 is connected to XSL_01, the drain of the N-type transistor N11 is connected to the source of the N-type transistor N13, the gate of the N-type transistor N13 is connected to the word line WL, the drain of the N-type transistor N13 is connected to the bit line BL2, the drain of the N-type transistor N11 is connected to the gate of the N-type transistor N2 through the MB line, and the source of the N-type transistor N5 is connected to the drain of the N-type transistor N9 through the matching line ML;

[0013] m enhanced TL-TCAM unit circuits are connected in parallel to form a sub-segment circuit, where m is a positive integer. The word line WL, the matching line ML, and the ML_x of each enhanced TL-TCAM unit circuit in the sub-segment circuit are short-circuited together respectively, the matching line ML is connected to the drain of the N-type transistor N15, the ML_x is connected to the gate of the N-type transistor N15, the source of the N-type transistor N15 is grounded, the ML_x is connected to the drain of the N-type transistor N14, the source of the N-type transistor N14 is grounded, and the gate of the N-type transistor N14 is connected to the signal line OneX_in-Sement_b; multiple sub-segment circuits are connected in parallel to form a word circuit.

[0014] The beneficial effects of the present invention are:

[0015] This method can further reduce power consumption, increase speed, and has higher universality.

[0016] 1. The number of transistors is reduced. An ETL-TCell has 29 transistors, while the number in references [2-4] is 32 transistors (considering read and write operations).

[0017] 2. ML pull-down channel is faster and search speed is higher

[0018] The NOR type ML pull-down channel in references [2-4] consists of two transistors (see Figure 5 (a) N2 and N4). The word circuit of this patent also belongs to the NOR type structure, and the ML pull-down channel has only one tube (see Fig. 9 in N15).

[0019] 3. Higher universality

[0020] Different from the references [2-4], the circuit structure proposed in this patent is applicable and can work normally regardless of the number of G_X in the ETL-Tcell.

[0021] 4. ML power consumption is further reduced

[0022] See Figure 5 In the literature [2-4], the word circuit has not only the match line ML but also the local match line LML, and the LML has almost the full voltage swing. However, the word circuit of the present invention eliminates the local match line structure, and the power consumption is further reduced.

[0023] In addition, in typical network search applications, the probability of an odd number of G_X is low, so the power consumption caused by ML_x in ETL-TCell is basically small, and the main power consumption is caused by ML. However, the power consumption of ML has been greatly reduced due to the elimination of LML. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1Schematic diagram of a TCAM cell, where: (a) is a NOR-type TCAM cell, (b) is a NAND-type TCAM cell;

[0025] Figure 2 is a schematic diagram of the TCAM word circuit structure, where: (a) is a NOR type match line, (b) is a NAND type match line;

[0026] Figure 3 It is a simple CAM block diagram;

[0027] Figure 4 is a schematic diagram of a low parasitic capacitance TCAM structure;

[0028] Figure 5 is a schematic diagram of a table lookup search engine structure, wherein: (a) a NOR type table lookup search engine unit structure, (b) a NAND type table lookup search engine unit structure;

[0029] Figure 6 is a diagram of an ETL-TCAM circuit structure (ETL-TCell);

[0030] Figure 7 It is a simplified symbolic diagram of the ETL-TCAM circuit structure;

[0031] Figure 8 It is the circuit structure diagram of MC circuit. MC circuit adopts bistable circuit structure.

[0032] Fig. 9 Multiple ETL-TCells form a segment circuit;

[0033] Fig.10 It is a diagram of a word circuit structure formed by connecting multiple sub-segment circuits in parallel;

[0034] Fig.11 This is a schematic diagram of the circuit of two traditional TCAM units (only the storage unit part is simply drawn, and the rest is omitted);

[0035] Fig.12 The ETL-TCell search line is generated by the search line decoding (decode_SLW) of the traditional TCAM unit. DETAILED DESCRIPTION

[0036] like Figure 6-Figure 7As shown, an enhanced TL-TCAM table lookup type hardware search engine, each word circuit includes a plurality of enhanced TL-TCAM unit circuits, the enhanced TL-TCAM unit circuit includes four storage cells MC1-MC4 and thirteen N-type transistors N1-N13; the storage cell MC adopts a bistable circuit structure, the storage value is located at the T end of the storage cell MC, the F end of the storage cell MC is its "not" value, the gate of the N-type transistor N1 is connected to OneX, the source of the N-type transistor N1 is connected to the power supply, the drain of the N-type transistor N1 is connected to the source of the N-type transistor N2, the drain of the N-type transistor N2 is connected to the source of the N-type transistor N3, and the N-type transistor The drain of N3 is connected to ML_X, the gate of N-type transistor N3 is connected to the source of N-type transistor N7, the gate of N-type transistor N7 is connected to XSL_11, the drain of N-type transistor N7 is connected to the F end of storage cell MC2, the T end of storage cell MC2 is connected to the source of N-type transistor N6, the gate of N-type transistor N6 is connected to LSL_11, the drain of N-type transistor N6 is connected to the source of N-type transistor N5, the gate of N-type transistor N5 is connected to LSL_00, the drain of N-type transistor N5 is connected to the T end of storage cell MC1, the F end of storage cell MC1 is connected to the source of N-type transistor N4, the gate of N-type transistor N4 is connected to The drain of the N-type transistor N4 is connected to the source of the N-type transistor N12, the gate of the N-type transistor N12 is connected to the word line WL, the drain of the N-type transistor N12 is connected to the bit line BL1, the drain of the N-type transistor N4 is connected to the source of the N-type transistor N7 through the MA line, the gate of the N-type transistor N2 is connected to the source of the N-type transistor N8, the gate of the N-type transistor N8 is connected to XSL_10, the drain of the N-type transistor N8 is connected to the F end of the storage cell MC3, the T end of the storage cell MC3 is connected to the source of the N-type transistor N9, the gate of the N-type transistor N9 is connected to LSL_10, the drain of the N-type transistor N9 is connected to the N-type crystal The source of the body transistor N10 is connected, the gate of the N-type transistor N10 is connected to LSL_01, the drain of the N-type transistor N10 is connected to the T terminal of the storage cell MC4, the F terminal of the storage cell MC3 is connected to the source of the N-type transistor N11, the gate of the N-type transistor N11 is connected to XSL_01, the drain of the N-type transistor N11 is connected to the source of the N-type transistor N13, the gate of the N-type transistor N13 is connected to the word line WL, the drain of the N-type transistor N13 is connected to the bit line BL2, the drain of the N-type transistor N11 is connected to the gate of the N-type transistor N2 through the MB line, and the source of the N-type transistor N5 is connected to the drain of the N-type transistor N9 through the matching line ML;

[0037] m enhanced TL-TCAM unit circuits are connected in parallel to form a sub-segment circuit, where m is a positive integer. The word line WL, the match line ML, and the ML_x of each enhanced TL-TCAM unit circuit in the sub-segment circuit are short-circuited together respectively, the match line ML is connected to the drain of the N-type transistor N15, ML_x is connected to the gate of the N-type transistor N15, the source of the N-type transistor N15 is grounded, ML_x is connected to the drain of the N-type transistor N14, the source of the N-type transistor N14 is grounded, and the gate of the N-type transistor N14 is connected to the signal line OneX_in-Sement_b, see Fig. 9 ; Multiple sub-segment circuits are connected in parallel to form a word circuit, see Fig.10 .

[0038] The source of data stored in ETL-TCAM refers to the data conversion method between table-lookup TCAM and traditional TCAM [2-4]. It is assumed here that the data has been converted and stored in each ETL-TCell unit.

[0039] The search line generation method in the ETL-TCell unit is as follows:

[0040] The traditional TCAM cell consists of two SRAM cells and is fed by two search lines SL1 and SL2, for example Figure 4 TCAM unit. Assume that the input search word SLW is represented by (SL1, SL2), assume that input SLW=0=(SL1, SL2)=(0, 1), input SLW=1=(SL1, SL2)=(1, 0), input SLW=global X=(SL1, SL2)=(0, 0). For convenience, we abbreviate global X as G_X.

[0041] In the present invention, one ETL-TCell unit corresponds to two traditional TCAM units. And the search lines of one ETL-TCell unit are composed of LSL, XSL and OneX. For the convenience of comparison, we give a comparison between two traditional TCAM units and one ETL-TCell. The circuit diagram of two traditional TCAM units is shown in Fig.11 Only the storage unit part is simply drawn, and the corresponding search line representation is shown in Table 2;

[0042] Table 2 Search line representation of two traditional TCAM units

[0043]

[0044] Among them, Fig.12As shown, LSL_00, LSL_01, LSL_10, LSL_11, XSL_00, XSL_01, XSL_10, XSL_11, OneX of the word circuit array are respectively connected to the decoder decode_SLW, and the truth table of the decoder decode_SLW is shown in Table 3;

[0045] Table 3 Decoder decode_SLW truth table

[0046]

[0047] In the table, “-” represents “0”.

[0048] When there is no G_X in (SLW#1, SLW#2), only one of LSL_00, LSL_01, LSL_10, LSL_11 is selected, the values ​​of LSL_00, LSL_01, LSL_10, LSL_11 are equal to 1, OneX and XSL_00, XSL_01, XSL_10, XSL_11 are all 0, then the N-type transistor connected to it will be turned on, and the value of the T end of the corresponding MC unit will be selected to ML;

[0049] If LSL_00=1, the value of MC1.T is selected to ML, which is recorded as ML<=MC1.T;

[0050] If LSL_11=1, then ML<=MC2.T;

[0051] If LSL_10=1, then ML<=MC3.T;

[0052] If LSL_01=1, then ML<=MC4.T;

[0053] At this time, OneX=0, the N-type transistor N1 is turned off, and the ML_X value is floating, which is recorded as ML_x<=FLOAT.

[0054] When ML_x<=FLOAT, if ML=1, it means that MC.F stored in the selected MC unit is 1, that is, the search result of the enhanced TL-TCAM unit circuit is a match HIT; if ML=0, the search result of the enhanced TL-TCAM unit circuit is a mismatch MISS;

[0055] Among them, when there are 2 G_X in (SLW#1, SLW#2), LSL_00, LSL_01, LSL_10, LSL_11, XSL_00, XSL_01, XSL_10, XSL_11 and OneX are all 0, N-type transistor N1 is turned off, ML_X<=FLOAT; N-type transistor N5, N-type transistor N6, N-type transistor N9, N-type transistor N10 are turned off, ML<=FLOAT; this indicates that the search result of the enhanced TL-TCAM unit circuit is a matching HIT;

[0056] Among them, when there is 1 G_X in (SLW#1, SLW#2), LSL_00, LSL_01, LSL_10, and LSL_11 are all 0; N-type transistors N5, N-type transistors N6, N-type transistors N9, and N-type transistors N10 are turned off, and ML<=FLOAT;

[0057] When only one of XSL_00 and XSL_11 is selected;

[0058] If XSL_00 is selected, the N-type transistor N4 is turned on, and MA<=MC1.F;

[0059] If XSL_11 is selected, the N-type transistor N7 is turned on, MA<=MC2.F;

[0060] When only one of XSL_10 and XSL_01 is selected;

[0061] If XSL_10 is selected, the N-type transistor N8 is turned on, and MB<=MC3.F;

[0062] If XSL_01 is selected, the N-type transistor N11 is turned on, MB<=MC4.F;

[0063] OneX=1, the N-type transistor N1 is turned on. At this time, if the MA line and the MB line are both 1, the N-type transistor N3 and the N-type transistor N2 are both turned on, and ML_x<=1, indicating that the search result of the enhanced TL-TCAM unit circuit is a mismatch MISS; at this time, if one of the MA line and the MB line is 0 or both are 0, at least one of the N-type transistor N2 and the N-type transistor N3 is turned off, and ML_x<=FLOAT, indicating that the search result of the enhanced TL-TCAM unit circuit is a match HIT.

[0064] Table 4 summarizes the key signal states of the ETL-TCell unit during the search operation.

[0065] Table 4 Description of the search status of the ETL-TCell unit

[0066]

[0067]

[0068] Among them, the search function of the sub-segment circuit of the enhanced TL-TCAM is as follows:

[0069] The value range of ML is {MC.T, FLOAT}, the value range of MC.T is {0,1}, then the value range of ML is {{0,1}, FLOAT}; assuming that the ML of a certain enhanced TL-TCAM unit circuit is 0, recorded as ETL-TCell.ML=0, then no matter what the ML value of other enhanced TL-TCAM unit circuits in the sub-segment is, the ML of the sub-segment circuit will be pulled to a lower voltage, indicating that the search result of the sub-segment circuit is a mismatch MISS; assuming that it is precharged to a high level at the beginning, the ML voltage remains at a high level, and the search result of the sub-segment circuit is a match HIT;

[0070] When the N-type transistor N15 is turned on, ML will also be pulled to a lower level, and the search result of the sub-segment circuit is "mismatch";

[0071] When the search words (SLW#1, SLW#2) of each enhanced TL-TCAM unit circuit in the sub-segment circuit only contain an even number of G_X, that is, an even number 0 or 2, at this time, the signal line OneX_in-Sement_b=1, the N-type transistor N14 is turned on, the OneX of each enhanced TL-TCAM unit circuit is 0, the ML_x of the sub-segment circuit is 0, and the N-type transistor N15 of the sub-segment circuit is turned off; the state of ML is only determined by the ML line of each ETL-TCell unit; ML=1 of the sub-segment circuit indicates that the sub-segment search result is a match HIT, and ML=0 indicates that the sub-segment search result is a mismatch MISS;

[0072] When the search word (SLW#1, SLW#2) of at least one enhanced TL-TCAM unit circuit in the sub-segment circuit contains an odd number of G_X, that is, an odd number 1; at this time, the signal line OneX_in-Sement_b=0, and the ML of the sub-segment circuit is jointly determined by the ML and ML_x of each enhanced TL-TCAM unit circuit; if ML_x=1 in at least one enhanced TL-TCAM unit circuit, the corresponding ETL-TCell unit search result is a mismatch MISS; at the same time, ML_x is charged to a high level, and the ML_x of the sub-segment circuit is initially discharged to 0 by the N-type transistor N14 controlled by One_in_Segment_b, causing the N-type transistor N15 to turn on, and the ML of the sub-segment circuit is pulled to a low level, indicating that the search result of the sub-segment circuit is a mismatch MISS;

[0073] If the ML_x of all enhanced TL-TCAM unit circuits in the sub-segment circuit is FLOAT at this time, the search result of each enhanced TL-TCAM unit circuit is a match HIT, then the ML_x of the sub-segment circuit maintains the original low level, ML_x is initially reset to 0 by the N-type transistor N14 controlled by One_in_Segment_b, and the N-type transistor N15 is turned off, the ML of all enhanced TL-TCAM unit circuits is also FLOAT, and the ML of the sub-segment circuit also maintains the original high level, indicating that the search result of the sub-segment circuit is a match HIT.

[0074] Table 5 summarizes the above process.

[0075] Table 5 Description of the search status of the sub-segment circuit

[0076]

[0077] Among them, the search function of the word circuit of the enhanced TL-TCAM is as follows:

[0078] The search result of the word circuit is represented by the match line ML, and the ML of the word circuit is the parallel connection of the ML of each sub-segment circuit; when the ML of the sub-segment circuits are all 1, the ML of the word circuit = 1, indicating that the search result of the word circuit is a match HIT; when any of the ML of the sub-segment circuits is 0, the ML of the word circuit = 0, indicating that the search result of the word circuit is a mismatch MISS.

[0079] The read-write functions of the present invention are as follows:

[0080] 1. Read operation

[0081] At this time, WL=1, and MC1.F and MC2.F can be read out from BL1 by alternately setting XSL_00 and XSL_11 to high level. At the same time, MC3.F and MC4.F can be read out from BL2 by alternately setting XSL_10 and XSL_01 to high level. The read operation function description is shown in Table 6.

[0082] Table 6 Read operation function description

[0083]

[0084] Note: “-” in the table represents “0”.

[0085] 2. Write operation

[0086] WL=1 during write operation.

[0087] As with traditional SRAM, write operations are performed by writing "0" in MC.F or MC.T.

[0088] To write "1" in MC (MC.T = 1), set the XSL directly connected to the MC unit to 1 and BL to 0 (LSL is 0 at this time). For example:

[0089] XSL_00=1, BL1=0, then MC1.F=0, that is, MC1.T=1;

[0090] XSL_11=1, BL1=0, then MC2.F=0, that is, MC2.T=1;

[0091] XSL_10=1, BL2=0, then MC3.F=0, that is, MC3.T=1;

[0092] XSL_01=1, BL2=0, then MC4.F=0, that is, MC4.T=1;

[0093] To write "0" in MC (MC.T = 0), set the SL directly connected to the MC unit to 1 and the ML to 0 (XSL is 0 at this time). For example:

[0094] LSL_00=1,ML=0, then MC1.T=0;

[0095] LSL_11=1,ML=0, then MC2.T=0;

[0096] LSL_10=1,ML=0, then MC3.T=0;

[0097] LSL_01=1,ML=0, then MC4.T=0;

[0098] Table 7 and Table 8 summarize the truth tables for write operations.

[0099] Table 7 Control line truth table when writing 1

[0100]

[0101] Note: “-” in the table represents “0”.

[0102] Table 8 Control line truth table when writing 0

[0103]

[0104] Note: “-” in the table represents “0”.

[0105] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical solutions and concepts of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. An enhanced TL-TCAM table lookup hardware search engine, characterized in that: Each word circuit includes a plurality of enhanced TL-TCAM unit circuits, wherein the enhanced TL-TCAM unit circuit includes four storage cells MC1-MC4 and thirteen N-type transistors N1-N13; the storage cell MC adopts a bistable circuit structure, the storage value is located at the T end of the storage cell MC, the F end of the storage cell MC is its "not" value, the gate of the N-type transistor N1 is connected to OneX, the source of the N-type transistor N1 is connected to the power supply, the drain of the N-type transistor N1 is connected to the source of the N-type transistor N2, the drain of the N-type transistor N2 is connected to the source of the N-type transistor N3, the drain of the N-type transistor N3 is connected to ML_X, and the N-type transistor N The gate of N-type transistor N3 is connected to the source of N-type transistor N7, the gate of N-type transistor N7 is connected to XSL_11, the drain of N-type transistor N7 is connected to the F terminal of storage cell MC2, the T terminal of storage cell MC2 is connected to the source of N-type transistor N6, the gate of N-type transistor N6 is connected to LSL_11, the drain of N-type transistor N6 is connected to the source of N-type transistor N5, the gate of N-type transistor N5 is connected to LSL_00, the drain of N-type transistor N5 is connected to the T terminal of storage cell MC1, the F terminal of storage cell MC1 is connected to the source of N-type transistor N4, the gate of N-type transistor N4 is connected to XSL_00, the N-type transistor The drain of transistor N4 is connected to the source of N-type transistor N12, the gate of N-type transistor N12 is connected to word line WL, the drain of N-type transistor N12 is connected to bit line BL1, the drain of N-type transistor N4 is connected to the source of N-type transistor N7 through MA line, the gate of N-type transistor N2 is connected to the source of N-type transistor N8, the gate of N-type transistor N8 is connected to XSL_10, the drain of N-type transistor N8 is connected to the F end of storage cell MC3, the T end of storage cell MC3 is connected to the source of N-type transistor N9, the gate of N-type transistor N9 is connected to LSL_10, the drain of N-type transistor N9 is connected to the source of N-type transistor N10 The gate of the N-type transistor N10 is connected to LSL_01, the drain of the N-type transistor N10 is connected to the T terminal of the storage cell MC4, the F terminal of the storage cell MC3 is connected to the source of the N-type transistor N11, the gate of the N-type transistor N11 is connected to XSL_01, the drain of the N-type transistor N11 is connected to the source of the N-type transistor N13, the gate of the N-type transistor N13 is connected to the word line WL, the drain of the N-type transistor N13 is connected to the bit line BL2, the drain of the N-type transistor N11 is connected to the gate of the N-type transistor N2 through the MB line, and the source of the N-type transistor N5 is connected to the drain of the N-type transistor N9 through the matching line ML; m enhanced TL-TCAM unit circuits are connected in parallel to form a sub-segment circuit, where m is a positive integer. The word line WL, the matching line ML, and the ML_x of each enhanced TL-TCAM unit circuit in the sub-segment circuit are short-circuited together respectively, the matching line ML is connected to the drain of the N-type transistor N15, ML_x is connected to the gate of the N-type transistor N15, the source of the N-type transistor N15 is grounded, ML_x is connected to the drain of the N-type transistor N14, the source of the N-type transistor N14 is grounded, and the gate of the N-type transistor N14 is connected to the signal line OneX_in-Sement_b. Multiple sub-segment circuits are connected in parallel to form a word circuit.

2. The enhanced TL-TCAM table lookup type hardware search engine according to claim 1, characterized in that: LSL_00, LSL_01, LSL_10, LSL_11, XSL_00, XSL_01, XSL_10, XSL_11, OneX of the word circuit array are connected to the decoder decode_SLW respectively. The truth table of the decoder decode_SLW is as follows: In the table, "-" represents "0"; When there is no G_X in (SLW#1, SLW#2), only one of LSL_00, LSL_01, LSL_10, LSL_11 is selected, the values ​​of LSL_00, LSL_01, LSL_10, LSL_11 are equal to 1, OneX and XSL_00, XSL_01, XSL_10, XSL_11 are all 0, then the N-type transistor connected to it will be turned on, and the value of the T end of the corresponding MC unit will be selected to ML; If LSL_00=1, the value of MC1.T is selected to ML, which is recorded as ML<=MC1.T; If LSL_11=1, then ML<=MC2.T; If LSL_10=1, then ML<=MC3.T; If LSL_01=1, then ML<=MC4.T; At this time, OneX=0, the N-type transistor N1 is turned off, and the ML_X value is suspended, which is recorded as ML_x<=FLOAT. When ML_x<=FLOAT, if ML=1, it means that MC.F stored in the selected MC unit is 1, that is, the search result of the enhanced TL-TCAM unit circuit is a match HIT; if ML=0, the search result of the enhanced TL-TCAM unit circuit is a mismatch MISS; When there are 2 G_X in (SLW#1, SLW#2), LSL_00, LSL_01, LSL_10, LSL_11, XSL_00, XSL_01, XSL_10, XSL_11 and OneX are all 0, N-type transistor N1 is turned off, ML_X<=FLOAT; N-type transistor N5, N-type transistor N6, N-type transistor N9, N-type transistor N10 are turned off, ML<=FLOAT; this indicates that the search result of the enhanced TL-TCAM unit circuit is a matching HIT; When there is 1 G_X in (SLW#1, SLW#2), LSL_00, LSL_01, LSL_10, and LSL_11 are all 0; N-type transistors N5, N-type transistors N6, N-type transistors N9, and N-type transistors N10 are turned off, and ML<=FLOAT; When only one of XSL_00 and XSL_11 is selected; If XSL_00 is selected, the N-type transistor N4 is turned on, and MA<=MC1.F; If XSL_11 is selected, the N-type transistor N7 is turned on, MA<=MC2.F; When only one of XSL_10 and XSL_01 is selected; If XSL_10 is selected, the N-type transistor N8 is turned on, and MB<=MC3.F; If XSL_01 is selected, the N-type transistor N11 is turned on, MB<=MC4.F; OneX=1, the N-type transistor N1 is turned on. At this time, if the MA line and the MB line are both 1, the N-type transistor N3 and the N-type transistor N2 are both turned on, and ML_x<=1, indicating that the search result of the enhanced TL-TCAM unit circuit is a mismatch MISS; at this time, if one of the MA line and the MB line is 0 or both are 0, at least one of the N-type transistor N2 and the N-type transistor N3 is turned off, and ML_x<=FLOAT, indicating that the search result of the enhanced TL-TCAM unit circuit is a match HIT.