Single-ended comparator, multi-bit SAR-ADC circuit and chip thereof

By designing a new single-ended comparator and multi-bit SAR-ADC circuit composed of capacitors and two-stage inverters, the problem of high power consumption of comparator in traditional in-memory computing circuits is solved, and lower power consumption and high efficiency quantization are achieved. Meet the CIM chip's demand for 4bit quantization functions.

CN119070816APending Publication Date: 2024-12-03ANHUI UNIV
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411112107.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

The comparator power consumption in traditional in-memory computing circuits is high, resulting in an increase in circuit power consumption, which has become a challenge that technicians need to overcome.

Method used

A new single-ended comparator composed of capacitors and two-stage inverters was designed, and a multi-bit SAR-ADC circuit was designed based on this. Through the coordination of capacitors and inverters, multi-bit quantization of the calculated voltage was realized. Reduces the power consumption of the circuit during the quantization phase.

Benefits of technology

Compared with traditional circuits, the current flowing through GND during comparison is smaller and the power consumption is lower, which can effectively reduce the operating power consumption of the related circuits. The ENOB of the 4-bit SAR-ADC circuit reaches 3.96dB, which meets the CIM chip pair. The requirement of 4bit quantization function has good DNL and INL characteristics.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119070816A_ABST
    Figure CN119070816A_ABST
Patent Text Reader

Abstract

The invention belongs to the field of integrated circuits, and particularly relates to a single-ended comparator, a multi-bit SAR-ADC circuit and a chip thereof. And the single-ended comparator comprises three PMOS (P-channel Metal Oxide Semiconductor) tubes P0-P2, three NMOS (N-channel Metal Oxide Semiconductor) tubes N0-N2, a capacitor C and three transmission gates TG1, TG2, TG3 and TG3. In the circuit, P1 and N1 form a first phase inverter, and P2 and N2 form a second phase inverter; the P0 is used as a transmission tube between the first inverter and the power supply VDD; and the N0 is used as a transmission tube between the first inverter and the ground end GND. And the two phase inverters are cascaded. The input end of the first phase inverter is connected to the upper pole plate of the capacitor, and the output end OUT of the second phase inverter is used for outputting a comparison result. Wherein one transmission gate is used for setting the initial voltage of the upper electrode plate of the capacitor to the threshold voltage, and the other two transmission gates are used for switching the lower electrode plate of the capacitor between an input signal Vin and a reference voltage Vref. Compared with a traditional comparator, the comparator and the ADC circuit are lower in static power consumption, and the total power consumption of the storage circuit can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of integrated circuits, and in particular relates to a single-ended comparator, a multi-bit SAR-ADC circuit, and a CIM chip using the single-ended comparator or the multi-bit SAR-ADC circuit. Background Art

[0002] As one of the effective strategies to break through the von Neumann architecture, computing in memory (CIM) has attracted widespread attention. CIM combines memory and computing modules into one, greatly reducing the data movement, thereby saving time and energy consumption. With the advent of the era of artificial intelligence, big data, and the Internet of Things and the popularity of wearable devices, CIM circuits are becoming more and more popular.

[0003] At present, as the integration of chips continues to increase, the power consumption of the computing process has gradually become an important factor restricting the development of modules. On this basis, optimizing the structure of related modules in the in-memory computing circuit to reduce the total power consumption of the chip has become the focus of work for those skilled in the art.

[0004] The power consumption of the in-memory computing circuit is mainly generated by the calculation process of the computing module and the quantization process of the quantization circuit. Traditional quantization circuits generally use latched comparators to realize the comparison between the calculation voltage and the reference voltage. The dynamic power consumption and static power consumption of this type of comparator are relatively large. Therefore, how to design a comparator with lower power consumption will be one of the research directions for technicians to overcome the power consumption problem of the in-memory computing circuit. Summary of the invention

[0005] In order to solve the problem of high power consumption of comparators used in existing in-memory computing circuits, the present invention provides a single-ended comparator, a multi-bit SAR-ADC circuit and a chip thereof.

[0006] The technical solution provided by the present invention is:

[0007] A single-ended comparator supports single-bit quantization of an input signal voltage Vin. The single-ended comparator includes three PMOS tubes P0-P2, three NMOS tubes N0-N2, a capacitor C, and three transmission gates TG1-TG3. The circuit connection relationship is as follows;

[0008] The input signal Vin and the reference voltage Vref are connected to the lower plate of the capacitor C through TG1 and TG2 respectively; the upper plate of the capacitor C is connected to the starting voltage Vcm through TG3.

[0009] The sources of P0 and P2 are connected to the power supply VDD; the drain of P0 is connected to the source of P1; the gates of P1 and N1 are connected to the upper plate of capacitor C; the drains of P1 and N1 are electrically connected to the gates of P2 and N2; the source of N1 is connected to the drain of N0; the sources of N0 and N2 are grounded; the gate of N0 is connected to the enable signal EN; the gate of P0 is connected to the inverted enable signal ENB; the drains of P2 and N2 are connected and serve as the output terminal OUT.

[0010] In the single-ended comparator, P1 and N1 form a first inverter, and P2 and N2 form a second inverter; the startup voltage Vcm is set as the threshold voltage of the first inverter. Since the first inverter in the scheme of the present invention is a CMOS inverter composed of P1 and N1, the threshold voltage of the first inverter is VDD / 2.

[0011] As a further improvement of the present invention, the operation strategy of the single-ended comparator to compare the input signal Vin with the reference voltage Vref includes a setting phase and a comparison phase, and the process is as follows:

[0012] (1) Set-up phase

[0013] Turn on TG2 and TG3, turn off TG1; set ENB to high level and EN to low level.

[0014] (2) Comparison stage

[0015] Turn on TG1, turn off TG2 and TG3; set ENB to low level, and set EN to high level; at this time, the level state of the output terminal OUT is the quantization result of the input signal Vin.

[0016] As a further improvement of the present invention, in the setting stage, the lower plate of the capacitor of the single-ended comparator is connected to Vref, and the upper plate is connected to VDD / 2; and since P0 and N0 are turned off, the first inverter stops working.

[0017] In the comparison stage, the lower plate of the capacitor of the single-ended comparator is connected to Vin, and the upper plate is connected to VDD / 2. Since P0 and N0 are turned on, the first inverter works; at this time, the level state of the output terminal OUT of the second inverter depends on the change of the plate voltage of the capacitor C.

[0018] As a further improvement of the present invention, in the comparison stage, the output logic of the single-ended comparator is as follows:

[0019] (a) When Vin>Vref, the lower plate voltage Vx rises, and due to the charge conservation effect of capacitor C, the upper plate voltage Vy also rises and exceeds the critical voltage of the first inverter; at this time, the input terminal of the first inverter is at a high level, and after passing through the first inverter and the second inverter, the output terminal OUT of the second inverter is at a high level, that is, the output comparison result is "1".

[0020] (b) When Vin<Vref, the lower plate voltage Vx decreases, and due to the charge conservation effect of capacitor C, the upper plate voltage Vy also decreases, so it cannot exceed the threshold voltage of the first inverter; at this time, the input end of the first inverter is at a low level, and after passing through the first inverter and the second inverter, the output end OUT of the second inverter is at a low level, that is, the output comparison result is "0".

[0021] As a further improvement of the present invention, the single-ended comparator also includes a PMOS tube P3 for controlling the level state of the output terminal OUT in the set stage; wherein the gate of P3 is connected to the enable signal EN, the source of P3 is connected to the power supply VDD, and the drain of P3 is connected to the gate of P2.

[0022] In the setting stage, EN is set to a low level; P3 is in a conducting state. At this time, the input terminal of the second inverter is at a high level, and the output terminal OUT of the second inverter is at a low level.

[0023] The present invention also includes a multi-bit SAR-ADC circuit, which includes: a CADC sampling circuit, a comparison circuit, and a SAR logic module.

[0024] The CADC sampling circuit is used to generate a voltage signal representing the comparison result by successive approximation. The CADC sampling circuit includes 6 capacitors C1 to C6, 5 two-to-one selectors SW1 to SW5, and 1 transmission gate TG0. The ratio of the capacitance values ​​of C1 to C6 is 1:1:2:4:8:16; the upper plates of C1 to C6 are connected to the signal line Vcomp; the lower plate of C1 is grounded, and the lower plates of C2 to C6 are connected to the output ends of SW1 to SW5 in turn. One of the input ends of SW1 to SW4 is grounded, and the other input end is connected to the reference voltage Vref; one of the input ends of SW5 is connected to the input signal Vin, and the other input end is grounded. One end of TG0 is connected to the signal line Vcomp, and the other end is connected to the start voltage Vcm. The selection direction of SW1 to SW4 is controlled by digital signals D0, D1, D2, and D3 respectively, and the selection direction of SW5 and the switch state of TG0 are controlled by a sampling signal Clk-Sample generated by a clock control module.

[0025] The comparison circuit is composed of three PMOS tubes P0~P2 and three NMOS tubes N0~N2. Among them, P1 and N1 constitute the first inverter, P2 and N2 constitute the second inverter; the two inverters are cascaded. The input end of the first inverter is connected to the signal line Vcomp in the CADC sampling circuit; the output end OUT of the second inverter is used to output the comparison result. P0 serves as a transmission tube between the first inverter and the power supply VDD; N0 serves as a transmission tube between the first inverter and the ground terminal GND. The gate of N0 is connected to the clock signal CLK, and the gate of P0 is connected to the inverted clock signal CLKB; CLK and CLKB are generated by the clock control module.

[0026] The SAR logic module is used to obtain the comparison result of the comparison circuit output terminal OUT, and generate digital signals D0-D3 for controlling the selection direction of SW1-SW4 respectively according to the comparison result; thereby obtaining the quantization result of the input signal Vin by successive approximation.

[0027] As a further improvement of the present invention, when the digital D0-D3 and the sampling signal Clk-Sample are at a low level, the input terminals of SW1-SW5 are grounded and TG0 is disconnected. When the digital D0-D3 and the sampling signal Clk-Sample are at a high level, SW1-SW4 are connected to Vref, SW5 is connected to Vin, and TG0 is turned on.

[0028] As a further improvement of the present invention, a multi-bit SAR-ADC circuit is used to quantize the input signal Vin according to a maximum 4-bit accuracy level. The 4-bit quantization operation includes a sampling phase and a comparison phase, and the process is as follows:

[0029] 1. Sampling stage:

[0030] S1: Set the sampling signal Clk-Sample to a high level. At this time, the lower board of C6 is connected to Vin through SW5, and Vcm is connected to the signal line Vcomp, Vcm=VDD / 2; therefore, the voltages of the upper and lower plates of capacitor C6 are VDD / 2 and Vin respectively.

[0031] 2. Comparison stage:

[0032] S2: Set the sampling signal Clk-Sample to a low level. At this time, SW5 is grounded, and Vcm is disconnected from the signal line Vcomp.

[0033] S3: The SAR logic module generates a four-bit digital signal "D3D2D1D0" with an initial value of "1000", thereby switching the selection direction of SW1 to SW4 in the CADC sampling circuit; at the same time, the SAR logic module collects the level state of the output terminal OUT of the comparison circuit;

[0034] S4: According to the comparison result of the output terminal OUT, the four-bit digital signal "D3D2D1D0" is adjusted as follows:

[0035] (1) If OUT=1, the bit in the four-bit digital signal "D3D2D1D0" that was set to a high level in the previous round is set to a low level; and the next bit is set to a high level.

[0036] (2) If OUT=0, the next bit of the lowest bit in the four-bit digital signal "D3D2D1D0" that was set to a high level in the previous round is also set to a high level;

[0037] S5: Repeat the strategy of step S4 for another 4 comparisons, and generate the final quantitative data based on the result of the last comparison.

[0038] As a further improvement of the present invention, the number N of capacitors and two-to-one gates of the CADC sampling circuit in the multi-bit SAR-ADC circuit is greater than 6; at this time, the multi-bit SAR-ADC circuit is used to quantize the input signal Vin according to the highest (N-2) bit accuracy level.

[0039] In this larger-scale CADC sampling circuit, the ratio of the capacitance values ​​of capacitors C1 to CN is: 1:1:2:4:8:…:2 N-2 Among them, the lower plate of the capacitor with the largest capacitance value is connected to the input signal Vin or grounded through a two-to-one selector, and the lower plate of one of the capacitors with the smallest capacitance value is directly grounded. The remaining capacitors are connected to the reference voltage Vref or grounded through a two-to-one selector.

[0040] The present invention also includes a CIM chip, which integrates the above-mentioned single-ended comparator or multi-bit SAR-ADC circuit; and uses the single-ended comparator or multi-bit SAR-ADC circuit to quantify the calculation result of the calculation module in the CIM chip.

[0041] The technical solution provided by the present invention has the following beneficial effects:

[0042] The present invention designs a novel single-ended comparator composed of a capacitor and a two-stage inverter, and designs a SAR-ADC circuit based on the comparator that can realize multi-bit quantization of the calculated voltage. Compared with the traditional circuit, the new circuit designed by the present invention has a smaller current flowing through GND during comparison, so the power consumption of the circuit is relatively smaller. After applying it to other storage and calculation circuits or operation modules, the operating power consumption of the relevant circuits in the quantization stage can be reduced, thereby alleviating the power consumption dilemma of the relevant circuits.

[0043] In addition to having lower operating power consumption, the ENOB of the 4-bit SAR-ADC circuit designed by the present invention can reach 3.96 dB, thus being able to meet the requirements of the CIM chip for a 4-bit quantization function. The circuit also has good DNL and INL characteristics and is more practical. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 This is a circuit diagram of a single-ended comparator provided in Embodiment 1 of the present invention.

[0045] Figure 2 This is a working timing diagram of the single-ended comparator provided in Example 1 of the present invention.

[0046] Figure 3 In Example 1 of the present invention, Figure 1 The circuit diagram of the improved single-ended comparator designed based on the circuit can control the output of the circuit in the set stage.

[0047] Figure 4 This is a circuit diagram of a multi-bit SAR-ADC circuit provided in Example 2 of the present invention.

[0048] Figure 5 for Figure 4 Working timing diagram of the multi-bit SAR-ADC circuit in.

[0049] Figure 6 for Figure 4 DNL curve of the multi-bit SAR-ADC circuit in.

[0050] Figure 7 for Figure 4 INL curve of the multi-bit SAR-ADC circuit in.

[0051] Figure 8 For evaluation Figure 4 Spectrum plot of the dynamic performance of the multi-bit SAR-ADC circuit in.

[0052] Fig. 9 A comparison chart of static power consumption of the single-ended comparator and SAR-ADC circuit designed for the present invention and the existing traditional circuit. 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 comparator that supports single-bit quantization of an input signal voltage Vin. The single-ended comparator includes three PMOS transistors P0-P2, three NMOS transistors N0-N2, a capacitor C, and three transmission gates TG1-TG3. Figure 1 As shown, the connection relationship of the circuit is as follows;

[0056] The input signal Vin and the reference voltage Vref are connected to the lower plate of the capacitor C through TG1 and TG2 respectively; the upper plate of the capacitor C is connected to the starting voltage Vcm through TG3.

[0057] The sources of P0 and P2 are connected to the power supply VDD; the drain of P0 is connected to the source of P1; the gates of P1 and N1 are connected to the upper plate of capacitor C; the drains of P1 and N1 are electrically connected to the gates of P2 and N2; the source of N1 is connected to the drain of N0; the sources of N0 and N2 are grounded; the gate of N0 is connected to the enable signal EN; the gate of P0 is connected to the inverted enable signal ENB; the drains of P2 and N2 are connected and serve as the output terminal OUT.

[0058] In the single-ended comparator, P1 and N1 form a first inverter, and P2 and N2 form a second inverter; the startup voltage Vcm is set as the threshold voltage of the first inverter. Since the first inverter in the scheme of the present invention is a CMOS inverter composed of P1 and N1, the threshold voltage of the first inverter is VDD / 2.

[0059] The single-ended comparator provided in this embodiment is composed of a capacitor part and a two-stage inverter part. The circuit design connects one side plate of the capacitor to the input end of the two-stage inverter, and sets the initial voltage of the side to the threshold voltage of the inverter; the other side plate of the capacitor switches between the reference voltage Vref and the input signal Vin. In this circuit design, when the input signal Vin is higher than the reference voltage Vref, the starting voltage Vcm of the input end of the two-stage comparator will be raised. At this time, Vcm is higher than the threshold voltage of the inverter, the input end of the two-stage inverter is at a high level, and the output end is also at a high level, corresponding to the comparison result "1". When the input signal Vin is lower than the reference voltage Vref, the starting voltage Vcm of the input end of the two-stage comparator will be lowered. At this time, Vcm is lower than the threshold voltage of the inverter, the input end of the two-stage inverter is at a low level, and the output end is also at a low level, corresponding to the comparison result "0".

[0060] It can be seen that, compared with the traditional latch comparator, when the new single-ended comparator designed in this embodiment performs comparison, the current flowing through GND is smaller, so the dynamic power consumption of the circuit is much smaller.

[0061] In detail, Figure 1In the circuit, the operation strategy of the single-ended comparator to compare the input signal Vin and the reference voltage Vref includes a setting phase and a comparison phase, such as Figure 2 As shown, the process is as follows:

[0062] (1) Set-up phase

[0063] Turn on TG2 and TG3, turn off TG1; set ENB to high level and EN to low level.

[0064] At this time, the lower plate of the capacitor of the single-ended comparator is connected to Vref, and the upper plate is connected to VDD / 2. And because both P0 and N0 are in the off state, the first inverter stops working.

[0065] (2) Comparison stage

[0066] Turn on TG1, turn off TG2 and TG3; set ENB to low level, and set EN to high level. At this time, the lower plate of the capacitor of the single-ended comparator is connected to Vin, and the upper plate is connected to VDD / 2. And because P0 and N0 are both in the on state, the first inverter starts to work.

[0067] At this time, the level state of the output terminal OUT of the second inverter depends on the change of the plate voltage of the capacitor C. For example, when there is a difference between the voltage of the input signal Vin and the reference voltage Vref, the voltage of the two plates of the capacitor will change, and then Vcm will present a state of exceeding the threshold voltage or being lower than the threshold voltage, and finally the second inverter will output a digital value of "1" or "0". That is, the level state of the output terminal OUT is the quantization result of the input signal Vin.

[0068] Specifically, in the comparison stage, the logic of the single-ended comparator to generate different comparison result outputs is as follows:

[0069] (a) When Vin>Vref, the lower plate voltage Vx rises, and due to the charge conservation effect of capacitor C, the upper plate voltage Vy also rises and exceeds the critical voltage of the first inverter; at this time, the input terminal of the first inverter is at a high level, and after passing through the first inverter and the second inverter, the output terminal OUT of the second inverter is at a high level, that is, the output comparison result is "1".

[0070] (b) When Vin<Vref, the lower plate voltage Vx decreases, and due to the charge conservation effect of capacitor C, the upper plate voltage Vy also decreases, so it cannot exceed the threshold voltage of the first inverter; at this time, the input end of the first inverter is at a low level, and after passing through the first inverter and the second inverter, the output end OUT of the second inverter is at a low level, that is, the output comparison result is "0".

[0071] exist Figure 1Based on the circuit of FIG. 1 , this embodiment further provides an improved single-ended comparator. The circuit diagram of the single-ended comparator is shown in FIG. Figure 3 As shown in the figure, it can be seen that Figure 1 In comparison, the improved single-ended comparator also includes a PMOS tube P3 for controlling the level state of the output terminal OUT in the set stage; wherein the gate of P3 is connected to the enable signal EN, the source of P3 is connected to the power supply VDD, and the drain of P3 is connected to the gate of P2.

[0072] for Figure 1 In the circuit diagram, during the set phase, the first inverter stops working, so the output of the second inverter is actually in an uncertain state. Figure 3 After adding a PMOS tube P3 to the circuit shown, in the setting stage, EN is set to a low level; P3 is in a conducting state, at this time, the input end of the second inverter is at a high level, and the output end OUT of the second inverter is at a low level.

[0073] Right now: Figure 3 The improved single-ended comparator shown can allow the circuit to maintain a fixed low-level output during the set stage, so as to overcome the defect that the circuit diagram is in an uncertain state during the set stage.

[0074] Example 2

[0075] The solution of Example 1 provides a single-ended comparator designed by a capacitor and a two-stage inverter that can achieve single-bit output. Compared with the existing single-ended comparator, this circuit has significant advantages in power consumption. On this basis, this embodiment further provides a multi-bit SAR-ADC circuit based on the same circuit design principle. The multi-bit SAR-ADC can quantize the input signal Vin representing the calculation result according to the specified accuracy level.

[0076] Specifically, Figure 4 As shown, the multi-bit SAR-ADC circuit includes: a CADC sampling circuit, a comparison circuit, and a SAR logic module.

[0077] The CADC sampling circuit is used to generate a voltage signal representing the comparison result by successive approximation. The CADC sampling circuit includes 6 capacitors C1 to C6, 5 two-to-one selectors SW1 to SW5, and 1 transmission gate TG0. The ratio of the capacitance values ​​of C1 to C6 is 1:1:2:4:8:16; the upper plates of C1 to C6 are connected to the signal line Vcomp; the lower plate of C1 is grounded, and the lower plates of C2 to C6 are connected to the output ends of SW1 to SW5 in turn. One of the input ends of SW1 to SW4 is grounded, and the other input end is connected to the reference voltage Vref; one of the input ends of SW5 is connected to the input signal Vin, and the other input end is grounded. One end of TG0 is connected to the signal line Vcomp, and the other end is connected to the start voltage Vcm. The selection direction of SW1 to SW4 is controlled by digital signals D0, D1, D2, and D3 respectively, and the selection direction of SW5 and the switch state of TG0 are controlled by a sampling signal Clk-Sample generated by a clock control module.

[0078] The comparison circuit is composed of three PMOS tubes P0~P2 and three NMOS tubes N0~N2. Among them, P1 and N1 constitute the first inverter, P2 and N2 constitute the second inverter; the two inverters are cascaded. The input end of the first inverter is connected to the signal line Vcomp in the CADC sampling circuit; the output end OUT of the second inverter is used to output the comparison result. P0 serves as a transmission tube between the first inverter and the power supply VDD; N0 serves as a transmission tube between the first inverter and the ground terminal GND. The gate of N0 is connected to the clock signal CLK, and the gate of P0 is connected to the inverted clock signal CLKB; CLK and CLKB are generated by the clock control module.

[0079] The SAR logic module is used to obtain the comparison result of the comparison circuit output terminal OUT, and generate digital signals D0-D3 for controlling the selection direction of SW1-SW4 respectively according to the comparison result; thereby obtaining the quantization result of the input signal Vin by successive approximation. Among them, the SAR logic module can use an existing circuit module with the same function, and this embodiment does not limit the hardware implementation method of the SAR logic module.

[0080] In the CADC sampling circuit of the multi-bit SAR-ADC circuit provided in this embodiment, the control logic of the gating direction of each two-to-one gate and the switch state of the transmission gate TG0 is as follows:

[0081] When the digital D0~D3 and the sampling signal Clk-Sample are at a low level, the input terminals of SW1~SW5 are grounded and TG0 is disconnected. When the digital D0~D3 and the sampling signal Clk-Sample are at a high level, SW1~SW4 are connected to Vref, SW5 is connected to Vin, and TG0 is turned on.

[0082] exist Figure 3 In the circuit design, the function of the clock control module (Time Ctrl) is to generate the corresponding sampling signal Clk-Sample, clock signal CLK and inverted clock signal CLKB in the quantization process. The clock control module can be implemented by using existing modules in the circuit. Therefore, the clock control module is an external module of the multi-bit SAR-ADC circuit provided in this embodiment.

[0083] Of course, in other embodiments, technicians can also directly build a clock control module into the multi-bit SAR-ADC circuit. In this new solution, the multi-bit SAR-ADC circuit includes four parts: a CADC sampling circuit, a comparison circuit, a SAR logic module and a clock control module.

[0084] In this embodiment, using Figure 3 The multi-bit SAR-ADC circuit shown in the figure can quantize the input signal Vin according to the highest 4-bit accuracy level. The 4-bit quantization operation includes a sampling phase and a comparison phase. Figure 5 As shown, the process is as follows:

[0085] 1. Sampling stage:

[0086] S1: Set the sampling signal Clk-Sample to a high level. At this time, the lower board of C6 is connected to Vin through SW5, and Vcm is connected to the signal line Vcomp, Vcm=VDD / 2; therefore, the voltages of the upper and lower plates of capacitor C6 are VDD / 2 and Vin respectively.

[0087] 2. Comparison stage:

[0088] S2: Set the sampling signal Clk-Sample to a low level. At this time, SW5 is grounded, and Vcm is disconnected from the signal line Vcomp.

[0089] S3: The SAR logic module generates a four-bit digital signal "D3D2D1D0" with an initial value of "1000", thereby switching the selection direction of SW1 to SW4 in the CADC sampling circuit; at the same time, the SAR logic module collects the level state of the output terminal OUT of the comparison circuit;

[0090] S4: According to the comparison result of the output terminal OUT, the four-bit digital signal "D3D2D1D0" is adjusted as follows:

[0091] (1) If OUT=1, the bit in the four-bit digital signal "D3D2D1D0" that was set to a high level in the previous round is set to a low level; and the next bit is set to a high level.

[0092] (2) If OUT=0, the next bit of the lowest bit in the four-bit digital signal "D3D2D1D0" that was set to a high level in the previous round is also set to a high level;

[0093] S5: Repeat the strategy of step S4 for another 4 comparisons, and generate the final quantitative data based on the result of the last comparison.

[0094] For example, in a certain quantization task, after the sampling phase, the comparison phase begins. At this time, CLK-Sample is low, SW5 is grounded, and TG0 is disconnected. Before the first comparison, Vcomp = Vcm-Vin / 2, the comparison result OUT is low, and the SAR logic output D3-D0 is 1000. Before the second comparison, Vcomp = Vcm-Vin / 2+Vref / 2. If the comparison result is low, the SAR logic output D3-D0 is 1100. If the comparison result is high, the SAR logic output D3-D0 is 0100.

[0095] After the SAR logic output D3-D0 is 0100, before comparison, Vcomp=Vcm-Vin / 2+Vref / 4. If the comparison result is a low level, the SAR logic output D3-D0 is 0110. If the comparison result is a high level, the SAR logic output D3-D0 is 0010.

[0096] After the SAR logic output D3-D0 is 0010, before comparison, Vcomp=Vcm-Vin / 2+Vref / 8, if the comparison result is a low level, the SAR logic output D3-D0 is 0011, if the comparison result is a high level, the SAR logic output D3-D0 is 0001.

[0097] After the SAR logic output D3-D0 is 0001, before comparison, Vcomp=Vcm-Vin / 2+Vref / 16, if the comparison result is a low level, the SAR logic output D3-D0 is 0001; if the comparison result is a high level, the SAR logic output D3-D0 is 0000.

[0098] Figure 4 The multi-bit SAR-ADC circuit provided in this embodiment is introduced by taking 4-bit quantization accuracy as an example. In other embodiments, technicians can also adjust the multi-bit SAR-ADC to adapt to quantization requirements of other accuracy levels. For example, in other embodiments, the number N of the capacitor and the two-to-one gate of the CADC sampling circuit in the multi-bit SAR-ADC circuit is greater than 6; in this case, the multi-bit SAR-ADC circuit is used to implement quantization of the input signal Vin according to the highest (N-2) bit accuracy level.

[0099] In this larger-scale CADC sampling circuit, the ratio of the capacitance values ​​of capacitors C1 to CN is: 1:1:2:4:8:…:2 N-2 Among them, the lower plate of the capacitor with the largest capacitance value is connected to the input signal Vin or grounded through a two-choice selector, and the lower plate of one of the capacitors with the smallest capacitance value is directly grounded. The remaining capacitors are connected to the reference voltage Vref or grounded through a two-choice selector.

[0100] The working logic of the upgraded multi-bit SAR-ADC circuit is Figure 4 The circuits shown are the same. It should be noted that in actual circuit products, the quantization accuracy level of the circuit cannot be increased indefinitely, and the quantization accuracy level of the circuit will actually be affected by other circuit modules such as the comparison circuit. Figure 4 The 4-bit quantization circuit shown is actually the best accuracy level that can ensure reliability and quantization accuracy.

[0101] Example 3

[0102] This embodiment 1 provides a CIM chip, which includes a computing module based on an SRAM array and a peripheral circuit that cooperates with the SRAM array to implement computing operations. In particular, the CIM chip in this embodiment integrates a single-ended comparator as in embodiment 1, or a multi-bit SAR-ADC circuit as in embodiment 2. The single-ended comparator or the multi-bit SAR-ADC circuit quantizes the calculation result of the computing module in the CIM chip according to a specified accuracy level.

[0103] Performance Testing

[0104] In order to verify the performance of the single-ended comparator provided in Example 1 of the present invention and the 4-bit SAR-ADC circuit provided in Example 2, the technicians simulated and tested the relevant circuits. The power consumption of the two circuits was compared with the existing latch comparator and the traditional ADC circuit based on the latch comparator. The experimental contents and experimental results are as follows:

[0105] 1. Static performance

[0106] This experiment tests the static performance of the 4-bit SAR-ADC circuit designed by the present invention, including the differential nonlinearity (DNL) and integral nonlinearity (INL) of the circuit, and plots the following graphs based on the test data: Figure 6 and Figure 7 The DNL curve and INL curve are shown.

[0107] Combined with the data in the figure, it can be seen that the DNL of the 4-bit SAR-ADC designed by the present invention is -0.08LSB / +0.24LSB, and the INL is -0.17LSB / +0.25LSB. The differential nonlinearity (DNL) error value of the circuit is <±1LSB, which means that when the input voltage sweeps across the input range, all output code combinations will appear at the output end of the converter, and there will be no code loss. Therefore, the 4-bit SAR-ADC circuit designed by the present invention has good static performance.

[0108] 2. Dynamic performance

[0109] This experiment tests the dynamic performance of the 4-bit SAR-ADC circuit designed by the present invention, including the FFT spectrum and effective number of bits (ENOB) of the circuit, and plots the following data based on the test data: Figure 8 The spectrum diagram is shown.

[0110] Combined with the data in the figure, it can be seen that the input signal voltage of the 4-bit SAR-ADC designed by the present invention is 900mV, the amplitude is 900mV, the frequency is 683KHz, and the sampling frequency is 50MHz. From the spectrum analysis results, it can be seen that the effective number of bits ENOB of the SAR ADC is 3.94bit, the SNDR is 25.47dB, and the SFDR is 35.49dB. Therefore, when it is used as a quantization circuit in a storage circuit, it can meet the design requirements.

[0111] 3. Power consumption comparison

[0112] In this experiment, the single-ended comparator and 4-bit SAR-ADC circuit designed by the present invention are used as the experimental group, and the traditional latch comparator and the traditional 4-bit SAR-ADC are used as the control group. Under the condition of 900mV supply voltage, the dynamic power consumption of each circuit is tested. The following figure is plotted based on the experimental data: Fig. 9 The power consumption comparison chart is shown.

[0113] By analyzing the data in the figure, it can be found that when the supply voltage is 900mV, the power consumption of the single-ended comparator designed by the present invention is 12.74μW, and the power consumption of the traditional latch comparator is 37.8μW. The static power consumption of the 4-bit SAR-ADC designed by the present invention is 70.81μW, and the dynamic power consumption of the traditional 4-bit SAR-ADC is 125.6μW. The dynamic power consumption of the two optimized structures is reduced by 66% and 44% respectively compared with the existing circuit.

[0114] The above experimental data proves that the circuit design provided by the present invention can indeed significantly reduce the static power consumption of the existing comparator and quantization circuit, thus helping to solve the power consumption dilemma of the CIM chip.

[0115] 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.

Claims

1. A single-ended comparator, which supports single-bit quantization of an input signal voltage Vin, characterized in that: The single-ended comparator includes three PMOS tubes P0-P2, three NMOS tubes N0-N2, a capacitor C, and three transmission gates TG1-TG3; the circuit connection relationship is as follows: The input signal Vin and the reference voltage Vref are connected to the lower plate of the capacitor C through TG1 and TG2 respectively; the upper plate of the capacitor C is connected to the starting voltage Vcm through TG3; The sources of P0 and P2 are connected to the power supply VDD; the drain of P0 is connected to the source of P1; the gates of P1 and N1 are connected to the upper plate of capacitor C; the drains of P1 and N1 are electrically connected to the gates of P2 and N2; the source of N1 is connected to the drain of N0; the sources of N0 and N2 are grounded; the gate of N0 is connected to the enable signal EN; the gate of P0 is connected to the inverted enable signal ENB; the drains of P2 and N2 are connected and serve as the output terminal OUT; In the single-ended comparator, P1 and N1 form a first inverter, and P2 and N2 form a second inverter; the startup voltage Vcm is set to the threshold voltage of the first inverter.

2. The single-ended comparator according to claim 1, wherein: The operation strategy for comparing the input signal Vin with the reference voltage Vref includes a setting phase and a comparison phase, and the process is as follows: (1) Set-up phase Turn on TG2 and TG3, turn off TG1; set ENB to high level and EN to low level; (2) Comparison stage Turn on TG1, turn off TG2 and TG3; set ENB to low level, and set EN to high level; at this time, the level state of the output terminal OUT is the quantization result of the input signal Vin.

3. The single-ended comparator according to claim 2, wherein: In the setting stage, the lower plate of the capacitor of the single-ended comparator is connected to Vref, and the upper plate is connected to VDD / 2; P0 and N0 are turned off, and the first inverter stops working; In the comparison stage, the lower plate of the capacitor of the single-ended comparator is connected to Vin, and the upper plate is connected to VDD / 2; P0 and N0 are turned on, and the first inverter works; at this time, the level state of the output terminal OUT of the second inverter depends on the change of the plate voltage of the capacitor C.

4. The single-ended comparator according to claim 3, wherein: In the comparison stage, the output logic of the single-ended comparator is as follows: (a) When Vin>Vref, the output terminal OUT of the second inverter is at a high level, that is, the output comparison result is "1"; (b) When Vin<Vref, the output terminal OUT of the second inverter is at a low level, that is, the output comparison result is "0".

5. The single-ended comparator according to claim 1, wherein: It also includes a PMOS tube P3 for controlling the level state of the output terminal OUT in the setting stage; wherein the gate of P3 is connected to the enable signal EN, the source of P3 is connected to the power supply VDD, and the drain of P3 is connected to the gate of P2; In the setting stage, EN is set to a low level; P3 is in a conducting state. At this time, the input terminal of the second inverter is at a high level, and the output terminal OUT of the second inverter is at a low level.

6. A multi-bit SAR-ADC circuit, characterized in that: It includes: A CADC sampling circuit is used to generate a voltage signal representing a comparison result by successive approximation; the CADC sampling circuit includes 6 capacitors C1-C6, 5 two-to-one selectors SW1-SW5, and 1 transmission gate TG0; wherein the ratio of the capacitance values ​​of C1-C6 is 1:1:2:4:8:16; the upper plates of C1-C6 are connected to the signal line Vcomp; the lower plate of C1 is grounded, and the lower plates of C2-C6 are connected to the output ends of SW1-SW5 in sequence; one of the input ends of SW1-SW4 is grounded, and the other input end is connected to a reference voltage Vref; one of the input ends of SW5 is connected to an input signal Vin, and the other input end is grounded; one end of TG0 is connected to the signal line Vcomp, and the other end is connected to a start voltage Vcm; wherein the selection directions of SW1-SW4 are respectively controlled by digital signals D0, D1, D2, and D3, and the selection direction of SW5 and the switch state of TG0 are controlled by a sampling signal Clk-Sample generated by a clock control module; A comparison circuit, which is composed of three PMOS tubes P0-P2 and three NMOS tubes N0-N2; wherein P1 and N1 constitute a first inverter, and P2 and N2 constitute a second inverter; two inverters are cascaded; the input end of the first inverter is connected to the signal line Vcomp in the CADC sampling circuit; the output end OUT of the second inverter is used to output the comparison result; P0 is used as a transmission tube between the first inverter and the power supply VDD; N0 is used as a transmission tube between the first inverter and the ground terminal GND; the gate of N0 is connected to the clock signal CLK, and the gate of P0 is connected to the inverted clock signal CLKB; CLK and CLKB are generated by a clock control module; and The SAR logic module is used to obtain the comparison result of the comparison circuit output terminal OUT, and generate digital signals D0-D3 for controlling the selection direction of SW1-SW4 respectively according to the comparison result; thereby obtaining the quantization result of the input signal Vin by successive approximation.

7. The multi-bit SAR-ADC circuit according to claim 6, wherein: When digital D0~D3 and sampling signal Clk-Sample are at low level, the input terminals of SW1~SW5 are grounded and TG0 is disconnected; when digital D0~D3 and sampling signal Clk-Sample are at high level, SW1~SW4 are connected to Vref, SW5 is connected to Vin, and TG0 is turned on.

8. The multi-bit SAR-ADC circuit according to claim 7, wherein: It is used to quantize the input signal Vin according to the highest 4-bit accuracy level; the 4-bit quantization operation includes a sampling phase and a comparison phase, and the process is as follows:

1. Sampling stage: S1: Set the sampling signal Clk-Sample to a high level. At this time, the lower plate of C6 is connected to Vin through SW5, and Vcm is connected to the signal line Vcomp, Vcm = VDD / 2; therefore, the voltages of the upper and lower plates of capacitor C6 are VDD / 2 and Vin respectively; 2. Comparison stage: S2: Set the sampling signal Clk-Sample to a low level. At this time, SW5 is grounded and Vcm is disconnected from the signal line Vcomp. S3: The SAR logic module generates a four-bit digital signal "D3D2D1D0" with an initial value of "1000", thereby switching the selection direction of SW1 to SW4 in the CADC sampling circuit; at the same time, the SAR logic module collects the level state of the output terminal OUT of the comparison circuit; S4: According to the comparison result of the output terminal OUT, the four-bit digital signal "D3D2D1D0" is adjusted as follows: (1) If OUT = 1, the bit in the four-bit digital signal "D3D2D1D0" that was set to a high level in the previous round is set to a low level, and the next bit is set to a high level; (2) If OUT = 0, the next bit of the lowest bit in the four-bit digital signal "D3D2D1D0" that was set to a high level in the previous round is also set to a high level; S5: Repeat the strategy of step S4 for another 4 comparisons, and generate the final quantitative data based on the result of the last comparison.

9. The multi-bit SAR-ADC circuit according to claim 6, wherein: The number N of capacitors and two-to-one gates in the CADC sampling circuit is greater than 6; in this case, the multi-bit SAR-ADC circuit is used to quantize the input signal Vin according to the highest (N-2) bit accuracy level; In the current CADC sampling circuit, the ratio of the capacitance values ​​of capacitors C1 to CN is: 1:1:2:4:8:…:2 N-2 Among them, the lower plate of the capacitor with the largest capacitance value is connected to the input signal Vin or grounded through a two-to-one selector, and the lower plate of one of the capacitors with the smallest capacitance value is directly grounded; the remaining capacitors are connected to the reference voltage Vref or grounded through a two-to-one selector.

10. A CIM chip, characterized in that: It integrates the single-ended comparator as claimed in claim 1 or 5, or integrates the multi-bit SAR-ADC circuit as claimed in claim 6; and uses the single-ended comparator or the multi-bit SAR-ADC circuit to quantify the calculation result of the calculation module in the CIM chip.

Citation Information

Cited By

  • Flash-ADC (Analog to Digital Converter) circuit and module with three-stage comparison stage

    CN119341570A

  • Flash-ADC circuit and module with three-stage comparison

    CN119341570B