WO2022233158A1 - Memory cell, memory array, logic calculation memory and logic calculation method - Google Patents

Memory cell, memory array, logic calculation memory and logic calculation method Download PDF

Info

Publication number
WO2022233158A1
WO2022233158A1 PCT/CN2022/072690 CN2022072690W WO2022233158A1 WO 2022233158 A1 WO2022233158 A1 WO 2022233158A1 CN 2022072690 W CN2022072690 W CN 2022072690W WO 2022233158 A1 WO2022233158 A1 WO 2022233158A1
Authority
WO
WIPO (PCT)
Prior art keywords
transistor
connection end
node
pole
read
Prior art date
Application number
PCT/CN2022/072690
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/CN2022/072690 priority Critical patent/WO2022233158A1/en
Publication of WO2022233158A1 publication Critical patent/WO2022233158A1/en

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C11/00Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor
    • G11C11/21Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using electric elements
    • G11C11/34Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using electric elements using semiconductor devices
    • G11C11/40Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using electric elements using semiconductor devices using transistors
    • G11C11/41Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using electric elements using semiconductor devices using transistors forming static cells with positive feedback, i.e. cells not needing refreshing or charge regeneration, e.g. bistable multivibrator or Schmitt trigger
    • G11C11/412Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using electric elements using semiconductor devices using transistors forming static cells with positive feedback, i.e. cells not needing refreshing or charge regeneration, e.g. bistable multivibrator or Schmitt trigger using field-effect transistors only

Definitions

  • the present invention relates to the technical field of storage devices, in particular to a storage unit, a memory array, a logical computing memory and a logical computing method.
  • the existing static random access memory (Static Random Access Memory, SRAM) is mainly based on a 6-tube structure or an 8-tube structure.
  • Figure 1 is a schematic diagram of the memory cell circuit structure of the 6T SRAM.
  • the 8T SRAM is composed of six transistors.
  • Storage unit, each bit in the SRAM is stored in two cross-coupled inverters composed of four field effect transistors (M1, M2, M3 and M4).
  • the other two field effect transistors (M5 and M6) are the control switches of the bit line (Bit Line) used by the memory cell for reading and writing.
  • the basic storage unit of an SRAM has two stable states of 0 and 1. It is composed of two CMOS inverters.
  • the input and output of these two inverters are cross-connected, that is, the output of the first inverter is connected.
  • the input of the second inverter the output of the second inverter is connected to the input of the first inverter.
  • This realizes the locking and saving of the output states of the two inverters, that is, the state of one bit is stored.
  • the word line (Word Line) is increased to a high level, so that the transistors M5 and M6 used for the two control switches of each basic unit are turned on, and the basic unit is connected to the bit line (Bit Line).
  • the bit lines are used to read or write the saved state of the base cell. Although it is not necessary to have two inverted bit lines, such inverted bit lines help to improve noise margin.
  • other SRAMs have 8-tube, 10-tube and even more transistor implementations per bit.
  • Figure 2 is an 8T Schematic diagram of the memory cell circuit structure of SRAM
  • Figure 3 is based on 8T Schematic diagram of column-oriented logic operation of SRAM.
  • Figure 4 shows the relationship between RBL discharge and operation results.
  • What they implement are logical operations or CAM search operations based on the column direction, and the operation operands or search data must be stored in the same column.
  • the present application mainly provides a storage unit, which is used to solve the technical problem of how to realize the poor flexibility of logic calculation of memory data based on SRAM.
  • an embodiment provides a memory cell including a memory circuit, a first write control circuit, a second write control circuit, a first read control circuit, a second read control circuit, and a node Q and node QB;
  • the first write control circuit includes a VBL connection end, a VBLB connection end, a HWWL connection end, a first storage connection end and a second storage connection end; the HWWL connection end is used to input a write control signal HWWL, the VBL
  • the connection terminal and the VBLB connection terminal are used for inputting the first write data signal, the first storage connection terminal is connected to the node Q, and the second storage connection terminal is connected to the node QB; the first storage connection terminal is connected to the node QB;
  • the write control circuit is configured to output the electrical signals input to the VBL connection end and the VBLB connection end to the node Q and the node QB respectively when the write control signal HWWL is input to the HWWL connection end;
  • the second write control circuit includes an HBL connection end, an HBLB connection end, a VWWL connection end, a third storage connection end and a fourth storage connection end; the VWWL connection end is used for inputting the write control signal VWWL, the HBL connection end
  • the connection terminal and the HBLB connection terminal are used for inputting a second write data signal, the third storage connection terminal is connected to the node Q, and the fourth storage connection terminal is connected to the node QB; the second storage connection terminal is connected to the node QB.
  • the write control circuit is configured to output the electrical signal input to the HBL connection end and the HBLB connection end to the node Q and the node QB respectively when the write control signal VWWL is input to the VWWL connection end;
  • the storage circuit is connected to the node Q and the node QB; the storage circuit is used to hold the first write data signal or the second write data signal input from the node Q or the node QB, and to The first write data signal or the second write data signal is used as the storage data signal of the storage unit;
  • the first read control circuit is connected to the node Q for reading the memory cell;
  • the first read control circuit includes a VRWL connection end and an HRBL connection end;
  • the VRWL connection end is used for read control The input of the signal VRWL, when the VRWL connection terminal inputs the read control signal VRWL, the HRBL connection terminal is used to output the stored data signal;
  • the second read control circuit is connected to the node Q for reading the memory cell;
  • the first read control circuit includes a HRWL connection end and a VRBL connection end;
  • the HRWL connection end is used for read control The input of the signal HRWL, when the HRWL connection end inputs the read control signal HRWL, the VRBL connection end is used for outputting the stored data signal.
  • an embodiment provides a memory array including N rows and M columns of the memory cells described in the first aspect; wherein N and M are both natural numbers.
  • an embodiment provides a logical computing memory, comprising the memory array of the second aspect
  • the logical calculation memory further includes a horizontal read word line, a vertical read word line, a horizontal read bit line, a vertical read bit line, a first write control line and a second write control line;
  • the horizontal read word line is connected to the HRWL connection end of each of the memory cells of the memory array, and the vertical read bit line is connected to the VRBL connection end of each of the memory cells of the memory array, using reading the stored data signal through the second read control circuit;
  • the vertical read word line is connected to the VRWL connection end of each of the memory cells of the memory array, and the horizontal read bit line is connected to the HRBL connection end of each of the memory cells of the memory array, using reading the stored data signal through the first read control circuit;
  • the first write control line is connected to the HWWL connection terminal of the first write control circuit of each of the memory cells of the memory array, and is used for connecting the first write control circuit in the row direction of the memory array. writing data signals into the storage unit;
  • the second write control line is connected to the VWWL connection terminal of the second write control circuit of each of the memory cells of the memory array, and is used for connecting the second write control circuit in the column direction of the memory array.
  • Write data signals are input to the memory cells.
  • an embodiment provides a logical computing method based on the logical computing memory described in the third aspect, the logical computing method comprising:
  • the horizontal read bit line reads the stored data signal through the first read control circuit
  • the vertical read bit line reads the stored data signal through the second read control circuit
  • Logic calculation is performed on the stored data signal output by the horizontal read bit line or the vertical read bit line to obtain and output a result of the logic calculation.
  • the memory cell includes a memory circuit, a first write control circuit, a second write control circuit, a first read control circuit and a second read control circuit; the first write control circuit and the second write control circuit
  • the input control circuit is used to write the first write data signal or the second write data signal into the storage circuit
  • the storage circuit is used to use the first write data signal or the second write data signal as the stored data signal
  • the fetch control circuit and the second read control circuit are used for reading the stored data signal from the storage circuit. Since it includes two sets of independent read and write control circuits, the memory array can read or write data in rows or columns, and when the data stored in rows or columns , the transposition of the stored data can be easily obtained when the column-direction or column-row readout is performed.
  • Figure 1 is 6T Schematic diagram of the memory cell circuit structure of SRAM
  • Figure 2 is 8T Schematic diagram of the memory cell circuit structure of SRAM
  • Figure 3 is based on the 8T Schematic diagram of column-oriented logic operation of SRAM
  • Fig. 4 is the relation table of RBL discharge condition and operation result
  • FIG. 5 is a schematic circuit diagram of a memory cell in an embodiment
  • FIG. 6 is a schematic diagram of column-direction logic computation implemented by a logic computation memory in an embodiment
  • FIG. 7 is a schematic diagram of a logic calculation memory implementing row-direction logic calculation in an embodiment
  • Fig. 8 is a row or column logical operation result relation table in an embodiment
  • FIG. 9 is a schematic diagram of a column-wise CAM search operation in an embodiment
  • FIG. 10 is a correspondence table of matching results between column-direction storage data and search data in an embodiment
  • FIG. 11 is a schematic diagram of a row-wise CAM search operation in an embodiment
  • FIG. 12 is a correspondence table of matching results between row-direction stored data and search data in an embodiment.
  • connection and “connection” mentioned in this application, unless otherwise specified, include both direct and indirect connections (connections).
  • the designed memory computing circuit can realize Bidirectional logical operation or CAM search operation based on column direction/row direction, data stored/read/written based on row direction matches with CAM search operation based on row direction, data stored/read/written based on column direction Matches column-direction based CAM search operations.
  • the data stored in the row direction is read out in the column direction, and the transposition readout of the stored data can be easily performed.
  • the transistors in this application may be transistors of any structure, such as bipolar transistors (BJTs) or field effect transistors (FETs).
  • BJTs bipolar transistors
  • FETs field effect transistors
  • the transistor When the transistor is a bipolar transistor, its control electrode refers to the gate of the bipolar transistor, the first electrode can be the collector or emitter of the bipolar transistor, and the corresponding second electrode can be the bipolar transistor. Emitter or collector, in the actual application process, “emitter” and “collector” can be interchanged according to the signal flow;
  • the transistor is a field effect transistor, its control electrode refers to the gate of the field effect transistor, the first One electrode can be the drain or source of the field effect transistor, and the corresponding second electrode can be the source or drain of the field effect transistor.
  • the "source” and “drain” can be based on the signal flow direction And exchange. It should be noted that, for the convenience of description and for those skilled in the art to understand the technical solutions of the present application more clearly, node Q and node QB are introduced into this application document to identify the relevant parts of the circuit structure, which cannot be regarded as extra in the circuit.
  • incoming terminals For the convenience of description, the potential is represented by V DD , the ground terminal of the unit is GND, and the actual ground terminal is represented by GND.
  • the memory unit includes two independent sets of read and write control circuits, so that the memory array can read or write data in rows, or read or write data in columns, and when When reading data stored in rows or columns column-wise or column-row-wise, it is easy to get the transpose of the stored data
  • FIG. 5 is a schematic circuit diagram of a storage unit in an embodiment.
  • the storage unit includes a storage circuit 1 , a first writing control circuit 2 , a second writing control circuit 3 , a first reading control circuit 4 , and a second writing control circuit 4 .
  • Read control circuit 5 node Q and node QB.
  • the first write control circuit 2 includes a VBL connection terminal, a VBLB connection terminal, a HWWL connection terminal, a first storage connection terminal and a second storage connection terminal.
  • the HWWL connection terminal is used to input the write control signal HWWL
  • the VBL connection terminal and the VBLB connection terminal are used to input the first write data signal
  • the first storage connection terminal is connected to the node Q
  • the second storage connection terminal is connected to the node QB.
  • the first write control circuit 2 is configured to output the electrical signals input to the VBL connection end and the VBLB connection end to the node Q and the node QB respectively when the write control signal HWWL is input to the HWWL connection end.
  • the second write control circuit 3 includes an HBL connection terminal, an HBLB connection terminal, a VWWL connection terminal, a third storage connection terminal and a fourth storage connection terminal.
  • the VWWL connection terminal is used to input the write control signal VWWL
  • the HBL connection terminal and the HBLB connection terminal are used to input the second write data signal
  • the third storage connection terminal is connected to the node Q
  • the fourth storage connection terminal is connected to the node QB.
  • the second write control circuit 3 is configured to output the electrical signals input to the HBL connection end and the HBLB connection end to the node Q and the node QB respectively when the write control signal VWWL is input to the VWWL connection end.
  • the storage circuit 1 is connected to the node Q and the node QB.
  • the memory circuit 1 is used to hold the first write data signal or the second write data signal input from the node Q or the node QB, and use the first write data signal or the second write data signal as the storage data signal of the memory unit.
  • the first read control circuit 4 is connected to the node Q for reading the memory cells.
  • the first read control circuit 4 includes a VRWL connection end and an HRBL connection end.
  • the VRWL connection end is used to read the input of the control signal VRWL. When the VRWL connection end inputs the read control signal VRWL, the HRBL connection end is used to output the stored data signal.
  • the second read control circuit 5 is connected to the node Q for reading the memory cells.
  • the first read control circuit 5 includes a HRWL connection end and a VRBL connection end.
  • the HRWL connection end is used for the input of the read control signal HRWL. When the HRWL connection end inputs the read control signal HRWL, the VRBL connection end is used to output the stored data signal. .
  • the storage circuit 1 includes a latch, and the latch includes a transistor P10 , a transistor P11 , a transistor N10 and a transistor N11 , wherein each transistor includes a first electrode, a second stage and a control electrode.
  • the control electrode of the transistor P10 is connected to the node QB, the first electrode of the transistor P10 is used for inputting the working voltage signal V DD , and the second electrode of the transistor P10 is connected to the node Q.
  • the control electrode of the transistor P11 is connected to the node Q, the first electrode of the transistor P11 is used for inputting the working voltage signal V DD , and the second electrode of the transistor P11 is connected to the node QB.
  • the control electrode of the transistor N10 is connected to the node QB, the first electrode of the transistor N10 is connected to the node Q, and the second electrode of the transistor N10 is grounded.
  • the control electrode of the transistor N11 is connected to the node Q, the first electrode of the transistor N11 is connected to the node QB, and the second electrode of the transistor N11 is grounded.
  • the first write control circuit 2 includes a transistor N12 and a transistor N13, wherein each transistor includes a first electrode, a second stage and a control electrode.
  • the control electrode of the transistor N12 is connected to the HWWL connection end, the first electrode of the transistor N12 is connected to the VBLB connection end, and the second electrode of the transistor N12 is connected to the second storage connection end.
  • the control electrode of the transistor N13 is connected to the HWWL connection end, the first electrode of the transistor N13 is connected to the VBL connection end, and the second electrode of the transistor N13 is connected to the first storage connection end.
  • the second writing control circuit includes a transistor N14 and a transistor N15, wherein each transistor includes a first electrode, a second stage and a control electrode.
  • the control pole of the transistor N14 is connected to the VWWL connection terminal
  • the first pole of the transistor N14 is connected to the HBLB connection terminal
  • the second pole of the transistor N14 is connected to the fourth storage connection terminal.
  • the control electrode of the transistor N15 is connected to the VWWL connection end
  • the first electrode of the transistor N15 is connected to the HBL connection end
  • the second electrode of the transistor N15 is connected to the third storage connection end.
  • the first read control circuit includes a transistor N16 and a transistor N17, wherein each transistor includes a first electrode, a second stage and a control electrode.
  • the control terminal of the transistor N17 is connected to the VRWL connection terminal, the first terminal of the transistor N17 is connected to the HRBL connection terminal, and the second terminal of the transistor N17 is connected to the first terminal of the transistor N16.
  • the control electrode of the transistor N16 is connected to the node Q, and the second electrode of the transistor N16 is grounded.
  • the second read control circuit includes a transistor N18 and a transistor N19, wherein each transistor includes a first electrode, a second stage and a control electrode.
  • the control terminal of the transistor N19 is connected to the HRWL connection terminal
  • the first terminal of the transistor N19 is connected to the VRBL connection terminal
  • the second terminal of the transistor N19 is connected to the first terminal of the transistor N18.
  • the control electrode of the transistor N18 is connected to the node QB, and the second electrode of the transistor N18 is grounded.
  • a memory array including N rows and M columns of the above-mentioned memory cells.
  • N and M are both natural numbers.
  • a logic computing memory including the memory array as described above.
  • the logic computation memory further includes a horizontal read word line, a vertical read word line, a horizontal read bit line, a vertical read bit line, a first write control line and a second write control line.
  • the horizontal read word line is connected to the HRWL connection end of each memory cell of the memory array, and the horizontal read bit line is connected to the VRBL connection end of each memory cell of the memory array, for reading the memory through the second read control circuit data signal.
  • the vertical read word line is connected to the VRWL connection end of each memory cell of the memory array, and the vertical read bit line is connected to the HRBL connection end of each memory cell of the memory array for reading through the first read control circuit Take the stored data signal.
  • the first write control line is connected to the HWWL connection terminal of the first write control circuit of each memory cell of the memory array, and is used for inputting the first write data signal into the memory cell in the row direction of the memory array.
  • the second write control line is connected to the VWWL connection terminal of the second write control circuit of each memory cell of the memory array, and is used for inputting the second write data signal into the memory cells in the column direction of the memory array.
  • the logic calculation memory further includes a logic operation circuit, the logic operation circuit is connected to the horizontal read bit line and the vertical read bit line, and is used for performing the operation on the stored data signal output by the horizontal read bit line or the vertical read bit line. Logical calculation, and output the logical calculation result obtained by the logical calculation.
  • a logical calculation method is also disclosed. Based on the above-mentioned logical calculation memory, the logical calculation method includes:
  • the horizontal read bit line reads the stored data signal through the first read control circuit, or the vertical read bit line reads the stored data signal through the second read control circuit; then the horizontal read bit line or the vertical read bit line is read.
  • the output stored data signal is used for logic calculation to obtain and output the result of the logic calculation.
  • FIG. 6 is a schematic diagram of column-direction logic computation implemented by a logic computation memory in an embodiment.
  • the logic computation circuit SA reads the VRBL connection terminals of two memory cells connected by a vertical read bit line, and reads the memory of the two memory cells. data signal, and perform logical operations on the two stored data signals.
  • FIG. 7 is a schematic diagram of a logic calculation memory implementing row-direction logic calculation in an embodiment.
  • the logic calculation circuit SA reads the stored data of the two memory cells through the HRBL connection terminals of the two memory cells connected by the horizontal read bit line. signal, and perform logical operations on the two stored data signals.
  • FIG. 8 is a logical operation result relation table by row or column in an embodiment.
  • the logical operation result relation table is used to represent two stored data signals (Q1 is the first bit line) obtained by the horizontal read bit line or the vertical read bit line.
  • Q1 is the first bit line
  • the storage data signal stored in one storage unit and the storage data signal stored in the second storage unit of Q2) perform logical calculation (OR and/or NOR) to obtain a corresponding table of results.
  • the SRAM structure proposed in the embodiments of the present application can implement reading/writing of data in a row direction or a column direction.
  • the read operation includes:
  • the vertical read word line VRWL of the column to be read is activated, and the data will be read from the SA at the end of the horizontal read bit line HRBL precharged to a high level.
  • the write operation includes:
  • the data to be written is preloaded on the vertical bit lines VBLs and VBLBs, the horizontal write word line HWWL corresponding to the row to be written is activated, and the data will be written to the row by row. SRAM.
  • the data to be written is preloaded on the horizontal bit lines HBLs and HBLBs, the vertical write word line VWWL corresponding to the row to be written is activated, and the data will be written in columns to SRAM.
  • FIG. 9 is a schematic diagram of a column-wise CAM search operation in an embodiment
  • FIG. 10 A corresponding table of matching results between the stored data and the search data in the column direction, wherein the memory array is taken as an example of memory cells with 3 rows and 3 columns.
  • the vertical write word lines and vertical read word lines VWWL/VRWL are configured as search lines SL/SLB (that is, when the data to be searched is 1, a high level is loaded on VWWL/VRWL/ Low level (1/0)), the horizontal bit line and the horizontal read bit line HBL/HRBL are configured as matching lines ML/ML′, when the data stored in a row matches the searched data direction, the result 1 is output, otherwise it is output Result 0.
  • FIG. 11 is a schematic diagram of a row-wise CAM search operation in an embodiment. Take the storage unit as an example.
  • the horizontal write word lines and horizontal read word lines HWWL/HRWL are configured as search lines SL/SLB (that is, when the data to be searched is 1, the HWWL/HRWL is loaded with high level/low power Flat (1/0)), the vertical bit line and the vertical read bit line VBL/VRBL are configured as matching lines ML/ML′, when the data stored in a certain column matches the searched data direction, the output result is 1, otherwise it is output Result 0.
  • the transposition of the stored data when the data stored in rows is read out in the column direction, the transposition of the stored data can be easily obtained. Similarly, the row-wise readout of the data stored in columns can also obtain the transposition of the stored data.
  • the memory cells disclosed in the embodiments of the present application are 12T SRAM cells, and the composed memory array can read/write/store data in the row/column direction (traditional SRAM memory arrays can only read/write/store data in the row direction). write/store data), and the present invention also proposes a method for using the 12T SRAM circuit structure to implement bidirectional logic operations in row/column directions and CAM search operations (traditional SRAM-based memory computing circuits can only implement logic in column directions) operations and CAM search operations, and their stored data based on the row direction is not compatible with the CAM search operation based on the column direction).
  • the 12T SRAM cell structure has row access ports (horizontal write word line HWWL, vertical bit line VBL/VBLB, transistors N12 and N13 for writing, horizontal read word line HRWL, vertical read bit line VRBL, transistors N18 and N19 for read/compute) and column access ports (vertical write word line VWWL, horizontal bit line HBL/HBLB, transistors N14 and N15 for writing, vertical read word line VRWL, horizontal read bit line HRBL, transistor N16 and N17 is used for reading/computing), the 12T SRAM can be read/written/stored in row direction/column direction, and a method of using this circuit structure to realize bidirectional logic operation in row/column direction and CAM search operation is proposed .
  • the present application discloses a storage unit, comprising a storage circuit, a first write control circuit, a second write control circuit, a first read control circuit and a second read control circuit; the first write control circuit and the second write control circuit
  • the write control circuit is used to write the first write data signal or the second write data signal into the storage circuit
  • the storage circuit is used to use the first write data signal or the second write data signal as the stored data signal
  • the first The read control circuit and the second read control circuit are used for reading the stored data signal from the storage circuit. Since it includes two sets of independent read and write control circuits, the memory array can read or write data in rows or columns, and when the data stored in rows or columns When performing column-wise or column-row-wise readout, the transpose of the stored data can be easily obtained.
  • the term “comprising” and any other variations thereof are non-exclusive inclusion, such that a process, method, article or device including a list of elements includes not only those elements, but also not expressly listed or included in the process , method, system, article or other elements of a device.
  • the term “coupled” and any other variations thereof refer to physical connections, electrical connections, magnetic connections, optical connections, communication connections, functional connections, and/or any other connection.

Landscapes

  • Engineering & Computer Science (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Computer Hardware Design (AREA)
  • Static Random-Access Memory (AREA)

Abstract

Disclosed in the present application are a memory cell, a memory array, a logic calculation memory and a logic calculation method. The memory cell comprises a memory circuit, a first write control circuit, a second write control circuit, a first read control circuit and a second read control circuit, wherein the first write control circuit and the second write control circuit are used for writing a first write data signal or a second write data signal into the memory circuit, the memory circuit is used for taking the first write data signal or the second write data signal as a memory data signal, and the first read control circuit and the second read control circuit are used for reading the memory data signal from the memory circuit. Since two groups of respectively independent read and write control circuits are comprised, a memory array can read or write data in rows, and can also read or write data in columns, and the transposition of stored data can be easily obtained when data, which is stored in rows or columns, is read in columns or rows.

Description

存储单元、存储器阵列、逻辑计算存储器和逻辑计算方法Memory unit, memory array, logic computing memory, and logic computing method 技术领域technical field
本发明涉及存储设备技术领域,具体涉及一种存储单元、存储器阵列、逻辑计算存储器和逻辑计算方法。The present invention relates to the technical field of storage devices, in particular to a storage unit, a memory array, a logical computing memory and a logical computing method.
背景技术Background technique
现有的静态随机存储器(Static Random Access Memory,SRAM)主要是基于6管结构或8管结构,请参考图1,为6T SRAM的存储单元电路结构示意图,8T SRAM是指由六个晶体管组成的存储单元,该SRAM中的每一bit存储在由4个场效应管(M1、 M2、 M3和 M4)构成两个交叉耦合的反相器中。另外两个场效应管(M5和 M6)是存储单元用于读写的位线(Bit Line)的控制开关。一个SRAM的基本存储单元有0 and 1两个电平稳定状态,是由两个CMOS反相器组成,这两个反相器的输入、输出交叉连接,即第一个反相器的输出连接第二个反相器的输入,第二个反相器的输出连接第一个反相器的输入。这实现了两个反相器的输出状态的锁定、保存,即存储了1个位元的状态。访问SRAM时,字线(Word Line)加高电平,使得每个基本单元的两个控制开关用的晶体管M5与M6开通,把基本单元与位线(Bit Line)连通。位线用于读或写基本单元的保存的状态。虽然不是必须两条取反的位线,但是这种取反的位线有助于改善噪声容限。除了六管的SRAM,其他SRAM还有8管、10管甚至每个位元使用更多的晶体管的实现。The existing static random access memory (Static Random Access Memory, SRAM) is mainly based on a 6-tube structure or an 8-tube structure. Please refer to Figure 1, which is a schematic diagram of the memory cell circuit structure of the 6T SRAM. The 8T SRAM is composed of six transistors. Storage unit, each bit in the SRAM is stored in two cross-coupled inverters composed of four field effect transistors (M1, M2, M3 and M4). The other two field effect transistors (M5 and M6) are the control switches of the bit line (Bit Line) used by the memory cell for reading and writing. The basic storage unit of an SRAM has two stable states of 0 and 1. It is composed of two CMOS inverters. The input and output of these two inverters are cross-connected, that is, the output of the first inverter is connected. The input of the second inverter, the output of the second inverter is connected to the input of the first inverter. This realizes the locking and saving of the output states of the two inverters, that is, the state of one bit is stored. When accessing the SRAM, the word line (Word Line) is increased to a high level, so that the transistors M5 and M6 used for the two control switches of each basic unit are turned on, and the basic unit is connected to the bit line (Bit Line). The bit lines are used to read or write the saved state of the base cell. Although it is not necessary to have two inverted bit lines, such inverted bit lines help to improve noise margin. In addition to the six-tube SRAM, other SRAMs have 8-tube, 10-tube and even more transistor implementations per bit.
请参考图2、图3和图4,其中,图2为8T SRAM的存储单元电路结构示意图,图3为基于是8T SRAM的列向逻辑运算示意图,图4为RBL放电情况与运算结果的关系表,当基于SRAM实现内存计算时,参与逻辑运算的两个操作数A和B分别存储在两个SRAM单元Cell1和Cell2中,当要执行逻辑运算时,存储着操作数的SRAM单元对应的读字线RWL被同时激活,根据存储值,被预充为高电平的读位线RBL会保持原来的高电平(当A=B=0时)或者被放电至低电平(当A, B至少有一个为1时),最后运算的结果由RBL末端的灵敏放大器SA读出。它们所实现的都是基于列方向的逻辑运算或者CAM搜索操作,运算操作数或者搜索的数据必须存储在同一列中。Please refer to Figure 2, Figure 3 and Figure 4, wherein Figure 2 is an 8T Schematic diagram of the memory cell circuit structure of SRAM, Figure 3 is based on 8T Schematic diagram of column-oriented logic operation of SRAM. Figure 4 shows the relationship between RBL discharge and operation results. When memory calculation is implemented based on SRAM, the two operands A and B involved in logic operation are stored in two SRAM cells Cell1 and Cell2 respectively. When the logic operation is to be performed, the read word line RWL corresponding to the SRAM cell that stores the operand is activated at the same time. According to the stored value, the read bit line RBL precharged to a high level will maintain the original high level ( When A=B=0) or discharged to a low level (when at least one of A and B is 1), the result of the last operation is read out by the sense amplifier SA at the end of the RBL. What they implement are logical operations or CAM search operations based on the column direction, and the operation operands or search data must be stored in the same column.
因此,在传统SRAM中,数据一般按行方向进行读取/写入/存储,列方向的逻辑运算可以实现不同行数据的按位运算,然而,列方向的CAM则需要数据按列方向进行写入/存储,因此现有基于6T SRAM和8T SRAM的内存计算电路中实现的逻辑运算功能和CAM搜索功能并不兼容,电路灵活性差。Therefore, in traditional SRAM, data is generally read/written/stored in the row direction, and the logical operation in the column direction can realize the bitwise operation of data in different rows, however, the CAM in the column direction requires data to be written in the column direction. input/storage, so existing based on 6T The logic operation function implemented in the memory computing circuit of SRAM and 8T SRAM is not compatible with the CAM search function, and the circuit flexibility is poor.
技术问题technical problem
本申请主要提供一种存储单元,本申请用于解决如何基于SRAM实现内存数据逻辑计算灵活性差的技术问题。The present application mainly provides a storage unit, which is used to solve the technical problem of how to realize the poor flexibility of logic calculation of memory data based on SRAM.
技术解决方案technical solutions
根据第一方面,一种实施例中提供一种存储单元,包括存储电路、第一写入控制电路、第二写入控制电路、第一读取控制电路、第二读取控制电路、节点Q和节点QB;According to a first aspect, an embodiment provides a memory cell including a memory circuit, a first write control circuit, a second write control circuit, a first read control circuit, a second read control circuit, and a node Q and node QB;
所述第一写入控制电路包括VBL连接端、VBLB连接端、HWWL连接端、第一存储连接端和第二存储连接端;所述HWWL连接端用于输入写入控制信号HWWL,所述VBL连接端和所述VBLB连接端用于输入第一写入数据信号,所述第一存储连接端与所述节点Q连接,所述第二存储连接端与所述节点QB连接;所述第一写入控制电路用于当所述HWWL连接端输入所述写入控制信号HWWL时,将输入所述VBL连接端和所述VBLB连接端的电信号分别输出给所述节点Q和节点QB;The first write control circuit includes a VBL connection end, a VBLB connection end, a HWWL connection end, a first storage connection end and a second storage connection end; the HWWL connection end is used to input a write control signal HWWL, the VBL The connection terminal and the VBLB connection terminal are used for inputting the first write data signal, the first storage connection terminal is connected to the node Q, and the second storage connection terminal is connected to the node QB; the first storage connection terminal is connected to the node QB; The write control circuit is configured to output the electrical signals input to the VBL connection end and the VBLB connection end to the node Q and the node QB respectively when the write control signal HWWL is input to the HWWL connection end;
所述第二写入控制电路包括HBL连接端、HBLB连接端、VWWL连接端、第三存储连接端和第四存储连接端;所述VWWL连接端用于输入写入控制信号VWWL,所述HBL连接端和所述HBLB连接端用于输入第二写入数据信号,所述第三存储连接端与所述节点Q连接,所述第四存储连接端与所述节点QB连接;所述第二写入控制电路用于当所述VWWL连接端输入所述写入控制信号VWWL时,将输入所述HBL连接端和所述HBLB连接端的电信号分别输出给所述节点Q和节点QB;The second write control circuit includes an HBL connection end, an HBLB connection end, a VWWL connection end, a third storage connection end and a fourth storage connection end; the VWWL connection end is used for inputting the write control signal VWWL, the HBL connection end The connection terminal and the HBLB connection terminal are used for inputting a second write data signal, the third storage connection terminal is connected to the node Q, and the fourth storage connection terminal is connected to the node QB; the second storage connection terminal is connected to the node QB. The write control circuit is configured to output the electrical signal input to the HBL connection end and the HBLB connection end to the node Q and the node QB respectively when the write control signal VWWL is input to the VWWL connection end;
所述存储电路与所述节点Q和所述节点QB连接;所述存储电路用于保持节点Q或节点QB输入的所述第一写入数据信号或所述第二写入数据信号,并将所述第一写入数据信号或所述第二写入数据信号作为所述存储单元的存储数据信号;The storage circuit is connected to the node Q and the node QB; the storage circuit is used to hold the first write data signal or the second write data signal input from the node Q or the node QB, and to The first write data signal or the second write data signal is used as the storage data signal of the storage unit;
所述第一读取控制电路与节点Q连接,用于所述存储单元的读取;所述第一读取控制电路包括VRWL连接端和HRBL连接端;所述VRWL连接端用于读取控制信号VRWL的输入,当所述VRWL连接端输入所述读取控制信号VRWL时,所述HRBL连接端用于输出所述存储数据信号;The first read control circuit is connected to the node Q for reading the memory cell; the first read control circuit includes a VRWL connection end and an HRBL connection end; the VRWL connection end is used for read control The input of the signal VRWL, when the VRWL connection terminal inputs the read control signal VRWL, the HRBL connection terminal is used to output the stored data signal;
所述第二读取控制电路与节点Q连接,用于所述存储单元的读取;所述第一读取控制电路包括HRWL连接端和VRBL连接端;所述HRWL连接端用于读取控制信号HRWL的输入,当所述HRWL连接端输入所述读取控制信号HRWL时,所述VRBL连接端用于输出所述存储数据信号。The second read control circuit is connected to the node Q for reading the memory cell; the first read control circuit includes a HRWL connection end and a VRBL connection end; the HRWL connection end is used for read control The input of the signal HRWL, when the HRWL connection end inputs the read control signal HRWL, the VRBL connection end is used for outputting the stored data signal.
根据第二方面,一种实施例中提供一种存储器阵列,包括N行M列个如第一方面所述的存储单元;其中,N和M均为自然数。According to a second aspect, an embodiment provides a memory array including N rows and M columns of the memory cells described in the first aspect; wherein N and M are both natural numbers.
根据第三方面,一种实施例中提供一种逻辑计算存储器,包括如第二方面所述的存储器阵列;According to a third aspect, an embodiment provides a logical computing memory, comprising the memory array of the second aspect;
所述逻辑计算存储器还包括水平读字线、竖直读字线、水平读位线、竖直读位线、第一写入控制线和第二写入控制线;The logical calculation memory further includes a horizontal read word line, a vertical read word line, a horizontal read bit line, a vertical read bit line, a first write control line and a second write control line;
所述水平读字线与所述存储器阵列的每个所述存储单元的HRWL连接端连接, 所述竖直读位线与所述存储器阵列的每个所述存储单元的VRBL连接端连接,用于通过所述第二读取控制电路读取所述存储数据信号;The horizontal read word line is connected to the HRWL connection end of each of the memory cells of the memory array, and the vertical read bit line is connected to the VRBL connection end of each of the memory cells of the memory array, using reading the stored data signal through the second read control circuit;
所述竖直读字线与所述存储器阵列的每个所述存储单元的VRWL连接端连接, 所述水平读位线与所述存储器阵列的每个所述存储单元的HRBL连接端连接,用于通过所述第一读取控制电路读取所述存储数据信号;The vertical read word line is connected to the VRWL connection end of each of the memory cells of the memory array, and the horizontal read bit line is connected to the HRBL connection end of each of the memory cells of the memory array, using reading the stored data signal through the first read control circuit;
所述第一写入控制线与所述存储器阵列的每个所述存储单元的所述第一写入控制电路的HWWL连接端连接,用于按所述存储器阵列的行方向将所述第一写入数据信号输入所述存储单元;The first write control line is connected to the HWWL connection terminal of the first write control circuit of each of the memory cells of the memory array, and is used for connecting the first write control circuit in the row direction of the memory array. writing data signals into the storage unit;
所述第二写入控制线与所述存储器阵列的每个所述存储单元的所述第二写入控制电路的VWWL连接端连接,用于按所述存储器阵列的列方向将所述第二写入数据信号输入所述存储单元。The second write control line is connected to the VWWL connection terminal of the second write control circuit of each of the memory cells of the memory array, and is used for connecting the second write control circuit in the column direction of the memory array. Write data signals are input to the memory cells.
根据第三方面,一种实施例中提供一种逻辑计算方法,基于第三方面所述的逻辑计算存储器,所述逻辑计算方法包括:According to a third aspect, an embodiment provides a logical computing method based on the logical computing memory described in the third aspect, the logical computing method comprising:
所述水平读位线通过所述第一读取控制电路读取所述存储数据信号;the horizontal read bit line reads the stored data signal through the first read control circuit;
所述竖直读位线通过所述第二读取控制电路读取所述存储数据信号;the vertical read bit line reads the stored data signal through the second read control circuit;
将所述水平读位线或所述竖直读位线输出的所述存储数据信号进行逻辑计算,以获取逻辑计算结果并输出。Logic calculation is performed on the stored data signal output by the horizontal read bit line or the vertical read bit line to obtain and output a result of the logic calculation.
有益效果beneficial effect
依据上述实施例的存储单元,包括存储电路、第一写入控制电路、第二写入控制电路、第一读取控制电路和第二读取控制电路;第一写入控制电路和第二写入控制电路用于将第一写入数据信号或第二写入数据信号写入存储电路,存储电路用于将第一写入数据信号或第二写入数据信号作为存储数据信号,第一读取控制电路和第二读取控制电路用于从存储电路中读取存储数据信号。由于包括两组各自独立的读取和写入控制电路,使得存储器阵列即可以按行读取或写入数据,也可以按列读取或写入数据,并当对按行或列存储的数据,进行列向或列行向读出时,可以很容易地得到所存储数据的转置。The memory cell according to the above embodiment includes a memory circuit, a first write control circuit, a second write control circuit, a first read control circuit and a second read control circuit; the first write control circuit and the second write control circuit The input control circuit is used to write the first write data signal or the second write data signal into the storage circuit, the storage circuit is used to use the first write data signal or the second write data signal as the stored data signal, the first read The fetch control circuit and the second read control circuit are used for reading the stored data signal from the storage circuit. Since it includes two sets of independent read and write control circuits, the memory array can read or write data in rows or columns, and when the data stored in rows or columns , the transposition of the stored data can be easily obtained when the column-direction or column-row readout is performed.
附图说明Description of drawings
图1为6T SRAM的存储单元电路结构示意图;Figure 1 is 6T Schematic diagram of the memory cell circuit structure of SRAM;
图2为8T SRAM的存储单元电路结构示意图;Figure 2 is 8T Schematic diagram of the memory cell circuit structure of SRAM;
图3为基于是8T SRAM的列向逻辑运算示意图;Figure 3 is based on the 8T Schematic diagram of column-oriented logic operation of SRAM;
图4为RBL放电情况与运算结果的关系表;Fig. 4 is the relation table of RBL discharge condition and operation result;
图5为一种实施例中存储单元的电路示意图;5 is a schematic circuit diagram of a memory cell in an embodiment;
图6为一种实施例中逻辑计算存储器实现列方向逻辑计算示意图;FIG. 6 is a schematic diagram of column-direction logic computation implemented by a logic computation memory in an embodiment;
图7为一种实施例中逻辑计算存储器实现行方向逻辑计算示意图;7 is a schematic diagram of a logic calculation memory implementing row-direction logic calculation in an embodiment;
图8为一种实施例中按行或列逻辑运算结果关系表;Fig. 8 is a row or column logical operation result relation table in an embodiment;
图9为一种实施例中按列向CAM搜索操作示意图;9 is a schematic diagram of a column-wise CAM search operation in an embodiment;
图10为一种实施例中列方向存储数据与搜索数据的匹配结果对应表;FIG. 10 is a correspondence table of matching results between column-direction storage data and search data in an embodiment;
图11为一种实施例中按行向CAM搜索操作示意图;11 is a schematic diagram of a row-wise CAM search operation in an embodiment;
图12为一种实施例中行方向存储数据与搜索数据的匹配结果对应表。FIG. 12 is a correspondence table of matching results between row-direction stored data and search data in an embodiment.
本发明的实施方式Embodiments of the present invention
下面通过具体实施方式结合附图对本发明作进一步详细说明。其中不同实施方式中类似元件采用了相关联的类似的元件标号。在以下的实施方式中,很多细节描述是为了使得本申请能被更好的理解。然而,本领域技术人员可以毫不费力的认识到,其中部分特征在不同情况下是可以省略的,或者可以由其他元件、材料、方法所替代。在某些情况下,本申请相关的一些操作并没有在说明书中显示或者描述,这是为了避免本申请的核心部分被过多的描述所淹没,而对于本领域技术人员而言,详细描述这些相关操作并不是必要的,他们根据说明书中的描述以及本领域的一般技术知识即可完整了解相关操作。The present invention will be further described in detail below through specific embodiments in conjunction with the accompanying drawings. Wherein similar elements in different embodiments have used associated similar element numbers. In the following embodiments, many details are described so that the present application can be better understood. However, those skilled in the art will readily recognize that some of the features may be omitted under different circumstances, or may be replaced by other elements, materials, and methods. In some cases, some operations related to the present application are not shown or described in the specification, in order to avoid the core part of the present application from being overwhelmed by excessive description, and for those skilled in the art, these are described in detail. The relevant operations are not necessary, and they can fully understand the relevant operations according to the descriptions in the specification and general technical knowledge in the field.
另外,说明书中所描述的特点、操作或者特征可以以任意适当的方式结合形成各种实施方式。同时,方法描述中的各步骤或者动作也可以按照本领域技术人员所能显而易见的方式进行顺序调换或调整。因此,说明书和附图中的各种顺序只是为了清楚描述某一个实施例,并不意味着是必须的顺序,除非另有说明其中某个顺序是必须遵循的。Additionally, the features, acts, or characteristics described in the specification may be combined in any suitable manner to form various embodiments. At the same time, the steps or actions in the method description can also be exchanged or adjusted in order in a manner obvious to those skilled in the art. Therefore, the various sequences in the specification and drawings are only for the purpose of clearly describing a certain embodiment and are not meant to be a necessary order unless otherwise stated, a certain order must be followed.
本文中为部件所编序号本身,例如“第一”、“第二”等,仅用于区分所描述的对象,不具有任何顺序或技术含义。而本申请所说“连接”、“联接”,如无特别说明,均包括直接和间接连接(联接)。The serial numbers themselves, such as "first", "second", etc., for the components herein are only used to distinguish the described objects, and do not have any order or technical meaning. The "connection" and "connection" mentioned in this application, unless otherwise specified, include both direct and indirect connections (connections).
现有的SRAM结构(6T SRAM和 8T SRAM等)只能将数据按行方向进行存储和读出/写入,且由其设计的内存计算电路实现的都是基于列方向的逻辑运算或CAM搜索操作,基于行方向存储和读出/写入的数据与其实现的基于列方向的CAM搜索操作并不兼容。本发明所提出的12T SRAM电路结构不仅能将数据按行方向存储和读出/写入,也能将数据按列方向存储和读出/写入,同时由其所设计的内存计算电路可实现基于列方向/行方向的双向逻辑操作或CAM搜索操作,基于行方向存储/读出/写入的数据与基于行方向的CAM搜索操作相匹配,基于列方向存储/读出/写入的数据与基于列方向的CAM搜索操作相匹配。此外,对基于行方向存储的数据进行列方向的读出,可以很容易地存储数据的转置读出。Existing SRAM structure (6T SRAM and 8T SRAM, etc.) can only store and read/write data in the row direction, and the memory computing circuit designed by it can realize the logical operation or CAM search operation based on the column direction. The data read/written is not compatible with the column-direction based CAM search operation it implements. The 12T SRAM circuit structure proposed by the present invention can not only store and read/write data in the row direction, but also store and read/write data in the column direction. At the same time, the designed memory computing circuit can realize Bidirectional logical operation or CAM search operation based on column direction/row direction, data stored/read/written based on row direction matches with CAM search operation based on row direction, data stored/read/written based on column direction Matches column-direction based CAM search operations. In addition, the data stored in the row direction is read out in the column direction, and the transposition readout of the stored data can be easily performed.
下面先对本申请所涉及到的一些术语作一个说明。Some terms involved in this application are first described below.
本申请中的晶体管可以是任何结构的晶体管,比如双极型晶体管(BJT)或者场效应晶体管(FET)。当晶体管为双极型晶体管时,其控制极是指双极型晶体管的栅极,第一极可以为双极型晶体管的集电极或发射极,对应的第二极可以为双极型晶体管的发射极或集电极,在实际应用过程中,“发射极”和“集电极”可以依据信号流向而互换;当晶体管为场效应晶体管时,其控制极是指场效应晶体管的栅极,第一极可以为场效应晶体管的漏极或源极,对应的第二极可以为场效应晶体管的源极或漏极,在实际应用过程中,“源极”和“漏极”可以依据信号流向而互换。需要说明的是,为了描述方便,也为了使本领域技术人员更清楚地理解本申请的技术方案,本申请文件中引入节点Q和节点QB对电路结构相关部分进行标识,不能认定为电路中额外引入的端子。为描述方便,电位采用V DD表示,单元接地端为GND,实际接地端采用GND表示。 The transistors in this application may be transistors of any structure, such as bipolar transistors (BJTs) or field effect transistors (FETs). When the transistor is a bipolar transistor, its control electrode refers to the gate of the bipolar transistor, the first electrode can be the collector or emitter of the bipolar transistor, and the corresponding second electrode can be the bipolar transistor. Emitter or collector, in the actual application process, "emitter" and "collector" can be interchanged according to the signal flow; when the transistor is a field effect transistor, its control electrode refers to the gate of the field effect transistor, the first One electrode can be the drain or source of the field effect transistor, and the corresponding second electrode can be the source or drain of the field effect transistor. In practical application, the "source" and "drain" can be based on the signal flow direction And exchange. It should be noted that, for the convenience of description and for those skilled in the art to understand the technical solutions of the present application more clearly, node Q and node QB are introduced into this application document to identify the relevant parts of the circuit structure, which cannot be regarded as extra in the circuit. incoming terminals. For the convenience of description, the potential is represented by V DD , the ground terminal of the unit is GND, and the actual ground terminal is represented by GND.
在本申请实施例中,存储单元包括两组各自独立的读取和写入控制电路,使得存储器阵列即可以按行读取或写入数据,也可以按列读取或写入数据,并当对按行或列存储的数据进行列向或列行向读出时,可以很容易地得到所存储数据的转置In the embodiment of the present application, the memory unit includes two independent sets of read and write control circuits, so that the memory array can read or write data in rows, or read or write data in columns, and when When reading data stored in rows or columns column-wise or column-row-wise, it is easy to get the transpose of the stored data
实施例1: Example 1:
请参照图5,为一种实施例中存储单元的电路示意图,存储单元包括存储电路1、第一写入控制电路2、第二写入控制电路3、第一读取控制电路4、第二读取控制电路5、节点Q和节点QB。第一写入控制电路2包括VBL连接端、VBLB连接端、HWWL连接端、第一存储连接端和第二存储连接端。HWWL连接端用于输入写入控制信号HWWL,VBL连接端和VBLB连接端用于输入第一写入数据信号,第一存储连接端与节点Q连接,第二存储连接端与节点QB连接。第一写入控制电路2用于当HWWL连接端输入写入控制信号HWWL时,将输入VBL连接端和VBLB连接端的电信号分别输出给节点Q和节点QB。第二写入控制电路3包括HBL连接端、HBLB连接端、VWWL连接端、第三存储连接端和第四存储连接端。VWWL连接端用于输入写入控制信号VWWL,HBL连接端和HBLB连接端用于输入第二写入数据信号,第三存储连接端与节点Q连接,第四存储连接端与节点QB连接。第二写入控制电路3用于当VWWL连接端输入写入控制信号VWWL时,将输入HBL连接端和HBLB连接端的电信号分别输出给节点Q和节点QB。存储电路1与节点Q和节点QB连接。存储电路1用于保持节点Q或节点QB输入的第一写入数据信号或第二写入数据信号,并将第一写入数据信号或第二写入数据信号作为存储单元的存储数据信号。第一读取控制电路4与节点Q连接,用于存储单元的读取。第一读取控制电路4包括VRWL连接端和HRBL连接端,VRWL连接端用于读取控制信号VRWL的输入,当VRWL连接端输入读取控制信号VRWL时,HRBL连接端用于输出存储数据信号。第二读取控制电路5与节点Q连接,用于存储单元的读取。第一读取控制电路5包括HRWL连接端和VRBL连接端,HRWL连接端用于读取控制信号HRWL的输入,当HRWL连接端输入读取控制信号HRWL时,VRBL连接端用于输出存储数据信号。Please refer to FIG. 5 , which is a schematic circuit diagram of a storage unit in an embodiment. The storage unit includes a storage circuit 1 , a first writing control circuit 2 , a second writing control circuit 3 , a first reading control circuit 4 , and a second writing control circuit 4 . Read control circuit 5, node Q and node QB. The first write control circuit 2 includes a VBL connection terminal, a VBLB connection terminal, a HWWL connection terminal, a first storage connection terminal and a second storage connection terminal. The HWWL connection terminal is used to input the write control signal HWWL, the VBL connection terminal and the VBLB connection terminal are used to input the first write data signal, the first storage connection terminal is connected to the node Q, and the second storage connection terminal is connected to the node QB. The first write control circuit 2 is configured to output the electrical signals input to the VBL connection end and the VBLB connection end to the node Q and the node QB respectively when the write control signal HWWL is input to the HWWL connection end. The second write control circuit 3 includes an HBL connection terminal, an HBLB connection terminal, a VWWL connection terminal, a third storage connection terminal and a fourth storage connection terminal. The VWWL connection terminal is used to input the write control signal VWWL, the HBL connection terminal and the HBLB connection terminal are used to input the second write data signal, the third storage connection terminal is connected to the node Q, and the fourth storage connection terminal is connected to the node QB. The second write control circuit 3 is configured to output the electrical signals input to the HBL connection end and the HBLB connection end to the node Q and the node QB respectively when the write control signal VWWL is input to the VWWL connection end. The storage circuit 1 is connected to the node Q and the node QB. The memory circuit 1 is used to hold the first write data signal or the second write data signal input from the node Q or the node QB, and use the first write data signal or the second write data signal as the storage data signal of the memory unit. The first read control circuit 4 is connected to the node Q for reading the memory cells. The first read control circuit 4 includes a VRWL connection end and an HRBL connection end. The VRWL connection end is used to read the input of the control signal VRWL. When the VRWL connection end inputs the read control signal VRWL, the HRBL connection end is used to output the stored data signal. . The second read control circuit 5 is connected to the node Q for reading the memory cells. The first read control circuit 5 includes a HRWL connection end and a VRBL connection end. The HRWL connection end is used for the input of the read control signal HRWL. When the HRWL connection end inputs the read control signal HRWL, the VRBL connection end is used to output the stored data signal. .
一实施例中,存储电路1包括锁存器,锁存器包括晶体管P10、晶体管P11、晶体管N10和晶体管N11,其中,各个晶体管均包括第一极、第二级和控制极。晶体管P10的控制极与节点QB连接,晶体管P10的第一极用于工作电压信号V DD的输入,晶体管P10的第二极与节点Q连接。晶体管P11的控制极与节点Q连接,晶体管P11的第一极用于工作电压信号V DD的输入,晶体管P11的第二极与节点QB连接。晶体管N10的控制极与节点QB连接,晶体管N10的第一极与节点Q连接,晶体管N10的第二极接地。晶体管N11的控制极与节点Q连接,晶体管N11的第一极与节点QB连接,晶体管N11的第二极接地。 In one embodiment, the storage circuit 1 includes a latch, and the latch includes a transistor P10 , a transistor P11 , a transistor N10 and a transistor N11 , wherein each transistor includes a first electrode, a second stage and a control electrode. The control electrode of the transistor P10 is connected to the node QB, the first electrode of the transistor P10 is used for inputting the working voltage signal V DD , and the second electrode of the transistor P10 is connected to the node Q. The control electrode of the transistor P11 is connected to the node Q, the first electrode of the transistor P11 is used for inputting the working voltage signal V DD , and the second electrode of the transistor P11 is connected to the node QB. The control electrode of the transistor N10 is connected to the node QB, the first electrode of the transistor N10 is connected to the node Q, and the second electrode of the transistor N10 is grounded. The control electrode of the transistor N11 is connected to the node Q, the first electrode of the transistor N11 is connected to the node QB, and the second electrode of the transistor N11 is grounded.
一实施例中,第一写入控制电路2包括晶体管N12和晶体管N13,其中,各个晶体管均包括第一极、第二级和控制极。晶体管N12的控制极与HWWL连接端连接,晶体管N12的第一极与VBLB连接端连接,晶体管N12的第二极与第二存储连接端连接。晶体管N13的控制极与HWWL连接端连接,晶体管N13的第一极与VBL连接端连接,晶体管N13的第二极与第一存储连接端连接。In one embodiment, the first write control circuit 2 includes a transistor N12 and a transistor N13, wherein each transistor includes a first electrode, a second stage and a control electrode. The control electrode of the transistor N12 is connected to the HWWL connection end, the first electrode of the transistor N12 is connected to the VBLB connection end, and the second electrode of the transistor N12 is connected to the second storage connection end. The control electrode of the transistor N13 is connected to the HWWL connection end, the first electrode of the transistor N13 is connected to the VBL connection end, and the second electrode of the transistor N13 is connected to the first storage connection end.
一实施例中,第二写入控制电路包括晶体管N14和晶体管N15,其中,各个晶体管均包括第一极、第二级和控制极。晶体管N14的控制极与VWWL连接端连接,晶体管N14的第一极与HBLB连接端连接,晶体管N14的第二极与第四存储连接端连接。晶体管N15的控制极与VWWL连接端连接,晶体管N15的第一极与HBL连接端连接,晶体管N15的第二极与第三存储连接端连接。In one embodiment, the second writing control circuit includes a transistor N14 and a transistor N15, wherein each transistor includes a first electrode, a second stage and a control electrode. The control pole of the transistor N14 is connected to the VWWL connection terminal, the first pole of the transistor N14 is connected to the HBLB connection terminal, and the second pole of the transistor N14 is connected to the fourth storage connection terminal. The control electrode of the transistor N15 is connected to the VWWL connection end, the first electrode of the transistor N15 is connected to the HBL connection end, and the second electrode of the transistor N15 is connected to the third storage connection end.
一实施例中,第一读取控制电路包括晶体管N16和晶体管N17,其中,各个晶体管均包括第一极、第二级和控制极。晶体管N17的控制极与VRWL连接端连接,晶体管N17的第一极与HRBL连接端连接,晶体管N17的第二极与晶体管N16的第一极连接。晶体管N16的控制极与节点Q连接,晶体管N16的第二极接地。In one embodiment, the first read control circuit includes a transistor N16 and a transistor N17, wherein each transistor includes a first electrode, a second stage and a control electrode. The control terminal of the transistor N17 is connected to the VRWL connection terminal, the first terminal of the transistor N17 is connected to the HRBL connection terminal, and the second terminal of the transistor N17 is connected to the first terminal of the transistor N16. The control electrode of the transistor N16 is connected to the node Q, and the second electrode of the transistor N16 is grounded.
一实施例中,第二读取控制电路包括晶体管N18和晶体管N19,其中,各个晶体管均包括第一极、第二级和控制极。晶体管N19的控制极与HRWL连接端连接,晶体管N19的第一极与VRBL连接端连接,晶体管N19的第二极与晶体管N18的第一极连接。晶体管N18的控制极与节点QB连接,晶体管N18的第二极接地。In one embodiment, the second read control circuit includes a transistor N18 and a transistor N19, wherein each transistor includes a first electrode, a second stage and a control electrode. The control terminal of the transistor N19 is connected to the HRWL connection terminal, the first terminal of the transistor N19 is connected to the VRBL connection terminal, and the second terminal of the transistor N19 is connected to the first terminal of the transistor N18. The control electrode of the transistor N18 is connected to the node QB, and the second electrode of the transistor N18 is grounded.
在本申请一实施例中还公开了一种存储器阵列,包括N行M列个如上所述的存储单元。其中,N和M均为自然数。In an embodiment of the present application, a memory array is also disclosed, including N rows and M columns of the above-mentioned memory cells. Among them, N and M are both natural numbers.
在本申请一实施例中还公开了一种逻辑计算存储器,包括如上所述的存储器阵列。该逻辑计算存储器还包括水平读字线、竖直读字线、水平读位线、竖直读位线、第一写入控制线和第二写入控制线。水平读字线与所述存储器阵列的每个存储单元的HRWL连接端连接,水平读位线与存储器阵列的每个存储单元的VRBL连接端连接,用于通过第二读取控制电路读取存储数据信号。竖直读字线与存储器阵列的每个存储单元的VRWL连接端连接,竖直读位线与所述存储器阵列的每个存储单元的HRBL连接端连接,用于通过第一读取控制电路读取存储数据信号。第一写入控制线与存储器阵列的每个存储单元的第一写入控制电路的HWWL连接端连接,用于按存储器阵列的行方向将第一写入数据信号输入存储单元。第二写入控制线与存储器阵列的每个存储单元的第二写入控制电路的VWWL连接端连接,用于按存储器阵列的列方向将第二写入数据信号输入存储单元。In an embodiment of the present application, a logic computing memory is also disclosed, including the memory array as described above. The logic computation memory further includes a horizontal read word line, a vertical read word line, a horizontal read bit line, a vertical read bit line, a first write control line and a second write control line. The horizontal read word line is connected to the HRWL connection end of each memory cell of the memory array, and the horizontal read bit line is connected to the VRBL connection end of each memory cell of the memory array, for reading the memory through the second read control circuit data signal. The vertical read word line is connected to the VRWL connection end of each memory cell of the memory array, and the vertical read bit line is connected to the HRBL connection end of each memory cell of the memory array for reading through the first read control circuit Take the stored data signal. The first write control line is connected to the HWWL connection terminal of the first write control circuit of each memory cell of the memory array, and is used for inputting the first write data signal into the memory cell in the row direction of the memory array. The second write control line is connected to the VWWL connection terminal of the second write control circuit of each memory cell of the memory array, and is used for inputting the second write data signal into the memory cells in the column direction of the memory array.
一实施例中,逻辑计算存储器还包括逻辑运算电路,该逻辑运算电路与水平读位线和竖直读位线连接,用于对水平读位线或竖直读位线输出的存储数据信号进行逻辑计算,并将逻辑计算获取的逻辑计算结果输出。In one embodiment, the logic calculation memory further includes a logic operation circuit, the logic operation circuit is connected to the horizontal read bit line and the vertical read bit line, and is used for performing the operation on the stored data signal output by the horizontal read bit line or the vertical read bit line. Logical calculation, and output the logical calculation result obtained by the logical calculation.
在本申请一实施例中,还公开了一种逻辑计算方法,基于如上所述的逻辑计算存储器,该逻辑计算方法包括:In an embodiment of the present application, a logical calculation method is also disclosed. Based on the above-mentioned logical calculation memory, the logical calculation method includes:
首先,水平读位线通过第一读取控制电路读取存储数据信号,或竖直读位线通过第二读取控制电路读取存储数据信号;然后将水平读位线或竖直读位线输出的存储数据信号进行逻辑计算,以获取逻辑计算结果并输出。First, the horizontal read bit line reads the stored data signal through the first read control circuit, or the vertical read bit line reads the stored data signal through the second read control circuit; then the horizontal read bit line or the vertical read bit line is read. The output stored data signal is used for logic calculation to obtain and output the result of the logic calculation.
请参考图6,为一种实施例中逻辑计算存储器实现列方向逻辑计算示意图,逻辑运算电路SA通过竖直读位线连接的两个存储单元的VRBL连接端,读取两个存储单元的存储数据信号,并对两个存储数据信号进行逻辑运算。Please refer to FIG. 6 , which is a schematic diagram of column-direction logic computation implemented by a logic computation memory in an embodiment. The logic computation circuit SA reads the VRBL connection terminals of two memory cells connected by a vertical read bit line, and reads the memory of the two memory cells. data signal, and perform logical operations on the two stored data signals.
请参考图7,为一种实施例中逻辑计算存储器实现行方向逻辑计算示意图,逻辑运算电路SA通过水平读位线连接的两个存储单元的HRBL连接端,读取两个存储单元的存储数据信号,并对两个存储数据信号进行逻辑运算。Please refer to FIG. 7 , which is a schematic diagram of a logic calculation memory implementing row-direction logic calculation in an embodiment. The logic calculation circuit SA reads the stored data of the two memory cells through the HRBL connection terminals of the two memory cells connected by the horizontal read bit line. signal, and perform logical operations on the two stored data signals.
请参考图8,为一种实施例中按行或列逻辑运算结果关系表,逻辑运算结果关系表用于表示水平读位线或竖直读位线获取的两个存储数据信号(Q1为第一存储单元存储的存储数据信号,Q2第二存储单元存储的存储数据信号)进行逻辑计算(OR和/或NOR)获取的结果对应表。Please refer to FIG. 8 , which is a logical operation result relation table by row or column in an embodiment. The logical operation result relation table is used to represent two stored data signals (Q1 is the first bit line) obtained by the horizontal read bit line or the vertical read bit line. The storage data signal stored in one storage unit and the storage data signal stored in the second storage unit of Q2) perform logical calculation (OR and/or NOR) to obtain a corresponding table of results.
本申请实施例中提出的SRAM结构可以实现在行向或者列向对数据进行读取/写入。The SRAM structure proposed in the embodiments of the present application can implement reading/writing of data in a row direction or a column direction.
一.进行读取操作包括:1. The read operation includes:
1.当要对数据进行行向读取时,激活待读取行的水平读字线HRWL,数据将从预充为高电平的竖直读位线VRBL末端的SA读出。1. When the data is to be read in the row direction, activate the horizontal read word line HRWL of the row to be read, and the data will be read from the SA at the end of the vertical read bit line VRBL precharged to a high level.
2.当要对数据进行列向读取时,激活待读取列的竖直读字线VRWL,数据将从预充为高电平的水平读位线HRBL末端的SA读出。2. When data is to be read in the column direction, the vertical read word line VRWL of the column to be read is activated, and the data will be read from the SA at the end of the horizontal read bit line HRBL precharged to a high level.
二.进行写入操作包括:2. The write operation includes:
1.当要将数据按行写入存储阵列时,待写入的数据预先加载到竖直位线VBLs和VBLBs上,激活待写入行对应的水平写字线HWWL,数据将按行写入到SRAM中。1. When the data is to be written into the storage array by row, the data to be written is preloaded on the vertical bit lines VBLs and VBLBs, the horizontal write word line HWWL corresponding to the row to be written is activated, and the data will be written to the row by row. SRAM.
2.当要将数据按列写入存储阵列时,待写入的数据预先加载到水平位线HBLs和HBLBs上,激活待写入行对应的竖直写字线VWWL,数据将按列写入到SRAM中。2. When data is to be written into the storage array in columns, the data to be written is preloaded on the horizontal bit lines HBLs and HBLBs, the vertical write word line VWWL corresponding to the row to be written is activated, and the data will be written in columns to SRAM.
三.进行逻辑操作(OR/NOR)包括:3. Carry out logical operations (OR/NOR) including:
1.当要进行行向逻辑操作时,激活存储着操作数SRAM单元对应的竖直读字线VRWLs,OR/NOR逻辑运算结果将从预充为高电平的水平读位线HRBL末端的SA读出。1. When the row-direction logic operation is to be performed, activate the vertical read word line VRWLs corresponding to the SRAM cell that stores the operand, and the OR/NOR logic operation result will be read from the SA at the end of the pre-charged high-level horizontal read bit line HRBL. read out.
2.当要进行列向逻辑操作时,激活存储着操作数SRAM单元对应的水平读字线HRWLs,OR/NOR逻辑运算结果将从预充为高电平的竖直读位线VRBL末端的SA读出。2. When the column-oriented logic operation is to be performed, activate the horizontal read word line HRWLs corresponding to the SRAM cell that stores the operand, and the OR/NOR logic operation result will be pre-charged to a high level from the SA at the end of the vertical read bit line VRBL. read out.
在本申请一实施例中还公开一种CAM搜索操作方法,基于如上所述的存储器阵列,请参考图9和图10,图9为一种实施例中按列向CAM搜索操作示意图,图10为列方向存储数据与搜索数据的匹配结果对应表,其中,存储器阵列以3行3列的存储单元为例。当存储器阵列配置为行向CAM搜索操作时,竖直写字线和竖直读字线VWWL/VRWL配置为搜索线SL/SLB(即待搜索数据为1时,VWWL/VRWL上加载高电平/低电平(1/0)),水平位线和水平读位线HBL/HRBL配置为匹配线ML/ML′,当某行存储的数据与搜索的数据向匹配时,输出结果1,否则输出结果0。An embodiment of the present application also discloses a CAM search operation method, based on the above-mentioned memory array, please refer to FIG. 9 and FIG. 10 , FIG. 9 is a schematic diagram of a column-wise CAM search operation in an embodiment, and FIG. 10 A corresponding table of matching results between the stored data and the search data in the column direction, wherein the memory array is taken as an example of memory cells with 3 rows and 3 columns. When the memory array is configured for row-to-CAM search operation, the vertical write word lines and vertical read word lines VWWL/VRWL are configured as search lines SL/SLB (that is, when the data to be searched is 1, a high level is loaded on VWWL/VRWL/ Low level (1/0)), the horizontal bit line and the horizontal read bit line HBL/HRBL are configured as matching lines ML/ML′, when the data stored in a row matches the searched data direction, the result 1 is output, otherwise it is output Result 0.
请参考图11和图12,图11为一种实施例中按行向CAM搜索操作示意图,图12为行方向存储数据与搜索数据的匹配结果对应表,其中,存储器阵列以3行3列的存储单元为例。当存储器阵列配置为列向CAM搜索模式时,水平写字线和水平读字线HWWL/HRWL配置为搜索线SL/SLB(即待搜索数据为1时,HWWL/HRWL上加载高电平/低电平(1/0)),竖直位线和竖直读位线VBL/VRBL配置为匹配线ML/ML′,当某列存储的数据与搜索的数据向匹配时,输出结果1,否则输出结果0。Please refer to FIGS. 11 and 12. FIG. 11 is a schematic diagram of a row-wise CAM search operation in an embodiment. Take the storage unit as an example. When the memory array is configured in the column-oriented CAM search mode, the horizontal write word lines and horizontal read word lines HWWL/HRWL are configured as search lines SL/SLB (that is, when the data to be searched is 1, the HWWL/HRWL is loaded with high level/low power Flat (1/0)), the vertical bit line and the vertical read bit line VBL/VRBL are configured as matching lines ML/ML′, when the data stored in a certain column matches the searched data direction, the output result is 1, otherwise it is output Result 0.
本申请实施例中公开的存储器阵列当对按行存储的数据进行列向读出时,可以很容易地得到所存储数据的转置。同理,对按列存储的数据进行行向读出,也可以得到存储数据的转置。In the memory array disclosed in the embodiments of the present application, when the data stored in rows is read out in the column direction, the transposition of the stored data can be easily obtained. Similarly, the row-wise readout of the data stored in columns can also obtain the transposition of the stored data.
本申请实施例中公开的存储单元,是12T的SRAM单元,组成的存储阵列可以按照行方向/列方向进行读取/写入/存储数据(传统SRAM存储阵列只能按行方向进行读取/写入/存储数据),且本发明同时提出使用该12T SRAM电路结构实现行方向/列方向的双向逻辑运算和CAM搜索操作的方法(基于传统的SRAM的内存计算电路只能实现列方向的逻辑运算和CAM搜索操作,且其基于行方向存储的数据与基于列方向的CAM搜索操作不兼容匹配)。该12T的SRAM单元结构具有行访问端口(水平写字线HWWL、竖直位线VBL/VBLB、晶体管N12和N13用于写入,水平读字线HRWL、竖直读位线VRBL、晶体管N18和N19用于读取/计算)和列访问端口(竖直写字线VWWL、水平位线HBL/HBLB、晶体管N14和N15用于写入,竖直读字线VRWL、水平读位线HRBL、晶体管N16和N17用于读取/计算),该12T SRAM可以按照行方向/列方向进行读取/写入/存储,并且提出使用该电路结构实现行方向/列方向的双向逻辑运算和CAM搜索操作的方法。The memory cells disclosed in the embodiments of the present application are 12T SRAM cells, and the composed memory array can read/write/store data in the row/column direction (traditional SRAM memory arrays can only read/write/store data in the row direction). write/store data), and the present invention also proposes a method for using the 12T SRAM circuit structure to implement bidirectional logic operations in row/column directions and CAM search operations (traditional SRAM-based memory computing circuits can only implement logic in column directions) operations and CAM search operations, and their stored data based on the row direction is not compatible with the CAM search operation based on the column direction). The 12T SRAM cell structure has row access ports (horizontal write word line HWWL, vertical bit line VBL/VBLB, transistors N12 and N13 for writing, horizontal read word line HRWL, vertical read bit line VRBL, transistors N18 and N19 for read/compute) and column access ports (vertical write word line VWWL, horizontal bit line HBL/HBLB, transistors N14 and N15 for writing, vertical read word line VRWL, horizontal read bit line HRBL, transistor N16 and N17 is used for reading/computing), the 12T SRAM can be read/written/stored in row direction/column direction, and a method of using this circuit structure to realize bidirectional logic operation in row/column direction and CAM search operation is proposed .
本申请公开了一种存储单元,包括存储电路、第一写入控制电路、第二写入控制电路、第一读取控制电路和第二读取控制电路;第一写入控制电路和第二写入控制电路用于将第一写入数据信号或第二写入数据信号写入存储电路,存储电路用于将第一写入数据信号或第二写入数据信号作为存储数据信号,第一读取控制电路和第二读取控制电路用于从存储电路中读取存储数据信号。由于包括两组各自独立的读取和写入控制电路,使得存储器阵列即可以按行读取或写入数据,也可以按列读取或写入数据,并当对按行或列存储的数据进行列向或列行向读出时,可以很容易地得到所存储数据的转置。The present application discloses a storage unit, comprising a storage circuit, a first write control circuit, a second write control circuit, a first read control circuit and a second read control circuit; the first write control circuit and the second write control circuit The write control circuit is used to write the first write data signal or the second write data signal into the storage circuit, and the storage circuit is used to use the first write data signal or the second write data signal as the stored data signal, the first The read control circuit and the second read control circuit are used for reading the stored data signal from the storage circuit. Since it includes two sets of independent read and write control circuits, the memory array can read or write data in rows or columns, and when the data stored in rows or columns When performing column-wise or column-row-wise readout, the transpose of the stored data can be easily obtained.
本文参照了各种示范实施例进行说明。然而,本领域的技术人员将认识到,在不脱离本文范围的情况下,可以对示范性实施例做出改变和修正。例如,各种操作步骤以及用于执行操作步骤的组件,可以根据特定的应用或考虑与系统的操作相关联的任何数量的成本函数以不同的方式实现(例如一个或多个步骤可以被删除、修改或结合到其他步骤中)。Descriptions are made herein with reference to various exemplary embodiments. However, those skilled in the art will recognize that changes and modifications may be made to the exemplary embodiments without departing from the scope of this document. For example, the various operational steps, and the components used to perform the operational steps, may be implemented in different ways depending on the particular application or considering any number of cost functions associated with the operation of the system (eg one or more steps may be deleted, modified or incorporated into other steps).
虽然在各种实施例中已经示出了本文的原理,但是许多特别适用于特定环境和操作要求的结构、布置、比例、元件、材料和部件的修改可以在不脱离本披露的原则和范围内使用。以上修改和其他改变或修正将被包含在本文的范围之内。Although the principles herein have been shown in various embodiments, many modifications may be made in structure, arrangement, proportions, elements, materials and components as are particularly suited to particular environmental and operating requirements without departing from the principles and scope of the present disclosure use. The above modifications and other changes or corrections are intended to be included within the scope of this document.
前述具体说明已参照各种实施例进行了描述。然而,本领域技术人员将认识到,可以在不脱离本披露的范围的情况下进行各种修正和改变。因此,对于本披露的考虑将是说明性的而非限制性的意义上的,并且所有这些修改都将被包含在其范围内。同样,有关于各种实施例的优点、其他优点和问题的解决方案已如上所述。然而,益处、优点、问题的解决方案以及任何能产生这些的要素,或使其变得更明确的解决方案都不应被解释为关键的、必需的或必要的。本文中所用的术语“包括”和其任何其他变体,皆属于非排他性包含,这样包括要素列表的过程、方法、文章或设备不仅包括这些要素,还包括未明确列出的或不属于该过程、方法、系统、文章或设备的其他要素。此外,本文中所使用的术语“耦合”和其任何其他变体都是指物理连接、电连接、磁连接、光连接、通信连接、功能连接和/或任何其他连接。The foregoing Detailed Description has been described with reference to various embodiments. However, those skilled in the art will recognize that various modifications and changes can be made without departing from the scope of the present disclosure. Accordingly, this disclosure is to be considered in an illustrative rather than a restrictive sense, and all such modifications are intended to be included within its scope. Likewise, the advantages, other advantages, and solutions to problems of the various embodiments have been described above. However, the benefits, advantages, solutions to the problems, and any elements that give rise to them, or make them more explicit, should not be construed as critical, necessary, or essential. As used herein, the term "comprising" and any other variations thereof are non-exclusive inclusion, such that a process, method, article or device including a list of elements includes not only those elements, but also not expressly listed or included in the process , method, system, article or other elements of a device. Furthermore, as used herein, the term "coupled" and any other variations thereof refer to physical connections, electrical connections, magnetic connections, optical connections, communication connections, functional connections, and/or any other connection.
具有本领域技术的人将认识到,在不脱离本发明的基本原理的情况下,可以对上述实施例的细节进行许多改变。因此,本发明的范围应根据以下权利要求确定。Those skilled in the art will recognize that many changes may be made to the details of the above-described embodiments without departing from the underlying principles of the invention. Accordingly, the scope of the invention should be determined in accordance with the following claims.

Claims (10)

  1. 一种存储单元,其特征在于,包括存储电路、第一写入控制电路、第二写入控制电路、第一读取控制电路、第二读取控制电路、节点Q和节点QB;A storage unit, characterized in that it comprises a storage circuit, a first write control circuit, a second write control circuit, a first read control circuit, a second read control circuit, a node Q and a node QB;
    所述第一写入控制电路包括VBL连接端、VBLB连接端、HWWL连接端、第一存储连接端和第二存储连接端;所述HWWL连接端用于输入写入控制信号HWWL,所述VBL连接端和所述VBLB连接端用于输入第一写入数据信号,所述第一存储连接端与所述节点Q连接,所述第二存储连接端与所述节点QB连接;所述第一写入控制电路用于当所述HWWL连接端输入所述写入控制信号HWWL时,将输入所述VBL连接端和所述VBLB连接端的电信号分别输出给所述节点Q和节点QB;The first write control circuit includes a VBL connection end, a VBLB connection end, a HWWL connection end, a first storage connection end and a second storage connection end; the HWWL connection end is used to input a write control signal HWWL, the VBL The connection terminal and the VBLB connection terminal are used for inputting the first write data signal, the first storage connection terminal is connected to the node Q, and the second storage connection terminal is connected to the node QB; the first storage connection terminal is connected to the node QB; The write control circuit is configured to output the electrical signals input to the VBL connection end and the VBLB connection end to the node Q and the node QB respectively when the write control signal HWWL is input to the HWWL connection end;
    所述第二写入控制电路包括HBL连接端、HBLB连接端、VWWL连接端、第三存储连接端和第四存储连接端;所述VWWL连接端用于输入写入控制信号VWWL,所述HBL连接端和所述HBLB连接端用于输入第二写入数据信号,所述第三存储连接端与所述节点Q连接,所述第四存储连接端与所述节点QB连接;所述第二写入控制电路用于当所述VWWL连接端输入所述写入控制信号VWWL时,将输入所述HBL连接端和所述HBLB连接端的电信号分别输出给所述节点Q和节点QB;The second write control circuit includes an HBL connection end, an HBLB connection end, a VWWL connection end, a third storage connection end and a fourth storage connection end; the VWWL connection end is used for inputting the write control signal VWWL, the HBL connection end The connection terminal and the HBLB connection terminal are used for inputting a second write data signal, the third storage connection terminal is connected to the node Q, and the fourth storage connection terminal is connected to the node QB; the second storage connection terminal is connected to the node QB. The write control circuit is configured to output the electrical signal input to the HBL connection end and the HBLB connection end to the node Q and the node QB respectively when the write control signal VWWL is input to the VWWL connection end;
    所述存储电路与所述节点Q和所述节点QB连接;所述存储电路用于保持节点Q或节点QB输入的所述第一写入数据信号或所述第二写入数据信号,并将所述第一写入数据信号或所述第二写入数据信号作为所述存储单元的存储数据信号;The storage circuit is connected to the node Q and the node QB; the storage circuit is used to hold the first write data signal or the second write data signal input from the node Q or the node QB, and to The first write data signal or the second write data signal is used as the storage data signal of the storage unit;
    所述第一读取控制电路与节点Q连接,用于所述存储单元的读取;所述第一读取控制电路包括VRWL连接端和HRBL连接端;所述VRWL连接端用于读取控制信号VRWL的输入,当所述VRWL连接端输入所述读取控制信号VRWL时,所述HRBL连接端用于输出所述存储数据信号;The first read control circuit is connected to the node Q for reading the memory cell; the first read control circuit includes a VRWL connection end and an HRBL connection end; the VRWL connection end is used for read control The input of the signal VRWL, when the VRWL connection terminal inputs the read control signal VRWL, the HRBL connection terminal is used to output the stored data signal;
    所述第二读取控制电路与节点Q连接,用于所述存储单元的读取;所述第一读取控制电路包括HRWL连接端和VRBL连接端;所述HRWL连接端用于读取控制信号HRWL的输入,当所述HRWL连接端输入所述读取控制信号HRWL时,所述VRBL连接端用于输出所述存储数据信号。The second read control circuit is connected to the node Q for reading the memory cell; the first read control circuit includes a HRWL connection end and a VRBL connection end; the HRWL connection end is used for read control The input of the signal HRWL, when the HRWL connection end inputs the read control signal HRWL, the VRBL connection end is used for outputting the stored data signal.
  2. 如权利要求1所述的存储单元,其特征在于,所述存储电路包括锁存器,所述锁存器包括晶体管P10、晶体管P11、晶体管N10和晶体管N11;其中,各个晶体管均包括第一极、第二级和控制极;The storage unit according to claim 1, wherein the storage circuit comprises a latch, and the latch comprises a transistor P10, a transistor P11, a transistor N10 and a transistor N11; wherein each transistor comprises a first pole , the second stage and the control pole;
    晶体管P10的控制极与节点QB连接,晶体管P10的第一极用于工作电压信号V DD的输入,晶体管P10的第二极与节点Q连接; The control pole of the transistor P10 is connected to the node QB, the first pole of the transistor P10 is used for the input of the working voltage signal V DD , and the second pole of the transistor P10 is connected to the node Q;
    晶体管P11的控制极与节点Q连接,晶体管P11的第一极用于工作电压信号V DD的输入,晶体管P11的第二极与节点QB连接; The control pole of the transistor P11 is connected to the node Q, the first pole of the transistor P11 is used for the input of the working voltage signal V DD , and the second pole of the transistor P11 is connected to the node QB;
    晶体管N10的控制极与节点QB连接,晶体管N10的第一极与节点Q连接,晶体管N10的第二极接地;The control pole of the transistor N10 is connected to the node QB, the first pole of the transistor N10 is connected to the node Q, and the second pole of the transistor N10 is grounded;
    晶体管N11的控制极与节点Q连接,晶体管N11的第一极与节点QB连接,晶体管N11的第二极接地。The control electrode of the transistor N11 is connected to the node Q, the first electrode of the transistor N11 is connected to the node QB, and the second electrode of the transistor N11 is grounded.
  3. 如权利要求2所述的存储单元,其特征在于,所述第一写入控制电路包括晶体管N12和晶体管N13;其中,各个晶体管均包括第一极、第二级和控制极;The memory cell according to claim 2, wherein the first write control circuit comprises a transistor N12 and a transistor N13; wherein each transistor comprises a first pole, a second level and a control pole;
    晶体管N12的控制极与所述HWWL连接端连接,晶体管N12的第一极与所述VBLB连接端连接,晶体管N12的第二极与所述第二存储连接端连接;The control pole of the transistor N12 is connected to the HWWL connection terminal, the first pole of the transistor N12 is connected to the VBLB connection terminal, and the second pole of the transistor N12 is connected to the second storage connection terminal;
    晶体管N13的控制极与所述HWWL连接端连接,晶体管N13的第一极与所述VBL连接端连接,晶体管N13的第二极与所述第一存储连接端连接。The control electrode of the transistor N13 is connected to the HWWL connection end, the first electrode of the transistor N13 is connected to the VBL connection end, and the second electrode of the transistor N13 is connected to the first storage connection end.
  4. 如权利要求2所述的存储单元,其特征在于,所述第二写入控制电路包括晶体管N14和晶体管N15;其中,各个晶体管均包括第一极、第二级和控制极;The memory cell according to claim 2, wherein the second write control circuit comprises a transistor N14 and a transistor N15; wherein each transistor comprises a first pole, a second level and a control pole;
    晶体管N14的控制极与所述VWWL连接端连接,晶体管N14的第一极与所述HBLB连接端连接,晶体管N14的第二极与所述第四存储连接端连接;The control pole of the transistor N14 is connected to the VWWL connection terminal, the first pole of the transistor N14 is connected to the HBLB connection terminal, and the second pole of the transistor N14 is connected to the fourth storage connection terminal;
    晶体管N15的控制极与所述VWWL连接端连接,晶体管N15的第一极与所述HBL连接端连接,晶体管N15的第二极与所述第三存储连接端连接。The control electrode of the transistor N15 is connected to the VWWL connection end, the first electrode of the transistor N15 is connected to the HBL connection end, and the second electrode of the transistor N15 is connected to the third storage connection end.
  5. 如权利要求2所述的存储单元,其特征在于,所述第一读取控制电路包括晶体管N16和晶体管N17;其中,各个晶体管均包括第一极、第二级和控制极;The memory cell according to claim 2, wherein the first read control circuit includes a transistor N16 and a transistor N17; wherein each transistor includes a first electrode, a second stage and a control electrode;
    晶体管N17的控制极与所述VRWL连接端连接,晶体管N17的第一极与所述HRBL连接端连接,晶体管N17的第二极与晶体管N16的第一极连接;The control pole of the transistor N17 is connected to the VRWL connection terminal, the first pole of the transistor N17 is connected to the HRBL connection terminal, and the second pole of the transistor N17 is connected to the first pole of the transistor N16;
    晶体管N16的控制极与所述节点Q连接,晶体管N16的第二极接地。The control electrode of the transistor N16 is connected to the node Q, and the second electrode of the transistor N16 is grounded.
  6. 如权利要求2所述的存储单元,其特征在于,所述第二读取控制电路包括晶体管N18和晶体管N19;其中,各个晶体管均包括第一极、第二级和控制极;The memory cell of claim 2, wherein the second read control circuit comprises a transistor N18 and a transistor N19; wherein each transistor comprises a first pole, a second level and a control pole;
    晶体管N19的控制极与所述HRWL连接端连接,晶体管N19的第一极与所述VRBL连接端连接,晶体管N19的第二极与晶体管N18的第一极连接;The control pole of the transistor N19 is connected to the HRWL connection terminal, the first pole of the transistor N19 is connected to the VRBL connection terminal, and the second pole of the transistor N19 is connected to the first pole of the transistor N18;
    晶体管N18的控制极与所述节点QB连接,晶体管N18的第二极接地。The control electrode of the transistor N18 is connected to the node QB, and the second electrode of the transistor N18 is grounded.
  7. 一种存储器阵列,其特征在于,包括N行M列个如权利要求1至6中任一项所述的存储单元;其中,N和M均为自然数。A memory array, characterized in that it includes N rows and M columns of the memory cells according to any one of claims 1 to 6; wherein, N and M are both natural numbers.
  8. 一种逻辑计算存储器,其特征在于,包括如权利要求7所述的存储器阵列;A logic computing memory, characterized in that, comprising the memory array as claimed in claim 7;
    所述逻辑计算存储器还包括水平读字线、竖直读字线、水平读位线、竖直读位线、第一写入控制线和第二写入控制线;The logical calculation memory further includes a horizontal read word line, a vertical read word line, a horizontal read bit line, a vertical read bit line, a first write control line and a second write control line;
    所述水平读字线与所述存储器阵列的每个所述存储单元的HRWL连接端连接, 所述竖直读位线与所述存储器阵列的每个所述存储单元的VRBL连接端连接,用于通过所述第二读取控制电路读取所述存储数据信号;The horizontal read word line is connected to the HRWL connection end of each of the memory cells of the memory array, and the vertical read bit line is connected to the VRBL connection end of each of the memory cells of the memory array, using reading the stored data signal through the second read control circuit;
    所述竖直读字线与所述存储器阵列的每个所述存储单元的VRWL连接端连接,所述水平读位线与所述存储器阵列的每个所述存储单元的HRBL连接端连接,用于通过所述第一读取控制电路读取所述存储数据信号;The vertical read word line is connected to the VRWL connection end of each of the memory cells of the memory array, and the horizontal read bit line is connected to the HRBL connection end of each of the memory cells of the memory array, using reading the stored data signal through the first read control circuit;
    所述第一写入控制线与所述存储器阵列的每个所述存储单元的所述第一写入控制电路的HWWL连接端连接,用于按所述存储器阵列的行方向将所述第一写入数据信号输入所述存储单元。The first write control line is connected to the HWWL connection terminal of the first write control circuit of each of the memory cells of the memory array, and is used for connecting the first write control circuit in the row direction of the memory array. Write data signals are input to the memory cells.
  9. 如权利要求8所述的逻辑计算存储器,其特征在于,还包括逻辑运算电路;The logic calculation memory according to claim 8, further comprising a logic operation circuit;
    所述逻辑运算电路与所述水平读位线和所述竖直读位线连接,用于对所述水平读位线或所述竖直读位线输出的所述存储数据信号进行逻辑计算,并将逻辑计算获取的逻辑计算结果输出。The logic operation circuit is connected to the horizontal read bit line and the vertical read bit line, and is used for performing logical calculation on the stored data signal output by the horizontal read bit line or the vertical read bit line, And output the logical calculation result obtained by the logical calculation.
  10. 一种逻辑计算方法,其特征在于,基于如权利要求8和9任一项所述的逻辑计算存储器,所述逻辑计算方法包括:A logical calculation method, characterized in that, based on the logical calculation memory according to any one of claims 8 and 9, the logical calculation method comprises:
    所述水平读位线通过所述第一读取控制电路读取所述存储数据信号;the horizontal read bit line reads the stored data signal through the first read control circuit;
    所述竖直读位线通过所述第二读取控制电路读取所述存储数据信号;the vertical read bit line reads the stored data signal through the second read control circuit;
    将所述水平读位线或所述竖直读位线输出的所述存储数据信号进行逻辑计算,以获取逻辑计算结果并输出。Logic calculation is performed on the stored data signal output by the horizontal read bit line or the vertical read bit line to obtain and output a result of the logic calculation.
PCT/CN2022/072690 2022-01-19 2022-01-19 Memory cell, memory array, logic calculation memory and logic calculation method WO2022233158A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/072690 WO2022233158A1 (en) 2022-01-19 2022-01-19 Memory cell, memory array, logic calculation memory and logic calculation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/072690 WO2022233158A1 (en) 2022-01-19 2022-01-19 Memory cell, memory array, logic calculation memory and logic calculation method

Publications (1)

Publication Number Publication Date
WO2022233158A1 true WO2022233158A1 (en) 2022-11-10

Family

ID=83931981

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/072690 WO2022233158A1 (en) 2022-01-19 2022-01-19 Memory cell, memory array, logic calculation memory and logic calculation method

Country Status (1)

Country Link
WO (1) WO2022233158A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109658960A (en) * 2018-12-10 2019-04-19 安徽大学 A kind of 12T TFET SRAM cell circuit for writing nargin with super low-power consumption and height
US20190156909A1 (en) * 2017-11-23 2019-05-23 Samsung Electronics Co., Ltd. Memory devices, memory systems and methods of operating memory devices
CN110675905A (en) * 2019-08-29 2020-01-10 安徽大学 12T TFET SRAM unit circuit structure with high stability
CN111916125A (en) * 2020-07-15 2020-11-10 电子科技大学 SRAM memory cell circuit for improving read-write speed and stability under low voltage

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190156909A1 (en) * 2017-11-23 2019-05-23 Samsung Electronics Co., Ltd. Memory devices, memory systems and methods of operating memory devices
CN109658960A (en) * 2018-12-10 2019-04-19 安徽大学 A kind of 12T TFET SRAM cell circuit for writing nargin with super low-power consumption and height
CN110675905A (en) * 2019-08-29 2020-01-10 安徽大学 12T TFET SRAM unit circuit structure with high stability
CN111916125A (en) * 2020-07-15 2020-11-10 电子科技大学 SRAM memory cell circuit for improving read-write speed and stability under low voltage

Similar Documents

Publication Publication Date Title
CN110364203B (en) Storage system supporting internal calculation of storage and calculation method
JP5675105B2 (en) 2-port SRAM with improved write operation
US3638204A (en) Semiconductive cell for a storage having a plurality of simultaneously accessible locations
US4208730A (en) Precharge circuit for memory array
KR100241079B1 (en) Multiport memory cells and memory with parallel data initialization
US4031522A (en) Ultra high sensitivity sense amplifier for memories employing single transistor cells
US4833648A (en) Multiport ram hybrid memory cell with fast write
US7613032B2 (en) Semiconductor memory device and control method thereof
CN111816233A (en) In-memory computing unit and array
KR100253781B1 (en) Static ram and its operating method
US7161827B2 (en) SRAM having improved cell stability and method therefor
US20050002215A1 (en) Multiport semiconductor memory device capable of sufficiently steadily holding data and providing a sufficient write margin
US6215694B1 (en) Self-restoring single event upset (SEU) hardened multiport memory cell
CN115810374A (en) Memory circuit and memory computing circuit with BCAM addressing and logic operation functions
US20050125591A1 (en) Semiconductor memory device having hierarchical bit line structure
US6567286B2 (en) Contents addressable memory with accelerated entry data shunting
CN111883191B (en) 10T SRAM cell, and memory logic operation and BCAM circuit based on 10T SRAM cell
WO2022233158A1 (en) Memory cell, memory array, logic calculation memory and logic calculation method
JPH03176890A (en) Semiconductor memory with plural ports
CN114093400A (en) Low-leakage single-bit memory computing unit and device
US5377155A (en) Serial access semiconductor memory having a reduced number of data registers
JP2638458B2 (en) Semiconductor memory
CN113012738B (en) Storage unit, storage array and all-digital static random access memory
CN112820338B (en) Addressing circuit, reading circuit and device of tri-state memory and memory
JP2004103057A (en) Semiconductor storage device

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: 22798500

Country of ref document: EP

Kind code of ref document: A1