Field of the Invention
The present invention relates in general to digital signal processing systems and is particularly directed to a content addressable memory device that may be selectively programmed to be fully content addressable, partially content addressable, or non-content addressable.
Background of the Invention
A content addressable or associative memory is a data storage facility that permits a data processing system to rapidly determine whether a particular piece of information is stored in that facility by performing a simultaneous examination of the entire contents of the memory, rather than by successively scanning through all the addresses and examining the contents of each addressed location on an individual basis. Because each memory device within a conventional content addressable memory contains only one storage entry per bit line, which memory devices are to affect the results of an associative read operation cannot be individually controlled. Instead, selective participation or masking must be carried out by way of a sequential scan of the memory addresses, which essentially defeats the basic purpose (effectively simultaneous reading of the contents of all memory devices) of the memory.
Summary of the Invention
In accordance with the present invention there is provided a new and improved content addressable memory, the configuration of each memory device permits the memory to be programmably readable on an individual bit basis, so that the memory may be selectively programmed to be fully content addressable, partially content addressable, or non-content addressable. Pursuant to the present invention, rather than allocate only one storage entry per bit line, each memory device contains a pair of bit cells, so that more information may be stored in each device. This additional storage space provides each memory device with the ability to be individually programmed with respect to its participation in an associative read operation.
More specifically, the content addressable memory according to the present invention is comprised of a matrix of N columns of complementary bit line pairs and M rows of address line pairs, distributed among which is an array of NXM memory devices coupled to respective ones of the N columns of complementary bit line pairs and respective ones of the M rows of address line pairs. Within the array, each memory device is coupled to first and second complementary bit lines of an individual bit line pair, by way of which complementary bit values are applied from a column of complementary bit line pairs to the memory device. Each memory device also has first and second word enable lines coupled to a respective row of the address line pairs, and a respective row output line, the state of which is monitored during the course of an associative read operation.
Data is stored in a respective memory device in the form of complementary bit codes, individual components of which are written into first and second multibit memory cells. The first multibit memory cell is coupled to the first word enable line and the second memory cell is coupled to the second word enable line of the address line pair. In addition, each cell is coupled to each of the first and second complementary bit lines, so that it may store complementary bits that have been placed on the first and second complementary bit lines, during the programming of the memory, in accordance with first and second word enable signals respectively applied to the first and second word enable lines.
The participation of each memory device in the course of an associative read operation is controlled by means of a set of switching circuits that are coupled to each memory cell, the first and second complementary bit lines and the output line. Depending upon the multibit codes that have been stored in the memory cells and the contents of the bit lines, these controlled switching circuits controllably cause one of a pair of potentials to be applied by the memory device to the output line. If there is a mismatch between the contents of the memory device and the bit lines, or if the multibit code stored in the cell identifies that memory device as being excluded from the associative read process, then the applied potential causes the logical state of the row output line to be inverted. On the other hand, if there is a match between the contents of the memory device and the bit lines, or if the multibit code stored in the cell identifies that memory device as being a `don't care` in the associative read process, then the applied potential causes the logical state of the row output line to be unaffected.
In accordance with a preferred embodiment of the invention, each multibit memory cell comprises a pair of one bit storage elements for storing respective complementary bit values. For each cell respective sets of word enable transistors are coupled to one of the first and second word enable lines, to each of the first and second complementary bit lines and to the pair of storage elements, for controllably enabling the storage of complementary bit values that have been placed on the two complementary bit lines in the pair of storage elements. The set of switching circuits includes a first pair of series-connected transistors, coupled between a first prescribed potential terminal and the output line. One of the series-connected transistors has its control (gate) input coupled to one of the complementary bit lines and the other transistor has its control (gate) input coupled to one of the storage elements of the cell. When both transistors of the series-connected pair are enabled (in accordance with the bit value of the one bit line and the bit value stored in the one storage element), the first prescribed potential is coupled to output line, so that its logical state is inverted. Otherwise, the first potential terminal is decoupled from the output line, so that the logical state of the output line remains unaffected by the associative read operation, indicating either a match or a `don't care` for that memory device.
Programming of an individual memory device to control its mode of operation is effected by writing prescribed complementary bit code pairs in the memory cells of that device. In particular, for a first data value (e.g. "1") to be stored in the memory device, a first set of complementary bit values (e.g. "0 1") is written into in each of the multibit memory cells of the memory device for that memory array location. On the other hand for the opposite data value (e.g. "0") to be stored in the memory device, a second, complementary set of bit values (e.g. "1 0") is written into each memory cell. The memory device is interrogated by coupling one of the first and second sets of complementary bit values to the complementary bit lines and monitoring the state of said output line. A match causes no change in the logical state of the output line, while a mismatch inverts its logical state.
For a `don't care` state of the memory device, one of the first and second sets of complementary bit values (e.g. "1 0") is written into one memory cell and the other of the complement of that set (e.g. "0 1") is written into the other memory cell, so that, regardless of the interrogation of the memory device, neither of the series-connected pairs of switching transistors couples the first potential to the output line, so that its logical state remains unaffected, as in the case of a match.
For an `inhibit` state of said memory device, writing the other complementary bit value set (e.g."0 1") into the one memory cell and the one complementary bit value set (e.g. "1 0") into the other memory cell will cause one of the series-connected transistor pairs to provide a transmission path between the first potential and the output line upon interrogation of the memory device, regardless of the states of the bit lines. As a result, the logical state of the output line becomes inverted, indicating no match.
Because each memory cell is individually programmable, a further aspect of the present invention is its ability to function as a conventional random access memory, having a 2M.times.N storage capacity.
Brief Description of the Drawings
FIG. 1 shows the circuitry configuration of an embodiment of a content addressable memory device in accordance with the present invention;
FIG. 2 shows a table for programming an individual memory device to control its mode of operation; and
FIG. 3 diagrammatically shows an N.times.M memory cell matrix coupled with an output line monitoring means.
Detailed Description
Referring to FIG. 1, the circuitry configuration of an embodiment of a content addressable memory device MD in accordance with the present invention is diagrammatically illustrated as comprising a pair of memory cells 10 and 20 that are coupled to a pair of complementary data lines 11 and 13, to which the complementary states D, D' of an individual data value D are respectively applied, for both writing data into the memory device and conducting an associative read operation. In the description to follow, for purposes of providing a non-limitative example, a logical high, or "1", is represented by a positive voltage +V and a logical low, or "0", is represented by ground (GND) potential. As shown in FIG. 1, memory cell 10 is formed of a pair of cross-coupled complementary MOSFET inverters 21 and 22 the source-drain paths of which are coupled between respective high (+V) and low (GND) potentials. The output of inverter 21 and the input to inverter 22 are accessed through the source-drain path of a first word-enable N-channel field effect transistor 31, which is coupled between bit line 11 and the output of inverter 21 and the input to inverter 22. The gate of transistor 31 is coupled to a first word enable line 41. When enabled by a high logic level on word enable line 41, word-enable transistor 31 is gated ON and couples the data on bit line D to the input inverter 22. Similarly, the output of inverter 22 and the input of inverter 21 is accessed through the source-drain path of a second word-enable N-channel field effect transistor 32, which is coupled between inverted bit line 13 and the output of inverter 22 and the input of inverter 21. The gate of transistor 32 is also coupled to word enable line 41, so that word-enable transistor 32 is also gated ON by a high logic level on word enable line 41, and thereby controllably couples the data on inverted bit line D' to the input to inverter 21.
Likewise, memory cell 20 is formed of a pair of cross-coupled complementary MOSFET inverters 51 and 52, the source-drain paths of which are coupled between respective high (+V) and low (GND) potentials. The output of inverter 51 and the input to inverter 52 are accessed through the source-drain path of a third word-enable N-channel field effect transistor 61, which is coupled between bit line 11 and the output of inverter 51 and the input of inverter 52. The gate of transistor 61 is coupled to a second word enable line 42. When enabled by a high logic level on word enable line 42, word-enable transistor 61 is gated ON and couples the data on bit line D to the input of inverter 52. Similarly, the output of inverter 52 and the input to inverter 51 is accessed through the source-drain path of a fourth word-enable N-channel field effect transistor 62, which is coupled between inverted bit line 13 and the output of inverter 52 and the input of inverter 51. The gate of transistor 62 is also coupled to word enable line 42, so that transistor 62 is gated ON by a high logic level on word enable line 42 and thereby controllably couples the data on inverted bit line D' to the input of inverter 51.
Memory cells 10 and 20 are coupled to respective switching circuits 71 and 72, through each of which a logical state inverting potential is controllably applied to an output line 43 of the row of an N column by M row matrix of memory cells, in which the memory device resides in the course of an associative read operation. Such a matrix is diagrammatically shown in FIG. 3 as being comprised of N columns Cl-CN and M rows Rl-RM of memory devices MD. The output lines 43 of each row are coupled to a monitoring means 100 which monitors the state of output lines 43. Output line 43 is coupled to each of memory cells 10 and 20 within a given i.sup.th row of the matrix. Via a suitable bias circuit, such as resistor 45 to +V potential, line 43 is normally high. It will remain high if, and only if, all bits of that (row) word match the respective bit contents of an associative read operation, or are `don't care` bits. Namely, line 43 is effectively the logical "AND" of all bits within the word, as represented by the broken-lined AND gate 43 AND. Other bias circuit configurations may be used in place of resistor 45. For example, line 43 may be coupled to the drain of a grounded-gate PMOS transistor, the source of which is coupled to +V. Similarly, a precharged inverter may be used to bias line 43.
Switching circuit 71 includes a first pair of series-connected N-channel MOS field effect transistors 81 and 82, coupled between low potential (GND) and output line 43. A first, transistor 81, of the series-connected transistors 81, 82 has its control (gate) input coupled to complementary bit line 13 and the second transistor 82 has its control (gate) input coupled to the output of inverter 22 of cell 10. When both transistors 81, 82 are enabled (by a high (+V) voltage on complementary bit line 13) and a logical "1" bit value stored at the output of inverter 22, a low potential is coupled to output line 43, so that its logical state is inverted from its normally logical high (+V) state. Otherwise, if either transistor 81 or 82 is turned OFF, low potential is prevented from being coupled through this transistor pair to line 43, so that the logical state of output line 43 remains at a logical high, indicating either a match or a `don't care` for that memory device.
Switching circuit 72, which is coupled between memory cell 20 and output line 43, includes a second pair of series-connected N-channel MOS field effect transistors 91 and 92, coupled between low potential (GND) and output line 43. A first transistor 91, of the series-connected transistors 91, 92 has its control (gate) input coupled to complementary bit line 11 and the second transistor 82 has its control (gate) input coupled to the output of inverter 51 of memory cell 20. When both transistors 91, 92 are enabled (by a high (+V) voltage on complementary bit line 11) and a logical "1" bit value stored at the output of inverter 51, a low potential is coupled to output line 43, so that its logical state is inverted from its normally logical high (+V) state. Otherwise, if either transistor 91 or 92 is turned OFF, low potential is prevented from being coupled through this transistor pair to line 43, so that the logical state of output line 43 remains at a logical high.
Programming of an individual memory device to control its mode of operation is effected by writing prescribed complementary bit code pairs in the memory cells of that device in accordance with the code pair listings of FIG. 2. More particularly, to store the data value "1" in the memory device, a first set of complementary bit values (e.g. "0 1") is written into inverter pairs 21, 22 and 51, 52 of multibit memory cells 10 and 20, respectively. For this purpose, a logical "0" level is placed on bit line 11, while its logical complement "1" is placed on complementary bit line 13. An enabling voltage is then applied to each of word-enable lines 41 and 42, so that each of memory cells stores the bit pair "0 1". To store the opposite data value "0", the complementary set of bit values "1 0" is written into each of memory cells 10 and 20.
The memory device is interrogated associatively by coupling one of these first and second sets of complementary bit values ("0 1") or ("1 0") to complementary bit lines 11 and 13 and monitoring the state of output line 43. As pointed out above, if the bit code stored in each of memory cells 10 and 20 matches the code on bit lines 11 and 13, transistor 81 within switching circuit 71 will be gated OFF by the "0" on bit line 13 and transistor 92 within switching circuit 72 will be gated OFF by the "0" stored at the output of inverter 51. As a consequence, the memory device causes no change in the logical state (high) of output line 43. Similarly, for a "0" stored in each of memory cells 10 and 20, corresponding to the code "1 0", the application of a "0" to bit line 11 and a "1" to bit line 13 will cause transistor 91 within switching circuit 72 to be gated OFF by the "0" on bit line 11, while transistor 82 within switching circuit 71 will be gated OFF by the "0" stored at the output of inverter 22. As a consequence, the memory device causes no change in the logical state (high) of output line 43.
On the other hand, if the contents of memory cell 10 does not match the contents of bit line 13, or if the contents of memory cell 20 does not match the contents of bit line 11 and bit line 11 and 13 are complementary, both transistors in one of switching circuits 71 and 72 will be gated ON, thereby causing the low potential to be coupled to output line 43, inverting its logical state and indicating a mismatch.
For a `don't care` state of the memory device, the complementary bit pair "1 0" is written into memory cell 10 and the complementary bit pair "0 1" is written into memory cell 20. As a result, each of transistors 82 and 92 is gated OFF, so that, regardless of the interrogation of the memory device, neither of switching circuits 71 and 72 couples GND potential to output line 43. Thus, its logical state remains unaffected, as in the case of a match. This `don't care` state may be selectively imparted to the same bit position of multiple words of the matrix by applying a `0` to each of bit lines 11 and 13. As a consequence, each of transistors 81 and 91 for each memory cell pair of that column will be gated OFF thereby preventing ground potential from being applied to output line 43 from that bit position. In effect, this removes that bit position from an associated read operation.
To prevent the memory device from participating in an associative read operation, namely to `inhibit` the memory device, the complementary bit value set "0 1" is written into memory cell 10 and the complementary bit value set "1 0" is written into memory cell 20. As a result, conversely to the `don't care` state of the memory device, each of transistors 82 and 92 is gated ON, so that, regardless of the interrogation of the memory device, one switching circuits 71 and 72 will see a logical high on its associated bit line and thereby couple GND potential to output line 43. As a result, the logical state of the output line becomes inverted, indicating no match.
As will be appreciated from the foregoing description, the present invention provides a content addressable memory device which permits the memory to be programmably readable on an individual bit basis, so that the memory may be selectively programmed to be fully content addressable, partially content addressable, or non-content addressable. By configuring each memory device to contain a pair of bit cells, each device has the ability to be individually programmed with respect to its participation in an associative read operation. Moreover, since each memory cell is individually programmable, a further aspect of the present invention is its ability to function as a conventional random access memory, having a 2M.times.N storage capacity. In this mode of operation the pairs of word enable lines are used for normal addressing purposes during write-in and read-out of the memory.
While I have shown and described an embodiment in accordance with the present invention, it is to be understood that the same is not limited thereto but is susceptible to numerous changes and modifications as known to a person skilled in the art, and I therefore do not wish to be limited to the details shown and described herein but intend to cover all such changes and modifications as are obvious to one of ordinary skill in the art.