Search Images Maps Play YouTube News Gmail Drive More »
Sign in
Screen reader users: click this link for accessible mode. Accessible mode has the same essential features but works better with your reader.

Patents

  1. Advanced Patent Search
Publication numberUS4646271 A
Publication typeGrant
Application numberUS 06/683,611
Publication date24 Feb 1987
Filing date19 Dec 1984
Priority date23 Dec 1983
Fee statusPaid
Publication number06683611, 683611, US 4646271 A, US 4646271A, US-A-4646271, US4646271 A, US4646271A
InventorsKunio Uchiyama, Tadahiko Nishimukai
Original AssigneeHitachi, Ltd.
Export CitationBiBTeX, EndNote, RefMan
External Links: USPTO, USPTO Assignment, Espacenet
Content addressable memory having dual access modes
US 4646271 A
Abstract
In a memory device having a content addressable memory array and a random access memory array, the word coincidence lines and word selection lines of the content addressable memory array are connected to the word selection lines of the corresponding words of the random access memory array via a selection circuit, access is made to the random access memory array on the basis of the result of association of the content addressable memory array when the selection circuit selects the word coincidence lines, and access is made to the memory device as a whole as a random access memory array when the selection circuit selects the word selection lines.
Images(3)
Previous page
Next page
Claims(4)
What is claimed is:
1. A content addressable memory device comprising:
a content addressable memory array having word coincidence lines, word selection lines and data lines;
a random access memory array having word selection lines and data lines; and
means responsive to a control signal for selecting either the word coincidence lines or the word selection lines of said content addressable memory array and for connecting the selected lines to the word selection lines of said random access memory array.
2. The content addressable memory device as defined in claim 1 wherein said content addressable memory array consists of a plurality of cells, each cell being connected to a word selection line, a word coincidence line and a data line, and including means for storing data received on the data line when the word selection line is selected and means for comparing the data on said data line with the stored data of said storing means and for changing the potential level of the word coincidence line on the basis of the result of comparison.
3. The content addressable memory device as defined in claim 2 wherein said storing means in each cell consists of a flip-flop.
4. The content addressable memory device as defined in claim 1 wherein the number of the data lines of said content addressable memory array is different from the number of the data lines of said random access memory array.
Description
BACKGROUND OF THE INVENTION

This invention relates to a content addressable memory (hereinafter called "CAM").

CAM is a memory of the type which is addressable in accordance with the content for which coincidence is desired. This CAM is effective when retrieving a plurality of data in parallel with one another. The possible application of CAM in the field of computers may be an address array of cache memories, translation look-aside buffers for address conversion and various other applications. However, CAM has not yet been employed widely because the cost of CAM per bit is higher than that of a random access memory (hereinafter called "RAM"). It is expected, however, that CAM will gain a wide range application in future with further improvement in the integration density of LSI.

FIG. 1 shows a conventional content addressable memory device using CAM. Reference numerals 100 and 120 represent the array portions of CAM and RAM, respectively. Each word of CAMs 110a-110n stores the key to be retrieved. Each word of RAMs 120a-120n stores the data corresponding to each key stored in CAM. Each word of CAM is directly connected to that of RAM by signal line 130a-130n. This signal line is a word coincidence line when viewed from the CAM side, and is a word selection line when viewed from the RAM side. When the key to be retrieved is input by the signal line 140, it is compared in parallel with the key stored in each word of CAM, and the word coincidence line of the word which proves to be coincident is asserted. Therefore, the word selection line of the corresponding RAM is asserted, and the data belonging to the coincident key is read out from the RAM through the signal line 150. An example of a cache memory using such a content addressable memory device is disclosed, for example, in Japanese Patent Laid-Open No. 68,287/1983.

The first problem with a memory device of the kind described above is that the key and the data can not be stored simultaneously in the CAM and RAM. The key is temporarily stored in the CAM word, then, the RAM word selection line is selected by inputting the same key to the signal line 140; then, the data must be written into the RAM word through the signal line 150. The second problem is that an arbitrary RAM word line can not be selected easily because the RAM word selection line is directly connected to the CAM word coincidence line. In other words, it has been necessary to store in advance a predetermined key in the corresponding CAM word, and then to input that key to the CAM, in order to select a particular RAM word line.

SUMMARY OF THE INVENTION

The present invention is therefore directed to provide a content addressable memory device which eliminates the problems of the prior art devices described above, requires only a limited increase in hardware and yet has a regular structure suitable for fabrication in the VLSI arrangement.

In order to solve the problems of the prior art devices described above, the present invention disposes a selector between each word coincidence line on the CAM side and each word selection line on the RAM side, one of the inputs of the selector is used as the CAM word coincidence line and the other is used as the CAM word selection line with the selector output being connected to the RAM word selection line. According to this structure, the memory device can be used while utilizing fully the content addressable memory by selecting the selector input word coincidence line, and the memory device can be used as a whole as a RAM by selecting the selector input word selection line.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 shows the structure of a prior art device;

FIG. 2 shows the overall structure of the content addressable memory device in accordance with one embodiment of the present invention;

FIG. 3 is a circuit diagram of a CAM cell; and

FIG. 4 is a circuit diagram of an RAM cell.

DESCRIPTION OF THE PREFERRED EMBODIMENT

Hereinafter, one embodiment of the present invention will be described in detail with reference to the accompanying drawings. FIG. 2 shows the overall structure of the content addressable memory device. This device has a CAM array 210 and an RAM array 220. The CAM array has an b bit by n-word construction, and each bit consists of one CAM cell 230. Each word of the CAM array consists of l CAM cells 230, and each cell is connected in the word unit to a word selection line 250 (wo -wn) on the CAM side and to a word coincidence line 260. A load MOS transistor 300 is connected to one of the ends of each word coincidence line 260, and the other side of the MOS transistor 300 is connected to a power source (Vcc). Each cell 230 of the CAM array 210 (hereinafter called "CAM cell") is connected in each bit to a data line Ao, Ao -Al, Al). The data line of each bit consists of two lines having opposite polarities.

The RAM array 220 has m-bit by n-word construction, and each bit consists of one cell 240 (hereinafter called "RAM cell"). Each word of the RAM array 220 consists of m RAM cells 240, and each cell is connected in the word unit to a word selection line (Xo -Xn) on the RAM side. Each RAM cell 240 of the RAM array 220 is connected in the bit line unit to a data line (Do, Do -Dm, Dm). The data line of each bit consists of two lines having opposite polarities with each other.

A selector 280 having two-input and n-bit construction is interposed between the CAM array 210 and the RAM array 220. N selectors 280 are disposed so as to correspond to the number of the words of the CAM array 210 and RAM array 220. One of the inputs of the selector 280 is connected to the word coincidence line 260 of the CAM array 210, and the other input is connected to the word selection line 250 on the CAM side.

The output of the selector 280 is connected to the word selection line 270 on the RAM side. Input selection of the selector 280 is controlled by a selector control line (hereinafter called "SC") 290. In other words, when SC 290 is asserted, the word coincidence line 260 is selected, and when SC 290 is negated, the word selection line 250 on the CAM side is selected.

The structure of the device described above is so regular that it can be easily accomplished with LSIs.

FIGS. 3 and 4 show the examples of the circuits of CAM cell 230 and RAM cell 240, respectively. MOS transistors T5 -T8 in FIG. 3 and MOS transistors T11 -T14 in FIG. 4 constitute static flip-flops, respectively, each storing one-bit data. When the word selection line (Wi) 250 on the CAM side or the word selection line (Xi) 270 on the RAM side is asserted, the MOS transistors T9, T10 or T15, T16 are turned on, the data is read out from the data line (Aj, Aj) 310 or the data line (Dk, Dk) 320. In order to write the data, the word selection line is asserted, and the data is applied to the data line.

The CAM cell 230 shown in FIG. 3 has the function of judging whether or not the data stored in the flip-flops T5 -T8 are coincident with the data on the data line 310. The MOS transistors T1 -T4 bear that function. When the data are not coincident, both of the MOS transistors T1 and T2 are turned on or both of the MOS transistors T3 and T4 are turned on, and the word coincidence line 260 is grounded. Since the word line 260 is connected to all the bits of the CAM cell 230 constituting the word as shown in FIG. 2, when the l-bit data that are applied to the data line 310 and the data stored in the word of the CAM array 210 are not coincident with each other, the corresponding word coincidence line 260 is grounded, that is, the line is negated. When they are coincident, on the other hand, it has a high voltage level and is brought into the asserted state. In this manner, the content of each word is retrieved by applying the data to the data line 310 of the CAM array 210, and the word coincidence line 260 corresponding to the coincident word is asserted.

The content addressable memory device shown in FIG. 2 has substantially two modes. In one of the modes, the associative function of the CAM array 210 is utilized fully, and the access is made to the RAM array 220 in accordance with the result of association. This is realized by asserting SC 290. Under this state, the word coincidence line 260 of each word of the CAM and RAM arrays 210, 220 is connected to the word selection line 240 on the RAM side, as described earlier. When the data is applied to the data line 310 on the CAM side, therefore, the word coincidence line 260 corresponding to the word of the CAM array 210, in which the content which is concident with that data is stored, is asserted, and the word selection line 270 of the corresponding RAM array 220 is further asserted, so that the data stored in that word is read out on the data line 320 on the RAM side. If the data is applied to the data line 320 on the RAM side under this state, the data is written into the selected word.

The other mode of the content addressable memory device is the mode in which the device is used as a whole in the same way as an ordinary RAM array. This is realized by negating SC 290. Under this state, the word selection line 250 on the CAM side of each word of the CAM and RAM arrays 210, 220 is connected to the word selection line 270 on the RAM side via the selector 280. Therefore, an RAM array having a (l+m) bit by n-word construction is constituted as a whole. When the word selection line 250 on the CAM side is asserted, the corresponding word selection line 270 on the RAM side is also asserted, and the word selection lines of the (l+m) bit cells are asserted as a whole. Accordingly, read-out/write-in corresponding to the same word of the CAM and RAM arrays can be made simultaneously.

Since the content addressable memory device in accordance with the present invention has a regular construction, it is suitable for VLSI, and the chip area can be utilized effectively because an unnecessary wiring area is not necessary.

As can be seen from the above description, it is possible to address the RAM array in accordance with the result of association of the CAM array, and to access the whole device as the RAM array.

Therefore, the operation of storing the key in the CAM word and the operation of writing the data in the RAM word can be made simultaneously.

Furthermore, an arbitrary word RAM line can be easily selected, and the data writing operation to the RAM can be simplified.

As described above, the present invention can provide a content addressable memory device having extremely high versatility and a wide range of application.

Patent Citations
Cited PatentFiling datePublication dateApplicantTitle
US3402398 *31 Aug 196417 Sep 1968Bunker RamoPlural content addressed memories with a common sensing circuit
US4532606 *14 Jul 198330 Jul 1985Burroughs CorporationContent addressable memory cell with shift capability
Referenced by
Citing PatentFiling datePublication dateApplicantTitle
US4740917 *12 Nov 198526 Apr 1988International Business Machines CorporationMemory using conventional cells to perform a ram or an associative memory function
US4758982 *8 Jan 198619 Jul 1988Advanced Micro Devices, Inc.Quasi content addressable memory
US4831585 *26 Oct 198716 May 1989Massachusetts Institute Of TechnologyFour transistor cross-coupled bitline content addressable memory
US4833643 *15 Dec 198623 May 1989Kabushiki Kaisha ToshibaAssociative memory cells
US4841567 *21 Sep 198820 Jun 1989Kabushiki Kaisha ToshibaMemory device
US4853892 *16 Jan 19871 Aug 1989Kabushiki Kaisha ToshibaAssociative memory device including write inhibit circuitry
US4894799 *12 May 198816 Jan 1990Hitachi, Ltd.Content-addressable memory
US4972338 *19 Apr 198820 Nov 1990Intel CorporationMemory management for microprocessor system
US4991136 *30 Jan 19895 Feb 1991Mitsubishi Denki Kabushiki KaishaSemiconductor associative memory device with memory refresh during match and read operations
US5029126 *3 Aug 19892 Jul 1991Matsushita Electric Industrial Co., Ltd.Cache memory
US5130947 *22 Oct 199014 Jul 1992Motorola, Inc.Memory system for reliably writing addresses with reduced power consumption
US5153595 *26 Mar 19906 Oct 1992Geophysical Survey Systems, Inc.Range information from signal distortions
US5173872 *13 Jul 198722 Dec 1992Intel CorporationContent addressable memory for microprocessor system
US5226039 *18 May 19906 Jul 1993Kendall Square Research CorporationPacket routing switch
US5251308 *22 Jun 19895 Oct 1993Kendall Square Research CorporationShared memory multiprocessor with data hiding and post-store
US5287304 *31 Dec 199015 Feb 1994Texas Instruments IncorporatedMemory cell circuit and array
US5297265 *22 Jun 198922 Mar 1994Kendall Square Research CorporationShared memory multiprocessor system and method of operation thereof
US5299147 *22 Feb 199329 Mar 1994Intergraph CorporationDecoder scheme for fully associative translation-lookaside buffer
US5319590 *4 Dec 19927 Jun 1994Hal Computer Systems, Inc.Apparatus for storing "Don't Care" in a content addressable memory cell
US5321836 *9 Apr 199014 Jun 1994Intel CorporationVirtual memory management method and apparatus utilizing separate and independent segmentation and paging mechanism
US5327372 *14 Jan 19935 Jul 1994Matsushita Electric Industrial Co., Ltd.Semiconductor memory device
US5341483 *31 May 199023 Aug 1994Kendall Square Research CorporationDynamic hierarchial associative memory
US5396449 *21 Dec 19937 Mar 1995International Business Machines CorporationFast content addressable memory with reduced power consumption
US5408434 *3 Feb 199418 Apr 1995Chancellor, Masters And Scholars Of The University Of OxfordMemory device that functions as a content addressable memory or a random access memory
US5473267 *3 Feb 19955 Dec 1995Sgs-Thomson Microelectronics LimitedProgrammable logic device with memory that can store routing data of logic data
US5513134 *21 Feb 199530 Apr 1996Gte Laboratories IncorporatedATM shared memory switch with content addressing
US5537354 *14 Dec 199416 Jul 1996Fujitsu LimitedSemiconductor memory device and method of forming the same
US5715188 *7 Feb 19963 Feb 1998International Business Machines CorporationMethod and apparatus for parallel addressing of CAMs and RAMs
US5761413 *5 Jun 19952 Jun 1998Sun Microsystems, Inc.Fault containment system for multiprocessor with shared memory
US5781467 *6 Aug 199714 Jul 1998United Integrated Circuits Corp.Decoding method for ROM matrix having a silicon controlled rectifier structure
US5822578 *5 Jun 199513 Oct 1998Sun Microsystems, Inc.System for inserting instructions into processor instruction stream in order to perform interrupt processing
US5880991 *14 Apr 19979 Mar 1999International Business Machines CorporationStructure for low cost mixed memory integration, new NVRAM structure, and process for forming the mixed memory and NVRAM structure
US5924125 *1 Aug 199513 Jul 1999Arya; SiamakMethod and apparatus for parallel access to consecutive TLB entries
US5940852 *21 Aug 199717 Aug 1999Altera CorporationMemory cells configurable as CAM or RAM in programmable logic devices
US6058452 *28 May 19992 May 2000Altera CorporationMemory cells configurable as CAM or RAM in programmable logic devices
US6088758 *5 Jun 199511 Jul 2000Sun Microsystems, Inc.Method and apparatus for distributing data in a digital data processor with distributed memory
US6101116 *30 Jun 19998 Aug 2000Integrated Device Technology, Inc.Six transistor content addressable memory cell
US6128207 *2 Nov 19983 Oct 2000Integrated Device Technology, Inc.Low-power content addressable memory cell
US6137707 *26 Mar 199924 Oct 2000Netlogic MicrosystemsMethod and apparatus for simultaneously performing a plurality of compare operations in content addressable memory device
US6141242 *23 Nov 199931 Oct 2000International Business Machines CorporationLow cost mixed memory integration with substantially coplanar gate surfaces
US6147890 *5 Oct 199814 Nov 2000Kawasaki Steel CorporationFPGA with embedded content-addressable memory
US6148364 *30 Dec 199714 Nov 2000Netlogic Microsystems, Inc.Method and apparatus for cascading content addressable memory devices
US621974811 May 199817 Apr 2001Netlogic Microsystems, Inc.Method and apparatus for implementing a learn instruction in a content addressable memory device
US624048511 May 199829 May 2001Netlogic Microsystems, Inc.Method and apparatus for implementing a learn instruction in a depth cascaded content addressable memory system
US625912623 Nov 199910 Jul 2001International Business Machines CorporationLow cost mixed memory integration with FERAM
US6263400 *10 Mar 200017 Jul 2001Altera CorporationMemory cells configurable as CAM or RAM in programmable logic devices
US627540629 Aug 200014 Aug 2001Sibercore Technologies, Inc.Content address memory circuit with redundant array and method for implementing the same
US63321855 Jun 199518 Dec 2001Sun Microsystems, Inc.Method and apparatus for paging data and attributes including an atomic attribute for digital data processor
US633953930 Aug 200015 Jan 2002Sibercore Technologies, Inc.Content addressable memory having read/write capabilities that do not interrupt continuous search cycles
US63629901 Sep 200026 Mar 2002Sibercore TechnologiesThree port content addressable memory device and methods for implementing the same
US63816736 Jul 199830 Apr 2002Netlogic Microsystems, Inc.Method and apparatus for performing a read next highest priority match instruction in a content addressable memory device
US639291017 Aug 200021 May 2002Sibercore Technologies, Inc.Priority encoder with multiple match function for content addressable memories and methods for implementing the same
US64180429 Sep 19989 Jul 2002Netlogic Microsystems, Inc.Ternary content addressable memory with compare operand selected according to mask value
US642401131 Aug 199923 Jul 2002International Business Machines CorporationMixed memory integration with NVRAM, dram and sram cell structures on same substrate
US646011222 Jun 19991 Oct 2002Netlogic Microsystems, LlcMethod and apparatus for determining a longest prefix match in a content addressable memory device
US649908112 Nov 199924 Dec 2002Netlogic Microsystems, Inc.Method and apparatus for determining a longest prefix match in a segmented content addressable memory device
US653945512 Nov 199925 Mar 2003Netlogic Microsystems, Inc.Method and apparatus for determining an exact match in a ternary content addressable memory device
US65534531 Sep 200022 Apr 2003Sibercore Technologies, Inc.Variable width content addressable memory device for searching variable width data
US656428918 Dec 200113 May 2003Netlogic Microsystems, Inc.Method and apparatus for performing a read next highest priority match instruction in a content addressable memory device
US656734030 Apr 200120 May 2003Netlogic Microsystems, Inc.Memory storage cell based array of counters
US65747029 May 20023 Jun 2003Netlogic Microsystems, Inc.Method and apparatus for determining an exact match in a content addressable memory device
US66092221 Sep 200019 Aug 2003Sibercore Technologies, Inc.Methods and circuitry for built-in self-testing of content addressable memories
US667878611 Dec 200213 Jan 2004Netlogic Microsystems, Inc.Timing execution of compare instructions in a synchronous content addressable memory
US669441228 Sep 200117 Feb 2004Sun Microsystems, Inc.Multiprocessor digital data processing system
US66979116 Feb 200124 Feb 2004Netlogic Microsystems, Inc.Synchronous content addressable memory
US67415199 Jul 200225 May 2004Micron Technology, Inc.DRAM technology compatible processor/memory chips
US674788525 Nov 20028 Jun 2004Samsung Electronics Co., Ltd.Ternary content addressable memory device
US68099859 Jul 200226 Oct 2004Micron Technology, Inc.DRAM technology compatible processor/memory chips
US689227223 Apr 200210 May 2005Netlogic Microsystems, Inc.Method and apparatus for determining a longest prefix match in a content addressable memory device
US69241949 Jul 20022 Aug 2005Micron Technology, Inc.DRAM technology compatible processor/memory chips
US693479531 Oct 200123 Aug 2005Netlogic Microsystems, Inc.Content addressable memory with programmable word width and programmable priority
US694470931 Oct 200113 Sep 2005Netlogic Microsystems, Inc.Content addressable memory with block-programmable mask write mode, word width and priority
US696181022 Dec 20031 Nov 2005Netlogic Microsystems, Inc.Synchronous content addressable memory
US7009862 *15 Dec 20047 Mar 2006Hitachi, Ltd.Semiconductor device
US70230409 Jul 20024 Apr 2006Micron Technology, Inc.DRAM technology compatible processor/memory chips
US711040724 Mar 200119 Sep 2006Netlogic Microsystems, Inc.Method and apparatus for performing priority encoding in a segmented classification system using enable signals
US711040824 Mar 200119 Sep 2006Netlogic Microsystems, Inc.Method and apparatus for selecting a most signficant priority number for a device using a partitioned priority index table
US71128316 May 200426 Sep 2006Samsung Electronics Co., Ltd.Ternary content addressable memory cell
US714323123 Sep 199928 Nov 2006Netlogic Microsystems, Inc.Method and apparatus for performing packet classification for policy-based packet routing
US724619815 Jun 200517 Jul 2007Netlogic Microsystems, Inc.Content addressable memory with programmable word width and programmable priority
US727202726 Feb 200418 Sep 2007Netlogic Microsystems, Inc.Priority circuit for content addressable memory
US729863515 Mar 200620 Nov 2007Netlogic Microsystems, Inc.Content addressable memory (CAM) cell with single ended write multiplexing
US73243621 Mar 200629 Jan 2008Netlogic Microsystems Inc.Content addressable memory cell configurable between multiple modes and method therefor
US741788221 Sep 200626 Aug 2008Netlogics Microsystems, Inc.Content addressable memory device
US745040920 Mar 200611 Nov 2008Netlogic Microsystems, Inc.Content addressable memory (CAM) cell having column-wise conditional data pre-write
US7467256 *28 Dec 200416 Dec 2008Intel CorporationProcessor having content addressable memory for block-based queue structures
US74872005 Dec 20003 Feb 2009Netlogic Microsystems, Inc.Method and apparatus for performing priority encoding in a segmented classification system
US757050322 May 20064 Aug 2009Netlogic Microsystems, Inc.Ternary content addressable memory (TCAM) cells with low signal line numbers
US791181816 Mar 200922 Mar 2011Netlogic Microsystems, Inc.Content addressable memory having bidirectional lines that support passing read/write data and search data
US807300521 Nov 20076 Dec 2011Cypress Semiconductor CorporationMethod and apparatus for configuring signal lines according to idle codes
USRE39227 *31 Mar 20038 Aug 2006Integrated Device Technology, Inc.Content addressable memory (CAM) arrays and cells having low power requirements
USRE4165919 Aug 20057 Sep 2010Sanjay GuptaMethods and circuitry for built-in self-testing of content addressable memories
USRE4199230 Aug 20067 Dec 2010Sanjay GuptaMethods and circuitry for built-in self-testing of content addressable memories
WO1987005431A1 *26 Feb 198711 Sep 1987Data General CorpContent addressable memory and self-blocking driver
Classifications
U.S. Classification365/49.1, 365/49.11, 365/189.04, 365/190, 365/189.03, 365/189.08, 365/49.17, 365/230.09
International ClassificationG11C15/04
Cooperative ClassificationG11C15/04
European ClassificationG11C15/04
Legal Events
DateCodeEventDescription
3 Aug 1998FPAYFee payment
Year of fee payment: 12
1 Jul 1994FPAYFee payment
Year of fee payment: 8
3 Aug 1993B1Reexamination certificate first reexamination
10 Jul 1990RRRequest for reexamination filed
Effective date: 19900531
2 Jul 1990FPAYFee payment
Year of fee payment: 4
16 Sep 1986ASAssignment
Owner name: HITACHI, LTD., 6, KANDA SURUGADAI 4-CHOME, CHIYODA
Free format text: ASSIGNMENT OF ASSIGNORS INTEREST.;ASSIGNORS:UCHIYAMA, KUNIO;NISHIMUKAI, TADAHIKO;REEL/FRAME:004605/0884
Effective date: 19841201