Summary of the invention
The technical problem to be solved in the present invention provides a kind of delay circuit, can produce the less time-delay of deviation accurately.
For solving the problems of the technologies described above, delay circuit of the present invention comprises P transistor npn npn the one PMOS pipe, N transistor npn npn the 2nd NMOS pipe, P transistor npn npn the 3rd PMOS pipe, N transistor npn npn the 4th NMOS pipe, first buffer, second buffer or inverter, first electric capacity, second electric capacity, first current source circuit, second current source circuit, the 3rd current source circuit, the 4th current source circuit;
The grid short circuit of the grid of a described PMOS pipe, the 2nd NMOS pipe is used to connect the input signal end, the source shorted of same the 2nd NMOS pipe of the drain electrode of the one PMOS pipe also connects the input of first buffer and an end of first electric capacity, the source electrode of a described PMOS pipe connects supply voltage through first current source circuit, described the 2nd NMOS pipe drains through the second current source circuit ground connection other end ground connection of described first electric capacity;
The grid short circuit of the grid of described the 3rd PMOS pipe, the 4th NMOS pipe is in the output of first buffer, the source shorted of same the 4th NMOS pipe of the drain electrode of the 3rd PMOS pipe also connects the input of second buffer or inverter and an end of second electric capacity, the source electrode of described the 3rd PMOS pipe connects supply voltage through the 3rd current source circuit, the drain electrode of described the 4th NMOS pipe is through the 4th current source circuit ground connection, the other end ground connection of described second electric capacity, the output of described second buffer or inverter is as the delay circuit output;
The one PMOS pipe, the 2nd NMOS pipe, first current source circuit, second current source circuit, first electric capacity are formed the first capacitor charge and discharge switching circuit, and the 3rd PMOS pipe, the 4th NMOS pipe, the 3rd current source circuit, the 4th current source circuit, second electric capacity are formed the second capacitor charge and discharge switching circuit; The charge and discharge time-delay of described two capacitor charge and discharge switching circuits is much larger than rising, the decline time-delay of first buffer, second buffer or inverter; The rising and the decline turnover voltage of described first buffer, second buffer or inverter are identical; The electric current of described second current source circuit is directly proportional with supply voltage; The electric current of described the 4th current source circuit is directly proportional with supply voltage; Described first electric capacity equals the ratio of second electric capacity with the 3rd current source current with the ratio of second current source current; Described first electric capacity equals the ratio of second electric capacity with the 4th current source current with the ratio of first current source current.
The charge and discharge time-delay of described two capacitor charge and discharge switching circuits is more than or equal to 10 times of the rising of described first buffer, second buffer or inverter, the time-delay that descends.
Delay circuit of the present invention, utilize two sections capacitor charge and discharge switching circuit time-delays influence of compensation elimination process deviation mutually, and the current source circuit that is directly proportional with supply voltage of utilization is eliminated the influence of supply voltage to capacitor charge and discharge method produces one section time-delay that has nothing to do with supply voltage and process deviation, can make time-delay more accurate, reduced by the influence of supply voltage and process deviation, thus can improve integrated circuit IP performance (as the reading speed that improves NVM IP etc.), improve the rate of finished products of wafer.
Embodiment
Delay circuit one execution mode of the present invention comprises P transistor npn npn the one PMOS pipe M1, N transistor npn npn the 2nd NMOS pipe M2, P transistor npn npn the 3rd PMOS pipe M3, N transistor npn npn the 4th NMOS pipe M4, first buffer, second buffer, first capacitor C 1, second capacitor C 2, first current source circuit, second current source circuit, the 3rd current source circuit, the 4th current source circuit as shown in Figure 3;
The grid short circuit of a described PMOS pipe M1, the 2nd NMOS pipe M2 is used to connect input signal end in, the drain electrode of the one PMOS pipe M1 is managed the source shorted of M2 and is met the input A of the first buffer M1 and an end of first capacitor C 1 with the 2nd NMOS, the source electrode of described PMOS pipe M1 meets supply voltage VDD through first current source circuit, described the 2nd NMOS pipe M2 drains through the second current source circuit ground connection other end ground connection of described first capacitor C 1;
The grid short circuit of the grid of described the 3rd PMOS pipe M3, the 4th NMOS pipe M4 is in the output B of first buffer, the drain electrode of the 3rd PMOS pipe M3 is managed the source shorted of M4 and is met the input C of second buffer and an end of second capacitor C 2 with the 4th NMOS, the source electrode of described the 3rd PMOS pipe M3 meets supply voltage VDD through the 3rd current source circuit, described the 4th NMOS pipe M4 drain electrode is through the 4th current source circuit ground connection, the other end ground connection of described second capacitor C 2, the output of described buffer is as delay circuit output out;
The one PMOS pipe M1, the 2nd NMOS pipe M2, first current source circuit, second current source circuit, first capacitor C 1 are formed the first capacitor charge and discharge switching circuit; When input signal end in becomes low level by high level, the one PMOS pipe M1 conducting, the 2nd NMOS pipe M2 disconnects, 1 charging of 1 pair first capacitor C of the first current source circuit electric current I, first buffer output high level after the input A of first buffer level reaches its rising turnover voltage V1, the charging time-delay of the first capacitor charge and discharge switching circuit is T1 (promptly the voltage on first electric capacity is charged to the time of the first buffer rising turnover voltage V1 by 0V); When input signal end in becomes high level by low level, the one PMOS pipe M1 disconnects, the 2nd NMOS pipe M2 conducting, first capacitor C 1 is discharged over the ground by the second current source circuit electric current I 2, the first buffer output low level after the input A of first buffer level reaches its decline turnover voltage V1 ', the discharge time-delay of the first capacitor charge and discharge switching circuit is T1 ' (promptly the voltage on first electric capacity is discharged into the time of the first buffer decline turnover voltage V1 ' by supply voltage VDD);
In like manner, the 3rd PMOS pipe M3, the 4th NMOS pipe M4, the 3rd current source circuit, the 4th current source circuit, second capacitor C 2 are formed the second capacitor charge and discharge switching circuit; The charging time-delay of the second capacitor charge and discharge switching circuit is T2 (promptly the voltage on second electric capacity is charged to the time of the second buffer rising turnover voltage V2 by 0V), and the discharge time-delay of the second capacitor charge and discharge switching circuit is T2 ' (promptly the voltage on second electric capacity is discharged into the time of the second buffer decline turnover voltage V2 ' by supply voltage VDD);
The decline time-delay of first buffer is T3, and the time-delay of rising is T3 ', and the decline time-delay of second buffer is T4, and the time-delay of rising is T4 ';
Wherein, the charge and discharge of described two capacitor charge and discharge switching circuits time-delays (T1, T1 ', T2, T2 ') are much larger than the rising of described first buffer, the time-delay that descends (T3 ', T3) and the rising of described second buffer, the time-delay that descends (T4 ', T4), according to the specific requirement of delay circuit precision, the charge and discharge of capacitor charge and discharge switching circuit time-delays can be for more than or equal to the rising of buffer, the time-delay that descends 10 times or greater than the rising of buffer, the time-delay that descends 100 times or greater than the rising of buffer, the time-delay that descends 1500 times; The rising of described first buffer, two buffers of second buffer and the identical V1=V1 ' of decline turnover voltage=V2=V2 '; The described second current source circuit electric current I 2 is with supply voltage VDD be directly proportional (I2=VDD/R, R are constant); Described the 4th current source circuit electric current I 4 is with supply voltage VDD be directly proportional (I4=VDD/R ', R ' is a constant); Described first capacitor C 1 equals the ratio (C2/I3=C1/I2) of second capacitor C 2 with the 3rd current source current I3 with the ratio of the second current source current I2; Described first capacitor C 1 equals the ratio (C1/I1-C2/I4) of second capacitor C 2 with the 4th current source current I4 with the ratio of the first current source current I1.
The sequential of delay circuit shown in Figure 3 as shown in Figure 4.Input signal end in rising edge to the time-delay Trise of delay circuit output out rising edge is:
T
rise=T1’+T2+T3+T4’
Input signal end in trailing edge is to the time-delay T of delay circuit output out trailing edge
FallFor:
T
fall=T1+T2’+T3’+T4
Because the charge and discharge of two capacitor charge and discharge switching circuits time-delays (T1, T1 ', T2, T2 ') are much larger than the rising of two buffers, the time-delay that descends (T3 ', T3, T4 ', T4), therefore
T
rise≈T1’+T2=C1*(VDD-V1)/I2+C2*V1/I3=VDD*C1/I2+V1*(C2/I3-C1/I2)
T
Fall≈ T1+T2 '=C1*V1/I1+C2* (VDD-V1)/I4=VDD*C2/I4+V1* (C1/I1-C2/I4) is because C2/I3=C1/I2, C1/I1-C2/I4, and I2=VDD/R, I4=VDD/R ' therefore can get:
T
rise≈VDD*C1/(VDD/R)=C1*R
T
fall≈VDD*C2/(VDD/R’)=C2*R’
As seen input signal end in rising edge is to the time-delay T of delay circuit output out rising edge
RiseAnd input signal end in trailing edge is to the time-delay T of delay circuit output out trailing edge
FallAll do not have direct relation with supply voltage VDD and turnover voltage, the deviation of time-delay can be smaller.
Another execution mode of delay circuit of the present invention as shown in Figure 4, the difference of delay circuit shown in Figure 4 and delay circuit shown in Figure 3 is, second buffer among Fig. 3 is replaced with an inverter, the drain electrode of the 3rd PMOS pipe M3 is managed the source shorted of M4 and is met the input C of described inverter and an end of second capacitor C 2 with the 4th NMOS, and the output of described inverter is as delay circuit output out.The charge and discharge time-delays (T1, T1 ', T2, T2 ') of described two capacitor charge and discharge switching circuits are much larger than rising, the decline time-delay of described inverter, according to the specific requirement of delay circuit precision, the charge and discharge of capacitor charge and discharge switching circuit time-delays can be for more than or equal to the rising of described inverter, the time-delay that descends 10 times or greater than the rising of inverter, the time-delay that descends 100 times or greater than the rising of inverter, the time-delay that descends 1500 times; The rising and the decline turnover voltage of described first buffer, inverter are identical.Making second buffer into inverter can obtain, with the irrelevant input signal end in rising edge of supply voltage VDD and process deviation to the time-delay of delay circuit output out trailing edge and the time-delay that has nothing to do with supply voltage VDD and process deviation from input signal end in trailing edge to delay circuit output out rising edge.
Delay circuit of the present invention, utilize two sections capacitor charge and discharge switching circuit time-delays influence of compensation elimination process deviation mutually, and the current source circuit that is directly proportional with supply voltage VDD of utilization is eliminated the influence of supply voltage to capacitor charge and discharge method produces one section time-delay that has nothing to do with supply voltage and process deviation, can make time-delay more accurate, reduced by the influence of supply voltage and process deviation, thus improve integrated circuit IP performance (as the reading speed that improves NVM IP etc.), improve the rate of finished products of wafer.