Search

CN-122017318-A - On-chip current detection circuit and method

CN122017318ACN 122017318 ACN122017318 ACN 122017318ACN-122017318-A

Abstract

The invention provides an on-chip current detection circuit and method, wherein the circuit comprises an operational amplifier circuit, a first transistor, a second transistor, a third transistor, a first resistor and a second resistor, the first transistor, the second transistor and the first resistor are respectively connected with the operational amplifier circuit, the first transistor is connected with the first resistor, the second transistor is connected with the second resistor, the second resistor is connected with the third transistor, an accurate voltage is input into a negative input end of the operational amplifier circuit, the voltage of a positive input end of the operational amplifier circuit is equal to the accurate voltage according to the characteristics of the virtual short and the virtual break of the operational amplifier circuit, a first current flowing through the first transistor is calculated according to the voltage of the positive input end and the first resistor, the number ratio of the transistors is set, the second current is calculated, the current on a power supply VDD is measured through the second current, the current inside a radio frequency chip is measured, the complexity of circuit design is greatly reduced, and the measurement of the current size can be completed through setting the number ratio of the transistors.

Inventors

  • XIAO WENYI
  • ZHANG FUQUAN
  • WANG GUORUI

Assignees

  • 上海芯璨电子科技有限公司

Dates

Publication Date
20260512
Application Date
20260213

Claims (10)

  1. 1. An on-chip current detection circuit is characterized by comprising an operational amplifier circuit, a first transistor, a second transistor, a third transistor, a first resistor and a second resistor; The first transistor, the second transistor and the first resistor are respectively connected with the operational amplifier circuit, the first transistor is connected with the first resistor, the second transistor is connected with the second resistor, and the second resistor is connected with the third transistor; The negative input end of the operational amplifier circuit inputs accurate voltage, and the voltage of the positive input end of the operational amplifier circuit is equal to the accurate voltage according to the characteristics of the virtual short and the virtual break of the operational amplifier circuit; calculating a first current flowing through the first transistor based on the voltage of the positive input terminal and the first resistance; Setting the number ratio of the transistors, calculating a second current according to the number ratio, and measuring the current on the power supply VDD through the second current so as to measure the internal current of the radio frequency chip.
  2. 2. The on-chip current detection circuit according to claim 1, wherein a negative input terminal of the operational amplifier circuit is connected to the accurate voltage, a positive input terminal of the operational amplifier circuit is connected to a drain electrode of the first transistor and one end of the first resistor, an output terminal of the operational amplifier circuit is connected to a gate electrode of the first transistor and a gate electrode of the second transistor, respectively, and the other end of the first resistor is grounded.
  3. 3. The on-chip current detection circuit according to claim 2, wherein a source of the first transistor is connected to the power supply VDD, a source of the second transistor is connected to the power supply VDD, and a drain of the second transistor is connected to one end of the second resistor.
  4. 4. The on-chip current detection circuit according to claim 3, wherein the other end of the second resistor is connected to the drain of the third transistor, the source of the third transistor is grounded, and the gate of the third transistor is connected to a current test mode enable signal.
  5. 5. The on-chip current detection circuit of claim 4, wherein the current test mode enable signal is set to 1 when measuring current and to 0 when the radio frequency chip is operating normally.
  6. 6. The on-chip current detection circuit of claim 1, wherein the ratio of the number of transistors is a ratio of the number of the first transistors to the number of the second transistors.
  7. 7. The on-chip current detection circuit of claim 6, wherein the number ratio of transistors is 1:100.
  8. 8. An on-chip current detection method, characterized in that it is applied to the on-chip current detection circuit according to any one of claims 1 to 7, the detection circuit including an operational amplifier circuit, a first transistor, a second transistor, a third transistor, a first resistor, and a second resistor, the method comprising: The negative input end of the operational amplifier circuit inputs accurate voltage, and the voltage of the positive input end of the operational amplifier circuit is equal to the accurate voltage according to the characteristics of the virtual short and the virtual break of the operational amplifier circuit; calculating a first current flowing through the first transistor based on the voltage of the positive input terminal and the first resistance; setting a number ratio of transistors, and calculating a second current according to the number ratio; and measuring the current on the power supply VDD through the second current, thereby measuring the internal current of the radio frequency chip.
  9. 9. An electronic device comprising a memory, a processor, the memory having stored thereon a computer program executable on the processor, characterized in that the processor implements the method of claim 8 when executing the computer program.
  10. 10. A computer readable medium having non-volatile program code executable by a processor, the program code causing the processor to perform the method of claim 8.

Description

On-chip current detection circuit and method Technical Field The present invention relates to the field of integrated circuits, and more particularly, to an on-chip current detection circuit and method. Background In many high-precision integrated circuits, very precise on-chip current is required, but not all chips can be externally connected with high-precision resistors, and the characteristic that the on-chip resistor changes along with process and temperature changes causes the on-chip current to change along with the process and the temperature, which is a non-ideal factor in chip design, so that on-chip current is often made to be measurable and adjustable, and how to detect the current, especially the tiny current on a low-power chip, is one of the problems. Referring to fig. 1, the circuit includes a driving MOS transistor, a clamping unit, a measuring unit, an input current source, and an output current source. The circuit comprises feedback, introduces an extra loop to influence stability, has a complex circuit structure and large area, and has a large variation range for current fluctuating along with the process, so that the circuit can be over-designed by using the structure. Disclosure of Invention In view of the above, the present invention aims to provide an on-chip current detection circuit and method, which greatly reduce the complexity of circuit design, and can complete the measurement of the current by setting the number ratio of transistors without feedback. In a first aspect, an embodiment of the present invention provides an on-chip current detection circuit, where the detection circuit includes an operational amplifier circuit, a first transistor, a second transistor, a third transistor, a first resistor, and a second resistor; The first transistor, the second transistor and the first resistor are respectively connected with the operational amplifier circuit, the first transistor is connected with the first resistor, the second transistor is connected with the second resistor, and the second resistor is connected with the third transistor; The negative input end of the operational amplifier circuit inputs accurate voltage, and the voltage of the positive input end of the operational amplifier circuit is equal to the accurate voltage according to the characteristics of the virtual short and the virtual break of the operational amplifier circuit; calculating a first current flowing through the first transistor based on the voltage of the positive input terminal and the first resistance; Setting the number ratio of the transistors, calculating a second current according to the number ratio, and measuring the current on the power supply VDD through the second current so as to measure the internal current of the radio frequency chip. Further, the negative input end of the operational amplifier circuit is connected with the accurate voltage, the positive input end of the operational amplifier circuit is respectively connected with the drain electrode of the first transistor and one end of the first resistor, the output end of the operational amplifier circuit is respectively connected with the grid electrode of the first transistor and the grid electrode of the second transistor, and the other end of the first resistor is grounded. Further, a source electrode of the first transistor is connected to the power supply VDD, a source electrode of the second transistor is connected to the power supply VDD, and a drain electrode of the second transistor is connected to one end of the second resistor. Further, the other end of the second resistor is connected with the drain electrode of the third transistor, the source electrode of the third transistor is grounded, and the grid electrode of the third transistor is connected with a current test mode enabling signal. Further, when the current is measured, the current test mode enabling signal is set to 1, and when the radio frequency chip is in normal operation, the current test mode enabling signal is set to 0. Further, the number ratio of the transistors is the number ratio of the first transistor to the second transistor. Further, the number ratio of the transistors is 1:100. In a second aspect, an embodiment of the present invention provides an on-chip current detection method, which is applied to the on-chip current detection circuit described above, where the detection circuit includes an operational amplifier circuit, a first transistor, a second transistor, a third transistor, a first resistor, and a second resistor, and the method includes: The negative input end of the operational amplifier circuit inputs accurate voltage, and the voltage of the positive input end of the operational amplifier circuit is equal to the accurate voltage according to the characteristics of the virtual short and the virtual break of the operational amplifier circuit; calculating a first current flowing through the first transistor based on the voltage of the p