On-chip MOS tube process deviation detection circuit and chip

By designing the on-chip MOS tube process deviation detection circuit, detecting the process deviations of PMOS tubes and NMOS tubes and automatically adjusting the circuit status, the performance and power consumption problems caused by process deviations in integrated circuits are solved, and the chip power consumption is optimized.

CN114942373BActive Publication Date: 2024-11-01GUANGZHOU RUNXIN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210348852.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-01
Publication Date
2024-11-01
Estimated Expiration
2042-04-01

AI Technical Summary

Technical Problem

During the manufacturing process of integrated circuits, due to the uncertainty of chip pattern transfer and process fluctuations, there are process deviations in PMOS and NMOS tubes, which seriously restricts the performance and power consumption of integrated circuits. It is difficult for the prior art to effectively detect and compensate these deviations.

Method used

A process deviation detection circuit of on-chip MOS tube is designed, including node charging and discharging circuit, comparator and flip-flop. By detecting the process deviation of PMOS tube and NMOS tube, the working status of other circuits is automatically adjusted using the detection results to compensate for the process deviation generation. The impact of

Benefits of technology

The process deviation of PMOS tubes and NMOS tubes is detected and compensated, which alleviates the strict constraints in the design process of other chip circuits, optimizes the chip power consumption under different process angles, and uses few devices and occupies a small chip area. It can be completely closed after the test is completed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114942373B_ABST
    Figure CN114942373B_ABST
Patent Text Reader

Abstract

The present invention provides an on-chip MOS tube process deviation detection circuit, comprising a node charge and discharge circuit, a comparator, and a trigger, wherein the node charge and discharge circuit is connected to the input end of the comparator, and the output end of the comparator is connected to the trigger. The present invention relates to an on-chip MOS tube process deviation detection chip. The present invention uses a MOS tube capacitor to replace a general metal capacitor, so that the detection result of the MOS tube is not affected by the metal capacitor process deviation; the power MOS tube capacitor and the ground MOS tube capacitor are used to compensate each other, no additional nonlinear factors are introduced, and the parameter selection conditions are simplified; a comparator is used to replace an inverter to synchronize the D-end and CLK-end signals of the trigger, so as to avoid the problem that the D-end data misses the falling edge due to different delays at different process angles, thereby ensuring the correctness of the process deviation detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of integrated circuits, and in particular to an on-chip MOS tube process deviation detection circuit and a chip. Background Art

[0002] In the process of integrated circuit manufacturing, the uncertainty of chip pattern transfer and process fluctuations will inevitably lead to deviations in the devices on the chip. As the feature size of semiconductor processes continues to shrink, process deviations are increasing. This makes the constraints used in the integrated circuit design process more stringent, and also seriously restricts the performance and power consumption of integrated circuits.

[0003] Therefore, there is an urgent need for a detection circuit for PMOS and NMOS tubes, which can detect the process deviations of PMOS and NMOS tubes respectively. The detection results can be used to automatically adjust the working states of other circuits, compensate for the impact of the process deviation, alleviate the strict constraints in the design process of other circuits of the chip, and optimize the power consumption of the chip under different process angles. Summary of the invention

[0004] In order to overcome the shortcomings of the prior art, one of the purposes of the present invention is to provide an on-chip MOS tube process deviation detection circuit, which can detect the process deviations of PMOS tubes and NMOS tubes respectively. The detection results can be used to automatically adjust the working states of other circuits to compensate for the impact of the process deviation, greatly alleviating the strict constraints in the design process of other circuits of the chip and optimizing the power consumption of the chip under different process deviation conditions.

[0005] To achieve one of the above purposes, the present invention adopts the following technical solution:

[0006] An on-chip MOS tube process deviation detection circuit comprises a node charge and discharge circuit, a comparator, and a trigger. The node charge and discharge circuit is connected to the input end of the comparator, and the output end of the comparator is connected to the trigger.

[0007] Further, the node charge and discharge circuit includes a first MOS tube, a second MOS tube, a third MOS tube, and a fourth MOS tube. The gate of the first MOS tube and the gate of the second MOS tube are connected to the clock signal pin of the phase-locked loop and the comparator. The source of the first MOS tube and the source and drain of the third MOS tube are connected to the working voltage inside the device. The drain of the first MOS tube is connected to the drain of the second MOS tube. The source of the second MOS tube and the gate of the fourth MOS tube are connected to the common ground voltage of the circuit. The source and drain of the fourth MOS tube are connected to the gate of the third MOS tube. The connection between the drain of the first MOS tube and the drain of the second MOS tube is connected to the comparator. The connection between the gate of the third MOS tube and the source and drain of the fourth MOS tube is connected to the comparator.

[0008] Further, the comparator includes a first comparator, a second comparator, a third comparator, and a fourth comparator, the inverting input end of the first comparator is connected to the gate of the first MOS tube, the inverting input end of the fourth comparator is connected to the gate of the first MOS tube, the non-inverting input end of the second comparator and the non-inverting input end of the first comparator are connected to a first reference voltage of a bandgap reference source, the inverting input end of the second comparator and the inverting input end of the third comparator are connected to the drain of the first MOS tube and the drain of the third MOS tube, the non-inverting input end of the third comparator and the non-inverting input end of the fourth comparator are connected to a second reference voltage of a bandgap reference source, and the output ends of the first comparator, the second comparator, the third comparator, and the fourth comparator are connected to the trigger.

[0009] Further, the node charge and discharge circuit includes a first MOS tube, a second MOS tube, a third MOS tube, a fourth MOS tube, and an inverter; a clock signal pin of a phase-locked loop is connected to an input end of the inverter and a gate of the second MOS tube; the gate of the first MOS tube is connected to an output end of the inverter and the comparator; the drain of the first MOS tube and the gate of the third MOS tube are connected to an internal working voltage of the device; the source of the first MOS tube is connected to the drain of the second MOS tube; the source of the second MOS tube and the source and drain of the fourth MOS tube are connected to a common ground voltage of the circuit; the gate of the fourth MOS tube is connected to the source and drain of the third MOS tube; the connection between the source of the first MOS tube and the drain of the second MOS tube is connected to the comparator; the connection between the source and drain of the third MOS tube and the gate of the fourth MOS tube is connected to the comparator.

[0010] Further, the comparator includes a first comparator, a second comparator, a third comparator, and a fourth comparator, the inverting input end of the first comparator is connected to the gate of the first MOS tube, the inverting input end of the fourth comparator is connected to the gate of the first MOS tube, the non-inverting input end of the second comparator and the non-inverting input end of the first comparator are connected to the first reference voltage of a bandgap reference source, the inverting input end of the second comparator and the inverting input end of the third comparator are connected to the source of the first MOS tube and the drain and source of the third MOS tube, the non-inverting input end of the third comparator and the non-inverting input end of the fourth comparator are connected to the second reference voltage of the bandgap reference source, and the output ends of the first comparator, the second comparator, the third comparator, and the fourth comparator are connected to the trigger.

[0011] Furthermore, the trigger includes a first trigger and a second trigger, the output ends of the first comparator and the second comparator are connected to the first trigger, and the output ends of the third comparator and the fourth comparator are connected to the second trigger.

[0012] Furthermore, the first trigger and the second trigger are D triggers.

[0013] The second purpose of the present invention is to provide an on-chip MOS tube process deviation detection chip, which can detect the process deviation of PMOS tubes and NMOS tubes respectively. The detection results can be used to automatically adjust the working state of other circuits to compensate for the impact of the process deviation, greatly alleviating the strict constraints in the design process of other circuits of the chip and optimizing the chip power consumption under different process deviation conditions.

[0014] To achieve the second of the above objectives, the present invention adopts the following technical solution:

[0015] An on-chip MOS tube process deviation detection chip comprises a phase-locked loop, a bandgap reference source, a PMOS detection circuit, an NMOS detection circuit, a digital circuit and an analog circuit, wherein the phase-locked loop is connected to the PMOS detection circuit and the NMOS detection circuit, the bandgap reference source is connected to the PMOS detection circuit and the NMOS detection circuit, the PMOS detection circuit is connected to the digital circuit and the analog circuit, and the NMOS detection circuit is connected to the digital circuit and the analog circuit.

[0016] Further, the PMOS detection circuit includes a node charge and discharge circuit, a comparator, and a trigger, wherein the node charge and discharge circuit is connected to the input end of the comparator, and the output end of the comparator is connected to the trigger;

[0017] The node charge and discharge circuit comprises a first MOS tube, a second MOS tube, a third MOS tube, and a fourth MOS tube. The gate of the first MOS tube and the gate of the second MOS tube are connected to the clock signal pin of the phase-locked loop and the comparator. The source of the first MOS tube and the source and drain of the third MOS tube are connected to the working voltage inside the device. The drain of the first MOS tube is connected to the drain of the second MOS tube. The source of the second MOS tube and the gate of the fourth MOS tube are connected to the common ground voltage of the circuit. The source and drain of the fourth MOS tube are connected to the gate of the third MOS tube. The connection between the drain of the first MOS tube and the drain of the second MOS tube is connected to the comparator. The connection between the gate of the third MOS tube and the source and drain of the fourth MOS tube is connected to the comparator.

[0018] The comparator comprises a first comparator, a second comparator, a third comparator and a fourth comparator, wherein the inverting input terminal of the first comparator is connected to the gate of the first MOS tube, the inverting input terminal of the fourth comparator is connected to the gate of the first MOS tube, the non-inverting input terminal of the second comparator and the non-inverting input terminal of the first comparator are connected to the first reference voltage of the bandgap reference source, the inverting input terminal of the second comparator and the inverting input terminal of the third comparator are connected to the drain of the first MOS tube and the drain of the third MOS tube, the non-inverting input terminal of the third comparator and the non-inverting input terminal of the fourth comparator are connected to the second reference voltage of the bandgap reference source, and the output terminals of the first comparator, the second comparator, the third comparator and the fourth comparator are connected to the trigger;

[0019] The trigger includes a first trigger and a second trigger. The output ends of the first comparator and the second comparator are connected to the first trigger. The output ends of the third comparator and the fourth comparator are connected to the second trigger.

[0020] Further, the NMOS detection circuit includes a node charge and discharge circuit, a comparator, and a trigger, wherein the node charge and discharge circuit is connected to the input end of the comparator, and the output end of the comparator is connected to the trigger;

[0021] The node charge and discharge circuit comprises a first MOS tube, a second MOS tube, a third MOS tube, a fourth MOS tube, and an inverter; the clock signal pin of the phase-locked loop is connected to the input end of the inverter and the gate of the second MOS tube; the gate of the first MOS tube is connected to the output end of the inverter and the comparator; the drain of the first MOS tube and the gate of the third MOS tube are connected to the working voltage inside the device; the source of the first MOS tube is connected to the drain of the second MOS tube; the source of the second MOS tube and the source and drain of the fourth MOS tube are connected to the common ground voltage of the circuit; the gate of the fourth MOS tube is connected to the source and drain of the third MOS tube; the connection between the source of the first MOS tube and the drain of the second MOS tube is connected to the comparator; the connection between the source and drain of the third MOS tube and the gate of the fourth MOS tube is connected to the comparator;

[0022] The comparator comprises a first comparator, a second comparator, a third comparator and a fourth comparator, wherein the inverting input terminal of the first comparator is connected to the gate of the first MOS tube, the inverting input terminal of the fourth comparator is connected to the gate of the first MOS tube, the non-inverting input terminal of the second comparator and the non-inverting input terminal of the first comparator are connected to the first reference voltage of the bandgap reference source, the inverting input terminal of the second comparator and the inverting input terminal of the third comparator are connected to the source of the first MOS tube and the drain and source of the third MOS tube, the non-inverting input terminal of the third comparator and the non-inverting input terminal of the fourth comparator are connected to the second reference voltage of the bandgap reference source, and the output terminals of the first comparator, the second comparator, the third comparator and the fourth comparator are connected to the trigger;

[0023] The trigger includes a first trigger and a second trigger. The output ends of the first comparator and the second comparator are connected to the first trigger. The output ends of the third comparator and the fourth comparator are connected to the second trigger.

[0024] Compared with the prior art, the present invention has the following beneficial effects:

[0025] The present invention provides a detection circuit and chip for a PMOS tube and an NMOS tube, which can respectively detect the process deviation of the PMOS tube and the NMOS tube, and has the advantages of using fewer devices, occupying a small chip area, and being able to be completely shut down after the detection is completed. The detection result can be used to automatically adjust the working state of other circuits to compensate for the influence of the process deviation, greatly alleviating the strict constraints in the design process of other circuits of the chip, and optimizing the power consumption of the chip under different process angle conditions.

[0026] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention and implement it according to the contents of the specification, the following is a detailed description of the preferred embodiments of the present invention in conjunction with the accompanying drawings. The specific implementation of the present invention is given in detail by the following embodiments and their accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0028] Figure 1 This is a block diagram of an on-chip MOS tube process deviation detection chip of the present invention;

[0029] Figure 2 A PMOS detection circuit diagram of an embodiment of the present invention;

[0030] Figure 3 The NMOS detection circuit diagram of the embodiment of the present invention;

[0031] Figure 4 This is a waveform diagram of the process deviation detection principle of an embodiment of the present invention;

[0032] Figure 5 A schematic diagram of a MOS capacitor charging curve according to an embodiment of the present invention;

[0033] Figure 6 4 is a schematic diagram of the comparator timing synchronization principle according to an embodiment of the present invention. DETAILED DESCRIPTION

[0034] The present invention is further described below in conjunction with the accompanying drawings and specific implementation methods. It should be noted that, under the premise of no conflict, the various embodiments or technical features described below can be arbitrarily combined to form a new embodiment.

[0035] An on-chip MOS tube process deviation detection chip, such as Figure 1 As shown, it includes a phase-locked loop, a bandgap reference source, an on-chip MOS tube process deviation detection circuit, a digital circuit and an analog circuit; wherein the on-chip MOS tube process deviation detection circuit includes a PMOS detection circuit and an NMOS detection circuit, the phase-locked loop is connected to the PMOS detection circuit and the NMOS detection circuit, the bandgap reference source is connected to the PMOS detection circuit and the NMOS detection circuit, the PMOS detection circuit is connected to the digital circuit and the analog circuit, and the NMOS detection circuit is connected to the digital circuit and the analog circuit. Among them, the digital circuit and the analog circuit refer to other circuits in the chip that need to be automatically adjusted according to the process deviation.

[0036] like Figure 2As shown, the PMOS detection circuit includes a node charge and discharge circuit, a comparator, and a trigger. The node charge and discharge circuit is connected to the input end of the comparator, and the output end of the comparator is connected to the trigger.

[0037] V P The node charge and discharge circuit includes a first MOS tube M1, a second MOS tube M2, a third MOS tube M3, and a fourth MOS tube M4. The gate of the first MOS tube and the gate of the second MOS tube are connected to the clock signal pin of the phase-locked loop and the comparator. The source of the first MOS tube and the source and drain of the third MOS tube are connected to the working voltage inside the device. The drain of the first MOS tube is connected to the drain of the second MOS tube. The source of the second MOS tube and the gate of the fourth MOS tube are connected to the common ground terminal voltage of the circuit. The source and drain of the fourth MOS tube are connected to the gate of the third MOS tube. The connection between the drain of the first MOS tube and the drain of the second MOS tube is connected to the comparator. The connection between the gate of the third MOS tube and the source and drain of the fourth MOS tube is connected to the comparator.

[0038] The comparator includes a first comparator ( Figure 2 Comparator 1), the second comparator ( Figure 2 Comparator 2), the third comparator ( Figure 2 The fourth comparator ( Figure 2 In the comparator 4), the inverting input terminal of the first comparator is connected to the gate of the first MOS tube, the inverting input terminal of the fourth comparator is connected to the gate of the first MOS tube, the non-inverting input terminal of the second comparator and the non-inverting input terminal of the first comparator are connected to the first reference voltage of the bandgap reference source, the inverting input terminal of the second comparator and the inverting input terminal of the third comparator are connected to the drain of the first MOS tube and the drain of the third MOS tube, the non-inverting input terminal of the third comparator and the non-inverting input terminal of the fourth comparator are connected to the second reference voltage of the bandgap reference source, and the output terminals of the first comparator, the second comparator, the third comparator and the fourth comparator are connected to the trigger.

[0039] The trigger adopts a D trigger, including the first trigger ( Figure 2 D flip-flop 1), the second flip-flop ( Figure 2 In the D flip-flop 2), the output ends of the first comparator and the second comparator are connected to the first flip-flop, and the output ends of the third comparator and the fourth comparator are connected to the second flip-flop.

[0040] like Figure 2 As shown, after the chip is powered on, D flip-flop 1 and D flip-flop 2 are reset, and two reference voltages V are provided by the basic bandgap reference source of the chip. REF1 and V REF2 , and the phase-locked loop of the chip clock system provides a fixed-frequency clock input CLK, the frequency of which can be flexibly selected according to the clock system on the chip.

[0041] For ease of comparison, Figure 4 The working principle of three different process deviations is shown in the figure, including Fast, Typical and Slow. These three process deviations are common to all integrated circuit processes, mainly manifested in that the typical angle is the ideal situation; the MOS tube V TH will decrease, the on-resistance will decrease, and the on-current I will increase; when the MOS tube V TH will increase, the on-resistance will increase, and the on-current I will decrease.

[0042] like Figure 4 As shown, after the clock is input, when it changes from high level to low level, M1 is turned on, M2 is turned off, and M3 is connected to the power supply and V P Between nodes, M4 is connected to V P The node and ground are used as capacitors. The current through M1 starts at V P Node charging, voltage V P Gradually increase.

[0043] When the chip process deviation is Fast, the M1 tube conduction current I P Larger, V P The voltage is charged quickly. During a clock low level time, the charging voltage is maximum and reaches Figure 4 V PEAK , exceeds the reference voltage V REF1 and V REF2 Therefore, the output of comparator 2 is V P1 is low level, inputs D flip-flop 1, and comparator 3 outputs V P2 It is a low level and inputs D flip-flop 2.

[0044] When the chip process deviation is the typical angle, the M1 tube conduction current I P Medium, V P The voltage charging speed is medium. In one clock low level time, the charging voltage is medium and reaches Figure 4 V REF1 and V REF2 Therefore, the output of comparator 2 is V P1 is low level, inputs D flip-flop 1, and comparator 3 outputs V P2 is high level, input D flip-flop 2.

[0045] When the chip process deviation is slow, the M1 tube conducts current I P Smaller, V P The voltage is charged slowly. During a clock low level time, the charging voltage is minimum and lower than the reference voltage V REF1 and V REF2Therefore, the output of comparator 2 is V P1 is high level, inputs D flip-flop 1, and comparator 3 outputs V P2 is high level, input D flip-flop 2.

[0046] At the same time, the input clock low level of comparators 1 and 4 is lower than the reference voltage V REF1 and V REF2 , the output CLKN is high level and inputs the CLK terminal of the D flip-flop 1-2.

[0047] When the clock signal changes from low level to high level, M2 is turned on and M1 is turned off. Since the on-resistance of M2 is much smaller than that of M1, under the three process angles, V P The node is discharged quickly through M2, V P The voltage drops to 0V quickly. At the same time, the input clock high level of comparators 1 and 4 is higher than the reference voltage V REF1 and V REF2 , the output CLKN is low level, generating a falling edge, which is input to the CLK terminal of the D flip-flop 1-2.

[0048] At the falling edge, according to V P1 and V P2 The state of D flip-flop 1-2 is different. According to the state table 1 of D flip-flop, when the angle is fast, P CODE1 and P CODE2 are 0 / 0 respectively; at typical angles, P CODE1 and P CODE2 are 0 / 1 respectively; at slow angle, P CODE1 and P CODE2 1 / 1 respectively.

[0049] Table 1 State table of D flip-flop

[0050] CLK D Q(n) Q(n+1) Falling edge 0 0 0 Falling edge 0 1 0 Falling edge 1 0 1 Falling edge 1 1 1

[0051] like Figure 3 As shown, the NMOS detection circuit includes a node charge and discharge circuit, a comparator, and a trigger. The node charge and discharge circuit is connected to the input end of the comparator, and the output end of the comparator is connected to the trigger.

[0052] V NThe node charge and discharge circuit includes a first MOS tube M1, a second MOS tube M2, a third MOS tube M3, a fourth MOS tube M4, and an inverter. The clock signal pin of the phase-locked loop is connected to the input end of the inverter and the gate of the second MOS tube. The gate of the first MOS tube is connected to the output end of the inverter and the comparator. The drain of the first MOS tube and the gate of the third MOS tube are connected to the working voltage inside the device. The source of the first MOS tube is connected to the drain of the second MOS tube. The source of the second MOS tube and the source and drain of the fourth MOS tube are connected to the common ground voltage of the circuit. The gate of the fourth MOS tube is connected to the source and drain of the third MOS tube. The connection between the source of the first MOS tube and the drain of the second MOS tube is connected to the comparator. The connection between the source and drain of the third MOS tube and the gate of the fourth MOS tube is connected to the comparator.

[0053] The comparator includes a first comparator ( Figure 3 Comparator 1), the second comparator ( Figure 3 Comparator 2), the third comparator ( Figure 3 The fourth comparator ( Figure 3 In the comparator 4), the inverting input terminal of the first comparator is connected to the gate of the first MOS tube, the inverting input terminal of the fourth comparator is connected to the gate of the first MOS tube, the non-inverting input terminal of the second comparator and the non-inverting input terminal of the first comparator are connected to the first reference voltage of the bandgap reference source, the inverting input terminal of the second comparator and the inverting input terminal of the third comparator are connected to the source of the first MOS tube and the drain and source of the third MOS tube, the non-inverting input terminal of the third comparator and the non-inverting input terminal of the fourth comparator are connected to the second reference voltage of the bandgap reference source, and the output terminals of the first comparator, the second comparator, the third comparator and the fourth comparator are connected to the trigger.

[0054] The trigger adopts a D trigger, including the first trigger ( Figure 3 D flip-flop 1), the second flip-flop ( Figure 3 In the D flip-flop 2), the output ends of the first comparator and the second comparator are connected to the first flip-flop, and the output ends of the third comparator and the fourth comparator are connected to the second flip-flop.

[0055] The basic principle and waveform of the NMOS tube detection circuit are consistent with those of the PMOS tube detection circuit, the difference is that M1, M3 and M4 are NMOS tubes.

[0056] like Figure 4 As shown, P is replaced by N. After the clock is input, when it changes from high level to low level, due to the addition of the inverter, M1 is still turned on, M2 is turned off, and M3 is connected to the power supply and V N Between nodes, M4 is connected to V N The node and ground are both used as capacitors. The current through M1 starts at V NNode charging, voltage V N Gradually increase.

[0057] When the chip process deviation is Fast, the M1 tube conduction current I N Larger, V N The voltage is charged quickly. During a clock low level time, the charging voltage is maximum and reaches Figure 4 V PEAK , exceeds the reference voltage V REF1 and V REF2 Therefore, the output of comparator 2 is V N1 is low level, inputs D flip-flop 1, and comparator 3 outputs V N2 It is a low level and inputs D flip-flop 2.

[0058] When the chip process deviation is the typical angle, the M1 tube conduction current I N Medium, V N The voltage charging speed is medium. In one clock low level time, the charging voltage is medium and reaches Figure 4 V REF1 and V REF2 Therefore, the output of comparator 2 is V N1 is low level, inputs D flip-flop 1, and comparator 3 outputs V N2 is high level, input D flip-flop 2.

[0059] When the chip process deviation is slow, the M1 tube conducts current I N Smaller, V N The voltage is charged slowly. During a clock low level time, the charging voltage is minimum and lower than the reference voltage V REF1 and V REF2 Therefore, the output of comparator 2 is V N1 is high level, inputs D flip-flop 1, and comparator 3 outputs V N2 is high level, input D flip-flop 2.

[0060] At the same time, the input clock low level of comparators 1 and 4 is lower than the reference voltage V REF1 and V REF2 , the output CLKN is high level and inputs the CLK terminal of the D flip-flop 1-2.

[0061] When the clock signal changes from low level to high level, M2 is turned on and M1 is turned off. Since the on-resistance of M2 is much smaller than that of M1, under the three process angles, V N The node is discharged quickly through M2, V N The voltage drops to 0V quickly. At the same time, the input clock high level of comparators 1 and 4 is higher than the reference voltage V REF1 and V REF2, the output CLKN is low level, generating a falling edge, which is input to the CLK terminal of the D flip-flop 1-2.

[0062] At the falling edge, according to V N1 and V N2 The state of D flip-flop 1-2 is different. According to the state table 1 of D flip-flop, when the angle is fast, N CODE1 and N CODE2 are 0 / 0 respectively; at typical angle, N CODE1 and N CODE2 are 0 / 1 respectively; at slow angle, N CODE1 and N CODE2 1 / 1 respectively.

[0063] Since the system clock frequencies of different chips may be different, this circuit does not limit the frequency of CLK, so that different chips can use this circuit structure. Other parameters of the circuit can be modified according to the different CLK frequencies.

[0064] Depend on Figure 4 From the timing in, we can see that when the PMOS tube is fast, the following conditions need to be met:

[0065]

[0066] At typical angles, the following conditions must be met:

[0067]

[0068] At slow angles, the following conditions must be met:

[0069]

[0070] The charging time is determined by the capacitance, voltage and charging current. The capacitance of M3 and M4 is defined as C P , we can get:

[0071]

[0072] Substituting (4) into (1)(2)(3) yields:

[0073]

[0074]

[0075]

[0076] The same applies to NMOS tubes. Just replace P with N in the above formula.

[0077] According to the chip's system clock T CLK And the different current I of MOS tube at different process anglesP(F) ,I P(T) ,I P(S) The degree of change, select the appropriate V through formula (5)(6)(7) REF1 、V REF2 and C P .

[0078] Since the process deviation of the integrated circuit is different on the MOS tube and the metal capacitor, it is possible that the MOS tube is at a fast angle, and the metal capacitor capacitance also increases, so that the charging time remains unchanged or changes slightly. That is, the metal capacitor process deviation compensates for the process deviation of the MOS tube, resulting in the inability to detect the process deviation of the MOS tube. Therefore, this circuit uses a PMOS tube as a capacitor in the PMOS detection circuit, and an NMOS tube as a capacitor in the NMOS detection circuit.

[0079] However, the MOS tube capacitor has a characteristic that the smaller the voltage across the capacitor, the smaller the capacitance; the larger the voltage across the capacitor, the larger the capacitance. P The voltage at point 0 is 0. During the charging process, the capacitance of the M3 tube decreases with charging, and the capacitance of the M4 tube increases with charging. Therefore, taking the fast angle as an example, the charging curve is as follows: Figure 5 As shown in the figure, if only M3 capacitor is used, the curve is convex; if only M4 capacitor is used, the curve is concave; and when M3 and M4 are used in parallel, the compensation charging curve can be approximately equal to a straight line. REF1 and V REF2 The ratio of the charging curve division and the time length ratio are consistent to avoid introducing nonlinear factors, which makes parameter selection more difficult.

[0080] The slower the system clock, the CLK The larger the capacitance, the required capacitance C can be obtained according to equations (5), (6), and (7). P The larger the clock frequency, the larger the chip area occupied. Therefore, a relatively fast clock should be selected as much as possible. However, the comparator flip delay is much larger than that of the inverter, and the delay is different at different process angles. If comparator 1 and comparator 4 are not added, but an inverter is used, the faster the clock frequency, the greater the comparator delay T delay Occupies a T CLK The larger the ratio, taking the typical angle as an example, it may appear Figure 6 The situation where the left side is out of sync. That is, V P1 The flip delay is too large, and when it flips to a low level, CLKN is already at a low level, missing the falling edge. At this time, the D flip-flop 1 will mistakenly output a high level.

[0081] If Comparator 1 and Comparator 4 are added, CLKN and V P1 Delay synchronization, time is T delay , the falling edge of CLKN is still at VP1 At this time, D flip-flop 1 will correctly output a low level.

[0082] The present invention uses MOS tube capacitors to replace general metal capacitors, so that the detection result of the MOS tube is not affected by the process deviation of the metal capacitor; the power MOS tube capacitor and the ground MOS tube capacitor are used to compensate each other, no additional nonlinear factors are introduced, and the parameter selection conditions are simplified; a comparator is used to replace an inverter to synchronize the D-end and CLK-end signals of the trigger, which can avoid the problem of D-end data missing the falling edge due to different delays at different process angles, and ensure the correctness of process deviation detection.

[0083] The above are only preferred embodiments of the present invention and are not intended to limit the present invention in any form. Any ordinary technician in the industry can smoothly implement the present invention as shown in the drawings and above. However, any equivalent changes, modifications and evolutions made by technicians familiar with the profession without departing from the scope of the technical solution of the present invention using the technical content disclosed above are all equivalent embodiments of the present invention. At the same time, any equivalent changes, modifications and evolutions made to the above embodiments based on the essential technology of the present invention are still within the protection scope of the technical solution of the present invention.

Claims

1. An on-chip MOS tube process deviation detection circuit, Features: It includes a node charge and discharge circuit, a comparator, and a trigger, wherein the node charge and discharge circuit is connected to the input end of the comparator, and the output end of the comparator is connected to the trigger; The node charge and discharge circuit comprises a first MOS tube, a second MOS tube, a third MOS tube and a fourth MOS tube. The gate of the first MOS tube and the gate of the second MOS tube are connected to the clock signal pin of the phase-locked loop and the comparator. The source of the first MOS tube and the source and drain of the third MOS tube are connected to the working voltage inside the device. The drain of the first MOS tube is connected to the drain of the second MOS tube. The source of the second MOS tube and the gate of the fourth MOS tube are connected to the common ground voltage of the circuit. The source and drain of the fourth MOS tube are connected to the gate of the third MOS tube. The connection between the drain of the first MOS tube and the drain of the second MOS tube is connected to the comparator. The connection between the gate of the third MOS tube and the source and drain of the fourth MOS tube is connected to the comparator.

2. The on-chip MOS tube process deviation detection circuit as claimed in claim 1, Features: The comparator includes a first comparator, a second comparator, a third comparator, and a fourth comparator. The inverting input terminal of the first comparator is connected to the gate of the first MOS tube, the inverting input terminal of the fourth comparator is connected to the gate of the first MOS tube, the non-inverting input terminal of the second comparator and the non-inverting input terminal of the first comparator are connected to a first reference voltage of a bandgap reference source, the inverting input terminal of the second comparator and the inverting input terminal of the third comparator are connected to the drain of the first MOS tube and the drain of the third MOS tube, the non-inverting input terminal of the third comparator and the non-inverting input terminal of the fourth comparator are connected to a second reference voltage of a bandgap reference source, and the output terminals of the first comparator, the second comparator, the third comparator, and the fourth comparator are connected to the trigger.

3. The on-chip MOS tube process deviation detection circuit as claimed in claim 2, Features: The trigger includes a first trigger and a second trigger. The output ends of the first comparator and the second comparator are connected to the first trigger. The output ends of the third comparator and the fourth comparator are connected to the second trigger.

4. The on-chip MOS tube process deviation detection circuit as claimed in claim 3, Features: The first trigger and the second trigger are D triggers.

5. An on-chip MOS tube process deviation detection circuit, Features: It includes a node charge and discharge circuit, a comparator, and a trigger, wherein the node charge and discharge circuit is connected to the input end of the comparator, and the output end of the comparator is connected to the trigger; The node charge and discharge circuit comprises a first MOS tube, a second MOS tube, a third MOS tube, a fourth MOS tube, and an inverter; a clock signal pin of a phase-locked loop is connected to an input end of the inverter and a gate of the second MOS tube; the gate of the first MOS tube is connected to an output end of the inverter and the comparator; a drain of the first MOS tube and a gate of the third MOS tube are connected to an internal working voltage of the device; a source of the first MOS tube is connected to a drain of the second MOS tube; a source of the second MOS tube and a source and drain of the fourth MOS tube are connected to a common ground voltage of the circuit; a gate of the fourth MOS tube is connected to a source and a drain of the third MOS tube; a connection point between the source of the first MOS tube and the drain of the second MOS tube is connected to the comparator; a connection point between the source and the drain of the third MOS tube and the gate of the fourth MOS tube is connected to the comparator.

6. The on-chip MOS tube process deviation detection circuit as claimed in claim 4, Features: The comparator includes a first comparator, a second comparator, a third comparator, and a fourth comparator. The inverting input terminal of the first comparator is connected to the gate of the first MOS tube, the inverting input terminal of the fourth comparator is connected to the gate of the first MOS tube, the non-inverting input terminal of the second comparator and the non-inverting input terminal of the first comparator are connected to a first reference voltage of a bandgap reference source, the inverting input terminal of the second comparator and the inverting input terminal of the third comparator are connected to the source of the first MOS tube and the drain and source of the third MOS tube, the non-inverting input terminal of the third comparator and the non-inverting input terminal of the fourth comparator are connected to a second reference voltage of a bandgap reference source, and the output terminals of the first comparator, the second comparator, the third comparator, and the fourth comparator are connected to the trigger.

7. The on-chip MOS tube process deviation detection circuit as claimed in claim 6, Features: The trigger includes a first trigger and a second trigger. The output ends of the first comparator and the second comparator are connected to the first trigger. The output ends of the third comparator and the fourth comparator are connected to the second trigger.

8. The on-chip MOS tube process deviation detection circuit as claimed in claim 7, Features: The first trigger and the second trigger are D triggers.

9. An on-chip MOS tube process deviation detection chip, Features: It includes a phase-locked loop, a bandgap reference source, a PMOS detection circuit, an NMOS detection circuit, a digital circuit and an analog circuit, wherein the phase-locked loop is connected to the PMOS detection circuit and the NMOS detection circuit, the bandgap reference source is connected to the PMOS detection circuit and the NMOS detection circuit, the PMOS detection circuit is connected to the digital circuit and the analog circuit, and the NMOS detection circuit is connected to the digital circuit and the analog circuit; The PMOS detection circuit includes a node charge and discharge circuit, a comparator, and a trigger, wherein the node charge and discharge circuit is connected to the input end of the comparator, and the output end of the comparator is connected to the trigger; The node charge and discharge circuit comprises a first MOS tube, a second MOS tube, a third MOS tube, and a fourth MOS tube. The gate of the first MOS tube and the gate of the second MOS tube are connected to the clock signal pin of the phase-locked loop and the comparator. The source of the first MOS tube and the source and drain of the third MOS tube are connected to the working voltage inside the device. The drain of the first MOS tube is connected to the drain of the second MOS tube. The source of the second MOS tube and the gate of the fourth MOS tube are connected to the common ground voltage of the circuit. The source and drain of the fourth MOS tube are connected to the gate of the third MOS tube. The connection between the drain of the first MOS tube and the drain of the second MOS tube is connected to the comparator. The connection between the gate of the third MOS tube and the source and drain of the fourth MOS tube is connected to the comparator. The comparator comprises a first comparator, a second comparator, a third comparator and a fourth comparator, wherein the inverting input terminal of the first comparator is connected to the gate of the first MOS tube, the inverting input terminal of the fourth comparator is connected to the gate of the first MOS tube, the non-inverting input terminal of the second comparator and the non-inverting input terminal of the first comparator are connected to the first reference voltage of the bandgap reference source, the inverting input terminal of the second comparator and the inverting input terminal of the third comparator are connected to the drain of the first MOS tube and the drain of the third MOS tube, the non-inverting input terminal of the third comparator and the non-inverting input terminal of the fourth comparator are connected to the second reference voltage of the bandgap reference source, and the output terminals of the first comparator, the second comparator, the third comparator and the fourth comparator are connected to the trigger; The trigger includes a first trigger and a second trigger. The output ends of the first comparator and the second comparator are connected to the first trigger. The output ends of the third comparator and the fourth comparator are connected to the second trigger.

10. The on-chip MOS tube process deviation detection chip as claimed in claim 9, Features: The NMOS detection circuit includes a node charge and discharge circuit, a comparator, and a trigger, wherein the node charge and discharge circuit is connected to the input end of the comparator, and the output end of the comparator is connected to the trigger; The node charge and discharge circuit comprises a first MOS tube, a second MOS tube, a third MOS tube, a fourth MOS tube, and an inverter; the clock signal pin of the phase-locked loop is connected to the input end of the inverter and the gate of the second MOS tube; the gate of the first MOS tube is connected to the output end of the inverter and the comparator; the drain of the first MOS tube and the gate of the third MOS tube are connected to the working voltage inside the device; the source of the first MOS tube is connected to the drain of the second MOS tube; the source of the second MOS tube and the source and drain of the fourth MOS tube are connected to the common ground voltage of the circuit; the gate of the fourth MOS tube is connected to the source and drain of the third MOS tube; the connection between the source of the first MOS tube and the drain of the second MOS tube is connected to the comparator; the connection between the source and drain of the third MOS tube and the gate of the fourth MOS tube is connected to the comparator; The comparator comprises a first comparator, a second comparator, a third comparator and a fourth comparator, wherein the inverting input terminal of the first comparator is connected to the gate of the first MOS tube, the inverting input terminal of the fourth comparator is connected to the gate of the first MOS tube, the non-inverting input terminal of the second comparator and the non-inverting input terminal of the first comparator are connected to the first reference voltage of the bandgap reference source, the inverting input terminal of the second comparator and the inverting input terminal of the third comparator are connected to the source of the first MOS tube and the drain and source of the third MOS tube, the non-inverting input terminal of the third comparator and the non-inverting input terminal of the fourth comparator are connected to the second reference voltage of the bandgap reference source, and the output terminals of the first comparator, the second comparator, the third comparator and the fourth comparator are connected to the trigger; The trigger includes a first trigger and a second trigger. The output ends of the first comparator and the second comparator are connected to the first trigger. The output ends of the third comparator and the fourth comparator are connected to the second trigger.