COMS-based single-ended input comparator
By designing a COMS-based single-ended input comparator in an analog-to-digital converter, using a cascade inverter and MOS switch tube, the problems of high static power consumption and sensitive to power supply voltage fluctuations are solved, and the circuit is realized Improved stability and accuracy.
Patent Information
- Application Number
- CN202411042342.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-11-22
AI Technical Summary
Traditional comparators have problems such as high static power consumption, charge injection error, metastable error, high device matching and sensitive to power supply voltage fluctuations in analog-to-digital converters, resulting in large circuit size, high power consumption and low accuracy.
Design a single-ended input comparator based on COMS, compare the input voltage with the threshold level through a cascaded multi-stage inverter, use MOS switch tube and virtual switch to reduce the channel charge injection effect, and use self-zero circuit and The current mirror composed of NMOS/PMOS tubes provides bias voltage, simplifies the circuit structure and adapts to a variety of power supply voltage modes.
It realizes a simple circuit structure, small area, and normal operation in various power supply voltage modes, reduces static power consumption and the impact on power supply voltage fluctuations, and improves the stability and accuracy of the comparator.
Smart Images

Figure CN119010858A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of integrated circuits, and in particular to a single-ended input comparator based on CMOS. Background Art
[0002] With the development of information technology, the modules that process signal links need to operate more stably and be more miniaturized. Therefore, comparators with simple circuit structures and less affected by power supply voltage fluctuations can be used in analog-to-digital converters.
[0003] In the past, the commonly used comparators were open-loop comparators and latch comparators. Open-loop comparators can also be called continuous-time comparators. As the name implies, open-loop comparators are always in operation, that is, they can get comparison results at any time, so they consume a lot of static power consumption; latch comparators quickly distinguish two differential input signals through positive feedback, and they are controlled by clock signals, so latch comparators are discrete comparators.
[0004] In traditional comparator structures, such as differential amplifier type, dynamic type and fully differential latch type comparators, there are some problems, such as the use of larger transistors to improve accuracy, the need for DC bias, possible charge injection errors and metastable errors. In addition, the dynamic latch requires the input signal to be a differential signal, which requires a high degree of device matching, and the differential input signal also requires two CDAC capacitor arrays, which will also increase the circuit power consumption and circuit layout area. At the same time, in the above comparators, the open-loop comparator is a simple 5-tube amplifier, and the latch comparator usually needs to add several stages of pre-amplifiers when in use. The performance of the operational amplifier has high requirements on the power supply voltage. If the power supply voltage fluctuates greatly, the static operating point of the operational amplifier may change, which in turn causes the entire analog-to-digital converter circuit to work abnormally. Summary of the invention
[0005] In view of the above-mentioned shortcomings of the prior art, the present application provides a single-ended input comparator based on CMOS to solve at least one defect in the prior art.
[0006] To achieve the above objectives and other objectives, the present application provides a single-ended input comparator based on CMOS, the comparator comprising:
[0007] A first comparison unit includes a first inverter and a first switch connected in parallel between an input terminal and an output terminal of the first inverter;
[0008] A second comparing unit comprises a second inverter and a second switch tube connected in parallel between an input terminal and an output terminal of the second inverter;
[0009] A third comparing unit comprises a third inverter and a third switch connected in parallel between an input terminal and an output terminal of the third inverter;
[0010] an output stage, an input end of which is connected to the output end of the third inverter;
[0011] The output end of the first inverter is connected to the input end of the second inverter, and the output end of the second inverter is connected to the input end of the third inverter; the threshold levels of the first inverter, the second inverter and the third inverter are the same;
[0012] When the input voltage of the inverter is greater than the threshold level, the output of the inverter is a high level; when the input voltage of the inverter is less than the threshold level, the output of the inverter is a low level.
[0013] In an embodiment of the present invention, the threshold level is generated when the first switch tube, the second switch tube, and the third switch tube are all closed.
[0014] In one embodiment of the present invention, the first comparison unit also includes a first virtual switch, which is connected to the input end of the first inverter; the second comparison unit also includes a second virtual switch, which is connected to the input end of the second inverter; the third comparison unit also includes a third virtual switch, which is connected to the input end of the third inverter.
[0015] In one embodiment of the present invention, the comparator further includes:
[0016] A first capacitor connected between an output terminal of the first inverter and an input terminal of the second inverter;
[0017] The second capacitor is connected between the output terminal of the second inverter and the input terminal of the third inverter.
[0018] In one embodiment of the present invention, the comparator further includes:
[0019] A first NMOS tube, wherein the gate of the first NMOS tube is connected to the output end of the first inverter, the source of the first NMOS tube is respectively connected to one end of the first capacitor and the bias voltage, the other end of the first capacitor is connected to the input end of the second inverter, and the drain of the first NMOS tube is connected to the power supply voltage;
[0020] A second NMOS tube, the gate of the second NMOS tube is connected to the output end of the second inverter, the source of the second NMOS tube is respectively connected to one end of the second capacitor and the bias voltage, the other end of the second capacitor is connected to the input end of the third inverter, and the drain of the second NMOS tube is connected to the power supply voltage.
[0021] In one embodiment of the present invention, the bias voltage is provided by a current mirror, and the current mirror comprises:
[0022] A current source, a third NMOS tube, a fourth NMOS tube, and a fifth NMOS tube; the output end of the current source is connected to the drain of the third NMOS tube, the source of the third NMOS tube is grounded, the gate of the third NMOS tube is connected to the gate of the fourth NMOS tube, the source of the fourth NMOS tube is grounded, the drain of the fourth NMOS tube outputs the bias voltage to the source of the first NMOS tube, the gate of the fifth NMOS tube is connected to the gate of the fourth NMOS tube, the source of the fourth NMOS tube is grounded, and the drain of the fourth NMOS tube outputs the bias voltage to the source of the second NMOS tube.
[0023] In one embodiment of the present invention, the comparator further includes: a fifth switch tube, a sixth switch tube, and a seventh switch tube;
[0024] The fifth switch tube is connected between the gate of the third NMOS tube and the ground; the sixth switch tube is connected between the power supply voltage and the input end of the second inverter; and the seventh switch tube is connected between the power supply voltage and the input end of the third inverter.
[0025] In one embodiment of the present invention, the comparator further includes:
[0026] The sixth NMOS tube and the seventh NMOS tube, the source of the sixth NMOS tube is connected to the power supply voltage, the gate of the sixth NMOS tube is connected to the gate of the seventh NMOS tube and then connected to the output end of the third inverter; the drain of the sixth NMOS tube is connected to the drain of the seventh NMOS tube and then serves as the output end of the comparator, and the source of the seventh NMOS tube is grounded.
[0027] In an embodiment of the present invention, the first switch tube, the second switch tube, the third switch tube, the fourth switch tube, the fifth switch tube, the sixth switch tube, and the seventh switch tube are MOS switches.
[0028] In one embodiment of the present invention, the first virtual switch, the second virtual switch, and the third virtual switch are all MOS switches. The width-to-length ratio of the MOS switch in the first virtual switch is half of that of the first switch tube, the width-to-length ratio of the MOS switch in the second virtual switch is half of that of the second switch tube, and the width-to-length ratio of the MOS switch in the third virtual switch is half of that of the third switch tube.
[0029] Beneficial effects of this application:
[0030] The present application discloses a single-ended input comparator based on CMOS, comprising: a first comparison unit, comprising a first inverter, and a first switch connected in parallel between an input terminal and an output terminal of the first inverter; a second comparison unit, comprising a second inverter, and a second switch connected in parallel between an input terminal and an output terminal of the second inverter; a third comparison unit, comprising a third inverter, and a third switch connected in parallel between an input terminal and an output terminal of the third inverter; an output stage, whose input terminal is connected to an output terminal of the third inverter; an output terminal of the first inverter is connected to an input terminal of the second inverter, and an output terminal of the second inverter is connected to an input terminal of the third inverter; the threshold levels of the first inverter, the second inverter, and the third inverter are the same; when the input voltage of the inverter is greater than the threshold level, the output of the inverter is a high level; when the input voltage of the inverter is less than the threshold level, the output of the inverter is a low level; the present invention compares the input voltage with the threshold level by cascading multiple inverters, and its circuit principle is simple and reliable, the chip occupies a small area, and can work normally under multiple power supply voltage modes without changing the circuit structure.
[0031] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0033] Figure 1 is the circuit diagram of an open loop comparator;
[0034] Figure 2 Schematic diagram of the regenerative comparator structure, (a) is NMOS Latch; (b) is PMOS Latch;
[0035] Figure 3 A circuit diagram of a single-ended input comparator based on CMOS according to an embodiment of the present application;
[0036] Figure 4 is a circuit diagram of an inverter according to an embodiment of the present application. DETAILED DESCRIPTION
[0037] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0038] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application, and thus the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed at will, and the component layout may also be more complicated.
[0039] Although the terms "first", "second", "A", and "B", etc. may be used herein to describe various elements, these elements should not be limited by these terms and are only used to distinguish one element from another. For example, a first element may be referred to as a second element, and similarly, a second element may be referred to as a first element without departing from the scope of the following technology. The term "and / or" includes a combination of multiple related items or any of the multiple related items.
[0040] As used herein, unless the context indicates otherwise, the singular form is intended to include the plural form, and it will be understood that the term "comprising" means the presence of stated features, quantities, steps, operations, elements, or combinations thereof, but does not exclude the presence or addition of one or more other features, quantities, steps, operations, elements, components, or combinations thereof.
[0041] Before the detailed description, it is intended to clarify that the division of components in this specification is divided only by the main function of each component. That is, two or more components to be described below can be combined into one component, or can be divided into two or more components according to more detailed functions. In addition to the main function of the component, each component to be described below can also perform some or all of the functions of other components, and some of the main functions of each component can be exclusively performed by other components.
[0042] With the development of information technology, the modules that process signal links need to operate more stably and be more miniaturized. Therefore, comparators with simple circuit structures and less affected by power supply voltage fluctuations can be used in analog-to-digital converters.
[0043] In the past, the commonly used comparators were open-loop comparators and latch comparators. Open-loop comparators can also be called continuous-time comparators. As the name implies, open-loop comparators are always in operation, that is, they can get comparison results at any time, so they consume a large amount of static power. Figure 1 It is a traditional structure of an open-loop comparator, usually composed of two stages. The first stage uses a differential signal as input and outputs a signal through a single end. The second stage is a common source amplifier. M1-M5 constitute the first stage amplifier circuit, M6 and M7 constitute the second stage amplifier circuit, and a load capacitor C is connected in parallel at the output end. L . Input differential signal V IN+ and V IN- First, it passes through the M1 and M2 pairs of transistors, and after passing through the first stage amplifier circuit, a single-ended signal is output at the drain end of M2 and M4. The single-ended signal then passes through the gate end of the second stage amplifier circuit M5, and the output signal V OUT . Figure 1 It shows that the two-stage open-loop comparator does not require frequency compensation to maintain circuit stability, so it is not much different from the traditional two-stage operational amplifier in structure, only lacking the frequency compensation circuit. The biggest advantage of the open-loop comparator without frequency compensation is that the bandwidth can be very high, which greatly improves the speed of the entire SAR ADC. However, the gain-bandwidth product of the open-loop comparator is certain. When its bandwidth is increased infinitely, the gain will also decrease and even the minimum differential input cannot be distinguished, which will lead to a decrease in the accuracy of the SAR ADC. Therefore, the design of the open-loop comparator needs to carefully balance the relationship between accuracy and speed. In addition, input reference noise and offset voltage will also affect the accuracy of the open-loop comparator.
[0044] The latch comparator quickly distinguishes two differential input signals by positive feedback. It is controlled by a clock signal, so the latch comparator is a discrete comparator. Figure 2 (a) and Figure 2 (b) are NMOS Latch and PMOS Latch, both of which realize positive feedback through cross-coupling of two MOS tubes. This type of comparator can also be called a regenerative comparator. Figure 2 For example, when the clock signal is in the initial state, two input signals with difference pass through V OU1 and V OUT2The input terminal is input to the MOS tubes M1 and M2; when in the amplification working state under the control of the clock signal, the NMOS Latch quickly separates the two signals with difference through positive feedback until one signal reaches a high level and the other reaches a low level. Among them, the drain-source current of the MOS tubes M1 and M2 is determined by the current sources I1 and I2. The positive feedback characteristics of the latch structure are determined by the difference between the two input signals. When the difference between the two signals is large, the comparison speed is fast; conversely, when the difference between the two signals is small, the comparison speed is slow or even no comparison result can be obtained.
[0045] In traditional comparator structures, such as differential amplifier type, dynamic type and fully differential latch type comparators, there are some problems, such as the use of larger transistors to improve accuracy, the need for DC bias, possible charge injection errors and metastable errors. In addition, the dynamic latch requires the input signal to be a differential signal, which requires a high degree of device matching, and the differential input signal also requires two CDAC capacitor arrays, which will also increase the circuit power consumption and circuit layout area. At the same time, in the above comparators, the open-loop comparator is a simple 5-tube amplifier, and the latch comparator usually needs to add several stages of pre-amplifiers when in use. The performance of the operational amplifier has high requirements on the power supply voltage. If the power supply voltage fluctuates greatly, the static operating point of the operational amplifier may change, which in turn causes the entire analog-to-digital converter circuit to work abnormally.
[0046] See also Figure 3 , Figure 3 This is a circuit diagram of a single-ended input comparator based on CMOS in an embodiment of the present application. Figure 3 As shown, a single-ended input comparator based on CMOS includes:
[0047] A first comparison unit includes a first inverter INV1 and a first switch tube S1 connected in parallel between an input end and an output end of the first inverter INV1;
[0048] A second comparison unit includes a second inverter INV2 and a second switch tube S2 connected in parallel between an input end and an output end of the second inverter INV2;
[0049] A third comparing unit comprises a third inverter INV3 and a third switch tube S3 connected in parallel between an input end and an output end of the third inverter INV3;
[0050] an output stage, whose input end is connected to the output end of the third inverter INV3;
[0051] The output end of the first inverter INV1 is connected to the input end of the second inverter INV2, and the output end of the second inverter INV2 is connected to the input end of the third inverter INV3; the threshold levels V CM same;
[0052] When the inverter input voltage VIN is greater than the threshold level V CM When the input voltage VIN of the inverter is less than the threshold level V CM , the output of the inverter is low.
[0053] It should be noted that the first switch tube S1, the second switch tube S2, and the third switch tube S3 are MOS switch tubes. The high level mentioned here can be represented by a digital logic level "1" and the low level can be represented by a digital logic level "0".
[0054] It should be noted that in the embodiment of the present application, the inverter is composed of a PMOS tube and an NMOS tube. Figure 4 shown.
[0055] In the embodiment of the present application, the threshold level V CM It is generated when the first switch tube, the second switch tube, and the third switch tube are all closed.
[0056] In the embodiment of the present application, the first comparison unit also includes a first virtual switch M dummy1 , the first virtual switch M dummy1 connected to the input end of the first inverter INV1; the second comparison unit also includes a second virtual switch M dummy2 , the second virtual switch M dummy2 connected to the input end of the second inverter INV2; the third comparison unit also includes a third virtual switch M dummy3 , the third virtual switch M dummy3 Connected to the input end of the third inverter INV3.
[0057] By setting a first virtual switch M at the input terminal of the first inverter INV1 d ummy1, a second virtual switch M is set at the input end of the second inverter INV2, dummy2, a third virtual switch M is set at the input end of the third inverter INV3 dummy3 , since the first virtual switch M dummy1 , the second virtual switch M dummy2 , the third virtual switch M dummy3All of them are MOS switches, which can reduce the charge generated by the channel charge injection effect of the second switch tube S2 and the third switch tube S3. Usually, the width-to-length ratio of the first virtual switch Mdummy1 is 1 / 2 of the first switch tube S1, the width-to-length ratio of the second virtual switch Mdummy2 is 1 / 2 of the second switch tube S2, and the width-to-length ratio of the third virtual switch Mdummy3 is 1 / 2 of the third switch tube S3.
[0058] In the embodiment of the present application, the comparator further includes:
[0059] A first capacitor C1 is connected between an output end of the first inverter INV1 and an input end of the second inverter INV2;
[0060] The second capacitor C2 is connected between the output terminal of the second inverter INV2 and the input terminal of the third inverter INV2.
[0061] The first capacitor C1 can store the charge generated by the clock feedthrough effect of the first switch tube S1 and amplify it by the second inverter INV2. The second capacitor C2 can store the charge generated by the clock feedthrough effect of the second switch tube S2 and amplify it by the third inverter INV3.
[0062] In the embodiment of the present application, the comparator further includes:
[0063] A first NMOS tube M1, wherein the gate of the first NMOS tube M1 is connected to the output end of the first inverter, the source of the first NMOS tube M1 is respectively connected to one end of the first capacitor C1 and the bias voltage, the other end of the first capacitor C1 is connected to the input end of the second inverter INV2, and the drain of the first NMOS tube M1 is connected to the power supply voltage;
[0064] The second NMOS tube M2, the gate of the second NMOS tube M2 is connected to the output end of the second inverter, the source of the second NMOS tube M2 is respectively connected to one end of the second capacitor C2 and the bias voltage, the other end of the second capacitor C2 is connected to the input end of the third inverter INV3, and the drain of the second NMOS tube M2 is connected to the power supply voltage.
[0065] The first NMOS tube M1 and the second NMOS tube M2 are used as source followers, which have the characteristics of low output resistance and strong load capacity, so as to reduce the capacitive load of each level of comparator, thereby improving the conversion rate of the comparator.
[0066] In an embodiment of the present application, the bias voltage is provided by a current mirror, and the current mirror includes:
[0067] a current source, a third NMOS tube M3, a fourth NMOS tube M4, and a fifth NMOS tube M5; the output end of the current source is connected to the drain of the third NMOS tube M3, the source of the third NMOS tube M3 is grounded, the gate of the third NMOS tube M3 is connected to the gate of the fourth NMOS tube M4, the source of the fourth NMOS tube M4 is grounded, the drain of the fourth NMOS tube M4 outputs the bias voltage to the source of the first NMOS tube M1, the gate of the fifth NMOS tube M5 is connected to the gate of the fourth NMOS tube M4, the source of the fourth NMOS tube M4 is grounded, and the drain of the fourth NMOS tube M4 outputs the bias voltage to the source of the second NMOS tube M2.
[0068] In the embodiment of the present application, the comparator further includes: a fifth switch tube S5, a sixth switch tube S6, and a seventh switch tube S7;
[0069] The fifth switch tube S5 is connected between the gate of the third NMOS tube M3 and the ground; the sixth switch tube M6 is connected between the power supply voltage and the input end of the second inverter INV2; the seventh switch tube S7 is connected between the power supply voltage and the input end of the third inverter INV3.
[0070] In the embodiment of the present application, the fifth switch tube S5, the sixth switch tube S6, and the seventh switch tube S7 are MOS switches.
[0071] In the embodiment of the present application, the comparator further includes:
[0072] The sixth NMOS tube M6 and the seventh NMOS tube M7, the source of the sixth NMOS tube M6 is connected to the power supply voltage, the gate of the sixth NMOS tube M6 is connected to the gate of the seventh NMOS tube M7 and then connected to the output end of the third inverter INV3; the drain of the sixth NMOS tube M6 and the drain of the seventh NMOS tube M7 are connected to serve as the output end of the comparator, and the source of the seventh NMOS tube M7 is grounded.
[0073] In an embodiment of the present application, the comparator also includes: an eighth switch S8, connected to the power supply voltage and the input end of the output stage, that is, between the gates of the sixth NMOS tube and the seventh NMOS tube, for resetting the comparator after the comparator compares the input signal.
[0074] The principle of the single-ended input comparator based on CMOS of the present application is described below.
[0075] The working process of the comparator includes three stages, namely, the self-zeroing stage φ1, the comparison stage φ2 and the low power consumption stage φ3. The working process of these three stages is briefly introduced below.
[0076] First, in the φ1 stage, the first switch tube S1, the second switch tube S2, the third switch tube S3 and the eighth switch tube S8 are closed, and the other switches remain open. The input and output of the first inverter INV1, the second inverter INV2 and the third inverter INV3 are short-circuited to generate a common-mode level V CM , this process can also be called auto-zeroing technology (Autozeroing). The first capacitor C1, the second capacitor C2, the second switch tube S2 and the third switch tube S3 respectively constitute an auto-zeroing circuit. When the second switch tube S2 and the third switch tube S3 are closed, the DC offset voltage generated by the second inverter INV2 and the third inverter INV3 is stored in the first capacitor C1 and the second capacitor C2 of the DC-isolating capacitor. When the second switch tube S2 and the third switch tube S3 are disconnected, the first capacitor C1 and the second capacitor C2 of the DC-isolating capacitor are in a suspended state, and the DC offset voltage will be stored in the DC-isolating capacitors C1 and C2. When the comparison process is entered, the DC offset voltage will be offset, so the auto-zeroing circuit can improve the linearity of the SAR ADC. The common-mode level V can be generated by adjusting the width-to-length ratio of the NMOS tube and the PMOS tube in the inverter. CM , and the threshold levels of the three inverters need to be set to V CM The specific structure of the inverter can be found in Figure 4 shown.
[0077] In the φ2 stage, the first switch tube S1, the second switch tube S2, and the third switch tube S3 are turned off, the fourth switch tube S4 is turned on, and the virtual switches Mdummy1, Mdummy2, and Mdummy3 are turned on and generate charges with opposite polarity to those of the first switch tube S1, the second switch tube S2, and the third switch tube S3 caused by the channel charge injection effect, and eliminate a certain offset voltage. In this stage, the comparator determines the output result by comparing the input voltage with the threshold level. If the input voltage is greater than the threshold level, the output result V OUT Pulled high to V DD , that is, the digital logic level "1"; if the input voltage is less than the threshold level, the output result V OUT is pulled to the low level GND, that is, the digital logic level "0". The above comparison process is similar to the comparison process of the traditional differential comparator, the difference is that the single-ended input comparator based on CMOS proposed in the present invention has the "-" end comparison voltage built into the comparator. This structure can save the circuit for generating the "-" end comparison voltage and reduce the overall chip area.
[0078] In the φ3 stage, the fifth switch tube S5, the sixth switch tube S6 and the seventh switch tube S7 are closed, and the other switches remain open. The sixth switch tube S6 and the seventh switch tube S7 force the input of the second inverter INV2 to be set to a high level, the output is a low level and the fourth NMOS tube M4 is turned off. Similarly, the fifth switch tube S5 is closed to turn off the fifth NMOS tube M5, so there is no voltage from V DD path to GND to minimize its static power consumption.
[0079] Since the comparator does not introduce additional circuit structures to provide the common-mode level V CM , so the circuit itself needs to provide the common-mode level V CM , common mode level V CM The comparator self-zero cycle is automatically generated, and its size depends on the threshold level of the inverter. At the same time, the comparator input does not need to use differential signals, only single-ended signals can be input, which greatly reduces the requirements for circuit matching and also reduces the chip area.
[0080] It can be seen that the comparator circuit structure of the present application is simple, and there is no need to design an operational amplifier with high static bias requirements, which can improve the reliability of the circuit; since the inverter has only a small leakage current when not working, and the operational amplifier usually requires a certain bias current, the power consumption can be reduced compared to the traditional comparator; and by setting the size of a specific MOS tube, the inverter's flip voltage can automatically adapt to different power supply voltages without changing the internal circuit structure. A comparator containing an operational amplifier may cause the internal MOS tube DC operating point to change under the condition of a change in the power supply voltage, thereby causing the comparator to misjudge.
[0081] The above embodiments are merely illustrative of the principles and effects of the present application, and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.
Claims
1. A single-ended input comparator based on CMOS, characterized in that: The comparator comprises: A first comparison unit includes a first inverter and a first switch connected in parallel between an input terminal and an output terminal of the first inverter; A second comparing unit comprises a second inverter and a second switch tube connected in parallel between an input terminal and an output terminal of the second inverter; A third comparing unit comprises a third inverter and a third switch connected in parallel between an input terminal and an output terminal of the third inverter; an output stage, an input end of which is connected to the output end of the third inverter; The output end of the first inverter is connected to the input end of the second inverter, and the output end of the second inverter is connected to the input end of the third inverter; the threshold levels of the first inverter, the second inverter and the third inverter are the same; When the input voltage of the inverter is greater than the threshold level, the output of the inverter is a high level; when the input voltage of the inverter is less than the threshold level, the output of the inverter is a low level.
2. The single-ended input comparator based on CMOS according to claim 1, characterized in that: The threshold level is generated when the first switch tube, the second switch tube, and the third switch tube are all closed.
3. The single-ended input comparator based on CMOS according to claim 1, characterized in that: The first comparison unit also includes a first virtual switch connected to the input end of the first inverter; the second comparison unit also includes a second virtual switch connected to the input end of the second inverter; the third comparison unit also includes a third virtual switch connected to the input end of the third inverter.
4. The single-ended input comparator based on CMOS according to claim 1, characterized in that: The comparator further comprises: A first capacitor connected between an output terminal of the first inverter and an input terminal of the second inverter; The second capacitor is connected between the output terminal of the second inverter and the input terminal of the third inverter.
5. The single-ended input comparator based on CMOS according to claim 4, characterized in that: The comparator further comprises: A first NMOS tube, wherein the gate of the first NMOS tube is connected to the output end of the first inverter, the source of the first NMOS tube is respectively connected to one end of the first capacitor and the bias voltage, the other end of the first capacitor is connected to the input end of the second inverter, and the drain of the first NMOS tube is connected to the power supply voltage; A second NMOS tube, the gate of the second NMOS tube is connected to the output end of the second inverter, the source of the second NMOS tube is respectively connected to one end of the second capacitor and the bias voltage, the other end of the second capacitor is connected to the input end of the third inverter, and the drain of the second NMOS tube is connected to the power supply voltage.
6. The single-ended input comparator based on CMOS according to claim 5, characterized in that: The bias voltage is provided by a current mirror, and the current mirror comprises: A current source, a third NMOS tube, a fourth NMOS tube, and a fifth NMOS tube; the output end of the current source is connected to the drain of the third NMOS tube, the source of the third NMOS tube is grounded, the gate of the third NMOS tube is connected to the gate of the fourth NMOS tube, the source of the fourth NMOS tube is grounded, the drain of the fourth NMOS tube outputs the bias voltage to the source of the first NMOS tube, the gate of the fifth NMOS tube is connected to the gate of the fourth NMOS tube, the source of the fourth NMOS tube is grounded, and the drain of the fourth NMOS tube outputs the bias voltage to the source of the second NMOS tube.
7. The single-ended input comparator based on CMOS according to claim 6, characterized in that: The comparator further includes: a fifth switch tube, a sixth switch tube, and a seventh switch tube; The fifth switch tube is connected between the gate of the third NMOS tube and the ground; the sixth switch tube is connected between the power supply voltage and the input end of the second inverter; and the seventh switch tube is connected between the power supply voltage and the input end of the third inverter.
8. The single-ended input comparator based on CMOS according to claim 1, characterized in that: The comparator further comprises: The sixth NMOS tube and the seventh NMOS tube, the source of the sixth NMOS tube is connected to the power supply voltage, the gate of the sixth NMOS tube is connected to the gate of the seventh NMOS tube and then connected to the output end of the third inverter; the drain of the sixth NMOS tube is connected to the drain of the seventh NMOS tube and then serves as the output end of the comparator, and the source of the seventh NMOS tube is grounded.
9. The single-ended input comparator based on CMOS according to claim 3, characterized in that: The first switch tube, the second switch tube, the third switch tube, the fourth switch tube, the fifth switch tube, the sixth switch tube, and the seventh switch tube are MOS switches.
10. The single-ended input comparator based on CMOS according to claim 9, characterized in that: The first virtual switch, the second virtual switch and the third virtual switch are all MOS switches. The width-to-length ratio of the MOS switch in the first virtual switch is half of that of the first switch tube, the width-to-length ratio of the MOS switch in the second virtual switch is half of that of the second switch tube, and the width-to-length ratio of the MOS switch in the third virtual switch is half of that of the third switch tube.
