Offset calibration method and circuit for comparator array
Through the combination of the global calibration voltage generation module and the integrator, efficient distortion calibration of the comparator array is achieved, solving the problems of large area consumption, long calibration time and low accuracy in the prior art, and achieving small area, short time and high Calibration effect of precision.
Patent Information
- Application Number
- CN202410321001.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-20
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-03-20
AI Technical Summary
The calibration methods of existing comparator arrays have problems such as large area consumption, long calibration time and low calibration accuracy. Especially in high-speed dynamic comparator applications, traditional offset voltage storage methods and digitally assisted analog fine-tuning techniques are difficult to take into account the large calibration range. and small calibration step size.
Using a combination of global calibration voltage generation module, integrator, global logic control circuit and local logic control circuit, the global calibration voltage generation module generates a reference voltage, and the integrator integrates the voltage during the calibration phase to realize offset calibration of the comparator array. , a global calibration voltage generation module is used to reduce the area consumption of independent calibration circuits.
The offset calibration of small area, short calibration time and high calibration accuracy is realized. By adjusting the voltage magnitude of the global calibration voltage generation module, the contradiction between calibration accuracy and area is solved and array-level matching is improved.
Smart Images

Figure CN118138045B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to an offset calibration method and a circuit applied to a comparator array, and belongs to the field of integrated circuit design. Background Art
[0002] In the fields of image sensors, storage and computing, etc., with the development of technology, the size of devices continues to decrease and the size of arrays continues to expand. As the proportion of the array to the area of the device increases, a low-area design of analog circuits is required. In the fields of image sensors, storage and computing, etc., column-level signal processing usually requires an analog-to-digital converter (ADC) per column or multiple columns to multiplex an ADC, where the performance of the ADC has a great impact on the performance of the entire system. As an important module of the analog-to-digital converter, the comparator must meet performance requirements such as low area and low offset. However, with the fluctuation of process parameters, the comparator will have a normally distributed offset voltage, and its equivalent input offset voltage may reach more than ten millivolts, which reduces the dynamic input range of the ADC and reduces the performance of the ADC.
[0003] In order to improve the performance of the comparator and reduce the offset voltage, a large-size device can be sampled, but this will increase the area and load. Another method is to add a calibration circuit to calibrate the comparator, and complete the calibration of the comparator by measuring and correcting the offset voltage. The pros and cons of a calibration technology are mainly measured by the performance of the circuit after calibration, the area and power consumption increased by calibration, and the calibration time.
[0004] At present, the common calibration methods mainly include offset voltage storage methods represented by automatic zeroing and correlated double sampling, and digitally assisted analog fine-tuning methods. Among them, the offset voltage storage method is not suitable for the application of high-speed dynamic comparators because it requires an additional calibration cycle before each comparison cycle and introduces a large capacitive load on the signal path. The digitally assisted analog fine-tuning technology applies a digitally controlled calibration voltage on one of the signal paths of the comparator to offset the offset and complete the calibration of the comparator. This calibration method only needs to be calibrated before the comparator works normally, and no additional comparison cycle is introduced when the comparator works normally, which is suitable for the calibration of high-speed comparators. However, there is a contradiction between the calibration accuracy and the area of the calibration circuit and the calibration time. In order to achieve a large calibration range and a small calibration step, a long calibration cycle and a large circuit area are required. In addition, the existing calibration circuit of the comparator array usually uses an independent calibration circuit for each comparator, which not only has the problem of excessive area consumption, but also brings the problem of mismatch between comparators. Summary of the invention
[0005] In order to solve one or more of the above problems, the present invention provides a method and circuit applicable to comparator array calibration to achieve offset calibration with small area cost, short calibration time and high calibration accuracy.
[0006] The first object of the present invention is to provide an offset calibration circuit applied to a comparator array, comprising a global calibration voltage generating module, an integrator, a comparator, a global logic control circuit and a local logic control circuit; wherein the input of the global logic control circuit is a calibration enable signal and a clock signal, and the output end is connected to the control end of the global calibration voltage generating module, so as to generate the control signal required by the global calibration voltage generating module; the output end of the global calibration voltage generating module is connected to the input end of the integrator, so as to generate the voltage required for the calibration of the entire comparator array; each comparator is respectively configured with two integrators, and the output ends of the two integrators are respectively connected to a calibration port of the comparator, and the integrator is used to integrate the voltage generated by the global calibration voltage generating module during the calibration stage, and to maintain the integrated calibration voltage during the normal working stage of the comparator; the input end of the local logic control circuit is connected to the output port of the comparator, and the output end of the local logic control circuit is connected to the control end of the integrator, so as to generate the control signal required by the integrator.
[0007] In one implementation, the comparator includes two calibration ports Vcal_P and Vcal_N. The calibration ports Vcal_P and Vcal_N are gates of a calibration pair of tubes connected in parallel to the comparator input pair of tubes or are substrates of the comparator input pair of tubes.
[0008] In one embodiment, when calibration starts, the global logic control circuit generates a control signal to control the global calibration voltage generation module to sequentially generate voltages of magnitudes Vref, ... The global calibration voltage Vgcal, where the reference voltage Vref and N determine the calibration range and calibration accuracy of the calibration module. If the reference voltage Vref is larger, the offset calibration range is larger and larger offsets can be calibrated. The smaller it is, the smaller the calibration step is and the higher the calibration accuracy is.
[0009] In one embodiment, the global calibration voltage generating module is composed of a capacitor array, a reset switch, a switch array and a buffer. The capacitor array is connected in parallel, and the lower plate of each capacitor is connected to a switch, the upper plate is connected to the positive pole of the buffer, and the negative pole of the buffer is connected to the global calibration voltage Vgcal; the switch array is connected to the global logic control circuit, and the global logic control circuit controls each switch to select access to a reference voltage or ground. The reset switch is connected in parallel to the capacitor array. When the reset switch is closed, the upper plates of all capacitors are connected to the reference voltage for resetting the capacitor array.
[0010] In one embodiment, the integrator is composed of a switch S int1 ~S int5 , capacitor C int1 ~C int3 It consists of a 2x gain amplifier and a selector, and the capacitor C int1 ~C int3 The capacitance is equal; the selector is controlled by the control signal CRE. When CRE is high, the capacitor C int2 The upper plate is connected to the switch S int2 and switch S int3 Between, and the capacitor C int3 Connected to the output of the integrator, when CRE is low, the capacitor C int3 The upper plate is connected to the switch S int2 and switch S int3 Between, and the capacitor C int2 The global calibration voltage Vgcal is connected to the output of the integrator through the switch S int1 Connect to capacitor C int1 The upper plate, capacitor C int1 The upper plate of int2 Connect to capacitor C int2 The upper plate, capacitor C int2 The upper plate of int3 Connected to the input of the 2x gain amplifier, the output of the amplifier is connected to the input of the 2x gain amplifier through the switch S int4 Connected to the calibration port Vcal_P or Vcal_N of the comparator, capacitor C int3 The upper plate of the capacitor is connected to the output terminal, the lower plates of all capacitors are connected to ground, and the reset switch S int5 Connect the output terminal and ground in series to reset the output voltage.
[0011] A second object of the present invention is to provide a calibration method for an offset calibration circuit applied to a comparator array, based on the above offset calibration circuit, the method comprises:
[0012] Step 1: When the comparator calibration starts, the comparator input terminal is connected to the common mode voltage Vcm. At the same time, the comparator local calibration terminals Vcal_P and Vcal_N and the global calibration voltage Vgcal are reset, and the comparator outputs the first comparison result.
[0013] Step 2: According to the first output of the comparator in the step, the local logic control circuit determines the calibration side, and the integrator integrates the global calibration voltage so that the voltage at the Vcal_P terminal increases by Vref or the voltage at the Vcal_N terminal increases by Vref, and the comparator outputs the second comparison result;
[0014] Step 3: The global logic control circuit controls the global calibration voltage generation module to reduce the generated global calibration voltage from Vref to
[0015] Step 4: According to the second output of the comparator in step 4, the local logic control circuit determines the calibration side, and the integrator integrates the global calibration voltage Vgcal, so that the voltage at the Vcal_P terminal increases Or the voltage at Vcal_N increases The comparator outputs the third comparison result;
[0016] Step 5: Repeat the operations of step 3 and step 4 until the output Vgcal of the global calibration voltage generation module is At this time, the last integration is performed according to the last comparison result of the comparator. After the integration is completed, the voltage of the integrator output terminals Vcal_P and Vcal_N is the calibration voltage of the local comparator, and the comparator offset calibration is completed.
[0017] In one embodiment, the local logic control circuit determines the calibration side in such a way that if the comparator outputs a high level after completing a comparison in the calibration phase, the voltage at the Vcal_N terminal will be added with the global calibration voltage Vgcal through the integrator, while the voltage at the Vcal_P terminal remains unchanged; and if the comparator outputs a low level after completing a comparison in the calibration phase, the voltage at the Vcal_P terminal will be added with the global calibration voltage Vgcal through the integrator, while the voltage at the Vcal_N terminal remains unchanged.
[0018] A third object of the present invention is to provide an image sensor, which adopts the above-mentioned offset calibration circuit applied to a comparator array.
[0019] A fourth object of the present invention is to provide a storage and computing integrated chip, which adopts the above-mentioned offset calibration circuit applied to the comparator array.
[0020] A fifth object of the present invention is to provide an application of the offset calibration circuit applied to a comparator array or a calibration method of the offset calibration circuit applied to a comparator array in the field of integrated circuit design.
[0021] Beneficial effects of the present invention:
[0022] (1) The comparator array offset calibration circuit provided by the present invention can achieve a large calibration range and a small calibration step size by only adjusting the voltage generated by the global calibration voltage generation module. The entire comparator array shares one global calibration voltage generation module, and each comparator only needs to add an integrator circuit and a local logic control circuit, thereby resolving the contradiction between calibration accuracy and area and meeting the requirement of low area. At the same time, since the global calibration voltage generation module is shared, the mismatch between comparators caused by the traditional independent calibration circuit is reduced, and the array-level matching is improved.
[0023] (2) The offset calibration method provided by the present invention is similar to the binary search algorithm, which searches for the offset voltage using the sampling binary search method. The calibration step only needs N cycles, and the calibration time is short;
[0024] (3) The present invention can flexibly adjust the calibration accuracy by adjusting the global calibration voltage generation module, and the technology has strong portability. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] 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 ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0026] Figure 1 It is a diagram of the overall architecture of the offset calibration circuit of the array-level comparator of the present invention.
[0027] Figure 2 4 is a schematic diagram of a global calibration voltage generation module provided in the second embodiment of the present invention.
[0028] Figure 3 This is a schematic diagram of an integrator provided in Embodiment 2 of the present invention.
[0029] Figure 4 This is a schematic diagram of a comparator provided in the second embodiment of the present invention.
[0030] Figure 5 This is a comparator calibration flow chart provided in the second embodiment of the present invention.
[0031] Figure 6 This is a timing diagram provided by Embodiment 2 of the present invention. DETAILED DESCRIPTION
[0032] The following will be combined with the accompanying drawings to clearly and completely describe the technical solutions in the embodiments of the present invention. The same or similar symbols appearing in the embodiments represent the same or similar elements or elements with the same or similar functions. 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, other embodiments obtained by those skilled in the art without creative work are all within the scope of protection of the present invention.
[0033] Embodiment 1
[0034] This embodiment provides an offset calibration circuit for a comparator array. Figure 1 , including a global calibration voltage generating module, an integrator, a comparator, a global logic control circuit and a local logic control circuit; the input of the global logic control circuit is a calibration enable signal EN and a clock signal CLK, and its output end is connected to the input end of the global calibration voltage generating module, for generating the required control signal of the global calibration voltage generating module; the output end of the global calibration voltage generating module is connected to the input end of the integrator, for generating the voltage required for the calibration of the entire comparator array; each comparator is respectively configured with two integrators, wherein the output end of one integrator is connected to the calibration port Vcal_P of the comparator, and the input end of the other integrator is connected to the calibration port Vcal_P of the comparator. The output end is connected to the calibration port Vcal_N of the comparator. The integrator is used to integrate the voltage generated by the global calibration voltage generation module during the calibration stage, and maintain the integrated calibration voltage during the normal working stage of the comparator. The comparator includes two calibration ports Vcal_P and Vcal_N. The calibration ports Vcal_P and Vcal_N are the gates of the calibration pair of tubes connected in parallel with the input pair of tubes of the comparator or the substrates of the input pair of tubes of the comparator. The input end of the local logic control circuit is connected to the output port of the comparator, and the output end of the local logic control circuit is connected to the control end of the integrator, which is used to generate the control signal required by the integrator.
[0035] Embodiment 2:
[0036] This embodiment provides an offset calibration circuit applied to a comparator array, which is implemented based on the first embodiment. Figure 2 As shown, the global calibration voltage generation module of this embodiment is composed of a capacitor array C0~C N , reset switch, switch array S1~S N and buffer A1, where N = 6, capacitor array S1 ~ S N In parallel, each capacitor lower plate is connected to a switch, the upper plate is connected to the positive electrode of the buffer, and the negative electrode of the buffer A1 is connected to the global calibration voltage Vgcal; the switch array S1~S NConnected to the global logic control circuit, the global logic control circuit controls each switch to select the reference voltage or ground; the reset switch is used to reset the capacitor array. When the switch is closed, the upper plates of all capacitors are connected to the reference voltage Vref. The capacitance values of capacitors C0 to C6 are C, C, 2C, 4C...2 5 C, where C represents the capacitance of the unit capacitor. Buffer A1 is used to isolate the capacitor array and the integrator and provide driving capability. The global logic control circuit generates the control signals required to reset the switch and the switch array. Its input is the calibration enable signal EN and the clock signal CLK. By detecting the high and low levels of EN at the rising edge of CLK, it is determined whether the circuit is in calibration mode or comparator normal working mode. When the rising edge of CLK comes, if EN is at a low level at this time, the global control logic circuit generates a control signal to make the switch array S1~S N The reference voltage Vref is connected, and the reset switch is closed at the same time. At this time, the global calibration voltage Vgcal is Vref; when the CLK rising edge comes, if EN is at a high level at this time, it enters the calibration mode, first disconnects the reset switch, and the other switch signals remain unchanged. After one clock cycle, the global control logic circuit generates a switch S N The control signal of makes the switch connected to the ground, and the global calibration voltage Vgcal is After another clock cycle, switch S N-1 Ground, the global calibration voltage Vgcal is After N clock cycles, the global calibration voltage Vgcal is
[0037] The integrator of this embodiment is used to integrate the global calibration voltage, and the control signal required is generated by the local logic control circuit. The offset calibration circuit of this embodiment includes comparators 1 to M, each of which corresponds to two integrators P and N. The inputs of the two integrators are global calibration voltages, one of which has an output connected to the local calibration terminal Vcal_P of the comparator, and the other integrator N is connected to the calibration terminal Vcal_N, and all control signals of the two integrators are independent. Figure 3 , each integrator consists of a switch S int1 ~S int5 , capacitor C int1 ~C int3 It consists of a 2x gain amplifier and a selector, and the capacitor C int1 ~C int3 The selector is controlled by the control signal CRE. When CRE is high, the capacitor C int2 The upper plate is connected to the switch S int2 and switch S int3 Between, and the capacitor C int3Connected to the output of the integrator, when CRE is low, the capacitor C int3 The upper plate is connected to the switch S int2 and switch S int3 Between, and the capacitor C int2 The global calibration voltage Vgcal is connected to the output of the integrator through the switch S int1 Connect to capacitor C int1 The upper plate, capacitor C int1 The upper plate of int2 Connect to capacitor C int2 The upper plate, capacitor C int2 The upper plate of int3 Connected to the input of the 2x gain amplifier, the output of the amplifier is connected to the input of the 2x gain amplifier through the switch S int4 Connected to the comparator local calibration terminal Vcal_P or Vcal_N, capacitor C int3 The upper plate of the capacitor is connected to the output terminal, the lower plates of all capacitors are connected to ground, and the reset switch S int5 The output terminal and ground are connected in series to reset the output voltage. The local logic control circuit generates the switch S int1 ~S int5 When the circuit enters the calibration mode, in the first clock cycle, the global calibration voltage Vgcal is Vref. At this time, the local logic control circuit determines and controls the integrator to integrate the calibration terminal Vcal_P or Vcal_N according to the comparison result of the comparator. The integration principle of the integrator is as follows:
[0038] The local logic control circuit generates the switch S int1 ~S int5 The control signal of the switch S int1 Closed, switch S int2 ~S int4 Disconnect, then the capacitor C int1 The global calibration voltage Vgcal is sampled within the clock cycle. If the clock cycle is the first clock cycle, Vgcal is Vref, and S int5 Close, empty the capacitor C int3 The charge on the switch S int1 Disconnect, S int2 Closed, S int5 Disconnected, and CRE is low level, at this time the capacitor C int1 and C int3 Carry out charge sharing and disconnect S immediately after sharing is completed. int2 , close switch S int1 , S int3 and S int4 At this time, the output voltage of the calibration terminal is Vref, the integration is completed, and the capacitor Cint1 At the same time, the global calibration voltage Vgcal of the second clock cycle is sampled. When the third clock cycle comes, the switch S int1 Disconnect, S int2 Closed, S int5 Disconnected, and CRE is high level, then the capacitor C int1 and C int2 Carry out charge sharing and disconnect S immediately after sharing is completed. int2 , close switch S int1 , S int3 and S int4 , at this time the calibration terminal output voltage is And the capacitance C int1 At the same time, the global calibration voltage Vgcal of the third clock cycle is sampled, and the above operation is repeated in the subsequent integration process.
[0039] The comparator of this embodiment is as follows Figure 4 As shown, the comparator is composed of PMOS tubes PM1~PM7, NMOS tubes NM1~NM6 and inverters INV1 and INV2, and its input terminals are VIP and VIN, and the calibration terminals are Vcal_P and Vcal_N, which are led out through the calibration pair tubes connected in parallel with the comparator input pair tubes; the comparator is controlled by the clock signal CLK, when CLK is high level, the comparator is reset, at this time, the output terminals COMP_P and COMP_N are both high level, when CLK is low level, the comparator compares the voltages of the input terminals VIP and VIN, if the voltage of the VIP terminal is greater than the voltage of the VIN terminal, the output terminal COMP_P is high level, and the output terminal COMP_N is low level, otherwise, if the voltage of the VIN terminal is greater than the voltage of the VIP terminal, the output terminal COMP_N is high level, and the output terminal COMP_P is low level.
[0040] The calibration process of this embodiment is as follows: Figure 5 is the calibration process flow chart, Figure 6 This is the calibration timing diagram.
[0041] The calibration terminal Vcal_P corresponds to the integrator P, and the calibration terminal Vcal_N corresponds to the integrator N. All control signals in the integrator P and the integrator N are independent and do not communicate with each other. Taking the positive offset voltage VOS on the P side as an example, the calibration process is described in detail below.
[0042] Step 1: Connect the two input terminals of the comparator to switches S1 and S2 respectively, and connect switches S1 and S2 to the common-mode voltage Vcm. When the comparator calibration starts, the common-mode switch at the comparator input is closed, and VIP and VIN are connected to the common-mode voltage Vcm. At the same time, the switch S in the integrator int5Close, reset the comparator local calibration terminals Vcal_P and Vcal_N, close the reset switch in the global calibration module to reset the global calibration voltage Vgcal, close switches S1 to S6, connect the lower plate of the capacitor array to the reference voltage Vref, and the comparator outputs the first comparison result, that is, COMP_P is high level;
[0043] Step 2: Since COMP P is at a high level, the voltage of the calibration terminal Vcal N needs to be increased through the integrator. When the switch S in the integrator N corresponding to the calibration terminal Vcal_N int1 Closed, switch S int2 ~S int4 When disconnected, the capacitor C int1 The global calibration voltage Vgcal is sampled, and S int5 Close, empty the capacitor C int3 The charge on the int2 Closed, switch S int1 disconnected, and CRE is low, the capacitor C int1 and C int3 Charge sharing, then disconnect S int2 , closed S int3 and S int4 The shared voltage is amplified by 2 times and stored in C int3 , at this time, the voltage of the calibration terminal Vcal_N increases to Vref, completing the integration; Step 3: After the integration phase ends, the comparator performs the next comparison, and at the same time, the switch S6 in the global calibration voltage generation module is grounded, and the global calibration voltage Vgcal is reduced to
[0044] Step 4: According to the comparison result of the comparator in step 3, determine whether to integrate the calibration voltage on the P side or the N side. If COMP_P is high, the calibration terminal Vcal_N is integrated through the integrator N. Specifically, the switch S in the integrator N is turned on. int1 Closed, switch S int2 ~S int4 Disconnect, capacitor C int1 The global calibration voltage Vgcal is sampled, and then S int2 Closed, switch S int1 disconnected, and CRE is high, the capacitor C int1 and C int2 Charge sharing, then disconnect S int2 , closed S int3 and S int4 The shared voltage is amplified by 2 times and stored in C int3 , so that the voltage at the Vcal_N terminal increases to If COMP_N is low, the calibration terminal Vcal_P is integrated by the integrator P. Specifically, the switch S in the integrator P int1 Closed, switch S int2 ~S int4 Disconnect, capacitor C int1 The global calibration voltage Vgcal is sampled, and then S int2 Closed, switch S int1 disconnected, and CRE is low, the capacitor C int1 and C int2 Charge sharing, then disconnect S int2 , closed S int3 and S int4 The shared voltage is amplified by 2 times and stored in C int3 , so that the voltage at the Vcal_P terminal increases to
[0045] Step 5: Repeat the operations of step 3 and step 4 until the output Vgcal of the global calibration voltage generation module is At this time, the last integration is performed according to the last comparison result of the comparator. After the integration is completed, the voltage of the integrator output terminals Vcal_P and Vcal_N is the calibration voltage of the local comparator, and the capacitor C stored on the integrator int3 After the calibration phase is completed, the input signal is connected to the input of the comparator for normal comparison operation.
[0046] According to the above comparator calibration workflow, taking the Mth comparator as an example, if its output is B during the calibration phase i , where i = 0, 1, 2…, N, and B0 is the first comparison result of the comparator, B N is the N+1th comparison result of the comparator. When the calibration phase is completed, the comparison result B N Calculate the voltage at the calibration end. i = 0, the calibration end Where 0≤i≤N, when B i =1, the calibration end Where 0≤i≤N, the minimum calibration step size is
[0047] Embodiment three:
[0048] This embodiment provides a calibration method for an offset calibration circuit applied to a comparator array, which is implemented by using the calibration circuit applied to a comparator array provided by the first embodiment or the second embodiment, and includes the following steps:
[0049] Step 1: When the comparator calibration starts, the common-mode switch at the comparator input is closed, VIP and VIN are connected to the common-mode voltage Vcm, and at the same time, the comparator local calibration terminals Vcal_P and Vcal_N and the global calibration voltage Vgcal are reset, and the comparator outputs the first comparison result;
[0050] Step 2: According to the first output of the comparator in the step, the local logic control circuit determines the calibration side, and the integrator integrates the global calibration voltage so that the voltage at the Vcal_P terminal increases by Vref or the voltage at the Vcal_N terminal increases by Vref;
[0051] Step 3: The comparator performs a second comparison and is controlled by the global logic control circuit. The global calibration voltage is reduced from Vref to
[0052] Step 4: According to the second output of the comparator, the local logic control circuit determines the calibration side, and the integrator integrates the global calibration voltage Vgcal, so that the voltage at the Vcal_P terminal increases Or the voltage at Vcal_N increases And steps 3 and 4 should be completed within one clock cycle;
[0053] Step 5: Repeat the operations of step 3 and step 4 until the output Vgcal of the global calibration voltage generation module is At this time, the last integration is performed according to the last comparison result of the comparator. After the integration is completed, the voltage of the integrator output terminals Vcal_P and Vcal_N is the calibration voltage of the local comparator, and the comparator offset calibration is completed.
[0054] Some steps in the embodiments of the present invention may be implemented using software, and the corresponding software program may be stored in a readable storage medium, such as a CD or a hard disk.
[0055] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. An offset calibration circuit for a comparator array, characterized in that: The offset calibration circuit includes a global calibration voltage generating module, an integrator, a comparator, a global logic control circuit and a local logic control circuit; wherein the output end of the global logic control circuit is connected to the control end of the global calibration voltage generating module, so as to generate the control signal required by the global calibration voltage generating module; the output end of the global calibration voltage generating module is connected to the input end of the integrator, so as to generate the voltage required for the calibration of the entire comparator array; each comparator is respectively configured with two integrators, the output ends of the two integrators are respectively connected to a calibration port of the comparator, the integrator is used to integrate the voltage generated by the global calibration voltage generating module during the calibration phase, and to maintain the calibration voltage after integration during the normal working phase of the comparator; the input end of the local logic control circuit is connected to the output port of the comparator, the output end of the local logic control circuit is connected to the control end of the integrator, so as to generate the control signal required by the integrator.
2. The offset calibration circuit according to claim 1, characterized in that: The comparator includes two calibration ports Vcal_P and Vcal_N. The calibration ports Vcal_P and Vcal_N are gates of a calibration pair of tubes connected in parallel to the comparator input pair of tubes or are substrates of the comparator input pair of tubes.
3. The offset calibration circuit according to claim 1, characterized in that: The global logic control circuit generates a control signal at the beginning of calibration to control the global calibration voltage generation module to generate a voltage of magnitude of … The global calibration voltage Vgcal.
4. The offset calibration circuit according to claim 1, characterized in that: The global calibration voltage generating module is composed of a capacitor array, a reset switch, a switch array and a buffer. The capacitor array is connected in parallel, each capacitor lower plate is connected to a switch, the upper plate is connected to the positive pole of the buffer, and the negative pole of the buffer is connected to the global calibration voltage Vgcal; the switch array is connected to the global logic control circuit, and the global logic control circuit controls each switch to select access to a reference voltage or grounding. The reset switch is connected in parallel to the capacitor array. When the reset switch is closed, the upper plates of all capacitors are connected to the reference voltage for resetting the capacitor array.
5. The offset calibration circuit according to claim 1, wherein: The integrator is composed of switch S int1 ~S int5 , capacitor C int1 ~ C int3 It consists of a 2x gain amplifier and a selector, and the capacitor C int1 ~ C int3 The capacitance is equal; the selector is controlled by the control signal CRE. When CRE is high, the capacitor C int2 The upper plate is connected to the switch S int2 and switch S int3 Between, and the capacitor C int3 Connected to the output of the integrator, when CRE is low, the capacitor C int3 The upper plate is connected to the switch S int2 and switch S int3 Between, and the capacitor C int2 The global calibration voltage Vgcal is connected to the output of the integrator through the switch S int1 Connect to capacitor C int1 The upper plate, capacitor C int1 The upper plate of int2 Connect to capacitor C int2 The upper plate, capacitor C int2 The upper plate of int3 Connected to the input of the 2x gain amplifier, the output of the amplifier is connected to the input of the 2x gain amplifier through the switch S int4 Connected to the calibration port Vcal_P or Vcal_N of the comparator, capacitor C int3 The upper plate of the capacitor is connected to the output terminal, the lower plates of all capacitors are connected to ground, and the reset switch S int5 Connect the output terminal and ground in series to reset the output voltage.
6. A calibration method for an offset calibration circuit applied to a comparator array, characterized in that: The method is implemented based on the offset calibration circuit according to any one of claims 1 to 5, and the method comprises: Step 1: When the comparator calibration starts, the comparator input terminal is connected to the common mode voltage Vcm. At the same time, the comparator local calibration terminals Vcal_P and Vcal_N and the global calibration voltage Vgcal are reset, and the comparator outputs the first comparison result. Step 2: According to the first output of the comparator in the step, the local logic control circuit determines the calibration side, and the integrator integrates the global calibration voltage so that the voltage at the Vcal_P terminal increases by Vref or the voltage at the Vcal_N terminal increases by Vref, and the comparator outputs the second comparison result; Step 3: The global logic control circuit controls the global calibration voltage generation module to reduce the generated global calibration voltage from Vref to ; Step 4: According to the second output of the comparator in step 4, the local logic control circuit determines the calibration side, and the integrator integrates the global calibration voltage Vgcal, so that the voltage at the Vcal_P terminal increases Or the voltage at Vcal_N increases , the comparator outputs the third comparison result; Step 5: Repeat the operations of step 3 and step 4 until the global calibration voltage Vgcal output by the global calibration voltage generation module is At this time, the last integration is performed according to the last comparison result of the comparator. After the integration is completed, the voltage of the integrator output terminals Vcal_P and Vcal_N is the calibration voltage of the local comparator, and the comparator offset calibration is completed.
7. The method according to claim 6, characterized in that In step 4, the local logic control circuit determines the calibration side in the following way: if the comparator outputs a high level after completing a comparison in the calibration stage, the voltage at the Vcal_N terminal will be added to the global calibration voltage Vgcal through the integrator, while the voltage at the Vcal_P terminal remains unchanged; and if the comparator outputs a low level after completing a comparison in the calibration stage, the voltage at the Vcal_P terminal will be added to the global calibration voltage Vgcal through the integrator, while the voltage at the Vcal_N terminal remains unchanged.
8. An image sensor, characterized in that: The offset calibration circuit applied to a comparator array as described in any one of claims 1 to 5 is adopted.
9. A storage and computing integrated chip, characterized in that: The offset calibration circuit applied to a comparator array as described in any one of claims 1 to 5 is adopted.
10. Application of the offset calibration circuit for comparator array according to any one of claims 1 to 5 or the method according to any one of claims 6 to 7 in the field of integrated circuit design.
