WO2023097512A1 - Content addressable memory and related method thereof, and electronic device - Google Patents

Content addressable memory and related method thereof, and electronic device Download PDF

Info

Publication number
WO2023097512A1
WO2023097512A1 PCT/CN2021/134630 CN2021134630W WO2023097512A1 WO 2023097512 A1 WO2023097512 A1 WO 2023097512A1 CN 2021134630 W CN2021134630 W CN 2021134630W WO 2023097512 A1 WO2023097512 A1 WO 2023097512A1
Authority
WO
WIPO (PCT)
Prior art keywords
capacitor
plate
transistor
bit line
control
Prior art date
Application number
PCT/CN2021/134630
Other languages
French (fr)
Chinese (zh)
Inventor
景蔚亮
王正波
冯君校
黄凯亮
廖恒
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2021/134630 priority Critical patent/WO2023097512A1/en
Priority to CN202180101887.1A priority patent/CN117941001A/en
Publication of WO2023097512A1 publication Critical patent/WO2023097512A1/en

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C15/00Digital stores in which information comprising one or more characteristic parts is written into the store and in which information is read-out by searching for one or more of these characteristic parts, i.e. associative or content-addressed stores
    • G11C15/04Digital stores in which information comprising one or more characteristic parts is written into the store and in which information is read-out by searching for one or more of these characteristic parts, i.e. associative or content-addressed stores using semiconductor elements

Landscapes

  • Dram (AREA)

Abstract

Embodiments of the present application relate to the technical field of storage, and provide a content addressable memory and a related method thereof, and an electronic device, for use in improving the storage density and reducing the area occupied by the memory. Storage units of the content addressable memory comprise m rows and n columns of storage units, m and n are integers greater than or equal to 1, and each storage unit comprises a transistor, a first capacitor and a second capacitor. The control end of the transistor is connected to a first polar plate of the first capacitor and a first polar plate of the second capacitor; a first end of the transistor is connected to a word line, and a second end of the transistor is connected to a matching line; a second polar plate of the first capacitor is connected to a first bit line, and a second polar plate of the second capacitor is connected to a second bit line.

Description

内容寻址存储器及其相关方法和电子设备Content-addressable memory and related method and electronic device 技术领域technical field
本申请涉及存储技术领域,尤其涉及一种内容寻址存储器及其相关方法和电子设备。The present application relates to the field of storage technologies, and in particular to a content addressable memory, a related method and electronic equipment.
背景技术Background technique
内容寻址存储器(content addressable memory,CAM)是网络设备的重要物理器件,一种典型的CAM为三态内容寻址存储器(ternary content addressable memory,TCAM)主要用于快速查找访问控制列表(access control list,ACL)、路由表等表项。传统的基于静态随机存取存储器(static random-access memory,SRAM)的TCAM,每一个存储单元(memory cell,MC)由16个晶体管(transistor,T)构成,存在尺寸大、存储密度低等缺点。Content addressable memory (content addressable memory, CAM) is an important physical device of network equipment. A typical CAM is tri-state content addressable memory (ternary content addressable memory, TCAM), which is mainly used to quickly find access control list (access control list, ACL), routing table and other entries. The traditional TCAM based on static random-access memory (SRAM), each storage unit (memory cell, MC) is composed of 16 transistors (transistor, T), which has the disadvantages of large size and low storage density. .
发明内容Contents of the invention
本申请实施例提供一种内容寻址存储器及其相关方法和电子设备,用于改善现有的TCAM尺寸大、存储密度低等问题。Embodiments of the present application provide a content addressable memory, a related method, and an electronic device, which are used to improve existing problems such as large size and low storage density of the TCAM.
第一方面,提供一种内容寻址存储器,内容寻址存储器包括m行n列存储单元,m与n为大于或等于1的整数,每个存储单元包括晶体管、第一电容与第二电容;其中,晶体管的控制端与第一电容的第一极板、第二电容的第一极板连接,晶体管的第一端连接字线,晶体管的第二端连接匹配线,第一电容的第二极板连接第一位线,第二电容的第二极板连接第二位线。在写入数据时,第一位线可以用于配置第一电容的极化状态,第二位线可以用于配置第二电容的极化状态,第一电容、第二电容的不同极化状态可以用于指示存储不同的数据,例如“0”和“1”,第一电容、第二电容存储的不同数据组合可以用于指示内容寻址存储器的存储单元的“0”状态、“1”状态以及模糊状态;在执行寻址操作时,将字线设置为第一预设电压,将匹配线预充至与第一预设电压不同的第二预设电压,根据关键字(key)值不同向第一位线或第二位线输出查找信号,当存储单元存储有不同的状态时,在查找信号的作用下,晶体管会呈现出不同的状态,例如若存储单元存储的状态与关键字匹配或者模糊匹配,晶体管处于关断状态,可以在匹配线与字线之间读取到较小的电流,匹配线输出第二预设电压;若存储单元存储的状态与关键字不匹配,晶体管处于导通状态,可以在匹配线与字线之间读取到较大的电流,匹配线输出第一预设电压,根据这一特性,可以完成寻址操作,本申请提供的内容寻址存储器利用2个电容与一个晶体管即可实现TCAM的功能,相比传统的TCAM而言,简化了器件结构,减少了占用面积,能够提高存储密度。In a first aspect, a content-addressable memory is provided. The content-addressable memory includes m rows and n columns of memory cells, m and n are integers greater than or equal to 1, and each memory cell includes a transistor, a first capacitor, and a second capacitor; Wherein, the control end of the transistor is connected with the first plate of the first capacitor and the first plate of the second capacitor, the first end of the transistor is connected with the word line, the second end of the transistor is connected with the match line, and the second end of the first capacitor is connected with the matching line. The polar plate is connected to the first bit line, and the second polar plate of the second capacitor is connected to the second bit line. When writing data, the first bit line can be used to configure the polarization state of the first capacitor, the second bit line can be used to configure the polarization state of the second capacitor, and the different polarization states of the first capacitor and the second capacitor It can be used to indicate the storage of different data, such as "0" and "1", and the different data combinations stored in the first capacitor and the second capacitor can be used to indicate the "0" state and "1" of the storage unit of the content addressable memory state and fuzzy state; when performing an addressing operation, the word line is set to a first preset voltage, and the match line is precharged to a second preset voltage different from the first preset voltage, according to the keyword (key) value Different from outputting the search signal to the first bit line or the second bit line, when the memory cell stores different states, under the action of the search signal, the transistor will show different states, for example, if the state stored in the memory cell is the same as the keyword Matching or fuzzy matching, the transistor is in the off state, a small current can be read between the matching line and the word line, and the matching line outputs the second preset voltage; if the state stored in the memory unit does not match the keyword, the transistor In the conduction state, a large current can be read between the match line and the word line, and the match line outputs the first preset voltage. According to this characteristic, the addressing operation can be completed. The content addressable memory provided by this application The function of the TCAM can be realized by using two capacitors and one transistor. Compared with the traditional TCAM, the structure of the device is simplified, the occupied area is reduced, and the storage density can be increased.
在一种可能的实现方式中,位于同一行的存储单元连接同一条字线,位于同一行的存储单元连接同一条匹配线,位于同一行的存储单元存储的数据可以组成一个表项,当该行所有的存储单元存储的数据与各自对应的key值匹配时,该表项即与key值匹配,当该行存在至少一个存储单元存储的数据与对应的key值不匹配时,该表项与key值不匹配。In a possible implementation, the memory cells in the same row are connected to the same word line, the memory cells in the same row are connected to the same match line, and the data stored in the memory cells in the same row can form a table entry. When the When the data stored in all the storage units of the row matches their corresponding key values, the entry matches the key value. When the data stored in at least one storage unit in the row does not match the corresponding key value, the entry matches the key value. The key value does not match.
在一种可能的实现方式中,位于同一列的存储单元连接同一条第一位线,位于同一列的存储单元连接同一条第二位线。第一位线、第二位线可以用于向存储单元写入数据,也可以用于向存储单元施加查找信号,位于同一列的存储单元连接同一条第一位线与同一条第二位线,在进行寻址操作时,第一位线或者第二位线可以同时对该列所有的存储单元施加查找信号,可以同时对该列所有的存储单元进行寻址。In a possible implementation manner, the memory cells in the same column are connected to the same first bit line, and the memory cells in the same column are connected to the same second bit line. The first bit line and the second bit line can be used to write data to the memory cell, and can also be used to apply a search signal to the memory cell, and the memory cells in the same column are connected to the same first bit line and the same second bit line , when performing an addressing operation, the first bit line or the second bit line can simultaneously apply a search signal to all the memory cells in the column, and can address all the memory cells in the column at the same time.
在一种可能的实现方式中,内容寻址存储器还包括多个第一控制管与多个第二控制管,每个存储单元对应设置一个第一控制管与一个第二控制管,第一控制管的控制端、第二控制管的控制端连接控制线;第一控制管的第一端连接第一位线,第一控制管的第二端连接第一电容的第二极板;第二控制管的第一端连接第二位线,第二控制管的第二端连接第二电容的第二极板,在每一个存储单元与第一位线之间设置第一控制管,在每一个存储单元与第二位线之间设置第二控制管,当第一控制管、第二控制管导通时,存储单元与第一位线、第二位线连通,当第一控制管、第二控制管关断时,存储单元与第一位线、第二位线断开连接,通过第一控制管、第二控制管可以实现精确的读写控制,在向目标存储单元写入数据时,通过第一位线、第二位线输出写入电压,控制目标存储单元对应的第一控制管、第二控制管导通,从而可以向目标存储单元写入数据,控制其他存储单元对应的第一控制管、第二控制管关断,第一位线、第二位线上的电压不会改写其他存储单元存储的数据。In a possible implementation manner, the content addressable memory further includes multiple first control tubes and multiple second control tubes, each storage unit is correspondingly provided with a first control tube and a second control tube, and the first control tube The control end of the tube and the control end of the second control tube are connected to the control line; the first end of the first control tube is connected to the first bit line, and the second end of the first control tube is connected to the second plate of the first capacitor; the second The first end of the control transistor is connected to the second bit line, the second end of the second control transistor is connected to the second plate of the second capacitor, and the first control transistor is arranged between each memory cell and the first bit line. A second control transistor is arranged between a memory cell and the second bit line. When the first control transistor and the second control transistor are turned on, the memory cell communicates with the first bit line and the second bit line. When the second control tube is turned off, the storage unit is disconnected from the first bit line and the second bit line, and precise read and write control can be realized through the first control tube and the second control tube, and the data is written to the target storage cell At this time, the write voltage is output through the first bit line and the second bit line, and the first control transistor and the second control transistor corresponding to the target storage unit are controlled to conduct, so that data can be written into the target storage unit, and other storage units are controlled to correspond to The first control transistor and the second control transistor are turned off, and the voltages on the first bit line and the second bit line will not rewrite data stored in other memory cells.
在一种可能的实现方式中,第一电容、第二电容为铁电电容,利用铁电电容存储数据,可以使内容寻址存储器具备非易失性的特性。In a possible implementation manner, the first capacitor and the second capacitor are ferroelectric capacitors, and using the ferroelectric capacitors to store data can make the content addressable memory have non-volatile characteristics.
在一种可能的实现方式中,晶体管为竖直沟道结构的晶体管,可以降低晶体管占用的面积,有利于提高存储密度。In a possible implementation manner, the transistor is a transistor with a vertical channel structure, which can reduce the area occupied by the transistor and is beneficial to increase storage density.
第二方面,提供一种如第一方面提供的内容寻址存储器的数据处理方法,方法包括:设置字线为第一预设电压,将匹配线预充至第二预设电压,其中第二预设电压与第一预设电压不同;根据目标数据向第一位线或第二位线输出查找信号;若检测到目标存储单元的匹配线的电压保持为所述第二预设电压,则确定所述目标存储单元中存储的数据与所述目标数据匹配。In a second aspect, there is provided a data processing method for a content addressable memory as provided in the first aspect, the method includes: setting the word line to a first preset voltage, and precharging the match line to a second preset voltage, wherein the second The preset voltage is different from the first preset voltage; output a search signal to the first bit line or the second bit line according to the target data; if it is detected that the voltage of the match line of the target memory cell remains at the second preset voltage, then It is determined that the data stored in the target storage unit matches the target data.
在一种可能的实现方式中,第一电容、第二电容为铁电电容,当第一电容的极化状态被配置为第二极板朝向第一极板、第二电容的极化状态被配置为第一极板朝向第二极板时,内容寻址存储器的存储单元存储第一逻辑值;当第一电容的极化状态被配置为第二极板朝向第一极板、第二电容的极化状态被配置为第二极板朝向第一极板时,存储第一模糊状态;当第一电容的极化状态被配置为第一极板朝向第二极板、第二电容的极化状态被配置为第二极板朝向第一极板时,存储第二逻辑值;当第一电容的极化状态被配置为第一极板朝向第二极板、第二电容的极化状态被配置为第一极板朝向第二极板时,存储第二模糊状态,根据目标数据通过第一位线或第二位线输出查找信号包括:当目标数据为第一逻辑值时,第一位线悬空,通过第二位线输出查找信号;当目标数据为第二逻辑值时,通过第二位线输出查找信号,第二位线悬空。In a possible implementation manner, the first capacitor and the second capacitor are ferroelectric capacitors, and when the polarization state of the first capacitor is configured so that the second plate faces the first plate, the polarization state of the second capacitor is configured When the first polar plate is configured to face the second polar plate, the storage unit of the content addressable memory stores the first logic value; when the polarization state of the first capacitor is configured so that the second polar plate faces the first polar plate, the second capacitor When the polarization state of the first capacitor is configured such that the second polar plate faces the first polar plate, the first fuzzy state is stored; when the polarization state of the first capacitor is configured such that the first polar plate faces the second polar plate, the polar When the polarization state is configured so that the second plate faces the first plate, store the second logic value; when the polarization state of the first capacitor is configured as the first plate faces the second plate, the polarization state of the second capacitor It is configured that when the first polar plate faces the second polar plate, the second fuzzy state is stored, and outputting the search signal through the first bit line or the second bit line according to the target data includes: when the target data is a first logic value, the first The bit line is suspended, and the search signal is output through the second bit line; when the target data is the second logic value, the search signal is output through the second bit line, and the second bit line is suspended.
在一种可能的实现方式中,存储单元通过第一控制管与第一位线连接,存储单元通过第二控制管与第二位线连接,在根据目标数据通过第一位线或第二位线输出查找信号之前,方法还包括:控制第一控制管、第二控制管导通。In a possible implementation manner, the memory cell is connected to the first bit line through the first control transistor, and the memory cell is connected to the second bit line through the second control transistor. Before the line outputs the search signal, the method further includes: controlling the first control transistor and the second control transistor to be turned on.
第三方面,提供一种如第一方面提供的内容寻址存储器的数据写入方法,包括:向第一位线输出第一写入电压,向第二位线输出第二写入电压,以向存储单元写入待写数据,其中,第一写入电压用于配置第一电容的极化状态,第二写入电压用于配置第二电容的极化状态;当第一电容的极化状态被配置为第二极板朝向第一极板,第二电容的极化状态被配置为第一极板朝向第二极板,向存储单元写入第一逻辑值;当第一电容的极化状态被配置为第二极板朝向第一极板,第二电容的极化状态被配置为第二极板朝向第一极板,向存储单元写入第一模糊状态;当第一电容的极化状态被配置为第一极板朝向第二极板,第二电容的极化状态被配置为第二极板朝向第一极板,向存储单元写入第二逻辑值;当第一电容的极化状态被配置为第一极板朝向第二极板,第二电容的极化状态被配置为第一极板朝向第二极板,向存储单元写入第二模糊状态。In a third aspect, there is provided a method for writing data into a content addressable memory as provided in the first aspect, comprising: outputting a first write voltage to a first bit line, outputting a second write voltage to a second bit line, and Writing data to be written into the memory cell, wherein the first write voltage is used to configure the polarization state of the first capacitor, and the second write voltage is used to configure the polarization state of the second capacitor; when the polarization state of the first capacitor The state is configured such that the second pole plate faces the first pole plate, the polarization state of the second capacitor is configured such that the first pole plate faces the second pole plate, and the first logic value is written into the storage unit; when the pole of the first capacitor The polarization state is configured such that the second pole plate faces the first pole plate, the polarization state of the second capacitor is configured such that the second pole plate faces the first pole plate, and the first fuzzy state is written into the memory cell; when the first capacitor The polarization state is configured such that the first pole plate faces the second pole plate, the polarization state of the second capacitor is configured such that the second pole plate faces the first pole plate, and the second logic value is written into the storage unit; when the first capacitor The polarization state of the capacitor is configured such that the first pole plate faces the second pole plate, the polarization state of the second capacitor is configured such that the first pole plate faces the second pole plate, and the second fuzzy state is written into the memory cell.
在一种可能的实现方式中,内容寻址存储器还包括第一控制管与第二控制管,第一控制管的控制端、第二控制管的控制端连接控制线;第一控制管的第一端连接第一位线,第一控制管的第二端连接第一电容的第二极板;第二控制管的第一端连接第二位线,第二控制管的第二端连接第二电容的第二极板,向第一位线输出第一写入电压,向第二位线输出第二写入电压,以向存储单元写入待写数据之前,数据写入方法还包括:控制第一控制管、第二控制管导通。In a possible implementation manner, the content addressable memory further includes a first control pipe and a second control pipe, the control end of the first control pipe and the control end of the second control pipe are connected to the control line; the second control pipe of the first control pipe One end is connected to the first bit line, the second end of the first control tube is connected to the second plate of the first capacitor; the first end of the second control tube is connected to the second bit line, and the second end of the second control tube is connected to the second The second plate of the two capacitors outputs the first writing voltage to the first bit line, and outputs the second writing voltage to the second bit line, so as to write the data to be written to the memory cell, the data writing method further includes: Control the conduction of the first control tube and the second control tube.
第四方面,提供一种制造如第一方面提供的内容寻址存储器的方法,包括:在衬底上形成第一晶体管,晶体管包括控制端、第一端与第二端;在晶体管上形成第一电容与第二电容,第一电容包括第一极板与第二极板,第二电容包括第一极板与第二极板,第一电容的第一极板、第二电容的第一极板与晶体管的控制端电连接。In a fourth aspect, there is provided a method for manufacturing a content addressable memory as provided in the first aspect, comprising: forming a first transistor on a substrate, the transistor including a control terminal, a first terminal and a second terminal; forming a second transistor on the transistor A capacitor and a second capacitor, the first capacitor includes a first plate and a second plate, the second capacitor includes a first plate and a second plate, the first plate of the first capacitor, the first plate of the second capacitor The pole plate is electrically connected with the control terminal of the transistor.
在一种可能的实现方式中,在衬底上形成晶体管包括:在衬底上形成晶体管的第一端;在晶体管的第一端远离衬底的一侧形成第二端与控制端,所述第二端具有与所述衬底相垂直的第一侧面,所述控制端位于所述第一侧面朝向的一侧。In a possible implementation manner, forming the transistor on the substrate includes: forming a first terminal of the transistor on the substrate; forming a second terminal and a control terminal on a side of the first terminal of the transistor away from the substrate, the The second end has a first side perpendicular to the substrate, and the control end is located on a side facing the first side.
在一种可能的实现方式中,在晶体管上形成第一电容与第二电容时,包括:In a possible implementation manner, when forming the first capacitor and the second capacitor on the transistor, the steps include:
在晶体管上形成金属层,金属层与控制端电连接,金属层包括第一电容的第一极板与第二电容的第一极板,在第一电容的第一极板远离衬底的一侧依次形成第一铁电材料层与第一电容的第二极板;在第二电容的第一极板远离衬底的一侧依次形成第二铁电材料层与第二电容的第二极板。A metal layer is formed on the transistor, and the metal layer is electrically connected to the control terminal. The metal layer includes the first plate of the first capacitor and the first plate of the second capacitor, and the first plate of the first capacitor is far away from the substrate. Form the first ferroelectric material layer and the second pole plate of the first capacitor in sequence; form the second ferroelectric material layer and the second pole of the second capacitor in sequence on the side of the first plate of the second capacitor away from the substrate plate.
第五方面,提供一种电子设备,电子设备包括电路板以及与电路板连接的内容寻址存储器,该内容寻址存储器为如第一方面提供的内容寻址存储器。According to a fifth aspect, an electronic device is provided, and the electronic device includes a circuit board and a content-addressable memory connected to the circuit board, where the content-addressable memory is the content-addressable memory as provided in the first aspect.
附图说明Description of drawings
图1为铁电材料的电滞回线示意图;Fig. 1 is the hysteresis loop schematic diagram of ferroelectric material;
图2为现有技术中一种TCAM的存储单元的电路示意图;2 is a schematic circuit diagram of a memory cell of a TCAM in the prior art;
图3为本申请实施例提供的内容寻址存储器中一个存储单元的电路示意图;FIG. 3 is a schematic circuit diagram of a storage unit in a content addressable memory provided by an embodiment of the present application;
图4a为本申请实施例提供的存储单元的一种状态示意图;FIG. 4a is a schematic diagram of a state of a storage unit provided in an embodiment of the present application;
图4b为本申请实施例提供的存储单元的另一种状态示意图;FIG. 4b is a schematic diagram of another state of the storage unit provided by the embodiment of the present application;
图4c为本申请实施例提供的存储单元的另一种状态示意图;Fig. 4c is a schematic diagram of another state of the storage unit provided by the embodiment of the present application;
图4d为本申请实施例提供的存储单元的另一种状态示意图;Fig. 4d is a schematic diagram of another state of the storage unit provided by the embodiment of the present application;
图5a为本申请实施例提供的存储单元存储第一逻辑值的寻址操作的状态示意图;FIG. 5a is a schematic diagram of the state of the addressing operation in which the storage unit stores the first logical value provided by the embodiment of the present application;
图5b为本申请实施例提供的存储单元存储第二逻辑值的寻址操作的状态示意图;FIG. 5b is a schematic diagram of the state of the addressing operation in which the storage unit stores the second logical value provided by the embodiment of the present application;
图5c为本申请实施例提供的存储单元存储一种模糊状态的寻址操作的状态示意图;FIG. 5c is a schematic diagram of the state of the addressing operation in which the memory unit stores a fuzzy state according to the embodiment of the present application;
图5d为本申请实施例提供的存储单元存储另一种模糊状态的寻址操作的状态示意图;Fig. 5d is a state schematic diagram of an addressing operation in which a memory unit stores another fuzzy state according to an embodiment of the present application;
图6为本申请实施例提供的内容寻址存储器中另一个存储单元的电路示意图;FIG. 6 is a schematic circuit diagram of another storage unit in the content addressable memory provided by the embodiment of the present application;
图7为本申请实施例提供的多个存储单元形成的存储阵列的电路图;FIG. 7 is a circuit diagram of a memory array formed by a plurality of memory cells provided by an embodiment of the present application;
图8为本申请实施例提供的一种数据写入方法的流程框图;FIG. 8 is a flow chart of a data writing method provided by an embodiment of the present application;
图9为本申请实施例提供的另一种存储阵列的电路示意图;FIG. 9 is a schematic circuit diagram of another memory array provided by an embodiment of the present application;
图10为本申请实施例提供的一种数据处理方法的流程框图;FIG. 10 is a block diagram of a data processing method provided by an embodiment of the present application;
图11为本申请实施例提供的数据处理方法的寻址操作示意图;FIG. 11 is a schematic diagram of addressing operations of the data processing method provided by the embodiment of the present application;
如12为本申请另一实施例提供的数据处理方法的寻址操作示意图;Figure 12 is a schematic diagram of addressing operations of the data processing method provided in another embodiment of the present application;
图13为本申请实施例提供的一种数据处理装置的功能框图;FIG. 13 is a functional block diagram of a data processing device provided by an embodiment of the present application;
图14为本申请实施例提供的一种内容寻址存储器制作方法的流程框图;FIG. 14 is a flowchart of a method for fabricating a content-addressable memory provided by an embodiment of the present application;
图15a至图15n为本申请实施例提供的一种内容寻址存储器制作方法中各步骤完成后对应的工艺结构剖面图;15a to 15n are cross-sectional views of the corresponding process structure after each step is completed in a method for manufacturing a content addressable memory provided by the embodiment of the present application;
图16为本申请实施例提供的一种电子设备的功能框图。FIG. 16 is a functional block diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面结合附图介绍本申请提供的实施例。The following describes the embodiments provided by the present application with reference to the accompanying drawings.
在本申请的实施例中,晶体管可以采用金属-氧化物半导体场效应晶体管(metal-oxide-semiconductor field effect transistor,MOSFET),晶体管分为N(negative,负)型晶体管和P(positive,正)型晶体管两种类型。晶体管包括源极(source)、漏极(drain)以及栅极(gate),通过控制输入晶体管栅极的电平可以控制晶体管的导通或关断。晶体管在导通时,源极和漏极导通,产生导通电流,并且,在晶体管的栅极电平不同时,源极与漏极之间产生的导通电流的大小也不同;晶体管在关断时,源极和漏极不会导通,不会产生电流。在本申请的实施例中,晶体管的栅极也被称为控制端,源极被称为第一端,漏极被称为第二端;或者,栅极被称为控制端,漏极被称为第一端,源极被称为第二端。此外,N型晶体管在控制端的电平为高电平时导通,第一端和第二端导通,第一端和第二端之间产生导通电流;N型晶体管在控制端的电平为低电平时关断,第一端和第二端不导通,不产生电流。P型晶体管在控制端的电平为低电平时导通,第一端和第二端导通,产生导通电流;P型晶体管在控制端的电平为高电平时关断,第一端和第二端不导通,不产生电流,为了对本申请的实施例进行详细的介绍,本申请的实施例中均以晶体管为N型晶体管进行举例说明,但并非对本申请方案的限定。In the embodiment of the present application, the transistor can be a metal-oxide-semiconductor field effect transistor (MOSFET), and the transistor is divided into an N (negative, negative) type transistor and a P (positive, positive) transistor. There are two types of transistors. The transistor includes a source (source), a drain (drain) and a gate (gate), and the transistor can be turned on or off by controlling the level input to the gate of the transistor. When the transistor is turned on, the source and drain are turned on to generate a conduction current, and when the gate level of the transistor is different, the magnitude of the conduction current generated between the source and the drain is also different; the transistor is in When turned off, the source and drain do not conduct and no current flows. In the embodiments of the present application, the gate of the transistor is also called the control terminal, the source is called the first terminal, and the drain is called the second terminal; or, the gate is called the control terminal, and the drain is called the second terminal. is called the first terminal, and the source is called the second terminal. In addition, the N-type transistor is turned on when the level of the control terminal is high, the first terminal and the second terminal are turned on, and a conduction current is generated between the first terminal and the second terminal; the level of the N-type transistor at the control terminal is When it is low level, it is turned off, the first terminal and the second terminal are not conducted, and no current is generated. The P-type transistor is turned on when the level of the control terminal is low, and the first and second terminals are turned on to generate a conduction current; the P-type transistor is turned off when the level of the control terminal is high, and the first and second terminals are turned on. The two terminals are not conducting, and no current is generated. In order to describe the embodiments of the present application in detail, the transistors in the embodiments of the present application are all illustrated as N-type transistors, but this is not a limitation to the solutions of the present application.
铁电电容利用铁电材料可以发生自发极化、且极化状态能够随外电场作用而重新取向的特点进行数据存储。Ferroelectric capacitors use the characteristics that ferroelectric materials can undergo spontaneous polarization, and the polarization state can be reoriented with the action of an external electric field for data storage.
如图1所示,图1示出了铁电材料的电滞回线示意图。向铁电材料施加不同的电场可以使其处于不同的极化状态(也被称为极化方向),并且在电场撤销后能保持该极化状态,例如,结合图1,当一个电场被施加到铁电晶体时,中心原子顺着电场停 留在低能量状态位置I,反之,当该电场翻转被施加到同一铁电晶体时,中心原子顺着电场的方向在晶体里移动并停留在另一低能量状态位置II。大量中心原子在晶胞中移动耦合形成铁电畴,铁电畴在电场作用下形成翻转电荷,产生翻转电荷较多时可以用于指示铁电材料中存储的数据为“1”,翻转电荷较少时用于指示存储的数据为“0”。在另一种情况下,当翻转电荷较多时也可以用于指示存储的数据为“0”,翻转电荷较少时用于指示存储的数据为“1”。为了确保施加的电场能够使铁电材料的极化状态发生翻转,上述电场强度应大于铁电材料的矫顽场强Ec,矫顽场强Ec是指铁电材料剩余极化强度恢复到零所需的反向电场强度。例如,从图1中位置I到图1中的位置II,需要向铁电材料施加大于-Ec的电场,从图1中位置II到图1中位置I,需要向铁电材料施加大于+Ec的电场。As shown in FIG. 1 , FIG. 1 shows a schematic diagram of a hysteresis loop of a ferroelectric material. Applying different electric fields to ferroelectric materials can cause them to be in different polarization states (also called polarization directions), and can maintain this polarization state after the electric field is withdrawn. For example, referring to Fig. 1, when an electric field is applied When it comes to a ferroelectric crystal, the central atom stays in the low-energy state position I along the electric field. On the contrary, when the electric field reversal is applied to the same ferroelectric crystal, the central atom moves in the crystal along the direction of the electric field and stays in another state. Low energy state position II. A large number of central atoms move and couple in the unit cell to form a ferroelectric domain. The ferroelectric domain forms a flip charge under the action of an electric field. When there are more flip charges, it can be used to indicate that the data stored in the ferroelectric material is "1". Used to indicate that the stored data is "0". In another case, it can also be used to indicate that the stored data is "0" when the flipped charge is large, and it can be used to indicate that the stored data is "1" when the flipped charge is small. In order to ensure that the applied electric field can reverse the polarization state of the ferroelectric material, the above-mentioned electric field strength should be greater than the coercive field strength Ec of the ferroelectric material. required reverse electric field strength. For example, from position I in Figure 1 to position II in Figure 1, it is necessary to apply an electric field greater than -Ec to the ferroelectric material, and from position II in Figure 1 to position I in Figure 1, it is necessary to apply an electric field greater than +Ec to the ferroelectric material the electric field.
以铁电电容为例,铁电电容是指利用铁电材料作为介质的电容,铁电电容包括第一极板、第二极板以及第一极板与第二极板之间的铁电材料层,由于铁电材料具有自发极化的特性,且极化方向能被外加电场改变,故利用铁电材料制成的铁电电容可以具备不同的极化状态,不同的极化状态可以用于指示存储不同的数据,例如“0”或“1”。在外加电场的作用下,铁电电容的极化状态可以发生变化,例如当铁电电容处于第一极化状态时,例如极化状态为第一极板朝向第二极板,在电场作用下产生翻转电荷较少;当铁电电容处于第二极化状态时,例如极化状态为第二极板朝向第一极板,在电场作用下产生翻转电荷较多;或者还可以是在第一极化状态时在电场作用下产生翻转电荷较多,在第二极化状态时在电场作用下产生翻转电荷较少。不同的极化状态可以用于指示铁电电容存储不同的数据,例如当铁电电容处于第一极化状态时用于指示存储的数据为“1”,当铁电电容处于第二极化状态时用于指示存储的数据为“0”。在另一种情况下,当铁电电容处于第一极化状态时用于指示存储的数据为“0”,当铁电电容处于第二极化状态时用于指示存储的数据为“1”。Taking ferroelectric capacitors as an example, ferroelectric capacitors refer to capacitors that use ferroelectric materials as the medium. Ferroelectric capacitors include the first plate, the second plate, and the ferroelectric material between the first plate and the second plate. Layer, since ferroelectric materials have the characteristics of spontaneous polarization, and the polarization direction can be changed by an external electric field, so ferroelectric capacitors made of ferroelectric materials can have different polarization states, and different polarization states can be used for Indicates that different data is stored, such as "0" or "1". Under the action of an external electric field, the polarization state of the ferroelectric capacitor can change. For example, when the ferroelectric capacitor is in the first polarization state, for example, the polarization state is that the first plate is facing the second plate. Under the action of the electric field There are fewer flipping charges; when the ferroelectric capacitor is in the second polarization state, for example, the polarization state is that the second polar plate is facing the first polar plate, more flipping charges are generated under the action of the electric field; or it can also be in the first In the polarized state, there are more flipped charges under the action of the electric field, and in the second polarized state, less flipped charges are generated under the action of the electric field. Different polarization states can be used to indicate that the ferroelectric capacitor stores different data, for example, when the ferroelectric capacitor is in the first polarization state, it is used to indicate that the stored data is "1", when the ferroelectric capacitor is in the second polarization state is used to indicate that the stored data is "0". In another case, the data used to indicate storage is "0" when the ferroelectric capacitor is in the first polarization state, and the data used to indicate storage is "1" when the ferroelectric capacitor is in the second polarization state .
CAM是以内容进行寻址的存储器,是一种特殊的存储阵列,其工作机制为将一个输入数据项与存储在CAM中的所有数据项自动同时进行比较,判别该输入数据项与CAM中存储的数据项是否相匹配,并输出该数据项对应的匹配信息。CAM为交换机、路由器等网络设备的重要组成部件。CAM is a content-addressable memory. It is a special storage array. Its working mechanism is to automatically compare an input data item with all data items stored in the CAM at the same time, and distinguish the input data item from the data stored in the CAM. Whether the data item matches, and output the matching information corresponding to the data item. CAM is an important component of network equipment such as switches and routers.
一种典型的CAM为TCAM,TCAM是从CAM的基础上发展而来的。一般的CAM存储器中每个bit位的状态只有两种,“0”或“1”,而TCAM中每个bit位有三种状态,除“0”和“1”外,还有第三种状态:“don’t care”状态,又称为模糊状态,所以称为“三态”,第三种状态使其既能进行精确匹配查找,又能进行模糊匹配查找。A typical CAM is TCAM, which is developed from CAM. There are only two states of each bit in a general CAM memory, "0" or "1", while each bit in TCAM has three states, except for "0" and "1", there is a third state : The "don't care" state is also known as the fuzzy state, so it is called "three states". The third state enables both exact match search and fuzzy match search.
CAM可以和网络处理器(net processor,NP)一起完成数据包的分类、路由查找等功能,充当搜索引擎单元。其中网络处理器用于从报文提取信息,整理成与CAM中待查表一致的数据格式,称为关键字(key);在查找阶段,将key送入TCAM中与待查表中的所有表项进行对照,以查找与数据匹配的存储地址。The CAM can work with the network processor (net processor, NP) to complete functions such as data packet classification and route lookup, and act as a search engine unit. Among them, the network processor is used to extract information from the message, and organize it into a data format consistent with the table to be looked up in the CAM, which is called a keyword (key); in the search phase, the key is sent to all tables in the TCAM and the table to be looked up Items are compared to find memory addresses that match the data.
传统的TCAM方案主要基于静态随机存取存储器(Static Random-Access Memory,SRAM)存储单元实现,如图2所示,每个TCAM存储单元包括4个晶体管M1、M2、M3、M4以及2个SRAM存储单元D0与D1。其中,晶体管M1的第二端与晶体管M3的第一端连接,晶体管M2的第二端与晶体管M4的第一端连接;晶体管M1的第 一端、晶体管M2的第一端接地,晶体管M3的第二端、晶体管M4的第二端连接匹配线(match line,ML);晶体管M1的控制端连接第一查找线(search line,SL),晶体管M2的控制端连接第二查找线SL!,晶体管M3的控制端与SRAM存储单元D0连接;晶体管M4的控制端与SRAM存储单元D1连接。The traditional TCAM solution is mainly implemented based on the Static Random-Access Memory (SRAM) storage unit, as shown in Figure 2, each TCAM storage unit includes 4 transistors M1, M2, M3, M4 and 2 SRAMs Memory cells D0 and D1. Wherein, the second end of the transistor M1 is connected to the first end of the transistor M3, and the second end of the transistor M2 is connected to the first end of the transistor M4; the first end of the transistor M1 and the first end of the transistor M2 are grounded, and the first end of the transistor M3 is connected to the ground. The second terminal, the second terminal of the transistor M4 is connected to the match line (match line, ML); the control terminal of the transistor M1 is connected to the first search line (search line, SL), and the control terminal of the transistor M2 is connected to the second search line SL! , the control terminal of the transistor M3 is connected to the SRAM storage unit D0; the control terminal of the transistor M4 is connected to the SRAM storage unit D1.
示例性的,查找线SL、查找线SL!用于输出查找信号,匹配线ML用于输出指示存储单元存储的数据是否与key匹配的信号,例如,预先设定高电平信号表示存储单元存储的数据与key匹配,当执行寻址操作时,查找线SL、查找线SL!输出查找信号对存储单元进行寻址,即查找存储的数据与key值匹配的存储单元,若存储单元连接的匹配线ML输出高电平信号,表明该存储单元存储的数据与key匹配,若该存储单元连接的匹配线输出低电平信号,表明该存储单元存储的数据与key不匹配。如图2所示,以SRAM存储单元D0为例,包括六个晶体管M5~M10。晶体管M5的第一端、晶体管M6的第一端连接第一电源VDD,晶体管M5的第二端连接晶体管M7的第一端,晶体管M6的第二端连接晶体管M8的第一端,晶体管M7的第二端、晶体管M8的第二端连接第二电源VSS,晶体管M9的控制端、晶体管M10的控制端连接字线,晶体管M9的第一端连接第一位线(bit line,BL),晶体管M9的第二端与晶体管M5的第二端连接,还与晶体管M6的控制端连接;晶体管M10的第一端连接第二位线BL!,晶体管M10的第二端连接晶体管M6的第二端,晶体管M10的第二端还与晶体管M5的控制端连接,晶体管M6的第二端与晶体管M3的第一端连接。SRAM存储单元D1的结构与SRAM存储单元D0的结构相同,不再详细说明,其中SRAM存储单元D1的晶体管M9的第一端连接第三位线BR,晶体管M10的第一端连接第四位线BR!。Exemplarily, search line SL, search line SL! It is used to output the search signal, and the match line ML is used to output the signal indicating whether the data stored in the storage unit matches the key. For example, a high level signal is preset to indicate that the data stored in the storage unit matches the key. When performing an addressing operation , Find Line SL, Find Line SL! Output the search signal to address the storage unit, that is, search for the storage unit whose stored data matches the key value. If the matching line ML connected to the storage unit outputs a high level signal, it indicates that the data stored in the storage unit matches the key. The matching line connected to the storage unit outputs a low-level signal, indicating that the data stored in the storage unit does not match the key. As shown in FIG. 2 , taking the SRAM storage unit D0 as an example, it includes six transistors M5 - M10 . The first end of the transistor M5 and the first end of the transistor M6 are connected to the first power supply VDD, the second end of the transistor M5 is connected to the first end of the transistor M7, the second end of the transistor M6 is connected to the first end of the transistor M8, and the second end of the transistor M7 is connected to the first end of the transistor M7. The second terminal, the second terminal of the transistor M8 is connected to the second power supply VSS, the control terminal of the transistor M9 and the control terminal of the transistor M10 are connected to the word line, the first terminal of the transistor M9 is connected to the first bit line (bit line, BL), the transistor The second terminal of M9 is connected to the second terminal of transistor M5 and also connected to the control terminal of transistor M6; the first terminal of transistor M10 is connected to the second bit line BL! , the second terminal of the transistor M10 is connected to the second terminal of the transistor M6, the second terminal of the transistor M10 is also connected to the control terminal of the transistor M5, and the second terminal of the transistor M6 is connected to the first terminal of the transistor M3. The structure of the SRAM storage unit D1 is the same as that of the SRAM storage unit D0, and will not be described in detail, wherein the first end of the transistor M9 of the SRAM storage unit D1 is connected to the third bit line BR, and the first end of the transistor M10 is connected to the fourth bit line. BR! .
2个SRAM存储单元(D0和D1)存储的数据组合被用来表示TCAM的三种状态:“0”、“1”和“don’t care”,其中,逻辑值“0”代表一种状态,逻辑值“1”代表一种状态,“don’t care”代表一种状态,后续示例中,以“X”表示“don’t care”,称为模糊状态“X”。一般地,D0和D1的存储的不同数据组合表示不同的状态,如表1所示。The combination of data stored in two SRAM storage units (D0 and D1) is used to represent the three states of TCAM: "0", "1" and "don't care", where the logic value "0" represents a state , the logical value "1" represents a state, and "don't care" represents a state. In the following examples, "X" represents "don't care", which is called the fuzzy state "X". Generally, different data combinations stored in D0 and D1 represent different states, as shown in Table 1.
表1Table 1
Figure PCTCN2021134630-appb-000001
Figure PCTCN2021134630-appb-000001
D0存储“0”和D1存储“1”的组合表示TCAM的状态“0”,与key值“0”匹配;D0存储“1”和D1存储“0”的组合表示TCAM的状态“1”,与key值“1”匹配;D0和D1存储相同逻辑值时表示TCAM的模糊状态,其中D0和D1均存储“0”的组合表示TCAM的第一模糊状态,称为模糊“X”类型0(后文中简写为“X0”),“X0”与key值“1”或“0”均不匹配,此外,D0和D1都存储“1”的组合表示TCAM的第二模糊状态“X”,称为模糊“X”类型1(后文中简写为“X1”),“X1”与 key值“0”和“1”均匹配,这种匹配状态称为模糊匹配,在一些其他可能的实现方式中,也可以将“X1”称为第一模糊状态,将“X0”称为第二模糊状态。The combination of D0 storing "0" and D1 storing "1" indicates the state of TCAM "0", which matches the key value "0"; the combination of D0 storing "1" and D1 storing "0" indicates the state of TCAM "1", Matches the key value "1"; when D0 and D1 store the same logic value, it indicates the fuzzy state of TCAM, and the combination of both D0 and D1 storing "0" indicates the first fuzzy state of TCAM, which is called fuzzy "X" type 0 ( hereinafter abbreviated as "X0"), "X0" does not match the key value "1" or "0". In addition, the combination of both D0 and D1 storing "1" represents the second fuzzy state "X" of TCAM, which is called For fuzzy "X" type 1 (abbreviated as "X1" in the following), "X1" matches both key values "0" and "1". This matching state is called fuzzy matching. In some other possible implementations , "X1" can also be called the first fuzzy state, and "X0" can be called the second fuzzy state.
TCAM可以根据key与自身存储的状态或者数据进行查找匹配,如果存储的状态或数据与key匹配,则通过匹配线输出相应的匹配信号,这一过程可以称为寻址。在进行寻址之前首先定义key值与查找线的施加电压的对应关系,如表2所示:TCAM can search and match according to the key and its stored state or data. If the stored state or data matches the key, it will output a corresponding matching signal through the matching line. This process can be called addressing. Before addressing, first define the corresponding relationship between the key value and the applied voltage of the search line, as shown in Table 2:
表2Table 2
Keykey SL电压SL voltage SL!电压SL! Voltage
00 00 11
11 11 00
表2中SL电压为1表示向第一查找线SL输出高电平信号,SL电压为0表示向第一查找线SL输出电压为0的信号;SL!电压为1表示向第二查找线SL!输出高电平信号,SL!电压为0表示向第二查找线SL!输出电压为0的信号。结合图2与表2,当key值为0时,向第一查找线SL输出电压为0的信号,向第二查找线SL!输出高电平信号;当key值为1时,向第一查找线SL输出高电平信号,向第二查找线SL!输出电压为0的信号。同时,还需要对TCAM的数据匹配协议进行定义,如表3所示:In Table 2, an SL voltage of 1 means that a high-level signal is output to the first search line SL, and an SL voltage of 0 means that a signal with a voltage of 0 is output to the first search line SL; SL! A voltage of 1 indicates to the second lookup line SL! Output high level signal, SL! A voltage of 0 means to the second lookup line SL! The output voltage is 0 signal. Combining Figure 2 and Table 2, when the key value is 0, a signal with a voltage of 0 is output to the first search line SL, and a signal with a voltage of 0 is output to the second search line SL! Output a high-level signal; when the key value is 1, output a high-level signal to the first search line SL, and output a high-level signal to the second search line SL! The output voltage is 0 signal. At the same time, it is also necessary to define the data matching protocol of TCAM, as shown in Table 3:
表3table 3
TCAM状态TCAM status Key=1Key=1 Key=0Key=0 匹配协议 matching agreement
00 ML=0ML=0 ML=1ML=1 ML=1时数据匹配Data matching when ML=1
11 ML=1ML=1 ML=0ML=0 ML=1时数据匹配Data matching when ML=1
模糊“X”类型0Fuzzy "X" type 0 ML=0ML=0 ML=0ML=0 不匹配Mismatch
模糊“X”类型1Fuzzy "X" Type 1 ML=1ML=1 ML=1ML=1 模糊匹配fuzzy match
当TCAM状态为“0”时,若key值为1,匹配线ML输出信号电压为0,若key值为0,匹配线ML输出高电平信号,即key值为0时,TACM状态与key匹配。When the TCAM state is "0", if the key value is 1, the matching line ML output signal voltage is 0, if the key value is 0, the matching line ML outputs a high-level signal, that is, when the key value is 0, the TACM state and key match.
当TCAM状态为“1”时,若key值为1,匹配线ML输出高电平信号,若key值为0,匹配线ML输出信号电压为0,即key值为1时,TACM状态与key匹配。When the TCAM state is "1", if the key value is 1, the matching line ML outputs a high-level signal; if the key value is 0, the matching line ML output signal voltage is 0, that is, when the key value is 1, the TACM state and match.
当TCAM状态为模糊“X”类型0时,无论key值为1或者0,匹配线ML输出信号的电压为0,TCAM状态与key不匹配。When the TCAM state is fuzzy "X" type 0, no matter the key value is 1 or 0, the output signal voltage of the matching line ML is 0, and the TCAM state does not match the key.
当TCAM状态为模糊“X”类型1时,无论key值为1或者0,匹配线ML输出信号均为高电平信号,TCAM状态与key模糊匹配。When the TCAM state is fuzzy "X" type 1, no matter the key value is 1 or 0, the output signal of the matching line ML is a high-level signal, and the TCAM state is fuzzy matched with the key.
例如,结合图2,开始寻址时,将匹配线ML预充至高电平,例如,预充至VDD。For example, referring to FIG. 2 , when addressing starts, the match line ML is precharged to a high level, for example, to VDD.
当TCAM状态为“0”时,D0存储“0”,晶体管M3处于导通状态,D1存储“1”,晶体管M4处于关断状态。如果key值为1,第一查找线SL电压为高电平,晶体管M1导通,晶体管M1和晶体管M3形成的电流通路将匹配线ML接地,把匹配线ML的电压拉低至0,此时TCAM状态与key值不匹配;如果key值为0,第一查找线SL电压为0,使晶体管M1关断,由于晶体管M4处于关断状态,没有电流通路把匹配线ML的电压拉低,匹配线ML保持高电平,此时TCAM状态与key值匹配。When the TCAM state is "0", D0 stores "0", the transistor M3 is in the on state, D1 stores "1", and the transistor M4 is in the off state. If the key value is 1, the voltage of the first search line SL is high, the transistor M1 is turned on, the current path formed by the transistor M1 and the transistor M3 grounds the matching line ML, and pulls the voltage of the matching line ML down to 0, at this time The TCAM state does not match the key value; if the key value is 0, the voltage of the first search line SL is 0, turning off the transistor M1, and since the transistor M4 is in the off state, there is no current path to pull down the voltage of the matching line ML, matching Line ML maintains a high level, and the TCAM state matches the key value at this time.
当TCAM状态为“1”时,D0存储“1”,晶体管M3处于关断状态,D1存储“0”,晶体管M4处于导通状态。如果key值为1,第二查找线SL!的电压为0,晶体管M2关断,没有电流通路将匹配线ML的电压拉低,匹配线ML保持高电平,此时TCAM 状态与key值匹配;如果key值为0,第二查找线SL!的电压为高电平使晶体管M2导通,晶体管M2和晶体管M4形成的电流通路将匹配线ML的电压拉低至0,TCAM状态与key值不匹配。When the TCAM state is "1", D0 stores "1", the transistor M3 is in the off state, D1 stores "0", and the transistor M4 is in the on state. If the key value is 1, the second lookup line SL! The voltage of the TCAM is 0, the transistor M2 is turned off, there is no current path to pull down the voltage of the matching line ML, and the matching line ML remains high, at this time, the state of the TCAM matches the key value; if the key value is 0, the second search line SL ! The voltage of the high level turns on the transistor M2, and the current path formed by the transistor M2 and the transistor M4 pulls down the voltage of the matching line ML to 0, and the state of the TCAM does not match the key value.
当TCAM状态为模糊“X”类型0(“X0”)时,D0与D1均存储“0”,晶体管M3和晶体管M4都处于导通状态。如果key值为1,第一查找线SL电压为高电平,晶体管M1导通,晶体管M1和晶体管M3形成的电流通路把匹配线ML的电压拉低至0,TCAM状态与key值不匹配;如果key值为0,第二查找线SL!的电压为高电平使晶体管M2导通,晶体管M2和晶体管M4形成的电流通路将匹配线ML接地,将匹配线ML的电压拉低至0,因此无论key值为0还是1,总有电流通路将匹配线ML接地,使匹配线ML的电压变为0,因此key值与TCAM存储数据不匹配。When the TCAM state is fuzzy "X" type 0 ("X0"), both D0 and D1 store "0", and both the transistor M3 and the transistor M4 are in the on state. If the key value is 1, the voltage of the first search line SL is high, the transistor M1 is turned on, and the current path formed by the transistor M1 and the transistor M3 pulls down the voltage of the matching line ML to 0, and the state of the TCAM does not match the key value; If the key value is 0, the second lookup line SL! The voltage of the high level turns on the transistor M2, the current path formed by the transistor M2 and the transistor M4 grounds the matching line ML, and pulls the voltage of the matching line ML down to 0, so no matter the key value is 0 or 1, there is always a current The path connects the matching line ML to the ground, so that the voltage of the matching line ML becomes 0, so the key value does not match the data stored in the TCAM.
当TCAM状态为模糊“X”类型1(X1)时,D0与D1均存储“1”,晶体管M3和晶体管M4都处于关断状态,无论key值为0还是1,都无法形成电流通路将匹配线ML的电压拉低,匹配线ML的电压保持为高电平,所以key值与TCAM存储数据模糊匹配。When the state of TCAM is fuzzy "X" type 1 (X1), both D0 and D1 store "1", transistor M3 and transistor M4 are both in the off state, no matter whether the key value is 0 or 1, no current path can be formed to match The voltage of the line ML is pulled down, and the voltage of the matching line ML is kept at a high level, so the key value fuzzily matches with the data stored in the TCAM.
基于SRAM的TCAM查找地址速度快和操作简单,但是每一个TCAM存储单元由4个晶体管以及两个SRAM存储单元组成,即每个TCAM存储单元需要16个晶体管,具有器件多、占用面积大、存储密度低等缺点。SRAM-based TCAM has fast address search speed and simple operation, but each TCAM storage unit is composed of 4 transistors and two SRAM storage units, that is, each TCAM storage unit requires 16 transistors, which has the advantages of many devices, large footprint, and storage Disadvantages such as low density.
本申请实施例提供一种内容寻址存储器,该内容寻址存储器的每个存储单元(memory cell,MC)包括2个电容与一个晶体管,即属于单管双容(2capacitor 1transistor,2C1T)结构,请参阅图3,存储单元MC中包括2个电容(第一电容C1、第二电容C2)和一个晶体管T,晶体管T的控制端与第一电容C1的第一极板、第二电容C2的第一极板连接,连接点为无驱动点(floating node,FN)。晶体管T的第一端连接字线WL,晶体管T的第二端连接匹配线ML,示例性的,匹配线ML用于输出指示存储单元MC存储的数据与key值是否匹配的信号;第一电容C1的第二极板连接第一位线BL,第二电容C2的第二极板连接第二位线BL!。An embodiment of the present application provides a content-addressable memory, each memory cell (memory cell, MC) of the content-addressable memory includes two capacitors and one transistor, that is, it belongs to a single-transistor double-capacity (2capacitor 1transistor, 2C1T) structure, Please refer to FIG. 3, the storage unit MC includes two capacitors (the first capacitor C1 and the second capacitor C2) and a transistor T, and the control terminal of the transistor T is connected to the first plate of the first capacitor C1 and the second capacitor C2. The first plate is connected, and the connection point is a floating node (FN). The first end of the transistor T is connected to the word line WL, and the second end of the transistor T is connected to the match line ML. Exemplarily, the match line ML is used to output a signal indicating whether the data stored in the memory cell MC matches the key value; the first capacitor The second plate of C1 is connected to the first bit line BL, and the second plate of the second capacitor C2 is connected to the second bit line BL! .
在本申请实施例提供的内容寻址存储器的存储单元MC中,第一电容C1与第二电容C2用于存储数据,示例性的,第一电容C1、第二电容C2可以为铁电电容,但不限于此,还可以是其他类型的电容。铁电电容利用铁电材料具备自发极化,并且在撤去电场后极化状态可以保持的特性存储数据,具备非易失性的特点。In the storage unit MC of the content addressable memory provided by the embodiment of the present application, the first capacitor C1 and the second capacitor C2 are used to store data. Exemplarily, the first capacitor C1 and the second capacitor C2 may be ferroelectric capacitors, But not limited thereto, other types of capacitors may also be used. Ferroelectric capacitors use ferroelectric materials to have spontaneous polarization, and the polarization state can be maintained after the electric field is removed to store data, and has the characteristics of non-volatility.
第一电容C1与第二电容C2存储的不同数据组合可以用以指示内容寻址存储器的不同状态。如表4所示:Different combinations of data stored in the first capacitor C1 and the second capacitor C2 can be used to indicate different states of the CAM. As shown in Table 4:
表4Table 4
Figure PCTCN2021134630-appb-000002
Figure PCTCN2021134630-appb-000002
其中,当第一电容C1存储第一逻辑值、第二电容C2存储第二逻辑值时,可以用 于指示内容寻址存储器的状态为第一逻辑值;当第一电容C1存储第二逻辑值,第二电容C2存储第一逻辑值时,可以用于指示内容寻址存储器的状态为第二逻辑值;当第一电容C1、第二电容C2均存储第一逻辑值时,可以用于指示内容寻址存储器的状态为第一模糊状态,当第一电容C1、第二电容C2均存储第二逻辑值时,可以用于指示内容寻址存储器的状态为另一种模糊状态,即第二模糊状态。在一种情况下,第一逻辑值可以为“0”,相应的,第二逻辑值可以为“1”,第一模糊状态为“X0”,第二模糊状态为“X1”;在另一种情况下,第一逻辑值可以为“1”,相应的,第二逻辑值可以为“0”,第一模糊状态为“X1”,第二模糊状态为“X0”。Wherein, when the first capacitor C1 stores the first logic value and the second capacitor C2 stores the second logic value, it can be used to indicate that the state of the content addressable memory is the first logic value; when the first capacitor C1 stores the second logic value , when the second capacitor C2 stores the first logic value, it can be used to indicate that the state of the content addressable memory is the second logic value; when the first capacitor C1 and the second capacitor C2 both store the first logic value, it can be used to indicate The state of the content-addressable memory is the first fuzzy state. When both the first capacitor C1 and the second capacitor C2 store the second logic value, it can be used to indicate that the state of the content-addressable memory is another fuzzy state, that is, the second fuzzy state. In one case, the first logic value can be "0", correspondingly, the second logic value can be "1", the first fuzzy state is "X0", and the second fuzzy state is "X1"; in another In this case, the first logic value may be "1", and correspondingly, the second logic value may be "0", the first fuzzy state is "X1", and the second fuzzy state is "X0".
表5table 5
Figure PCTCN2021134630-appb-000003
Figure PCTCN2021134630-appb-000003
如表5所示,其中,当第一电容C1存储“0”、第二电容C2存储“1”时,可以用于指示内容寻址存储器的状态为“0”;当第一电容C1存储“1”,第二电容C2存储“0”时,可以用于指示内容寻址存储器的状态为“1”;当第一电容C1、第二电容C2均存储“0”时,可以用于指示内容寻址存储器的状态为“X0”,当第一电容C1、第二电容C2均存储“1”时,可以用于指示内容寻址存储器的状态为另一种模糊状态“X1”。As shown in Table 5, when the first capacitor C1 stores "0" and the second capacitor C2 stores "1", it can be used to indicate that the state of the content addressable memory is "0"; when the first capacitor C1 stores " 1", when the second capacitor C2 stores "0", it can be used to indicate that the state of the content addressable memory is "1"; when the first capacitor C1 and the second capacitor C2 both store "0", it can be used to indicate the content The state of the addressable memory is "X0". When the first capacitor C1 and the second capacitor C2 both store "1", it can be used to indicate that the state of the content addressable memory is another fuzzy state "X1".
当执行写入操作时,第一位线BL与第二位线BL!用于输出写入电压,以向存储单元MC写入待写数据。其中第一位线BL可以用于将第一电容C1的第二极板的电压配置成预设定的第一写入电压,以配置第一电容C1的极化状态,同理第二位线BL!可以用于将第二电容C2的第二极板的电压配置成预设定的第二写入电压,以配置第二电容C2的极化状态。当第一电容C1与第二电容C2处于不同的极化状态时可以用于指示在第一电容C1与第二电容C2中存储不同的数据。When performing a write operation, the first bit line BL and the second bit line BL! It is used for outputting a write voltage to write data to be written into the memory cell MC. The first bit line BL can be used to configure the voltage of the second plate of the first capacitor C1 to a preset first write voltage to configure the polarization state of the first capacitor C1, and the second bit line is the same BL! It can be used to configure the voltage of the second plate of the second capacitor C2 to a preset second write voltage, so as to configure the polarization state of the second capacitor C2. When the first capacitor C1 and the second capacitor C2 are in different polarization states, it can be used to indicate that different data are stored in the first capacitor C1 and the second capacitor C2.
在一种可能的实现方式中,在不同的第一写入电压作用下,第一电容C1可以被配置成不同的极化状态,例如,第一电容C1的极化状态可以被配置成第一极化状态,其中第一极化状态为第一极板朝向第二极板,第二极板的电压低于第一极板的电压;或者第一电容C1的极化状态还可以被配置成为与第一极化状态相反的第二极化状态,第二极化状态为第二极板朝向第一极板,第二极板的电压高于第一极板的电压。In a possible implementation manner, under different first write voltages, the first capacitor C1 can be configured in different polarization states, for example, the polarization state of the first capacitor C1 can be configured in the first Polarization state, wherein the first polarization state is that the first pole plate faces the second pole plate, and the voltage of the second pole plate is lower than the voltage of the first pole plate; or the polarization state of the first capacitor C1 can also be configured as A second polarization state opposite to the first polarization state, the second polarization state is that the second pole plate faces the first pole plate, and the voltage of the second pole plate is higher than the voltage of the first pole plate.
当第一电容C1的极化状态为第一极板朝向第二极板时,可以用于指示第一电容C1存储第一逻辑值;当第一电容C1的极化状态为第二极板朝向第一极板时,可以用于指示第一电容C1存储与第一逻辑值相反的第二逻辑值。在一种情况下,第一逻辑值可以为“0”,相应的,第二逻辑值可以为“1”;在另一种情况下,第一逻辑值可以为“1”,相应的,第二逻辑值可以为“0”。When the polarization state of the first capacitor C1 is the first plate facing the second plate, it can be used to instruct the first capacitor C1 to store the first logic value; when the polarization state of the first capacitor C1 is the second plate facing When the first polar plate is used, it can be used to instruct the first capacitor C1 to store a second logic value opposite to the first logic value. In one case, the first logical value may be "0", and correspondingly, the second logical value may be "1"; in another case, the first logical value may be "1", and correspondingly, the second Two logical values can be "0".
同理,在不同的第二写入电压作用下,第二电容C2也可以被配置成不同的极化状态,例如第二电容C2的极化状态可以被配置成第一极化状态,其中第一极化状态 为第一极板朝向第二极板,第一极板的电压高于第二极板的电压;或者第二电容C2的极化状态还可以被配置成为与第一极化状态相反的第二极化状态,第二极化状态为第二极板朝向第一极板,第二极板的电压高于第一极板的电压。Similarly, under the action of different second writing voltages, the second capacitor C2 can also be configured in different polarization states, for example, the polarization state of the second capacitor C2 can be configured in the first polarization state, wherein the second capacitor C2 can be configured in a first polarization state. A polarization state is that the first pole plate faces the second pole plate, and the voltage of the first pole plate is higher than the voltage of the second pole plate; or the polarization state of the second capacitor C2 can also be configured to be the same as the first polarization state The opposite second polarization state, the second polarization state is that the second pole plate faces the first pole plate, and the voltage of the second pole plate is higher than the voltage of the first pole plate.
当第二电容C2的极化状态为第一极板朝向第二极板时,可以用于指示第二电容C2存储第一逻辑值;当第二电容C2的极化状态为第二极板朝向第一极板时,可以用于指示第二电容C2存储与第一逻辑值相反的第二逻辑值。在一种情况下,第一逻辑值可以为“0”,相应的,第二逻辑值可以为“1”;在另一种情况下,第一逻辑值可以为“1”,相应的,第二逻辑值可以为“0”。When the polarization state of the second capacitor C2 is the first plate facing the second plate, it can be used to instruct the second capacitor C2 to store the first logic value; when the polarization state of the second capacitor C2 is the second plate facing When the first plate is used, it can be used to instruct the second capacitor C2 to store a second logic value opposite to the first logic value. In one case, the first logical value may be "0", and correspondingly, the second logical value may be "1"; in another case, the first logical value may be "1", and correspondingly, the second Two logical values can be "0".
本申请的实施例中,以电容的极化方向为第二极板朝向第一极板时存储的数据为第一逻辑值为例,如图4a~图4d所示,图4a~图4d示出了本申请的实施例提供的存储单元MC不同状态的示意图。In the embodiment of the present application, the data stored when the polarization direction of the capacitor is the second plate facing the first plate is the first logic value as an example, as shown in Figures 4a to 4d, and Figures 4a to 4d show A schematic diagram of different states of the memory cell MC provided by the embodiment of the present application is shown.
当第一电容C1的极化状态被配置为第二极板朝向第一极板,存储第一逻辑值,第二电容C2的极化状态被配置为第一极板朝向第二极板,存储第二逻辑值,可以用于指示该CAM存储单元MC的状态为第一逻辑值。When the polarization state of the first capacitor C1 is configured such that the second plate faces the first plate, the first logical value is stored, and the polarization state of the second capacitor C2 is configured such that the first plate faces the second plate, and the stored The second logic value may be used to indicate that the state of the CAM storage unit MC is the first logic value.
在一种可能的实现方式中,第一写入电压为+Vw,第二写入电压为-Vw,第一电容C1的极化状态被配置为第二极板朝向第一极板,第二电容C2的极化状态被配置为第一极板朝向第二极板,第一电容C1存储第一逻辑值,第二电容C2存储第二逻辑值,该CAM存储单元MC的状态为第一逻辑值。其中,Vw表示能够使电容的极化状态发生翻转的电压。In a possible implementation, the first writing voltage is +Vw, the second writing voltage is -Vw, the polarization state of the first capacitor C1 is configured such that the second plate faces the first plate, and the second The polarization state of the capacitor C2 is configured such that the first plate faces the second plate, the first capacitor C1 stores the first logic value, the second capacitor C2 stores the second logic value, and the state of the CAM storage unit MC is the first logic value value. Wherein, Vw represents the voltage capable of inverting the polarization state of the capacitor.
如图4a,例如,当第一逻辑值为“0”时,第二逻辑值为“1”,第一电容C1存储“0”,第二电容C2存储“1”,可以用于指示该CAM存储单元MC的状态为“0”。As shown in Figure 4a, for example, when the first logic value is "0", the second logic value is "1", the first capacitor C1 stores "0", and the second capacitor C2 stores "1", which can be used to indicate the CAM The state of memory cell MC is "0".
当第一电容C1的极化状态被配置为第一极板朝向第二极板,存储第二逻辑值,第二电容C2的极化状态被配置为第二极板朝向第一极板,存储第一逻辑值,可以用于指示该CAM存储单元MC的状态为第二逻辑值。When the polarization state of the first capacitor C1 is configured such that the first plate faces the second plate, the second logic value is stored, and the polarization state of the second capacitor C2 is configured such that the second plate faces the first plate, and the storage The first logic value may be used to indicate that the state of the CAM storage unit MC is the second logic value.
在一种可能的实现方式中,第一写入电压为-Vw,第二写入电压为+Vw,第一电容C1的极化状态被配置为第一极板朝向第二极板,第二电容C2的极化状态被配置为第二极板朝向第一极板,第一电容C1存储第二逻辑值,第二电容C2存储第一逻辑值0,该CAM存储单元MC的状态为第二逻辑值。In a possible implementation manner, the first writing voltage is -Vw, the second writing voltage is +Vw, the polarization state of the first capacitor C1 is configured such that the first plate faces the second plate, and the second The polarization state of the capacitor C2 is configured such that the second plate faces the first plate, the first capacitor C1 stores the second logic value, the second capacitor C2 stores the first logic value 0, and the state of the CAM storage unit MC is the second logical value.
如图4b,例如,当第一逻辑值为“0”时,第二逻辑值为“1”,第一电容C1存储“1”,第二电容C2存储“0”时,可以用于指示该CAM存储单元MC的状态为“1”。As shown in Figure 4b, for example, when the first logic value is "0", the second logic value is "1", the first capacitor C1 stores "1", and the second capacitor C2 stores "0", which can be used to indicate the The state of the CAM memory cell MC is "1".
当第一电容C1的极化状态被配置为第二极板朝向第一极板,存储第一逻辑值,第二电容C2的极化状态被配置为第二极板朝向第一极板,存储第一逻辑值,可以用于指示该CAM存储单元MC的状态为第一模糊状态。When the polarization state of the first capacitor C1 is configured such that the second plate faces the first plate, the first logic value is stored, and the polarization state of the second capacitor C2 is configured such that the second plate faces the first plate, and the storage The first logical value may be used to indicate that the state of the CAM storage unit MC is the first fuzzy state.
在一种可能的实现方式中,第一写入电压为+Vw,第二写入电压为+Vw,第一电容C1的极化状态被配置为第二极板朝向第一极板,第二电容C2的极化状态被配置为第二极板朝向第一极板,第一电容C1存储第一逻辑值,第二电容C2存储第一逻辑值,该CAM存储单元MC的状态为第一模糊状态。In a possible implementation, the first writing voltage is +Vw, the second writing voltage is +Vw, the polarization state of the first capacitor C1 is configured such that the second plate faces the first plate, and the second The polarization state of the capacitor C2 is configured such that the second plate faces the first plate, the first capacitor C1 stores the first logic value, the second capacitor C2 stores the first logic value, and the state of the CAM storage unit MC is the first fuzzy state.
如图4c,例如,当第一逻辑值为“0”时,第一电容C1存储“0”,第二电容C2存储“0”,可以用于指示该CAM存储单元MC的状态为“X0”。As shown in Figure 4c, for example, when the first logic value is "0", the first capacitor C1 stores "0", and the second capacitor C2 stores "0", which can be used to indicate that the state of the CAM storage unit MC is "X0" .
当第一电容C1的极化状态被配置为第一极板朝向第二极板,存储第二逻辑值,第二电容C2的极化状态被配置为第一极板朝向第二极板,存储第二逻辑值,可以用于指示该CAM存储单元MC的状态为第二模糊状态。When the polarization state of the first capacitor C1 is configured such that the first plate faces the second plate, the second logic value is stored, and the polarization state of the second capacitor C2 is configured such that the first plate faces the second plate, and the storage The second logic value may be used to indicate that the state of the CAM storage unit MC is the second fuzzy state.
在一种可能的实现方式中,第一写入电压为-Vw,第二写入电压为-Vw,第一电容C1的极化状态被配置为第一极板朝向第二极板,第二电容C2的极化状态被配置为第一极板朝向第二极板,第一电容C1存储第二逻辑值,第二电容C2存储第二逻辑值,该CAM存储单元MC的状态为第二模糊状态。In a possible implementation, the first write voltage is -Vw, the second write voltage is -Vw, the polarization state of the first capacitor C1 is configured such that the first plate faces the second plate, and the second The polarization state of the capacitor C2 is configured such that the first plate faces the second plate, the first capacitor C1 stores the second logic value, the second capacitor C2 stores the second logic value, and the state of the CAM storage unit MC is the second fuzzy state.
如图4d,例如,当第一电容C1存储“1”,第二电容C2存储“1”时,可以用于指示该CAM存储单元MC的状态为“X1”。As shown in Fig. 4d, for example, when the first capacitor C1 stores "1" and the second capacitor C2 stores "1", it can be used to indicate that the state of the CAM storage unit MC is "X1".
上述实施例中以第一逻辑值为“0”,第二逻辑值为“1”进行举例说明,在一些其他可能的实现方式中,第一逻辑值还可以为“1”,第二逻辑值还可以为“0”。In the above embodiment, the first logical value is "0" and the second logical value is "1" for illustration. In some other possible implementations, the first logical value may also be "1", and the second logical value Can also be "0".
由上述内容可知,利用第一位线BL将第一电容C1的第二极板的电压配置成第一写入电压,利用第二位线BL!将第二电容C2的第二极板的电压配置成第二写入电压,第一写入电压与第二写入电压的不同组合,即可向该CAM存储单元MC写入不同待写数据,例如可以是“0”、“1”、“X0”或“X1”。It can be seen from the above content that the voltage of the second plate of the first capacitor C1 is configured as the first writing voltage by using the first bit line BL, and the voltage of the second plate of the first capacitor C1 is configured by using the second bit line BL! The voltage of the second plate of the second capacitor C2 is configured as the second write voltage, and different combinations of the first write voltage and the second write voltage can write different data to be written into the CAM memory cell MC, For example "0", "1", "X0" or "X1".
当执行寻址操作时,第一位线BL或第二位线BL!用于依据key值输出预设定的查找信号,以将CAM存储单元MC存储的状态与key值进行匹配,匹配线ML的输出信号可以用于指示匹配的结果,当匹配线ML输出匹配信号(例如,可以是高电平信号)时,CAM存储单元MC存储的状态与key值匹配,结合表6:When performing an addressing operation, the first bit line BL or the second bit line BL! It is used to output a preset search signal according to the key value, so as to match the state stored in the CAM storage unit MC with the key value. The output signal of the matching line ML can be used to indicate the matching result. When the matching line ML outputs the matching signal ( For example, when it can be a high level signal), the state stored in the CAM storage unit MC matches the key value, in conjunction with Table 6:
表6Table 6
keykey 第一位线BLFirst bit line BL 第二位线BL!Second bit line BL!
00 VrVR 悬空dangling
11 悬空dangling VrVR
其中,当key值为0时,通过第一位线BL输出查找信号,第二位线BL!不输出信号,处于悬空状态;当key值为1时,通过第二位线BL!输出查找信号,第一位线BL不输出信号,处于悬空状态。其中,查找信号为可以使电容的极化状态发生部分翻转的信号,查找信号的电压为Vr,Vr<Vw。Wherein, when the key value is 0, the search signal is output through the first bit line BL, and the second bit line BL! No output signal, in a floating state; when the key value is 1, through the second bit line BL! A search signal is output, and the first bit line BL does not output a signal and is in a floating state. Wherein, the search signal is a signal capable of partially inverting the polarization state of the capacitor, and the voltage of the search signal is Vr, where Vr<Vw.
本申请的实施例中,将电容的极化方向为第二极板朝向第一极板时存储的数据确定为第一逻辑值,下面分别对CAM的处于几种不同状态下的寻址操作进行介绍。执行寻址操作时,向字线WL输出第一预设电压(例如,第一预设电压为0),将匹配线预充至第二预设电压(例如,第二预设电压为VDD)。In the embodiment of the present application, the data stored when the polarization direction of the capacitor is the second plate facing the first plate is determined as the first logic value, and the addressing operations of the CAM in several different states are respectively performed below introduce. When performing an addressing operation, a first preset voltage is output to the word line WL (for example, the first preset voltage is 0), and the match line is precharged to a second preset voltage (for example, the second preset voltage is VDD) .
如图5a,当该CAM存储单元MC的状态为“0”,即第一电容C1存储“0”,第二电容C2存储“1”,第一电容C1的极化状态被配置为第二极板朝向第一极板,第一电容C1的第二极板的电压高于第一极板的电压;第二电容C2的极化状态被配置为第一极板朝向第二极板,第二电容C2的第二极板电压低于第一极板的电压。As shown in Figure 5a, when the state of the CAM storage unit MC is "0", that is, the first capacitor C1 stores "0", and the second capacitor C2 stores "1", the polarization state of the first capacitor C1 is configured as the second pole The plate faces the first plate, the voltage of the second plate of the first capacitor C1 is higher than the voltage of the first plate; the polarization state of the second capacitor C2 is configured so that the first plate faces the second plate, and the second plate faces the second plate. The voltage of the second plate of the capacitor C2 is lower than the voltage of the first plate.
当key值为“1”,结合表6,第二位线BL!输出查找信号Vr,在第二电容C2的第二极板的电压低于第一极板的电压情况下,第二位线BL!向第二电容C2的第二极板输出电压为正的信号,第二电容C2的极化状态部分翻转,导致第二电容C2的第一极板存储的正电荷大量减少,为了维持FN处电荷的平衡,晶体管T的控制端诱导出大 量额外的正电荷。此时晶体管T的控制端等效于施加了一个较大的正电压,晶体管T处于导通状态,产生较大Ids电流(晶体管T的第二端与第一端之间的电流),匹配线ML通过晶体管T与字线WL连通,匹配线ML的电压由第二预设电压转变为字线WL上的第一预设电压。When the key value is "1", combined with Table 6, the second bit line BL! output search signal Vr, when the voltage of the second plate of the second capacitor C2 is lower than the voltage of the first plate, the second bit line BL! A positive voltage signal is output to the second plate of the second capacitor C2, and the polarization state of the second capacitor C2 is partially reversed, resulting in a large decrease in the positive charge stored in the first plate of the second capacitor C2, in order to maintain the charge at FN Balanced, the control terminal of transistor T induces a large amount of extra positive charge. At this time, the control terminal of the transistor T is equivalent to applying a large positive voltage, the transistor T is in the conduction state, and generates a large Ids current (the current between the second terminal and the first terminal of the transistor T), and the matching line ML is connected to the word line WL through the transistor T, and the voltage of the match line ML changes from the second predetermined voltage to the first predetermined voltage on the word line WL.
当key值为“0”,第一位线BL输出Vr,第一电容C1的第二极板的电压高于第一极板的电压的情况下,第一位线BL向第一电容C1的第二极板输出电压为正的信号,第一电容C1的极化状态进一步加强,导致第一电容C1的第二极板的负电荷少量增加,为了维持FN处电荷的平衡,晶体管T的控制端诱导出少量额外的正电荷,此时晶体管T的控制端等效于施加了一个较小的正电压,产生较小的Ids电流,晶体管T处于关断状态,匹配线ML的电压维持为第二预设电压,或者由于小Ids电流产生的漏电,匹配线ML的电压为第三预设电压,第三预设电压为第二预设电压与漏电的差值。When the key value is "0", the first bit line BL outputs Vr, and the voltage of the second plate of the first capacitor C1 is higher than the voltage of the first plate, the first bit line BL sends the voltage to the first capacitor C1 The output voltage of the second plate is a positive signal, and the polarization state of the first capacitor C1 is further strengthened, resulting in a small increase in the negative charge of the second plate of the first capacitor C1. In order to maintain the balance of the charge at FN, the control of the transistor T A small amount of extra positive charge is induced at the terminal, at this time, the control terminal of the transistor T is equivalent to applying a small positive voltage to generate a small Ids current, the transistor T is in the off state, and the voltage of the matching line ML is maintained at the first The second predetermined voltage, or the leakage caused by the small Ids current, the voltage of the matching line ML is the third predetermined voltage, and the third predetermined voltage is the difference between the second predetermined voltage and the leakage.
根据上述说明,在字线WL与匹配线ML之间若读出较小的Ids时,即匹配线ML的电压维持为第二预设电压时,key值=0和CAM的存储状态“0”匹配,CAM存储数据的地址就是所寻地址。According to the above description, if a smaller Ids is read between the word line WL and the match line ML, that is, when the voltage of the match line ML is maintained at the second preset voltage, the key value=0 and the storage state of CAM is "0". Match, the address where the CAM stores data is the address you are looking for.
如图5b,当该CAM存储单元MC的状态为“1”,即第一电容C1存储“1”,第二电容C2存储“0”,第一电容C1的极化状态被配置为第一极板朝向第二极板,第一电容C1的第二极板的电压低于第一极板的电压;第二电容C2的极化状态被配置为第二极板朝向第一极板,第二电容C2的第二极板的电压高于第一极板的电压。As shown in Figure 5b, when the state of the CAM memory cell MC is "1", that is, the first capacitor C1 stores "1", and the second capacitor C2 stores "0", the polarization state of the first capacitor C1 is configured as the first polarity The plate faces the second plate, the voltage of the second plate of the first capacitor C1 is lower than the voltage of the first plate; the polarization state of the second capacitor C2 is configured so that the second plate faces the first plate, and the second The voltage of the second plate of the capacitor C2 is higher than the voltage of the first plate.
当key值为“1”,第二位线BL!输出Vr,在第二电容C2的第二极板的电压高于第一极板的电压情况下,第二电容C2的极化状态进一步加强(第二极板的正电荷少量增加),导致第二电容C2的第一极板存储的正电荷少量增加,为了维持FN处电荷的平衡,晶体管T的控制端诱导出少量额外的正电荷。此时晶体管T的控制端等效于施加了一个较小的正电压,产生小Ids电流,晶体管T处于关断状态,匹配线ML的电压维持为第二预设电压。When the key value is "1", the second bit line BL! Output Vr, when the voltage of the second plate of the second capacitor C2 is higher than the voltage of the first plate, the polarization state of the second capacitor C2 is further strengthened (the positive charge of the second plate increases slightly), resulting in the first The positive charge stored in the first plate of the second capacitor C2 increases slightly, and in order to maintain the charge balance at FN, the control terminal of the transistor T induces a small amount of additional positive charge. At this time, the control terminal of the transistor T is equivalent to applying a small positive voltage to generate a small Ids current, the transistor T is turned off, and the voltage of the matching line ML is maintained at the second preset voltage.
当key值为“0”,第一位线BL输出Vr,第一电容C1的第二极板的电压低于第一极板的电压的情况下,第一电容C1的极化状态减弱,导致第一电容C1的第一极板的正电荷大量减少,为了维持FN处电荷的平衡,晶体管T的控制端诱导出大量额外的正电荷,此时晶体管T的控制端等效于施加了一个较大的正电压,晶体管T处于导通状态,产生较大Ids电流,匹配线ML的电压由第二预设电压转变为第一预设电压。When the key value is "0", the first bit line BL outputs Vr, and the voltage of the second plate of the first capacitor C1 is lower than the voltage of the first plate, the polarization state of the first capacitor C1 weakens, resulting in The positive charge on the first plate of the first capacitor C1 is greatly reduced. In order to maintain the charge balance at FN, the control terminal of the transistor T induces a large amount of extra positive charge. At this time, the control terminal of the transistor T is equivalent to applying a relatively With a large positive voltage, the transistor T is in a conduction state, which generates a large Ids current, and the voltage of the matching line ML changes from the second preset voltage to the first preset voltage.
根据上述说明,在字线WL与匹配线ML之间若读出较小的Ids电流时,即匹配线ML的电压维持为第二预设电压时,key值=1和CAM的存储状态“1”匹配,CAM存储数据的地址就是所寻地址。According to the above description, if a small Ids current is read between the word line WL and the match line ML, that is, when the voltage of the match line ML is maintained at the second preset voltage, the key value=1 and the storage state of the CAM is “1”. "Match, the address where the CAM stores data is the address you are looking for.
如图5c,当该CAM存储单元MC的状态为“X0”,第一电容C1存储“0”,第二电容C2存储“0”,第一电容C1的极化状态被配置为第二极板朝向第一极板,第一电容C1的第二极板的电压高于第一极板的电压;第二电容C2的极化状态被配置为第二极板朝向第一极板,第二电容C2的第二极板的电压高于第一极板的电压,第一电容C1的第一极板与第二电容C2的第一极板的电极性相同,均为-Vw,因此在晶体管T的控制端诱导出正电荷形成+2Vw的电压,在这样的情况下,无论key值为1或者0,晶体管T均处于导通状态,产生较大Ids电流,匹配线ML上的电压由第二预设 电压转变为第一预设电压。As shown in Figure 5c, when the state of the CAM memory cell MC is "X0", the first capacitor C1 stores "0", the second capacitor C2 stores "0", and the polarization state of the first capacitor C1 is configured as the second plate Facing the first plate, the voltage of the second plate of the first capacitor C1 is higher than the voltage of the first plate; the polarization state of the second capacitor C2 is configured so that the second plate faces the first plate, and the second capacitor The voltage of the second plate of C2 is higher than the voltage of the first plate, the polarity of the first plate of the first capacitor C1 and the first plate of the second capacitor C2 are the same, both are -Vw, so in the transistor T The control terminal induces a positive charge to form a voltage of +2Vw. In this case, no matter the key value is 1 or 0, the transistor T is in the on state, generating a large Ids current, and the voltage on the matching line ML is determined by the second The preset voltage is transformed into a first preset voltage.
根据上述说明,当CAM存储的状态为“X0”时,无论key时0还是1,在匹配线ML与字线WL之间都能读出较大Ids电流,匹配线ML的电压转变为第一预设电压,此时key值与CAM的存储数据不匹配。According to the above description, when the state stored in CAM is "X0", no matter the key is 0 or 1, a large Ids current can be read between the match line ML and the word line WL, and the voltage of the match line ML changes to the first Preset voltage, at this time the key value does not match the stored data of the CAM.
如图5d,当CAM存储单元MC的状态为“X1”。即第一电容C1存储“1”,第二电容C2存储“1”,第一电容C1的极化状态被配置为第一极板朝向第二极板,第一电容C1的第二极板的电压低于第一极板的电压;第二电容C2的极化状态被配置为第一极板朝向第二极板,第二电容C2的第二极板电压低于第一极板的电压。第一电容C1的第一极板与第二电容C2的第一极板的电极性相同,均为+Vw,因此在晶体管T的控制端诱导出负电荷形成-2Vw的电压,在这样的情况下,无论key值为“1”或者“0”,晶体管T均处于关断状态,仅有小Ids电流产生,匹配线ML的电压维持为第二预设电压。As shown in Figure 5d, when the state of the CAM memory cell MC is "X1". That is, the first capacitor C1 stores "1", and the second capacitor C2 stores "1". The polarization state of the first capacitor C1 is configured such that the first plate faces the second plate, and the second plate of the first capacitor C1 The voltage is lower than the voltage of the first plate; the polarization state of the second capacitor C2 is configured such that the first plate faces the second plate, and the voltage of the second plate of the second capacitor C2 is lower than the voltage of the first plate. The polarity of the first plate of the first capacitor C1 and the first plate of the second capacitor C2 are the same, both are +Vw, so negative charges are induced at the control terminal of the transistor T to form a voltage of -2Vw, in this case In this case, no matter the key value is "1" or "0", the transistor T is in the off state, only a small Ids current is generated, and the voltage of the matching line ML is maintained at the second preset voltage.
根据上述说明,当CAM存储的状态为“X1”时,无论key时0还是1,在匹配线ML与字线WL之间都能读出较小Ids电流,匹配线ML的电压维持为第二预设电压,此时key值与TCAM的存储数据模糊配。According to the above description, when the state stored in the CAM is "X1", no matter the key is 0 or 1, a small Ids current can be read between the match line ML and the word line WL, and the voltage of the match line ML is maintained at the second Preset voltage, at this time the key value is vaguely matched with the stored data of TCAM.
本申请实施例提供的内容寻址存储器,利用2个电容与一个晶体管即可实现TCAM的功能,相比传统的TCAM每个存储单元需要16个晶体管而言,极大地简化了电路结构,缩减了占用的面积,能够提高存储密度。The content addressable memory provided by the embodiment of the present application can realize the function of TCAM by using two capacitors and one transistor, which greatly simplifies the circuit structure and reduces the The occupied area can increase the storage density.
在图3的基础上,请参阅图6,本申请实施例提供的内容寻址存储器还包括多个第一控制管与多个第二控制管,对应每一个存储单元MC设置一个第一控制管Tw1、与一个第二控制管Tw2。其中,第一控制管Tw1、第二控制管Tw2的控制端连接控制线CL,第一控制管Tw1的第一端连接第一位线BL,第一控制管Tw1的第二端连接第一电容C1的第二极板;第二控制管Tw2的第一端连接第二位线BL!,第二控制管Tw2的第二端连接第二电容C2的第二极板。On the basis of FIG. 3, please refer to FIG. 6. The content addressable memory provided by the embodiment of the present application also includes a plurality of first control pipes and a plurality of second control pipes, and a first control pipe is set corresponding to each storage unit MC. Tw1, and a second control tube Tw2. Wherein, the control ends of the first control transistor Tw1 and the second control transistor Tw2 are connected to the control line CL, the first end of the first control transistor Tw1 is connected to the first bit line BL, and the second end of the first control transistor Tw1 is connected to the first capacitor The second plate of C1; the first end of the second control transistor Tw2 is connected to the second bit line BL! , the second end of the second control transistor Tw2 is connected to the second plate of the second capacitor C2.
第一控制管Tw1用于控制第一电容C1的第二极板与第一位线BL1的导通状态,第二控制管Tw2用于控制第二电容C2的第二极板与第二位线BL2的导通状态,当第一控制管Tw1、第二控制管Tw2导通时,第一电容C1的第二极板与第一位线BL1连接,第二电容C2的第二极板与第二位线BL!1连接,可以通过第一位线BL1、第二位线BL!1向选定的存储单元MC写入待写数据,或者通过第一位线BL1或第二位线BL!1向选定的存储单元MC输出查找信号。The first control transistor Tw1 is used to control the conduction state of the second plate of the first capacitor C1 and the first bit line BL1, and the second control transistor Tw2 is used to control the second plate of the second capacitor C2 and the second bit line In the conduction state of BL2, when the first control transistor Tw1 and the second control transistor Tw2 are turned on, the second plate of the first capacitor C1 is connected to the first bit line BL1, and the second plate of the second capacitor C2 is connected to the first bit line BL1. Two bit line BL! 1 connection, you can pass the first bit line BL1, the second bit line BL! 1 Write data to be written into the selected memory cell MC, or through the first bit line BL1 or the second bit line BL! 1 Output a search signal to the selected memory cell MC.
在图6的基础上,本申请实施例提供一种内容寻址存储器,请参阅图7,该内容寻址存储器包括m行n列存储单元MC,m和n均为大于或等于1的正整数。On the basis of Figure 6, the embodiment of the present application provides a content addressable memory, please refer to Figure 7, the content addressable memory includes m rows and n columns of memory cells MC, m and n are both positive integers greater than or equal to 1 .
其中,一行存储单元MC存储的数据组成一个表项,在这样的情况下,位于同一行的存储单元MC连接同一匹配线ML,位于同一行的存储单元MC连接同一条字线WL,位于同一行的存储单元MC连接同一条控制线CL,位于同一列的存储单元MC连接同一第一位线BL,位于同一列的存储单元MC连接同一第二位线BL!。Among them, the data stored in a row of memory cells MC constitutes a table entry. In this case, the memory cells MC in the same row are connected to the same match line ML, and the memory cells MC in the same row are connected to the same word line WL. The memory cells MC in the same column are connected to the same control line CL, the memory cells MC in the same column are connected to the same first bit line BL, and the memory cells MC in the same column are connected to the same second bit line BL! .
例如,结合图7,第一行存储单元MC连接字线WL1,第一行存储单元MC连接匹配线ML1,第一行存储单元MC连接控制线CL1;第二行存储单元MC连接字线WL2,第二行存储单元MC连接匹配线ML2,第二行存储单元MC连接控制线CL2, 第m行存储单元MC连接字线WLm,第m行存储单元MC连接匹配线MLm,第m行存储单元MC连接控制线CLm。第一列存储单元MC与第一位线BL1、第二位线BL!1连接;第二列存储单元MC与第一位线BL2、第二位线BL!2连接,第三列存储单元MC与第一位线BL3、第二位线BL!3连接,第n列存储单元MC与第一位线BLn、第二位线BL!n连接。For example, in conjunction with FIG. 7, the storage cells MC in the first row are connected to the word line WL1, the storage cells MC in the first row are connected to the match line ML1, the storage cells MC in the first row are connected to the control line CL1; the storage cells MC in the second row are connected to the word line WL2, The memory cell MC in the second row is connected to the match line ML2, the memory cell MC in the second row is connected to the control line CL2, the memory cell MC in the m row is connected to the word line WLm, the memory cell MC in the m row is connected to the match line MLm, and the memory cell MC in the m row is connected to the word line WLm. Connect the control line CLm. The memory cell MC in the first column is connected to the first bit line BL1 and the second bit line BL! 1 connection; the memory cell MC in the second column is connected to the first bit line BL2 and the second bit line BL! 2 connection, the memory cell MC in the third column is connected to the first bit line BL3 and the second bit line BL! 3 connection, the memory cell MC in the nth column is connected to the first bit line BLn and the second bit line BL! n connection.
每个存储单元MC可以存储1位(1bit)数据,例如“0”、“1”或“X”中的任意一种,“0”、“1”或“X”分别代表一种状态,如图7所示的内容寻址存储器一行存储单元MC存储的数据可以组成一个表项,m行存储单元MC具有至多m个表项,每一个表项可以存储至多n个bit数据。Each storage unit MC can store 1 bit (1 bit) data, such as any one of "0", "1" or "X", and "0", "1" or "X" respectively represent a state, such as The data stored in one row of memory cells MC in the content addressable memory shown in FIG. 7 can form one table entry, m rows of memory cells MC have at most m table entries, and each table entry can store at most n bits of data.
在执行写入操作时,例如向位于第x行、第y列的存储单元MC作为目标存储单元MC执行写入操作,则控制目标存储单元MC对应的第一控制管Tw1、第二控制管Tw2导通,通过第y列存储单元MC对应的第一位线BL、第二位线BL!输出第一写入电压、第二写入电压,将待写数据写入目标存储单元MC。对于第y列存储单元MC中,除目标存储单元MC之外的存储单元MC,其对应的第一控制管Tw1、第二控制管Tw2处于关断状态,第一位线BL、第二位线BL!输出的第一写入电压、第二写入电压不会改写除目标存储单元MC之外的存储单元MC存储的状态。When performing a write operation, for example, the memory cell MC located in the xth row and the yth column is used as the target memory cell MC to perform the write operation, then the first control transistor Tw1 and the second control transistor Tw2 corresponding to the target memory cell MC are controlled conduction, through the first bit line BL and the second bit line BL corresponding to the memory cell MC in the yth column! The first write voltage and the second write voltage are output, and the data to be written is written into the target memory cell MC. For memory cells MC in the yth column, except for the target memory cell MC, the corresponding first control transistor Tw1 and second control transistor Tw2 are in the off state, and the first bit line BL and the second bit line BL! The outputted first write voltage and second write voltage will not rewrite the states stored in memory cells MC other than the target memory cell MC.
CAM的优点之一在于可以进行快速查找,可以同时将key值与存储的所有表项进行对比,从而查找出与key值匹配的表项。在执行寻址操作时,控制所有的存储单元MC对应的第一控制管Tw1、第二控制管Tw2导通,从而可以同时对CAM内的所有的存储单元MC进行寻址操作。One of the advantages of CAM is that it can be quickly searched, and the key value can be compared with all stored entries at the same time, so as to find out the entry that matches the key value. When performing an addressing operation, the first control transistor Tw1 and the second control transistor Tw2 corresponding to all the memory cells MC are controlled to be turned on, so that the addressing operation can be performed on all the memory cells MC in the CAM at the same time.
例如,若key值的第一位为1,那么第一列存储单元MC对应的第一位线BL1不输出信号,第二位线BL!1输出查找信号Vr,查找第一列存储单元MC中与key值匹配的存储单元MC。For example, if the first bit of the key value is 1, then the first bit line BL1 corresponding to the memory cell MC in the first column does not output a signal, and the second bit line BL! 1. Output the search signal Vr to search for the memory cell MC matching the key value in the first column of memory cells MC.
例如,若key值的第二位为0,那么第二列存单元对应的第一位线BL2输出查找信号Vr,第二位线BL!1不输出信号,查找第二列存储单元MC中与key值匹配的存储单元MC。For example, if the second bit of the key value is 0, then the first bit line BL2 corresponding to the second column memory unit outputs the search signal Vr, and the second bit line BL! 1 No signal is output, and the memory cell MC matching the key value in the second column of memory cells MC is searched.
例如,若key值的第n位为1,那么第n列存储单元MC对应的第一位线BLn不输出信号,第二位线BL!n输出查找信号Vr,查找第n列存储单元MC中与key值匹配的存储单元MC。For example, if the nth bit of the key value is 1, then the first bit line BLn corresponding to the memory cell MC in the nth column does not output a signal, and the second bit line BL! n outputs a search signal Vr to search for the memory cell MC matching the key value in the memory cell MC of the nth column.
由前述内容可知,当存储单元MC连接的字线WL与匹配线ML之间读出小Ids电流时,晶体管T的第一端与第二端不导通,匹配线ML的电压维持第二预设电压,字线WL电压为第一预设电压,即表明该存储单元MC存储的状态与key值匹配;当存储单元MC连接的字线WL与匹配线ML之间读出较大的Ids电流时,晶体管T的第一端与第二端导通,匹配线ML与字线WL连通,匹配线ML的电压转变为与字线WL的电压相同,即第一预设电压,即表明该存储单元MC存储的状态与key值不匹配。It can be seen from the foregoing that when a small Ids current is read between the word line WL connected to the memory cell MC and the match line ML, the first terminal and the second terminal of the transistor T are not conducted, and the voltage of the match line ML maintains the second preset voltage. Set the voltage, the word line WL voltage is the first preset voltage, which means that the stored state of the memory cell MC matches the key value; when a larger Ids current is read between the word line WL and the match line ML connected to the memory cell MC At this time, the first terminal and the second terminal of the transistor T are turned on, the match line ML is connected to the word line WL, and the voltage of the match line ML changes to be the same as the voltage of the word line WL, that is, the first preset voltage, which means that the memory The state stored by cell MC does not match the key value.
本申请实施例中一行存储单元MC存储的数据组成一个表项,当一个表项的每一位的数据均分别与key值匹配(或模糊匹配)时,在该行存储单元MC对应的字线WL与匹配线ML之间仅有较小Ids电流产生,该行所有的存储单元MC的晶体管T 均不导通,字线WL维持第一预设电压,匹配线ML维持第二预设电压;当一个表项中存在至少一位的数据与key值不匹配时,该存储单元MC的晶体管T的第一端与第二端之间产生大Ids电流,晶体管T的第一端与第二端导通,匹配线ML与字线WL连通,匹配线ML的电压被字线ML改写为第一预设电压。In the embodiment of the present application, the data stored in a row of memory cells MC constitutes an entry. When the data of each bit of an entry matches (or fuzzily matches) the key value, the word line corresponding to the row of memory cells MC Only a small Ids current is generated between the WL and the match line ML, the transistors T of all the memory cells MC in the row are not turned on, the word line WL maintains a first preset voltage, and the match line ML maintains a second preset voltage; When there is at least one bit of data in an entry that does not match the key value, a large Ids current is generated between the first end and the second end of the transistor T of the memory cell MC, and the first end and the second end of the transistor T is turned on, the match line ML is connected to the word line WL, and the voltage of the match line ML is rewritten by the word line ML to a first preset voltage.
因此在一种可能的实现方式中,在执行寻址操作时,向字线WL输出第一预设电压(例如,第一预设电压为0),将匹配线预充至第二预设电压(例如,第二预设电压为VDD),输出查找信号后,若某一行存储单元MC所对应的匹配线ML与字线WL之间读出较小的电流,匹配线ML输出第二预设电压,表明该行存储单元MC存储的数据组成的表项与key匹配,该行存储单元MC的地址即为目标地址。若某一行存储单元MC所对应的匹配线ML与字线WL之间读出较大的电流,匹配线ML输出第一预设电压,表明该行存储单元MC存储的数据组成的表项与key不匹配。Therefore, in a possible implementation manner, when performing an addressing operation, a first preset voltage (for example, the first preset voltage is 0) is output to the word line WL, and the match line is precharged to a second preset voltage (For example, the second preset voltage is VDD), after the search signal is output, if a relatively small current is read between the match line ML corresponding to a certain row of memory cells MC and the word line WL, the match line ML outputs the second preset voltage. voltage, indicating that the table entry composed of the data stored in the row of memory cells MC matches the key, and the address of the row of memory cells MC is the target address. If a relatively large current is read between the match line ML and the word line WL corresponding to a row of memory cells MC, the match line ML outputs a first preset voltage, indicating that the table entry and key composed of data stored in the row of memory cells MC Mismatch.
基于本申请实施例提供的内容寻址存储器,本申请实施例还提供一种数据写入方法,用于对本申请实施例提供的内容寻址存储器写入数据,数据写入方法包括:Based on the content-addressable memory provided by the embodiment of the present application, the embodiment of the present application also provides a data writing method for writing data into the content-addressable memory provided by the embodiment of the present application. The data writing method includes:
S110:向第一位线输出第一写入电压,向第二位线输出第二写入电压,以向存储单元写入待写数据。S110: Outputting a first write voltage to a first bit line, and outputting a second write voltage to a second bit line, so as to write data to be written into a memory cell.
其中,第一写入电压用于配置第一电容C1的极化状态,第二写入电压用于配置第二电容C2的极化状态。第一电容C1的不同极化状态可以用于指示第一电容C1存储不同的数据,第二电容C2的不同极化状态可以用于指示第二电容C2存储不同的数据,第一电容C1、第二电容C2存储的不同数据组合用以指示内容寻址存储器的不同状态。Wherein, the first writing voltage is used to configure the polarization state of the first capacitor C1, and the second writing voltage is used to configure the polarization state of the second capacitor C2. The different polarization states of the first capacitor C1 can be used to indicate that the first capacitor C1 stores different data, and the different polarization states of the second capacitor C2 can be used to indicate that the second capacitor C2 stores different data. The first capacitor C1 and the second capacitor C2 can store different data. Different data combinations stored in the two capacitors C2 are used to indicate different states of the content addressable memory.
示例性的,当第一电容C1的极化状态被配置为第二极板朝向第一极板、第二电容C2的极化状态被配置为第一极板朝向第二极板时,向存储单元MC写入第一逻辑值。Exemplarily, when the polarization state of the first capacitor C1 is configured such that the second plate faces the first plate, and the polarization state of the second capacitor C2 is configured such that the first plate faces the second plate, the storage Cell MC writes a first logic value.
当第一电容C1的极化状态被配置为第二极板朝向第一极板、第二电容C2的极化状态被配置为第二极板朝向第一极板时,向存储单元MC写入第一模糊状态。When the polarization state of the first capacitor C1 is configured such that the second plate faces the first plate, and the polarization state of the second capacitor C2 is configured such that the second plate faces the first plate, writing to the memory cell MC The first fuzzy state.
当第一电容C1的极化状态被配置为第一极板朝向第二极板、第二电容C2的极化状态被配置为第二极板朝向第一极板时,向存储单元MC写入第二逻辑值。When the polarization state of the first capacitor C1 is configured such that the first plate faces the second plate, and the polarization state of the second capacitor C2 is configured such that the second plate faces the first plate, writing to the memory cell MC Second logical value.
当第一电容C1的极化状态被配置为第一极板朝向第二极板、第二电容C2的极化状态被配置为第一极板朝向第二极板时,向存储单元MC写入第二模糊状态。When the polarization state of the first capacitor C1 is configured such that the first plate faces the second plate, and the polarization state of the second capacitor C2 is configured such that the first plate faces the second plate, writing to the memory cell MC Second fuzzy state.
例如,第一逻辑值可以为“0”,相应的第二逻辑值为“1”,第一模糊状态为“X0”,第二模糊状态为“X1”,或者,第一逻辑值为“1”,相应的第二逻辑值为“0”,第一模糊状态为“X1”,第二模糊状态为“X0”。For example, the first logical value may be "0", the corresponding second logical value is "1", the first fuzzy state is "X0", the second fuzzy state is "X1", or the first logical value is "1" ", the corresponding second logical value is "0", the first fuzzy state is "X1", and the second fuzzy state is "X0".
在一种可能的实现方式中,对应每一个存储单元设置有第一控制管Tw1、第二控制管Tw2,第一控制管Tw1、第二控制管Tw2的控制端连接控制线CL,第一控制管Tw1的第一端连接第一位线BL,第一控制管Tw1的第二端连接第一电容C1的第二极板;第二控制管Tw2的第一端连接第二位线BL!,第二控制管Tw2的第二端连接第二电容C2的第二极板。第一控制管Tw1用于控制第一电容C1的第二极板与第一位线BL1的导通状态,第二控制管Tw2用于控制第二电容C2的第二极板与第二位线BL2的导通状态,在这样的情况下,如图8所示,本申请实施例提供的数据写入方法还包 括:In a possible implementation, each storage unit is provided with a first control transistor Tw1 and a second control transistor Tw2, the control terminals of the first control transistor Tw1 and the second control transistor Tw2 are connected to the control line CL, and the first control The first end of the transistor Tw1 is connected to the first bit line BL, the second end of the first control transistor Tw1 is connected to the second plate of the first capacitor C1; the first end of the second control transistor Tw2 is connected to the second bit line BL! , the second end of the second control transistor Tw2 is connected to the second plate of the second capacitor C2. The first control transistor Tw1 is used to control the conduction state of the second plate of the first capacitor C1 and the first bit line BL1, and the second control transistor Tw2 is used to control the second plate of the second capacitor C2 and the second bit line The conduction state of BL2, in this case, as shown in Figure 8, the data writing method provided by the embodiment of the present application also includes:
S100:控制第一控制管、第二控制管导通。S100: Control the conduction of the first control tube and the second control tube.
第一控制管Tw1、第二控制管Tw2的控制端均与控制线CL连接,向控制线CL输出第四预设电压,当第一控制管Tw1、第二控制管Tw2的控制端电压为第四预设电压时,第一控制管Tw1、第二控制管Tw2处于导通状态,第一位线BL1通过第一控制管Tw1与第一电容C1的第二极板导通,第二位线BL!1通过第二控制管Tw2与第二电容C2的第二极板导通,进而可以配置第一电容C1、第二电容C2的极化状态,写入待写数据。The control terminals of the first control tube Tw1 and the second control tube Tw2 are both connected to the control line CL, and output a fourth preset voltage to the control line CL. When the voltage of the control terminals of the first control tube Tw1 and the second control tube Tw2 is the first At four preset voltages, the first control transistor Tw1 and the second control transistor Tw2 are in the conduction state, the first bit line BL1 conducts with the second plate of the first capacitor C1 through the first control transistor Tw1, and the second bit line BL! 1 Through the conduction between the second control transistor Tw2 and the second plate of the second capacitor C2, the polarization states of the first capacitor C1 and the second capacitor C2 can be configured, and data to be written can be written.
例如,图9提供了一种包括3行4列存储单元的内容寻址存储器,若向位于第二行的存储单元写入(1,0,1,1),即向位于第二行、第一列的存储单元写入“1”,向位于第二行、第二列的存储单元写入“0”,向第二行、第三列的存储单元写入“1”,向位于第二行、第四列的存储单元写入“1”。For example, FIG. 9 provides a content-addressable memory including 3 rows and 4 columns of memory cells. If (1, 0, 1, 1) is written to the memory cell located in the second row, the Write "1" to the memory cells in one column, write "0" to the memory cells in the second row and second column, write "1" to the memory cells in the second row and third column, and write "1" to the memory cells in the second row and column, "1" is written into the memory cells of the row and the fourth column.
向控制线CL2输出第四预设电压,控制第二行存储单元对应的第一控制管Tw1、第二控制管Tw2,将第二行存储单元与对应的第一位线BL、第二位线BL!导通。Output the fourth preset voltage to the control line CL2, control the first control transistor Tw1 and the second control transistor Tw2 corresponding to the second row of memory cells, and connect the second row of memory cells to the corresponding first bit line BL, second bit line BL! conduction.
然后向第一位线BL1输出第一写入电压(例如,-Vw),第二位线BL!1输出第二写入电压(例如,+Vw),将“1”写入位于第二行、第一列的存储单元;向第一位线BL2输出第一写入电压(例如,+Vw),第二位线BL!2输出第二写入电压(例如,-Vw),将“0”写入位于第二行、第二列的存储单元;向第一位线BL3输出第一写入电压(例如,-Vw),第二位线BL!3输出第二写入电压(例如,+Vw),将“1”写入位于第二行、第三列的存储单元;向第一位线BL4输出第一写入电压(例如,-Vw),第二位线BL!4输出第二写入电压(例如,+Vw),将“1”写入位于第二行、第四列的存储单元,从而完成数据的写入,由于其他存储单元对应的第一控制管Tw1、第二控制管Tw2处于关断状态,其他存储单元与第一位线BL、第二位线BL!处于断开状态,因此不会改写其他存储单元存储的数据。Then the first write voltage (for example, -Vw) is output to the first bit line BL1, and the second bit line BL! 1 Output the second write voltage (for example, +Vw), write "1" into the memory cell located in the second row and the first column; output the first write voltage (for example, +Vw) to the first bit line BL2 , the second bit line BL! 2 Output the second write voltage (for example, -Vw), write "0" into the memory cells located in the second row and second column; output the first write voltage (for example, -Vw) to the first bit line BL3 , the second bit line BL! 3 Output the second write voltage (for example, +Vw), write "1" into the memory cells located in the second row and third column; output the first write voltage (for example, -Vw) to the first bit line BL4 , the second bit line BL! 4 Output the second write voltage (for example, +Vw), and write "1" into the storage cells located in the second row and the fourth column, thereby completing the writing of data, because the first control transistor Tw1 corresponding to other storage cells , The second control transistor Tw2 is in the off state, and the other memory cells are connected to the first bit line BL and the second bit line BL! It is disconnected, so the data stored in other storage units will not be overwritten.
本申请的实施例还提供了一种数据处理方法,用于对本申请实施例提供的内容寻址存储器进行寻址,参阅图10,数据处理方法包括:The embodiment of the present application also provides a data processing method for addressing the content-addressable memory provided in the embodiment of the present application. Referring to FIG. 10, the data processing method includes:
S210:设置字线为第一预设电压,将匹配线预充至第二预设电压,其中第二预设电压与第一预设电压不同。S210: Set the word line to a first preset voltage, and precharge the match line to a second preset voltage, wherein the second preset voltage is different from the first preset voltage.
执行寻址操作时,将待寻址的存储单元对应的字线WL设置为第一预设电压,将待寻址的存储单元对应的匹配线ML预充至第二预设电压,第一预设电压与第二预设电压不同。When performing an addressing operation, the word line WL corresponding to the memory cell to be addressed is set to a first preset voltage, and the match line ML corresponding to the memory cell to be addressed is precharged to a second preset voltage. The set voltage is different from the second preset voltage.
S220:根据目标数据向第一位线或第二位线输出查找信号。S220: Outputting a search signal to the first bit line or the second bit line according to the target data.
依据目标数据(即key值)向第一位线BL或第二位线BL!输出查找信号,本申请实施例中每一行存储单元存储的数据组成一个表项,列向分布的存储单元即为各个表项中存储相同位数据的存储单元的集合,例如第一列存储单元,即第一个表项存储第一位数据的存储单元、第二个表项存储第一位数据的存储单元以至第m个表项存储第一位数据的存储单元。向第一位线或第二位线输出查找信号,即可对所有表项中位于该列存储单元所存储的一位数据进行查找匹配,向第一列存储单元对应的第一位线BL1或第二位线BL!1输出查找信号,即可依据key值对所有表项的第一位数据进行查 找匹配,向第二列存储单元对应的第一位线BL2或第二位线BL!2输出查找信号,即可依据key值对所有表项的第二位数据进行查找匹配,向第n列存储单元对应的第一位线BLn或第二位线BL!n输出查找信号,即可依据key值对所有表项的第n位数据进行查找匹配,从而可以同时对内容寻址存储器存储的所有数据进行查找匹配,查找的效率较高。Send data to the first bit line BL or the second bit line BL according to the target data (ie key value)! Output the search signal. In the embodiment of the present application, the data stored in each row of storage units constitutes an entry, and the storage units distributed in the column direction are the collection of storage units that store the same bit data in each entry, such as the first column of storage units. That is, the first entry stores the storage unit of the first bit of data, the second entry stores the storage unit of the first bit of data, and the mth entry stores the storage unit of the first bit of data. By outputting the search signal to the first bit line or the second bit line, the search and match can be performed on the one-bit data stored in the storage unit in the column in all table entries, and the first bit line BL1 or BL1 corresponding to the storage unit in the first column can be sent Second bit line BL! 1 Output the search signal, which can search and match the first bit data of all table entries according to the key value, and send to the first bit line BL2 or the second bit line BL corresponding to the second column of memory cells! 2 Outputting the search signal, the second bit data of all table entries can be searched and matched according to the key value, and sent to the first bit line BLn or the second bit line BL corresponding to the storage unit in the nth column! n outputs the search signal, which can search and match the nth bit data of all table entries according to the key value, so that all data stored in the content addressable memory can be searched and matched at the same time, and the search efficiency is high.
S230:若检测到目标存储单元所连接的匹配线的电压为第二预设电压,则确定目标存储单元中存储的数据与所述目标数据匹配。S230: If it is detected that the voltage of the matching line connected to the target storage unit is the second preset voltage, then determine that the data stored in the target storage unit matches the target data.
若检测到目标存储单元连接的匹配线ML的电压为第二预设电压,即该目标存储单元的晶体管T处于关断状态,在匹配线ML与字线WL之间仅有产生较小的电流,确定该目标存储单元存储的数据与目标数据匹配。If it is detected that the voltage of the match line ML connected to the target memory cell is the second preset voltage, that is, the transistor T of the target memory cell is in an off state, only a small current is generated between the match line ML and the word line WL , to determine that the data stored in the target storage unit matches the target data.
本申请实施例中一行存储单元存储的数据组成一个表项,当一个表项的每一位的数据均分别与key值匹配(或模糊匹配)时,在该行存储单元对应的字线WL与匹配线ML之间仅有较小Ids电流产生,该行所有的存储单元的晶体管T均不导通,字线WL维持第一预设电压,匹配线ML输出第二预设电压;当一个表项中存在至少一位的数据与key值不匹配时,该存储单元的晶体管T的第一端与第二端之间产生大Ids电流,晶体管T的第一端与第二端导通,匹配线ML与字线WL连通,匹配线ML的电压被字线ML改写为第一预设电压。在执行寻址操作时,向字线WL输出第一预设电压(例如,第一预设电压为0),将匹配线预充至第二预设电压(例如,第二预设电压为VDD),输出查找信号后,若某一行存储单元所对应的匹配线ML与字线WL之间读出较小的电流,匹配线ML输出第二预设电压,表明该行存储单元存储的数据组成的表项与key匹配,该行存储单元的地址即为目标地址。若某一行存储单元所对应的匹配线ML与字线WL之间读出较大的电流,匹配线ML输出第一预设电压,表明该行存储单元存储的数据组成的表项与key不匹配。In the embodiment of the present application, the data stored in a row of storage units constitutes an entry. When the data of each bit of an entry matches (or fuzzily matches) the key value, the word line WL corresponding to the row of storage units and Only a small Ids current is generated between the matching lines ML, the transistors T of all the memory cells in the row are not turned on, the word line WL maintains the first preset voltage, and the matching line ML outputs the second preset voltage; when a table When there is at least one bit of data in the item that does not match the key value, a large Ids current is generated between the first terminal and the second terminal of the transistor T of the storage unit, and the first terminal and the second terminal of the transistor T are turned on, matching The line ML communicates with the word line WL, and the voltage of the match line ML is rewritten to a first preset voltage by the word line ML. When performing an addressing operation, a first preset voltage (for example, the first preset voltage is 0) is output to the word line WL, and the match line is precharged to a second preset voltage (for example, the second preset voltage is VDD ), after the search signal is output, if a relatively small current is read between the match line ML and the word line WL corresponding to a certain row of memory cells, the match line ML outputs a second preset voltage, indicating that the data stored in the row of memory cells consists of The table entry of matches the key, and the address of the storage unit in this row is the target address. If a relatively large current is read between the match line ML and the word line WL corresponding to a certain row of memory cells, the match line ML outputs the first preset voltage, indicating that the entry of the data stored in the row of memory cells does not match the key .
如图11所示,图11示出了本申请实施例提供的数据处理方法的寻址示意图,按照key值对每一位的数据进行查找匹配,当某一个表项的每一位的数据均与key值匹配(或模糊匹配)时,确定该表项的数据与key值匹配,存储该表项的存储单元的地址即为目标地址。As shown in Figure 11, Figure 11 shows a schematic addressing schematic diagram of the data processing method provided by the embodiment of the present application. According to the key value, each bit of data is searched and matched. When the data of each bit of a certain entry is When matching (or fuzzy matching) with the key value, it is determined that the data of the entry matches the key value, and the address of the storage unit storing the entry is the target address.
在一种可能的实现方式中,上述第一电容C1、第二电容C2为铁电电容,本申请实施例提供的内容寻址存储器当第一电容C1的极化状态为第二极板朝向第一极板,第二电容C2的极化状态为第一极板朝向第二极板,存储第一逻辑值;当第一电容C1的极化状态为第二极板朝向第一极板,第二电容C2的极化状态为第二极板朝向第一极板,存储第一模糊状态;当第一电容C1的极化状态为第一极板朝向第二极板,第二电容C2的极化状态为第二极板朝向第一极板,存储第二逻辑值;当第一电容C1的极化状态为第一极板朝向第二极板,第二电容C2的极化状态为第一极板朝向第二极板,存储第二模糊状态。在这样的情况下,步骤S220:根据目标数据向第一位线或第二位线输出查找信号包括:In a possible implementation manner, the above-mentioned first capacitor C1 and second capacitor C2 are ferroelectric capacitors. In the content addressable memory provided in the embodiment of the present application, when the polarization state of the first capacitor C1 is that the second plate faces the first One plate, the polarization state of the second capacitor C2 is that the first plate faces the second plate, and stores the first logic value; when the polarization state of the first capacitor C1 is that the second plate faces the first plate, the second The polarization state of the second capacitor C2 is that the second pole plate faces the first pole plate, and stores the first fuzzy state; when the polarization state of the first capacitor C1 is that the first pole plate faces the second pole plate, the pole of the second capacitor C2 The polarization state is that the second pole plate faces the first pole plate, and stores the second logic value; when the polarization state of the first capacitor C1 is that the first pole plate faces the second pole plate, the polarization state of the second capacitor C2 is the first The plate faces the second plate, storing the second hazy state. In this case, step S220: outputting the search signal to the first bit line or the second bit line according to the target data includes:
S220a:当目标数据为第一逻辑值时,第一位线悬空,向第二位线输出查找信号。S220a: When the target data is the first logic value, the first bit line is suspended, and a search signal is output to the second bit line.
S220b:当目标数据为第二逻辑值时,向第一位线输出查找信号,第二位线悬空。S220b: When the target data is the second logic value, output a search signal to the first bit line, and suspend the second bit line.
例如,在一种可能的实现方式中,第一逻辑值为“0”,相应的,第二逻辑值为“1” 根据目标数据(key)向第一位线BL或第二位线BL!输出查找信号。如前文中表6所示,当key值为“0”,向第一位线BL输出查找信号Vr,第二位线BL!悬空,当key值为“1”,向第二位线BL!输出查找信号Vr,第一位线BL悬空。For example, in a possible implementation manner, the first logic value is "0", and correspondingly, the second logic value is "1" according to the target data (key) to the first bit line BL or the second bit line BL! Output search signal. As shown in Table 6 above, when the key value is "0", the search signal Vr is output to the first bit line BL, and the second bit line BL! Floating, when the key value is "1", to the second bit line BL! The search signal Vr is output, and the first bit line BL is suspended.
基于图7或图9所示出的存储单元阵列,存储单元MC通过第一控制管与第一位线BL连接,存储单元MC通过第二控制管与第二位线BL!连接,为了确保第一位线BL、第二位线BL!上的查找电压能够施加到每一个存储单元MC上,参阅图12,在S220之前,数据处理方法还包括:Based on the memory cell array shown in FIG. 7 or FIG. 9, the memory cell MC is connected to the first bit line BL through the first control transistor, and the memory cell MC is connected to the second bit line BL through the second control transistor! Connection, in order to ensure the first bit line BL, the second bit line BL! The search voltage on can be applied to each memory cell MC, referring to FIG. 12, before S220, the data processing method also includes:
S200:控制第一控制管、第二控制管导通。S200: Control the conduction of the first control tube and the second control tube.
例如,可以向控制线输出第四预设电压,当控制线电压为第四预设电压时,第一控制管、第二控制管处于导通状态。For example, a fourth preset voltage may be output to the control line, and when the voltage of the control line is the fourth preset voltage, the first control transistor and the second control transistor are in a conduction state.
S200与S210可以同时执行,也可以任意一项在先执行。S200 and S210 may be executed at the same time, or any one may be executed first.
上述主要从方法步骤的角度对本申请实施例提供的方案进行了介绍。可以理解的是,计算机为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的模块及算法步骤,本申请能够以硬件和计算机软件的结合形式来实现。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The foregoing mainly introduces the solutions provided by the embodiments of the present application from the perspective of method steps. It can be understood that, in order to realize the above functions, the computer includes hardware structures and/or software modules corresponding to each function. Those skilled in the art should easily realize that, in combination with the modules and algorithm steps of the examples described in the embodiments disclosed herein, the present application can be implemented in the form of a combination of hardware and computer software. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
本申请实施例还可以根据上述方法示例对数据处理装置进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。在采用对应各个功能划分各个功能模块的情况下,图13示出了一种数据处理装置300,该数据处理装置300可以为芯片,用于执行上文中的数据写入方法与数据处理方法。该数据处理装置300包括:In the embodiment of the present application, the functional modules of the data processing device may be divided according to the above method example. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. It should be noted that the division of modules in the embodiment of the present application is schematic, and is only a logical function division, and there may be other division methods in actual implementation. In the case of dividing each functional module corresponding to each function, FIG. 13 shows a data processing device 300, which may be a chip, and is used to execute the above data writing method and data processing method. The data processing device 300 includes:
数据写入单元310,用于向第一位线输出第一写入电压,向第二位线输出第二写入电压,以向存储单元写入待写数据。The data writing unit 310 is configured to output a first writing voltage to the first bit line, and output a second writing voltage to the second bit line, so as to write data to be written into the memory cell.
结合图8,数据写入单元310可以用于执行S110。Referring to FIG. 8 , the data writing unit 310 may be used to execute S110.
在一种在可能的实现方式中,内容寻址存储器对应每一个存储单元设置有第一控制管与第二控制管,第一控制管设置于第一电容的第二极板与第一位线之间,第二控制管设置于第二电容的第二极板与第二位线之间,在这样的情况下,内容寻址存储器还包括写入控制单元320,写入控制单元320用于控制第一控制管、第二控制管导通,以通过第一位线、第二位线向存储单元写入数据。In a possible implementation manner, the content addressable memory is provided with a first control transistor and a second control transistor corresponding to each storage unit, and the first control transistor is arranged on the second plate of the first capacitor and the first bit line Between, the second control transistor is arranged between the second plate of the second capacitor and the second bit line, in this case, the content addressable memory also includes a write control unit 320, the write control unit 320 is used to The first control transistor and the second control transistor are controlled to be turned on, so as to write data into the memory cell through the first bit line and the second bit line.
结合图8,写入控制单元320可以用于执行S100。Referring to FIG. 8 , the writing control unit 320 may be used to execute S100 .
可选的,数据处理装置300还包括寻址单元330,寻址单元330用于设置字线WL为第一预设电压,将匹配线ML预充至第二预设电压,其中第二预设电压与第一预设电压不同,寻址单元330还用于设置控制线CL为第四预设电压,以控制第一控制管、第二控制管导通;寻址单元330还用于根据目标数据向第一位线BL或第二位线BL!输出查找信号,若检测到目标存储单元所连接的匹配线的电压为所述第二预设电压,则确定所述目标存储单元中存储的数据与所述目标数据匹配。Optionally, the data processing device 300 further includes an addressing unit 330, the addressing unit 330 is configured to set the word line WL to a first preset voltage, and precharge the match line ML to a second preset voltage, wherein the second preset The voltage is different from the first preset voltage, and the addressing unit 330 is also used to set the control line CL to the fourth preset voltage to control the conduction of the first control transistor and the second control transistor; the addressing unit 330 is also used to Data to the first bit line BL or the second bit line BL! Outputting a search signal, if it is detected that the voltage of the matching line connected to the target storage unit is the second preset voltage, then it is determined that the data stored in the target storage unit matches the target data.
结合图10、图12,寻址单元330可以用于执行S200、S210、S220、S230。Referring to FIG. 10 and FIG. 12 , the addressing unit 330 can be used to execute S200 , S210 , S220 , and S230 .
本申请给出了制得本申请实施例提供的存储单元结构的具体制造方法,下述结合附图对其进行详细解释。The present application provides a specific manufacturing method for manufacturing the memory cell structure provided by the embodiment of the present application, which will be explained in detail below in conjunction with the accompanying drawings.
图14是本申请给出的内容寻址存储器的制作方法流程框图,具体包括如下:Fig. 14 is a block diagram of a method for making a content addressable memory provided by the present application, which specifically includes the following:
S410:在衬底上形成晶体管,晶体管包括控制端、第一端与第二端。S410: Forming a transistor on the substrate, where the transistor includes a control terminal, a first terminal and a second terminal.
S420:在晶体管上形成第一电容与第二电容,第一电容包括第一极板与第二极板,第二电容包括第一极板与第二极板,第一电容的第一极板、第二电容的第一极板与晶体管的控制端电连接。S420: Form a first capacitor and a second capacitor on the transistor, the first capacitor includes a first plate and a second plate, the second capacitor includes a first plate and a second plate, the first plate of the first capacitor , the first plate of the second capacitor is electrically connected to the control terminal of the transistor.
下面结合附图对上述S410和S420所涉及的具体工艺流程进行介绍。The specific process flow involved in the above-mentioned S410 and S420 will be introduced below with reference to the accompanying drawings.
图15a至图15n给出了制造本申请涉及的一种存储单元的工艺过程中每一步骤完成后的工艺结构剖面图。15a to 15n show cross-sectional views of the process structure after each step in the process of manufacturing a memory cell involved in the present application.
如图15a,沿着与衬底相垂直的方向,在衬底上方依次形成第一金属层001、第一隔离介质层002和第二金属层003。As shown in FIG. 15 a , along a direction perpendicular to the substrate, a first metal layer 001 , a first isolation dielectric layer 002 and a second metal layer 003 are sequentially formed above the substrate.
其中衬底为半导体衬底,例如可以选用锗、硅、锗硅或者其他三五族化合物等材料制成。The substrate is a semiconductor substrate, which can be made of materials such as germanium, silicon, silicon germanium, or other III-V compounds.
这里的第一金属层001和第二金属层003可以选择金属材料,比如,可以是Au(金)、Ti(钛)、W(钨)、Mo(钼)、In-Ti-O(ITO,氧化铟锡)、Al(铝)、Cu(铜)、Ru(钌)、Ag(银)等导电材料中的一种或多种。The first metal layer 001 and the second metal layer 003 here can choose metal materials, such as Au (gold), Ti (titanium), W (tungsten), Mo (molybdenum), In-Ti-O (ITO, One or more of conductive materials such as indium tin oxide), Al (aluminum), Cu (copper), Ru (ruthenium), and Ag (silver).
这里的第一隔离介质层002可以采用绝缘材料,例如选择SiO2(二氧化硅)、Al2O3(氧化铝)、HfO2(二氧化铪)、ZrO2(氧化锆)、TiO2(二氧化钛)、Y2O3(三氧化二钇)和Si3N4(氮化硅)等绝缘材料中的一种或多种。The first isolation dielectric layer 002 here can be made of insulating materials, such as SiO2 (silicon dioxide), Al2O3 (aluminum oxide), HfO2 (hafnium dioxide), ZrO2 (zirconia), TiO2 (titanium dioxide), Y2O3 (trioxide One or more of insulating materials such as diyttrium) and Si3N4 (silicon nitride).
如图15b,在堆叠的第一金属层001、第一隔离介质层002和第二金属层003内开设第一槽004,该第一槽004穿过第二金属层003与第一隔离介质层002,贯通了第一金属层001的部分,也就是说,该第一槽004只贯穿了第二金属层003与第一隔离介质层002,并未贯穿第一金属层001。As shown in Figure 15b, a first groove 004 is opened in the stacked first metal layer 001, first isolation dielectric layer 002 and second metal layer 003, and the first groove 004 passes through the second metal layer 003 and the first isolation dielectric layer 002 , the part that penetrates the first metal layer 001 , that is, the first groove 004 only penetrates the second metal layer 003 and the first isolation dielectric layer 002 , but does not penetrate the first metal layer 001 .
如图15c,在第一槽004与衬底垂直的侧面形成第一沟道材料层005,这里的第一沟道材料层005可以为Si(硅)、poly-Si(p-Si,多晶硅)、amorphous-Si(a-Si,非晶硅)、In-Ga-Zn-O(IGZO,铟镓锌氧化物)多元化合物、ZnO(氧化锌)、ITO(氧化铟锡)、TiO2(二氧化钛)、MoS2(二硫化钼)、WS2(二硫化钨)等半导体沟道材料中的一种或多种。As shown in Figure 15c, a first channel material layer 005 is formed on the side of the first groove 004 perpendicular to the substrate, where the first channel material layer 005 can be Si (silicon), poly-Si (p-Si, polysilicon) , amorphous-Si (a-Si, amorphous silicon), In-Ga-Zn-O (IGZO, indium gallium zinc oxide) multi-component compound, ZnO (zinc oxide), ITO (indium tin oxide), TiO2 (titanium dioxide) , MoS2 (molybdenum disulfide), WS2 (tungsten disulfide) and other semiconductor channel materials or one or more.
在一种可能的实现方式中,可以先在图15b所示的堆叠结构上外延半导体沟道材料,形成如图15d所示的结构,再通过干法刻蚀等工艺,将位于顶部第二金属层003上方以及第一槽004结构内底部的半导体沟道材料刻蚀掉,留下第一槽004内部的部分半导体沟道材料,形成如图15c所示的第一沟道材料层005。In a possible implementation, the semiconductor channel material can be epitaxially formed on the stacked structure shown in Figure 15b to form the structure shown in Figure 15d, and then through dry etching and other processes, the second metal on the top The semiconductor channel material above the layer 003 and at the bottom of the structure of the first trench 004 is etched away, leaving part of the semiconductor channel material inside the first trench 004 to form the first channel material layer 005 as shown in FIG. 15c.
如图15e,在第一金属层001、第二金属层003以及第一沟道材料层005的表面形成栅氧介质层006。As shown in FIG. 15e , a gate oxide dielectric layer 006 is formed on the surfaces of the first metal layer 001 , the second metal layer 003 and the first channel material layer 005 .
栅氧介质层006可以采用SiO2(二氧化硅)、Al2O3(氧化铝)、HfO2(二氧化铪)、ZrO2(氧化锆)、TiO2(二氧化钛)、Y2O3(三氧化二钇)和Si3N4(氮化硅)、高介电材料等绝缘材料中的一种或多种。The gate oxide dielectric layer 006 can be made of SiO2 (silicon dioxide), Al2O3 (aluminum oxide), HfO2 (hafnium dioxide), ZrO2 (zirconia), TiO2 (titanium dioxide), Y2O3 (yttrium trioxide) and Si3N4 (nitride One or more of insulating materials such as silicon) and high dielectric materials.
如图15f,在第一槽004的剩余空间内形成第三金属层007,形成晶体管,第三金属层007的顶面与第二金属层003、栅氧介质层006的顶面齐平。As shown in Fig. 15f, a third metal layer 007 is formed in the remaining space of the first groove 004 to form a transistor, and the top surface of the third metal layer 007 is flush with the top surfaces of the second metal layer 003 and the gate oxide dielectric layer 006.
这里的第三金属层007可选择的材料可以参照上述的第一金属层001和第二金属层003,在此不再赘述。The optional materials of the third metal layer 007 here can refer to the above-mentioned first metal layer 001 and second metal layer 003 , which will not be repeated here.
在一种可能的实现方式中,可以在图15e所示的结构上外延金属材料形成如图15g所示的结构,再进行平坦化处理,形成第三金属层007,使第三金属层007的顶面与第二金属层003、栅氧介质层006的顶面齐平。In a possible implementation manner, the epitaxial metal material can be formed on the structure shown in FIG. 15e to form the structure shown in FIG. The top surface is flush with the top surfaces of the second metal layer 003 and the gate oxide dielectric layer 006 .
其中第一金属层001可以作为晶体管的第一端或第二端,第二金属层003可以作为晶体管的第二端或第一端,第三金属层007可以作为晶体管的控制端。The first metal layer 001 can be used as the first terminal or the second terminal of the transistor, the second metal layer 003 can be used as the second terminal or the first terminal of the transistor, and the third metal layer 007 can be used as the control terminal of the transistor.
示例性的,参阅图15f,第一金属层001作为晶体管的第一端,第二金属层003作为晶体管的第二端,第三金属层007可以作为晶体管的控制端,第二金属层003具有与衬底垂直的第一侧面0031,第一沟道材料层005与第三金属层007(即晶体管的控制端)设置在第二金属层003的第一侧面0031所朝向的一侧,第一沟道材料层005沿与衬底垂直的方向设置,这样可以减小晶体管占用的体积。Exemplarily, referring to FIG. 15f, the first metal layer 001 is used as the first terminal of the transistor, the second metal layer 003 is used as the second terminal of the transistor, the third metal layer 007 can be used as the control terminal of the transistor, and the second metal layer 003 has The first side 0031 perpendicular to the substrate, the first channel material layer 005 and the third metal layer 007 (that is, the control terminal of the transistor) are arranged on the side facing the first side 0031 of the second metal layer 003, the first The channel material layer 005 is arranged along a direction perpendicular to the substrate, so that the volume occupied by the transistor can be reduced.
如图15h,在第一沟道材料层005、栅氧介质层006、第三金属层007与第二金属层003的表面上形成第二隔离介质层008。As shown in FIG. 15h , a second isolation dielectric layer 008 is formed on the surfaces of the first channel material layer 005 , the gate oxide dielectric layer 006 , the third metal layer 007 and the second metal layer 003 .
这里的第二隔离介质层008可选择的材料可以参照上述的第一隔离介质层002,在此不再赘述。Here, the optional material of the second isolation dielectric layer 008 can refer to the above-mentioned first isolation dielectric layer 002 , which will not be repeated here.
如图15i,在第二隔离介质层008上对应第三金属层007的位置开设第二槽009。第二槽009贯穿第二隔离介质层008,第三金属层007的表面可以通过第二槽009显露。As shown in FIG. 15i , a second groove 009 is formed on the second isolation dielectric layer 008 at a position corresponding to the third metal layer 007 . The second groove 009 runs through the second isolation dielectric layer 008 , and the surface of the third metal layer 007 can be exposed through the second groove 009 .
如图15j,沿第二隔离介质层008、第三金属层007的表面沉积形成第四金属层010,第四金属层010形成第三槽011。第四金属层010与第三金属层007电连接。第四金属层010包括第一电容的第一极板与第二电容的第一极板,例如第四金属层010的一部分可以作为第一电容的第一极板,另一部分可以作为第二电容的第一极板。As shown in FIG. 15j , a fourth metal layer 010 is deposited along the surfaces of the second isolation dielectric layer 008 and the third metal layer 007 , and the fourth metal layer 010 forms a third groove 011 . The fourth metal layer 010 is electrically connected to the third metal layer 007 . The fourth metal layer 010 includes the first plate of the first capacitor and the first plate of the second capacitor. For example, a part of the fourth metal layer 010 can be used as the first plate of the first capacitor, and another part can be used as the second capacitor. the first plate.
如图15k,在第四金属层010形成的第三槽011内形成第三隔离介质层012。As shown in FIG. 15k , a third isolation dielectric layer 012 is formed in the third groove 011 formed in the fourth metal layer 010 .
这里的第三隔离介质层012可选择的材料可以参照上述的第一隔离介质层002,在此不再赘述。Here, the optional material of the third isolation dielectric layer 012 can refer to the above-mentioned first isolation dielectric layer 002 , which will not be repeated here.
对第三隔离介质层012进行平坦化处理,使第三隔离介质层012的顶面与第四金属层010的顶面齐平。The third isolation dielectric layer 012 is planarized so that the top surface of the third isolation dielectric layer 012 is flush with the top surface of the fourth metal layer 010 .
如图15l,在第四金属层010、第三隔离介质层012上依次堆叠铁电材料层013和第五金属层014。As shown in FIG. 151 , a ferroelectric material layer 013 and a fifth metal layer 014 are sequentially stacked on the fourth metal layer 010 and the third isolation dielectric layer 012 .
示例性的,上述步骤以制作铁电电容为例进行说明,若制作其他介电材料的电容,则铁电材料层013应替换为其他的介电材料层。Exemplarily, the above steps are described by taking the fabrication of ferroelectric capacitors as an example. If capacitors of other dielectric materials are fabricated, the ferroelectric material layer 013 should be replaced with other dielectric material layers.
如图15m,在铁电材料层013和第五金属层014上开设第四槽015,第四槽015将铁电材料层013、第五金属层014形成的结构分隔为沿与衬底平行方向上互不接触的两部分,其中,第五金属层014被分隔为第一电容的第二极板014a与第二电容的第二极板014b,铁电材料层013被分隔为第一电容的第一铁电材料层013a与第二电容的第二铁电材料层013b。As shown in Figure 15m, a fourth groove 015 is opened on the ferroelectric material layer 013 and the fifth metal layer 014, and the fourth groove 015 separates the structure formed by the ferroelectric material layer 013 and the fifth metal layer 014 into a direction parallel to the substrate. Two parts that are not in contact with each other, wherein the fifth metal layer 014 is separated into the second plate 014a of the first capacitor and the second plate 014b of the second capacitor, and the ferroelectric material layer 013 is separated into the second plate 014b of the first capacitor. The first ferroelectric material layer 013a and the second ferroelectric material layer 013b of the second capacitor.
如图15n,在第四槽015内形成第四隔离介质层016,形成第一电容与第二电容。As shown in FIG. 15n, a fourth isolation dielectric layer 016 is formed in the fourth groove 015 to form the first capacitor and the second capacitor.
这里的第四隔离介质层016可选择的材料可以参照上述的第一隔离介质层002,在此不再赘述。Here, the optional material of the fourth isolation dielectric layer 016 can refer to the above-mentioned first isolation dielectric layer 002 , which will not be repeated here.
其中,第四金属层010中与第一电容的第二极板014a对应的部分作为第一电容的第一极板,第四金属层010中与第二电容的第二极板014b对应的部分作为第二电容的第二极板,第四金属层010与第三金属层007连接,即第一电容的第一极板、第二电容的第二极板与晶体管的控制端连接。Wherein, the part of the fourth metal layer 010 corresponding to the second plate 014a of the first capacitor is used as the first plate of the first capacitor, and the part of the fourth metal layer 010 corresponding to the second plate 014b of the second capacitor As the second plate of the second capacitor, the fourth metal layer 010 is connected to the third metal layer 007, that is, the first plate of the first capacitor and the second plate of the second capacitor are connected to the control terminal of the transistor.
上述给出了制备存储单元的相对应的方法,当然,在另外一些可选择的实施方式中,也可以采用其他方法制备本申请涉及的存储单元的结构。The corresponding method for preparing the storage unit is given above, of course, in some other optional implementation manners, other methods may also be used to prepare the structure of the storage unit involved in the present application.
本申请实施例还提供了一种电子设备,电子设备包括电路板及如本申请实施例提供的内容寻址存储器,内容寻址存储器设置在电路板上。如图16所示为本申请实施例提供的一种电子设备的结构示意图。电子设备500包括通信接口510、处理器520、存储器530和总线540。其中,通信接口510、处理器520、存储器530通过总线540互相通信。存储器530包括第一存储器531和第二存储器532,该第二存储器532具体可以为本申请实施例提供的内容寻址存储器。The embodiment of the present application also provides an electronic device, the electronic device includes a circuit board and the content addressable memory as provided in the embodiment of the present application, and the content addressable memory is arranged on the circuit board. FIG. 16 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. The electronic device 500 includes a communication interface 510 , a processor 520 , a memory 530 and a bus 540 . Wherein, the communication interface 510 , the processor 520 , and the memory 530 communicate with each other through the bus 540 . The memory 530 includes a first memory 531 and a second memory 532, and the second memory 532 may specifically be a content addressable memory provided in this embodiment of the present application.
其中,电子设备500通过通信接口510与其他设备之间互相通信。例如:电子设备500通过通信接口510接收其他设备发送的报文或向其他设备发送报文。示例性的,通信接口510包括入口媒体访问控制(media access control,MAC)芯片和出口MAC芯片。电子设备500可通过入口MAC芯片接收报文,并通过出口MAC芯片发送报文。Wherein, the electronic device 500 communicates with other devices through the communication interface 510 . For example: the electronic device 500 receives messages sent by other devices through the communication interface 510 or sends messages to other devices. Exemplarily, the communication interface 510 includes an ingress media access control (media access control, MAC) chip and an egress MAC chip. The electronic device 500 can receive packets through the ingress MAC chip, and send packets through the egress MAC chip.
处理器520可能是一个中央处理器(central processing unit,CPU),或者是特定集成电路(application specific integrated circuit,ASIC),或者是被配置成实施本申请实施例的一个或多个集成电路。处理器520用于执行第一存储器531中存储的可执行程序代码,例如计算机程序来运行与可执行代码对应的程序。The processor 520 may be a central processing unit (central processing unit, CPU), or a specific integrated circuit (application specific integrated circuit, ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The processor 520 is configured to execute executable program codes stored in the first memory 531 , such as computer programs to run programs corresponding to the executable codes.
第一存储器531用于存储可执行程序代码,该程序代码包括计算机操作指令。第一存储器531可能包含高速随机存取存储器(random access memory,RAM)存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。The first memory 531 is used for storing executable program codes, and the program codes include computer operation instructions. The first memory 531 may include a high-speed random access memory (random access memory, RAM) memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
第二存储器532可以为本申请实施例提供的内容寻址存储器。The second memory 532 may be a content addressable memory provided in this embodiment of the present application.
总线540可以是工业标准体系结构(industry standard architecture,ISA)总线、外部设备互连(peripheral component,PCI)总线或扩展工业标准体系结构(extendedindustry standard architecture,EISA)总线等。该总线540可以分为地址总线、数据总线、控制总线等。为便于表示,图16中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The bus 540 may be an industry standard architecture (industry standard architecture, ISA) bus, a peripheral component interconnection (peripheral component, PCI) bus, or an extended industry standard architecture (extended industry standard architecture, EISA) bus, etc. The bus 540 can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 16 , but it does not mean that there is only one bus or one type of bus.
在本说明书的描述中,具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, specific features, structures, materials or characteristics may be combined in any one or more embodiments or examples in an appropriate manner.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the application. Should be covered within the protection scope of this application. Therefore, the protection scope of the present application should be determined by the protection scope of the claims.

Claims (14)

  1. 一种内容寻址存储器,其特征在于,所述内容寻址存储器包括m行n列存储单元,m与n为大于或等于1的整数,每个所述存储单元包括晶体管、第一电容与第二电容;A content-addressable memory, characterized in that the content-addressable memory comprises m rows and n columns of memory cells, m and n are integers greater than or equal to 1, and each of the memory cells includes a transistor, a first capacitor and a first capacitor Two capacitors;
    所述晶体管的控制端与所述第一电容的第一极板、第二电容的第一极板连接,所述晶体管的第一端连接字线,所述晶体管的第二端连接匹配线,所述第一电容的第二极板连接第一位线,所述第二电容的第二极板连接第二位线。The control end of the transistor is connected to the first plate of the first capacitor and the first plate of the second capacitor, the first end of the transistor is connected to the word line, and the second end of the transistor is connected to the match line, The second plate of the first capacitor is connected to the first bit line, and the second plate of the second capacitor is connected to the second bit line.
  2. 根据权利要求1所述的内容寻址存储器,其特征在于,位于同一行的存储单元连接同一条字线,位于同一行的存储单元连接同一条匹配线。The content addressable memory according to claim 1, wherein the memory cells in the same row are connected to the same word line, and the memory cells in the same row are connected to the same match line.
  3. 根据权利要求1~2任一项所述的内容寻址存储器,其特征在于,位于同一列的存储单元连接同一条第一位线,位于同一列的存储单元连接同一条第二位线。The content addressable memory according to any one of claims 1-2, characterized in that the memory cells located in the same column are connected to the same first bit line, and the memory cells located in the same column are connected to the same second bit line.
  4. 根据权利要求1~3任一项所述的内容寻址存储器,其特征在于,所述内容寻址存储器还包括多个第一控制管与多个第二控制管,每个所述存储单元对应设置一个所述第一控制管与一个所述第二控制管,所述第一控制管的控制端、所述第二控制管的控制端连接控制线;The content-addressable memory according to any one of claims 1-3, wherein the content-addressable memory further comprises a plurality of first control pipes and a plurality of second control pipes, and each of the storage units corresponds to One first control tube and one second control tube are provided, the control end of the first control tube and the control end of the second control tube are connected to a control line;
    所述第一控制管的第一端连接所述第一位线,所述第一控制管的第二端连接所述第一电容的第二极板;The first end of the first control transistor is connected to the first bit line, and the second end of the first control transistor is connected to the second plate of the first capacitor;
    所述第二控制管的第一端连接所述第二位线,所述第二控制管的第二端连接所述第二电容的第二极板。A first end of the second control transistor is connected to the second bit line, and a second end of the second control transistor is connected to the second plate of the second capacitor.
  5. 根据权利要求1~3任一项所述的内容寻址存储器,其特征在于,所述第一电容、所述第二电容的为铁电电容。The content-addressable memory according to any one of claims 1-3, wherein the first capacitor and the second capacitor are ferroelectric capacitors.
  6. 据权利要求1~5任一项所述的内容寻址存储器,其特征在于,所述晶体管为竖直沟道结构的晶体管。The content-addressable memory according to any one of claims 1-5, wherein the transistor is a transistor with a vertical channel structure.
  7. 一种应用于内容寻址存储器的数据处理方法,所述内容寻址存储器包括m行n列存储单元,m与n为大于或等于1的整数,存储单元包括晶体管、第一电容与第二电容,所述晶体管的控制端与所述第一电容的第一极板、第二电容的第一极板连接,所述晶体管的第一端连接字线,所述晶体管的第二端连接匹配线,所述第一电容的第二极板连接第一位线,所述第二电容的第二极板连接第二位线,其特征在于,所述方法包括:A data processing method applied to a content-addressable memory, the content-addressable memory includes m rows and n columns of memory cells, m and n are integers greater than or equal to 1, and the memory cells include transistors, first capacitors, and second capacitors , the control end of the transistor is connected to the first plate of the first capacitor and the first plate of the second capacitor, the first end of the transistor is connected to the word line, and the second end of the transistor is connected to the match line , the second plate of the first capacitor is connected to the first bit line, and the second plate of the second capacitor is connected to the second bit line, wherein the method includes:
    设置字线为第一预设电压,将匹配线预充至第二预设电压,其中所述第二预设电压与所述第一预设电压不同;setting the word line to a first preset voltage, and precharging the match line to a second preset voltage, wherein the second preset voltage is different from the first preset voltage;
    根据目标数据向第一位线或第二位线输出查找信号;outputting a search signal to the first bit line or the second bit line according to the target data;
    若检测到目标存储单元所连接的匹配线的电压为所述第二预设电压,则确定所述目标存储单元中存储的数据与所述目标数据匹配。If it is detected that the voltage of the matching line connected to the target storage unit is the second preset voltage, it is determined that the data stored in the target storage unit matches the target data.
  8. 根据权利要求7所述的数据处理方法,其特征在于,所述第一电容、所述第二电容为铁电电容,当所述第一电容的极化状态被配置为第二极板朝向第一极板、所述第二电容的极化状态为第一极板朝向第二极板时,所述内容寻址存储器的存储单元存储第一逻辑值;The data processing method according to claim 7, wherein the first capacitor and the second capacitor are ferroelectric capacitors, and when the polarization state of the first capacitor is configured such that the second plate faces the first When the polarized state of a polar plate and the second capacitor is that the first polar plate faces the second polar plate, the storage unit of the content addressable memory stores a first logic value;
    当第一电容的极化状态被配置为第二极板朝向第一极板、第二电容的极化状态为 第二极板朝向第一极板时,存储第一模糊状态;When the polarization state of the first capacitor is configured such that the second plate faces the first plate, and the polarization state of the second capacitor is that the second plate faces the first plate, the first fuzzy state is stored;
    当第一电容的极化状态被配置为第一极板朝向第二极板、第二电容的极化状态为第二极板朝向第一极板时,存储第二逻辑值;When the polarization state of the first capacitor is configured such that the first plate faces the second plate and the polarization state of the second capacitor is configured such that the second plate faces the first plate, storing a second logic value;
    当第一电容的极化状态被配置为第一极板朝向第二极板、第二电容的极化状态为第一极板朝向第二极板,存储第二模糊状态;When the polarization state of the first capacitor is configured such that the first polar plate faces the second polar plate, and the polarization state of the second capacitor is configured such that the first polar plate faces the second polar plate, storing the second fuzzy state;
    所述根据目标数据向第一位线或第二位线输出查找信号包括:The outputting the search signal to the first bit line or the second bit line according to the target data includes:
    当所述目标数据为所述第一逻辑值时,所述第一位线悬空,向所述第二位线输出所述查找信号;When the target data is the first logic value, the first bit line is suspended, and the search signal is output to the second bit line;
    当所述目标数据为所述第二逻辑值时,向所述第一位线输出所述查找信号,所述第二位线悬空。When the target data is the second logic value, the search signal is output to the first bit line, and the second bit line is suspended.
  9. 一种应用于内容寻址存储器的数据写入方法,所述内容寻址存储器包括m行n列存储单元,m与n为大于或等于1的整数,存储单元包括晶体管、第一电容与第二电容,所述晶体管的控制端与所述第一电容的第一极板、第二电容的第一极板连接,所述晶体管的第一端连接字线,所述晶体管的第二端连接匹配线,所述第一电容的第二极板连接第一位线,所述第二电容的第二极板连接第二位线,其特征在于,所述方法包括:A data writing method applied to a content-addressable memory, the content-addressable memory includes m rows and n columns of memory cells, m and n are integers greater than or equal to 1, and the memory cells include transistors, first capacitors, and second Capacitor, the control end of the transistor is connected to the first plate of the first capacitor and the first plate of the second capacitor, the first end of the transistor is connected to the word line, and the second end of the transistor is connected to the matching line, the second plate of the first capacitor is connected to the first bit line, and the second plate of the second capacitor is connected to the second bit line, wherein the method includes:
    向第一位线输出第一写入电压,向第二位线输出第二写入电压,以向所述存储单元写入待写数据,其中,所述第一写入电压用于配置所述第一电容的极化状态,所述第二写入电压用于配置所述第二电容的极化状态;Outputting a first write voltage to a first bit line, outputting a second write voltage to a second bit line, so as to write data to be written into the memory cell, wherein the first write voltage is used to configure the the polarization state of the first capacitor, the second write voltage is used to configure the polarization state of the second capacitor;
    其中,当所述第一电容的极化状态被配置为第二极板朝向第一极板、第二电容的极化状态被配置为第一极板朝向第二极板时,向所述存储单元写入第一逻辑值;Wherein, when the polarization state of the first capacitor is configured such that the second plate faces the first plate, and the polarization state of the second capacitor is configured such that the first plate faces the second plate, the storage the cell writes a first logical value;
    当所述第一电容的极化状态被配置为第二极板朝向第一极板、第二电容的极化状态被配置为第二极板朝向第一极板时,向所述存储单元写入第一模糊状态;When the polarization state of the first capacitor is configured such that the second plate faces the first plate, and the polarization state of the second capacitor is configured such that the second plate faces the first plate, writing to the storage unit into the first fuzzy state;
    当所述第一电容的极化状态被配置为第一极板朝向第二极板、第二电容的极化状态被配置为第二极板朝向第一极板时,向所述存储单元写入第二逻辑值;When the polarization state of the first capacitor is configured such that the first plate faces the second plate and the polarization state of the second capacitor is configured such that the second plate faces the first plate, writing to the storage unit Enter the second logical value;
    当所述第一电容的极化状态被配置为第一极板朝向第二极板、第二电容的极化状态被配置为第一极板朝向第二极板时,向所述存储单元写入第二模糊状态。When the polarization state of the first capacitor is configured such that the first plate faces the second plate and the polarization state of the second capacitor is configured such that the first plate faces the second plate, writing to the storage unit into the second fuzzy state.
  10. 根据权利要求9所述的数据写入方法,其特征在于,所述内容寻址存储器还包括第一控制管与第二控制管,所述第一控制管的控制端、所述第二控制管的控制端连接控制线;所述第一控制管的第一端连接第一位线,所述第一控制管的第二端连接第一电容的第二极板;所述第二控制管的第一端连接第二位线,所述第二控制管的第二端连接第二电容的第二极板,向第一位线输出第一写入电压,向第二位线输出第二写入电压,以向所述存储单元写入待写数据之前,所述数据写入方法还包括:The data writing method according to claim 9, wherein the content addressable memory further comprises a first control pipe and a second control pipe, the control end of the first control pipe, the second control pipe The control end of the first control tube is connected to the control line; the first end of the first control tube is connected to the first bit line, and the second end of the first control tube is connected to the second plate of the first capacitor; the second control tube's The first end is connected to the second bit line, the second end of the second control transistor is connected to the second plate of the second capacitor, the first writing voltage is output to the first bit line, and the second writing voltage is output to the second bit line. Before inputting the voltage to write data to be written to the memory cell, the data writing method further includes:
    控制所述第一控制管、所述第二控制管导通。Controlling the first control tube and the second control tube to conduct.
  11. 一种制造内容寻址存储器的方法,所述内容寻址存储器包括m行n列存储单元,m与n为大于或等于1的整数,存储单元包括晶体管、第一电容与第二电容,所述晶体管的控制端与所述第一电容的第一极板、第二电容的第一极板连接,所述晶体管的第一端连接字线,所述晶体管的第二端连接匹配线,所述第一电容的第二极板连接第一位线,所述第二电容的第二极板连接第二位线,其特征在于,所述方法包括:A method for manufacturing a content-addressable memory, the content-addressable memory includes m rows and n columns of memory cells, m and n are integers greater than or equal to 1, and the memory cells include transistors, first capacitors, and second capacitors, the The control end of the transistor is connected to the first plate of the first capacitor and the first plate of the second capacitor, the first end of the transistor is connected to the word line, the second end of the transistor is connected to the match line, the The second plate of the first capacitor is connected to the first bit line, and the second plate of the second capacitor is connected to the second bit line, wherein the method includes:
    在衬底上形成晶体管,所述晶体管包括控制端、第一端与第二端;forming a transistor on the substrate, the transistor including a control terminal, a first terminal and a second terminal;
    在所述晶体管上形成第一电容与第二电容,所述第一电容包括第一极板与第二极板,所述第二电容包括第一极板与第二极板,所述第一电容的第一极板、所述第二电容的第一极板与所述晶体管的控制端电连接。A first capacitor and a second capacitor are formed on the transistor, the first capacitor includes a first plate and a second plate, the second capacitor includes a first plate and a second plate, the first The first plate of the capacitor and the first plate of the second capacitor are electrically connected to the control terminal of the transistor.
  12. 根据权利要求11所述的方法,其特征在于,所述在衬底上形成晶体管包括:The method according to claim 11, wherein said forming a transistor on the substrate comprises:
    在所述衬底上形成所述晶体管的第一端;forming a first terminal of the transistor on the substrate;
    在所述晶体管的第一端远离所述衬底的一侧形成所述第二端与所述控制端,且所述第二端具有与所述衬底相垂直的第一侧面,所述控制端位于所述第一侧面朝向的一侧。The second terminal and the control terminal are formed on the side of the first terminal of the transistor away from the substrate, and the second terminal has a first side perpendicular to the substrate, and the control terminal has a first side perpendicular to the substrate. The end is located on the side facing the first side.
  13. 根据权利要求11所述的方法,其特征在于,所述在所述晶体管上形成第一电容与第二电容,包括:The method according to claim 11, wherein the forming the first capacitor and the second capacitor on the transistor comprises:
    在所述晶体管上形成金属层,所述金属层与所述控制端电连接,所述金属层包括所述第一电容的第一极板与所述第二电容的第一极板;forming a metal layer on the transistor, the metal layer is electrically connected to the control terminal, and the metal layer includes a first plate of the first capacitor and a first plate of the second capacitor;
    在所述第一电容的第一极板远离衬底的一侧依次形成第一铁电材料层与所述第一电容的第二极板;sequentially forming a first ferroelectric material layer and a second plate of the first capacitor on a side of the first plate of the first capacitor away from the substrate;
    在所述第二电容的第一极板远离衬底的一侧依次形成第二铁电材料层与所述第二电容的第二极板。A second ferroelectric material layer and a second plate of the second capacitor are sequentially formed on a side of the first plate of the second capacitor away from the substrate.
  14. 一种电子设备,其特征在于,所述电子设备包括电路板以及与所述电路板电连接的内容寻址存储器,所述内容寻址存储器为如权利要求1~6任一项所述的内容寻址存储器。An electronic device, characterized in that the electronic device comprises a circuit board and a content-addressable memory electrically connected to the circuit board, and the content-addressable memory is the content according to any one of claims 1-6 addressing memory.
PCT/CN2021/134630 2021-11-30 2021-11-30 Content addressable memory and related method thereof, and electronic device WO2023097512A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2021/134630 WO2023097512A1 (en) 2021-11-30 2021-11-30 Content addressable memory and related method thereof, and electronic device
CN202180101887.1A CN117941001A (en) 2021-11-30 2021-11-30 Content-addressed memory, related method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/134630 WO2023097512A1 (en) 2021-11-30 2021-11-30 Content addressable memory and related method thereof, and electronic device

Publications (1)

Publication Number Publication Date
WO2023097512A1 true WO2023097512A1 (en) 2023-06-08

Family

ID=86611397

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/134630 WO2023097512A1 (en) 2021-11-30 2021-11-30 Content addressable memory and related method thereof, and electronic device

Country Status (2)

Country Link
CN (1) CN117941001A (en)
WO (1) WO2023097512A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10847224B1 (en) * 2019-07-23 2020-11-24 Hewlett Packard Enterprise Development Lp Low power and area ternary content addressable memory circuit
CN113053434A (en) * 2021-02-03 2021-06-29 浙江大学 High-energy-efficiency TCAM based on FeFET structure and operation method thereof
CN113096710A (en) * 2021-04-28 2021-07-09 清华大学 Unit circuit and dynamic tri-state content addressing memory thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10847224B1 (en) * 2019-07-23 2020-11-24 Hewlett Packard Enterprise Development Lp Low power and area ternary content addressable memory circuit
CN113053434A (en) * 2021-02-03 2021-06-29 浙江大学 High-energy-efficiency TCAM based on FeFET structure and operation method thereof
CN113096710A (en) * 2021-04-28 2021-07-09 清华大学 Unit circuit and dynamic tri-state content addressing memory thereof

Also Published As

Publication number Publication date
CN117941001A (en) 2024-04-26

Similar Documents

Publication Publication Date Title
US10950301B2 (en) Two transistor, one resistor non-volatile gain cell memory and storage element
US7221600B2 (en) Arithmetic circuit integrated with a variable resistance memory element
JP7169856B2 (en) Semiconductor devices and dynamic logic circuits
US10650892B2 (en) Ternary memory cell and ternary memory cell arrangement
JP2002373493A (en) Memory half cell referable to ternary contents, and memory cell enabling reference to ternary contents
US9484096B1 (en) Ternary content-addressable memory
US6370052B1 (en) Method and structure of ternary CAM cell in logic process
TWI794510B (en) Ternary content addressable memory unit
CN115472194A (en) Method for realizing content addressable memory based on field effect transistor with bipolar characteristic
Schenk et al. A new generation of memory devices enabled by ferroelectric hafnia and zirconia
WO2023097512A1 (en) Content addressable memory and related method thereof, and electronic device
US20240055049A1 (en) Memory with fram and sram of ic
US20230377651A1 (en) Memory device with content addressable memory units
US10910056B2 (en) Semiconductor device
KR102222813B1 (en) 6T nonvolatile SRAM based on 3D flash memory
TWI840791B (en) Memory device with content addressable memory units
CN112970065A (en) Dual compare tri-state CAM
WO2024066560A1 (en) Storage array, memory and electronic device
TWI763266B (en) Memory device, data processing device, and data processing method
CN114743578B (en) Method for realizing ternary content addressable memory TCAM based on ferroelectric tunneling field effect transistor FeTFET
TWI760122B (en) Multi-gate ferroelectricity memory and memory array device
WO2023169075A1 (en) Read-write circuit, read-write method, and ferroelectric memory
US20240105244A1 (en) Stacked fet with three-terminal sot mram
WO2023216789A1 (en) One-time programmable memory and control method therefor, storage system, and electronic device
CN116798478A (en) Tri-state content addressable memory

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21965949

Country of ref document: EP

Kind code of ref document: A1