A POR circuit and its design method
By adjusting the current mirror ratio and device size in the POR circuit, the threshold voltage with zero temperature coefficient is realized, and the threshold instability problem under the influence of PVT in the prior art is solved, thereby improving the accuracy and stability of the circuit.
Patent Information
- Application Number
- CN202010890385.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-29
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2040-08-29
AI Technical Summary
The existing POR circuits cannot provide sufficiently accurate threshold voltages because the flip threshold is greatly affected by PVT. Especially in third-party IPs, performance may be unstable when the operating voltage exceeds the specified range.
A POR circuit is designed, including a reference current generation circuit, a voltage detection circuit and a current comparator. By adjusting the current mirror ratio and device size, the POR threshold is realized to become a zero temperature coefficient, tracking the NMOS and PMOS threshold changes, and is independent of PVT.
The accuracy and stability of the POR threshold are achieved, and the dependence on PVT is reduced, and it is suitable for applications where high accuracy is required.
Smart Images

Figure CN111781984B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of POR circuits, and in particular to a POR circuit and a design method thereof. Background Art
[0002] Most of the existing POR circuits are based on the comparison with the threshold voltage of MOS tubes. Therefore, their flip threshold is greatly affected by PVT (process, voltage, temperature), and it is impossible to give a more accurate threshold voltage. For some applications, especially when third-party IP is used, the integration manual of these IPs may clearly specify the expected operating voltage range. If the operating voltage exceeds the specified range, the behavior or performance of the IP will not be guaranteed. In this case, if the POR threshold changes too much, it is unacceptable, so a POR circuit with a more accurate threshold is needed. Summary of the invention
[0003] The object of the present invention is to provide a POR circuit and a design method thereof to solve the problems raised in the above background technology.
[0004] To achieve the above object, the present invention provides the following technical solution: a POR circuit, comprising a reference current generating circuit, a voltage detecting circuit and a current comparator, wherein the reference current generating circuit, the voltage detecting circuit and the current comparator are connected in parallel to VCC.
[0005] Furthermore, the reference current generating circuit includes a resistor R1, a current mirror and MP1, and after being connected, the voltage generated is approximately close to the threshold voltage of a MOS tube, and the reference current generated is: in N is the proportional coefficient of the NMOS current mirror in the circuit.
[0006] The voltage detection circuit consists of resistor R2 and BJT tube Q1, and the current it generates is:
[0007]
[0008] Furthermore, the current comparator is composed of MP2 and BJT Q2. The base of BJT Q2 is connected to the base of BJT Q1. The emitters of both are grounded. The collector of BJT Q1 is connected to VCC in series with resistor R2. The collector of BJT Q2 is connected in parallel with the reset output terminal and MP2. MP2 is connected to VCC.
[0009] And the BJT tubes Q2 and Q1 form a current mirror, and MP2 and MP1 form a current mirror. When the current of MP2 is greater than the current of Q2, a high level is output, and when the current of MP2 is less than the current of Q2, a low level is output.
[0010] Another technology proposed by the present invention includes a design method of a POR circuit, comprising the following steps:
[0011] S1: Determine the overall architecture of the designed POR circuit;
[0012] S2: According to the characteristics of the POR circuit, it is divided into three parts: reference current generation circuit, voltage detection circuit and current comparator;
[0013] S3: Select appropriate devices according to the accuracy requirements of the current comparator and the current mirror to obtain the corresponding current mirror;
[0014] S4: Establish a flip threshold expression of the circuit POR, perform circuit simulation, and gradually adjust circuit parameters according to the simulation results until the design goal is achieved;
[0015] S5: Carry out layout design and finally complete the overall circuit design.
[0016] Compared with the prior art, the beneficial effects of the present invention are as follows: a POR circuit and a design method thereof proposed by the present invention adjust the current mirror ratio and / or the size of the device so that the threshold of the POR becomes a zero temperature coefficient and can track the threshold changes of NMOS and PMOS; or the threshold of the POR becomes a zero temperature coefficient and is independent of PVT (PVT refers to process, power supply voltage, and temperature). BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 This is a POR structure diagram of Embodiment 1 of the present invention;
[0018] Figure 2 The waveforms of key nodes during the power-on process of the first embodiment of the present invention;
[0019] Figure 3 The principle of POR threshold voltage temperature compensation according to the first embodiment of the present invention;
[0020] Figure 4 This is a specific structural diagram of Embodiment 1 of the present invention;
[0021] Figure 5 This is a POR structure diagram of Embodiment 2 of the present invention;
[0022] Figure 6 The waveforms of key nodes during the power-on process of the second embodiment of the present invention;
[0023] Figure 7 The principle of POR threshold voltage temperature compensation according to the second embodiment of the present invention;
[0024] Figure 8 This is a specific structural diagram of Embodiment 2 of the present invention;
[0025] Fig. 9 This is a POR structure diagram of Embodiment 3 of the present invention;
[0026] Fig.10 The waveforms of key nodes during the power-on process of the third embodiment of the present invention;
[0027] Fig.11 The principle of POR threshold voltage temperature compensation according to the third embodiment of the present invention;
[0028] Fig.12 This is a specific structural diagram of embodiment 3 of the present invention. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0030] Embodiment 1:
[0031] See also Figure 1 A POR circuit includes a reference current generating circuit, a voltage detecting circuit and a current comparator, wherein the reference current generating circuit, the voltage detecting circuit and the current comparator are connected in parallel to VCC.
[0032] The dotted box is a reference current generating circuit, which includes a resistor R1, a current mirror and MP1. After being connected, the voltage generated is approximately close to the threshold voltage of a MOS tube. The reference current generated is: in N is the proportionality factor (usually 4) of the NMOS current mirror (not shown in this figure) in the circuit.
[0033] The voltage detection circuit consists of resistor R2 and BJT tube Q1, and the current it generates is:
[0034]
[0035] The current comparator is composed of MP2 tube and BJT tube Q2. The base of BJT tube Q2 is connected to the base of BJT tube Q1, and the emitters of both are grounded. The collector of BJT tube Q1 is connected to VCC in series with resistor R2. The collector of BJT tube Q2 is connected in parallel with the reset output terminal and MP2. MP2 is connected to VCC.
[0036] And the BJT tubes Q2 and Q1 form a current mirror, and MP2 and MP1 form a current mirror. When the current of MP2 is greater than the current of Q2, a high level is output, and when the current of MP2 is less than the current of Q2, a low level is output.
[0037] In order to better demonstrate the POR circuit design process, this embodiment demonstrates a design method for a POR circuit, including the following steps:
[0038] Step 1: Determine the overall architecture of the designed POR circuit;
[0039] Step 2: According to the characteristics of the POR circuit, it is divided into three parts: reference current generation circuit, voltage detection circuit and current comparator;
[0040] Step 3: Select appropriate devices according to the accuracy requirements of the current comparator and the current mirror to obtain the corresponding current mirror;
[0041] Step 4: Establish the flip threshold expression of the circuit POR, perform circuit simulation, and gradually adjust the circuit parameters according to the simulation results until the design goal is achieved;
[0042] Step 5: Carry out layout design and finally complete the overall circuit design.
[0043] Embodiment 1:
[0044] See also Figure 2 In the power-on phase, when VCC gradually and slowly increases from 0, the reference current will be generated first (so the current Imp2 will be generated first) because the operating voltage of the reference current generation module is very low.
[0045] When VCC rises to about 0.6V, Imp2 is almost stable, and the current Iq1 of the voltage detection circuit has just been generated (that is, Iq2 has just been generated). At this stage, because the P branch current Imp2 is greater than the N branch current Iq2, the current comparator output node X outputs a high level. In fact, point X rises with the rise of VCC, and after passing through the inverter, the output POR_OK is low.
[0046] As VCC further increases, the P branch current Imp2 has become constant and no longer changes, while the N branch current Iq2 increases linearly with VCC; when Iq2 increases to exceed Imp2, the current comparator output point X flips and outputs a low level. After passing through the inverter, the output POR_OK is a high level. The actual situation is that POR_OK continues to rise with the rise of VCC until VCC is powered on.
[0047] The moment of reversal is t1, when Iq2 = Imp2. The VCC corresponding to this moment is called the reversal threshold of POR. Therefore, we have:
[0048]
[0049] Thus:
[0050]
[0051] Therefore, the threshold expression of the circuit POR is established, assuming here that the mirror ratio of MP2 to MP1 is 1:1, and the mirror ratio of Q2 to Q1 is also 1:1.
[0052] When MP2 is not a 1:1 mirror ratio with MP1, and Q2 is not a 1:1 mirror ratio with Q1, a more general expression for the POR threshold is as follows:
[0053]
[0054] in is the ratio of the width of MP2 to that of MP1 (they have the same L value), It is the ratio of the areas of Q1 to Q2.
[0055] See also Figure 3 , It is exactly the same as the reference voltage output expression. In this expression, the first term Vbe is the Vbe voltage of the BJT tube and can be written as:
[0056] Vbe=Vg0-αT
[0057] Where V g0 It is called the bandgap voltage, which is a physical constant related to silicon materials, about 1.2V, and has nothing to do with PVT. α is the temperature coefficient of Vbe, which is about -2mV / ℃.
[0058] Item 2 is a positive temperature coefficient term, which is proportional to the absolute temperature and is called the PTAT term. The positive temperature coefficient can be adjusted; in particular, when When Vbe is ≈0.6V, the positive temperature coefficient of the second term is approximately +2mV / ℃, which just offsets the negative temperature coefficient of Vbe. After temperature compensation, the expression of POR is:
[0059] VCC por =V g0 -αT+αT≈1.2V
[0060] Nothing to do with PVT.
[0061] By adjusting the ratio of R2 / R1, the size ratio of the current mirror MP2 to MP1, and the size ratio of the current mirror Q2 to Q1, the threshold of the POR is made to have a zero temperature coefficient.
[0062] See also Figure 4 , which is a specific embodiment of Example 1, provides a specific circuit of a low-voltage and low-power reference generation circuit, and a POR circuit structure based on the reference circuit.
[0063] MN0 and MN1 are NMOS current mirrors with a typical ratio of 4:1, and need to be designed to work in the subthreshold region (W / L must be large enough, for example, MN0 is [20u / 1u], MN1 is [20u / 1u]x4, and the current is 500nA).
[0064] Assuming VCC = 1.5V, through design, the flip threshold of the POR circuit can be kept constant at around 1.2V, and the influence of PVT is almost negligible. This is a very good choice for applications that require accurate absolute value of the POR flip threshold.
[0065] Embodiment 2:
[0066] See also Figure 5 , a new POR architecture is proposed, which can simultaneously track the threshold voltage changes of NMOS and PMOS tubes, and compensate for the temperature, with a near-zero temperature characteristic.
[0067] The whole circuit can be divided into three parts: reference current generation circuit, voltage detection circuit and current comparator.
[0068] The reference current generating circuit is the same as that in the first embodiment.
[0069] The voltage detection circuit is composed of MOS tubes MN3 and MP3. These two tubes are designed to work in the saturation region. The derivation process of the current expression generated is as follows:
[0070] The current equation for the MP3 column is:
[0071]
[0072] For the MN3 column current equation:
[0073]
[0074] Because I mp3 =I mn3 , combining the above two equations, we can solve:
[0075]
[0076] The current comparator is composed of MP2 tube and MN2 tube, in which MN3 and MN2 form a current mirror, and MP2 and MP1 form a current mirror. When the current of MP2 is greater than the current of MN2, it outputs a high level, and when the current of MP2 is less than the current of MN2, it outputs a low level.
[0077] See also Figure 6When VCC starts to increase slowly from 0, because the operating voltage of the reference current generation module is very low, the current comparator will be generated first (so the current Imp2 will be generated first).
[0078] When VCC rises to almost VTH N3 +VTH P3 At this time, Imp2 is almost stable, and the current Imn3 of the voltage detection circuit has just been generated (that is, Imn2 has just been generated). In this stage, because the P branch current Imp2 is greater than the N branch current Imn2, the current comparator outputs a high level at point X. In fact, point X rises with the rise of VCC, and after passing through the inverter, the output POR_OK is low.
[0079] As VCC further increases, the P branch current Imp2 has become constant and no longer changes, while the N branch current Imn2 increases squarely with VCC; when Imn2 increases to exceed Imp2, the current comparator output point X flips and outputs a low level. After passing through the inverter, the output POR_OK is a high level. The actual situation is that POR_OK rises as VCC rises.
[0080] The moment of reversal is t1, when Imn2 = Imp2, and the VCC corresponding to this moment is called the reversal threshold of POR. Therefore:
[0081]
[0082] Thus:
[0083]
[0084] This is the threshold expression of the POR of the circuit. It is assumed here that the mirror ratio of MP2 to MP1 is 1:1, and the mirror ratio of MN2 to MN3 is also 1:1.
[0085] When MP2 is not a 1:1 mirror ratio with MP1, and MN2 is not a 1:1 mirror ratio with MN3, a more general expression for the POR threshold is as follows:
[0086]
[0087] in is the ratio of the width of MP2 to that of MP1 (they have the same L value), It is the ratio of the width of NM3 to that of NM2 (their L values are the same).
[0088] See also Figure 7 , the principle of voltage temperature compensation:
[0089]
[0090] In this expression, the first term VTH mn3+ VTH mp3 , has a negative temperature coefficient. Its expression can be written as:
[0091] Vbe=V tn0 +V Tp0 -αT
[0092] Where V tn0 + is the threshold voltage of MN3 tube at 0K, and Vtp0 is the threshold voltage of MP3 tube at 0K. They are related to Corner, so VCCpor can track the changes of Corner of NMOS tube and PMOS tube at the same time.
[0093] Item 2 It is a positive temperature coefficient term, which is proportional to the square root of the absolute temperature. By adjusting βn3 and βp3 (that is, adjusting the aspect ratio of MN3 and MP3), the size of the positive temperature coefficient can be adjusted. By taking MN3 and MP3 with appropriate aspect ratio, VTH can be exactly offset. mn3+ VTH mp3 The negative temperature coefficient of the temperature is reduced to achieve a zero temperature coefficient. In fact, it is impossible to achieve complete compensation because the negative temperature is a linear term and the positive temperature is a square root term; according to the Taylor series expansion principle, the first-order temperature term can be offset and the remaining high-order terms. After temperature compensation, the expression of POR is:
[0094]
[0095] Where o(T-Tr) represents the high-order residual term of temperature; Tr is room temperature, and the typical value is 298K. In other words, the first-order compensation of temperature can be achieved, and it is approximately independent of temperature within a certain temperature range centered on the room temperature Tr, which is sufficient for occasions with low requirements. Compared with the other structures we proposed, this structure can save a resistor R2, which is usually larger in area, so it saves more area.
[0096] By adjusting the width-to-length ratio of MN3 and MP3, the size ratio of the current mirror MP2 and MP1, and the size ratio of the current mirror MN2 and MN3, the threshold of POR becomes zero temperature coefficient near room temperature Tr, and can track the threshold changes of NMOS and PMOS.
[0097] See also Figure 8 , which is a specific embodiment of Example 2, provides a specific circuit of a low-voltage and low-power reference generation circuit, and a POR circuit structure based on the reference circuit.
[0098] MN0 and MN1 are NMOS current mirrors with a typical ratio of 4:1, and need to be designed to work in the subthreshold region (W / L must be large enough, for example, MN0 is [20u / 1u], MN1 is [20u / 1u]x4, and the current is 500nA).
[0099] Assuming VCC = 1.5V, by design, the flip threshold of the POR circuit is around 1.1V, which is independent of temperature. Under FFCorner, the POR flip threshold is around 0.9V (the minimum operating voltage of the circuit is also reduced by about 0.2V); under SSCorner, the POR flip threshold is around 1.3V (the minimum operating voltage of the circuit is also increased by about 0.2V).
[0100] Embodiment three:
[0101] See also Fig. 9 , a new POR architecture is proposed, which can simultaneously track the threshold voltage changes of NMOS and PMOS tubes, and compensate for the temperature, with a near-zero temperature characteristic.
[0102] The whole circuit can be divided into three parts: reference current generation circuit, voltage detection circuit and current comparator.
[0103] The reference current generating circuit is the same as that in the first embodiment.
[0104] The voltage detection circuit, consisting of resistors R2, MN3 and MP3, generates a current of:
[0105]
[0106] In the design, MN3 and MP3 need to work in the subthreshold region, which can be achieved by increasing the width-to-length ratio of MN3 and MP3: for example, when a current of 1uA flows, the size of MN3 is 20u / 0.2u, and the size of MP3 is 20u / 0.2u. In this case, VGS mn3 ≈VTH mn3 , VGS mp3 ≈VTH mp3 , so the branch current formula becomes:
[0107]
[0108] 3) Current comparator, composed of MP2 tube and MN2 tube. MN3 and MN2 form a current mirror, and MP2 and MP1 form a current mirror. When the current of MP2 is greater than the current of MN2, it outputs a high level, and when the current of MP2 is less than the current of MN2, it outputs a low level.
[0109] See also Fig.10When VCC starts to increase gradually and slowly from 0, because the operating voltage of the reference current generating module is very low, the reference current will be generated first (so the current Imp2 will be generated first).
[0110] When VCC rises to almost VTH N3 +VTH P3 At this time, Imp2 is almost stable, and the current Imn3 of the voltage detection circuit has just been generated (that is, Imn2 has just been generated). In this stage, because the P branch current Imp2 is greater than the N branch current Imn2, the current comparator outputs a high level at point X. In fact, point X rises with the rise of VCC, and after passing through the inverter, the output POR_OK is low.
[0111] As VCC further increases, the P branch current Imp2 has become constant and no longer changes, while the N branch current Imn2 increases linearly with VCC; when Imn2 increases to exceed Imp2, the current comparator output point X flips and outputs a low level. After passing through the inverter, the output POR_OK is a high level. The actual situation is that POR_OK rises as VCC rises.
[0112] The moment of reversal is t1, when Imn2 = Imp2, and the VCC corresponding to this moment is called the reversal threshold of POR. Therefore:
[0113]
[0114] Thus:
[0115]
[0116] This is the threshold expression of the POR of the circuit. It is assumed here that the mirror ratio of MP2 to MP1 is 1:1, and the mirror ratio of MN2 to MN3 is also 1:1.
[0117] When MP2 is not a 1:1 mirror ratio with MP1, and MN2 is not a 1:1 mirror ratio with MN3, a more general expression for the POR threshold is as follows:
[0118]
[0119] in is the ratio of the width of MP2 to that of MP1 (they have the same L value), It is the ratio of the width of NM3 to that of NM2 (their L values are the same).
[0120] See also Fig.11 , observe the expression of POR:
[0121]
[0122] In this expression, the first term VTH mn3 +VTH mp3 , has a negative temperature coefficient. Its expression can be written as:
[0123] Vbe=Vtn0+Vtp0-αT
[0124] Where V tn0 is the threshold voltage of MN3 tube at 0K, V tp0 It is the threshold voltage of MP3 tube at 0K. They are related to Corner, so VCCpor can track the changes of Corner of NMOS tube and PMOS tube at the same time.
[0125] Item 2 is a positive temperature coefficient term, which is proportional to the absolute temperature and is called the PTAT term. The size of the positive temperature coefficient can be adjusted by taking the appropriate ratio Can just offset VTH mn3 +VTH mp3 The negative temperature coefficient of the POR is thus achieved by reducing the temperature coefficient. After temperature compensation, the expression of POR is:
[0126] VCCpor=Vtn0+Vtp0-αT+αT=Vtn0+Vtp0
[0127] It has nothing to do with voltage or temperature, and only depends on the corner of the MOS tube.
[0128] See also Fig.12 , which is a specific embodiment of Example 3, is a specific embodiment, which provides a specific circuit of a low-voltage and low-power reference generating circuit, and a POR circuit structure based on the reference circuit.
[0129] MN0 and MN1 are NMOS current mirrors with a typical ratio of 4:1, and need to be designed to work in the subthreshold region (W / L must be large enough, for example, MN0 is [20u / 1u], MN1 is [20u / 1u]x4, and the current is 500nA).
[0130] Assuming VCC = 1.5V, by design, the flip threshold of the POR circuit is around 1.1V, which is independent of temperature. Under FFCorner, the POR flip threshold is around 0.9V (the minimum operating voltage of the circuit is also reduced by about 0.2V); under SSCorner, the POR flip threshold is around 1.3V (the minimum operating voltage of the circuit is also increased by about 0.2V).
[0131] By adjusting the ratio of R2 / R1, the width-to-length ratio of MN3 and MP3, the size ratio of the current mirror MP2 and MP1, and the size ratio of the current mirror MN2 and MN3, the threshold of POR becomes zero temperature coefficient and can track the threshold changes of NMOS and PMOS.
[0132] In summary, the POR circuit and design method of the present invention adjust the current mirror ratio and / or the size of the device so that the threshold of the POR becomes a zero temperature coefficient and can track the threshold changes of NMOS and PMOS; or the threshold of the POR becomes a zero temperature coefficient and is independent of PVT (PVT refers to process, power supply voltage, and temperature).
[0133] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A POR circuit, characterized in that: The circuit includes a reference current generating circuit, a voltage detecting circuit, and a current comparator. The reference current generating circuit, the voltage detecting circuit, and the current comparator are connected in parallel to VCC. The reference current generating circuit includes a resistor R1, an NMOS current mirror, and an MP1 transistor. After the connection, the voltage generated is approximately close to the threshold voltage of a MOS transistor. The reference current generated is: in N is the proportional coefficient of the NMOS current mirror in the circuit; the voltage detection circuit consists of resistor R2 and BJT tube Q1, and the current it generates is: The current comparator consists of MP2 and BJT Q2. The base of BJT Q2 is connected to the base of BJT Q1, and the emitters of both are grounded. The collector of BJT Q1 is connected to VCC in series with resistor R2. The collector of BJT Q2 is connected to the reset output and MP2. The source of MP2 is connected to VCC. BJT Q2 and Q1 form a current mirror. MP2 and MP1 form a current mirror. When the current of MP2 is greater than the current of Q2, the output is high. When the current of MP2 is less than the current of Q2, the output is low. Assume that the mirror ratio of MP2 to MP1 is 1:1, and the mirror ratio of Q2 to Q1 is also 1:
1. The POR flip threshold is If MP2 and MP1 are not in a 1:1 mirror ratio, and Q2 and Q1 are not in a 1:1 mirror ratio, the POR threshold is in is the ratio of the width of MP2 to that of MP1, It is the ratio of the areas of Q1 to Q2.
2. A method for designing a POR circuit as claimed in claim 1, characterized in that: The following steps are involved: S1: Determine the overall architecture of the designed POR circuit; S2: According to the characteristics of the POR circuit, it is divided into three parts: reference current generation circuit, voltage detection circuit and current comparator; S3: Select appropriate devices according to the accuracy requirements of the current comparator and the current mirror to obtain the corresponding current mirror; S4: Establish the flip threshold expression of the circuit POR and perform circuit simulation. According to the simulation results, gradually adjust the circuit parameters until the design goal is achieved. S5: Carry out layout design and finally complete the overall circuit design.
