A single-ended input precision configurable SAR-ADC and its chip
By designing a single-ended input precision configurable SAR-ADC in an in-memory computing architecture, using CDAC capacitor arrays and asynchronous successive approximation logic circuits to achieve 3-bit-6-bit quantized precision configuration of signal voltages, it solves the problem caused by various ADC circuits in traditional chips. It eliminates circuit overhead and power consumption issues and improves adaptability to different application scenarios.
Patent Information
- Application Number
- CN202410947080.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-16
Smart Images

Figure CN118487600B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of integrated circuits, and in particular relates to a single-ended input precision configurable SAR-ADC and a chip thereof. Background Art
[0002] With the widespread application of computing-intensive tasks such as deep learning, the market's requirements for the computing power of computing devices have increased rapidly. However, the communication bandwidth of storage devices has increased relatively slowly, resulting in a mismatch between the computing power of computing devices and the communication bandwidth of storage devices. After more than two decades of unbalanced development, the demand for computing resources by artificial intelligence algorithms has surged, and has clearly exceeded the chip performance growth rate predicted by Moore's Law. Today, the computing power of computing devices is several orders of magnitude higher than the communication bandwidth, and an insurmountable "gap" has emerged between the two. At present, super-large computing power is mainly achieved by the parallel superposition of massive computing, memory and storage resources. Traditional computing chips are difficult to meet the needs of highly parallel computing of artificial intelligence in terms of computing resources, latency and power consumption.
[0003] The traditional von Neumann architecture is centered on computing, and the processor and memory are essentially separated, which leads to the problems of "storage wall" and "power wall" faced by traditional chip architecture. Under advanced processes, the power consumption of data movement may even exceed the power consumption of computing itself, which makes it difficult for current artificial intelligence applications to meet the urgent needs of low latency, high energy efficiency and high scalability at the same time. On this basis, technicians proposed a computing-in-memory architecture (CIM) that implements logical operations inside the memory. The computing-in-memory architecture realizes the fusion of storage units and logic units, allowing computing tasks to be performed within the storage array. This design avoids the cumbersome process of first transferring data to the processor register for calculation and then transferring the results back to the memory. Due to the reduced energy consumption caused by data transmission, the integrated computing-in-memory architecture can provide higher computing performance and lower latency at the same power consumption. In AI applications that require frequent access to memory, the integrated computing-in-memory architecture exhibits ultra-high energy efficiency, making it feasible to achieve efficient artificial intelligence processing on resource-constrained embedded systems and mobile devices.
[0004] Like traditional computer systems, the in-memory computing field also requires the use of quantization circuits (ADCs) when converting analog signals of calculation results into digital quantities. The application of ADCs in the in-memory computing quantization field is somewhat different from that in other scenarios. The application in the in-memory computing field pays more attention to ADC parameters such as offset, power consumption, speed, and static indicators. In the analog domain in-memory computing, the calculated results are stored in the form of charge on the bit line capacitor. In the result quantization stage, the ADC does not need to sample the calculation bit line voltage, and can directly connect the calculation bit line to the positive end of the comparator for comparison.
[0005] Traditional ADCs can usually only quantify calculation results according to the designed accuracy level. In the same CIM chip, it is often necessary to perform multiple different types of logic operation tasks, and different logic operation tasks have different accuracy requirements for the operation results. In order to achieve matching, it is necessary to design multiple different types of ADCs in the same CIM chip, which will greatly increase the on-chip overhead of the ADC circuit and produce negative effects such as increasing the static power consumption of the circuit. Summary of the invention
[0006] In order to solve the problem that the existing in-memory computing circuit relies on multiple ADC circuits to quantize the calculation results of different accuracy levels, the present invention provides a single-ended input precision configurable SAR-ADC and a chip thereof.
[0007] The technical solution provided by the present invention is:
[0008] A single-ended input precision configurable SAR-ADC supports quantization of input signal voltage VN according to different precision levels. The SAR-ADC includes three parts: a CDAC capacitor array, a comparison circuit and an asynchronous successive approximation logic circuit.
[0009] The CDAC capacitor array includes a plurality of capacitors connected in parallel, and is used to adjust the output reference voltage VP in a charge conservation manner by switching the voltage of the bottom plates of each capacitor. The bottom plate of each control capacitor in the CDAC capacitor array is connected to the reference voltage V via a controllable switch. REF Or ground VSS.
[0010] The comparison circuit is used to generate the corresponding comparison result according to the signal voltage VN input by the external circuit and the reference voltage VP input by the CDAC capacitor array. Among them, the comparison circuit adopts a two-stage comparator with an offset calibration circuit; the front-stage comparator adopts an operational amplifier with a cross-coupling structure as a load, and the rear-stage dynamic comparator adopts a dynamic latch comparator with a large prevention. The offset calibration circuit is used to eliminate the offset voltage during the operation of the front-stage comparator.
[0011] The asynchronous successive approximation logic circuit includes a startup module, a termination module, a clock configuration module and an asynchronous control module. After receiving the input startup signal START, the startup module generates a switch control signal Switch Ctrl sent to the CDAC capacitor array, a coupling signal Comp Ctrl sent to the comparison circuit, and a reset signal SOC sent to the clock configuration module, the asynchronous control module and the termination module. Among them, the Switch Ctrl signal is used to manage the on-off of the charging channel of the CDAC capacitor array and the ground channel of the compensation capacitor. The Comp Ctrl signal is used to adjust the coupling state of the offset calibration circuit and the comparator. The clock configuration module is used to obtain the working state of the comparison circuit and generate multiple asynchronous clock signals. The asynchronous control module is used to generate a switching control signal CDAC Ctrl for switching the ground channel of each control capacitor in the CDAC capacitor array according to the comparison results of the multiple asynchronous clock signals and the comparison circuit output. The termination module is used to obtain the preset accuracy level control signal Bit-Sel, and select the corresponding asynchronous clock signal according to Bit_Sel, and then generate a termination signal CMPOK after the clock cycle ends, and the generated CMPOK signal is sent to the startup module. The termination module is also used to generate an EN_LOOP signal for managing the internal clock of the subsequent comparator in the comparison circuit.
[0012] As a further improvement of the present invention, the CDAC capacitor array includes 7 capacitors C0~C6, two switches SW0, SV, and 6 switches S1~S6; wherein C0 is used as a compensation capacitor, and C1~C6 are regulating capacitors. The circuit connection relationship is: the upper plates of C0~C6 are connected to the same charging line; one end of the charging line is connected to the pre-charge voltage V through SV. CM The other end is connected to the positive input of the comparison circuit; the lower plates of C1~C6 are connected to the reference voltage V through switches S1~S6 respectively. REF Or grounded; the lower plate of C1 is grounded through SW0.
[0013] As a further improvement of the present invention, the offset calibration circuit is composed of 6 switches SW1-SW6 and two capacitors C100 and C200. The circuit connection relationship of the comparison circuit is as follows: VP and VN are connected to the positive input terminal and the negative input terminal of the comparison circuit through switches SW6 and SW5 respectively; the positive output terminal and the negative output terminal of the pre-amplifier are connected to the positive input terminal and the negative output terminal of the post-amplifier through capacitors C100 and C200 respectively; the positive input terminal and the negative input terminal of the pre-amplifier and the post-amplifier are connected to Vcm through SW1-SW4 respectively.
[0014] As a further improvement of the present invention, the comparison circuit also includes a state feedback loop; the state feedback loop is used to generate a signal VAILD representing the working state of the comparison circuit and output it to the clock configuration module on the one hand, and to generate a clock signal LATCH output to the subsequent comparator on the other hand.
[0015] The state feedback loop is composed of three NOT gates INV1~INV3 and two AND gates AND1 and AND2. The circuit connection relationship is: the positive output terminal OUTP2 and the negative output terminal OUTN2 of the post-stage comparator are connected to the two input terminals of AND1 through INV1 and INV2 respectively. The output terminal of AND1 is connected to one of the input terminals of AND2 through INV3; the other input terminal of AND2 is connected to the EN_LOOP signal. The output of INV3 is the state signal VAILD, and the output of AND2 is the clock signal LATCH.
[0016] As a further improvement of the present invention, the front-stage comparator is composed of three NMOS tubes N0-N2 and four PMOS tubes P0-P3, and the circuit connection relationship is:
[0017] The sources of P0~P3 are connected to VDD; the gates of P0 and P2 and the drains of P0, P1 and N1 are connected to the inverting output terminal OUTN1 of the preceding comparator; the gates of P1 and P3 and the drains of P2, P3 and N2 are connected to the positive output terminal OUTP1 of the preceding comparator; the gate of N1 is connected to the positive output terminal INP1 of the preceding comparator; the gate of N2 is connected to the inverting output terminal INN1 of the preceding comparator; the sources of N1 and N2 are connected to the drain of N0; the gate of N0 is connected to the bias voltage Vbias; the source of N0 is grounded.
[0018] As a further improvement of the present invention, the post-stage comparator is composed of 6 PMOS tubes P4-P10 and 8 NMOS tubes N3-N11, and the circuit connection relationship is:
[0019] The sources of P4~P7 and the gates of N6 and N7 are connected to VDD; the drain of P4, the source of N6 and the gate of P8 are connected; the drain of P5, the source of N7 and the gate of P9 are connected; the gates of N6 and N7 are connected; the source of N6 is connected to the drain of N4; the source of N7 is connected to the drain of N5; the sources of N4 and N5 are connected to the drain of N3; the gate of N4 is connected to the positive input terminal INP2 of the subsequent comparator; the gate of N5 is connected to the negative input terminal I NN2; the sources of N3, N8~N11 are connected to VSS; the drain of P6 is connected to the source of P8; the drain of P7 is connected to the source of P9; the gates of P6 and N10 and the drains of P9, N9 and N11 are connected to the positive output terminal OUTP2 of the subsequent comparator; the gates of P7 and N9 and the drains of P8, N8 and N10 are connected to the inverting output terminal OUTN2 of the subsequent comparator; the gates of N3, N8 and N11 are connected to the clock signal LATCH.
[0020] As a further improvement of the present invention, the startup module is composed of a D flip-flop D100, three inverters INV4-INV6, and two delay circuits Delay1 and Delay2. Among them, D100 adopts a D flip-flop with a set terminal S and a reset terminal R. The circuit connection relationship of the startup module is:
[0021] The D terminal of D100 is connected to VSS, the CK terminal is connected to the external reset signal R_STN, the S terminal is connected to the start signal START, the R terminal is connected to the termination signal CMPOK, and the Q terminal is connected to the input terminals of INV4, INV5 and Delay2. The output terminal of INV4 is connected to the input terminal of Delay1; the output terminal of INV5 is connected to the input terminal of INV6.
[0022] The output signal G of INV4 is used to control the switch states of SW5 and SW6. The output signal G_DEL of Delay1 is used to control the switch states of SW1 to SW4. The output signal Svcm of INV6 is used to control the switch state of switch SV. The output of Delay2 is used as the reset signal SOC.
[0023] As a further improvement of the present invention, the termination module is composed of a four-to-one selector MUX, an invertor INV7 and an AND gate AND3. The circuit connection relationship is:
[0024] The four input terminals of MUX are connected to the asynchronous clock CLK corresponding to the 3-6 bit quantization level generated by the clock configuration module. <3> to CLK <6> The control terminal of MUX is connected to the precision level control signal Bit-Sel, and the output terminal of MUX is connected to the input terminal of INV7. The output terminal of INV7 is connected to one of the input terminals of AND3; and the other input terminal of AND3 is connected to the reset signal SOC.
[0025] The Bit-Sel signal includes two bits, which are recorded as SEL0 and SEL1. The output signal of MUX is used as the termination signal CMPOK; and the output signal of AND3 is used as the EN_LOOP signal.
[0026] As a further improvement of the present invention, the clock configuration module is formed by 6 D flip-flops D1 to D6 cascaded in sequence. The D terminal of the first-stage D flip-flop is connected to VDD, and the D terminal of the next-stage D flip-flop is connected to the Q terminal of the previous-stage D flip-flop. The CK terminal of each D flip-flop is connected to VAILD; the R terminal is connected to SOC; the Q terminal of each stage of D flip-flop outputs asynchronous clocks CLK of different lengths respectively. <1> ~CLK <6> .
[0027] As a further improvement of the present invention, the asynchronous control module is composed of 6 D flip-flops D7-D12 and 5 XNOR gates XNOR1-XNOR5. The two input terminals of the nth XNOR are connected to CLK <n>and CLK<n+1> The D terminals of D7~D12 are connected to the positive output terminal OUTP of the comparison circuit, and the CK terminals are connected to CLK <1> to CLK <6> The S end of D7 and the R end of D8-D12 are connected to SOC. The S end of D8-D12 is connected to SOC and connected to the output end of XNOR1-XNOR5 respectively. The output signal of the Q end of D7-D12 constitutes the switching control signal CDAC Ctrl, and is used to control the switching state of the switch S6-S1 respectively.
[0028] As a further improvement of the present invention, the strategy for configuring the quantization accuracy level of the input signal by the single-ended input precision-configurable SAR-ADC is as follows:
[0029] (1) When the SEL0 and SEL1 control signals are 00, MUX selects CLK <3> , the output accuracy of SAR ADC is 3bit.
[0030] (2) When the SEL0 and SEL1 control signals are 01, MUX selects CLK <4> , the output accuracy of SAR ADC is 4bit.
[0031] (3) When the SEL0 and SEL1 control signals are 10, MUX selects CLK <5> , the output accuracy of SAR ADC is 5bit.
[0032] (4) When the SEL0 and SEL1 control signals are 11, MUX selects CLK <6> , the output accuracy of SAR ADC is 6bit.
[0033] As a further improvement of the present invention, the operation logic of the single-ended input precision configurable SAR-AD is as follows:
[0034] 1. Reset phase
[0035] In the reset phase, the SAR ADC is in an idle state. At this time, the upper plates of each capacitor in the CDAC capacitor array are connected to the voltage VCM, and the lower plates are connected to VSS. The offset calibration module in the comparison circuit works, and the external input is disconnected from the input of the previous comparator; the input of the previous comparator and the input of the next comparator are both connected to the voltage V CM The registers connected to the asynchronous successive approximation logic circuit are reset and cleared.
[0036] 2. Quantification Stage
[0037] When receiving the quantization task, a START signal is generated; at this time, the offset calibration module and the voltage V CM Disconnect. The external input signal voltage VN is connected to the input terminal of the comparison circuit, and the asynchronous successive approximation logic circuit controls the CDAC capacitor array to output the reference voltage VP for the first comparison. The preparation is completed, the comparison circuit receives the enable signal, and starts the first comparison operation.
[0038] After the first comparison is completed, the asynchronous successive approximation logic circuit controls the CDAC capacitor array to output the reference voltage for the second comparison according to the comparison result; at the same time, the voltage of the output terminal of the previous comparator is reset. After completing the above operations, the next comparison begins until the last comparison is completed.
[0039] After all comparisons are completed, the comparison results latched in the output register are output, and the SAR-ADC is restored to the idle state; specifically, the circuit is reset and waits for the next quantization task.
[0040] The present invention also includes a CIM chip, which integrates the single-ended input precision configurable SAR-ADC as described above.
[0041] The technical solution provided by the present invention has the following beneficial effects:
[0042] The present invention provides a SAR-ADC with configurable single-ended input precision. The SAR-ADC comprises three parts: a CDAC capacitor array, a comparison circuit and an asynchronous successive approximation logic circuit. By selecting different asynchronous CLK signals to be connected to the asynchronous successive approximation logic circuit, the reference voltage output by the CDAC capacitor array can be adjusted, and the operation state of the comparison circuit can be switched, so that the quantization precision of the output signal voltage of the entire circuit can be freely configured within the range of 3bit-6bit, and the flexible configuration of coarse quantization and fine quantization is completed.
[0043] The SAR-ADC provided by the present invention can be applied to CIM chips, which can reduce the on-chip occupancy of the ADC circuit in the CIM chip and reduce the static power consumption of the chip. On the other hand, it can also enable the in-memory computing architecture to adapt to neural networks with different structures and meet the diverse requirements of different neural network computing tasks for the quantization accuracy of the calculation results. The adaptability of the in-memory computing architecture to different application scenarios is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 This is a circuit schematic diagram of the single-ended input precision configurable SAR-ADC provided in Embodiment 1 of the present invention.
[0045] Figure 2 A circuit diagram of a switch used in a CDAC capacitor array to switch the voltage state of a lower-level capacitor plate.
[0046] Figure 3 4 is a circuit diagram of a comparison circuit provided in Embodiment 1 of the present invention.
[0047] Figure 4 4 is a circuit diagram of a pre-stage comparator in a comparison circuit provided in Embodiment 1 of the present invention.
[0048] Figure 5 4 is a circuit diagram of a post-stage comparator in a comparison circuit provided in Embodiment 1 of the present invention.
[0049] Figure 6 This is a circuit diagram of a clock configuration module in the SAR-ADC provided in Embodiment 1 of the present invention.
[0050] Figure 7 This is a circuit diagram of an asynchronous control module in the SAR-ADC provided in Embodiment 1 of the present invention.
[0051] Figure 8 This is a circuit diagram of a startup module in the SAR-ADC provided in Embodiment 1 of the present invention.
[0052] Fig. 9 This is a circuit diagram of a termination module in the SAR-ADC provided in Embodiment 1 of the present invention. DETAILED DESCRIPTION
[0053] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0054] Example 1
[0055] This embodiment provides a single-ended input precision configurable SAR-ADC, which supports quantizing the input signal voltage VN according to different precision levels. Figure 1 As shown, the SAR-ADC includes three parts: a CDAC capacitor array, a comparison circuit and an asynchronous successive approximation logic circuit.
[0056] The CDAC capacitor array includes a plurality of capacitors connected in parallel, and is used to adjust the output reference voltage VP in a charge conservation manner by switching the voltage of the bottom plates of each capacitor. The bottom plate of each control capacitor in the CDAC capacitor array is connected to the reference voltage V via a controllable switch. REF Or ground VSS.
[0057] The comparison circuit is used to generate the corresponding comparison result according to the signal voltage VN input by the external circuit and the reference voltage VP input by the CDAC capacitor array. Among them, the comparison circuit adopts a two-stage comparator with an offset calibration circuit; the front-stage comparator adopts an operational amplifier with a cross-coupling structure as a load, and the rear-stage dynamic comparator adopts a dynamic latch comparator with a large prevention. The offset calibration circuit is used to eliminate the offset voltage during the operation of the front-stage comparator.
[0058] The asynchronous successive approximation logic circuit includes a startup module, a termination module, a clock configuration module and an asynchronous control module. After receiving the input startup signal START, the startup module generates a switch control signal Switch Ctrl sent to the CDAC capacitor array, a coupling signal Comp Ctrl sent to the comparison circuit, and a reset signal SOC sent to the clock configuration module, the asynchronous control module and the termination module. Among them, the Switch Ctrl signal is used to manage the on-off of the charging channel of the CDAC capacitor array and the ground channel of the compensation capacitor. The Comp Ctrl signal is used to adjust the coupling state of the offset calibration circuit and the comparator. The clock configuration module is used to obtain the working state of the comparison circuit and generate multiple asynchronous clock signals. The asynchronous control module is used to generate a switching control signal CDAC Ctrl for switching the ground channel of each control capacitor in the CDAC capacitor array according to the comparison results of the multiple asynchronous clock signals and the comparison circuit output. The termination module is used to obtain the preset accuracy level control signal Bit-Sel, and select the corresponding asynchronous clock signal according to Bit_Sel, and then generate a termination signal CMPOK after the clock cycle ends, and the generated CMPOK signal is sent to the startup module. The termination module is also used to generate an EN_LOOP signal for managing the internal clock of the subsequent comparator in the comparison circuit.
[0059] Combination Figure 1 The working principle of the single-ended input precision configurable SAR-ADC designed in this embodiment is:
[0060] Similar to the conventional scheme, this embodiment uses a CDAC capacitor array to generate the required reference voltages of different sizes. The reference voltage and the input signal voltage are input into the comparison circuit to complete the comparison and generate the quantization result. In particular, this embodiment designs a multi-level clock configuration module to generate asynchronous clock signals corresponding to different quantization precisions; and uses a specially designed startup module to automatically generate control signals sent to the remaining functional modules according to the selected asynchronous clock signal during the quantization process. In this embodiment, the selection of different levels of quantization precision is completed by the termination module. Specifically, the termination module can introduce a clock configuration module to generate multiple asynchronous clock signals of different lengths, and use a gate to select one of the clock signals according to the precision level set by the user, and then generate a corresponding termination signal after the clock signal ends and send it to a startup module. After receiving the termination signal, the startup module resets other functional modules and ends the entire quantization process.
[0061] In addition, in the SAR-ADC designed in this embodiment, the CDAC capacitor array needs to generate reference voltages of different sizes in the entire quantization process. The adjustment of the reference voltage is achieved by switching the voltage of the lower plate of the capacitor. The switching process between the two is implemented by an asynchronous control module. The asynchronous control module can determine the size of the reference voltage in the next stage according to the level of the reference voltage and the signal voltage in the previous stage.
[0062] In detail, according to Figure 1 It can be seen that the CDAC capacitor array includes 7 capacitors C0~C6, two switches SW0, SV, and 6 switches S1~S6; among them, C0 is used as a compensation capacitor, and C1~C6 are control capacitors. The circuit connection relationship is: the upper plates of C0~C6 are connected to the same charging line; one end of the charging line is connected to the pre-charge voltage V through SV. CM The other end is connected to the positive input of the comparison circuit; the lower plates of C1~C6 are connected to the reference voltage V through switches S1~S6 respectively. REF Or grounded; the lower plate of C1 is grounded through SW0.
[0063] Before each quantization, the upper plate of each capacitor is precharged to V through the charging line. CM In the quantization process, the switch Sv is disconnected, and there is no discharge path at the VP node. By changing the voltage of the lower plate of capacitors C1~C6, the VP node redistributes the charge, thereby changing the VP point voltage. The expression of the VP node voltage is:
[0064]
[0065] In the above formula, C 1 indicates that the lower board in the CDAC capacitor array is connected to the reference voltage V REF The sum of the partial capacitances, C 总 Represents the sum of the capacitance of the CDAC capacitor array.
[0066] The switches S1-S6 in this embodiment are used to adjust the lower plate of the capacitor and the reference voltage V REF Or the connection relationship between the gate device and the ground terminal VSS, in practical applications, can be made by Figure 2 Specifically, the switch is composed of two NOT gates and two transmission gates, and when the control signal CTRL is "0" and "1" respectively, a path can be formed between IN1 and OUT, or between IN2 and OUT.
[0067] like Figure 3 As shown, the comparison circuit in the SAR-ADC designed in this embodiment includes two parts, one of which is an analog-to-digital conversion part composed of an offset calibration circuit and a two-stage comparator. The other part is a state feedback loop for monitoring whether the digital-to-analog conversion part is in a working state. In the two-stage comparator, the input terminals INP1 and INN1 of the front-stage comparator are the input VP and VN of the entire comparison circuit; and the output terminals OUTP2 and PUTN2 of the rear-stage comparator are the outputs OUTP and OUTN of the entire comparison circuit.
[0068] The front stage of the two-stage comparator provided in this embodiment is a static comparator, and the rear stage is a dynamic comparator. The operational amplifier with a cross-coupling structure as a load has a high amplification factor, which amplifies the tiny input voltage difference to a range that the latch comparator can effectively identify, and then quickly amplifies the signal to digital logic "0" and digital logic "1" through the positive feedback structure inside the latch comparator. This two-stage comparator structure combines the advantages of the negative exponential response characteristics of the open-loop comparator and the positive exponential response characteristics of the latch comparator.
[0069] Specifically, in the analog-to-digital conversion part, the offset calibration circuit is composed of 6 switches SW1~SW6 and two capacitors C100 and C200. Its connection relationship with the electrode comparator is as follows: the reference voltage VP and the signal voltage VN are connected to the positive input and negative input of the comparison circuit through switches SW6 and SW5 respectively; the positive output and negative output of the pre-amplifier are connected to the positive input and negative output of the post-amplifier through capacitors C100 and C200 respectively; the positive input and negative input of the pre-amplifier and the post-amplifier are connected to Vcm through SW1~SW4 respectively. It should be noted that in the comparison circuit, the Vcm connected to the two capacitors of the offset calibration circuit is a common mode voltage. In this embodiment, it adopts the same external input voltage as the pre-charge voltage Vcm in the CDAC capacitor array. In other embodiments, the common mode voltage connected to the offset calibration circuit can also adopt other external input voltages different from the pre-charge voltage Vcm.
[0070] In the comparison circuit designed in this embodiment, the input terminals of the front-stage static comparator and the rear-stage dynamic comparator are respectively connected to the common mode voltage Vcm through four switches; the input signals VP and VN are connected to the input terminals of the comparators through two switches. During the operation of the two-stage comparator, the above six switches are orderly controlled by the coupling signal Comp Ctrl, and the offset voltage of the front-stage comparator can be stored on the coupling capacitors C100 and C200, thereby offsetting the offset voltage in the circuit to improve the reliability of the quantization result of the circuit.
[0071] Combination Figure 3 It can also be found that the state feedback loop in the comparison circuit provided in this embodiment is composed of three inverting gates INV1~INV3 and two AND gates AND1 and AND2. The circuit connection relationship is: the positive output terminal OUTP2 and the negative output terminal OUTN2 of the subsequent comparator are connected to the two input terminals of AND1 through INV1 and INV2 respectively. The output terminal of AND1 is connected to one of the input terminals of AND2 through INV3; the other input terminal of AND2 is connected to the EN_LOOP signal. The output of INV3 is the state signal VAILD, and the output of AND2 is the clock signal LATCH.
[0072] The state feedback loop in this embodiment is used to generate a signal VAILD that represents the working state of the comparison circuit, and output it to the clock configuration module. On the other hand, it is used to generate a clock signal LATCH that is output to the subsequent comparator. Combined with the circuit principle, it can be seen that the VAILD signal is generated based on the output of the subsequent comparator. Specifically, during the operation of the subsequent comparator, its positive output terminal OUTP2 and the negative output terminal OUTN2 will always output two opposite signals, and when the subsequent comparator is in an idle state, OUTP2 and OUTN2 will simultaneously become high levels. The state feedback loop in this embodiment can detect whether the level states of OUTP2 and OUTN2 are opposite, and accordingly generate a state signal VAILD that represents whether the comparison circuit is working. In addition, when the comparison circuit is in an idle state, once the EN_LOOP signal is generated in the circuit, the state feedback loop will generate a clock signal LATCH that is sent to the subsequent comparator to start the subsequent comparator.
[0073] In detail, in the comparison circuit, the pre-static comparator (PREAMP) uses an operational amplifier with a cross-coupled structure as a load, such as Figure 4 As shown, the pre-stage comparator is composed of three NMOS tubes N0~N2 and four PMOS tubes P0~P3, and the circuit connection relationship is as follows:
[0074] The sources of P0~P3 are connected to VDD; the gates of P0 and P2 and the drains of P0, P1 and N1 are connected to the inverting output terminal OUTN1 of the preceding comparator; the gates of P1 and P3 and the drains of P2, P3 and N2 are connected to the positive output terminal OUTP1 of the preceding comparator; the gate of N1 is connected to the positive output terminal INP1 of the preceding comparator; the gate of N2 is connected to the inverting output terminal INN1 of the preceding comparator; the sources of N1 and N2 are connected to the drain of N0; the gate of N0 is connected to the bias voltage Vbias; the source of N0 is grounded.
[0075] The pre-stage comparator of this embodiment is obtained by replacing the load with a cross-coupled load based on the traditional 5-tube operational amplifier. Such a design can provide a more stable common-mode voltage and a larger gain range, effectively making up for the problem of insufficient intrinsic gain of MOS tubes with the advancement of semiconductor process technology. The output end of the pre-stage comparator is connected using a transmission gate. After the comparison of the results is completed, the transmission gate is opened and the reset operation is completed quickly so that the next comparison can respond quickly. The gain expression of the cross-coupled structure as the load operational amplifier is:
[0076]
[0077] in, Indicates the transconductance of MOS tubes N1 and N2, Indicates the transconductance of MOS tubes P0 and P3; Indicates the transconductance of MOS tubes P1 and P2; A V is the gain of the operational amplifier.
[0078] According to the formula, the gain of the op amp can be achieved by adjusting the transconductance of the MOS tube, and the adjustable range of the gain is very wide, which is suitable for different circuit design requirements.
[0079] In detail, in this embodiment, the post-stage dynamic comparator (LATCH) adopts a dynamic latch comparator with pre-amplification. Figure 5 As shown, the post-stage comparator is composed of 6 PMOS tubes P4~P10 and 8 NMOS tubes N3~N11, and the circuit connection relationship is:
[0080] The sources of P4~P7 and the gates of N6 and N7 are connected to VDD; the drain of P4, the source of N6 and the gate of P8 are connected; the drain of P5, the source of N7 and the gate of P9 are connected; the gates of N6 and N7 are connected; the source of N6 is connected to the drain of N4; the source of N7 is connected to the drain of N5; the sources of N4 and N5 are connected to the drain of N3; the gate of N4 is connected to the positive input terminal INP2 of the subsequent comparator; the gate of N5 is connected to the negative input terminal I NN2; the sources of N3, N8~N11 are connected to VSS; the drain of P6 is connected to the source of P8; the drain of P7 is connected to the source of P9; the gates of P6 and N10 and the drains of P9, N9 and N11 are connected to the positive output terminal OUTP2 of the subsequent comparator; the gates of P7 and N9 and the drains of P8, N8 and N10 are connected to the inverting output terminal OUTN2 of the subsequent comparator; the gates of N3, N8 and N11 are connected to the clock signal LATCH.
[0081] The pre-amplification stage in the post-stage comparator of this embodiment is a dynamic operational amplifier, and the second stage is a double-tail current type dynamic latch comparator. This comparator adds a dynamic operational amplifier on the basis of the traditional latch comparator, which can improve the performance of the latch comparator. The dynamic comparator will have a clock feedthrough effect when working, that is, the LATCH signal affects the input signal through the parasitic capacitance in the circuit, thereby affecting the circuit performance. In order to effectively reduce the influence of the clock feedthrough effect on the comparison accuracy, this paper adds two NMOS tubes to the input pair of tubes in the input gain stage to form a common source and common gate structure with the original input tube, which enhances the stability of the comparator circuit when working and makes the comparison result more accurate.
[0082] In combination with the foregoing introduction, this embodiment manages the operating status of the CDAC capacitor array and the comparison circuit through the designed asynchronous successive approximation logic module, thereby continuously generating reference voltages VP of different sizes according to a preset accuracy level, and cyclically comparing them with the signal voltage VN of the input calculation result, and finally obtaining the quantization result of the signal voltage VN.
[0083] In this embodiment, the circuit diagram designed to implement the corresponding functions of the clock configuration module in the asynchronous successive approximation logic module is as follows: Figure 6 As shown. Specifically, the clock configuration module is composed of 6 D flip-flops D1~D6 cascaded in sequence. Each level of D flip-flop uses a flip-flop that only contains a reset terminal R but not a set terminal S. Among them, the D terminal of the first-level D flip-flop is connected to VDD, and the D terminal of the next-level D flip-flop is connected to the Q terminal of the previous-level D flip-flop. The CK terminal of each D flip-flop is connected to VAILD; the R terminal is connected to SOC; the Q terminal of each level of D flip-flop outputs asynchronous clocks CLK of different lengths. <1> ~CLK <6> .
[0084] In this embodiment, the circuit diagram designed to realize the corresponding functions of the asynchronous control module in the asynchronous successive approximation logic module is as follows: Figure 7 Specifically, the asynchronous control module is composed of 6 D flip-flops D7~D12 and 5 XNOR gates XNOR1~XNOR5. The two input terminals of the nth XNOR are connected to CLK <n>and CLK<n+1> For example, the two input terminals of XNOR1 are connected to CLK <1> and CLK <2> , the two input terminals of XNOR2 are connected to CLK <2> and CLK <3> , ..., and so on; the two input terminals of XNOR5 are connected to CLK <5> and CLK <6> The D terminals of D7~D12 are connected to the positive output terminal OUTP of the comparison circuit, and the CK terminals are connected to CLK <1> to CLK <6> The S end of D7 and the R end of D8-D12 are connected to SOC. The S end of D8-D12 is connected to SOC and connected to the output end of XNOR1-XNOR5 respectively. The output signal of the Q end of D7-D12 constitutes the switching control signal CDAC Ctrl, and is used to control the switching state of the switch S6-S1 respectively.
[0085] In this embodiment, the circuit diagram designed to realize the corresponding functions of the startup module in the asynchronous successive approximation logic module is as follows: Figure 8 As shown. Specifically, the startup module is composed of a D flip-flop D100, three inverters INV4~INV6, and two delay circuits Delay1 and Delay2. Among them, D100 adopts a D flip-flop with a set terminal S and a reset terminal R. The circuit connection relationship of the startup module is:
[0086] The D terminal of D100 is connected to VSS, the CK terminal is connected to the external reset signal R_STN, the S terminal is connected to the start signal START, the R terminal is connected to the termination signal CMPOK, and the Q terminal is connected to the input terminals of INV4, INV5 and Delay2. The output terminal of INV4 is connected to the input terminal of Delay1; the output terminal of INV5 is connected to the input terminal of INV6.
[0087] The output signal G of INV4 is used to control the switch states of SW5 and SW6. The output signal G_DEL of Delay1 is used to control the switch states of SW1 to SW4. The output signal Svcm of INV6 is used to control the switch state of switch SV. The output of Delay2 is used as the reset signal SOC.
[0088] In this embodiment, the circuit diagram designed to realize the corresponding functions of the termination module in the asynchronous successive approximation logic module is as follows: Fig. 9 Specifically, the termination module is composed of a four-to-one selector MUX, an invertor INV7 and an AND gate AND3. The circuit connection relationship is:
[0089] The four input terminals of MUX are connected to the asynchronous clock CLK corresponding to the 3-6 bit quantization level generated by the clock configuration module. <3> to CLK <6> The control terminal of MUX is connected to the precision level control signal Bit-Sel, and the output terminal of MUX is connected to the input terminal of INV7. The output terminal of INV7 is connected to one of the input terminals of AND3; and the other input terminal of AND3 is connected to the reset signal SOC.
[0090] The Bit-Sel signal includes two bits, which are recorded as SEL0 and SEL1. The output signal of MUX is used as the termination signal CMPOK; the output signal of AND3 is used as the EN_LOOP signal. Combining the circuit design, it can be found that the strategy for configuring the quantization accuracy level of the input signal by the single-ended input precision configurable SAR-ADC provided in this embodiment is as follows:
[0091] (1) When the SEL0 and SEL1 control signals are 00, MUX selects CLK <3> , the output accuracy of SAR ADC is 3bit.
[0092] (2) When the SEL0 and SEL1 control signals are 01, MUX selects CLK <4> , the output accuracy of SAR ADC is 4bit.
[0093] (3) When the SEL0 and SEL1 control signals are 10, MUX selects CLK <5> , the output accuracy of SAR ADC is 5bit.
[0094] (4) When the SEL0 and SEL1 control signals are 11, MUX selects CLK <6> , the output accuracy of SAR ADC is 6bit.
[0095] Finally, based on the above circuit design, the operation logic of the single-ended input precision configurable SAR-AD provided in this embodiment is as follows:
[0096] 1. Reset phase
[0097] In the reset phase, the SAR ADC is in an idle state. At this time, the upper plates of each capacitor in the CDAC capacitor array are connected to the voltage VCM, and the lower plates are connected to VSS. The offset calibration module in the comparison circuit works, and the external input is disconnected from the input of the previous comparator; the input of the previous comparator and the input of the next comparator are both connected to the voltage V CM The registers connected to the asynchronous successive approximation logic circuit are reset and cleared.
[0098] 2. Quantification Stage
[0099] When receiving the quantization task, a START signal is generated; at this time, the offset calibration module and the voltage V CM Disconnect. The external input signal voltage VN is connected to the input terminal of the comparison circuit, and the asynchronous successive approximation logic circuit controls the CDAC capacitor array to output the reference voltage VP for the first comparison. The preparation is completed, the comparison circuit receives the enable signal, and starts the first comparison operation.
[0100] After the first comparison is completed, the asynchronous successive approximation logic circuit controls the CDAC capacitor array to output the reference voltage for the second comparison according to the comparison result; at the same time, the voltage of the output terminal of the previous comparator is reset. After completing the above operations, the next comparison begins until the last comparison is completed.
[0101] After all comparisons are completed, the comparison results latched in the output register are output, and the SAR-ADC is restored to the idle state; specifically, the circuit is reset and waits for the next quantization task.
[0102] Example 2
[0103] Embodiment 1 provides a SAR-ADC circuit that can autonomously configure the quantization accuracy level of the quantization result as needed. On this basis, this embodiment further provides a CIM chip, which, in addition to the existing storage and computing array based on SRAM design, also integrates a single-ended input precision-configurable SAR-ADC as in Embodiment 1.
[0104] Since the SAR-ADC in the chip of this embodiment can freely configure the accuracy level of the quantization result as needed, the CIM chip does not need to be configured with different types of ADC circuits like traditional chips, nor does it need to be configured with peripheral circuits for managing various ADC circuits. Based on such improvements, the CIM chip provided by this embodiment can save on-chip area, improve the circuit's operational efficiency, and reduce the circuit's static power consumption.
[0105] In summary, compared with the ADC circuit in the traditional CIM chip, the SAR-ADC designed in the present invention has more powerful performance and can bring many advantages to various logic operation chips using the circuit.
[0106] 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 and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.< / n> < / n>
Claims
1. A single-ended input precision configurable SAR-ADC that supports quantizing the input signal voltage VN according to different precision levels. It is characterized in that It includes: The CDAC capacitor array includes a plurality of capacitors connected in parallel and is used to adjust the output reference voltage VP in a charge conservation manner by switching the voltage of the bottom plates of each capacitor; the bottom plate of each regulating capacitor in the CDAC capacitor array is connected to the reference voltage V via a controllable switch. REF or ground terminal VSS; the CDAC capacitor array includes 7 capacitors C0~C6, two switches SW0, SV, and 6 switches S1~S6; wherein C0 is used as a compensation capacitor, and C1~C6 are regulating capacitors; the circuit connection relationship is: the upper plates of C0~C6 are connected to the same charging line; one end of the charging line is connected to the pre-charge voltage V through SV CM The other end is connected to the positive input of the comparison circuit; the lower plates of C1~C6 are connected to the reference voltage V through switches S1~S6 respectively. REF Or grounded; the lower plate of C1 is grounded through SW0; A comparison circuit, which is used to generate a corresponding comparison result according to a signal voltage VN input by an external circuit and a reference voltage VP input by the CDAC capacitor array; the comparison circuit uses a two-stage comparator with an offset calibration circuit; wherein the front-stage comparator uses an operational amplifier with a cross-coupling structure as a load, and the rear-stage dynamic comparator uses a dynamic latch comparator with a large prevention; the offset calibration circuit is used to eliminate the offset voltage of the front-stage comparator during operation; and An asynchronous successive approximation logic circuit includes a start module, a termination module, a clock configuration module and an asynchronous control module; after receiving the input start signal START, the start module generates a switch control signal Switch Ctrl sent to the CDAC capacitor array, a coupling signal Comp Ctrl sent to the comparison circuit, and a reset signal SOC sent to the clock configuration module, the asynchronous control module and the termination module; wherein the Switch Ctrl signal is used to manage the on-off of the charging channel of the CDAC capacitor array and the ground channel of the compensation capacitor; the Comp Ctrl signal is used to adjust the coupling state of the offset calibration circuit and the comparator; the clock configuration module is used to obtain the working state of the comparison circuit and generate multiple asynchronous clock signals; the asynchronous control module is used to generate a switching control signal CDAC for switching the ground channel of each control capacitor in the CDAC capacitor array according to the multiple asynchronous clock signals and the comparison results output by the comparison circuit. Ctrl; the termination module is used to obtain a preset precision level control signal Bit-Sel, and select a corresponding asynchronous clock signal according to Bit_Sel, and then generate a termination signal CMPOK after the clock cycle ends; the CMPOK signal is sent to the startup module; the termination module is also used to generate an EN_LOOP signal for managing the internal clock of the subsequent comparator in the comparison circuit; The startup module is composed of a D flip-flop D100, three inverters INV4~INV6, and two delay circuits Delay1 and Delay2, wherein D100 adopts a D flip-flop with a set terminal S and a reset terminal R; the circuit connection relationship of the startup module is: the D terminal of D100 is connected to VSS, the CK terminal is connected to the external reset signal R_STN, the S terminal is connected to the start signal START, the R terminal is connected to the termination signal CMPOK, and the Q terminal is connected to the input terminals of INV4, INV5 and Delay2; the output terminal of INV4 is connected to the input terminal of Delay1; the output terminal of INV5 is connected to the input terminal of INV6; wherein, the output signal G of INV4 is used to control the switch state of SW5 and SW6; the output signal G_DEL of Delay1 is used to control the switch state of SW1~SW4; the output signal G and the output signal G_DEL together constitute the coupling signal Comp Ctrl; the output signal Svcm of INV6 is used to control the switch state of switch SV; the switch control signal Switch Ctrl includes the output signal Svcm; the output of Delay2 is used as the reset signal SOC; The termination module is composed of a four-to-one selector MUX, a NOT gate INV7 and an AND gate AND3; the circuit connection relationship is: the four input ends of MUX are respectively connected to the asynchronous clock CLK corresponding to the 3-6 bit quantization level generated by the clock configuration module <3> to CLK <6> , the control terminal of MUX is connected to the precision level control signal Bit-Sel, the output terminal of MUX is connected to the input terminal of INV7; the output terminal of INV7 is connected to one of the input terminals of AND3; the other input terminal of AND3 is connected to the reset signal SOC; wherein the Bit-Sel signal includes two bits, recorded as SEL0 and SEL1; the output signal of MUX is used as the termination signal CMPOK; the output signal of AND3 is used as the EN_LOOP signal; The clock configuration module is composed of 6 D flip-flops D1~D6 cascaded in sequence; the D end of the first-stage D flip-flop is connected to VDD, and the D end of the next-stage D flip-flop is connected to the Q end of the previous-stage D flip-flop; the CK end of each D flip-flop is connected to VAILD; the R end is connected to SOC; the Q end of each stage of D flip-flop outputs asynchronous clocks CLK of different lengths respectively <1> ~CLK <6> ; The asynchronous control module is composed of 6 D flip-flops D7-D12 and 5 XNOR gates XNOR1-XNOR5; wherein the two input ends of the nth XNOR are connected to CLK <n> and CLK<n+1> The D terminals of D7~D12 are connected to the positive output terminal OUTP of the comparison circuit, and the CK terminals are connected to CLK <1> to CLK <6> The S end of D7 and the R end of D8~D12 are connected to SOC; the S ends of D8~D12 are connected to SOC and are respectively connected to the output ends of XNOR1~XNOR5; the output signals of the Q ends of D7~D12 constitute the switching control signal CDAC Ctrl, and are respectively used to control the switching states of the switches S6~S1.< / n> 2. The single-ended input precision configurable SAR-ADC according to claim 1, Features: The offset calibration circuit is composed of 6 switches SW1~SW6 and two capacitors C100 and C200; the circuit connection relationship of the comparison circuit is as follows: VP and VN are connected to the positive input terminal and the negative input terminal of the comparison circuit through switches SW6 and SW5 respectively; the positive output terminal and the negative output terminal of the pre-stage amplifier are connected to the positive input terminal and the negative output terminal of the post-stage amplifier through capacitors C100 and C200 respectively; the positive input terminal and the negative input terminal of the pre-stage amplifier and the post-stage amplifier are connected to Vcm through SW1~SW4 respectively.
3. The single-ended input precision configurable SAR-ADC as claimed in claim 2, Features: The comparison circuit also includes a state feedback loop; the state feedback loop is used to generate a signal VAILD representing the working state of the comparison circuit and output it to the clock configuration module; on the other hand, it is used to generate a clock signal LATCH output to the subsequent comparator; The state feedback loop is composed of three NOT gates INV1~INV3 and two AND gates AND1 and AND2; the circuit connection relationship is: the positive output terminal OUTP2 and the negative output terminal OUTN2 of the post-stage comparator are respectively connected to the two input terminals of AND1 through INV1 and INV2, and the output terminal of AND1 is connected to one of the input terminals of AND2 through INV3; the other input terminal of AND2 is connected to the EN_LOOP signal; the output of INV3 is the state signal VAILD, and the output of AND2 is the clock signal LATCH.
4. The single-ended input precision configurable SAR-ADC according to claim 1, Features: The strategy for configuring the quantization accuracy level of the input signal is as follows: (1) When the SEL0 and SEL1 control signals are 00, MUX selects CLK <3> , the output accuracy of SAR ADC is 3bit; (2) When the SEL0 and SEL1 control signals are 01, MUX selects CLK <4> , the output accuracy of SAR ADC is 4bit; (3) When the SEL0 and SEL1 control signals are 10, MUX selects CLK <5> , the output accuracy of SAR ADC is 5bit; (4) When the SEL0 and SEL1 control signals are 11, MUX selects CLK <6> , the output accuracy of SAR ADC is 6bit.
5. The single-ended input precision configurable SAR-ADC as claimed in claim 4, It is characterized in that Its operation logic is as follows:
1. Reset phase In the reset phase, the SAR ADC is in an idle state. At this time, the upper plates of each capacitor of the CDAC capacitor array are connected to the voltage VCM, and the lower plates are connected to VSS; the offset calibration module in the comparison circuit works, and the external input is disconnected from the input of the previous comparator; the input of the previous comparator and the input of the next comparator are both connected to the voltage V CM Connected; the register connected to the asynchronous successive approximation logic circuit is reset and cleared; 2. Quantification Stage When receiving the quantization task, a START signal is generated. At this time, the offset calibration module and the voltage V CM The external input signal voltage VN is connected to the input terminal of the comparison circuit, and the asynchronous successive approximation logic circuit controls the CDAC capacitor array to output the reference voltage VP for the first comparison; After the preparation is completed, the comparison circuit receives the enable signal and starts the first comparison operation; After the first comparison is completed, the asynchronous successive approximation logic circuit controls the CDAC capacitor array to output the reference voltage for the second comparison according to the comparison result, and resets the voltage of the output terminal of the previous comparator at the same time. After the above operation is completed, the next comparison starts until the last comparison is completed; After all comparisons are completed, the comparison results latched in the output register are output, and the SAR-ADC is restored to the idle state, and the circuit is reset to wait for the next quantization task.
6. A CIM chip, Features: The device is integrated with a SAR-ADC with configurable precision for single-ended input as claimed in any one of claims 1 to 5.
Citation Information
Patent Citations
Configurable asynchronous successive-approximation type analog-digital converter wide in working voltage range
CN104242940A
One-step 1.5-bit successive approximation type analog-to-digital converter
CN110518911A
Low-power-consumption successive approximation type analog-to-digital converter
CN111865320A
High-speed low-precision high-energy-efficiency successive approximation analog-to-digital converter
CN116566394A
Digitally adjustable quantization circuit
US20100207797A1
