Current subtraction circuit and operation method thereof
By precharging the output node during the reset phase of the current subtraction circuit and utilizing the 1/gm characteristics of the output node to accelerate discharge, the problem of slow response speed of the existing current subtraction circuit is solved, achieving faster settling time and low power. consumption circuit design.
Patent Information
- Application Number
- CN202410876523.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-09-27
AI Technical Summary
When improving the accuracy of the mirror circuit, the existing current subtraction circuit increases the parasitic capacitance of node A, causing the circuit response speed to be limited when the input current difference is small.
The reset precharge circuit is used to precharge the output node during the reset phase of the current subtraction circuit, and the established potential is close to the final stable voltage, thereby reducing the circuit establishment time during the working phase, and accelerating the discharge through the 1/gm characteristic of the output node to improve the response speed. .
It effectively reduces the circuit setup time, improves response speed, maintains performance and design optimization in low-power applications, and meets the needs of multiple occasions within the chip.
Smart Images

Figure CN118709704A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of integrated circuits, and in particular to a current subtraction circuit and an operating method thereof. Background Art
[0002] In analog circuit design, accurate current control and measurement are the key to achieving high-performance electronic systems. As a basic current control unit, current subtraction circuits are widely used in precision instruments, sensor interfaces, power management and other fields.
[0003] Figure 1 FIG. 1 is a circuit diagram of a current subtraction circuit according to the prior art. Figure 1 As shown, the existing current subtraction circuit includes: mirror circuits 101, 102, 103 and 104 and current subtraction branches. Among them, the mirror circuit 101 is configured to mirror the first input current Ix to the first current branch, the mirror circuit 102 is configured to mirror the second input current Iy to the second current branch, and the second current branch is further divided into a first sub-branch and a second sub-branch. The mirror circuit 103 is configured to ensure that the current flowing through the first current branch and the first sub-branch is the same. Therefore, the current flowing through the second sub-branch will be equal to the desired current difference (that is, the current flowing through the second sub-branch will be equal to the difference between the first input current Ix and the second input current Iy). The mirror circuit 104 is configured to mirror and amplify the current of the second sub-branch to obtain the output current Iout.
[0004] Specifically, the mirror circuit 101 includes transistors M1 and M2, and then the first input current Ix flowing through the transistor M1 is mirrored to the transistor M2 through the gate connection path between the transistors M1 and M2. If the transistors M1 and M2 have the same size, the current flowing through the transistor M2 is also equal to the first input current Ix, which is represented as the first mirror current I1.
[0005] Similarly, the mirror circuit 102 includes transistors M3 and M4, and the second input current Iy flowing through the transistor M3 is mirrored to the transistor M4 through the gate connection path between the transistors M3 and M4. If the transistors M3 and M4 are of the same size, the current flowing through the transistor M4 will also be equal to the second input current Iy, which is represented as the second mirror current I2.
[0006] The mirror circuit 103 includes transistors M5 and M6, wherein the transistor M5 is coupled in series with the transistor M2, and then the current in the transistor M5 (i.e., the first mirror current I1) is mirrored to the transistor M6 through the gate connection path between the transistors M5 and M6. If the sizes of the transistors M5 and M6 are the same, the magnitude of the current flowing through the transistor M6 is also equal to the first mirror current I1. In this article, the series connection from the transistor M2 to the transistor M5 through which the current I1 flows is referred to as the first current branch, and the node A from the transistor M4 to the node A through which the current I2 flows (wherein the node A is located on the connection path between the transistors M4 and M6) is referred to as the second current branch.
[0007] Further, transistor M6 can be coupled in series with transistor M4 at node A, and transistor M7 can be coupled in parallel with transistor M6 between node A and ground. Through this configuration, the second current branch is divided into a first sub-branch (i.e., transistor M6) and a second sub-branch (i.e., transistor M7), so according to Kirchhoff's current law, the total current flowing through transistors M6 and M7 will be equal to the second mirror current I2. Since the current in transistor M6 is equal to the first mirror current I1, the current I3 flowing through transistor M7 can be obtained as I1-I2.
[0008] Furthermore, transistors M8 and M7 form a mirror circuit 104, and then the current in transistor M7 is mirrored to the current output terminal through the gate connection path between transistors M8 and M7, thereby obtaining the output current Iout. If the size of transistor M8 is k times that of transistor M7, the output current Iout=k*I3=k*(I1-I2) can be obtained.
[0009] In the current subtraction circuit 100 of the prior art, in order to improve the accuracy of the mirror circuit, gain bootstrapping, cascode, source decoupling and other technologies are usually used to implement the current mirror. However, the use of these technologies will increase the parasitic capacitance of node A, resulting in a longer charging time of node A when the difference between the input currents is small, which seriously limits the response speed of the circuit. Summary of the invention
[0010] In order to solve the above technical problems, the present invention provides a current subtraction circuit and an operation method thereof to improve the response speed of the circuit.
[0011] According to one aspect of the present invention, there is provided a current subtraction circuit, comprising: a first current branch, configured to transmit a first current amount; a second current branch, configured to transmit a second current amount, wherein the second current branch comprises a first sub-branch and a second sub-branch connected in parallel, the first sub-branch and the second sub-branch being connected to a first node; a first mirror circuit, configured to allow the first current amount to pass through the first sub-branch so that the second sub-branch transmits an amount of current equal to the difference between the first current amount and the second current amount; and a reset precharge circuit, configured to precharge the first node in the reset phase of the current subtraction circuit.
[0012] Optionally, the first current branch includes a first transistor of a first channel type and a first mirror transistor adapted to be connected to the first transistor, the first transistor being configured to mirror a first input current flowing through the first mirror transistor to obtain the first current amount, and the second current branch includes a second transistor of a first channel type and a second mirror transistor adapted to be connected to the second transistor, the second transistor being configured to mirror a second input current flowing through the second mirror transistor to obtain the second current amount.
[0013] Optionally, the mirror circuit includes a third transistor of the second channel type located in the first sub-branch and a third mirror transistor adapted to be connected to the third transistor, wherein the third mirror transistor is also connected to the first current branch so that the first current amount passes through the third mirror transistor, and the third transistor is configured to mirror the current flowing through the third mirror transistor so that the first current amount passes through the first sub-branch; the second sub-branch includes a fourth transistor of the second channel type, wherein the third transistor and the fourth transistor are connected in parallel, and the second channel type is different from the first channel type.
[0014] Optionally, the first channel type is an N-type channel or a P-type channel.
[0015] Optionally, the reset precharge circuit includes: a first switch connected to the first node, a current source, and a second mirror circuit adaptively connected to the first switch and the current source, wherein the first switch is configured to be turned on in the reset phase and turned off in the working phase, and then the current signal provided by the current source is mirrored to the first node through the second mirror circuit.
[0016] Optionally, it also includes: an output current branch, which is configured to mirror the amount of current flowing through the second sub-branch in a working phase to obtain an output current, wherein the second sub-branch includes a fifth transistor, and the output current branch includes a sixth transistor and a second switch, the sixth transistor and the fifth transistor form a current mirror structure, and the second switch is connected between the output end of the output current and the sixth transistor, wherein the second switch is configured to be disconnected in the reset phase of the current subtraction circuit, and to be connected in the working phase.
[0017] Optionally, a size of the sixth transistor is larger than a size of the fifth transistor to provide a predetermined current gain.
[0018] According to another aspect of the present invention, there is provided an operation method of the above-mentioned current subtraction circuit, wherein the current subtraction circuit comprises a first current branch and a second current branch, the second current branch comprises a first sub-branch and a second sub-branch, the first sub-branch and the second sub-branch are connected to a first node, and the operation method comprises: using a reset precharge circuit to precharge the first node to establish the first node to a first potential; disconnecting the reset precharge circuit, and transmitting a first current through the first current branch, and transmitting a second current through the second current branch; using a first mirror circuit to allow the first current to pass through the first sub-branch; transmitting an amount of current equal to the difference between the first current and the second current through the second sub-branch; and establishing the first node to a second potential through the current of the second sub-branch, so that the output current branch obtains the output current by mirroring the current of the second sub-branch.
[0019] Optionally, the method further includes: when using a reset pre-charging circuit to pre-charge the first node, causing the first current branch and the second current branch to transmit the same amount of current, and disconnecting the output current branch.
[0020] In summary, the current subtraction circuit of the embodiment of the present invention uses the reset phase to pre-establish the output current node to a value close to the final stable voltage, thereby reducing the establishment time of the subsequent working phase and improving the circuit speed.
[0021] In addition, when the differential current between the two input currents is very small, the current subtraction circuit of this embodiment uses the characteristic that the resistance of the output node to the ground is 1 / gm, so that the discharge speed of the circuit to the parasitic capacitance of the output node is much faster than the charging speed, so that the output node voltage is rapidly reduced to a final stable voltage under the action of 1 / gm. Compared with the method of using a differential current to charge the output node to a final stable voltage, the circuit setup time can be greatly reduced.
[0022] Furthermore, the reset pre-charging circuit of the present embodiment only works in the reset phase of the current subtraction circuit, so that no additional power consumption is introduced into the circuit, which is convenient for low-power application of the circuit. In addition, the reset pre-charging circuit disclosed in the present invention has a simple structure, good performance, a small number of required transistors, and can achieve the optimization of the layout design, meeting the needs of most occasions in the chip. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The above and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings.
[0024] Figure 1 A circuit diagram of a current subtraction circuit according to the prior art is shown.
[0025] Figure 2 A schematic structural diagram of an electronic device having a current subtraction circuit according to an embodiment of the present invention is shown.
[0026] Figure 3 A schematic structural diagram of a proximity sensing device with a current subtraction circuit according to an embodiment of the present invention is shown.
[0027] Figure 4 A circuit schematic diagram of a current subtraction circuit according to an embodiment of the present invention is shown.
[0028] Figure 5 FIG. 4 shows an operation timing diagram of a current subtraction circuit according to an embodiment of the present invention. DETAILED DESCRIPTION
[0029] Reference will now be made in detail to the exemplary embodiments of the present disclosure, examples of which are illustrated in the accompanying drawings.Where possible, the same reference numerals will be used throughout the drawings to refer to the same or like parts.
[0030] In the specification, it should be noted that similar reference numerals that have been used to represent similar parts in other drawings are used for these elements as much as possible. In the following description, when functions and configurations known to those skilled in the art are not related to the basic configuration of the present disclosure, their detailed description will be omitted. The terms described in the specification should be understood as follows.
[0031] The advantages and features of the present disclosure and their implementation methods will be described through the following embodiments described with reference to the accompanying drawings. However, the present disclosure can be implemented in different forms and should not be interpreted as being limited to the embodiments described herein. Rather, these embodiments are provided to make the present disclosure comprehensive and complete, so as to fully convey the scope of the present disclosure to those skilled in the art. In addition, the present disclosure is limited only by the scope of the claims.
[0032] The shapes, sizes, ratios, angles, and quantities disclosed in the drawings used to describe the embodiments of the present disclosure are merely examples, and the present disclosure is therefore not limited to the illustrated details. Similar reference numerals always represent similar elements. In the following description, when it is determined that a detailed description of a related known function or construction will inevitably obscure the focus of the present disclosure, the detailed description will be omitted.
[0033] As those skilled in the art can fully understand, the features of the various embodiments of the present disclosure can be partially or completely combined or combined with each other, and can interoperate and technically drive each other in various ways. The embodiments of the present disclosure can be performed independently of each other, or can be performed together in a mutually dependent relationship.
[0034] In the present application, a MOS tube (Metal-Oxide-Semiconductor Field-Effect Transistor) includes a first end, a second end and a control end. When the MOS tube is in the on state, current flows from the first end to the second end. The first end, the second end and the control end of a PMOS tube are the source, the drain and the gate, respectively, and the first end, the second end and the control end of an NMOS tube are the drain, the source and the gate, respectively.
[0035] The following describes the embodiments of the present invention through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention.
[0036] Electronic devices such as digital cameras, computers, mobile phones, and other electronic devices may include sensors for capturing signals and may also include processing circuitry for subtracting the captured signals. Figure 2 2 is a schematic diagram of the structure of such an electronic device, such as an electronic device 200 that may include a sensing circuit 202 and a current subtraction circuit 204. Figure 2 As shown, the sensing circuit 202 may be any type of sensing component, including but not limited to: a light sensing circuit, an audio sensing circuit, a motion sensing circuit, a pressure sensing circuit, and / or other suitable types of sensing circuits.
[0037] The sensing circuit 202 may output a current signal (i.e., a signal in the current domain rather than the voltage domain). For example, the sensing circuit 202 may output a first current signal I_a and a second current signal I_b (not shown in the figure), and the current subtraction circuit 204 may receive the current signal from the sensing circuit 202 and be configured to calculate the difference between the received current signals (e.g., the circuit 204 may be configured to calculate I_b minus I_a).
[0038] Figure 3 FIG. 2 is a schematic diagram showing a structure of a proximity sensing device having a current subtraction circuit according to an embodiment of the present invention. Figure 3 As shown, the proximity sensing device 300 may include a light sensor 302 , an infrared light source 310 , and a current subtraction circuit 304 . Figure 3 The structure and function of the current subtraction circuit 304 in Figure 2 The structure and function of the current subtraction circuit 204 in are similar or identical. The light sensor 302 may include one or more photosensors (e.g., one or more photodiodes). The infrared light source 310 may be pulsed on or off. When the light source 310 is pulsed on, the light sensor 302 may output a first current measurement value Ix, which represents the amount of ambient light plus any additional reflections caused by the infrared light source. When the light source 310 is pulsed off, the light sensor 302 may output a second current measurement value Iy, which represents only the amount of ambient light. The subtraction circuit 304 may receive the current measurements Ix and Iy from the sensor 302, and may directly calculate the difference [Ix-Iy] in the analog domain (i.e., the subtraction circuit 304 also outputs the difference amount as a current). Device configurations in which a current subtraction circuit is used in a proximity sensor may sometimes be described herein as an example, however, this is merely exemplary.
[0039] It should be noted that Figure 3 The example of using a current subtraction circuit to perform subtraction in current mode in a proximity sensing device is merely exemplary. In general, the current subtraction circuit can be included in any type of sensing device that requires subtraction of measurement signals.
[0040] Figure 4 FIG. 2 shows a circuit diagram of a current subtraction circuit according to an embodiment of the present invention. Figure 4In the example, the current Ix may represent a first measured current signal (hereinafter, Ix is referred to as a first input current), and the current Iy may represent a second measured signal (hereinafter, Iy is referred to as a second input current). In some embodiments, a sample and hold circuit (not shown in the figure) may be used to sample the current signals Ix and Iy and temporarily hold the values of the measured signals until the subtraction is completed. Sometimes, when the measured current signals Ix and Iy are too small themselves, they may be difficult to sense. At this time, an additional current may be provided to the currents Ix and Iy through a bias current source, which may be directly added to the measured current signals Ix and Iy and may facilitate subsequent current mirroring operations.
[0041] Specifically, the current subtraction circuit 304 may include mirror circuits 401-403, a first current branch 411, a second current branch 412, an output current branch 413, and a reset precharge circuit 404. Among them, the mirror circuit 401 can be configured to mirror the first input current Ix to the first current branch 411, and the mirror circuit 402 can be configured to mirror the second input current Iy to the second current branch 412, and the second current branch 412 is further divided into a first sub-branch 421 and a second sub-branch 422. The mirror circuit 403 is configured to ensure that the current flowing through the first current branch 411 and the first sub-branch 421 is the same. Therefore, the current flowing through the second sub-branch 422 will be equal to the desired current difference (that is, the current flowing through the second sub-branch 422 will be equal to the difference between the first input current Ix and the second input current Iy). The output current branch 413 is configured to mirror the current of the second sub-branch 422 to obtain the output current Iout. For example, the current flowing through the second sub-branch 422 can be mirrored to the output current branch with optional current amplification. For example, the current amplification can be achieved by enlarging the size of the current mirror transistor relative to the second sub-branch 422.
[0042] Specifically, the mirror circuit 401 may include a transistor M1 and a transistor M2 located on the first current branch 411, wherein the first terminals of the transistors M1 and M2 are connected to the power supply voltage VDD, and the control terminals of the transistors M1 and M2 are connected to the second terminal of the transistor M1 and the first input current Ix. The first input current Ix flows through the transistor M1, and then the first input current Ix flowing through the transistor M1 is mirrored to the transistor M2 through the gate connection path between the transistors M1 and M2. As an example, the transistors M1 and M2 may be P-type metal oxide semiconductor (PMOS) transistors, and the P-channel transistors may also be sometimes referred to as pull-up transistors. If the transistors M1 and M2 are of the same size, the amount of current flowing through the transistor M2 will also be equal to the first input current Ix. For example, the current flowing through the transistor M2 may be represented as the first mirror current I1. Of course, in other examples, the sizes of the transistors M1 and M2 may be set to different sizes as needed. However, for the sake of clarity and simplicity, it is assumed in this article that the sizes of the transistors M1 and M2 are the same.
[0043] Similarly, the mirror circuit 402 may include a transistor M3 and a transistor M4 located on the second current branch 412, wherein the first terminals of the transistors M3 and M4 are connected to the power supply voltage VDD, and the control terminals of the transistors M3 and M4 are connected to the second terminal of the transistor M3 and the second input current Iy. The second input current Iy flows through the transistor M3, and then the second input current Iy flowing through the transistor M3 is mirrored to the transistor M4 through the gate connection path between the transistors M3 and M4. As an example, the transistors M3 and M4 may be P-type metal oxide semiconductor (PMOS) transistors, and the P-channel transistors may also be sometimes referred to as pull-up transistors. If the transistors M3 and M4 are of the same size, the amount of current flowing through the transistor M4 will also be equal to the second input current Iy. For example, the current flowing through the transistor M4 may be represented as the second mirror current I2. Of course, in other examples, the sizes of the transistors M3 and M4 may be set to different sizes as needed. However, for the sake of clarity and simplicity, it is assumed in this article that the sizes of the transistors M3 and M4 are the same.
[0044] The mirror circuit 403 may include a transistor M5 and a transistor M6 located on the first sub-branch 421, wherein the second terminals of the transistors M5 and M6 are connected to the ground, the control terminals of the transistors M5 and M6 are connected to the first terminal of the transistor M5 and the second terminal of the transistor M2, and the first terminal of the transistor M6 is connected to the common node A of the first sub-branch 421 and the second sub-branch 422. As an example, the transistors M5 and M6 may be N-type metal oxide semiconductor (NMOS) transistors, and N-channel transistors may also be sometimes referred to as pull-down transistors. The current I1 will flow through the transistor M5, and then the current in the transistor M5 (i.e., the first mirror current I1) will be mirrored to the transistor M6 through the gate connection path between the transistors M5 and M6. If the sizes of the transistors M5 and M6 are the same, the magnitude of the current flowing through the transistor M6 is also equal to the first mirror current I1.
[0045] Further, transistor M7 is coupled in parallel with transistor M6 between node A and ground. As an example, transistor M7 can be an N-type metal oxide semiconductor (NMOS) transistor. By configuring in this way, the second current branch 412 is divided into a first sub-branch 421 (i.e., transistor M6) and a second sub-branch 422 (i.e., transistor M7). Therefore, according to Kirchhoff's current law, it can be known that the total current flowing through transistors M6 and M7 will be equal to the second mirror current I2. Since the current in transistor M6 is equal to the first mirror current I1, it can be obtained that the current I3 flowing through transistor M7 is equal to I1-I2.
[0046] In some embodiments, since the value of current I3 may be small, it is desirable to amplify the current to obtain the output current Iout. Therefore, the output current branch 413 of the present embodiment includes a transistor M8. As an example, transistor M8 is, for example, an N-type metal oxide semiconductor (NMOS) transistor. The control end of transistor M8 is connected to the control end and the first end of transistor M7, and the second end of transistor M8 is connected to the ground. The current in transistor M7 is mirrored to the output end of the current subtraction circuit 304 through the gate connection path between transistors M8 and M7. Further, in order to provide amplification (or current gain), the size of transistor M8 can be set to be larger than the size of transistor M7. As an example, the width of transistor M8 can be greater than 2 times the width of transistor M7, which will obtain an output current of 2*I3 in transistor M8. As another example, the width of transistor M8 can be greater than 10 times the width of transistor M7, and an output current of 10*I3 will be obtained in transistor M8. Generally speaking, the amount of current flowing through the transistor M8 can be obtained by k*I3 (k is an integer greater than 1), where k represents the amount of current gain and is equal to the size ratio between the transistor M8 and the transistor M7.
[0047] It should be noted that Figure 3The example in which the current subtraction occurs in the pull-down sub-branch is merely exemplary. In another suitable embodiment, Figure 3 The circuit implementation of can be flipped (i.e., all n-channel transistors will be moved to the pull-up path and implemented using p-channel transistors, while all p-channel transistors will be moved to the pull-down path and implemented using n-channel transistors). In other words, current subtraction can also occur in the pull-up sub-branch.
[0048] As mentioned above, in the conventional current subtraction circuit, since the first input current Ix and the second input current Iy are equal in the reset phase, the output current Iout is 0. According to the current-voltage relationship of the MOS device, it can be obtained that the potential of node A is close to the ground potential in the reset phase. In the working phase, the node A is charged to the final stable voltage VF by the differential current Ix-Iy to obtain the output current Iout. In addition, in the current subtraction circuit of the prior art, in order to improve the accuracy of the mirror circuit, gain bootstrapping, Cascode, source decoupling and other technologies are usually used to realize the current mirror, but the use of these technologies will increase the parasitic capacitance of node A, resulting in that when the difference between the input currents is small, the charging time of node A will become longer, which seriously limits the response speed of the circuit.
[0049] Therefore, in order to improve the settling speed of the current subtraction circuit, the current subtraction circuit 304 of this embodiment further includes a reset pre-charging circuit 404, and the reset pre-charging circuit 404 is configured to pre-charge node A during the reset phase of the current subtraction circuit 304, so that the potential of node A can be raised to voltage VB, thereby reducing the settling time of the circuit in subsequent working phases.
[0050] Specifically, the reset precharge circuit 404 includes transistors M9 and M10, a switch S1, and a current source 441. The current source 441 is used to provide a current signal Idc, the transistors M9 and M10 are, for example, P-type metal oxide semiconductor (PMOS) transistors, the first ends of the transistors M9 and M10 are connected to the power supply voltage VDD, the control ends of the transistors M9 and M10 are connected to the second end of the transistor M9 and one end of the current source 441, and the switch S1 is connected between the second end of the transistor M10 and the node A. In the reset phase of the current subtraction circuit 304, the switch S1 is closed, and then the current signal Idc provided by the current source 441 is mirrored to the node A through the current mirror structure formed between the transistors M9 and M10, and the node A is precharged.
[0051] Furthermore, in order to prevent the pre-charging operation in the reset phase from affecting the output of the current subtraction circuit 304, the current subtraction circuit 304 of the present embodiment further includes a switch S2 disposed on the output current branch 413, the switch S2 being connected between the first end of the transistor M8 and the output end of the output current Iout, and the switch S2 being configured to be turned off in the reset phase of the current subtraction circuit 304, so that the output current of the circuit in the reset phase can be made 0.
[0052] Figure 5 The working timing diagram of the current subtraction circuit according to the embodiment of the present invention is shown below. Figure 4 and Figure 5 The principle of the current subtraction circuit 304 of this embodiment is described. Figure 5 As shown, the operation of the current subtraction circuit 304 of this embodiment includes a reset phase and a working phase.
[0053] In the reset stage, the first input current Ix and the second input current Iy are both equal to the common mode current Icm. At this time, the switch S1 is closed and the switch S2 is opened. The current signal Idc is introduced to the node A through the current mirror structure formed by the transistors M9 and M10, so that the potential of the node A is raised to the voltage VB. According to the current-voltage relationship of the saturated region MOS device, the value of the current signal Idc can be obtained as:
[0054]
[0055] Where μ is the electron mobility, Cox is the capacitance of the gate oxide layer, W is the gate width, L is the gate length, V TH is the threshold voltage of the MOS structure. At the same time, since the switch S2 is in an off state during the reset phase, the output current Iout of the circuit during the reset phase is 0.
[0056] In the working stage, switch S1 is open and switch S2 is closed. At this time, the first input current Ix increases and the second input current Iy decreases. The node A is established from the voltage VB to the final stable voltage VF by the differential current (Ix-Iy) between the first input current Ix and the second input current Iy. Then there are two situations: (1) The final stable voltage VF is greater than the voltage VB, then the establishment time t = (V F -V B )*Cp / (Ix-Iy), which is much shorter than the settling time t=(V F -0)*Cp / (Ix-Iy), where Cp is the value of the parasitic capacitance of node A. (2) The final stable voltage VF is less than the voltage VB, so the establishment time t=(1 / gm)*Cp. When the differential current (Ix-Iy) is very small, V F / (Ix-Iy) is much smaller than (1 / gm), so the settling time of the current subtraction circuit 304 is also much smaller than the settling time t=(V F -0)*Cp / (Ix-Iy).
[0057] In summary, the current subtraction circuit of the embodiment of the present invention uses the reset phase to pre-establish the output current node to a value close to the final stable voltage, thereby reducing the establishment time of the subsequent working phase and improving the circuit speed.
[0058] In addition, when the differential current between the two input currents is very small, the current subtraction circuit of this embodiment uses the characteristic that the resistance of the output node to the ground is 1 / gm, so that the discharge speed of the circuit to the parasitic capacitance of the output node is much faster than the charging speed, so that the output node voltage is rapidly reduced to a final stable voltage under the action of 1 / gm. Compared with the method of using a differential current to charge the output node to a final stable voltage, the circuit setup time can be greatly reduced.
[0059] Furthermore, the reset pre-charging circuit of the present embodiment only works in the reset phase of the current subtraction circuit, so that no additional power consumption is introduced into the circuit, which is convenient for low-power application of the circuit. In addition, the reset pre-charging circuit disclosed in the present invention has a simple structure, good performance, a small number of required transistors, and can achieve the optimization of the layout design, meeting the needs of most occasions in the chip.
[0060] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0061] Finally, it should be noted that: Obviously, the above embodiments are only examples for clearly explaining the present invention, and are not intended to limit the implementation methods. For ordinary technicians in the relevant field, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived from this are still within the scope of protection of the present invention.
Claims
1. A current subtraction circuit, include: a first current branch configured to carry a first amount of current; a second current branch configured to carry a second amount of current, wherein the second current branch comprises a first sub-branch and a second sub-branch connected in parallel, the first sub-branch and the second sub-branch being connected to a first node; a first mirror circuit configured to cause the first amount of current to pass through the first sub-branch so that the second sub-branch transmits an amount of current equal to a difference between the first amount of current and the second amount of current; as well as The reset precharge circuit is configured to precharge the first node during a reset phase of the current subtraction circuit.
2. The current subtraction circuit according to claim 1, in, The first current branch includes a first transistor of a first channel type and a first mirror transistor adaptively connected to the first transistor, the first transistor being configured to mirror a first input current flowing through the first mirror transistor to obtain the first current amount, The second current branch includes a second transistor of a first channel type and a second mirror transistor adaptively connected to the second transistor, and the second transistor is configured to mirror a second input current flowing through the second mirror transistor to obtain the second current amount.
3. The current subtraction circuit according to claim 2, in, The mirror circuit includes a third transistor of a second channel type located in the first sub-branch and a third mirror transistor adapted to be connected to the third transistor, wherein the third mirror transistor is also connected to the first current branch so that the first current amount passes through the third mirror transistor, and the third transistor is configured to mirror the current flowing in the third mirror transistor so that the first current amount passes through the first sub-branch; The second sub-branch includes a fourth transistor of a second channel type, wherein the third transistor and the fourth transistor are connected in parallel, wherein the second channel type is different from the first channel type.
4. The current subtraction circuit according to claim 3, in, The first channel type is an N-type channel or a P-type channel.
5. The current subtraction circuit according to claim 1, in, The reset precharge circuit includes: a first switch connected to the first node, a current source, and a second mirror circuit adaptively connected to the first switch and the current source, The first switch is configured to be turned on in the reset phase and turned off in the working phase, and then the current signal provided by the current source is mirrored to the first node through the second mirror circuit.
6. The current subtraction circuit according to claim 1, in, Also includes: an output current branch, the output current branch being configured to mirror the amount of current flowing through the second sub-branch to obtain an output current during a working phase, The second sub-branch includes a fifth transistor, and the output current branch includes a sixth transistor and a second switch, the sixth transistor and the fifth transistor form a current mirror structure, and the second switch is connected between the output end of the output current and the sixth transistor. The second switch is configured to be disconnected during a reset phase of the current subtraction circuit and to be connected during a working phase.
7. The current subtraction circuit according to claim 6, in, The size of the sixth transistor is larger than the size of the fifth transistor to provide a predetermined current gain.
8. An operating method of a current subtraction circuit according to any one of claims 1 to 7, wherein the current subtraction circuit comprises a first current branch and a second current branch, the second current branch comprises a first sub-branch and a second sub-branch, the first sub-branch and the second sub-branch are connected to a first node, and the operating method include: Precharging the first node using a reset precharge circuit to establish the first node to a first potential; Disconnecting the reset precharge circuit, transmitting a first current through the first current branch, and transmitting a second current through the second current branch; Using a first mirror circuit to allow the first current to pass through the first sub-branch; passing an amount of current equal to a difference between the first amount of current and the second amount of current through the second sub-branch; as well as The first node is established to a second potential by the current of the second sub-branch, so that the output current branch obtains the output current by mirroring the current of the second sub-branch.
9. The operating method according to claim 8, in, Also includes: When the first node is precharged using the reset precharge circuit, the first current branch and the second current branch transmit the same amount of current, and the output current branch is disconnected.
