Readout unit for storage cell array and storage-computing integrated chip including the same

By introducing a decision sub-unit and a multi-select switch into the storage and computing integrated chip, the working mode of the ADC is optimized, and the problems of large area, time extension and high power consumption of the analog-to-digital conversion circuit in the memory unit array are solved, achieving a more efficient data processing and reduce costs.

CN112349316BActive Publication Date: 2024-10-22BEIJING ZHICUN (WITIN) TECH CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910723333.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-08-06
Publication Date
2024-10-22
Estimated Expiration
2039-08-06

AI Technical Summary

Technical Problem

The analog-to-digital conversion circuit (ADC) of the memory cell array in the existing storage and computing integrated chip processes a large variation range of analog current signals, resulting in large area, extended time and high power consumption, making it difficult to meet the needs of efficient data processing.

Method used

A readout unit including an ADC, a decision subunit and a multiplex selection switch is designed. The input voltage is compared through the decision subunit, and the input voltage is converted into a digital signal according to the preset voltage threshold, thereby reducing the quantization range of the ADC, and When the input current or voltage is less than or greater than the threshold, it is directly quantified to the minimum or maximum value to prevent the ADC from participating in the work.

Benefits of technology

Without losing accuracy, it simplifies the design of the ADC, reduces its area and power consumption, reduces circuit costs and delays, and promotes the miniaturization and low-cost of memory and storage and computing integrated chips.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112349316B_ABST
    Figure CN112349316B_ABST
Patent Text Reader

Abstract

The present invention provides a readout unit for a storage cell array and a storage-computing integrated chip including the readout unit, the readout unit includes: an ADC, a decision subunit and a multi-way selection switch; the input ends of the ADC and the decision subunit both receive input voltages, the output end of the decision subunit is connected to the control end of the ADC and the address selection end of the multi-way selection switch; the first input end of the multi-way selection switch is connected to the output end of the ADC, the second input end receives a first level, and the third input end receives a second level, the first level is less than the second level. On the one hand, the quantization range of the ADC can be reduced, and under the same quantization accuracy requirements, the design of the ADC can be effectively simplified, the area occupied by the ADC can be reduced, the power consumption of the ADC can be reduced, and the circuit cost can be reduced; on the other hand, the chip power consumption and delay can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of microelectronic integrated circuits, and in particular to a readout unit for a storage cell array and a storage-computing integrated chip comprising the readout unit. Background Art

[0002] The integrated storage and computing chip architecture is currently considered to be one of the efficient hardware platforms for solving the real-time intelligent processing of big data, and the storage cell array is the core circuit of the integrated storage and computing chip, especially the integrated storage and computing chip based on flash memory. For a typical storage cell array, since the signal it processes is an analog signal, and its input and output signals are usually required to be digital signals, it is usually necessary to convert the digital signal into an analog signal through a digital-to-analog converter circuit (DAC) at the input end, and convert the processed analog signal into a digital signal through an analog-to-digital converter circuit (ADC) at the output end. Figure 1 shown.

[0003] Since the analog current signal has a large variation range, in order to accurately and efficiently convert it, high quantization accuracy and margin requirements are placed on the ADC, which results in a large ADC area, long time delay, and high power consumption. Summary of the invention

[0004] In view of the problems in the prior art, the present invention provides a readout unit for a storage cell array and a storage-computing integrated chip including the readout unit, which can at least partially solve the problems in the prior art.

[0005] In order to achieve the above object, the present invention adopts the following technical solution:

[0006] In a first aspect, a readout unit for a storage cell array is provided, comprising: an ADC, a decision subunit, and a multi-way selection switch;

[0007] The input terminals of the ADC and the decision subunit both receive input voltages.

[0008] The output end of the decision subunit is connected to the control end of the ADC and the address gating end of the multi-way selection switch;

[0009] The first input terminal of the multi-way selection switch is connected to the output terminal of the ADC, the second input terminal receives a first level, and the third input terminal receives a second level, wherein the first level is lower than the second level.

[0010] Further, it also includes: a first current-voltage converter and a second current-voltage converter;

[0011] The first current-voltage converter is connected to the front end of the ADC and is used to convert the input current into the input voltage. The second current-voltage converter is connected to the front end of the decision subunit and is used to convert the input current into the input voltage.

[0012] Further, the first current-voltage converter and the second current-voltage converter each include: a first amplifier and a first resistive load;

[0013] One end of the first resistive load is connected to the negative input end of the first amplifier, and the other end is connected to the output end of the first amplifier.

[0014] The positive input terminal of the first amplifier receives the first bias voltage, the negative input terminal receives the input current, and the output terminal is used to output the input voltage.

[0015] Further, it also includes: a current mirror;

[0016] The current mirror is connected to a front end of the first current-voltage converter or the second current-voltage converter for replicating the input current.

[0017] Furthermore, the input voltage is a differential input voltage, and the two input terminals of the ADC and the two input terminals of the decision subunit are respectively input with a first input voltage and a second input voltage.

[0018] Furthermore, it also includes: a third current-voltage converter and a fourth current-voltage converter, the third current-voltage converter is used to convert the first input current into the first input voltage, and the fourth current-voltage converter is used to convert the second input current into the second input voltage.

[0019] Further, the third current-voltage converter and the fourth current-voltage converter each include: a second amplifier, a switch element and a second resistive load;

[0020] The first end of the switch element receives the first input current or the second input current, and the second end is connected to the output end of the second amplifier; the third end of the switch element is connected to one end of the second resistive load and serves as a voltage output end for outputting the first input voltage or the second input voltage;

[0021] The negative input terminal of the second amplifier receives the first input current or the second input current, and the positive input terminal receives the second bias voltage; the other end of the resistive load is connected to the third electrical level.

[0022] Further, the decision subunit includes: a first comparator and a second comparator;

[0023] The first input terminal of the first comparator and the first input terminal of the second comparator both receive the input voltage, and one of the second input terminal of the first comparator and the second input terminal of the second comparator receives a first preset voltage, and the other receives a second preset voltage;

[0024] Alternatively, the first input terminal of the first comparator and the second input terminal of the second comparator are both connected to the input voltage, one of the second input terminal of the first comparator and the first input terminal of the second comparator receives a first preset voltage, and the other receives a second preset voltage.

[0025] In a second aspect, a storage-computing integrated chip is provided, comprising: a storage cell array and a plurality of the above-mentioned read-out units, wherein the output end of each column of storage cells in the storage cell array is connected to one of the read-out units.

[0026] In a third aspect, a storage and computing integrated chip is provided, comprising: a storage cell array and a plurality of the above-mentioned read-out units, the storage cell array comprising: at least one positive weight column and at least one negative weight column, the output ends of a positive weight column and its corresponding negative weight column are both connected to one of the read-out units.

[0027] In a fourth aspect, a storage and computing integrated chip is provided, comprising: a storage cell array and a plurality of the above-mentioned read-out units, the storage cell array comprising: at least two positive weight columns and at least one constant column, the at least two positive weight columns share one constant column, and the output ends of a positive weight column and its corresponding constant column are both connected to one of the read-out units.

[0028] The present invention provides a readout unit for a storage cell array and a storage-computing integrated chip including the readout unit, wherein the readout unit includes: an ADC, a decision subunit, and a multi-way selection switch; the input ends of the ADC and the decision subunit both receive input voltages, and the output end of the decision subunit is connected to the control end of the ADC and the address selection end of the multi-way selection switch; the first input end of the multi-way selection switch is connected to the output end of the ADC, the second input end receives a first level, and the third input end receives a second level, and the first level is less than the second level. The decision subunit compares the input voltage with a first preset voltage and a second preset voltage, wherein the first preset voltage is less than the second preset voltage: when the input voltage is less than the first preset voltage, the multi-way selection switch selects the second input terminal in response to the output result of the decision subunit and outputs the first level; when the input voltage is greater than the first preset voltage and less than the second preset voltage, the ADC is started in response to the output result of the decision subunit, converts the input voltage into a digital signal, and the multi-way selection switch selects the first input terminal in response to the output result of the decision subunit and outputs the digital signal; when the input voltage is greater than the second preset voltage, the multi-way selection switch In response to the output result of the judgment subunit, the third input terminal is selected to output the second level. In this way, without losing or with very little loss of accuracy, on the one hand, the quantization range of the ADC can be reduced. Under the condition of the same quantization accuracy requirement, the design of the ADC can be effectively simplified, the area occupied by the ADC can be reduced, the power consumption of the ADC can be reduced, and the circuit cost can be reduced. On the other hand, when the input current or input voltage is less than threshold 1 or greater than threshold 2, it is directly quantized to the minimum value or maximum value without the need for the ADC to participate in the work, which can reduce the delay and further reduce the power consumption of the ADC, which is conducive to its promotion and utilization in various memories and storage-computing integrated chips, promotes the miniaturization and low cost of memories and storage-computing integrated chips, and reduces chip power consumption and delay.

[0029] In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0031] Figure 1A circuit diagram of an existing storage-computing integrated chip;

[0032] Figure 2 Another circuit diagram of an existing storage-computing integrated chip;

[0033] Figure 3 A typical schematic diagram of the current (voltage) output of a memory cell array is shown;

[0034] Figure 4 A circuit structure of a readout unit in an embodiment of the present invention is shown. Figure 1 ;

[0035] Figure 5a to Figure 5d A circuit structure diagram of a decision subunit in a readout unit according to an embodiment of the present invention is shown;

[0036] Figure 6 shows a circuit diagram of a readout unit in an embodiment of the present invention;

[0037] Figure 7 A circuit structure of a readout unit in an embodiment of the present invention is shown. Figure 2 ;

[0038] Figure 8 A circuit structure of a readout unit in an embodiment of the present invention is shown. Figure 3 ;

[0039] Fig. 9 The circuit structure of the readout unit using differential input in the embodiment of the present invention is shown. Figure 1 ;

[0040] Fig.10 The circuit structure of the readout unit using differential input in the embodiment of the present invention is shown. Figure 2 ;

[0041] Fig.11 A circuit diagram of a readout unit using differential input in an embodiment of the present invention is shown;

[0042] Fig.12 The circuit structure of the integrated storage and computing chip in the embodiment of the present invention is shown. Figure 1 ;

[0043] Fig.13 The circuit structure of the integrated storage and computing chip in the embodiment of the present invention is shown. Figure 2 ;

[0044] Fig.14 The circuit structure of a memory cell array and a differential input readout unit in an embodiment of the present invention is shown. Figure 1 ;

[0045] Fig.15The circuit structure of a memory cell array and a differential input readout unit in an embodiment of the present invention is shown. Figure 2 . DETAILED DESCRIPTION

[0046] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0047] The detailed features and advantages of the present invention are described in detail in the following embodiments, and the contents are sufficient to enable any person skilled in the art to understand the technical content of the present invention and implement it accordingly, and according to the contents, claims and drawings disclosed in this specification, any person skilled in the art can easily understand the relevant purposes and advantages of the present invention. The following examples further illustrate the viewpoints of the present invention in detail, but do not limit the scope of the present invention in any viewpoint.

[0048] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0049] Figure 1 FIG. 1 is a circuit diagram of an existing integrated storage and computing chip. Figure 1 As shown, the integrated storage and computing chip includes: a digital-to-analog conversion circuit module, a conversion module, a storage cell array, a readout module and a controller.

[0050] The output end of the digital-to-analog conversion circuit module is connected to the conversion module, the output end of the conversion module is connected to the storage cell array, the readout module includes multiple ADCs, the output end of each column of storage cells is connected to an ADC, the controller is connected to the digital-to-analog conversion circuit module, the conversion module, the storage cell array, and the readout module, and the storage cell can be a flash memory cell, that is, the storage cell can be implemented using a programmable semiconductor device, such as a floating gate transistor.

[0051] Among them, the digital-to-analog conversion circuit module is used to convert a digital input signal into an analog input signal, the conversion module is used to convert the analog input signal into an analog current, the storage unit array performs logical operations on the analog current it receives and the data stored therein, the ADC converts the analog signal obtained by the operation into a digital signal output, and the controller is used to control the coordinated work of each module.

[0052] Those skilled in the art will appreciate that the integrated storage and computing chip may also include: a read / write circuit for writing data into a storage cell array, and a row-column decoder for performing row-column decoding on the storage cell array.

[0053] Among them, since the variation range of the analog current signal is relatively large and the number of ADCs is large, in order to accurately perform the conversion, high requirements are placed on the quantization accuracy and margin of the ADC, which results in a large ADC area, long time extension and low power consumption.

[0054] Figure 2 FIG. 1 is another circuit diagram of an existing storage and computing integrated chip. Figure 2 As shown, the integrated storage and computing chip includes Figure 1 In addition to the components shown, the readout module may also include a current-to-voltage converter.

[0055] Specifically, the readout module includes multiple readout units, each of which includes a current-to-voltage converter and an ADC. The current-to-voltage converter is connected to the front end of the ADC. The output end of each column of storage cells in the storage cell array is connected to a readout unit. The current-to-voltage converter in the readout unit is used to convert the current signal output by the column of storage cells into a voltage signal, and the ADC converts the voltage signal into a digital signal.

[0056] Among them, the readout module at the output end of the storage cell array in the existing storage and computing integrated chip converts the processed analog signal into a digital signal through an analog-to-digital conversion circuit (ADC). Since the variation range of the analog current signal is relatively large, in order to accurately convert it, high requirements are placed on the quantization accuracy and margin of the ADC, which makes the ADC large in area, long in time and low in power consumption.

[0057] In order to at least partially solve the above-mentioned technical problems existing in the prior art, an embodiment of the present invention provides a readout unit, wherein the decision subunit compares the input voltage with a first preset voltage and a second preset voltage, wherein the first preset voltage is less than the second preset voltage: when the input voltage is less than the first preset voltage, the multi-way selection switch selects the second input terminal in response to the output result of the decision subunit and outputs the first level; when the input voltage is greater than the first preset voltage and less than the second preset voltage, the ADC is started in response to the output result of the decision subunit, converts the input voltage into a digital signal, and the multi-way selection switch selects the first input terminal in response to the output result of the decision subunit and outputs the digital signal; when the input voltage is greater than the second preset voltage, the multi-way selection switch In response to the output result of the judgment subunit, the third input terminal is selected to output the second level. In this way, without losing or with very little loss of accuracy, on the one hand, the quantization range of the ADC can be reduced. Under the condition that the quantization accuracy requirements are the same, the design of the ADC can be effectively simplified, the area occupied by the ADC can be reduced, the power consumption of the ADC can be reduced, and the circuit cost can be reduced. Under the condition that the ADC is the same, the quantization accuracy of the ADC can be effectively improved, and the readout accuracy can be improved. On the other hand, when the input current or input voltage is less than threshold 1 or greater than threshold 2, it is directly quantized to the minimum value or maximum value without the need for the ADC to participate in the work, which can reduce the delay and further reduce the power consumption of the ADC, which is conducive to its promotion and utilization in various memories and storage-computing integrated chips, promotes the miniaturization and low cost of memories and storage-computing integrated chips, and reduces chip power consumption and delay.

[0058] It is worth noting that after discovering the above-mentioned problems in the ADC of the storage cell array in the prior art, the applicant conducted a lot of research and investigation on the storage cell array of the integrated storage and computing chip. Through a large number of experiments, the applicant obtained the typical law that the output current (voltage) amplitude of the storage cell array satisfies, such as Figure 3As shown, the density of the output analog current (voltage) of the storage cell array conforms to a certain distribution, such as a normal distribution, that is, the output analog current (voltage) range is concentrated in a certain area, and the probability of the output analog current (voltage) falling outside the area is very low. In addition, the quantization results of the output current (voltage) amplitude of the storage cell array are studied and it is found that when the output current amplitude is less than threshold 1 or greater than threshold 2, the quantization result changes slowly, and when the output current amplitude is greater than threshold 1 and less than threshold 2, the quantization result changes steeply. Based on this discovery, the applicant invented an ADC optimization strategy, the basic core idea of ​​which is that before using the ADC to perform analog-to-digital conversion on the output current (voltage) of the storage cell array, a judgment is first made on the output current (voltage). When the output current (voltage) is less than threshold 1 or greater than threshold 2, the output current (voltage) is directly quantized to the minimum value or maximum value without the need for the ADC to participate in the work. Only when the output current (voltage) is greater than threshold 1 or less than threshold 2 will the ADC be triggered to work. In this way, the quantization range of the ADC can be effectively narrowed without losing or very little accuracy. Under the same quantization accuracy requirements, the design of the ADC can be effectively simplified, the area occupied by the ADC can be reduced, the power consumption of the ADC can be reduced, and the circuit cost can be reduced. On the other hand, when the input current or input voltage is less than threshold 1 or greater than threshold 2, it is directly quantized to the minimum value or maximum value without the need for the ADC to participate in the work, which can reduce the delay and further reduce the power consumption of the ADC.

[0059] Figure 4 A circuit structure of a readout unit in an embodiment of the present invention is shown. Figure 1 ;like Figure 4 As shown, the readout unit for the storage cell array includes: ADC100, decision subunit 200 and multi-way selection switch (MUX) 300;

[0060] The input terminals of the ADC 100 and the decision subunit 200 both receive an input voltage Vin, and the reference input terminal of the decision subunit 200 also receives a first preset voltage V L and the second preset voltage V H .

[0061] The output end of the decision subunit 200 is connected to the control end of ADC100 and the address selection end of the multi-way selection switch 300. The output signal of the decision subunit 200 is used as an enable input signal Enable for controlling whether ADC100 participates in the work, and the output signal of the decision subunit 200 is used as a selection signal Select for controlling which input end of the multi-way selection switch 300 is connected to the output end.

[0062] The first input terminal of the multi-way selection switch 300 is connected to the output terminal of the ADC 100, and the second input terminal receives the first level V outL , the third input terminal receives the second level V outH , where the first level V outL Less than the second level V outH .

[0063] It is worth noting that, since the multi-way selection switch 300 is at least a 3-to-1 switch, the selection signal select must be at least a 2-bit signal to meet the selection requirement of the 3-to-1 switch.

[0064] The first level may be the lowest quantization level, and the second level may be the highest quantization level.

[0065] Specifically, the decision subunit compares the input voltage Vin with the first preset voltage (threshold 1) V L and the second preset voltage (threshold 2) V H For comparison, the first preset voltage V L is less than the second preset voltage V H .

[0066] When the input voltage is less than the first preset voltage, the multi-way selection switch selects the second input terminal in response to the output result of the judgment subunit and outputs the first level, that is, when the output current (voltage) is less than threshold 1, the output current (voltage) is directly quantized to the minimum value without the need for ADC to participate.

[0067] When the input voltage is greater than a first preset voltage and less than a second preset voltage, the ADC is activated in response to an output result of the decision subunit, converts the input voltage into a digital signal, and the multi-way selection switch selects the first input terminal in response to the output result of the decision subunit to output the digital signal; that is, when the output current (voltage) is greater than threshold 1 or less than threshold 2, the ADC is triggered to work.

[0068] When the input voltage is greater than the second preset voltage, the multi-way selection switch selects the third input terminal in response to the output result of the judgment subunit and outputs the second level; that is, when the output current (voltage) is greater than threshold 2, the output current (voltage) is directly quantized to the maximum value without the need for ADC to participate in the work.

[0069] Through the above technical solution, since the input voltage less than the first preset voltage and greater than the second preset voltage is directly quantized, on the one hand, the quantization range of the ADC can be reduced (previously it was the full range, and now it is the range between the first preset voltage and the second preset voltage). Under the same quantization accuracy requirements, the design of the ADC can be effectively simplified, the area occupied by the ADC can be reduced, the power consumption of the ADC can be reduced, and the circuit cost can be reduced; on the other hand, when the input current or input voltage is less than threshold 1 or greater than threshold 2, it is directly quantized to the minimum value or maximum value without the need for the ADC to participate in the work, which can reduce the delay and further reduce the power consumption of the ADC, which is conducive to its promotion and utilization in various memories and storage-computing integrated chips, promotes the miniaturization and low cost of memories and storage-computing integrated chips, and reduces chip power consumption and delay.

[0070] In an optional embodiment, the decision subunit includes: a first comparator and a second comparator; the first input terminal of the first comparator and the first input terminal of the second comparator both receive input voltages, and one of the second input terminal of the first comparator and the second input terminal of the second comparator receives a first preset voltage, and the other receives a second preset voltage.

[0071] Alternatively, the first input terminal of the first comparator and the second input terminal of the second comparator are both connected to the input voltage, one of the second input terminal of the first comparator and the first input terminal of the second comparator receives a first preset voltage, and the other receives a second preset voltage.

[0072] Specifically, see Figure 5a The decision subunit 200 includes: a first comparator 210a and a second comparator 220a; the negative input terminal of the first comparator 210a and the positive input terminal of the second comparator 220a are both connected to the input voltage Vin, and the positive input terminal of the first comparator 210a receives the high threshold voltage V H , the negative input terminal of the second comparator receives the low threshold voltage V L .

[0073] Among them, when Vin <V L When , the output of the first comparator 210a is 1, and the output of the second comparator 220a is 0, the output of the judgment subunit is 10 or 01 (those skilled in the art will appreciate that whether it is 10 or 01 depends on whether the output of the first comparator 210a or the output of the second comparator 220a is first during encoding, and both methods are possible, and the encoding method can be adaptively adjusted);

[0074] When V L <Vin<V HWhen , the output of the first comparator 210a is 1, the output of the second comparator 220a is 1, and the output of the judgment subunit is 11;

[0075] When Vin>V H When the output of the first comparator 210a is 0, the output of the second comparator 220a is 1, the output of the judgment subunit is 01 or 10;

[0076] To be Vin <V L When the output of the decision subunit 200 is 10, when V L <Vin<V H When Vin>V H Taking the output of the judgment subunit 200 as 01 as an example, the encoding of this subunit is explained. The ADC is controlled to trigger the operation when Enable is 11, the MUX is controlled to select the input end connected to the ADC output end when Select is 11, the MUX is controlled to select the input end receiving the first level when Select is 10, and the MUX is controlled to select the input end receiving the second level when Select is 01.

[0077] It can be understood by those skilled in the art that the specific encoding is performed according to the output of the decision subunit during encoding. For other cases, the above encoding can be referred to. It is only necessary to satisfy the requirement in V L <Vin<V H When the ADC is triggered, the ADC will not be triggered, and the MUX will be at Vin <V L The first level, at V L <Vin<V H Output ADC output signal when Vin>V H The second level is output.

[0078] See also Figure 5b The decision subunit 200 includes: a first comparator 210b and a second comparator 220b; the negative input terminal of the first comparator 210b and the positive input terminal of the second comparator 220b are both connected to the input voltage Vin, and the positive input terminal of the first comparator 210b receives the low threshold voltage V L , the negative input terminal of the second comparator receives the high threshold voltage V H .

[0079] Among them, when Vin <V LWhen , the output of the first comparator 210b is 1, and the output of the second comparator 220b is 0, the output of the judgment subunit is 10 or 01 (those skilled in the art will appreciate that whether it is 10 or 01 depends on whether the output of the first comparator 210b or the output of the second comparator 220b is first during encoding, and both methods are possible, and the encoding method can be adaptively adjusted);

[0080] When V L <Vin<V H When , the output of the first comparator 210b is 0, the output of the second comparator 220b is 0, and the output of the judgment subunit is 00;

[0081] When Vin>V H When the output of the first comparator 210b is 0, the output of the second comparator 220b is 1, and the output of the judgment subunit is 01 or 10;

[0082] See also Figure 5c The decision subunit 200 includes: a first comparator 210c and a second comparator 220c; the negative input terminal of the first comparator 210c and the negative input terminal of the second comparator 220c are both connected to the input voltage Vin, and the positive input terminal of the first comparator 210c receives the low threshold voltage V L , the positive input terminal of the second comparator 220c receives the high threshold voltage V H .

[0083] Among them, when Vin <V L When , the output of the first comparator 210c is 1, the output of the second comparator 220c is 1, and the output of the judgment subunit is 11;

[0084] When V L <Vin<V H When , the output of the first comparator 210c is 0, the output of the second comparator 220c is 1, and the output of the judgment subunit is 01 or 10 (those skilled in the art will appreciate that whether it is 01 or 10 depends on whether the output of the first comparator 210c or the output of the second comparator 220c is first during encoding, and both methods are possible, and the encoding method can be adaptively adjusted);

[0085] When Vin>V H When , the output of the first comparator 210c is 0, the output of the second comparator 220c is 0, and the output of the judgment subunit is 00;

[0086] See also Figure 5dThe decision subunit 200 includes: a first comparator 210d and a second comparator 220d; the positive input terminal of the first comparator 210d and the positive input terminal of the second comparator 220d are both connected to the input voltage Vin, and the negative input terminal of the first comparator 210d receives the low threshold voltage V L , the negative input terminal of the second comparator 220d receives the high threshold voltage V H .

[0087] Among them, when Vin <V L When , the output of the first comparator 210d is 0, the output of the second comparator 220d is 0, and the output of the judgment subunit is 00;

[0088] When V L <Vin<V H When , the output of the first comparator 210d is 1, the output of the second comparator 220d is 0, and the output of the judgment subunit is 10 or 01 (those skilled in the art will appreciate that whether it is 10 or 01 depends on whether the output of the first comparator 210d or the output of the second comparator 220d is first during encoding, and both methods are possible, and the encoding method can be adaptively adjusted);

[0089] When Vin>V H When , the output of the first comparator 210d is 1, the output of the second comparator 220d is 1, and the output of the judgment subunit is 11;

[0090] Among them, the Figure 5d The circuit diagram of the readout unit of the decision subunit is shown as Figure 6 shown.

[0091] The circuit structure of the centralized decision subunit is listed above. Based on the same principle, those skilled in the art can think of various variations of the circuit, all of which fall within the protection scope of the present application and will not be described in detail here.

[0092] In an alternative embodiment, see Figure 7 The read-out unit for the storage cell array may also include: a current-to-voltage converter 400 and a current-to-voltage converter 500; the current-to-voltage converter 400 is connected to the front end of the ADC 100, and is used to convert the input current Iin into the input voltage Vin; the current-to-voltage converter 500 is connected to the front end of the decision subunit 200, and is used to convert the input current Iin into the input voltage Vin.

[0093] When the input of the readout unit is a current signal, the compatibility and adaptability of the readout unit can be effectively increased by converting the input current into an input voltage by providing a current-voltage converter.

[0094] In an alternative embodiment, see Figure 8 The current-to-voltage converter 400 includes an amplifier 410 and a resistive load 420 , wherein the resistive load 420 may be a resistor.

[0095] One end of the resistive load 420 is connected to the negative input end of the amplifier 410 , and the other end is connected to the output end of the amplifier 410 . The positive input end of the amplifier 410 receives the bias voltage Vs, the negative input end receives the input current Iin, and the output end is used to output the input voltage Vin.

[0096] In an optional embodiment, the current-to-voltage converter 500 includes: an amplifier 510 and a resistive load 520 ; wherein the resistive load 520 may be a resistor.

[0097] One end of the resistive load 520 is connected to the negative input end of the amplifier 510, and the other end is connected to the output end of the amplifier 510. The positive input end of the amplifier 510 receives the bias voltage Vs, the negative input end receives the input current Iin, and the output end is used to output the input voltage Vin.

[0098] In an optional embodiment, the readout unit for the memory cell array may further include: a current mirror;

[0099] The current mirror is connected to the front end of the current-to-voltage converter 400 or the current-to-voltage converter 500 to replicate the input current.

[0100] It will be understood by those skilled in the art that when the input is an input current, since both the ADC and the decision subcircuit need to input the input voltage converted from the input current, a current mirror is provided at the front end of the current-to-voltage converter 400 or the current-to-voltage converter 500 to copy the input current Iin, thereby improving the applicability of the circuit.

[0101] Fig. 9 FIG. 2 shows a circuit structure diagram of a readout unit using differential input in an embodiment of the present invention. Fig. 9 As shown, the circuit of the readout unit is Figure 4 The circuit results of the readout unit shown are basically the same, except that Fig. 9 The readout unit shown adopts a differential input voltage. Specifically, the two input terminals of the ADC and the two input terminals of the decision subunit respectively input the first input voltage Vin1 and the second input voltage Vin2, which is equivalent to the input voltage of the ADC and the decision subunit being the difference between the first input voltage Vin1 and the second input voltage Vin2.

[0102] Among them, the readout unit is not only suitable for single input occasions, but also suitable for differential input occasions, which improves the compatibility and applicability of the readout unit and can be used in various application scenarios.

[0103] In an alternative embodiment, see Fig.10 The readout unit may further include: a current-to-voltage converter 700 and a current-to-voltage converter 800, wherein the current-to-voltage converter 700 is used to convert the first input current Iin1 into the first input voltage Vin1, and the current-to-voltage converter 800 is used to convert the second input current Iin2 into the second input voltage Vin2.

[0104] Specifically, see Fig.11 , the current-voltage converter 700 includes: an amplifier 710, a switch element 720 and a resistive load 730;

[0105] The first end of the switch element 720 receives the first input current Iin1, and the second end is connected to the output end of the amplifier 710; the third end of the switch element 720 is connected to one end of the resistive load 730 and serves as a voltage output end for outputting the first input voltage Vin1;

[0106] The negative input terminal of the amplifier 710 receives the first input current Iin1, and the positive input terminal receives the bias voltage Vs; the other end of the resistive load 730 is connected to a low level or a ground level.

[0107] It is worth noting that the switch element can be implemented by an NMOS transistor or a PMOS, the second end can be a gate, the first end can be a source of the MOS transistor, and the second end can be a drain of the MOS transistor. Of course, the first end can also be a drain of the MOS transistor, in which case the second end is the source of the MOS transistor.

[0108] The transistor provided in the embodiment of the present invention may be a field effect transistor, an enhancement type field effect transistor, or a depletion type field effect transistor.

[0109] In addition, the current-to-voltage converter 800 includes: an amplifier 810, a switch element 820 and a resistive load 830;

[0110] The first end of the switch element 820 receives the second input current Iin2, and the second end is connected to the output end of the amplifier 810; the third end of the switch element 820 is connected to one end of the resistive load 830 and serves as a voltage output end for outputting the second input voltage Vin2;

[0111] The negative input terminal of the amplifier 810 receives the second input current Iin2, and the positive input terminal receives the bias voltage Vs; the other end of the resistive load 830 is connected to a low level or a ground level.

[0112] It is worth noting that the switch element can be implemented by an NMOS transistor or a PMOS, the second end can be a gate, the first end can be a source of the MOS transistor, and the second end can be a drain of the MOS transistor. Of course, the first end can also be a drain of the MOS transistor, in which case the second end is the source of the MOS transistor.

[0113] The transistor provided in the embodiment of the present invention may be a field effect transistor, an enhancement type field effect transistor, or a depletion type field effect transistor.

[0114] Those skilled in the art will appreciate that the readout unit is applicable to various readout occasions, and is particularly applicable to devices including storage cell arrays, such as various memories and storage-computing integrated chips.

[0115] Fig.12 and Fig.13 FIG. 1 shows a circuit structure diagram of a storage-computing integrated chip according to an embodiment of the present invention. Fig.12 and 13 As shown, the integrated storage and computing chip includes: a storage cell array and a readout module connected to the output end of the storage cell array. The storage cell array performs logical operations on the analog current it receives and the data stored internally, and the readout module is used to convert the analog signal obtained by the operation into a digital signal output.

[0116] Specifically, the read-out module includes multiple read-out units, and the output end of each column of storage cells in the storage cell array is connected to a read-out unit. The read-out unit can adopt the read-out unit described above, and the voltage or current output by each column of storage cells is used as the input voltage or current of the corresponding read-out unit. The output signal of the read-out unit is the output value of the storage cell in this column.

[0117] The embodiment of the present invention further provides a storage-computing integrated chip, the storage-computing integrated chip comprising: a storage cell array and a plurality of read-out units, the storage cell array comprising: at least one positive weight column and at least one negative weight column, the output ends of a positive weight column and a corresponding negative weight column are both connected to one of the read-out units, see Fig.14 When negative values ​​need to be stored in the storage cell array, the storage cell array can be divided into a positive weight array and a negative weight array. A column of positive weights corresponds to a column of negative weights (which also store positive numbers). In the prior art, subtraction operations are performed on the two columns of data, which is equivalent to storing negative values.

[0118] In an embodiment of the present invention, the outputs of the positive weight column and its corresponding negative weight column are connected to a readout unit based on differential input provided in an embodiment of the present invention, so as to use the readout unit to digitally read out the differential input signal.

[0119] Among them, by adopting a differential input readout unit in conjunction with a storage unit array, not only can the quantization range of the ADC be reduced, but also, under the same quantization accuracy requirements, the design of the ADC can be effectively simplified, the area occupied by the ADC can be reduced, the power consumption of the ADC can be reduced, the circuit cost can be reduced, and the delay can be reduced. Moreover, the differential input can be read directly without setting up a subtractor to calculate the difference between the two, which further reduces the number of components, reduces the circuit area, and reduces the circuit cost.

[0120] The embodiment of the present invention further provides a storage-computing integrated chip, comprising: a storage cell array and a plurality of readout units, wherein the storage cell array comprises: at least two positive weight columns and at least one constant column, wherein the at least two positive weight columns share one constant column, and the output ends of one positive weight column and its corresponding constant column are both connected to one readout unit, see Fig.15 .

[0121] As Fig.14 An improved scheme of the circuit shown, before writing data into a storage unit, a constant positive value is added to the data to obtain processed data, and the constant positive value is greater than or equal to the absolute value of the negative value with the largest absolute value in the data to be written, so that there is no negative value in the data to be written, the data to be written is written into a positive weight column, the constant positive value is written into the constant column, and subtraction is performed on the positive weight column and the corresponding constant column, which is equivalent to realizing the processing of negative data, that is, subtracting the influence of the constant positive value from the calculation result by subtraction, so that there is no need to set a negative weight column, and multiple positive weight columns share a constant column, which can simplify the circuit structure, effectively reduce the number of components, reduce the circuit area, reduce cost overhead, and facilitate integration.

[0122] In the embodiment of the present invention, the outputs of the positive weight column and its corresponding constant column are connected to the differential input-based readout unit provided in the embodiment of the present invention, so as to use the readout unit to digitally read out the differential input signal.

[0123] Among them, by adopting a differential input readout unit in conjunction with a storage unit array, not only can the quantization range of the ADC be reduced, but also, under the same quantization accuracy requirements, the design of the ADC can be effectively simplified, the area occupied by the ADC can be reduced, the power consumption of the ADC can be reduced, the circuit cost can be reduced, and the delay can be reduced. Moreover, the differential input can be read directly without setting up a subtractor to calculate the difference between the two, which further reduces the number of components, reduces the circuit area, and reduces the circuit cost.

[0124] For the above-mentioned storage and computing integrated chips:

[0125] In an optional embodiment, the integrated storage and computing chip may further include: a digital-to-analog conversion circuit module, which is connected to the front end of the storage cell array and is used to convert a digital input signal into an analog input signal.

[0126] In an optional embodiment, the integrated storage and computing chip may further include: a conversion module, which is connected between the digital-to-analog conversion circuit module and the storage cell array and is used to convert the analog input signal into an analog current.

[0127] In an optional embodiment, the integrated storage and computing chip may also include: a read / write circuit for writing data into a storage cell array and a row-column decoder for performing row-column decoding on the storage cell array.

[0128] In an optional embodiment, the integrated storage and computing chip may also include: a controller, which is connected to each module and is used to control the coordinated work of each module.

[0129] In an optional embodiment, the storage and computing integrated chip may also include: an arithmetic operation module, which is connected to the back end of the read-out unit and is used to perform specific arithmetic operations on the read-out signal of the read-out unit, including: multiplication, addition, subtraction, division, shift operation, activation function, maximum value, minimum value, average value, pooling, etc., or a combination of several of them.

[0130] In an optional embodiment, the storage and computing integrated chip may also include: an input interface module and an input register stack. The input interface module is used to receive input data. The input register stack is connected between the input interface module and the digital-to-analog conversion circuit module for storing data.

[0131] The arithmetic operation module may also be connected to the input register file to store its arithmetic operation result in the input register file to participate in subsequent operations.

[0132] In an optional embodiment, the storage and computing integrated chip may also include: an output interface module and an output register stack. The output interface module is used to output data. The output register stack is arranged between the output interface module and the read-out module (or the arithmetic operation module if there is one) to store the output data.

[0133] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

[0134] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0135] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0136] The above is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technical personnel in this field can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present invention. However, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention without departing from the content of the technical solution of the present invention still fall within the scope of the technical solution of the present invention.

Claims

1. A readout unit for a memory cell array, characterized in that: include: ADC, decision subunit and multiplexer switch; The input terminals of the ADC and the decision subunit both receive input voltages. The output end of the decision subunit is connected to the control end of the ADC and the address selection end of the multi-way selection switch; The first input terminal of the multi-way selection switch is connected to the output terminal of the ADC, the second input terminal receives a first level, and the third input terminal receives a second level, wherein the first level is lower than the second level; Wherein, the reference input terminal of the decision subunit also receives a first preset voltage and a second preset voltage.

2. The readout unit for a memory cell array according to claim 1, characterized in that: Also includes: a first current-to-voltage converter and a second current-to-voltage converter; The first current-voltage converter is connected to the front end of the ADC and is used to convert the input current into the input voltage. The second current-voltage converter is connected to the front end of the decision subunit and is used to convert the input current into the input voltage.

3. The readout unit for a memory cell array according to claim 2, characterized in that: The first current-voltage converter and the second current-voltage converter each include: a first amplifier and a first resistive load; One end of the first resistive load is connected to the negative input end of the first amplifier, and the other end is connected to the output end of the first amplifier. The positive input terminal of the first amplifier receives the first bias voltage, the negative input terminal receives the input current, and the output terminal is used to output the input voltage.

4. The readout unit for a memory cell array according to claim 2, characterized in that: Also includes: Current mirror; The current mirror is connected to a front end of the first current-voltage converter or the second current-voltage converter, and is used to replicate the input current.

5. The readout unit for a memory cell array according to claim 1, characterized in that: The input voltage is a differential input voltage, and the two input terminals of the ADC and the two input terminals of the decision subunit are respectively input with a first input voltage and a second input voltage.

6. The readout unit for a memory cell array according to claim 5, characterized in that: Also includes: a third current-voltage converter and a fourth current-voltage converter, wherein the third current-voltage converter is used to convert the first input current into the first input voltage, and the fourth current-voltage converter is used to convert the second input current into the second input voltage.

7. The readout unit for a memory cell array according to claim 6, characterized in that: The third current-voltage converter and the fourth current-voltage converter each include: a second amplifier, a switch element, and a second resistive load; The first end of the switch element receives the first input current or the second input current, and the second end is connected to the output end of the second amplifier; the third end of the switch element is connected to one end of the second resistive load and serves as a voltage output end for outputting the first input voltage or the second input voltage; The negative input terminal of the second amplifier receives the first input current or the second input current, and the positive input terminal receives the second bias voltage; the other end of the resistive load is connected to the third electrical level.

8. A storage and computing integrated chip, characterized in that: include: A memory cell array and a plurality of readout units according to any one of claims 1 to 4, wherein the output end of each column of memory cells in the memory cell array is connected to one of the readout units.

9. A storage and computing integrated chip, characterized in that: include: A memory cell array and a plurality of readout units as claimed in any one of claims 5 to 7; The storage cell array comprises: at least one positive weight column and at least one negative weight column, and the output ends of a positive weight column and a corresponding negative weight column are both connected to one of the readout units; Alternatively, the storage cell array includes: at least two positive weight columns and at least one constant column, the at least two positive weight columns share one constant column, and the output ends of a positive weight column and its corresponding constant column are both connected to one readout unit.