[go: up one dir, main page]

CN115312097A - Multi-bit resistive random access memory writing circuit, method and memory device - Google Patents

Multi-bit resistive random access memory writing circuit, method and memory device Download PDF

Info

Publication number
CN115312097A
CN115312097A CN202210766589.0A CN202210766589A CN115312097A CN 115312097 A CN115312097 A CN 115312097A CN 202210766589 A CN202210766589 A CN 202210766589A CN 115312097 A CN115312097 A CN 115312097A
Authority
CN
China
Prior art keywords
current
module
write
mos tube
voltage
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202210766589.0A
Other languages
Chinese (zh)
Inventor
林龙扬
孔镇
李瑚淼
李毅达
周菲迟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Southern University of Science and Technology
Original Assignee
Southern University of Science and Technology
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 Southern University of Science and Technology filed Critical Southern University of Science and Technology
Priority to CN202210766589.0A priority Critical patent/CN115312097A/en
Publication of CN115312097A publication Critical patent/CN115312097A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C13/00Digital stores characterised by the use of storage elements not covered by groups G11C11/00, G11C23/00, or G11C25/00
    • G11C13/0002Digital stores characterised by the use of storage elements not covered by groups G11C11/00, G11C23/00, or G11C25/00 using resistive RAM [RRAM] elements
    • G11C13/0021Auxiliary circuits
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C13/00Digital stores characterised by the use of storage elements not covered by groups G11C11/00, G11C23/00, or G11C25/00
    • G11C13/0002Digital stores characterised by the use of storage elements not covered by groups G11C11/00, G11C23/00, or G11C25/00 using resistive RAM [RRAM] elements
    • G11C13/0021Auxiliary circuits
    • G11C13/0069Writing or programming circuits or methods

Landscapes

  • Static Random-Access Memory (AREA)

Abstract

The invention discloses a multi-bit resistance variable random access memory write-in circuit, a method and a memory device, wherein the multi-bit resistance variable random access memory write-in circuit is connected with a memory unit and comprises the following steps: the device comprises a first voltage clamping module, a second voltage clamping module, a write-in current sampling module, a current comparison module and a turn-off control module; the first voltage clamping module and the second voltage clamping module are used for controlling the voltage at two ends of the memory unit not to change along with the change of the writing current; the write current sampling module is used for sampling the magnitude of write current flowing through the memory unit and outputting the sampling current to the current comparison module; the current comparison module is used for providing a preset current and generating a write-in turn-off control signal when the sampling current is close to or reaches the preset current so as to control the magnitude of the write-in current; the turn-off control module is used for interrupting the writing process according to the writing turn-off control signal. The invention realizes the constant-voltage low-power-consumption writing of the multi-bit RRAM memory array.

Description

多比特阻变式随机存储器写入电路、方法及存储器装置Multi-bit resistive random access memory writing circuit, method and memory device

技术领域technical field

本发明涉及集成电路技术领域,尤其涉及的是一种多比特阻变式随机存储器写入电路、方法及存储器装置。The invention relates to the technical field of integrated circuits, in particular to a multi-bit resistive random access memory writing circuit, method and memory device.

背景技术Background technique

阻变式随机存储器(Resistive Random Access Memory,RRAM)是一种新兴的非易失性存储器,由于器具有非易失性,集成度高,与CMOS工艺兼容等特点,在最近新兴的神经形态计算电路中被广泛使用。RRAM是一种两端器件,通常由惰性金属作为上电极(TopElectrode,为TE),活泼金属作为下电极(Bottom Electrode,为BE),两个金属电极之间是金属氧化物(常见的是HfO2)。在两个金属电极上加一定的正偏压,活泼金属的电子会像惰性金属一端移动,从而在中间的氧化物介质中逐渐形成导电细丝(filament),使得RRAM变为低阻态,此过程成为Set过程。如果反过来给RRAM两个金属电极上施加一个反偏压,形成的导电细丝会逐渐消失,使得RRAM变为高阻态,该过程称为Reset过程。由于Set之后,导电细丝具有记忆效应,RRAM的导电性仍存在,因而RRAM又被称为“忆阻器”。在RRAM存储器单元中,RRAM和一个开关MOS管串联形成1T1R cell,开关MOS管用来控制RRAM的读写。1T1R cell有三个端口,MOS管的那一端被称为源线(Source Line,缩写为SL),RRAM的那一端被称为位线(Bit Line缩写为BL),MOS管的栅极被称为字线(Word Line,缩写为WL),通过SL,BL与WL之间相互连接可以形成一个大规模的RRAM存储器阵列。Resistive Random Access Memory (RRAM) is a new type of non-volatile memory. Due to the characteristics of non-volatility, high integration and compatibility with CMOS technology, it has been used in the recently emerging neuromorphic computing widely used in circuits. RRAM is a two-terminal device, which usually consists of an inert metal as the upper electrode (Top Electrode, TE), an active metal as the lower electrode (Bottom Electrode, BE), and a metal oxide (commonly HfO2) between the two metal electrodes. ). When a certain positive bias is applied to the two metal electrodes, the electrons of the active metal will move like one end of the inert metal, thereby gradually forming conductive filaments (filament) in the oxide medium in the middle, making the RRAM into a low-resistance state. Procedures become Set procedures. If a reverse bias is applied to the two metal electrodes of the RRAM, the conductive filaments formed will gradually disappear, making the RRAM into a high-resistance state. This process is called the Reset process. Since the conductive filament has a memory effect after Set, the conductivity of RRAM still exists, so RRAM is also called "memristor". In the RRAM memory unit, the RRAM and a switching MOS transistor are connected in series to form a 1T1R cell, and the switching MOS transistor is used to control the reading and writing of the RRAM. 1T1R cell has three ports, the end of the MOS tube is called the source line (Source Line, abbreviated as SL), the end of the RRAM is called the bit line (Bit Line is abbreviated as BL), and the gate of the MOS tube is called A word line (Word Line, abbreviated as WL) is connected to each other through SL, BL and WL to form a large-scale RRAM memory array.

目前的RRAM存储器写入电路主要是脉冲式写入,即给RRAM两端加脉冲电压序列,使RRAM的中间层金属氧化物的导电细丝形成或消除。这种方式一般通过控制写入脉冲的宽度和幅度,从而控制RRAM电阻的大小,它需要额外的脉冲发生器,由于电平的频繁翻转导致写入功耗较高。The current RRAM memory writing circuit is mainly pulse-type writing, that is, a pulse voltage sequence is applied to both ends of the RRAM, so that the conductive filaments of the metal oxide in the middle layer of the RRAM are formed or eliminated. This method generally controls the size of the RRAM resistance by controlling the width and amplitude of the write pulse, which requires an additional pulse generator, and the write power consumption is high due to frequent flipping of the level.

因此,现有技术还有待于改进和发展。Therefore, the prior art still needs to be improved and developed.

发明内容Contents of the invention

鉴于上述现有技术的不足,本发明的目的在于提供一种多比特阻变式随机存储器写入电路、方法及存储器装置,以解决现有RRAM存储器写入电路需要额外的脉冲发生器所引起的电平的频繁翻转而导致写入功耗较高的问题。In view of the above-mentioned deficiencies in the prior art, the object of the present invention is to provide a multi-bit resistive random access memory write circuit, method and memory device to solve the problem caused by the need for an additional pulse generator in the existing RRAM memory write circuit. The frequent inversion of the level leads to the problem of high writing power consumption.

本发明的技术方案如下:Technical scheme of the present invention is as follows:

一种多比特阻变式随机存储器写入电路,与存储器单元连接,其包括:第一电压钳位模块、第二电压钳位模块、写入电流采样模块、电流比较模块与关断控制模块;A multi-bit resistive random access memory write circuit connected to a memory unit, comprising: a first voltage clamp module, a second voltage clamp module, a write current sampling module, a current comparison module and a shutdown control module;

所述第一电压钳位模块接入第一参考电压,并与所述存储器单元的一端连接产生写入电流;所述第二电压钳位模块接入第二参考电压并与所述存储器单元的另一端连接;所述第一电压钳位模块与所述第二电压钳位模块用于控制所述存储器单元两端的电压不随所述写入电流的变化而变化;The first voltage clamping module is connected to a first reference voltage and connected to one end of the memory unit to generate a write current; the second voltage clamping module is connected to a second reference voltage and connected to one end of the memory unit The other end is connected; the first voltage clamping module and the second voltage clamping module are used to control the voltage at both ends of the memory unit not to change with the change of the write current;

所述写入电流采样模块分别与所述第二电压钳位模块以及所述电流比较模块连接,用于采样流过所述存储器单元的所述写入电流大小并输出采样电流至所述电流比较模块;The write current sampling module is respectively connected to the second voltage clamping module and the current comparison module for sampling the magnitude of the write current flowing through the memory unit and outputting the sampling current to the current comparison module. module;

所述电流比较模块分别与所述写入电流采样模块以及所述关断控制模块连接,用于提供预设电流并在所述采样电流接近或达到所述预设电流时生成写入关断控制信号,以控制所述写入电流的大小;The current comparison module is respectively connected with the write current sampling module and the shutdown control module, and is used to provide a preset current and generate a write shutdown control when the sampling current approaches or reaches the preset current signal to control the magnitude of the write current;

所述关断控制模块分别与所述电流比较模块、所述第二电压钳位模块以及所述存储器单元连接,用于在所述根据所述写入关断控制信号中断写入过程。The shutdown control module is respectively connected with the current comparison module, the second voltage clamp module and the memory unit, and is used for interrupting the write process according to the write shutdown control signal.

本发明的进一步设置,所述第一电压钳位模块包括:第一运算放大器与第一MOS管;其中,In a further setting of the present invention, the first voltage clamping module includes: a first operational amplifier and a first MOS transistor; wherein,

所述第一运算放大器的同相输入端接入所述第一参考电压,所述第一运算放大器的反相输入端与所述第一MOS管的漏极连接,所述第一运算放大器的输出端与所述第一MOS管的栅极连接;The non-inverting input terminal of the first operational amplifier is connected to the first reference voltage, the inverting input terminal of the first operational amplifier is connected to the drain of the first MOS transistor, and the output of the first operational amplifier The terminal is connected to the gate of the first MOS transistor;

所述第一MOS管的漏极还与所述存储器单元的一端连接,所述第一MOS管的源极接入所述写入电流;The drain of the first MOS transistor is also connected to one end of the memory cell, and the source of the first MOS transistor is connected to the write current;

所述第二电压钳位模块包括:第二运算放大器与第二MOS管;其中,The second voltage clamping module includes: a second operational amplifier and a second MOS transistor; wherein,

所述第二运算放大器的反相输入端接入第二参考电压,所述第二运算放大器的同相输入端与所述第二MOS管的漏极连接,所述第二运算放大器的输出端与所述第二MOS管的栅极连接;The inverting input terminal of the second operational amplifier is connected to the second reference voltage, the non-inverting input terminal of the second operational amplifier is connected to the drain of the second MOS transistor, and the output terminal of the second operational amplifier is connected to the second reference voltage. The gate connection of the second MOS transistor;

所述第二MOS管的漏极还与所述存储器单元的另一端连接,所述第二MOS管的源极接地。The drain of the second MOS transistor is also connected to the other end of the memory cell, and the source of the second MOS transistor is grounded.

本发明的进一步设置,所述写入电流采样模块包括第三MOS管;所述第三MOS管的栅极与所述第二MOS管的栅极连接,所述第三MOS管的漏极与所述电流比较模块连接,所述第三MOS管的源极接地。In a further configuration of the present invention, the writing current sampling module includes a third MOS transistor; the gate of the third MOS transistor is connected to the gate of the second MOS transistor, and the drain of the third MOS transistor is connected to the gate of the second MOS transistor. The current comparison module is connected, and the source of the third MOS transistor is grounded.

本发明的进一步设置,所述电流比较模块包括:若干个电流源以及与所述电流源串联的开关MOS管,所述开关MOS管分别与写入电流采样模块以及所述关断控制模块连接。In a further configuration of the present invention, the current comparison module includes: several current sources and switch MOS transistors connected in series with the current sources, and the switch MOS transistors are respectively connected to the writing current sampling module and the shutdown control module.

本发明的进一步设置,所述关断控制模块包括:偶数个反相器与第四MOS管;其中,In a further setting of the present invention, the shutdown control module includes: an even number of inverters and a fourth MOS transistor; wherein,

所述反相器的输入端与所述电流比较模块的输出端连接,所述反相器的输出端与所述第四MOS管的栅极连接;The input end of the inverter is connected to the output end of the current comparison module, and the output end of the inverter is connected to the gate of the fourth MOS transistor;

所述第四MOS管的漏极与所述存储器单元的另一端连接,所述第四MOS管的源极与所述第二电压钳位模块连接。The drain of the fourth MOS transistor is connected to the other end of the memory unit, and the source of the fourth MOS transistor is connected to the second voltage clamping module.

本发明的进一步设置,所述关断控制模块包括:奇数个反相器与第四MOS管;其中,In a further setting of the present invention, the shutdown control module includes: an odd number of inverters and a fourth MOS transistor; wherein,

所述反相器的输入端与所述电流比较模块的输出端连接,所述反相器的输出端与所述第四MOS管的栅极连接;The input end of the inverter is connected to the output end of the current comparison module, and the output end of the inverter is connected to the gate of the fourth MOS transistor;

所述第四MOS管的漏极与所述存储器单元的另一端连接,所述第四MOS管的源极与所述第二电压钳位模块连接。The drain of the fourth MOS transistor is connected to the other end of the memory unit, and the source of the fourth MOS transistor is connected to the second voltage clamping module.

本发明的进一步设置,所述多比特阻变式随机存储器写入电路还包括:第五MOS管与第六MOS管;其中,In a further setting of the present invention, the multi-bit resistive random access memory writing circuit further includes: a fifth MOS transistor and a sixth MOS transistor; wherein,

所述第五MOS管的栅极与所述第四MOS管的栅极连接,所述第五MOS管的漏极与所述第二MOS管的栅极连接,所述第五MOS管的源极接入供电电压;The gate of the fifth MOS transistor is connected to the gate of the fourth MOS transistor, the drain of the fifth MOS transistor is connected to the gate of the second MOS transistor, and the source of the fifth MOS transistor Pole access to supply voltage;

所述第六MOS管连接在所述第二运算放大器的输出端与所述第二MOS管的栅极之间。The sixth MOS transistor is connected between the output terminal of the second operational amplifier and the gate of the second MOS transistor.

本发明的进一步设置,所述多比特阻变式随机存储器写入电路还包括:第七MOS管,所述第七MOS管的栅极接入使能信号,所述第七MOS管的漏极与所述第三MOS管的源极连接,所述第七MOS管的源极接地。In a further setting of the present invention, the multi-bit resistive random access memory writing circuit further includes: a seventh MOS transistor, the gate of the seventh MOS transistor accesses the enable signal, and the drain of the seventh MOS transistor connected to the source of the third MOS transistor, and the source of the seventh MOS transistor is grounded.

基于同样的发明构思,本发明还提供了一种应用于如上述所述的多比特阻变式随机存储器写入电路的写入方法,其包括:Based on the same inventive concept, the present invention also provides a writing method applied to the above-mentioned multi-bit resistive random access memory writing circuit, which includes:

通过第一电压钳位模块与第二电压钳位模块保持存储器单元两端的电压固定;Keeping the voltage at both ends of the memory cell constant through the first voltage clamping module and the second voltage clamping module;

通过写入电流采样模块采样流过所述存储器单元的写入电流大小并输出采样电流至电流比较模块;Sampling the magnitude of the write current flowing through the memory unit through the write current sampling module and outputting the sampling current to the current comparison module;

当所述采样电流接近或达到所述预设电流时通过关断控制模块中断写入过程;其中,通过电流比较模块调整预设电流的大小以控制写入电流的大小。When the sampling current is close to or reaches the preset current, the writing process is interrupted through the shutdown control module; wherein, the magnitude of the preset current is adjusted by the current comparison module to control the magnitude of the writing current.

基于同样的发明构思,本发明还提供了一种存储器装置,其包括若干阵列设置的存储器单元,以及如上述所述的多比特阻变式随机存储器写入电路,所述多比特阻变式随机存储器写入电路分别对应与所述存储器单元连接。Based on the same inventive concept, the present invention also provides a memory device, which includes several memory units arranged in an array, and the multi-bit resistive random access memory writing circuit as described above, the multi-bit resistive random access memory The memory writing circuits are correspondingly connected to the memory units.

本发明所提供的一种多比特阻变式随机存储器写入电路、方法及存储器装置,多比特阻变式随机存储器写入电路,与存储器单元连接,其包括:第一电压钳位模块、第二电压钳位模块、写入电流采样模块、电流比较模块与关断控制模块;所述第一电压钳位模块接入第一参考电压,并与所述存储器单元的一端连接产生写入电流;所述第二电压钳位模块接入第二参考电压并与所述存储器单元的另一端连接;所述第一电压钳位模块与所述第二电压钳位模块用于控制所述存储器单元两端的电压不随所述写入电流的变化而变化;所述写入电流采样模块分别与所述第二电压钳位模块以及所述电流比较模块连接,用于采样流过所述存储器单元的所述写入电流大小并输出采样电流至所述电流比较模块;所述电流比较模块与所述写入电流采样模块连接,用于提供预设电流并在所述采样电流接近或达到所述预设电流时生成写入关断控制信号,以控制所述写入电流的大小;所述关断控制模块分别与所述电流比较模块、所述第二电压钳位模块以及所述存储器单元连接,用于根据所述写入关断控制信号中断写入过程。本发明通过第一电压钳位模块与第二电压钳位模块保持存储器单元两端的电压固定,使得存储器单元两端的电压不会随写入电流的变化而变化,从而可以通过控制存储器单元的写入电流的大小来控制写入电阻的大小,以达到避免脉冲写入导致的写入功耗较高的问题。并且,本发明通过电流比较模块能够调整预设电流的大小,以调整写入电流的大小,由于存储器两端的电压被钳位模块固定,从而能够根据写入电流大小间接获知存储器单元的电阻的大小,进而能够实现多比特写入操作。A multi-bit resistive random access memory writing circuit, method and memory device provided by the present invention, the multi-bit resistive random access memory writing circuit is connected with the memory unit, which includes: a first voltage clamping module, a second voltage clamping module Two voltage clamping modules, a writing current sampling module, a current comparison module and a shutdown control module; the first voltage clamping module is connected to a first reference voltage, and is connected to one end of the memory unit to generate a writing current; The second voltage clamping module is connected to the second reference voltage and connected to the other end of the memory unit; the first voltage clamping module and the second voltage clamping module are used to control the two ends of the memory unit The voltage at the end does not change with the change of the write current; the write current sampling module is respectively connected with the second voltage clamping module and the current comparison module, and is used to sample the current flowing through the memory unit. Write the magnitude of the current and output the sampling current to the current comparison module; the current comparison module is connected to the writing current sampling module for providing a preset current and when the sampling current is close to or reaches the preset current Generate a write shutdown control signal to control the magnitude of the write current; the shutdown control module is respectively connected to the current comparison module, the second voltage clamp module and the memory unit for A write process is interrupted according to the write shutdown control signal. The present invention uses the first voltage clamping module and the second voltage clamping module to keep the voltage at both ends of the memory cell constant, so that the voltage at both ends of the memory cell will not change with the change of the writing current, so that the writing of the memory cell can be controlled. The magnitude of the current is used to control the magnitude of the write resistance, so as to avoid the problem of high write power consumption caused by pulse write. Moreover, the present invention can adjust the size of the preset current through the current comparison module to adjust the size of the writing current. Since the voltage at both ends of the memory is fixed by the clamping module, the resistance of the memory cell can be indirectly known according to the size of the writing current. , so as to realize multi-bit write operation.

附图说明Description of drawings

为了更清楚的说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图示出的结构获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to the structures shown in these drawings without creative effort.

图1是本发明中多比特阻变式随机存储器写入电路的功能模块架构图。FIG. 1 is a functional module architecture diagram of a multi-bit resistive random access memory writing circuit in the present invention.

图2是本发明中多比特阻变式随机存储器写入电路执行Set操作的电路原理图。FIG. 2 is a schematic circuit diagram of a Set operation performed by a multi-bit RRAM writing circuit in the present invention.

图3是本发明中多比特阻变式随机存储器写入电路执行Set操作过程中相关信号的时域波形图。FIG. 3 is a time-domain waveform diagram of related signals during the Set operation performed by the multi-bit RRAM writing circuit in the present invention.

图4是本发明中多比特阻变式随机存储器写入电路执行Reset操作的电路原理图。FIG. 4 is a schematic circuit diagram of a Reset operation performed by a multi-bit RRAM writing circuit in the present invention.

图5是本发明中多比特阻变式随机存储器写入电路执行Reset操作过程中相关信号的时域波形图。FIG. 5 is a time-domain waveform diagram of relevant signals during the reset operation performed by the multi-bit resistive random access memory writing circuit in the present invention.

图6是本发明中多比特阻变式随机存储器写入方法的流程示意图。FIG. 6 is a schematic flow chart of a multi-bit resistive random access memory writing method in the present invention.

图7是本发明中存储器装置的电路原理图。FIG. 7 is a schematic circuit diagram of a memory device in the present invention.

附图中各标记:100、第一电压钳位模块;200、第二电压钳位模块;300、写入电流采样模块;400、电流比较模块;500、关断控制模块;600、存储器单元。Each mark in the drawings: 100, first voltage clamping module; 200, second voltage clamping module; 300, write current sampling module; 400, current comparison module; 500, shutdown control module; 600, memory unit.

具体实施方式Detailed ways

本发明提供一种多比特阻变式随机存储器写入电路、方法及存储器装置,多比特阻变式随机存储器写入电路,为使本发明的目的、技术方案及效果更加清楚、明确,以下参照附图并举实例对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The present invention provides a multi-bit resistive random access memory writing circuit, method and memory device, and a multi-bit resistive random access memory writing circuit. In order to make the purpose, technical scheme and effect of the present invention clearer and clearer, refer to The accompanying drawings give examples to further describe the present invention in detail. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

在实施方式和申请专利范围中,除非文中对于冠词有特别限定,否则“一”、“一个”、“所述”和“该”也可包括复数形式。若本发明实施例中有涉及“第一”、“第二”等的描述,则该“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。In the embodiments and claims, unless the article is specifically limited, "a", "an", "the" and "the" may also include plural forms. If there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. Significance or implicitly indicates the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features.

应该进一步理解的是,本发明的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。应该理解,当我们称元件被“连接”或“耦接”到另一元件时,它可以直接连接或耦接到其他元件,或者也可以存在中间元件。此外,这里使用的“连接”或“耦接”可以包括无线连接或无线耦接。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任一单元和全部组合。It should be further understood that the word "comprising" used in the description of the present invention refers to the presence of said features, integers, steps, operations, elements and/or components, but does not exclude the presence or addition of one or more other features, Integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Additionally, "connected" or "coupled" as used herein may include wireless connection or wireless coupling. The expression "and/or" used herein includes all or any elements and all combinations of one or more associated listed items.

本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本发明所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非像这里一样被特定定义,否则不会用理想化或过于正式的含义来解释。Those skilled in the art can understand that, unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art to which this invention belongs. It should also be understood that terms, such as those defined in commonly used dictionaries, should be understood to have meanings consistent with their meaning in the context of the prior art, and unless specifically defined as herein, are not intended to be idealized or overly Formal meaning to explain.

另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本发明要求的保护范围之内。In addition, the technical solutions of the various embodiments can be combined with each other, but it must be based on the realization of those skilled in the art. When the combination of technical solutions is contradictory or cannot be realized, it should be considered that the combination of technical solutions does not exist , nor within the scope of protection required by the present invention.

经发明人研究发现,目前的RRAM存储器写入电路主要是脉冲式写入,即给RRAM两端加脉冲电压序列,使RRAM的中间层金属氧化物的导电细丝形成或消除。这种方式一般通过控制写入脉冲的宽度和幅度,从而控制RRAM电阻的大小,它需要额外的脉冲发生器,由于电平的频繁翻转导致写入功耗较高。另外传统RRAM只有两个状态:高电阻态(HighResistance State,HRS)和低电阻态(Low Resistance State,LRS),这意味着一个RRAM单元只能表示1比特信息,最近新兴的存内计算电路已经开始使用多比特RRAM来提高单位存储密度,但相应的高效多比特RRAM存储器写入技术目前仍欠缺。The inventors have found through research that the current RRAM memory write circuit is mainly pulse-type write, that is, a pulse voltage sequence is applied to both ends of the RRAM to form or eliminate the conductive filaments of the metal oxide in the middle layer of the RRAM. This method generally controls the size of the RRAM resistance by controlling the width and amplitude of the write pulse, which requires an additional pulse generator, and the write power consumption is high due to frequent flipping of the level. In addition, traditional RRAM has only two states: High Resistance State (High Resistance State, HRS) and Low Resistance State (Low Resistance State, LRS), which means that an RRAM cell can only represent 1 bit of information. Recently, emerging in-memory computing circuits have Multi-bit RRAM has been used to increase unit storage density, but the corresponding high-efficiency multi-bit RRAM memory writing technology is still lacking.

针对上述技术问题,本发明提供了一种多比特阻变式随机存储器恒压式写入电路、方法及存储器装置,通过第一电压钳位模块与第二电压钳位模块保持存储器单元两端的电压固定,使得存储器单元两端的电压不会随写入电压的变化而变化,从而可以通过控制存储器单元的写入电流的大小来控制写入电阻的大小,以达到避免脉冲式写入电平频繁翻转导致的写入功耗较高的问题。并且,本发明通过电流比较模块能够调整预设电流的大小,以调整写入电流的大小,从而能够间接获知存储器单元的电阻的大小,进而能够实现多比特写入操作。In view of the above technical problems, the present invention provides a multi-bit resistive random access memory constant voltage write circuit, method and memory device. The voltage at both ends of the memory unit is maintained by the first voltage clamping module and the second voltage clamping module. Fixed, so that the voltage at both ends of the memory cell will not change with the change of the write voltage, so that the write resistance can be controlled by controlling the write current of the memory cell, so as to avoid frequent flipping of the pulse write level The problem of high write power consumption is caused. Moreover, the present invention can adjust the magnitude of the preset current through the current comparison module to adjust the magnitude of the write current, so that the magnitude of the resistance of the memory unit can be obtained indirectly, and a multi-bit write operation can be realized.

请同时参阅图1至图5,本发明提供了一种多比特阻变式随机存储器写入电路的较佳实施例。Please refer to FIG. 1 to FIG. 5 at the same time. The present invention provides a preferred embodiment of a multi-bit RRAM writing circuit.

如图1所示,本发明提供的一种多比特阻变式随机存储器写入电路,与存储器单元600连接,其包括:第一电压钳位模块100、第二电压钳位模块200、写入电流采样模块300、电流比较模块400与关断控制模块500。所述第一电压钳位模块100接入第一参考电压,并与所述存储器单元600的一端连接产生写入电流;所述第二电压钳位模块200接入第二参考电压并与所述存储器单元600的另一端连接;所述第一电压钳位模块100与所述第二电压钳位模块200用于控制所述存储器单元600两端的电压不随所述写入电流的变化而变化;所述写入电流采样模块300分别与所述第二电压钳位模块200以及所述电流比较模块400连接,用于采样流过所述存储器单元600的所述写入电流大小并输出采样电流至所述电流比较模块400;所述电流比较模块400分别与所述写入电流采样模块300以及所述关断控制模块500连接,用于提供预设电流并在所述采样电流接近或达到所述预设电流时生成写入关断控制信号,以控制所述写入电流的大小;所述关断控制模块500分别与所述电流比较模块400以及所述存储器单元600连接,用于根据所述写入关断控制信号中断写入过程。As shown in FIG. 1 , a multi-bit resistive random access memory writing circuit provided by the present invention is connected to a memory unit 600, and includes: a first voltage clamping module 100, a second voltage clamping module 200, a writing circuit The current sampling module 300 , the current comparison module 400 and the shutdown control module 500 . The first voltage clamping module 100 is connected to a first reference voltage and connected to one end of the memory unit 600 to generate a write current; the second voltage clamping module 200 is connected to a second reference voltage and connected to the The other end of the memory unit 600 is connected; the first voltage clamping module 100 and the second voltage clamping module 200 are used to control the voltage at both ends of the memory unit 600 not to change with the change of the write current; The writing current sampling module 300 is respectively connected with the second voltage clamping module 200 and the current comparison module 400, and is used for sampling the magnitude of the writing current flowing through the memory unit 600 and outputting the sampling current to the The current comparison module 400; the current comparison module 400 is respectively connected with the write current sampling module 300 and the shutdown control module 500, for providing a preset current and when the sampling current approaches or reaches the preset When the current is set, a write shutdown control signal is generated to control the magnitude of the write current; the shutdown control module 500 is connected to the current comparison module 400 and the memory unit 600 respectively, for Entering the shutdown control signal interrupts the write process.

本发明的工作原理为:所述第一电压钳位模块100与所述第二电压钳位模块200分别连接在所述存储器单元600的两端,其中所述第二电压钳位模块200通过所述关断控制模块500与所述存储器单元连接,所述第一电压钳位模块100接入第一参考电压作为第一钳位电平,所述第二电压钳位模块200接入第二参考电压作为第二钳位电平,并分别加在所述存储器单元600的两端,使得存储器单元两端的电压保持固定,不会随写入电流的变化而变化,从而可以通过控制存储器单元的写入电流的大小来唯一控制写入电阻的大小,可见,本发明采用恒压写入的方式相对于脉冲写入而言不需要额外的脉冲发生器,避免了因电平频繁翻转而引起的功耗较高的问题。其中,所述电流比较模块400能够提供预设电流,通过所述写入电流采样模块300对流过存储器单元600的写入电流进行采样,并输出采样电流至所述电流比较模块400,当所述采样电流接近或达到所述预设电流时则通过所述关断控制模块500中断写入过程。而所述电流比较模块400的输出电压会随着写入电流的变化而变化,因而可以通过调节所述预设电流的大小来控制写入电流的大小,因存储器两端的电压被钳位固定,从而能够根据写入电流的大小以间接获知存储器单元600的电阻的大小,从而实现多比特阻变式随机存储器的写入功能。因此,本发明采用低功耗恒压写入的方式实现了多比特RRAM电阻值的写入。The working principle of the present invention is: the first voltage clamping module 100 and the second voltage clamping module 200 are respectively connected to both ends of the memory unit 600, wherein the second voltage clamping module 200 passes through the The shutdown control module 500 is connected to the memory unit, the first voltage clamping module 100 is connected to the first reference voltage as the first clamping level, and the second voltage clamping module 200 is connected to the second reference voltage The voltage is used as the second clamping level, and is added to the two ends of the memory cell 600 respectively, so that the voltage at the two ends of the memory cell remains fixed and will not change with the change of the write current, so that the write of the memory cell can be controlled. The size of the input current is used to uniquely control the size of the write resistance. It can be seen that the method of constant voltage writing in the present invention does not require an additional pulse generator compared with pulse writing, and avoids power failure caused by frequent level reversals. high consumption problem. Wherein, the current comparison module 400 can provide a preset current, sample the write current flowing through the memory unit 600 through the write current sampling module 300, and output the sampled current to the current comparison module 400, when the When the sampling current approaches or reaches the preset current, the writing process is interrupted through the shutdown control module 500 . The output voltage of the current comparison module 400 will change with the change of the writing current, so the magnitude of the writing current can be controlled by adjusting the magnitude of the preset current, because the voltage at both ends of the memory is clamped and fixed, Therefore, the magnitude of the resistance of the memory unit 600 can be obtained indirectly according to the magnitude of the write current, thereby realizing the write function of the multi-bit RRAM. Therefore, the present invention implements the writing of multi-bit RRAM resistance values by means of low power consumption and constant voltage writing.

需要说明的是,所述存储器单元600包括阻变式随机存储器RRAM以及与其串联的存储器MOS管M1,形成1T1R cell,该存储器MOS管M1用于控制阻变式存储器RRAM的读写。其中,存储器MOS管M1的栅极连接字线,存储器MOS管M1的源极连接源线,存储器MOS管M1的漏极与阻变式随机存储器RRAM的一端连接,阻变式随机存储器RRAM的另一端连接位线。It should be noted that the memory unit 600 includes a resistive random access memory RRAM and a memory MOS transistor M1 connected in series with it to form a 1T1R cell, and the memory MOS transistor M1 is used to control reading and writing of the resistive random access memory RRAM. Wherein, the gate of the memory MOS transistor M1 is connected to the word line, the source of the memory MOS transistor M1 is connected to the source line, the drain of the memory MOS transistor M1 is connected to one end of the resistive random access memory RRAM, and the other end of the resistive random access random access memory RRAM Connect one end to the bit line.

所述存储器单元600的写入过程包括Set过程(RRAM从高阻态变为低阻态)与Reset过程(RRAM从低阻态变为高阻态)。当写入电路执行Set操作时,所述第一电压钳位模块100与存储器MOS管M1的源极连接,恒定的写入电压加在存储器单元600的两端,其阻值会逐渐变小,从而流过存储器单元600的写入电流会逐渐增大,随着写入电流的增大,采样电流随着写入电流的增大而增大,使得电流比较模块400的输出电压逐渐降低,此时限制写入电流的大小,使得写入电流达到某个值之后关断,写入过程结束,即可控制写入存储器单元600的电阻大小。当写入电路执行Reset操作时,所述第一电压钳位模块100与所述阻变式随机存储器RRAM连接,此过程中阻变式随机存储器RRAM的电阻值由小变大,写入电流逐渐变小,所述采样电流也逐渐变小,相应的,电流比较模块400的输出电压从低变高,直至采样电流为0。The writing process of the memory unit 600 includes a Set process (RRAM changes from a high resistance state to a low resistance state) and a Reset process (RRAM changes from a low resistance state to a high resistance state). When the writing circuit performs the Set operation, the first voltage clamping module 100 is connected to the source of the memory MOS transistor M1, and a constant writing voltage is applied to both ends of the memory unit 600, and its resistance value will gradually decrease. Therefore, the write current flowing through the memory unit 600 will gradually increase, and with the increase of the write current, the sampling current will increase with the increase of the write current, so that the output voltage of the current comparison module 400 will gradually decrease. Limit the magnitude of the write current so that the write current reaches a certain value and then shut off, and the write process ends, so that the resistance of the write memory unit 600 can be controlled. When the writing circuit executes the Reset operation, the first voltage clamping module 100 is connected to the resistive random access memory RRAM. During this process, the resistance value of the resistive random access memory RRAM changes from small to large, and the writing current gradually As the sampling current becomes smaller, the sampling current also gradually decreases. Correspondingly, the output voltage of the current comparison module 400 changes from low to high until the sampling current is 0.

请参阅图2,在一个实施例的进一步地实施方式中,所述第一电压钳位模块100包括:第一运算放大器A1与第一MOS管P1;其中,所述第一运算放大器A1的同相输入端接入所述第一参考电压Vwrite,所述第一运算放大器A1的反相输入端与所述第一MOS管P1的漏极连接,所述第一运算放大器A1的输出端与所述第一MOS管P1的栅极连接;所述第一MOS管P1的漏极还与所述存储器单元600的一端连接,所述第一MOS管P1的源极接入所述写入电流Iwrite。所述第二电压钳位模块200包括:第二运算放大器A2与第二MOS管N2;其中,所述第二运算放大器A2的反相输入端接入第二参考电压Vclamp,所述第二运算放大器A2的同相输入端与所述第二MOS管N2的漏极连接,所述第二运算放大器A2的输出端与所述第二MOS管N2的栅极连接;所述第二MOS管N2的漏极还与所述存储器单元600的另一端连接,所述第二MOS管N2的源极接地。Please refer to FIG. 2. In a further implementation of an embodiment, the first voltage clamping module 100 includes: a first operational amplifier A1 and a first MOS transistor P1; wherein, the non-inverting phase of the first operational amplifier A1 The input terminal is connected to the first reference voltage Vwrite, the inverting input terminal of the first operational amplifier A1 is connected to the drain of the first MOS transistor P1, and the output terminal of the first operational amplifier A1 is connected to the drain of the first operational amplifier A1. The gate of the first MOS transistor P1 is connected; the drain of the first MOS transistor P1 is also connected to one end of the memory unit 600 , and the source of the first MOS transistor P1 is connected to the write current Iwrite. The second voltage clamping module 200 includes: a second operational amplifier A2 and a second MOS transistor N2; wherein, the inverting input terminal of the second operational amplifier A2 is connected to a second reference voltage Vclamp, and the second operational The non-inverting input end of the amplifier A2 is connected to the drain of the second MOS transistor N2, the output end of the second operational amplifier A2 is connected to the gate of the second MOS transistor N2; the second MOS transistor N2 The drain is also connected to the other end of the memory unit 600, and the source of the second MOS transistor N2 is grounded.

具体地,所述第一运算放大器A1的同相输入端接入第一参考电压Vwrite作为第一钳位电平,所述第一运算放大器A1的输出端接第一MOS管P1的栅极,所述第一运算放大器A1的反相输入端与第一MOS管P1的漏极连接形成负反馈回路。其中,所述写入电流Iwrite通过所述第一MOS管P1的源极接入。所述第二运算放大器A2的反相输入端接入第二参考电压Vclamp作为第二钳位电平。所述第二运算放大器A2的输出端接第二MOS管N2的栅极,所述第二运算放大器A2的同相输入端与第二MOS管N2的漏极连接形成负反馈回路。其中,所述第一MOS管P1为P型MOS管,所述第二MOS管N2为N型MOS管。在所述第一运算放大器A1与所述第二运算放大器A2的作用下,使得阻变式随机存储器RRAM两端的电压维持稳定,钳位在一个固定值,不会随写入电流Iwrite的变化而变化。Specifically, the non-inverting input terminal of the first operational amplifier A1 is connected to the first reference voltage Vwrite as the first clamping level, and the output terminal of the first operational amplifier A1 is connected to the gate of the first MOS transistor P1, so The inverting input terminal of the first operational amplifier A1 is connected to the drain of the first MOS transistor P1 to form a negative feedback loop. Wherein, the write current Iwrite is connected through the source of the first MOS transistor P1. The inverting input terminal of the second operational amplifier A2 is connected to the second reference voltage Vclamp as the second clamping level. The output terminal of the second operational amplifier A2 is connected to the gate of the second MOS transistor N2, and the non-inverting input terminal of the second operational amplifier A2 is connected to the drain of the second MOS transistor N2 to form a negative feedback loop. Wherein, the first MOS transistor P1 is a P-type MOS transistor, and the second MOS transistor N2 is an N-type MOS transistor. Under the action of the first operational amplifier A1 and the second operational amplifier A2, the voltage at both ends of the resistive random access memory RRAM is kept stable, clamped at a fixed value, and will not change with the change of the write current Iwrite Variety.

请参阅图2,在一个实施例的进一步的实施方式中,所述写入电流采样模块300包括第三MOS管N3;所述第三MOS管N3的栅极与所述第二MOS管N2的栅极连接,所述第三MOS管N3的漏极与所述电流比较模块400连接,所述第三MOS管N3的源极接地。Please refer to FIG. 2 , in a further implementation of an embodiment, the write current sampling module 300 includes a third MOS transistor N3; the gate of the third MOS transistor N3 is connected to the gate of the second MOS transistor N2 The gate is connected, the drain of the third MOS transistor N3 is connected to the current comparison module 400 , and the source of the third MOS transistor N3 is grounded.

具体地,所述第三MOS管N3的栅极与所述第二MOS管N2的栅极连接,以对流经所述存储器单元600的写入电流Iwrite进行采样得到采样电流,并将采样电流输入至所述电流比较模块400,通过将采样电流与电流比较模块400提供的预设电流进行比较,若采样电流达到或接近预设电流时,则通过所述关断控制模块500中断写入过程。Specifically, the gate of the third MOS transistor N3 is connected to the gate of the second MOS transistor N2 to sample the write current Iwrite flowing through the memory unit 600 to obtain a sampling current, and input the sampling current into To the current comparison module 400 , by comparing the sampled current with the preset current provided by the current comparison module 400 , if the sampled current reaches or approaches the preset current, the shutdown control module 500 interrupts the writing process.

请参阅图2,在一个实施例的进一步地实施方式中,所述电流比较模块400包括:若干个电流源(I1、I2...In)以及与所述电流源串联的开关MOS管(b0、b1...bn),所述开关MOS管分别与写入电流采样模块300以及所述关断控制模块500连接。Please refer to FIG. 2, in a further implementation of an embodiment, the current comparison module 400 includes: several current sources (I1, I2...In) and switch MOS transistors (b0) connected in series with the current sources , b1...bn), the switching MOS transistors are connected to the write current sampling module 300 and the shutdown control module 500 respectively.

具体地,所述电流比较模块400是以电流源为负载的电流镜结构,所述电流比较模块400的输出为电流源与开关MOS管串联的中间节点Vmid的电压大小,Vmid的大小会随着写入电流Iwrite的变化而变化,并与所述关断控制模块500形成闭合的写入电流关断控制回路。Specifically, the current comparison module 400 is a current mirror structure with a current source as the load, and the output of the current comparison module 400 is the voltage of the middle node Vmid where the current source is connected in series with the switching MOS transistor, and the size of Vmid will vary with The write current Iwrite varies, and forms a closed write current shutdown control loop with the shutdown control module 500 .

请参阅图2与图3,在一个实施例的进一步地实施方式中,当写入电路执行Set操作时,所述关断控制模块500包括:偶数个反相器与第四MOS管SW1;其中,所述反相器的输入端与所述电流比较模块400的输出端连接,所述反相器的输出端与所述第四MOS管SW1的栅极连接;所述第四MOS管SW1的漏极与所述存储器单元600的另一端连接,所述第四MOS管SW1的源极与所述第二电压钳位模块200连接。Please refer to FIG. 2 and FIG. 3 , in a further implementation of an embodiment, when the writing circuit performs a Set operation, the shutdown control module 500 includes: an even number of inverters and a fourth MOS transistor SW1; , the input end of the inverter is connected to the output end of the current comparison module 400, the output end of the inverter is connected to the gate of the fourth MOS transistor SW1; the fourth MOS transistor SW1 The drain is connected to the other end of the memory unit 600 , and the source of the fourth MOS transistor SW1 is connected to the second voltage clamping module 200 .

具体地,所述第四MOS管SW1为N型MOS管,所述反相器具有偶数个,如图2所示,在一种实现方式中可以设置为2个,分别为反相器C1与反相器C2,并串联在所述第四MOS关与节点Vmid之间(反相器C1输出为Vmid_i,反相器C2输出为Vmid_d),随着写入电流Iwrite的增大,采样电流随着增大,而节点电压Vmid逐渐减小,当Vmid接近0V时,所述反相器输出高低电平关断第四MOS管SW1,从而关断存储器单元600的写入电流路径,完成自中断写入过程,相应信号的时域波形图如图3所示。Specifically, the fourth MOS transistor SW1 is an N-type MOS transistor, and there are an even number of inverters, as shown in FIG. The inverter C2 is connected in series between the fourth MOS gate and the node Vmid (the output of the inverter C1 is Vmid_i, and the output of the inverter C2 is Vmid_d). As the write current Iwrite increases, the sampling current increases with increases gradually, while the node voltage Vmid gradually decreases. When Vmid is close to 0V, the inverter outputs high and low levels to turn off the fourth MOS transistor SW1, thereby turning off the writing current path of the memory unit 600 and completing self-interruption During the writing process, the time-domain waveform diagram of the corresponding signal is shown in FIG. 3 .

可见,存储器单元600写入的过程是一个负反馈的过程,可以通过改变电流源(I1,I2,…In)的电流大小来决定关断时存储器单元600的写入电流Iwrite大小,又由于存储器单元600两端的电压被固定,因此可以决定存储器单元600的写入电阻大小,从而实现多比特RRAM的写入功能。It can be seen that the writing process of the memory cell 600 is a negative feedback process, and the magnitude of the write current Iwrite of the memory cell 600 when it is turned off can be determined by changing the current magnitude of the current source (I1, I2, ... In), and because the memory The voltage at both ends of the cell 600 is fixed, so the write resistance of the memory cell 600 can be determined, thereby realizing the write function of the multi-bit RRAM.

请参阅图4与图5,在一些实施例中,当写入电路执行Reset操作时,所述关断控制模块500包括:奇数个反相器与第四MOS管SW1;其中,所述反相器的输入端与所述电流比较模块400的输出端连接,所述反相器的输出端与所述第四MOS管SW1的栅极连接;所述第四MOS管SW1的漏极与所述存储器单元600的另一端连接,所述第四MOS管SW1的源极与所述第二电压钳位模块200连接。Please refer to FIG. 4 and FIG. 5. In some embodiments, when the writing circuit performs a Reset operation, the shutdown control module 500 includes: an odd number of inverters and a fourth MOS transistor SW1; The input terminal of the inverter is connected to the output terminal of the current comparison module 400, the output terminal of the inverter is connected to the gate of the fourth MOS transistor SW1; the drain of the fourth MOS transistor SW1 is connected to the gate of the fourth MOS transistor SW1 The other end of the memory unit 600 is connected, and the source of the fourth MOS transistor SW1 is connected to the second voltage clamping module 200 .

具体地,Reset操作的原理和Set的电路D的原理是相同的,都是保持RRAM两端的电压固定,采样写入电流Iwrite大小来获知RRAM电阻大小,然后使用负反馈的方式关断写入电流。与Set操作不同的是,所述存储器单元600的写入电压的方向是相反的,所述存储器单元600的电阻值由小变大,写入电流Iwrite逐渐减小,Vmid电压从低到高,最后所述第二MOS管N2的栅极电压变为0,使得第二MOS管N2关断,存储器单元600的写入电流路径关断,相应信号的时域波形图如图5所示。因存储器单元600的写入电压的方向是相反的,因而反相器的数量为奇数个,在一种实现方式中,反向器的数量可以是一个,如图4中的反相器C3。Specifically, the principle of the Reset operation is the same as the principle of Set’s circuit D, both of which keep the voltage across the RRAM constant, sample the write current Iwrite to know the resistance of the RRAM, and then use negative feedback to turn off the write current. . The difference from the Set operation is that the direction of the write voltage of the memory cell 600 is opposite, the resistance value of the memory cell 600 increases from small to large, the write current Iwrite gradually decreases, and the Vmid voltage increases from low to high. Finally, the gate voltage of the second MOS transistor N2 becomes 0, so that the second MOS transistor N2 is turned off, and the write current path of the memory unit 600 is turned off. The time domain waveform diagram of the corresponding signal is shown in FIG. 5 . Since the direction of the write voltage of the memory cell 600 is opposite, the number of inverters is an odd number. In an implementation manner, the number of inverters may be one, such as the inverter C3 in FIG. 4 .

请参阅图2,在一个实施例的进一步地实施方式中,所述多比特阻变式随机存储器写入电路还包括:第五MOS管SW2与第六MOS管SW3;其中,所述第五MOS管SW2的栅极与所述第四MOS管SW1的栅极连接,所述第五MOS管SW2的漏极与所述第二MOS管N2的栅极连接,所述第五MOS管SW2的源极接入供电电压VDD;所述第六MOS管SW3连接在所述第二运算放大器A2的输出端与所述第二MOS管N2的栅极之间。Please refer to FIG. 2. In a further implementation of an embodiment, the multi-bit resistive random access memory writing circuit further includes: a fifth MOS transistor SW2 and a sixth MOS transistor SW3; wherein, the fifth MOS The gate of the transistor SW2 is connected to the gate of the fourth MOS transistor SW1, the drain of the fifth MOS transistor SW2 is connected to the gate of the second MOS transistor N2, and the source of the fifth MOS transistor SW2 The pole is connected to the power supply voltage VDD; the sixth MOS transistor SW3 is connected between the output terminal of the second operational amplifier A2 and the gate of the second MOS transistor N2.

具体地,写入电路在执行Set操作时,存在两个交叠的负反馈回路,一个是电流比较模块400的负反馈回路(N3→Vmid→SW1→N2→VG→N3),另一个是位线BL的钳位电压负反馈回路(Vin+→Amp1→VG→N2→Vin+,Vin+为第四MOS管与第二MOS管共接端的节点电压)。在这个两个负反馈回路中第二MOS管N2都起到重要的作用,可能产生竞争控制,在写入结束后导致环路产生震荡。通过环路中加入第五MOS管SW2与第六MOS管SW3作为开关管,在写入过程中第五MOS管SW2断开,第六MOS管SW3闭合,正常写入,而在写入过程结束后第六MOS管SW3断开钳位负反馈回路,第五MOS管SW2闭合使第二MOS管N2的栅电压VG有一个固定的终态值,从而避免环路震荡。Specifically, when the write circuit performs the Set operation, there are two overlapping negative feedback loops, one is the negative feedback loop of the current comparison module 400 (N3→Vmid→SW1→N2→VG→N3), and the other is the bit The clamping voltage negative feedback loop of the line BL (Vin+→Amp1→VG→N2→Vin+, Vin+ is the node voltage of the common terminal of the fourth MOS transistor and the second MOS transistor). In the two negative feedback loops, the second MOS transistor N2 plays an important role, which may cause competition control and cause the loop to oscillate after writing. By adding the fifth MOS transistor SW2 and the sixth MOS transistor SW3 in the loop as switch tubes, the fifth MOS transistor SW2 is disconnected during the writing process, the sixth MOS transistor SW3 is closed, and normal writing is performed. The last sixth MOS transistor SW3 disconnects the clamping negative feedback loop, and the fifth MOS transistor SW2 closes so that the gate voltage VG of the second MOS transistor N2 has a fixed final value, thereby avoiding loop oscillation.

需要说明的是,写入电路在执行Reset操作时,由于第二MOS管N2的栅极电压VG最终会变为0而关断,因而不会存在震荡问题,所以在执行Reset操作时,所述第五MOS管SW2与第六MOS管SW3可以省去。It should be noted that, when the write circuit executes the Reset operation, since the gate voltage VG of the second MOS transistor N2 will eventually become 0 and be turned off, there will be no oscillation problem, so when the Reset operation is executed, the The fifth MOS transistor SW2 and the sixth MOS transistor SW3 can be omitted.

请参阅图2与图4,在一个实施例的进一步地实施方式中,所述多比特阻变式随机存储器写入电路还包括:第七MOS管SW4,所述第七MOS管SW4的栅极接入使能信号W_EN,所述第七MOS管SW4的漏极与所述第三MOS管N3的源极连接,所述第七MOS管SW4的源极接地。Please refer to FIG. 2 and FIG. 4. In a further implementation of an embodiment, the multi-bit resistive random access memory writing circuit further includes: a seventh MOS transistor SW4, the gate of the seventh MOS transistor SW4 The enable signal W_EN is connected, the drain of the seventh MOS transistor SW4 is connected to the source of the third MOS transistor N3, and the source of the seventh MOS transistor SW4 is grounded.

具体地,所述第七MOS管SW4为N型MOS管,所述第七MOS管SW4作为开关管用于控制所述电流比较模块400的工作状态,当所述第七MOS管SW4导通时(即使能信号W_EN为高电平时),所述电流比较模块400可以执行电流比较工作,当所述第七MOS管SW4截止时(即使能信号W_EN为低电平时),所述电流比较模块400停止工作,也就是说,通过控制所述第七MOS管SW4的通断可以控制整个写入电路的工作状态。Specifically, the seventh MOS transistor SW4 is an N-type MOS transistor, and the seventh MOS transistor SW4 is used as a switch to control the working state of the current comparison module 400. When the seventh MOS transistor SW4 is turned on ( That is, when the enable signal W_EN is at a high level), the current comparison module 400 can perform a current comparison operation, and when the seventh MOS transistor SW4 is turned off (that is, when the enable signal W_EN is at a low level), the current comparison module 400 stops work, that is to say, the working state of the entire writing circuit can be controlled by controlling the on-off of the seventh MOS transistor SW4.

请参阅图6,在一些实施例中,本发明还提供了一种应用于如上述所述的多比特阻变式随机存储器写入电路的写入方法,其包括步骤:Please refer to FIG. 6. In some embodiments, the present invention also provides a writing method applied to the above-mentioned multi-bit resistive random access memory writing circuit, which includes steps:

S100、通过第一电压钳位模块与第二电压钳位模块保持存储器单元两端的电压固定;具体如一种多比特阻变式随机存储器写入电路的实施例所述,在此不再赘述。S100. Use the first voltage clamping module and the second voltage clamping module to keep the voltage at both ends of the memory unit constant; the details are as described in the embodiment of a multi-bit resistive random access memory writing circuit, and will not be repeated here.

S200、通过写入电流采样模块采样流过所述存储器单元的写入电流大小并输出采样电流至电流比较模块;具体如一种多比特阻变式随机存储器写入电路的实施例所述,在此不再赘述。S200. Sampling the magnitude of the writing current flowing through the memory unit through the writing current sampling module and outputting the sampling current to the current comparison module; specifically as described in an embodiment of a multi-bit resistive random access memory writing circuit, here No longer.

S300、当所述采样电流接近或达到所述预设电流时通过关断控制模块中断写入过程;其中,通过电流比较模块调整预设电流的大小以控制写入电流的大小。具体如一种多比特阻变式随机存储器写入电路的实施例所述,在此不再赘述。S300, when the sampling current approaches or reaches the preset current, interrupt the writing process by shutting down the control module; wherein, adjust the preset current through the current comparison module to control the writing current. The details are as described in the embodiment of a multi-bit resistive random access memory writing circuit, and will not be repeated here.

请参阅图7,在一些实施例中,本发明还提供了一种存储器装置,其包括若干阵列设置的存储器单元,以及如上述所述的多比特阻变式随机存储器写入电路,所述多比特阻变式随机存储器写入电路分别对应与所述存储器单元连接。Please refer to FIG. 7. In some embodiments, the present invention also provides a memory device, which includes a plurality of memory cells arranged in an array, and the multi-bit resistive random access memory writing circuit as described above. The multiple Bit resistive random access memory writing circuits are correspondingly connected to the memory units.

具体地,所述多比特阻变式随机存储器写入电路通过与存储器单元的位线BL、源线SL、字线WL连接在一起组成存储器阵列。在存储器阵列中,通过选择某一列的写入电压Vwrite置位为高电平,然后再开启其中某一行的字线WL电压,通过设置不同的电流源的电流大小,即可对阵列中的每个存储器单元逐一执行多比特写入。Specifically, the multi-bit RRAM writing circuit is connected to the bit line BL, the source line SL, and the word line WL of the memory cells to form a memory array. In the memory array, by selecting the write voltage Vwrite of a certain column and setting it as a high level, and then turning on the word line WL voltage of a certain row, and by setting the current magnitude of different current sources, each memory cells one by one to perform multi-bit write.

综上所述,本发明所提供的一种多比特阻变式随机存储器写入电路、方法及存储器装置,具有以下有益效果:In summary, a multi-bit resistive random access memory writing circuit, method and memory device provided by the present invention have the following beneficial effects:

通过调节预设电流的大小来控制写入电流的大小,因存储器两端的电压被钳位固定,从而能够根据写入电流的大小以间接获知存储器单元的电阻的大小,从而实现多比特阻变式随机存储器的写入功能;The magnitude of the write current is controlled by adjusting the magnitude of the preset current, because the voltage at both ends of the memory is clamped and fixed, so that the resistance of the memory cell can be indirectly known according to the magnitude of the write current, thereby realizing a multi-bit resistance variable Write function of random access memory;

采用恒压写入的方式相对于脉冲写入而言不需要额外的脉冲发生器,避免了因电平频繁翻转而引起的功耗较高的问题,从而可以是实现多比特RRAM存储器阵列的低功耗写入。Compared with pulse writing, the method of constant voltage writing does not require an additional pulse generator, which avoids the problem of high power consumption caused by frequent level reversals, and thus can be a low-cost multi-bit RRAM memory array. power write.

应当理解的是,本发明的应用不限于上述的举例,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,所有这些改进和变换都应属于本发明所附权利要求的保护范围。It should be understood that the application of the present invention is not limited to the above examples, and those skilled in the art can make improvements or transformations according to the above descriptions, and all these improvements and transformations should belong to the protection scope of the appended claims of the present invention.

Claims (10)

1. A multi-bit resistive random access memory write circuit coupled to a memory cell, comprising: the device comprises a first voltage clamping module, a second voltage clamping module, a write-in current sampling module, a current comparison module and a turn-off control module;
the first voltage clamping module is connected with a first reference voltage and is connected with one end of the memory unit to generate a write-in current; the second voltage clamping module is connected with a second reference voltage and is connected with the other end of the memory unit; the first voltage clamping module and the second voltage clamping module are used for controlling the voltage of two ends of the memory unit not to change along with the change of the writing current;
the write current sampling module is respectively connected with the second voltage clamping module and the current comparison module and is used for sampling the magnitude of the write current flowing through the memory unit and outputting a sampling current to the current comparison module;
the current comparison module is respectively connected with the write current sampling module and the turn-off control module and is used for providing a preset current and generating a write turn-off control signal when the sampling current is close to or reaches the preset current so as to control the magnitude of the write current;
the turn-off control module is respectively connected with the current comparison module, the second voltage clamp module and the memory unit and is used for interrupting a writing process according to the writing turn-off control signal.
2. The multibit resistive random access memory write circuit of claim 1, wherein the first voltage clamping module comprises: the first operational amplifier and the first MOS tube; wherein,
the non-inverting input end of the first operational amplifier is connected to the first reference voltage, the inverting input end of the first operational amplifier is connected with the drain electrode of the first MOS tube, and the output end of the first operational amplifier is connected with the grid electrode of the first MOS tube;
the drain electrode of the first MOS tube is also connected with one end of the memory unit, and the source electrode of the first MOS tube is connected with the write-in current;
the second voltage clamping module comprises: the second operational amplifier and the second MOS tube; wherein,
the inverting input end of the second operational amplifier is connected with a second reference voltage, the non-inverting input end of the second operational amplifier is connected with the drain electrode of the second MOS tube, and the output end of the second operational amplifier is connected with the grid electrode of the second MOS tube;
the drain electrode of the second MOS tube is also connected with the other end of the memory unit, and the source electrode of the second MOS tube is grounded.
3. The multi-bit mram write circuit of claim 2, wherein the write current sampling module comprises a third MOS transistor; the grid electrode of the third MOS tube is connected with the grid electrode of the second MOS tube, the drain electrode of the third MOS tube is connected with the current comparison module, and the source electrode of the third MOS tube is grounded.
4. The multi-bit resistance random access memory write circuit of claim 1, wherein the current comparison module comprises: the current source switching circuit comprises a plurality of current sources and switch MOS tubes connected with the current sources in series, wherein the switch MOS tubes are respectively connected with a write-in current sampling module and a turn-off control module.
5. The multi-bit mram write circuit of claim 2, wherein the shutdown control module comprises: an even number of inverters and fourth MOS transistors; wherein,
the input end of the phase inverter is connected with the output end of the current comparison module, and the output end of the phase inverter is connected with the grid electrode of the fourth MOS tube;
the drain electrode of the fourth MOS tube is connected with the other end of the memory unit, and the source electrode of the fourth MOS tube is connected with the second voltage clamping module.
6. The multi-bit mram write circuit of claim 2, wherein the shutdown control module comprises: odd inverters and fourth MOS tubes; wherein,
the input end of the phase inverter is connected with the output end of the current comparison module, and the output end of the phase inverter is connected with the grid electrode of the fourth MOS tube;
the drain electrode of the fourth MOS tube is connected with the other end of the memory unit, and the source electrode of the fourth MOS tube is connected with the second voltage clamping module.
7. The multi-bit resistive random access memory write circuit of claim 4, further comprising: a fifth MOS transistor and a sixth MOS transistor; wherein,
the grid electrode of the fifth MOS tube is connected with the grid electrode of the fourth MOS tube, the drain electrode of the fifth MOS tube is connected with the grid electrode of the second MOS tube, and the source electrode of the fifth MOS tube is connected with a power supply voltage;
the sixth MOS tube is connected between the output end of the second operational amplifier and the grid electrode of the second MOS tube.
8. The multi-bit resistive random access memory write circuit of claim 3, further comprising: the grid electrode of the seventh MOS tube is connected with an enabling signal, the drain electrode of the seventh MOS tube is connected with the source electrode of the third MOS tube, and the source electrode of the seventh MOS tube is grounded.
9. A writing method applied to the multi-bit resistance random access memory writing circuit according to any one of claims 1 to 8, comprising:
the voltage at two ends of the memory unit is kept fixed through the first voltage clamping module and the second voltage clamping module;
sampling the magnitude of the write current flowing through the memory unit through a write current sampling module and outputting the sampling current to a current comparison module;
interrupting the writing process by turning off the control module when the sampling current approaches or reaches the preset current; the magnitude of the preset current is adjusted through the current comparison module to control the magnitude of the write current.
10. A memory device, comprising a plurality of memory cells arranged in an array, and the multi-bit resistance variable random access memory writing circuit according to any one of claims 1 to 8, wherein the multi-bit resistance variable random access memory writing circuits are respectively connected to the memory cells.
CN202210766589.0A 2022-07-01 2022-07-01 Multi-bit resistive random access memory writing circuit, method and memory device Pending CN115312097A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210766589.0A CN115312097A (en) 2022-07-01 2022-07-01 Multi-bit resistive random access memory writing circuit, method and memory device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210766589.0A CN115312097A (en) 2022-07-01 2022-07-01 Multi-bit resistive random access memory writing circuit, method and memory device

Publications (1)

Publication Number Publication Date
CN115312097A true CN115312097A (en) 2022-11-08

Family

ID=83855440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210766589.0A Pending CN115312097A (en) 2022-07-01 2022-07-01 Multi-bit resistive random access memory writing circuit, method and memory device

Country Status (1)

Country Link
CN (1) CN115312097A (en)

Similar Documents

Publication Publication Date Title
JP4133149B2 (en) Semiconductor memory device
CN108092658A (en) A kind of logic circuit and its operating method
TWI686802B (en) Memory device and method of operating the same
Ohsawa et al. A 1.5 nsec/2.1 nsec random read/write cycle 1Mb STT-RAM using 6T2MTJ cell with background write for nonvolatile e-memories
WO2021051551A1 (en) Memristor memory chip and operation method therefor
CN110797062A (en) Read-write circuit and read-write method of memristor
US20250078921A1 (en) Duo-level word line driver
CN112786081A (en) Storage unit and chip
US8446754B2 (en) Semiconductor memory apparatus and method of driving the same
CN114694727A (en) Non-volatile storage unit data reading method and in-memory computing data reading method
CN115831190B (en) Self-write-stop operation circuit and self-write-stop operation method of memristor
US20220262435A1 (en) Storage and Computing Unit and Chip
US20150117087A1 (en) Self-terminating write for a memory cell
CN115995254A (en) A Complete Non-Volatile Boolean Logic Circuit Based on 1T1R Array and Its Control Method
WO2020177089A1 (en) 2t2r resistive random access memory with differential architecture, and mcu and device
CN115312097A (en) Multi-bit resistive random access memory writing circuit, method and memory device
WO2021051550A1 (en) Anti-overwrite circuit and method for memristor
CN218585646U (en) Multi-bit resistive random access memory writing circuit and memory device
CN110890122A (en) A 1S1R unit read control circuit
TWI773393B (en) Signal amplification in mram during reading
WO2022222274A1 (en) Data readout circuit for resistive random access memory, and resistive random access memory circuit
CN115171754A (en) Voltage regulator circuit and memory device
CN115641892A (en) Voltage regulator circuit and memory device
CN110164497B (en) Nonvolatile memory sense amplifier and phase change memory
TWI751048B (en) Memory device and operation thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination