The present invention relates to memory devices, and more specifically, to content addressable memory devices.
Random access memory (RAM) associates data with an address. Volatile RAMs such as dynamic RAM (DRAM) and static RAM (SRAM) are traditionally used in today's computers. However, as wireless mobile computing systems become more popular, intensive research and development in the memory area is now focusing on new non-volatile memories. Important non-volatile RAMs known today are ferroelectric RAM (FeRAM) using non-linear capacitance due to different polarization of the lead-zirconium-titanate (PZT) material, magnetic RAM (MRAM) using the magneto-resistance changes with magnetic polarity, and Chalcogenide phase change materials using resistance changes in ordered (conductive) and disordered (resistive) phases.
Content-addressable memory (CAM) is a special type of computer memory used in certain very high speed searching applications. It is also known as associative memory or associative storage. Most existing CAM products are volatile technologies based on SRAM or DRAM cells. CAMS using a resistance-change memory element such as, for example, Chalcogenide phase change materials, have been found to allow for density improvements in the formation of a CAM.
Unlike standard computer memory (e.g., RAM) in which the user supplies a memory address and the RAM returns the data word stored at that address, a CAM is designed such that the user supplies a data word and the CAM searches its entire memory to see if that data word is stored anywhere in it. If the data word is found, the CAM returns a list of one or more storage addresses where the word was found (and in some architectures, it also returns the data word, or other associated pieces of data). Thus, a CAM is the hardware embodiment of what in software terms would be called an associative array.
Binary CAM is the simplest type of CAM which uses data search words comprised entirely of 1s and 0s. Ternary CAM (TCAM) allows a third matching state of “X” or “Don't Care” for one or more bits in the stored dataword, thus adding flexibility to the search. For example, a ternary CAM might have a stored word of “10XX0” which will match any of the four search words “10000”, “10010”, “10100”, or “10110”.
According to one embodiment of the present invention, a memory device for storing one or more addresses is provided. The memory device includes a match line and first and second memory cells. The first memory cell includes a first memory element coupled to a second memory element and to the match line and also including a first access device coupled to the first memory element and having a first access line and a second access device coupled to the second memory element and having a second access line. The first memory cell is configured to store a first value. The second memory cell includes a third memory element coupled to a fourth memory element and to the match line, the second memory cell also including a third access device coupled to the third memory element having a third access line and a fourth access device coupled to the fourth memory element and having a fourth access line, the second memory cell configured to store a second value. In this embodiment, the at least one of the access lines receives a signal that is a combination of the first and second values.
According to another embodiment of the present invention, a method of operating a content addressable memory is disclosed. The method of this embodiment includes: receiving an input vector at a decoder; decoding the input vector, decoding including dividing the input vector into a plurality of 2 bit groupings and performing on logical operations on each of the groupings to create a plurality of addressing values; transmitting the addressing values to access lines coupled to memory cells within the content addressable memory; and measuring a resistive value of a match line within the content addressable memory and coupled to the memory cells.
Another embodiment of the present invention is directed to a memory system that includes a content addressable memory including plurality of memory cells coupled to a match line and a match checking device coupled content addressable memory that determines if a particular input applied to the content addressable memory is contained the content addressable memory by monitoring a resistive level of the match line. The memory system of this embodiment also includes a decoder coupled to the content addressable memory that receives an input address and decodes at least two of the bits from the address into four unique outputs.
Additional features and advantages are realized through the techniques of the present invention. Other embodiments and aspects of the invention are described in detail herein and are considered a part of the claimed invention. For a better understanding of the invention with the advantages and the features, refer to the description and to the drawings.
The subject matter which is regarded as the invention is particularly pointed out and distinctly claimed in the claims at the conclusion of the specification. The forgoing and other features, and advantages of the invention are apparent from the following detailed description taken in conjunction with the accompanying drawings in which:
An example of a memory cell 100 for use in a CAM is shown in
Other possibilities for the memory elements include, but are not limited to, resistive memory elements, floating gate field effect transistors (floating gate FETs), Magnetoresistive Random Access Memory (MRAMs), or a charge trapping device.
The memory cell 100 includes a first access device 106 electrically coupled to the first memory element 102, a first access line 106 and a common ground. The memory cell 100 also includes a second access device 108 electrically coupled to the second memory element 108, a second access line 114, and the common ground. The first access device 106 and the second access device 108 may be comprised of, but not limited to, field effect transistors (FET), or bipolar junction transistors (BJT). In one configuration of the invention, the access devices 108 and 110 include source, drain and common terminals. The source terminals of the access devices 106 and 108 are electrically coupled together and to the common ground. The drain terminal of the first access device 106 is electrically coupled to the first memory element 102. The drain terminal of the second access device 108 is electrically coupled to the second memory element 104. The gate terminal of the first access device 106 is electrically coupled to the first access line 114, which functions as the word line during the data storage operation. During a search operation, the first access line also functions as the complementary search line. The gate terminal of the second access device 104 is electrically coupled to the second access line 114, which functions as the complementary word line during the data storage operation and as a search line during a search operation.
As shown the memory cell 100 may have 4 possible states based on the programming of the first memory element 102 and second memory element 104. These combinations are RR, Rr, rR, and rr where R is high resistance and r is a low resistance. These combinations may be used to create the states shown below in Table 1 where the cell state X is the so called “don't care” state.
In operation, to read (also referred to as matching) the state of the memory cell 100, the match line 110 is first pre-charged. Next, a particular value (x, 0, or 1) is applied to the first access line 112 and the second access line 114. In most cases, the first access line 112 forms the complement of the second access line 114. That is, if “a” is applied to the second access line 114, a value of “a*” (the complement of a) is applied to the first access line 112. This may be referred to as complementary addressing herein.
To compare the value stored in the cell to a logical “0”, the first access line 112 is driven high and the second select line 114 is driven low. To compare the value stored in the cell 100 to a logical “1” the first select line 112 is driven low and the second select line 114 is driven high. In the case that the comparison to be made is a with a “don't care,” the values placed on the select lines are irrelevant because both resistors are high valued and will keep the resistance of the match line resistance high.
When the value stored in the cell 100 does not match, the resistance level of the match line 110 falls. For example, assuming that cell 100 is storing a value of 1, the first memory element 102 is in a low resistance state and the second memory element 104 is in a high state. Application of a logical 0 to the access lines (first access line 112 high, second access line 114 low) opens the first access device 106 and, because the first resistor 102 is in a low resistance state, reduces the resistance level of the match line. This lower resistance indicates that a match has not been found.
Of course, in most instances, many cells are connected to a particular match line 110. If one of the cells does not match the value of the bit provided to it on the access lines 112 and 114, the resistance level of the match line 110 falls. Thus, it may be determined if any cell is not matched by monitoring the resistance level of the match line 110.
As discussed above, CAMs utilizing resistance-change memory elements may enable extreme density enhancements. However, these memory elements generally suffer from degraded on/off resistance ratio especially when variability (manifested in resistance distributions) is taken into account. Since the noise margins in CAM applications are degraded over that in traditional memory applications, a robust CAM design using resistance-change memory is difficult to achieve.
In short, it has been discovered that there may be a low sensing margin between a “match” and “no match” condition on the match line 110. The “condition” of the match line may also be referred to herein as the “resistance” of the match line. Embodiments of the present invention may nearly double (or at least increase) the resistance margin by combining every two bits in a CAM and addressing them as a single unit.
The inputs to the access/select lines for the first cell 200 are shown as receiving signals a and a* and the access/select lines of the second cell 202 are shown as receiving b and b* where the * indicates that the signal is the complement of the original signal. In the event that a match between the inputs and the bit stored for both cells 200 and 202 occurs, a pathway through a high resistance resistor from the match line 204 to ground is created in each cell.
From the above description, it will be apparent that each time a cell matches the inputs it is receiving, the cell provides a path through a high resistance state resistive element to ground. As more cells are coupled to the match line 204, the resistive value of the match line decreases for a match condition because the resistors are in parallel for the match condition. For example, two arbitrary examples are shown with pathways x and y in
Considering that the two cells may each have a one or a zero stored therein, there exists 4 possible combinations of the values collectively stored in the two cells: 00, 01, 10 and 11. Table 2 shows the possible desired match values (including the X, X (don't care) input for use in ternary CAMS) for a combination of the two cells and the resulting values that may be applied to the select lines in the embodiment shown in
Table 2 is effectively a 2 input to 4 output decoder. The actual decoding may be done, for example, in hardware, software, or a combination of both. Of course, the exact decoding scheme utilized may vary without departing from the present invention. In the case that no X values are included in an input search vector, the conversion shown in Table 2 works perfectly. If on the other hand, the input search vector may include X's (e.g., in the case of a TCAM), and a particular pair of inputs includes one X and one value, an exception may be generated.
a and 4b show examples of possible match line resistance curves for the cells described in
Consider 32 1-bit cells of
As discussed above, utilizing the two-bit cell shown in
The above description has dealt with a 2-bit cell. It shall be understood that these teachings could also be applied to any number of bit cells. For example, each cell could contain three one-bit cells and a 3-8 decoder may be used. In such an embodiment, the match to no-match resistance ratio may increase as the number of grouped bits increases. In a general sense, the number of bits that may be grouped is not limited and, accordingly, the decoder may be an n to 2n decoder where n is the number of grouped bits.
At a block 504, the input vector is split into groups of two bits. For example, assume a binary input vector of 110100 was received at block 502. This input vector would be broken up (in lowest order to highest order) into the following groupings: 00, 01, and 11. Of course, the groupings could be different based on the number of cells in particular grouping. For example, if 3 cells are grouped to form a three bit cell, the grouping would be 100 and 110.
Regardless, at a block 506 the groupings are decoded in the manner as described above. At a block 508 the match line is pre-charged. At a block 510 the decoded inputs are applied to the select lines of the multi-bit cells as described above. At a block 512 the resistive state of the match line is measured to determine whether a match has been made.
The system 600 may also include a memory 606. In one embodiment, the memory 600 may be a CAM. In another embodiment, the memory 600 may be a ternary CAM. In either embodiment, the memory may be constructed of a plurality of cells such as those described with respect to
The system 600 may also include a match checker 608 that determines if the input vector matches an address stored in the memory 606. This may be determined, for example, by measuring a resistance level of one or more match lines contained in the memory 600. As discussed above, the teachings contained herein may increase the match/no-match resistance ratio and increase the accuracy of a determination by the match checker 608 of whether a match exists or not.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and/or “comprising,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one ore more other features, integers, steps, operations, element components, and/or groups thereof.
The corresponding structures, materials, acts, and equivalents of all means or step plus function elements in the claims below are intended to include any structure, material, or act for performing the function in combination with other claimed elements as specifically claimed. The description of the present invention has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the invention. The embodiment was chosen and described in order to best explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated
The flow diagrams depicted herein are just one example. There may be many variations to this diagram or the steps (or operations) described therein without departing from the spirit of the invention. For instance, the steps may be performed in a differing order or steps may be added, deleted or modified. All of these variations are considered a part of the claimed invention.
While the preferred embodiment to the invention had been described, it will be understood that those skilled in the art, both now and in the future, may make various improvements and enhancements which fall within the scope of the claims which follow. These claims should be construed to maintain the proper protection for the invention first described.
Number | Name | Date | Kind |
---|---|---|---|
5394353 | Nusinov et al. | Feb 1995 | A |
6166938 | Wong | Dec 2000 | A |
7075841 | Resta et al. | Jul 2006 | B2 |
7130206 | Ferrant | Oct 2006 | B2 |
7236393 | Cho et al. | Jun 2007 | B2 |
7319608 | Hsu et al. | Jan 2008 | B2 |
7365355 | Parkinson | Apr 2008 | B2 |
7397689 | Liu et al. | Jul 2008 | B2 |
7420841 | Ruf et al. | Sep 2008 | B2 |
7499303 | Lien et al. | Mar 2009 | B2 |
7675765 | Derharcobian et al. | Mar 2010 | B2 |
20080205128 | Nakai | Aug 2008 | A1 |
20080298114 | Liu et al. | Dec 2008 | A1 |
20090040814 | Kang et al. | Feb 2009 | A1 |
20100226161 | Ji et al. | Sep 2010 | A1 |
Number | Date | Country | |
---|---|---|---|
20110051483 A1 | Mar 2011 | US |