Resistance type readout unit circuit for FLASH memory calculation

By designing a resistive readout unit circuit, including a conversion module and a quantization module, the problem of excessive area and power consumption of traditional readout unit circuits is solved, achieving fast and stable current-voltage conversion and quantization, and improving the operating speed and power efficiency of the CIM system.

CN120913619AActive Publication Date: 2025-11-07XI AN JIAOTONG UNIV
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202511445499.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-11
Publication Date
2025-11-07
Estimated Expiration
2045-10-11

AI Technical Summary

Technical Problem

Traditional readout unit circuits have large area and power consumption overhead in FLASH memory calculations, making it difficult to meet the requirements of high computing power and low power consumption.

Method used

A resistive readout unit circuit is adopted, which includes a conversion module and a quantization module. The conversion module consists of positive and negative weight current conversion units and a resistor module, while the quantization module consists of a sampling switch, a CDAC, and a SAR logic circuit. Fast and stable current-voltage conversion and quantization are achieved through collaborative optimization of the working timing.

Benefits of technology

It improves the operating speed and power efficiency of the readout unit circuit, reduces area and power consumption overhead, and adapts to the input dynamic range of various application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120913619A_ABST
    Figure CN120913619A_ABST
Patent Text Reader

Abstract

The invention discloses a resistive readout unit circuit for FLASH memory calculation, which relates to the technical field of integrated circuits, and comprises a conversion module and a quantization module, the conversion module comprises a positive weight current conversion unit and a negative weight current conversion unit which have the same structure, the input end of the conversion module is respectively connected with a positive weight bit line and a negative weight bit line, and the output end of the conversion module is connected with the quantization module; each circuit comprises an operational amplifier, a driving transistor, a compensation resistor, a compensation capacitor and a compensation transistor; the quantization module comprises two sampling switches, two CDACs, a comparator and an SAR logic circuit, the input ends of the two sampling switches are connected with the output ends of the positive weight resistor module and the negative weight resistor module respectively, and the output ends of the two sampling switches are connected with the upper polar plates of the two CDACs and the positive input end and the negative input end of the comparator respectively. The resistance-type read-out unit circuit can stably perform driving and analog-to-digital conversion on the storage current which changes rapidly with a small area and a small power consumption overhead.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of integrated circuits, and in particular to a resistance type readout unit circuit for in-memory computing of FLASH. BACKGROUND

[0002] In recent years, artificial intelligence technologies represented by neural networks have developed rapidly and made significant breakthroughs in natural language and image / video processing. However, the inherent limitations of the traditional von Neumann computing architecture have caused the "memory wall" and "power wall" problems, leading to the increasing contradiction between the high computing power demand of neural networks and the low power requirement of edge and terminal devices, which has seriously restricted the further development and application of artificial intelligence technologies. In this context, the in-memory computing (CIM) architecture has emerged. CIM directly performs data operations and processing within the memory, fundamentally eliminating the overhead generated by data transfer, realizing the integration of storage and computing, and becoming one of the important research directions in the field of integrated circuits in the post-moore era.

[0003] Currently, the main memory devices used in CIM architecture include static random access memory (SRAM), dynamic random access memory (DRAM), resistive random access memory (RRAM), phase-change memory (PCM), and FLASH memory. Among them, FLASH memory has become an important storage carrier for CIM technology due to its high storage density, non-volatility, and strong compatibility with CMOS (Complementary Metal Oxide Semiconductor) process. In CIM circuits based on FLASH memory, the multiply-add computation operation is performed in the form of analog current signals in the memory-computing array, and the computation results need to be accurately read out by a dedicated readout unit circuit. To achieve a computing power of Tera Operations Per Second (TOPS) level, the memory-computing array is usually composed of a matrix of hundreds of rows and hundreds of columns of memory cells, and the memory cells in the same row are connected to a readout unit circuit through a bit line. As the CIM computing power requirement continues to increase, the size of the memory-computing array continues to expand, and the number of readout unit circuits required also increases significantly, making the readout unit circuit gradually become the main bottleneck restricting the area and power efficiency of CIM. Therefore, improving the working speed and current handling range of the readout unit circuit while reducing its power consumption and area has become an important problem to be solved for the further development of CIM technology.

[0004] The readout unit circuitry for FLASH memory arrays typically consists of a current-to-voltage converter (IVC) and an analog-to-digital converter (ADC). The primary function of the IVC is to clamp the voltage and drive the current of the bit lines in the FLASH memory array, converting the stored current on the bit lines into an analog voltage signal. The classic transimpedance amplifier structure performs well in this function; however, this structure is prone to instability when driving rapidly changing stored currents. Therefore, existing structures usually employ two operational amplifiers to implement the voltage clamping and current-to-voltage conversion functions separately, but this increases the IVC's area and power consumption. The primary function of the ADC is to quantize the analog voltage signal output by the IVC into digital code. Among various ADC structures, the Successive Approximation Register (SAR) ADC, with its low power consumption advantage, has become the mainstream choice for CIM applications. To ensure linearity during sampling, general-purpose SAR ADCs require their input signals to have strong driving capability. This means that traditional readout unit circuits typically add a buffer between the output of the IVC and the input of the SAR ADC to drive the SAR ADC sampling, but this incurs additional area and power consumption overhead. Summary of the Invention

[0005] Based on the shortcomings of the existing technology, the present invention provides a resistive readout unit circuit for FLASH memory computation, which solves the problem of large area and power consumption of traditional readout unit circuits.

[0006] This invention provides a resistive readout unit circuit for FLASH memory computation, including a conversion module and a quantization module; The conversion module comprises positive weight current conversion units and negative weight current conversion units with the same structure, and positive weight resistance modules and negative weight resistance modules with the same structure; wherein the input ends of the positive weight current conversion units and the negative weight current conversion units are connected with positive weight bit lines and negative weight bit lines respectively, and the output ends are connected with the input ends of the positive weight resistance modules and the negative weight resistance modules respectively; the positive weight current conversion units and the negative weight current conversion units each comprise an operational amplifier, a driving transistor, a compensation resistor, a compensation capacitor and a compensation transistor; the positive end of the operational amplifier is connected with a clamping voltage source, the negative end is connected with the source of the driving transistor, a corresponding bit line and the drain of the compensation transistor, and the output end is connected with the gate of the driving transistor; the compensation resistor and the compensation capacitor are connected in series between the gate and the drain of the driving transistor, the gate of the compensation transistor is connected with a bias voltage source, and the source is grounded; the output ends of the positive weight resistance modules and the negative weight resistance modules are used for outputting corresponding voltage signals; The quantization module comprises two sampling switches, two CDACs, a comparator and a SAR logic circuit, wherein the input ends of the two sampling switches are connected with the output ends of the positive weight resistance modules and the negative weight resistance modules respectively, the output ends are connected with the upper plates of the two CDACs and the positive input end and the negative input end of the comparator respectively, the output end of the comparator is connected with the input end of the SAR logic circuit, and the SAR logic circuit is used for outputting N a digital code.

[0007] Preferably, the positive weight current conversion unit comprises a first operational amplifier , a first driving transistor , a first compensation resistor , a first compensation capacitor and a first compensation transistor ; the positive end of the first operational amplifier is connected with a clamping voltage source , the negative end is connected with the source of the first driving transistor , a positive weight bit line and the drain of the first compensation transistor , the output end is connected with the gate of the first driving transistor , the first compensation resistor and the first compensation capacitor are connected in series between the gate and the drain of the first driving transistor , the gate of the first compensation transistor is connected with a bias voltage source , and the source is grounded; The negative weight current conversion unit comprises a second operational amplifier , a second driving transistor , a second compensation resistor , a second compensation capacitor and a second compensation transistor ; a second operational amplifier whose positive terminal is connected with a clamping voltage source , whose negative terminal is connected with the source of the second driving transistor , the negative weight bit line and the drain of the second compensation transistor , whose output terminal is connected with the gate of the second driving transistor , the second compensation resistor and the second compensation capacitor are connected in series between the gate and the drain of the second driving transistor , the gate of the second compensation transistor is connected with a bias voltage source , and the source is grounded.

[0008] Preferably, the positive weight resistance module and the negative weight resistance module each comprise a plurality of resistors with different resistance values and a plurality of switches connected in parallel, one end of the plurality of switches is connected with the drain of the driving transistor and the output terminal for outputting voltage, and the other end is connected with one end of the plurality of resistors respectively, and the other end of the plurality of resistors is connected with the power voltage source.

[0009] Preferably, the positive weight resistance module comprises a first positive resistor R P1 , a second positive resistor R P2 , a third positive resistor R P3 , a fourth positive resistor R P4 , a fifth positive resistor R P5 , a first positive switch S P1 , a second positive switch S P2 , a third positive switch S P3 , a fourth positive switch S P4 and a fifth positive switch S P5 , one end of the first positive switch S P1 , the second positive switch S P2 , the third positive switch S P3 , the fourth positive switch S P4 and the fifth positive switch S P5 is connected with the drain of the first driving transistor and the positive output terminal, and the other end is connected with one end of the first positive resistor R P1 , the second positive resistor R P2 , the third positive resistor R P3 , the fourth positive resistor R P4 and the fifth positive resistor R P5 respectively, and the other end of the plurality of positive resistors is connected with the power voltage source , and the positive output terminal is used for outputting the positive weight voltage signal; the negative weight resistance module comprises a first negative resistor R N1 , a second negative resistor RN2 , the third negative resistance R N3 , the fourth negative resistance R N4 , the fifth negative resistance R N5 , the first negative switch S N1 , the second negative switch S N2 , the third negative switch S N3 , the fourth negative switch S N4 , and the fifth negative switch S N5 , wherein one end of the first negative switch S N1 , the second negative switch S N2 , the third negative switch S N3 , the fourth negative switch S N4 , and the fifth negative switch S N5 is connected with the drain of the first driving transistor , and the negative output end, and the other end is connected with one end of the first negative resistance R N1 , the second negative resistance R N2 , the third negative resistance R N3 , the fourth negative resistance R N4 , and the fifth negative resistance R N5 , respectively, and the other end of the plurality of negative resistances is connected with the power voltage source , and the negative output end is used for outputting the negative weight voltage signal.

[0010] Preferably, the resistance values of the first positive resistance R P1 , the second positive resistance R P2 , the third positive resistance R P3 , the fourth positive resistance R P4 , and the fifth positive resistance R P5 , and the first negative resistance R N1 , the second negative resistance R N2 , the third negative resistance R N3 , the fourth negative resistance R N4 , and the fifth negative resistance R N5 are configured in the ratio of 1:2:4:8:16, and the voltage difference output by the positive weight resistance module and the negative weight resistance module is specifically as follows: ; In the formula, is the voltage difference, R S is the resistance value of the selected positive resistance and negative resistance, is the negative weight storage current, is the positive weight storage current.

[0011] Preferably, the two sampling switches include a first sampling switch and a second sampling switch, and the two CDACs include a first CDAC and a second CDAC; the first CDAC includes a plurality of first high-order capacitors, a plurality of first low-order capacitors and a first bridge capacitor; the second CDAC includes a plurality of second high-order capacitors, a plurality of second low-order capacitors and a second bridge capacitor; In the sampling stage, the lower plates of the plurality of first high-order capacitors and the plurality of first low-order capacitors in the first CDAC are connected with a reference voltage source , and the upper plates of the plurality of first high-order capacitors and the first bridge capacitor are connected with an output end of the first sampling switch and one input end of the comparator; the lower plates of the plurality of second high-order capacitors and the plurality of second low-order capacitors in the second CDAC are connected with the reference voltage source , and the upper plates of the plurality of second high-order capacitors and the second bridge capacitor are connected with an output end of the second sampling switch and the other input end of the comparator. In the quantization stage, the SAR logic circuit generates a first clock signal to control the comparator to compare the voltages at the two input ends, and transmits the comparison result back to the SAR logic circuit to generate a digital code of a current bit and a second clock signal to control switching of the two CDACs. The quantization module generates a digital code representing a result of in-memory calculation and an indication signal representing completion of quantization after the sampling stage and the quantization stage.

[0012] Compared with the prior art, the above at least one technical scheme of the present application can achieve the following beneficial effects: The readout unit circuit of the present application includes a conversion module and a quantization module, wherein the conversion module includes a positive weight current conversion unit and a negative weight current conversion unit which are identical in structure, and each includes an operational amplifier, a driving transistor, a compensation resistor, a compensation capacitor and a compensation transistor; the operational amplifier and the driving transistor together clamp a corresponding bit line to a fixed voltage to provide stable current driving for the bit line; the compensation resistor and the compensation capacitor are connected in series between the gate and the drain of the driving transistor to ensure stability of the clamping circuit; and the compensation transistor has a gate connected with a bias voltage source and a source connected with ground to provide a basic working current for the clamping circuit, so that the clamping circuit can still maintain a saturated state of the driving transistor when the memory and calculation current is small or 0. This design avoids the influence of the conversion resistor on the stability of the clamping loop, so that the conversion module can stably drive the rapidly changing memory and calculation current with a small area and power consumption overhead.

[0013] The quantization module comprises two sampling switches, two CDACs, a comparator and a SAR logic circuit, wherein the input ends of the two sampling switches are connected with the output ends of the positive weight resistance module and the negative weight resistance module respectively, the output ends are connected with the upper plates of the two CDACs and the positive input end and the negative input end of the comparator respectively, the output end of the comparator is connected with the input end of the SAR logic circuit, and the SAR logic circuit is used for outputting N bit digital code. The application connects the CDAC to the output end of the conversion module through the sampling switch, so that it participates in the current-voltage conversion process of the next cycle as the load of the conversion module, without increasing the buffer, reduces the area, and completes the sampling of the quantization module at the same time when the conversion module completes the conversion, thereby avoiding the additional overhead required for the quantization module to wait for the output voltage of the conversion module to be stable before sampling, and improving the working speed and power efficiency of the readout unit circuit. BRIEF DESCRIPTION OF DRAWINGS

[0014] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0015] Figure 1 a schematic structure of a macro circuit for in-memory computing based on a FLASH memory; Figure 2 a traditional readout unit circuit structure diagram; Figure 3 a resistance type readout unit circuit structure diagram of the present application; Figure 4 a structure diagram of a conversion module in the resistance type readout unit circuit of the present application; Figure 5 a structure diagram of a quantization module in the resistance type readout unit circuit of the present application; Figure 6 a working timing diagram of the resistance type readout unit circuit of the present application; Figure 7 an input-output characteristic curve of the resistance type readout unit circuit of the present application; Figure 8 an output time domain simulation result of the conversion module in the resistance type readout unit circuit of the present application; Figure 9 an FFT result output by the quantization module in the resistance type readout unit circuit of the present application. DETAILED DESCRIPTION

[0016] With reference to the drawings of the embodiments of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments of the present application, all the other embodiments obtained by those skilled in the art without creative work fall within the scope of the present application.

[0017] To illustrate the principles and effects of the present application, first, the structure and principles of the in-memory computing macro circuit based on FLASH memory and the structure and principles of the traditional readout unit circuit are described.

[0018] Figure 1 The schematic structure of the in-memory computing macro circuit based on FLASH memory includes a computing array composed of m rows and n columns of FLASH memory units, m rows of readout unit circuits, a digital shift adder, and a general memory. The computing array is mainly responsible for storing weight data and performing multiplication and addition operations on the weight data and input data on the word line. Since the multiplication and addition operations are performed in the form of analog current, and the weight data of the computing array is usually in differential form (divided into positive weight data and negative weight data), the operation results of the positive weight data and the input data are converged in the form of current to the positive weight bit line BLP, and the operation results of the negative weight data and the input data are converged in the form of current to the negative weight bit line BLN. Therefore, the multiplication and addition results of the m rows in the computing array are converged on m pairs of differential bit lines (BLP1 and BLN1, BLP2 and BLN2, … BLPm and BLNm), which need to be read out by the m rows of readout unit circuits one by one. Then, the digital codes converted by the m rows of readout unit circuits are subjected to shift addition operation by the digital shift adder, and the calculation results are stored in the general memory. m and BLN m ), which need to be read out by the m rows of readout unit circuits one by one. Then, the digital codes converted by the m rows of readout unit circuits are subjected to shift addition operation by the digital shift adder, and the calculation results are stored in the general memory.

[0019] Figure 2 The traditional readout unit circuit structure diagram includes a trans-impedance amplifier (TIA), an output buffer, and an analog-to-digital converter (ADC). The circuit uses a TIA to realize the IVC function, and the voltages of the positive weight bit line BLP and the negative weight bit line BLN are clamped to preset values by two TIAs, respectively and convert the computing currents on BLP and BLN into analog voltages. Then, the analog voltages are driven to the ADC for sampling by the output buffer, and the digital codes are obtained by the ADC quantization The circuit can quickly complete current-voltage conversion, but since the sampling of the ADC is performed after the TIA completes the conversion, in order to ensure the stability of the TIA output voltage, an additional unit gain buffer is needed to drive the voltage to the ADC, which greatly increases the power consumption and area overhead of the circuit. In addition, in order to avoid the influence of the resistance and on the stability of the clamping loop, the circuit usually uses a TIA structure composed of two operational amplifiers to realize the functions of clamping and voltage-current conversion, which also increases the overhead of the circuit.

[0020] In order to further improve the area and power efficiency of the CIM chip, the readout unit circuit also needs to further optimize the structure and sampling timing of the ADC according to the output voltage range and driving capability of the IVC.

[0021] In order to overcome the shortcomings of the prior art, the present application provides a resistance type readout unit circuit for FLASH in-memory computing. For converting an analog current signal representing the result of a multiplication-addition calculation in a memory-computing array into a digital code, including a conversion module (realizing the function of IVC) and a quantization module (realizing the function of SAR ADC). Wherein, the conversion module is composed of a clamping circuit based on a low-dropout linear regulator (LDO) and a multi-gear programmable resistance module. This structure avoids the influence of the resistance in the traditional transimpedance amplifier on the stability of the clamping loop, realizes the functions of clamping, driving and current-voltage conversion for the FLASH memory-computing array with small overhead, and effectively improves the input dynamic range of the readout circuit. The quantization module adopts a capacitor digital-to-analog converter (CDAC) structure combining scaling capacitors and one-way switching logic, so that its quantization range can accurately adapt to the output voltage range of the conversion module. In addition, the present application optimizes the working timing of the conversion module and the quantization module in coordination, completes the sampling of the quantization module at the same time as the current-voltage conversion of the conversion module, improves the working speed and power efficiency of the readout circuit.

[0022] In order to better understand the principles and advantages of the present application, the following will be described in conjunction with Figures 3 to 9 The readout unit circuit of the present application includes a conversion module and a quantization module. Wherein, the function of the conversion module is to clamp and drive the bit line of the FLASH memory-computing array, and convert the memory-computing current on the bit line into an analog voltage; the main function of the quantization module is to quantize the analog voltage signal output by the conversion module and output a digital code representing the result of in-memory computing.

[0023] The conversion module comprises positive weight current conversion units and negative weight current conversion units with the same structure, and positive weight resistance modules and negative weight resistance modules; wherein, the input ends of the positive weight current conversion units and the negative weight current conversion units are connected with the positive weight bit line and the negative weight bit line respectively, and the output ends are connected with the input ends of the positive weight resistance modules and the negative weight resistance modules respectively; each of them comprises an operational amplifier, a driving transistor, a compensation resistor, a compensation capacitor and a compensation transistor; the positive end of the operational amplifier is connected with a clamping voltage, the negative end is connected with the source of the driving transistor, the corresponding bit line and the drain of the compensation transistor, the output end is connected with the gate of the driving transistor, the compensation resistor and the compensation capacitor are connected in series between the gate and the drain of the driving transistor, the gate of the compensation transistor is connected with a bias voltage, and the source is grounded; the output ends of the positive weight resistance modules and the negative weight resistance modules are used for outputting corresponding voltage signals. N The quantization module comprises two sampling switches, two CDACs, a comparator and a SAR logic circuit, wherein, the input ends of the two sampling switches are connected with the output ends of the positive weight resistance modules and the negative weight resistance modules respectively, the output ends are connected with the upper plates of the two CDACs and the positive input end and the negative input end of the comparator respectively, the output end of the comparator is connected with the input end of the SAR logic circuit, and the SAR logic circuit is used for outputting bit digital codes.

[0024] In one embodiment, the resistance type readout unit circuit structure of the present application is as shown in Figure 3 The input end is connected with the positive weight bit line BLP and the negative weight bit line BLN of the FLASH memory array, the voltage of BLP and BLN is clamped to a preset value by the conversion module , so that the two sides of each memory cell in the FLASH memory array keep a fixed pressure difference, thereby generating stable memory and calculation currents. When the CIM system performs multiplication and addition calculation operation, the memory cells selected by the memory and calculation array word line group WL<255:0> (i.e. the input data of the CIM system) will form currents from the bit line to the ground, which will converge on BLP or BLN and form positive weight memory and calculation currents and negative weight memory and calculation currents respectively. In addition, the resistance type readout unit circuit of the present application converts the memory and calculation currents into analog voltages and through the multi-gear programmable resistance in the conversion module and , and connects the CDAC (Capacitive Digital-to-Analog Converter) in the quantization module to the output end of the conversion module before the conversion module starts conversion, so that the sampling of the quantization module is completed at the same time when the current-voltage conversion of the conversion module is completed. Then, the output voltage of the conversion module is quantized into digital codes by the quantization module immediately, and an indication signal CK D representing the end of quantization is generated.

[0025] In one embodiment, the structure of the conversion module in the resistive readout unit circuit of the present invention is as follows: Figure 4 As shown, it includes a positive-weighted current conversion unit connected to the positive-weighted bit line BLP and a negative-weighted current conversion unit connected to the negative-weighted bit line BLN. Both conversion units employ the same structure, each including an LDO-based clamping circuit and a multi-stage programmable resistor module. The clamping circuit is used to clamp the voltages of bit lines BLP and BLN to preset values. Simultaneously driving the storage current on the bit lines and This ensures the stability of the stored current; the multi-position programmable resistor module is used to convert the stored current on the bit line into a voltage signal and output it to the quantization module.

[0026] In one embodiment, the LDO-based clamping circuit in the positive weighted current conversion unit includes a first operational amplifier. First driving transistor First compensation resistor First compensation capacitor and the first compensation transistor that provides compensation current. First operational amplifier The positive terminal is connected to the clamping voltage. The negative end connects to the bit line BLP. The drain and The source and output terminals are connected to The gate. First compensation resistor. and the first compensation capacitor Connected to The gate and drain of the first compensation transistor are positioned to ensure the stability of the clamping circuit. Gate connection bias voltage The source is grounded to provide the basic operating current for the clamping circuit. This allows the clamping circuit to maintain the first driving transistor even when the storage current is small or zero. The saturation state. Furthermore, the clamping circuit structure in the negative-weighted current conversion unit is the same as that in the positive-weighted current conversion unit; the difference lies in the input of the clamping circuit in the positive-weighted current conversion unit ( The source is connected to the bit line BLP, and the output is ( (drain) connection The input of the clamping circuit in the negative weighted current conversion unit ( The source is connected to the bit line BLN, and the output is ( (drain) connection .

[0027] The negative weighted current conversion unit includes a second operational amplifier. Second driving transistor Second compensation resistor Second compensation capacitor and the second compensation transistor Second operational amplifier positive terminal and clamping voltage Connect the negative terminal to the second driving transistor. The source, negative weight bit line, and second compensation transistor The drain is connected, and the output is connected to the second driving transistor. Gate connection, second compensation resistor Second compensation capacitor Connected in series with the second driving transistor Between the gate and drain of the second compensation transistor Gate and bias voltage Connect, source grounded.

[0028] In one embodiment, both the positive-weighted resistor module and the negative-weighted resistor module include multiple resistors of different resistance values ​​connected in parallel and multiple switches. One end of each switch is connected to the drain and output terminal of the driving transistor for outputting voltage; the other end is connected to one end of each of the multiple resistors, and the other end of each of the multiple resistors is connected to the power supply voltage. The multi-position programmable resistor module includes a resistor R. P1 ~R P5 and switch S P1 ~S P5 The multi-position programmable resistor module in the negative weight current conversion unit includes resistor R. N1 ~R N5 and switch S N1 ~S N5 Resistance R P1 ~R P5 The resistance values ​​are configured in a ratio of 1:2:4:8:16, and the resistor R N1 ~R N5 The resistance value and R P1 ~R P5 Correspondingly equal, the positive terminals of these resistors are all connected to the power supply voltage. The negative terminals are connected to switch S respectively. P1 ~S P5 and S N1 ~S N5 .

[0029] Specifically, the positive weighted resistor module includes a first positive resistor R. P1 The second positive resistor R P2 The third positive resistor R P3 Fourth positive resistor RP4 , fifth positive resistor R P5 , first positive switch S P1 , second positive switch S P2 , third positive switch S P3 , fourth positive switch S P4 , and fifth positive switch S P5 , wherein one end of the first positive switch S P1 , second positive switch S P2 , third positive switch S P3 , fourth positive switch S P4 , and fifth positive switch S P5 is connected with the first driving transistor drain and positive output end, and the other end is connected with one end of the first positive resistor R P1 , second positive resistor R P2 , third positive resistor R P3 , fourth positive resistor R P4 , and fifth positive resistor R P5 , respectively, and the other end of the plurality of positive resistors is connected with the power supply voltage , and the positive output end is used for outputting a positive weight voltage signal; The negative weight resistor module includes first negative resistor R N1 , second negative resistor R N2 , third negative resistor R N3 , fourth negative resistor R N4 , fifth negative resistor R N5 , first negative switch S N1 , second negative switch S N2 , third negative switch S N3 , fourth negative switch S N4 , and fifth negative switch S N5 , wherein one end of the first negative switch S N1 , second negative switch S N2 , third negative switch S N3 , fourth negative switch S N4 , and fifth negative switch S N5 is connected with the first driving transistor drain and negative output end, and the other end is connected with one end of the first negative resistor R N1 , second negative resistor R N2 , third negative resistor R N3 , fourth negative resistor R N4 , and fifth negative resistor R N5 , respectively, and the other end of the plurality of negative resistors is connected with the power supply voltage , and the negative output end is used for outputting a negative weight voltage signal.

[0030] In different application scenarios, the CIM system programs the multi-grade programmable resistance modules in the positive weight current conversion unit and the negative weight current conversion unit to select a pair of resistors R P1 ~R P5 and R N1 ~R N5 as the conversion resistor and , and connects the negative end of the conversion resistor to the drain of the driving transistor and in the clamping circuit, respectively. At this time, the current flowing through the resistor is the positive weight storage current of the branch and the compensation current , i.e. . The negative end voltage of the resistor , i.e. the output voltage of the positive weight current conversion unit, can be represented as . Similarly, the relationship between the output voltage of the negative weight current conversion unit and the negative weight storage current can be represented as . Since , and let its resistance be , the relationship between the voltage difference ( ) between the positive and negative output ends of the conversion module and , can be represented as: ; wherein is the voltage difference, R S is the resistance value of the selected positive resistor and negative resistor, is the negative weight storage current, is the positive weight storage current.

[0031] In this embodiment, the CIM system has five storage current maximum values, and the resistance type readout unit circuit of the present application programs the size of the conversion resistor in the conversion module to make the voltage difference between the positive and negative output ends of the conversion module in the five current grades change in the range of 200 mV, i.e. the peak-to-peak value of is 400 mV.

[0032] The two sampling switches include a first sampling switch and a second sampling switch, and the two CDACs include a first CDAC and a second CDAC.

[0033] In one embodiment, the structure of the 8-bit quantization module in the resistive readout unit circuit of the present invention is as follows: Figure 5 As shown, the circuit includes a first sampling switch, a second sampling switch, a first CDAC, a second CDAC, a comparator, and SAR logic circuitry. The CDAC is a capacitive analog-to-digital converter. The first CDAC includes a capacitor C. P1 C P7 First bridging capacitor C B1 First unit capacitance C U1 First scaling capacitor C S1 The second CDAC includes capacitor C. N1 C N7 Second bridging capacitor C B2 Second unit capacitance C U2 Second scaling capacitor C S2 In the first CDAC, capacitor C P1 C P4 and the first unit capacitance C U1 The first low-order capacitor, capacitor C P5 C P7 This is the first high-order capacitor. In the second CDAC, capacitor C... N1 C N4 Second unit capacitance C U2 The second lowest voltage level capacitor, capacitor C N5 C N7 It is the second highest capacitor.

[0034] Both the first CDAC and the second CDAC are segmented 8-bit structures (containing the lower 5 bits and the higher 3 bits) to reduce the total capacitance required to drive the conversion module during the sampling phase of the quantization module. The first bridge capacitor C... B1 Second bridge capacitor C B2 Used to connect the low-order capacitor and the high-order capacitor, the first unit capacitor C U1 Second unit capacitance C U2 The capacitance value is C U This is used to complete the binary relationship of the capacitor array. The first scaling capacitor C... S1 Second scaling capacitor C S2 Used to scale the quantization range of the quantization module to the voltage difference between the positive and negative output terminals of the conversion module. The peak-to-peak values ​​are the same. Since the equivalent sampling capacitance of the first CDAC is 8C... U In this embodiment, the reference voltage It is 1.5V. The peak-to-peak value is 400mV. Based on the law of charge conservation, C can be deduced. S1 Size is 22C U Similarly, in the second CDAC, C S2 The size is also 22C U Furthermore, to better adapt to the output voltage range of the conversion module, this CDAC employs unidirectional switching logic, meaning that during the sampling phase of the quantization module, capacitor C... P1 C P7 And C N1 C N7 The lower electrode plates are all connected to And in the quantization stage, it unidirectionally transforms from the current step based on the current transformation result. Switch to GND, or keep The capacitance C in the first CDAC remains unchanged during sampling by the quantization module. P5 C P7 The upper plate and bridging capacitor C B1 The upper plates of both electrodes are connected to the output of the first sampling switch and one input of the comparator; capacitor C in the second CDAC N5 C N7 The upper plate and bridging capacitor C B2 The upper plates of both are connected to the output terminal of the second sampling switch and the other input terminal of the comparator. The two sampling switches are used to sample the output voltage of the conversion module. and And it is held on the first CDAC and the second CDAC respectively. After sampling, the quantization module enters the quantization stage, and the SAR logic circuit generates the first clock signal CK. C This controls the comparator to compare the voltages at its positive and negative terminals, and transmits the comparison result back to the SAR logic circuit to generate the digital code B for the current bit. N (In this embodiment) N 0 7) and the second clock signal CK that controls the switching of the two CDACs. N After eight cycles of the quantization process described above, the quantization module will generate an 8-bit digital code representing the in-memory calculation result. And the CK signal indicating quantization completion. D .

[0035] In one embodiment, the timing sequence of the resistive readout unit circuit of the present invention is as follows: Figure 6 As shown. In At any given time, the CIM system controls the word line via the CK signal. WLThe word line group WL<255:0> of the FLASH memory array is driven, thereby selecting or disabling some memory cells and changing the memory current values ​​on BLP and BLN. Subsequently, the conversion module converts the changed memory current into analog voltage. and At the same time, the CIM system uses the signal CK S CK0 is reset on the rising edge, and the conversion is completed in the conversion module. At that moment, through CK S The falling edge of the signal samplees the output voltage of the conversion module and holds it on the CDAC of the quantization module. arrive At that moment, the SAR logic circuit in the quantization module will generate signal CK7. CK0 (CK5~CK1 are represented by ellipses in the diagram) quantizes the output voltage of the conversion module, and immediately after quantization, controls the sampling switch via CK0 to connect the upper plates of the high 3 bits of the CDAC capacitor and the bridging capacitor to the output terminal of the conversion module. arrive At any given moment, the CIM control system uses the indication signal CK generated by the quantization module. D To collect the 8-bit digital code representing the in-memory calculation result .exist After a certain time, the CIM control system will change the stored current values ​​on BLP and BLN according to the stored results it has collected, while the CDAC in the quantization module will directly participate in the current-voltage conversion process as the load of the conversion module, and then continue to participate in the quantization process of the quantization module.

[0036] Figure 7 This is the input-output characteristic curve of the resistive readout unit circuit of this invention. The vertical axis represents the negative weighted computing current value in the FLASH computing array. With positive weighted storage current value The difference The difference serves as the input to the readout unit circuit; the horizontal axis represents the digital code output by the readout unit circuit after its input has been converted by the conversion module and quantized by the quantization module. In this embodiment, the maximum storage current of the CIM system used in this invention has five levels, namely 3.125... A, 6.25 A, 12.5 A, 25 A and 50 A, and the resistance type readout unit circuit of the application can make the output digital code range of the conversion module in the case of different gear current input between 0-255 by adjusting the size of the conversion resistance in the conversion module. Therefore, the resistance type readout unit circuit of the application has higher input dynamic range and linearity, and can effectively adapt to various application scenarios of the CIM system.

[0037] Figure 8 is the output time domain simulation result of the conversion module in the resistance type readout unit circuit of the application. Wherein, and The initial value is 0 A, at 10nS, becomes the maximum value 12.5 of the storage and calculation current of the third gear of the CIM system A, becomes the unit value 97.6nA of the storage and calculation current under the third gear 3. In and After the change, the conversion module immediately starts the current-voltage conversion work and can establish the output voltage and within 50nS. Therefore, the working frequency of the conversion module in the embodiment is maximum 20MHz, which can meet the speed requirement of the readout unit circuit of the CIM system.

[0038] The power spectrum density diagram obtained by performing fast Fourier transform (FFT) on the output of the quantization module (8 bits in the embodiment) in the resistance type readout unit circuit of the application is shown in Figure 9 , wherein the sampling frequency of the quantization module is 10 MSPS, and the input signal is a single-frequency sine wave of 998.5 kHz. It can be seen that the effective number of bits (ENOB) of the quantization module in the embodiment is 7.55bit, the signal-to-noise distortion ratio (SNDR) is 47.19dB, the spurious-free dynamic range (SFDR) is 66.8dB, the signal-to-noise ratio (SNR) is 47.3dB, and the total harmonic distortion (THD) is 63.38dB. The overall performance can meet the accuracy requirement of the readout unit circuit of the CIM system.

[0039] In summary, the resistance type readout unit circuit for FLASH in-memory computing proposed in the application can quickly and stably convert the storage and calculation current signal into a digital signal, and has the advantages of multiple gears, high input dynamic range, low power consumption and small area.

[0040] In the conversion module, the application adopts a LDO-based clamping circuit to clamp and drive the bit line of the FLASH storage and calculation array, and by isolating the clamping loop and the conversion resistance from each other, the influence of the conversion resistance on the stability of the clamping loop is avoided, so that the conversion module can stably drive the rapidly changing storage and calculation current with small area and power consumption.

[0041] The application adopts a multi-gear programmable conversion resistance in the conversion module, so that the peak-to-peak value of the output voltage of the conversion module can remain consistent when processing different gears of the computing current, and the application adopts a combination of scaling capacitance and one-way switching logic in the CDAC of the quantization module, so that the quantization range of the quantization module can adapt to the output voltage range of the conversion module. Therefore, through the collaborative design of the conversion module and the quantization module, the input dynamic range and the readout accuracy of the readout circuit are effectively improved.

[0042] After the quantization module completes quantization, the CDAC is directly connected to the output end of the conversion module, so that it participates in the current-voltage conversion process of the next cycle as a load of the conversion module, and the sampling of the quantization module is completed at the same time as the conversion of the conversion module is completed, thereby avoiding the additional overhead required for waiting for the conversion of the conversion module to complete before sampling, and improving the working speed and power efficiency of the readout circuit.

[0043] The application provides a resistance type readout unit circuit for FLASH in-memory computing, including a conversion module and a quantization module. The conversion module is composed of a low dropout linear regulator (LDO) based clamping circuit and a multi-gear programmable resistance module, which not only improves the stability and current processing range of the circuit, but also avoids the additional overhead caused by using multiple operational amplifiers. Secondly, the application adopts a CDAC structure combining scaling capacitance and one-way switching logic in the quantization module, so that the quantization range can accurately adapt to the output voltage range of the conversion module. In addition, the application optimizes the working timing of the conversion module and the quantization module, completes the sampling of the quantization module at the same time as the current-voltage conversion of the conversion module, and improves the working speed and power efficiency of the readout unit circuit.

[0044] Although the preferred embodiments of the application have been described, those skilled in the art can make further changes and modifications to the embodiments once they know the basic inventive concept. Therefore, the appended claims are intended to be interpreted as including all changes and modifications falling within the scope of the application.

[0045] Obviously, those skilled in the art can make various modifications and changes to the application without departing from the spirit and scope of the application. Thus, if these modifications and changes of the application fall within the scope of the claims of the application and their equivalents, the application also intends to include these modifications and changes.

Claims

1. A resistive sense cell circuit for in-FLASH computing, characterized by, The conversion module and the quantization module are included. The conversion module includes positive weight current conversion units and negative weight current conversion units with the same structure, and positive weight resistance modules and negative weight resistance modules with the same structure; wherein the input ends of the positive weight current conversion units and the negative weight current conversion units are connected with positive weight bit lines and negative weight bit lines respectively, and the output ends are connected with the input ends of the positive weight resistance modules and the negative weight resistance modules respectively; the positive weight current conversion units and the negative weight current conversion units both include operational amplifiers, drive transistors, compensation resistors, compensation capacitors and compensation transistors; the positive end of the operational amplifier is connected with a clamping voltage source, the negative end is connected with the source of the drive transistor, the corresponding bit line and the drain of the compensation transistor, and the output end is connected with the gate of the drive transistor; the compensation resistor and the compensation capacitor are connected in series between the gate and the drain of the drive transistor, the gate of the compensation transistor is connected with a bias voltage source, and the source is grounded; the output ends of the positive weight resistance modules and the negative weight resistance modules are used to output corresponding voltage signals. The quantization module comprises two sampling switches, two CDACs, a comparator and a SAR logic circuit, wherein the input terminals of the two sampling switches are connected with the output terminals of the positive weight resistance module and the negative weight resistance module respectively, the output terminals are connected with the upper plates of the two CDACs and the positive input terminal and the negative input terminal of the comparator respectively, the output terminal of the comparator is connected with the input terminal of the SAR logic circuit, and the SAR logic circuit is used for outputting N a digital code.

2. A resistive sense cell circuit for in-FLASH computing as claimed in claim 1, characterized in that, The positive weight current conversion unit comprises a first operational amplifier ( ), a first driving transistor ( ), a first compensation resistor ( ), a first compensation capacitor ( ) and a first compensation transistor ( ); the positive terminal of the first operational amplifier ( ) is connected with a clamping voltage source ( ), the negative terminal is connected with the source of the first driving transistor ( ), the positive weight bit line and the drain of the first compensation transistor ( ), the output terminal is connected with the gate of the first driving transistor ( ), the first compensation resistor ( ) and the first compensation capacitor ( ) are connected in series between the gate and the drain of the first driving transistor ( ), the gate of the first compensation transistor ( ) is connected with a bias voltage source ( ), and the source is grounded. The negative weight current conversion unit comprises a second operational amplifier ( ), a second driving transistor ( ), a second compensation resistor ( ), a second compensation capacitor ( ) and a second compensation transistor ( ); the positive terminal of the second operational amplifier ( ) is connected with a clamping voltage source ( ), the negative terminal is connected with the source of the second driving transistor ( ), the negative weight bit line and the drain of the second compensation transistor ( ), the output terminal is connected with the gate of the second driving transistor ( ), the second compensation resistor ( ) and the second compensation capacitor ( ) are connected in series between the gate and the drain of the second driving transistor ( ), the gate of the second compensation transistor ( ) is connected with a bias voltage source ( ) and the source is grounded.

3. A resistive sense amplifier circuit for in-FLASH computing as defined in claim 1, wherein, The positive weight resistance modules and the negative weight resistance modules both include multiple resistors with different resistance values and multiple switches connected in parallel, one end of the multiple switches is connected with the drain of the drive transistor and the output end for outputting voltage, and the other end is connected with one end of the multiple resistors respectively, and the other end of the multiple resistors is connected with a power voltage source.

4. A resistive sense amplifier circuit for in-FLASH computing as defined in claim 2, wherein, The positive weight resistance module comprises a first positive resistance (R P1 ), a second positive resistance (R P2 ), a third positive resistance (R P3 ), a fourth positive resistance (R P4 ), a fifth positive resistance (R P5 ), a first positive switch (S P1 ), a second positive switch (S P2 ), a third positive switch (S P3 ), a fourth positive switch (S P4 ) and a fifth positive switch (S P5 ), wherein one end of the first positive switch (S P1 ), the second positive switch (S P2 ), the third positive switch (S P3 ), the fourth positive switch (S P4 ) and the fifth positive switch (S P5 ) is connected with the drain of the first driving transistor (Q ) and a positive output end, and the other end is connected with one end of the first positive resistance (R P1 ), the second positive resistance (R P2 ), the third positive resistance (R P3 ), the fourth positive resistance (R P4 ) and the fifth positive resistance (R P5 ) respectively, the other end of the plurality of positive resistances is connected with a power voltage source (V ), and the positive output end is used for outputting a positive weight voltage signal. The negative weight resistance module comprises a first negative resistance (R N1 ), a second negative resistance (R N2 ), a third negative resistance (R N3 ), a fourth negative resistance (R N4 ), a fifth negative resistance (R N5 ), a first negative switch (S N1 ), a second negative switch (S N2 ), a third negative switch (S N3 ), a fourth negative switch (S N4 ) and a fifth negative switch (S N5 ), wherein one end of the first negative switch (S N1 ), the second negative switch (S N2 ), the third negative switch (S N3 ), the fourth negative switch (S N4 ) and the fifth negative switch (S N5 ) is connected with the drain of the first driving transistor (Q ) and a negative output end, and the other end is connected with one end of the first negative resistance (R N1 ), the second negative resistance (R N2 ), the third negative resistance (R N3 ), the fourth negative resistance (R N4 ) and the fifth negative resistance (R N5 ) respectively, the other end of the plurality of negative resistances is connected with a power voltage source (V ), and the negative output end is used for outputting a negative weight voltage signal.

5. A resistive sense amplifier circuit for in-FLASH computing as defined in claim 4, wherein, The resistance values of the first positive resistance (R P1 ), the second positive resistance (R P2 ), the third positive resistance (R P3 ), the fourth positive resistance (R P4 ), and the fifth positive resistance (R P5 ) and the first negative resistance (R N1 ), the second negative resistance (R N2 ), the third negative resistance (R N3 ), the fourth negative resistance (R N4 ), and the fifth negative resistance (R N5 ) are configured in a ratio of 1:2:4:8:16, and the voltage difference output by the positive weight resistance module and the negative weight resistance module is specifically as follows: ; wherein is the voltage difference, R S is the resistance value of the selected positive and negative resistors, is the negative weight storage current, is the positive weight storage current.

6. A resistive sense amplifier circuit for in-FLASH computing as defined in claim 1, wherein, The two sampling switches include a first sampling switch and a second sampling switch, and the two CDACs include a first CDAC and a second CDAC; the first CDAC includes multiple first high-bit capacitors, multiple first low-bit capacitors and a first bridge capacitor; the second CDAC includes multiple second high-bit capacitors, multiple second low-bit capacitors and a second bridge capacitor. In the sampling stage, the lower plates of the plurality of first high capacitors and the lower plate of the first low capacitor in the first CDAC are connected to a reference voltage source (Vref) ), the upper plates of the plurality of first high capacitors and the upper plate of the first bridge capacitor are connected to the output of the first sampling switch and one input of the comparator; the lower plates of the plurality of second high capacitors and the lower plate of the second low capacitor in the second CDAC are connected to a reference voltage source (Vref) ), the upper plates of the plurality of second high capacitors and the upper plate of the second bridge capacitor are connected to the output of the second sampling switch and the other input of the comparator; In the quantization stage, the SAR logic circuit generates a first clock signal to control the comparator to compare the voltages at the two input ends, and transmits the comparison result back to the SAR logic circuit to generate a digital code of the current bit and a second clock signal to control the switching of the two CDACs. The quantization module generates a digital code representing the in-memory computing result and an indication signal representing the completion of quantization after the sampling stage and the quantization stage.

Citation Information

Patent Citations

  • Current read-out system of storage and calculation unit for in-storage operation and method thereof

    CN113484595A

  • Shortest path determination method based on memristor nonlinear weight mapping

    CN119132363A

  • Assembly line type in-memory computing circuit and module with embedded CDAC array

    CN120257926A

  • Compute-in-memory circuit based on charge redistribution, and control method thereof

    US20240386922A1