CIM-based voltage regulation circuit, chip, and electronic device
By designing the voltage detection, control and adjustment unit in the CIM to monitor and adjust the reference voltage of the ADC in real time, the problem of low voltage regulation efficiency in the analog-to-digital hybrid storage and computing integrated architecture is solved, and the energy efficiency ratio and area efficiency ratio are improved.
Patent Information
- Application Number
- PCT/CN2024/089007
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-23
- Filing Date
- 2024-04-22
- Publication Date
- 2024-10-31
AI Technical Summary
In the existing technology, in an integrated analog-digital hybrid storage and computing architecture, in order to ensure the accuracy of the reference voltage, power consumption is usually increased or the chip area is expanded, resulting in a decrease in the overall energy efficiency ratio and area efficiency ratio.
A CIM-based voltage regulation circuit is designed, including a voltage detection unit, a control unit and a voltage regulation unit. Through real-time monitoring and dynamic adjustment of the reference voltages of multiple parallel ADCs, it ensures that they are stable at the preset voltage and reduces power consumption and occupation. area.
It achieves high-precision reference voltage supply, reduces the power consumption and area occupied by the voltage adjustment circuit, and improves the overall energy efficiency ratio and area efficiency ratio of the CIM.
Smart Images

Figure CN2024089007_31102024_PF_FP_ABST
Abstract
Description
CIM-based voltage regulation circuit, chip and electronic equipment
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on April 23, 2023, with application number 202310439105.6 and invention name “CIM-based voltage regulation circuit, chip and electronic device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present invention relates to the field of artificial intelligence, and in particular to a voltage regulation circuit, chip and electronic equipment based on CIM. Background Art
[0003] As Moore's Law approaches its limits, the "memory wall" and "power wall" challenges of von Neumann-based artificial intelligence (AI) chips are becoming increasingly prominent, slowing the growth of chip computing power. Against this backdrop, the emerging integrated memory-computing chip architecture is emerging, providing greater computing power and improved energy efficiency for the next generation of AI chips. This integrated memory-computing architecture can be understood as embedding computing power within memory, using a novel computing architecture to perform two-dimensional and three-dimensional matrix multiplication / addition operations, rather than optimizing traditional logic units or processes. This approach essentially eliminates the latency and power consumption associated with unnecessary data movement, significantly improving AI computing efficiency by hundreds or even thousands of times, reducing costs, and breaking through the "memory wall" and "power wall."
[0004] The integrated storage and computing architecture can be roughly divided into two types: digital storage and computing integrated architecture and analog-digital hybrid storage and computing integrated architecture. Compared with the digital storage and computing integrated architecture, the analog-digital hybrid storage and computing architecture can provide better energy efficiency and area efficiency while providing the same computing power, that is, lower power consumption and smaller chip area are required to achieve the same computing power.
[0005] In a hybrid analog-to-digital computing architecture, a large number of multiply-accumulate (MAC) calculations are performed in the analog domain. These calculations are then converted into N-bit digital information via multiple parallel high-speed analog-to-digital converters (ADCs). Typically, a single hybrid analog-to-digital computing core requires 128 or 256 parallel ADCs, posing a significant challenge to generating reference voltages for these ADCs. The accuracy of these reference voltages directly impacts the ADC's conversion accuracy, effectively defining the overall computational accuracy of the chip architecture.
[0006] However, in order to ensure the accuracy of the above-mentioned reference voltage in the computing in memory (CIM) architecture (i.e., the integrated computing and storage architecture), the existing technology usually increases power consumption or increases the area of related chips.
[0007] Summary of the Invention
[0008] In view of this, the present invention provides a voltage regulation circuit, chip and electronic device based on CIM, which provides high-precision reference voltage for multiple parallel ADCs, reduces the power consumption and occupied area of the voltage regulation circuit, and thus improves the overall energy efficiency and area efficiency of the CIM.
[0009] The present invention proposes a voltage regulation circuit based on CIM. The CIM includes multiple parallel ADCs. The voltage regulation circuit is used to regulate the reference voltages of the multiple parallel ADCs. The voltage regulation circuit includes: a voltage detection unit, a control unit and a voltage regulation unit.
[0010] The voltage detection unit is connected to the control unit and is used to be electrically connected to the reference voltage terminal of the ADC to obtain a reference voltage and output a first voltage detection signal to the control unit when the reference voltage is less than a preset voltage, or output a second voltage detection signal to the control unit when the reference voltage is greater than the preset voltage.
[0011] The control unit is connected to the voltage regulating unit, and is configured to receive the first voltage detection signal and output a first regulation signal to the voltage regulating unit according to the first voltage detection signal.
[0012] The voltage regulating unit is electrically connected to the control unit and is used to be electrically connected to the reference voltage terminal of the ADC.
[0013] The voltage regulating unit is further configured to receive a first regulating signal sent by the control unit, and boost the reference voltage according to the first regulating signal.
[0014] The control unit is further configured to receive a second voltage detection signal and output a second adjustment signal to the voltage adjustment unit according to the second voltage detection signal.
[0015] The voltage regulating unit is further configured to reduce the reference voltage according to the second regulating signal.
[0016] In one embodiment, the voltage regulating unit includes: a voltage monitoring subunit and a voltage regulating subunit.
[0017] The voltage monitoring subunit is connected to the control unit and the voltage regulating subunit respectively, and the control unit is connected to the voltage regulating subunit.
[0018] The output terminal of the voltage regulating subunit is electrically connected to the reference voltage terminal of the ADC.
[0019] The voltage monitoring subunit is used to receive the first adjustment signal and output a first monitoring signal to the control unit according to the first adjustment signal.
[0020] The control unit is used to receive a first monitoring signal and control the output voltage of the voltage regulating subunit to increase according to the first monitoring signal, so that the reference voltage increases accordingly.
[0021] The voltage monitoring subunit is used to receive the second adjustment signal and output a second monitoring signal to the control unit according to the second adjustment signal.
[0022] The control unit is used to receive the second monitoring signal and control the output voltage of the voltage regulating subunit to decrease according to the second monitoring signal, so that the reference voltage decreases accordingly.
[0023] In one embodiment, the voltage monitoring subunit is further configured to obtain a reference voltage, and output a voltage-boosting stop signal to the control unit when the reference voltage is greater than a preset voltage.
[0024] The control unit is further configured to receive a stop boost signal and control the output voltage of the voltage regulating subunit to stop rising according to the stop boost signal, so that the reference voltage stops rising accordingly.
[0025] The voltage monitoring subunit is further used to obtain a reference voltage and output a stop voltage reduction signal to the control unit when the reference voltage is lower than a preset voltage.
[0026] The control unit is further configured to receive a stop voltage reduction signal and control the output voltage of the voltage regulating subunit to stop reducing according to the stop voltage reduction signal, so that the reference voltage stops reducing accordingly.
[0027] In one embodiment, the voltage monitoring subunit is configured to obtain the output voltage of the voltage regulating subunit as the first transient voltage after the output voltage of the voltage regulating subunit stops rising.
[0028] The voltage monitoring subunit is further configured to obtain a comparison result between the reference voltage and the first transient voltage, and generate a third monitoring signal according to the comparison result and send the signal to the control unit.
[0029] The control unit is further configured to reduce the reference voltage of the voltage regulating subunit according to the third monitoring signal.
[0030] The voltage monitoring subunit is used to obtain the output voltage of the voltage regulating subunit as the second transient voltage after the output voltage of the voltage regulating subunit stops decreasing.
[0031] The voltage monitoring subunit is further configured to obtain a comparison result between the reference voltage and the second transient voltage, and generate a fourth monitoring signal according to the comparison result and send the fourth monitoring signal to the control unit.
[0032] The control unit is further configured to boost the reference voltage of the voltage regulating subunit according to the fourth monitoring signal.
[0033] In one embodiment, the voltage regulation subunit is a charge pump, the output end of the charge pump is electrically connected to the reference voltage end of the ADC, the control end of the charge pump is connected to the control unit, and the input end of the charge pump is connected to the voltage monitoring subunit.
[0034] In one embodiment, the charge pump includes a first current source, a first switch, a second current source, a second switch, and a first capacitor.
[0035] The first end of the first current source is connected to the external voltage source, the second end of the first current source is connected to the first end of the first switch; the second end of the first switch is connected to the first end of the first capacitor, the control end of the first switch is connected to the control unit; the second end of the first capacitor is grounded.
[0036] The first end of the second switch is connected to the connection point between the first current source and the first capacitor, the second end is connected to the first end of the second current source, the control end of the second switch is connected to the control unit; the second end of the second current source is grounded.
[0037] In one embodiment, the voltage monitoring subunit includes a third switch, a fourth switch, a fifth switch, a sixth switch, a second capacitor, and a first comparator.
[0038] The first end of the third switch is used to be electrically connected to the ADC to access the reference voltage, the second end of the third switch is connected to the control unit, and the third end of the third switch is connected to the first end of the second capacitor; the second end of the second capacitor is grounded.
[0039] A first end of the fourth switch is connected to the first end of the second capacitor, a second end of the fourth switch is connected to the control unit, a third end of the fourth switch is connected to the first end of the fifth switch, and a fourth end of the fourth switch is connected to the inverting input end of the first comparator.
[0040] The second end of the fifth switch is electrically connected to the ADC to access the reference voltage, the third end of the fifth switch is connected to the preset voltage source to access the preset voltage, and the fourth end of the fifth switch is connected to the control unit.
[0041] A first end of the sixth switch is connected to the first end of the second capacitor, a second end of the sixth switch is connected to the first end of the fifth switch, a control end of the sixth switch is connected to the control unit, and a fourth end of the sixth switch is connected to the non-inverting input end of the first comparator.
[0042] An output terminal of the first comparator is connected to the control unit.
[0043] The control unit is used to receive a first voltage detection signal and output a first switch control signal to the third switch and the sixth switch according to the first voltage detection signal, so that the third switch and the sixth switch control the loop between the ADC and the non-inverting input terminal of the first comparator to be closed according to the first switch control signal.
[0044] The control unit is also used to receive a first voltage detection signal and output a second switch control signal to the fourth switch and the fifth switch based on the first voltage detection signal, so that the fourth switch and the fifth switch control the loop between the preset voltage source and the inverting input terminal of the first comparator to be closed according to the second switch control signal.
[0045] The first comparator is used to output a first monitoring signal to the control unit after comparing and finding that the reference voltage is less than the preset voltage of the preset voltage source.
[0046] The control unit is further configured to receive a second voltage detection signal and output a third switch control signal to the third switch and the sixth switch based on the second voltage detection signal, so that the third switch and the sixth switch control the loop between the ADC and the second capacitor to be disconnected and the loop between the second capacitor and the non-inverting input terminal of the first comparator to be closed based on the third switch control signal.
[0047] The control unit is also used to receive a second voltage detection signal and output a fourth switch control signal to the fourth switch and the fifth switch based on the second voltage detection signal, so that the fourth switch and the fifth switch control the loop between the preset voltage source and the inverting input terminal of the first comparator to be closed according to the fourth switch control signal.
[0048] The first comparator is also used to output a second monitoring signal to the control unit after comparing and finding that the transient voltage of the second capacitor is less than the preset voltage of the preset voltage source. The transient voltage is the voltage across the second capacitor when the loop between the ADC and the second capacitor is disconnected.
[0049] In one embodiment, the voltage detection unit is a second comparator, the output terminal of the second comparator is connected to the control unit, the non-inverting input terminal is connected to the preset voltage source, and the inverting input terminal is electrically connected to the reference voltage terminal of the ADC.
[0050] The present invention further provides a chip comprising a CIM and the above-mentioned voltage regulating circuit; the CIM comprises a plurality of parallel ADCs, and the voltage regulating circuit is used to regulate the reference voltages of the plurality of parallel ADCs.
[0051] The present invention also provides an electronic device, which includes the above chip.
[0052] The above-mentioned CIM-based voltage regulation circuit, wherein the CIM includes multiple parallel ADCs, and the voltage regulation circuit is used to regulate the reference voltages of the multiple parallel ADCs, and the voltage regulation circuit includes: a voltage detection unit, a control unit, and a voltage regulation unit; the voltage detection unit is connected to the control unit and is used to be electrically connected to the reference voltage terminal of the ADC to obtain a reference voltage and output a first voltage detection signal to the control unit when the reference voltage is less than a preset voltage, or output a second voltage detection signal to the control unit when the reference voltage is greater than the preset voltage; the control unit is connected to the voltage regulation unit and is used to receive the first voltage detection signal and output a first regulation signal to the voltage regulation unit based on the first voltage detection signal; the voltage regulation unit is electrically connected to the control unit and is used to be electrically connected to the reference voltage terminal of the ADC; the voltage regulation unit is also used to receive the first regulation signal sent by the control unit and boost the reference voltage based on the first regulation signal; the control unit is also used to receive the second voltage detection signal and output a second regulation signal to the voltage regulation unit based on the second voltage detection signal; the voltage regulation unit is also used to step down the reference voltage based on the second regulation signal. By obtaining the comparison result between the reference voltage and the preset voltage, and then performing a step-up or step-down operation based on the comparison result, the ADC reference voltage is raised or lowered to the preset voltage to reduce the fluctuation of the reference voltage, thereby providing a high-precision reference voltage for multiple parallel ADCs. It also has low power consumption and occupies a small area, thereby improving the overall energy efficiency and area efficiency of the CIM. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0054] FIG1 is a schematic diagram of the circuit structure of a voltage regulation circuit provided in an embodiment of the present invention;
[0055] FIG2 is a schematic diagram of the circuit structure of a voltage regulation circuit provided in another embodiment of the present invention;
[0056] 3 is a schematic diagram of the circuit structure of a voltage regulation circuit provided by another embodiment of the present invention;
[0057] FIG4 is a diagram showing waveform changes of some voltages in an embodiment of the present invention. DETAILED DESCRIPTION
[0058] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0059] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0060] There are roughly two existing reference voltage generation schemes for a large number of parallel high-speed analog-to-digital converters (ADCs). The first scheme is to use a reference voltage driver circuit (reference buffer). In order to provide reference voltage for 128 or 256 high-speed analog-to-digital converters (ADCs) at the same time, its power consumption current needs to reach the order of tens of mA, which has greatly exceeded the power consumption current requirement of the entire analog-to-digital hybrid storage and computing core. This scheme will greatly increase the power consumption requirement of the analog-to-digital hybrid storage and computing integrated architecture and reduce the overall energy efficiency. The second scheme is to use a low-dropout linear regulator (LDO) outside the chip to provide this reference voltage. However, due to the parasitic inductance of the chip package traces, a few nF capacitors must be deployed inside the chip using this scheme to ensure that this reference voltage can remain stable during the operation of a large number of parallel high-speed analog-to-digital converters (ADCs) without causing loss of calculation accuracy. However, the several nF on-chip capacitors required by this scheme will bring an additional few square millimeters (mm 2 ) chip area, this solution not only wastes chip area and increases costs, but also significantly reduces the area-efficiency ratio of the analog-digital hybrid storage and computing architecture.
[0061] The purpose of the present invention is to provide an innovative implementation scheme with high precision, low power consumption and minimum area occupancy for the stable generation of reference voltages for a large number of parallel high-speed analog-to-digital converters (ADCs) based on the architectural characteristics of the analog-to-digital hybrid storage and computing integrated chip, so as to give full play to the architectural advantages of the analog-to-digital hybrid storage and computing integrated chip and achieve the optimal overall energy efficiency and area efficiency.
[0062] As shown in FIG1 , a voltage regulation circuit 10 based on a CIM is provided, wherein the CIM includes a plurality of parallel ADCs 20 . The voltage regulation circuit 10 is used to regulate the reference voltages of the plurality of parallel ADCs 20 . The voltage regulation circuit 10 includes: a voltage detection unit 11 , a control unit 12 , and a voltage regulation unit 13 .
[0063] The voltage detection unit 11 is connected to the control unit 12 and is electrically connected to the reference voltage terminal of the ADC 20. Specifically, the voltage detection unit 11 can be a comparator or any device for obtaining a comparison result between a reference voltage and a preset voltage.
[0064] Furthermore, the voltage detection unit 11 can be implemented using a comparator or a high-speed comparator, wherein the preset voltage is provided by a preset voltage source, which can be a stabilized power supply, and the preset voltage connected to the voltage detection unit 11 is a stable voltage; optionally, the preset voltage source can also be any device that stores a preset voltage, such as a capacitor, an inductor, etc.
[0065] The voltage detection unit 11 obtains a preset voltage and a reference voltage, compares the preset voltage and the reference voltage, generates a first voltage detection signal when the reference voltage is less than the preset voltage, and outputs the first voltage detection signal to the control unit 12 through the output end; when the reference voltage is greater than the preset voltage, generates a second voltage detection signal, and outputs the second voltage detection signal to the control unit 12 through the output end.
[0066] In one possible implementation, due to unstable fluctuations in the reference voltage, for example, when the reference voltage is currently detected to be equal to the preset voltage, but at the next moment the reference voltage is greater than or equal to the preset voltage, the voltage detection unit 11 generates a first voltage detection signal when the reference voltage is equal to the preset voltage. Alternatively, the voltage detection unit 11 may also generate a second voltage detection signal when the reference voltage is equal to the preset voltage, which is not limited here. When the reference voltage is equal to the preset voltage, the voltage regulation circuit can stabilize the reference voltage at the preset voltage through any voltage regulation process.
[0067] Alternatively, in one possible implementation, the preset voltage may be a set value or a set range. The present invention can stabilize the reference voltages of multiple parallel ADCs at the preset voltage, or stabilize the reference voltages so that they fluctuate within a set range of the preset voltage, i.e., within an acceptable range.
[0068] The control unit 12 is connected to the voltage regulating unit 13. The control unit 12 is used to receive the first voltage detection signal output by the voltage detection unit 11, generate a first regulating signal based on the first voltage detection signal, and output the first regulating signal to the voltage regulating unit 13. The voltage regulating unit 13 is used to be electrically connected to the reference voltage terminal of the ADC20, receive the first regulating signal sent by the control unit 12, and boost the reference voltage of the ADC20 based on the first regulating signal. Specifically, after receiving the first voltage detection signal, the control unit 12 determines that the reference voltage is less than the preset voltage, and then controls the voltage regulating unit 13 to boost the reference voltage of the ADC20, so as to adjust and stabilize the reference voltage of the ADC20 to the voltage level of the preset voltage.
[0069] The control unit 12 may be a control state machine, or other devices or equipment with a control function, which is not limited here.
[0070] The control unit 12 can also be configured to receive a second voltage detection signal and output a second adjustment signal to the voltage adjustment unit 13 based on the second voltage detection signal. The voltage adjustment unit 13 is further configured to reduce the reference voltage of the ADC 20 based on the second adjustment signal. Similarly, after receiving the second voltage detection signal, the control unit 12 determines that the reference voltage is greater than a preset voltage and then controls the voltage adjustment unit 13 to reduce the reference voltage of the ADC 20, thereby adjusting and stabilizing the reference voltage of the ADC 20 to the preset voltage.
[0071] The present invention monitors the reference voltage of the ADC through the voltage detection unit 11, so that when the reference voltage has a large offset due to a large level of transient power consumption current (greater than tens of mA), the occurrence of this phenomenon can be detected in a timely manner. Through the feedback control mechanism of the control unit 12 and the regulation function of the voltage regulation unit, the reference voltage can be adjusted back to a preset predetermined voltage within a short period of time (for example, within 300-500 ps), thereby realizing real-time monitoring, dynamic adjustment of the ADC reference voltage (VREF_ADC) and feedback control adjustment.
[0072] Compared with existing technical solutions, the solution of the present invention not only ensures the accuracy of the above-mentioned reference voltage, but also does not require the deployment of capacitors at the nF level or the generation of power consumption currents of the order of tens of mA. Compared with existing technical routes, it achieves an optimization improvement of chip area and power consumption current by 10-100 times.
[0073] In one embodiment, as shown in Figure 2, the voltage regulating unit 13 includes: a voltage monitoring subunit 131 and a voltage regulating subunit 132; the voltage monitoring subunit 131 is connected to the control unit 12 and the voltage regulating subunit 132 respectively, and the control unit 12 is connected to the voltage regulating subunit 13; the voltage regulating subunit 132 is used to be electrically connected to the reference voltage terminal of ADC20.
[0074] Furthermore, the voltage monitoring subunit 131 is configured to connect to a preset voltage source to receive a preset voltage. The preset voltage source may be a regulated power supply, in which case the preset voltage received by the voltage monitoring subunit 131 is a stable voltage. Alternatively, the preset voltage source may be any device that stores a preset voltage, such as a capacitor or inductor. The voltage monitoring subunit 131 is also electrically connected to the reference voltage terminal of the ADC 20 to receive the reference voltage. The output terminal of the voltage monitoring subunit 131 is connected to the control unit 12 to output a comparison result between the preset voltage and the reference voltage.
[0075] The voltage monitoring subunit 131 is configured to receive the first adjustment signal output by the control unit 12. After receiving the first adjustment signal, the subunit 131 obtains a preset voltage through the first terminal and a reference voltage through the second terminal, compares the preset voltage with the reference voltage, generates a first monitoring signal based on the comparison result between the preset voltage and the reference voltage, and outputs the first monitoring signal to the control unit 12. It should be noted that the first monitoring signal indicates the magnitude relationship between the preset voltage and the reference voltage. For example, when the preset voltage is greater than the reference voltage, the first monitoring signal is 0, and when the preset voltage is less than or equal to the reference voltage, the first monitoring signal is 1.
[0076] The control unit 12 is configured to control the output voltage of the voltage regulating subunit 132 to increase according to the first monitoring signal after receiving the first monitoring signal, wherein the output voltage of the voltage regulating subunit 132 serves as a reference voltage of the ADC 20 .
[0077] The voltage monitoring subunit 131 is configured to receive the second adjustment signal output by the control unit 12. After receiving the second adjustment signal, the subunit 131 obtains a preset voltage and a reference voltage, compares the preset voltage and the reference voltage, generates a second monitoring signal based on the comparison result between the preset voltage and the reference voltage, and outputs the second monitoring signal to the control unit 12. It should be noted that the second monitoring signal indicates the magnitude relationship between the preset voltage and the reference voltage. For example, when the preset voltage is greater than the reference voltage, the second monitoring signal is 0; when the preset voltage is less than or equal to the reference voltage, the second monitoring signal is 1.
[0078] The control unit 12 is configured to control the output voltage of the voltage regulating subunit 132 to decrease according to the second monitoring signal after receiving the second monitoring signal, wherein the output voltage of the voltage regulating subunit 132 serves as a reference voltage of the ADC 20 .
[0079] In an embodiment of the present invention, the voltage monitoring subunit 131 obtains a comparison result between a preset voltage and a reference voltage, and outputs a monitoring signal to the control unit 12, so that the control unit 12 can control the output voltage of the voltage regulating subunit 132 according to the monitoring signal, thereby adjusting and stabilizing the reference voltage of the reference voltage to the voltage level of the preset voltage, so as to reduce the fluctuation of the reference voltage, provide a high-precision reference voltage for multiple parallel ADCs, provide a high-precision reference voltage for multiple parallel ADCs, reduce the power consumption and occupied area of the voltage regulating circuit 10, and thus improve the overall energy efficiency and area efficiency of the CIM.
[0080] In one embodiment, when the control unit 12 outputs the first adjustment signal, the voltage monitoring subunit 132 is also used to obtain the reference voltage of ADC20, and when it is monitored that the reference voltage is greater than the preset voltage, it generates a stop boost signal, and then outputs the stop boost signal to the control unit 12; the control unit 12 is also used to control the output voltage of the voltage adjustment subunit 132 to stop rising after receiving the stop boost signal, and at this time the reference voltage stops rising accordingly.
[0081] When the control unit 12 outputs the second adjustment signal, the voltage monitoring subunit 131 is also used to obtain the reference voltage of ADC20, and when the reference voltage is less than the preset voltage, generates a stop voltage reduction signal, and then outputs the stop voltage reduction signal to the control unit 12; the control unit 12 is also used to control the output voltage of the voltage adjustment subunit 132 to stop decreasing after receiving the stop voltage reduction signal, and at this time the reference voltage stops decreasing accordingly.
[0082] In an embodiment of the present invention, the reference voltage of ADC20 is monitored by a voltage monitoring subunit, so that when the reference voltage reaches a preset voltage, a stop boost signal or a stop buck signal is generated to improve the accuracy of voltage regulation and provide a high-precision reference voltage for multiple parallel ADCs.
[0083] Optionally, the voltage monitoring subunit 131 can continuously obtain the preset voltage and the reference voltage, and continuously compare the preset voltage and the reference voltage, generate a first monitoring signal or a second monitoring signal according to the comparison result of the preset voltage and the reference voltage, and output it to the control unit 12, so that the control unit 12 controls the output voltage of the voltage regulation subunit 132 according to the first monitoring signal or the second monitoring signal to improve the accuracy of voltage regulation.
[0084] In the above embodiment, from the process of obtaining voltage, comparing to obtain results, and executing voltage regulation, each unit, sub-unit, etc. requires a certain execution time, and there are delays, etc., which may cause a certain error between the regulation result and the ideal result. Specifically, when the control unit 12 controls the output voltage of the voltage regulation sub-unit 132 to stop rising or stopping falling, the voltage regulation sub-unit 132 may have made the reference voltage too high or too low.
[0085] The present invention proposes another embodiment, in which the control unit 12 is used to control the output voltage of the voltage regulating subunit 132 to decrease after the output voltage of the voltage regulating subunit 132 stops rising, so that the reference voltage decreases accordingly; the control unit 12 is also used to control the output voltage of the voltage regulating subunit 132 to increase after the output voltage of the voltage regulating subunit 132 stops rising, so that the reference voltage increases accordingly.
[0086] Specifically, when the output voltage of the control voltage regulating subunit 132 stops rising, the control unit 12 controls the voltage monitoring subunit 131 to obtain the current output voltage of the voltage regulating subunit 132 and use it as the first transient voltage; the voltage monitoring subunit 131 obtains the comparison result between the reference voltage and the first transient voltage, and generates a third monitoring signal based on the comparison result. The control unit 12 controls the voltage regulating subunit 132 to reduce the reference voltage of ADC20 based on the third monitoring signal.
[0087] Furthermore, when the voltage monitoring subunit 131 detects that the reference voltage is greater than the first transient voltage, the voltage regulating subunit 132 is controlled to reduce the reference voltage of ADC20; when the voltage monitoring subunit 131 detects that the reference voltage is less than or equal to the first transient voltage, the output voltage of the voltage regulating subunit 132 is controlled to stop decreasing.
[0088] When the output voltage of the control voltage regulating subunit 132 stops decreasing, the control unit 12 controls the voltage monitoring subunit 131 to obtain the current output voltage of the voltage regulating subunit 132 and use it as the second transient voltage; the voltage monitoring subunit 131 obtains the comparison result between the reference voltage and the second transient voltage, and generates a fourth monitoring signal based on the comparison result. The control unit 12 controls the voltage regulating subunit 132 to boost the reference voltage of ADC20 based on the fourth monitoring signal.
[0089] Furthermore, when the voltage monitoring subunit 131 detects that the reference voltage is less than the second transient voltage, the voltage regulating subunit 132 is controlled to boost the reference voltage of ADC20; when the voltage monitoring subunit 131 detects that the reference voltage is greater than or equal to the second transient voltage, the output voltage of the voltage regulating subunit 132 is controlled to stop rising.
[0090] The voltage regulating subunit 132 is a charge pump, the output end of the charge pump is electrically connected to the reference voltage end of the ADC 20 , the control end of the charge pump is connected to the control unit 12 , and the input end of the charge pump is connected to the voltage monitoring subunit 131 .
[0091] In an embodiment of the present invention, by obtaining the transient voltage corresponding to when boosting or bucking is stopped, and then controlling the output voltage of the voltage regulation subunit 132 to decrease or increase according to the comparison result between the corresponding transient voltage and the reference voltage, voltage compensation is performed for the excessively high output voltage or the excessively low output voltage generated by the voltage regulation subunit 132, thereby improving the accuracy of voltage regulation and providing a high-precision reference voltage for multiple parallel ADCs.
[0092] It should be noted that since the voltage monitoring sub-unit 131 used in the two voltage regulation processes is the same monitoring device, the time delay generated by the voltage monitoring sub-unit 131 is the same. By performing two voltage adjustments on the output voltage to offset the excessively high reference voltage or the excessively low reference voltage, the reference voltage is adjusted to the preset voltage.
[0093] In one embodiment, as shown in FIG3 , the charge pump includes a first current source I1 and a first switch SW1, a second current source I2, a second switch SW2, and a first capacitor C1; a first end of the first current source I1 is connected to an external voltage source, and a second end is connected to a first end of the first switch SW1; a second end of the first switch SW1 is connected to a first end of the first capacitor C1, and a control end fch is connected to a control unit 12; a second end of the first capacitor C1 is grounded; a first end of the second switch SW2 is connected to a connection point between the first current source I1 and the first capacitor C1, a second end is connected to a first end of the second current source I2, and a control end rch is connected to the control unit 12; a second end of the second current source I2 is grounded.
[0094] The first current source I1 and the second current source I2 may be devices with feedback regulation functions such as current mirrors, which are not limited here.
[0095] After receiving the first monitoring signal, the control unit 12 outputs a first control signal to the first switch SW1 to control the first switch SW1 to close, thereby closing the loop between the external voltage source and the first capacitor C1, and then causing the first capacitor C1 to start releasing charge to increase its output voltage, that is, to increase the reference voltage VREF_ADC of ADC20.
[0096] After receiving the stop boost signal, the control unit 12 outputs a second control signal to the first switch SW1 to control the first switch SW1 to be disconnected, thereby disconnecting the loop between the external voltage source and the first capacitor C1, and further stopping the first capacitor C1 from releasing charge to stop increasing its output voltage, that is, stopping increasing the reference voltage VREF_ADC of ADC20.
[0097] After receiving the second monitoring signal, the control unit 12 outputs a first control signal to the second switch SW2 to control the second switch SW2 to close, thereby closing the loop between the external voltage source and the first capacitor C1, and then causing the first capacitor C1 to start storing charge to reduce its output voltage, that is, to reduce the reference voltage VREF_ADC of ADC20.
[0098] After receiving the stop voltage reduction signal, the control unit 12 outputs a second control signal to the second switch SW2 to control the second switch SW2 to be disconnected, thereby disconnecting the loop between the external voltage source and the first capacitor C1, and further causing the first capacitor C1 to stop storing charge to increase its output voltage, that is, to increase the reference voltage VREF_ADC of ADC20.
[0099] In an embodiment of the present invention, by controlling the opening and closing of corresponding switches, the output voltage of the first capacitor C1 is caused to rise and fall accordingly, thereby adjusting and stabilizing the reference voltage of the ADC to a preset voltage, thereby reducing fluctuations in the reference voltage and providing a high-precision reference voltage for multiple parallel ADCs.
[0100] As shown in FIG3 , in one embodiment, the voltage monitoring subunit 131 includes a third switch SW3, a fourth switch SW4, a fifth switch SW5, a sixth switch SW6, a second capacitor C2, and a first comparator CMP1. A first end of the third switch SW3 is electrically connected to a reference voltage terminal of the ADC 20 to access a reference voltage VREF_ADC, a second end sw1_ctrl is connected to the control unit 12, and a third end is connected to a first end of the second capacitor C2. A second end of the second capacitor C2 is grounded. A first end of the fourth switch SW4 is connected to a first end of the second capacitor C2, a second end cmp1_sw is connected to the control unit 12, and a third end Vref_in is connected to a first end Vref_in of the fifth switch SW5. in, the fourth end Vin is connected to the inverting input terminal of the first comparator CMP1; the second end of the fifth switch SW5 is electrically connected to the reference voltage terminal of ADC20 to receive the reference voltage VREF_ADC, the third end is connected to the preset voltage source to receive the preset voltage Vref, and the fourth end sw2_ctrl is connected to the control unit 12; the first end of the sixth switch SW6 is connected to the first end of the second capacitor C2, the second end Vref_in is connected to the first end of the fifth switch SW5, the control end cmp2_sw is connected to the control unit 12, and the fourth end Vip is connected to the non-inverting input terminal of the first comparator CMP1; the output end cmp_out of the first comparator CMP1 is connected to the control unit 12.
[0101] The voltage detection unit 11 includes a second comparator cmp2, and the inverting input terminal of the second comparator is electrically connected to the reference voltage terminal of ADC20 to access the reference voltages of multiple parallel ADC20s. The non-inverting input terminal of the second comparator is connected to a preset voltage source to access the preset voltage. The output terminal of the second comparator cmp2 is connected to the control unit 12 to output the comparison result between the preset voltage and the reference voltage.
[0102] The control unit 12 is configured to output a first switch control signal to the third switch SW3 and the sixth switch SW6 after receiving the first voltage detection signal, so that the third switch SW3 and the sixth switch SW6 control the loop between the ADC20 and the non-inverting input terminal of the first comparator CMP1 to be closed.
[0103] The control unit 12 is further configured to output a second switch control signal to the fourth switch SW4 and the fifth switch SW5 after receiving the first voltage detection signal, so that the fourth switch SW4 and the fifth switch SW5 control the loop between the preset voltage source and the inverting input terminal of the first comparator CMP1 to be closed.
[0104] The first comparator CMP1 is configured to output a first monitoring signal to the control unit 12 after the reference voltage of the ADC 20 is less than a preset voltage of the preset voltage source.
[0105] The control unit 12 is further configured to output a third switch control signal to the third switch SW3 and the sixth switch SW6 after receiving the second voltage detection signal, so as to disconnect the loop between the ADC20 and the second capacitor C2 and close the loop between the second capacitor C2 and the non-inverting input terminal of the first comparator CMP1.
[0106] The control unit 12 is further configured to output a fourth switch control signal to the fourth switch SW4 and the fifth switch SW5 after receiving the second voltage detection signal, so that the fourth switch SW4 and the fifth switch SW5 control the loop between the preset voltage source and the inverting input terminal of the first comparator CMP1 to be closed.
[0107] The first comparator CMP1 is further configured to output a second monitoring signal to the control unit 12 when a transient voltage Vslope of the second capacitor C2 is less than a preset voltage of the preset voltage source. The transient voltage Vslope is the voltage across the second capacitor C2 when the loop between ADC20 and the second capacitor C2 is disconnected.
[0108] In this embodiment, the input of the first comparator CMP1 is switched by controlling the third switch SW3, the fourth switch SW4, the fifth switch SW5 and the sixth switch SW6, so that the first comparator CMP1 can obtain different inputs to generate different monitoring signals according to the comparison results between different inputs, and output the monitoring signals to the control unit 12, so that the control unit 12 can control the voltage regulation method of the voltage regulation unit according to different monitoring signals, so that the reference voltage is stabilized to the voltage level of the preset voltage, so as to reduce the fluctuation of the reference voltage and provide a high-precision reference voltage for multiple parallel ADCs.
[0109] In one embodiment, as shown in FIG3 , a voltage regulation circuit 10 is provided, comprising: a first switch SW1, a second switch SW2, a third switch SW3, a fourth switch SW4, a fifth switch SW5, a sixth switch SW6, a seventh switch SW7, a first current source I1, a second current source I2, a first capacitor C1, a second capacitor C2, a first comparator CMP1, a second comparator CMP2, and a control unit 12. The voltage regulation circuit 10 is connected to an external voltage source VddA, electrically connected to a reference voltage terminal of an ADC, and further connected to a preset voltage source. The connection relationship between the aforementioned components can be seen in FIG3 , wherein the first comparator CMP1 and the second comparator CMP2 can be implemented using a high-speed first comparator.
[0110] The charge pump includes a first switch SW1, a first current source I1, a second switch SW2, a second current source I2, and a first capacitor C1. The voltage monitoring subunit 131 includes a third switch SW3, a fourth switch SW4, a fifth switch SW5, a sixth switch SW6, a second capacitor C2, and a first comparator CMP1. The voltage detection unit 11 includes a second comparator CMP2. It should be emphasized that the connection relationship between the various components in the voltage regulation circuit 10 is shown in Figure 3 and will not be repeated here.
[0111] The P1 terminal of the seventh switch SW7 is connected to the voltage regulation clock, which can be an external clock signal. The seventh switch SW7 continuously receives the P1 signal output by the voltage regulation clock through the P1 terminal. When the P1 signal changes from a high-level signal to a low-level signal, the seventh switch SW7 opens. It can be understood that when the P1 signal is a high-level signal, the seventh switch SW7 is closed, and when the P1 signal is a low-level signal, the seventh switch SW7 opens. Simultaneously, the P1 pin of the control unit 12 is connected to the voltage regulation clock. The control unit 12 continuously receives the P1 signal output by the voltage regulation clock through the P1 pin. When the P1 signal changes from a high-level signal to a low-level signal, the control unit 12 is activated, thereby causing the voltage regulation circuit to begin voltage regulation. It should be noted that the P1 signal output by the voltage regulation clock periodically changes from 0 to 1. When the seventh switch SW7 is open, the amount of charge stored in the first capacitor C1 can indicate the reference voltage VREF_ADC of the ADC. The second comparator CMP2 obtains the preset voltage Vref of the preset voltage source and the reference voltage VREF_ADC of the ADC. When the reference voltage VREF_ADC is less than the preset voltage Vref, the second comparator CMP2 outputs a high-level signal to the control unit 12 through the cmpin terminal. When the reference voltage VREF_ADC is greater than or equal to the preset voltage Vref, the output terminal cmpin of the second comparator CMP2 outputs a low-level signal to the control unit 12.
[0112] Typically, a low-level signal is represented by 0, and a high-level signal is represented by 1.
[0113] For example, FIG4 is a waveform diagram of some voltages and some signals in the present invention, wherein the vertical axis is voltage V (mV) and the vertical axis is time (ns). FIG4 shows the waveform diagram of the signal changes of the output signal Vref (cmpout) of the cmp_out pin, the p1 signal, and the reference voltage VREF_ADC during the above-mentioned voltage regulation process. After the reference voltage is regulated, due to factors such as internal characteristics of the device or delay problems existing in the device, the reference voltage VREF_ADC will have an overshoot process (see FIG4 labeled M1), and the reference voltage VREF_ADC will be greater than the preset voltage Vref. At this time, through the re-detection of the voltage detection unit 11 of the present invention, the control of the control unit 12 and the downward regulation of the voltage regulation unit, the reference voltage is correspondingly reduced, and the voltage undershoot process can be observed in the waveform diagram (see FIG4 labeled M2). Since the change amount of the above-mentioned voltage overshoot process is the same as the change amount of the undershoot process, the reference voltage can be adjusted to the size corresponding to the preset voltage Vref. In addition, it should be noted that, for the P1 signal, the high-level signal is 1, and the low-level signal is 0; for the output signal Vref(cmpout) of the cmp_out pin, the high-level signal is 1, and the low-level signal is 0.
[0114] 4 , the horizontal axis represents time (time) in ns, and the vertical axis represents voltage V in mV.
[0115] When the control unit 12 receives a high-level signal, it outputs a high-level signal through the cmp1_sw pin, cmp2_sw pin, sw1_ctrl pin, and sw2_ctrl pin, switching the combination of the third switch SW3, the fourth switch SW4, the fifth switch SW5, and the sixth switch SW6, so that the non-inverting input terminal of the first comparator CMP1 obtains the ADC reference voltage VREF_ADC through the combination of the aforementioned switches, and the inverting input terminal of the first comparator CMP1 obtains the preset voltage Vref of the preset voltage source through the combination of the aforementioned switches. When the reference voltage VREF_ADC is less than the preset voltage Vref, the control unit 12 outputs a low-level signal to the control unit 12 through the cmp_out terminal, and then the control unit 12 outputs a high-level signal through the fch pin to control the first switch SW1 to be closed. After the first switch SW1 is closed, the first current source I1 injects charge into the first capacitor C1 through the external voltage source VddA to increase the ADC reference voltage VREF_ADC. When the reference voltage VREF_ADC is greater than or equal to the preset voltage Vref, the first comparator CMP1 outputs a high-level signal to the control unit 12 through the cmp_out terminal. The control unit 12 then outputs a low-level signal through the fch pin to control the first switch SW1 to be disconnected. After the first switch SW1 is disconnected, the first current source I1 stops injecting charge into the first capacitor C1, thereby stopping increasing the ADC reference voltage VREF_ADC. The control unit 12 also outputs a low-level signal through the cmp1_sw and cmp2_sw pins and the sw1_ctrl and sw2_ctrl pins to switch the combination of the third switch SW3, the fourth switch SW4, the fifth switch SW5, and the sixth switch SW6. This causes the non-inverting input of the first comparator CMP1 to obtain the transient voltage Vslope stored in the second capacitor C2 through the combination of the aforementioned switches, and the inverting input of the first comparator CMP1 to obtain the ADC reference voltage VREF_ADC through the combination of the aforementioned switches.
[0116] When the transient voltage Vslope is less than the reference voltage VREF_ADC, the first comparator CMP1 outputs a low-level signal to the control unit 12 via the cmp_out terminal. The control unit 12 then outputs a high-level signal via the rch pin to control the closing of the second switch SW2. After the second switch SW2 is closed, the second current source I2 releases charge from the first capacitor C1 via the ground line to reduce the ADC reference voltage VREF_ADC. When the transient voltage Vslope is greater than or equal to the reference voltage VREF_ADC, the first comparator CMP1 outputs a high-level signal to the control unit 12 via the cmp_out terminal. The control unit 12 then outputs a low-level signal via the rch pin to control the opening of the second switch SW2. After the second switch SW2 is opened, the second current source I2 stops releasing charge from the first capacitor C1, thereby stopping reducing the ADC reference voltage VREF_ADC.
[0117] When the control unit 12 receives a low-level signal through the cmpin pin, it outputs a high-level signal through the cmp1_sw pin, the cmp2_sw pin, the sw1_ctrl pin, and the sw2_ctrl pin, switching the combination of the third switch SW3, the fourth switch SW4, the fifth switch SW5, and the sixth switch SW6. This causes the non-inverting input of the first comparator CMP1 to obtain the ADC reference voltage VREF_ADC through the combination of the aforementioned switches, and the inverting input of the first comparator CMP1 to obtain the preset voltage Vref of the preset voltage source through the combination of the aforementioned switches. When the reference voltage VREF_ADC is greater than or equal to the preset voltage Vref, the control unit 12 outputs a high-level signal to the control unit 12 through the cmp_out pin. The control unit 12 then outputs a high-level signal through the rch pin to control the closing of the second switch SW2. After the second switch SW2 is closed, the second current source I2 releases charge from the first capacitor C1 through the ground line to reduce the ADC reference voltage VREF_ADC. When the reference voltage VREF_ADC is less than the preset voltage Vref, the first comparator CMP1 outputs a low-level signal to the control unit 12 through the cmp_out terminal. The control unit 12 then outputs a low-level signal through the rch pin to control the second switch SW2 to be disconnected. After the second switch SW2 is disconnected, the second current source I2 stops discharging charge from the first capacitor C1, thereby stopping reducing the ADC reference voltage VREF_ADC. The control unit 12 also outputs a low-level signal through the cmp1_sw and cmp2_sw pins and the sw1_ctrl and sw2_ctrl pins to switch the combination of the third switch SW3, the fourth switch SW4, the fifth switch SW5, and the sixth switch SW6. This allows the Vip terminal of the first comparator CMP1 to obtain the transient voltage Vslope stored in the second capacitor C2 through the combination of the aforementioned switches, and the Vin terminal of the first comparator CMP1 to obtain the ADC reference voltage VREF_ADC through the combination of the aforementioned switches.
[0118] When the transient voltage Vslope is greater than or equal to the reference voltage VREF_ADC, the first comparator CMP1 outputs a high-level signal to the control unit 12 through its output terminal cmp_out. The control unit 12 then outputs a high-level signal through its fch pin to close the first switch SW1. After the first switch SW1 is closed, the first current source I1 injects charge into the first capacitor C1 through the external voltage source VddA to increase the ADC reference voltage VREF_ADC. When the transient voltage Vslope is less than the reference voltage VREF_ADC, the first comparator CMP1 outputs a low-level signal to the control unit 12 through its cmp_out terminal. The control unit 12 then outputs a low-level signal through its fch pin to open the first switch SW1. After the first switch SW1 is opened, the first current source I1 stops injecting charge into the first capacitor C1, thereby stopping increasing the ADC reference voltage VREF_ADC.
[0119] Of course, the various signals and combinations of the various signals in the above embodiments can be set according to actual conditions, and the present invention does not impose any specific limitations thereon.
[0120] In addition, the present invention further provides a chip, which includes a CIM and the above-mentioned voltage regulating circuit 10, wherein the CIM includes multiple parallel ADCs, and the voltage regulating circuit 10 is used to regulate the reference voltages of the multiple parallel ADCs.
[0121] In one embodiment, the chip is a storage and computing integrated chip.
[0122] In another embodiment, the chip is a CIM-based NPU (neural network processor, also called a neural network accelerator). The NPU can be applied to many AI fields. For example, it can be an analog-to-digital hybrid AI vision chip based on a sensing, storage, and computing integrated technology architecture. The AI vision chip has lower power consumption and higher energy efficiency. The neural network accelerator provided by the present invention can be applied to autonomous driving, AR, VR, and lidar. It can also be widely used in a series of application fields that require low power consumption and high energy efficiency, such as smartphones, tablets, wearable electronic equipment, smart home electronic products, industrial or medical or battery-powered devices.
[0123] In addition, an electronic device is provided, comprising the above chip.
[0124] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0125] This document uses specific examples to illustrate the principles and implementation methods of the present invention. The above examples are only intended to help understand the method and core concept of the present invention. At the same time, those skilled in the art will find that the specific implementation methods and application scopes may vary based on the concept of the present invention. In summary, the contents of this specification should not be construed as limiting the present invention.
Claims
1. A voltage regulation circuit based on CIM, characterized in that: The CIM includes a plurality of parallel ADCs, the voltage regulating circuit is used to regulate the reference voltages of the plurality of parallel ADCs, and the voltage regulating circuit includes: a voltage detection unit, a control unit and a voltage regulating unit; The voltage detection unit is connected to the control unit and is used to be electrically connected to the reference voltage terminal of the ADC to obtain the reference voltage, and when the reference voltage is less than a preset voltage, output a first voltage detection signal to the control unit, or when the reference voltage is greater than the preset voltage, output a second voltage detection signal to the control unit; a control unit, connected to the voltage regulating unit, configured to receive the first voltage detection signal, and output a first regulating signal to the voltage regulating unit according to the first voltage detection signal; A voltage regulating unit, electrically connected to the control unit and used to be electrically connected to a reference voltage terminal of the ADC; The voltage regulating unit is further used to receive a first regulating signal sent by the control unit, and boost the reference voltage according to the first regulating signal; The control unit is further configured to receive the second voltage detection signal, and output a second adjustment signal to the voltage adjustment unit according to the second voltage detection signal; The voltage regulating unit is further configured to reduce the reference voltage according to the second regulating signal.
2. The voltage regulating circuit according to claim 1, characterized in that: The voltage regulating unit comprises: a voltage monitoring subunit and a voltage regulating subunit; The voltage monitoring subunit is connected to the control unit and the voltage regulating subunit respectively, and the control unit is connected to the voltage regulating subunit; The output terminal of the voltage regulating subunit is electrically connected to the reference voltage terminal of the ADC; The voltage monitoring subunit is used to receive the first regulating signal and output a first monitoring signal to the control unit according to the first regulating signal; The control unit is used to receive the first monitoring signal, and control the output voltage of the voltage regulating subunit to increase according to the first monitoring signal, so that the reference voltage increases accordingly; The voltage monitoring subunit is used to receive the second regulating signal and output a second monitoring signal to the control unit according to the second regulating signal; The control unit is used to receive the second monitoring signal and control the output voltage of the voltage regulating subunit to decrease according to the second monitoring signal so that the reference voltage Should decrease.
3. The voltage regulating circuit according to claim 2, characterized in that: The voltage monitoring subunit is further used to obtain the reference voltage, and when the reference voltage is greater than a preset voltage, output a stop boost signal to the control unit; The control unit is further used to receive the stop boost signal, and control the output voltage of the voltage regulating subunit to stop rising according to the stop boost signal, so that the reference voltage stops rising accordingly; The voltage monitoring subunit is further used to obtain the reference voltage, and when the reference voltage is less than a preset voltage, output a stop voltage reduction signal to the control unit; The control unit is further configured to receive the stop voltage reduction signal, and control the output voltage of the voltage regulating subunit to stop decreasing according to the stop voltage reduction signal, so that the reference voltage stops decreasing accordingly.
4. The voltage regulating circuit according to claim 3, characterized in that: The voltage monitoring subunit is used for obtaining the output voltage of the voltage regulating subunit as the first transient voltage after the output voltage of the voltage regulating subunit stops rising; The voltage monitoring subunit is further used to obtain a comparison result between the reference voltage and the first transient voltage, and generate a third monitoring signal according to the comparison result and send it to the control unit; The control unit is further used to step down the reference voltage of the voltage regulating subunit according to the third monitoring signal; The voltage monitoring subunit is used for obtaining the output voltage of the voltage regulating subunit as the second transient voltage after the output voltage of the voltage regulating subunit stops decreasing; The voltage monitoring subunit is further used to obtain a comparison result between the reference voltage and the second transient voltage, and generate a fourth monitoring signal according to the comparison result and send it to the control unit; The control unit is further configured to boost the reference voltage of the voltage regulating subunit according to the fourth monitoring signal.
5. The voltage regulating circuit according to any one of claims 2 to 4, characterized in that: The voltage regulating subunit is a charge pump, the output end of the charge pump is electrically connected to the reference voltage end of the ADC, the control end of the charge pump is connected to the control unit, and the input end of the charge pump is connected to the voltage monitoring subunit.
6. The voltage regulating circuit according to claim 5, characterized in that: The charge pump comprises: a first current source, a first switch, a second current source, a second switch and a first capacitor; The first end of the first current source is connected to an external voltage source. The second end is connected to the first end of the first switch; the second end of the first switch is connected to the first end of the first capacitor, and the control end of the first switch is connected to the control unit; the second end of the first capacitor is grounded; The first end of the second switch is connected to the connection point between the first current source and the first capacitor, the second end of the second switch is connected to the first end of the second current source, the control end of the second switch is connected to the control unit; the second end of the second current source is grounded.
7. The voltage regulating circuit according to claim 3, characterized in that: The voltage monitoring subunit includes a third switch, a fourth switch, a fifth switch, a sixth switch, a second capacitor and a first comparator; The first end of the third switch is used to be electrically connected to the ADC to access the reference voltage, the second end is connected to the control unit, and the third end is connected to the first end of the second capacitor; the second end of the second capacitor is grounded; A first end of the fourth switch is connected to a first end of the second capacitor, a second end of the fourth switch is connected to the control unit, a third end of the fourth switch is connected to a first end of the fifth switch, and a fourth end of the fourth switch is connected to an inverting input end of the first comparator; The second end of the fifth switch is electrically connected to the ADC to access the reference voltage, the third end of the fifth switch is connected to a preset voltage source to access the preset voltage, and the fourth end of the fifth switch is connected to the control unit; A first end of the sixth switch is connected to a first end of the second capacitor, a second end of the sixth switch is connected to a first end of the fifth switch, a control end of the sixth switch is connected to the control unit, and a fourth end of the sixth switch is connected to a non-inverting input end of the first comparator; The output end of the first comparator is connected to the control unit; The control unit is used to receive the first voltage detection signal, and output a first switch control signal to the third switch and the sixth switch according to the first voltage detection signal, so that the third switch and the sixth switch control the loop between the ADC and the non-inverting input terminal of the first comparator to be closed according to the first switch control signal; The control unit is further configured to receive the first voltage detection signal, and output a second switch control signal to the fourth switch and the fifth switch according to the first voltage detection signal, so that the fourth switch and the fifth switch control the loop between the preset voltage source and the inverting input terminal of the first comparator to be closed according to the second switch control signal; The first comparator is used to output the first monitoring signal to the control unit after comparing and finding that the reference voltage is less than the preset voltage of the preset voltage source; The control unit is further used to receive the second voltage detection signal, and output a third switch control signal to the third switch and the sixth switch according to the second voltage detection signal, so that the third switch and the sixth switch control the loop between the ADC and the second capacitor to be disconnected and the loop between the second capacitor and the non-inverting input terminal of the first comparator to be closed according to the third switch control signal; The control unit is further configured to receive the second voltage detection signal, and output a fourth switch control signal to the fourth switch and the fifth switch according to the second voltage detection signal, so that the fourth switch and the fifth switch control the loop between the preset voltage source and the inverting input terminal of the first comparator to be closed according to the fourth switch control signal; The first comparator is also used to output the second monitoring signal to the control unit after comparison shows that the transient voltage of the second capacitor is less than the preset voltage of the preset voltage source, and the transient voltage is the voltage across the second capacitor when the loop between the ADC and the second capacitor is disconnected.
8. The voltage regulating circuit according to claim 3 or 4, characterized in that: The voltage detection unit is a second comparator, the output end of the second comparator is connected to the control unit, the non-inverting input end of the second comparator is connected to a preset voltage source, and the inverting input end of the second comparator is electrically connected to a reference voltage end of the ADC.
9. A chip, characterized in that: The invention comprises a CIM and the voltage regulating circuit according to any one of claims 1 to 8; the CIM comprises a plurality of parallel ADCs, and the voltage regulating circuit is used for regulating the reference voltages of the plurality of parallel ADCs.
10. An electronic device, characterized in that: Comprising the chip as claimed in claim 9.
Citation Information
Patent Citations
Temperature compensation unit and method for neural network storage and calculation array
CN113381759A
In-memory calculation reading circuit
CN115881187A
Analog-to-digital conversion circuit, electronic device, and operating method
CN115913239A
Voltage regulation circuit based on CIM, chip and electronic equipment
CN116185119A
Power-efficient compute-in-memory analog-to-digital converters
US11018687B1
