In this invention a hit ahead multi-level hierarchical scalable priority encoding logic and circuits are disclosed. The advantage of hierarchical priority encoding is to improve the speed and simplify the circuit implementation and make circuit design flexible and scalable. To reduce the time of waiting for previous level priority encoding result, hit signal is generated first in each level to participate next level priority encoding, and it is called hit Ahead priority encoding (HAPE) encoding. The hierarchical priority encoding can be applied to the scalable architecture among the different sub-blocks and can also be applied with in one sub-block. The priority encoding and hit are processed completely parallel without correlation, and the priority encoding, hit generation, address encoding and MUX selection of the address to next level all share same structure of circuits.
|
0. 29. A content addressable memory (cam) system, comprising:
a circuit segment configured to generate a circuit segment output based on whether at least one of a plurality of circuit segment inputs received by the circuit segment corresponds to a first logic level,
the circuit segment configured to set a node to a second logic level in response to an input signal, and to subsequently change the node to a third logic level in response to the plurality of circuit segment inputs,
the circuit segment output corresponding to said third logic level.
0. 13. A content addressable memory (cam) system, comprising:
one or more columns comprising a plurality of circuit segments, at least one of the circuit segments configured to generate a first circuit segment output based on whether at least one of a plurality of circuit segment inputs received by the at least one of the circuit segments corresponds to a first logic level,
at least one of the one or more columns configured to generate first address information based on a selected one of the first circuit segment outputs that corresponds to a second logic level, to set a node to a third logic level in response to a first input signal, and to subsequently change the node to a fourth logic level in response to one or more of a plurality of second input signals.
1. A content address able memory(cam) and hit ahead priority encoding(HAPE) logic, comprising:
a group of blocks which is arranged in column and row, each block has equal number of cam match signals which are the input signals of priority encoding logic, each block has same priority encoding logic of cam match signals within the block, the cam match signals or input signals are arranged from lower priority to higher priority or from higher priority to lower priority, each cam match signals or input signal has either high logic level “one” which is called hit or low logic level “zero” which is called miss, each block generates block hit when there is at least one cam match signal is high logic “one” within the block or block miss signal when all the cam match signals are in low logic level “zero” within the block and block binary address signal corresponding to the cam match signals of highest priority within the block, a priority encoding logic of block hit or miss signals of each column, each column generates a column hit signal when there is at least one block hit signal within the column or column miss signal when there is only block miss signals within the column and column binary address corresponding to the cam match signals of highest priority within the column, a priority encoding logic of column hit or miss signals of a group column, a group of column generates a hit signal when there is at least one column hit signal within the group column or a miss signal when there is only column miss signals within the group column and a group column binary address corresponding to the cam match signals of highest priority within the group column.
0. 7. A content addressable memory (cam) and hit ahead priority encoding (HAPE) logic, comprising:
a group of blocks which are arranged in columns and rows, each block having an equal number of cam match signals which are the input signals of priority encoding logic, each block having a same priority encoding logic of cam match signals within the block, the cam match signals or input signals arranged from lower priority to higher priority or from higher priority to lower priority, each cam match signal or input signal being either a high logic level “one which is called hit or a low logic level “zero” which is called miss, each block configured to generate a block hit signal when there is at least one cam match signal that is a high logic level “one” within the block or a block miss signal when all the cam match signals are a low logic level “zero” within the block and a block binary address signal corresponding to the cam match signals of highest priority within the block;
a priority encoding logic of block hit or miss signals of each column, each column configured to generate a column hit signal when there is at least one block hit signal within the column or a column miss signal when there are only block miss signals within the column and a column binary address corresponding to the cam match signals of highest priority within the column; and
a priority encoding logic of column hit or miss signals of a group column, the group column configured to generate a hit signal when there is at least one column hit signal within the group column or a miss signal when there are only column miss signals within the group column and a group column binary address corresponding to the cam match signals of highest priority within the group column.
2. A content address able memory(cam) and hit ahead priority encoding(HAPE) logic of
a block multiplexer to select the binary address from the block of highest priority hit within the column as less significant portion of the column binary address; and
a priority encoding logic of block hit signals to generate the block multiplexer control signal which select the block of highest priority hit within the column, and a binary address encoding logic of block hit signals to generate the more significant portion of the column highest priority binary address.
3. A content address able memory(cam) and hit ahead priority encoding(HAPE) logic of
a group of sub-blocks, each sub-block has equal number of input signals, each sub-block has priority encoding and binary address encoding logic to generate sub-block highest priority binary address as well as hit or miss generating logic to generate sub-block hit or miss signal, and the sub-block hit or miss signal is generated independently before sub-block binary address;
a block hit or miss generating logic to generate block hit or miss signal and block hit or miss signal is generated independently before the block binary address is generated;
a sub-block multiplexer to select the binary address from the highest priority sub-block within the block as less significant portion of block binary address; and
a priority encoding logic of each sub-block hit signals to generate the control signal of sub-block multiplexer, and a binary address encoding logic of each sub-block hit signals to generate the more significant portion of block binary address.
4. A content addressable memory(cam) and hit ahead priority encoding(HAPE) logic of
5. A content address able memory(cam) and hit ahead priority encoding(HAPE) logic of
6. A content address able memory(cam) and hit ahead priority encoding(HAPE) logic of
0. 8. The content addressable memory (cam) and hit ahead priority encoding (HAPE) logic of claim 7, further comprising:
a block multiplexer configured to select a binary address from the block having the highest priority hit within the column as a less significant portion of the column binary address,
the priority encoding logic of block hit signals being configured to generate a block multiplexer control signal for selecting the block having the highest priority hit within the column; and
a binary address encoding logic of block hit signals configured to generate a more significant portion of the column binary address.
0. 9. The content addressable memory (cam) and hit ahead priority encoding (HAPE) logic of claim 7, wherein each block comprises:
a group of sub-blocks, each sub-block having an equal number of input signals, each sub-block having priority encoding and binary address encoding logic configured to generate a sub-block highest priority binary address as well as hit or miss generating logic configured to generate a sub-block hit or miss signal, the sub-block hit or miss signal being generated independently before the sub-block binary address;
a block hit or miss generating logic configured to generate a block hit or miss signal, the block hit or miss signal being generated independently before the block binary address is generated;
a sub-block multiplexer configured to select a binary address from a highest priority sub-block within the block as a less significant portion of the block binary address; and
a priority encoding logic of each sub-block hit signals configured to generate a control signal of the sub-block multiplexer; and
a binary address encoding logic of the sub-block hit signals configured to generate a more significant portion of the block binary address.
0. 10. The content addressable memory (cam) and hit ahead priority encoding (HAPE) logic of claim 9, wherein the priority encoding logic, the address encoding logic, and the multiplexer have logic circuitry of the same structure.
0. 11. The content addressable memory (cam) and hit ahead priority encoding (HAPE) logic of claim 10, wherein the hit generating logic, the priority encoding logic, the address encoding logic, and the multiplexer have dynamic NOR logic.
0. 12. The content addressable memory (cam) and hit ahead priority encoding (HAPE) logic of claim 8, wherein a signal for controlling the multiplexer is generated before or at the same time that the less significant portion of the highest priority local address is generated.
0. 14. The cam system of claim 13, wherein the first circuit segment output represents circuit segment hit information.
0. 15. The cam system of claim 13, wherein the at least one of the plurality of circuit segment inputs represents match information.
0. 16. The cam system of claim 13, wherein the selected one of the first circuit segment outputs is a highest priority one of the first circuit segment outputs that corresponds to the second logic level.
0. 17. The cam system of claim 13, wherein:
the one or more columns are a plurality of columns, and
the plurality of circuit segments are arranged in the plurality of columns and a plurality of rows.
0. 18. The cam system of claim 13, wherein:
the one or more columns are a group of columns;
each column in the group configured to generate a column output based on the first circuit segment output of the at least one of the circuit segments; and
the group configured to generate second address information based on a selected one of the column outputs that corresponds to a fifth logic level.
0. 19. The cam system of claim 13, wherein:
the at least one of the one or more columns is configured to pre-charge the node in response to the first input signal; and
the at least one of the one or more columns is configured to subsequently discharge the node in response to the one or more of the plurality of second input signals.
0. 20. The cam system of claim 13, wherein the first input signal is configurable independently of the one or more of the plurality of second input signals.
0. 21. The cam system of claim 13, wherein the first logic level and the second logic level are the same logic level.
0. 22. The cam system of claim 13, wherein the one or more columns comprise:
a first logic circuit configured to generate a first logic circuit output based on the selected one of the first circuit segment outputs that corresponds to the second logic level;
a second logic circuit configured to generate a second logic circuit output based on whether the first circuit segment output corresponds to the second logic level; and
a third logic circuit configured to generate the first address information based on the selected one of the first circuit segment outputs that corresponds to the second logic level.
0. 23. The cam system of claim 22, wherein at least one of the first logic circuit, the second logic circuit, and the third logic circuit is configured to set the node to the third logic level in response to the first input signal, and to subsequently change the node to the fourth logic level in response to the one or more of the plurality of second input signals.
0. 24. The cam system of claim 22, wherein:
the at least one of the circuit segments is configured to generate a second circuit segment output representing second address information; and
the one or more columns further comprise:
a fourth logic circuit configured to select one of the second circuit segment outputs as a less significant portion of the first address information; and
a fifth logic circuit configured to generate a more significant portion of the first address information.
0. 25. The cam system of claim 24, wherein at least one of the fourth logic circuit and the fifth logic circuit is configured to set the node to the third logic level in response to the first input signal, and to subsequently change the node to the fourth logic level in response to the one or more of the plurality of second input signals.
0. 26. The content addressable memory (cam) system of claim 24, wherein the one or more columns are each configured to generate a control input for the third logic circuit before or at the same time when the second circuit segment output is generated.
0. 27. The content addressable memory (cam) system of claim 22, wherein:
the plurality of circuit segment inputs is divided into a plurality of subsets of the circuit segment inputs; and
the first logic circuit comprises:
a plurality of fourth logic circuits each configured to generate a fourth logic circuit output based on whether at least one of a corresponding subset of the circuit segment inputs corresponds to the first logic level; and
a fifth logic circuit configured to generate the first circuit segment output based on whether at least one of the fourth logic circuit outputs corresponds to the first logic level.
0. 28. The cam system of claim 27, wherein:
at least one of the fourth logic circuit and the fifth logic circuit is configured to set the node to the third logic level in response to the first input signal, and to subsequently change the node to the fourth logic level in response to the one or more of the plurality of second input signals; and
the fourth logic circuit output is an input to the fifth logic circuit.
0. 30. The cam system of claim 29, wherein at least one of the plurality of circuit segment inputs corresponds to a match line output.
0. 31. The cam system of claim 29, wherein the circuit segment output represents circuit segment hit information.
0. 32. The cam system of claim 29, wherein at least one of the plurality of circuit segment inputs represents match information.
0. 33. The cam system of claim 29, wherein:
the circuit segment is configured to pre-charge the node in response to the input signal; and
the circuit segment is configured to subsequently discharge the node in response to the plurality of circuit segment inputs.
0. 34. The cam system of claim 29, wherein the input signal is configurable independently of the plurality of circuit segment inputs.
0. 35. The cam system of claim 29, wherein the first logic level and the third logic level are the same logic level.
0. 36. The cam system of claim 29, wherein the circuit segment is a first circuit segment, and further comprising a second circuit segment configured to generate address information based on the circuit segment output.
|
This application claims the benefit of provisional U.S. Application Ser. No. 60/550,537, entitled “Priority encoding logic and Circuits,” filed Mar. 4, 2004, which is incorporated herein by reference in its entirety for all purposes.
The presentation relates to content addressable memory. In particular, the present invention relates to logic and circuits of priority encoding of match or hit address.
In ternary content addressable memory, not every bit in each row are compared in the searching or comparing process, so some time in one comparison, there are more than one row matching the input content, it is called multi-hit or match. In multi-hit case, one protocol was made to select the highest priority address. The logic of selecting the highest priority address is called priority encoding.
Assume we have {A0, A1, . . . An-1} hit signals from the corresponding addresses and define A0 has the highest priority and An has the lowest priority. Assume some of {A0, A1, . . . An-1, An} are logic “1” and all of the others are logic “0”, the priority encoding keep the highest priority “1” as “1” and convert all the other “1” into “0”. The logic operation of this transform:
can logically be expressed as:
Which means only when A0 to Ai-1, are all zero, hi=Ai, otherwise no matter Ai=0 or 1, hi=0.
After the priority encoding, the hit address with the highest priority will be encoded to the binary address.
If the entry N are large, say 1K to 128K or even 1M, the calculation of priority logic (2) will take long time if we use serial logic. So we come out the inventions which will be described in the following.
In this invention, we propose a multi-level hierarchical scalable priority encoding. For example we make 8 entry as one group as first level and 8 first level as a second level, total 64 entry. Then we can make 8 second level as third level, total 512 entry, and so on. The advantage to make hierarchical priority encoding is to improve the speed, and simplify the circuit implementation and make circuit design flexible and scalable.
To reduce the time of waiting for previous level priority encoding result, we generate the hit signal first in each level to participate next level priority encoding, and we call it Hit Ahead Priority Encoding (HAPE) encoding.
The hierarchical priority encoding can be applied to the scalable architecture among the different sub-blocks and can also be applied with in one sub-block.
Preferred embodiments of the invention will now be described, by way of example only, with reference to the attached Figures, wherein:
To make the priority encoding logic calculation quicker, the entire CAM block can be divided into 256 block and divided into four quadruple, each quadruple has 8×8=64 block and each block has 8×8=64 entry as shown in
This is just to explain the principle, the entry number of each sub-block and the number of sub-block can be different. Assume the data pad 110 are equally distributed in four side of the chip. If all of the data pad 110 are in one side or less than four side, the principle is same.
First step, route all the data signal in each side (only one side are drawn in the
The priority encoding logic calculation block diagram for each 8×8=64 entry sub-block 120 are shown in
The timing diagram of embodiment 200a is shown in
BA0[2:0] to BA7[2:0] which are drawn as 245 are roughly same and they are generated in time t2. So the Binary address Add1[2:0] which are drawn as 248 are selected by Ph[7:0] from the 8 group address BA0[2:0] to BA7[2:0] through an eight to one MUX 204 without any further delay except the delay of MUX itself which is (t3−t2), and the address Add1[5:3] which are drawn as 247, Add1[2:0] and Add[5:0] which are drawn as 249 are available at time t3.
So the total delay from A[63:0] available to the output of binary hit address Add1[5:0] is about three stage delay(priority 2p0, binary encoding 2e0 and 8 to 1 MUX 204), where we call each block(2p0, 2e0 and 204 etc) as one stage. The delay of Hit1 243 is two stage delay. So the output of Hit1 which is available at t2 which is one stage earlier than the output of binary Hit address Add1[5:0] 249 which is available at t3. Only Hit1 and Add1[5:0] are sent to the next level priority encoding. The entire sub-block are abstracted as symbol 208. The timing delay of hit, priority encoding, binary encoding and 8 to 1 mux will be analyzed in details.
In the same time Ph1[7:0] are encoded into binary address Add2[8:6] in block 310. Add2[8:6] and Add2[5:0] make Add2[8:0]. In block 308 eight input Hit1[7:0] generate Hit2 at time t3 which is one stage earlier than Binary hit address Add2[8:0]. From the timing diagram 340 in
Another advantage of this hierarchical priority encoding is that the simplicity of circuit design. We already see that each level shares the same logic and circuit design. Say, the priority function block 206, 309 in each level are same in logic and circuit, which is shown in
Embodiment 400 in
The equation (3) is implemented as embodiment 400 in
Since A0=0, A1=0, A2=Vdd, Ā2=0, so the inputs of transistors 404, 405, 406 are all zero and the transistor 404, 405, 406 are all OFF and the node 4y2 will not be discharged and will be kept logically “one” at potential Vdd. Since A2=Vdd, the inputs of transistors 408, 413, 419, 426 and 434 will be Vdd and all the node 4y3, 4y4, 4y5, 4y6 and 4y7 will be pulled to ground no matter if A3, A4, A5, A6 and A7 are logically one or zero. The slowest path or worst case is only one input among eight N transistor 429, 430, 431, 432, 433, 434, 435 and 436 connected to node 4y7 is Vdd and all the others are zero, in that case one transistor need to discharge the drain parasitic capacitance of eight transistor and the metal wire capacitance connected to node 4y7. The signal en is characterized to turned to Vdd later then node 4y7 is discharged in worst case. The worst case delay of eight input priority encoding is that one N transistor discharging the drain parasitic capacitance of eight same size N transistor down to ground plus the delay of one NAND gate and one inverter.
The logic of Hit function block 2h0, 2h1, . . . 2hh and 308 in each level is also same and its logic and circuit are shown in
The binary encoding logic and circuit is shown as embodiment 600 in
The MUX logic and circuit is shown in
The entire Priority encoding logic and circuit are simplified as a four basic building block of 400, 510, 600 and 700 in
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Patent | Priority | Assignee | Title |
Patent | Priority | Assignee | Title |
6249449, | Jan 10 1992 | KAWASAKI MICROELECTRONICS, INC | Hierarchical encoder including timing and data detection devices for a content addressable memory |
6307767, | Apr 09 2001 | AVAGO TECHNOLOGIES GENERAL IP SINGAPORE PTE LTD | Low power priority encoder |
6392910, | Sep 10 1999 | INNOMEMORY LLC | Priority encoder with multiple match function for content addressable memories and methods for implementing the same |
6505271, | Nov 12 1999 | AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE LIMITED | Increasing priority encoder speed using the most significant bit of a priority address |
7043601, | Sep 29 2000 | MUSICQUBED INNOVATIONS, LLC | Priority encoder circuit and method |
7464217, | Feb 24 2004 | CAVIUM INTERNATIONAL; MARVELL ASIA PTE, LTD | Design structure for content addressable memory |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Date | Maintenance Fee Events |
Sep 11 2017 | REM: Maintenance Fee Reminder Mailed. |
Feb 26 2018 | EXP: Patent Expired for Failure to Pay Maintenance Fees. |
May 09 2018 | PMFP: Petition Related to Maintenance Fees Filed. |
Dec 14 2018 | PMFS: Petition Related to Maintenance Fees Dismissed. |
Sep 13 2021 | REM: Maintenance Fee Reminder Mailed. |
Nov 02 2021 | M2553: Payment of Maintenance Fee, 12th Yr, Small Entity. |
Nov 02 2021 | M2556: 11.5 yr surcharge- late pmt w/in 6 mo, Small Entity. |
Jan 04 2022 | PMFP: Petition Related to Maintenance Fees Filed. |
Date | Maintenance Schedule |
Nov 25 2017 | 4 years fee payment window open |
May 25 2018 | 6 months grace period start (w surcharge) |
Nov 25 2018 | patent expiry (for year 4) |
Nov 25 2020 | 2 years to revive unintentionally abandoned end. (for year 4) |
Nov 25 2021 | 8 years fee payment window open |
May 25 2022 | 6 months grace period start (w surcharge) |
Nov 25 2022 | patent expiry (for year 8) |
Nov 25 2024 | 2 years to revive unintentionally abandoned end. (for year 8) |
Nov 25 2025 | 12 years fee payment window open |
May 25 2026 | 6 months grace period start (w surcharge) |
Nov 25 2026 | patent expiry (for year 12) |
Nov 25 2028 | 2 years to revive unintentionally abandoned end. (for year 12) |