PIECEWISE LINEAR FUNCTION GENERATING ELECTRONIC CIRCUIT, CORRESPONDING GENERATOR, AMPLIFIER, METHOD AND COMPUTER PROGRAM PRODUCT
20220308615 · 2022-09-29
Assignee
Inventors
Cpc classification
H03F3/45179
ELECTRICITY
International classification
Abstract
A cell includes a first pair and a second pair of MOS transistors. Each of the first pair and second pair of MOS transistors have drain electrodes coupled to a respective common input node. Each of the first pair and second pair of MOS transistors includes a diode-connected MOS transistor and a latched MOS transistor. The latched MOS transistors of the first pair and second pair of MOS transistors have cross-coupled gate and drain electrodes. Source electrodes of the diode connected MOS transistors from the first pair and second pair of MOS transistors are coupled to a first current output common node to output a current to a first current collecting circuit. Source source electrodes of the latched MOS transistors of the first pair and second pair of MOS transistors are coupled to a second current output common node to output a current to a second current collecting circuit.
Claims
1. A circuit for generating a piecewise linear current transfer function, comprising: a latched circuit module cell comprising a first pair of transistors and a second pair of transistors, each of the first pair of transistors and the second pair of transistors having drain electrodes coupled to a respective common input node; wherein each of the first pair of transistors and the second pair of transistors comprises a diode-connected transistor and a latched transistor, wherein the latched transistors of the first pair of transistors and the second pair of transistors have gate and drain electrodes cross coupled; wherein source electrodes of the diode-connected transistors are coupled to a first current output common node and wherein source electrodes of the latched transistors are coupled to a second current output common node.
2. The circuit according to claim 1, wherein the latched circuit module cell is coupled to a first current collecting circuit coupled to collect a current at the first current output common node in order to implement an input current maximizing function between currents applied at the common input nodes of said latched circuit module cell.
3. The circuit according to claim 1, wherein the latched circuit module cell is coupled to a second collecting circuit coupled to collect a current as the second current output node in order to implement a current minimizing function between currents applied at the common input nodes of said latched circuit module cell.
4. The circuit according to claim 1, further comprising a first current supplying circuit configured to supply a first current to the common input node of the first pair of transistors, and a second current supplying circuit configured to supply a second current to the common input node of the second pair of transistors.
5. The circuit according to claim 4, wherein the first current is a variable current comprising a current ramp, and wherein the second current is a constant reference current.
6. The circuit according to claim 1, wherein transistors of the first pair of transistors and the second pair of transistors are NMOS transistors.
7. The circuit according to claim 1, wherein transistors of the first pair of transistors and the second pair of transistors are PMOS transistors.
8. The circuit according to claim 1, wherein the latched circuit module cell is configured to have input currents and output currents flowing in opposite direction with respect to input and output nodes.
9. The circuit according to claim 1, wherein the latched circuit module cell is configured to have input currents and output currents both entering or exiting input and output nodes.
10. The circuit according to claim 1, wherein dimensions of transistors in the first pair of transistors and the second pair of transistors are the same.
11. The circuit according to claim 1, wherein said latched circuit module cell receives an input current ramp and an input constant current corresponding to a negative offset value and further comprising: a first current collecting circuit coupled to collect a current at the first current output common node to implement an input current maximizing function between currents applied at the input nodes; a subtraction circuit configured to subtract the current constant value from the first current output; and a multiplier circuit configured to multiply by an integer in order to implement a current ramp with the negative offset generator.
12. A piecewise linear generator comprising said circuit of claim 1.
13. A class AB amplifier having a differential architecture, comprising: respective positive and negative input stages coupled to a level shifter; wherein said positive and negative input stages are coupled to a circuit according to claim 1.
14. A method for generating a piecewise linear transfer function, comprising: generating a piecewise linear current for transfer function using one or more of the circuits of claim 1.
15. The method of claim 14, comprising defining a linear piecewise current characteristic as a sequence of functions nested one into the other; configuring one circuit of claim 1 for generating a piecewise linear current transfer function implementing the innermost nested function; and configuring cascaded subsequent circuits of claim 1 for generating a piecewise linear current transfer function to perform the subsequent nested functions.
16. A computer-program product that can be loaded into the memory of at least one processor and comprises portions of software code for implementing the method according to claim 14.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Embodiments of the present disclosure will now be described with reference to the annexed drawings, which are provided purely by way of non-limiting example and in which:
[0026]
[0027]
[0028]
[0029]
[0030]
[0031]
[0032]
[0033]
[0034]
[0035]
[0036]
[0037]
[0038]
[0039]
[0040]
[0041]
[0042]
[0043]
[0044]
[0045]
DETAILED DESCRIPTION
[0046] In the following description, numerous specific details are given to provide a thorough understanding of embodiments. The embodiments can be practiced without one or several specific details, or with other methods, components, materials, etc. In other instances, well-known structures, materials, or operations are not shown or described in detail to avoid obscuring aspects of the embodiments.
[0047] Reference throughout this specification to “one embodiment” or “an embodiment” means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment. Thus, the appearances of the phrases “in one embodiment” or “in an embodiment” in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0048] The headings provided herein are for convenience only and do not interpret the scope or meaning of the embodiments.
[0049] Figures parts, elements or components which have already been described with reference to
[0050]
[0051] Two respective current generators 22.sub.1 and 22.sub.2 are coupled between the voltage supply VDD and the input common nodes V.sub.1 and V.sub.2, respectively, for injecting a respective first input current I.sub.1 and second input current I.sub.2 entering the drain electrodes of the two pairs M.sub.1, M.sub.2 and M.sub.3, M.sub.4. Current generators 22.sub.1 and 22.sub.2 are representative of current supplying circuits, which can supply for instance constant currents or current ramps. Such current supplying circuits may be embodied also by other electronic circuits for generating a piecewise linear current transfer function supplying current at their outputs, which are coupled to the circuit 20 of
[0052] Thus, NMOS transistors M.sub.1 and M.sub.4 can be defined as the diode-connected transistors of the pairs, while NMOS M.sub.2 and M.sub.3 are indicated as the latch transistors of the two pairs.
[0053] Considering thus the electronic circuit 20 of
[0054] Indicating as mentioned with V.sub.1 the voltage on the drain electrodes of the first pair, i.e., the voltage on the input node of such pair, and with V.sub.2 the voltage on the drain electrodes of the second pair, i.e., the voltage on the input node of the second pairs, in this equilibrium point, i.e., when currents I.sub.1=I.sub.2, V.sub.1=V.sub.2 so that the NMOS transistor M.sub.1, M.sub.2, M.sub.3, M.sub.4 are each in saturation zone.
[0055] It is underlined that the circuit in
[0056] In
[0057] Although the circuit of
[0058] Considering thus a small signal current I.sub.I.sub.
Z.sub.IN.fwdarw.∞
[0059] Thus, applying a current small signal i.sub.I.sub.
v.sub.O.sub.
[0060] This means that if it is applied a small current difference between the latch input nodes V.sub.1 and V.sub.2, the latch saturates the outputs conveying the first current I.sub.1 only on NMOS M.sub.1 or M.sub.2 of the first pair, and similarly happens for the second current I.sub.2.
[0061] The previously discussed equilibrium point is thus an unstable equilibrium point.
[0062] It is possible to generalize the case saying that if I.sub.1>I.sub.2 then:
I.sub.1.fwdarw.M.sub.1 and I.sub.2.fwdarw.M.sub.3
While if I.sub.1<I.sub.2 then:
I.sub.1.fwdarw.M.sub.2 and I.sub.2.fwdarw.M.sub.4
[0063] In other words, the larger current will flow always through the diode connected devices M.sub.1, M.sub.4.
[0064] Therefore, if it is collected the current flowing through the diode connected devices M.sub.1, M.sub.4 and the current flowing in the latch stage M.sub.2, M.sub.3, this corresponds to performing a mathematical operation
I.sub.6=max(I.sub.1,I.sub.2)
I.sub.5=min(I.sub.1,I.sub.2)
[0065] where I.sub.5 and I.sub.6 are the first and second output current from output nodes V.sub.3 and V.sub.4 which can flow for instance through circuit 50 of
[0066] Under this view, the collecting circuit 50 includes a first collecting circuit, transistor M.sub.6, coupled to collect a current I.sub.6 at the first output common node V.sub.4, in particular to implement an input current maximizing function between currents applied at the input nodes, and/or a second collecting circuit, transistor M.sub.5 coupled to collect a current I.sub.5 as the second output node V.sub.3, in particular to implement a current minimizing function between currents applied at the input nodes. Current collecting circuit 50 includes both the first and the second collecting circuit, however it is clear that only the first collecting circuit, transistor M.sub.6, or the second collecting circuit, transistor M.sub.5, may be present, if the circuit 20 is configured to implement a current maximizing function or current minimizing function only, i.e.
I.sub.6=max(I.sub.1,I.sub.2)
I.sub.5=min(I.sub.1,I.sub.2)
[0067] Also, such first and second collecting circuits can correspond to the inputs of other circuits like the electronic circuit 20 for generating a piecewise linear current transfer function.
[0068] In the same way, the electronic circuit 20 for generating a piecewise linear current transfer function may be coupled to one or more current supplying circuits configured to supply a first current, I.sub.1 to the common input node of one between the first pair M.sub.1, M.sub.2 and the second pair M.sub.3, M.sub.4 and/or a second current I.sub.2 to the common input node of the other pair. Such current supplying circuits as mentioned may be embodied by current generators, or other circuits like the electronic circuit for generating a piecewise linear current transfer function 20.
[0069] As shown in the diagrams of
[0070] Diagrams 3A-3C refer to a static condition. The slope of the first input current I.sub.1 here is unity since the first input current I.sub.1 (
[0071] Instead, in
[0072] On the other hand, the second output current I.sub.6 (
[0073] In
[0074] The latch cell 21 described before can be seen as an elementary logical block, having as input currents first input current I.sub.IN1 and second input current I.sub.IN2 and as output currents I.sub.O1, I.sub.O2 which supply the minimum or maximum of the input currents. If one of the input currents is a constant current, e.g. I.sub.IN2, the output current I.sub.O1 taken on the sources of the latched transistors implements a current limiter.
[0075] In a variant embodiment 31, shown in
[0076] This is convenient to cascade a chain of elementary cells.
[0077] As detailed in
[0078]
[0079]
[0080] In this case the output of a first latch 21a, with NMOS transistors, receives input currents I.sub.IN1, I.sub.IN2. The first output current I.sub.O1 is supplied as first input current I.sub.IN3 of a second latch 21b, while the second input current of the second latch 21b is a current I.sub.IN4, collecting the output current I.sub.O4, which results:
I.sub.O4=max(I.sub.IN3,I.sub.IN4)=max(min(I.sub.IN1,I.sub.IN2),I.sub.IN4).
[0081] The behavior of the corresponding currents is shown in
[0082]
[0083] The output current I.sub.O1 of the PMOS latch 31p is coupled to the input I.sub.IN3 of the NMOS latch 31, to which other input I.sub.IN4 is fed a respective current.
[0084] The output 104 is:
I.sub.O4=max(I.sub.IN3,I.sub.IN4)=max(min(I.sub.IN1,I.sub.IN2),I.sub.IN4)
[0085] which is the same of the circuit of
[0086] The output current I.sub.O4 may be the result of a comparison between a function ƒ (I.sub.IN1) and a Current Reference Ramp (CRR) I.sub.IN4=m.Math.I.sub.IN1−I.sub.Q, where m is the slope and and I.sub.Q the value of the y axis intercept, i.e. for I.sub.IN1=0. In this case I.sub.O1=I.sub.IN3=ƒ(I.sub.IN1).
[0087] These currents are shown in the diagrams of
[0088] To generate a Current Reference Ramp (CRR) with a negative offset, i.e., when I.sub.IN=0 I.sub.O<0, may represent a difficulty since the current flow in a latch is unidirectional.
[0089] Since this ramp must be used only for positive current comparisons, it can be generated as:
I.sub.O=m.Math.I.sub.IN−I.sub.Q for I.sub.IN>I.sub.q=I.sub.Q/m
[0090]
[0091]
[0092]
[0093] If it is needed to generate a Current Reference Ramp with a positive offset I.sub.O=m.Math.I.sub.IN+I.sub.Q, then it could be obtained as a circuit 81 comprising a chain of a multiplier by m 82 which output is summed in a summation block 83 to the constant offset current I.sub.Q, as shown schematically in
[0094]
[0095] Thus, as shown above, the solution is in the first place directed to an electronic circuit for generating a piecewise linear current transfer function, comprising at least a circuit module, such as latch cell 21 (or 31, 21P, 31P) comprising a first pair of MOS transistor M.sub.1, M.sub.2, e.g. NMOS or PMOS, and a second pair of MOS transistor M.sub.3, M.sub.4, each of the first pair of MOS transistors M.sub.1, M.sub.2 and second pair of MOS transistor M.sub.3, M.sub.4 having their drain electrodes coupled to a respective common input node, e.g. V.sub.1, V.sub.2,
[0096] each of the first pair of MOS transistors M.sub.1, M.sub.2 and second pair of MOS transistor M.sub.3, M.sub.4 comprising a diode-connected MOS transistor, e.g., M.sub.1, M.sub.4, and a latched MOS transistor M.sub.2, M.sub.3, the latched MOS transistors M.sub.2 and M.sub.3 of the two pairs having their respective gate electrodes coupled to the drain of the other latched MOS transistor, M.sub.3 and M.sub.2 respectively,
[0097] the source electrodes of the diode connected MOS transistors M.sub.1, M.sub.4 of the first pair and second pair being coupled to a respective current first output common node I.sub.O2 and the source electrodes of the latched MOS transistors M.sub.2, M.sub.3 of the first pair and second pair being coupled to a respective second output common node I.sub.O1.
[0098] The electronic circuit may be coupled to or comprise a first collecting circuit, such as transistor M.sub.6, coupled to collect a current, e.g. I.sub.6, at the first output common node, e.g. V.sub.4, in particular to implement an input current maximizing function between currents applied at the input nodes, and/or a second collecting circuit, such as transistor M.sub.6, coupled to collect a current, e.g. I.sub.6, at the second output node, e.g. V.sub.3, in particular to implement a current minimizing function between currents applied at the input nodes.
[0099] The electronic circuit may be coupled to or comprise one or more current supplying circuits, e.g., generators 22, configured to supply a first current, e.g. I.sub.IN1, to the common input node of one between the first pair of transistors M.sub.1, M.sub.2 and the second pair of transistors, M.sub.3, M.sub.4, and/or a second current I.sub.IN2 to the common input node of the other pair.
[0100] In general, two input currents are supplied, but as shown above, also only one input current can be supplied. Then, the electronic circuit 20 may have that the first input current I.sub.IN1 is a variable current, in particular a ramp, and the second current I.sub.IN2 is a constant reference current I.sub.IN1.
[0101] Also, by combining two or more of such cells having as output max(I.sub.IN1, I.sub.IN2) and/or min(I.sub.IN1, I.sub.IN2), with the possibility of not using some inputs or some outputs (which is in this case preferably coupled to ground), it is possible to combine the output of each piecewise linear generating circuit or cell to obtain other PWL functions, as shown for instance with reference to
[0102] To this regard, by way of example, a “triangle to quadratic” PWL generator may be obtained by using the latch blocks 21, 31, 21p, 31p described, nesting the previously discussed functions (max ( ) and min ( )) in which the arguments are a set of current reference ramps coded as two vectors containing the angular coefficient “m” and the offset coefficients “I.sub.q”, by cascading the corresponding latch cells.
[0103] As shown in
[0104] As shown in
[0105] As shown, a sequence of four linear segment S1, S2, S3, S4 are used, defined by pairs of coefficient m and offset current I.sub.q, which are respectively in the example shown (0.25, −0.01562), (0.5, −0.06250), (0.75, −0.14062), (1, −0.25). The value of coefficients m and offset current I.sub.q can be easily calculated with an approximation of the curve to generate in a given number of linear segments, for instance using programs like Matlab or Octave.
[0106] Then, each segment S1 . . . S4 can be generated with a respective circuit like the one in
[0107] For the portion of curve of
[0108] The current ramps corresponding to segments S5, S6, S7, S8 can be obtained on the basis of their respective m,I.sub.q coefficients by the circuit of
[0109] Thus, in general the method for generating a piecewise linear characteristic may include performing cascading, i.e., coupling at least an output of a latch cell to the input of a cascaded latch cell, latch cells selected between cells 21, 31, 21P, 31P configured in a configuration selected between at least current maximizer configuration, i.e. the output of the latch cell is taken on the current maximizing node, current minimizer configuration, i.e. the output of the latch cell is taken on the current minimizing node, and current reference ramp generator configuration with negative offset 71 or positive offset 81, to obtain a given a determined linear piecewise characteristic. Of course, other type of circuits different from latch cells may be inserted in the cascade.
[0110] The method of generating a linear piecewise characteristic may include therefore defining a linear piecewise current characteristic to be obtained as a sequence of functions nested one into the other. For instance, with reference to
[0111] The method includes then to configure a first circuit for generating a piecewise linear current transfer function implementing the innermost nested function, in the example a cell 21, having as inputs segments S1, S2 for instance, which maximizing output is taken. Of course, segments S1 and S2 may be current ramps generated by circuits 71 or 81.
[0112] Then, the method includes configure and cascade subsequent circuits for generating a piecewise linear current transfer function to perform the subsequent nested functions, i.e., couple at each maximizing output of a cell 21 a further cell 21 having as other input the next segment in the sequence, and taking the maximizing output of such further cell 21.
[0113] For nested function is here intended a function which is enclosed in another, called the enclosing function. In a sequence of nested functions, only the innermost functions are nested functions, while the other are also enclosing function, and the outermost is only an enclosing function.
[0114] A further application of the circuit 20 and of the latched cell 21, 31 can be in the field of class AB amplifiers.
[0115] The amplifier represents the most important block in a multitude of electronic applications.
[0116] Under this view, the parameters correlated to the power consumption of the amplifier are very relevant.
[0117] Since nowadays battery powered devices are increasingly diffused, it is important that the power must be delivered to the load with negligible losses, i.e. efficiently.
[0118] So it is important to choose an amplifier stage capable to deliver large currents to the load with negligible DC bias power consumption. These are the most important characteristic of a Class-AB amplifier where the maximum deliverable current is much higher than the DC bias current.
[0119] On the other hand, even more applications need deliver large currents at high frequency to low resistance/high capacitance loads. One example, but not limited to, could be the TV/display driver stages. Large currents and high frequency operations may lead to electromagnetic disturbances of the neighboring environment.
[0120] Due to this reason, it is even important to design very efficient architectures capable to increase the lifetime of the battery powered devices without losing sight of the amplitude these current flows (i.e. current steps).
[0121] It is possible to highlight the most important key factors that a device should meet. A possible definition of the power efficiency is that it is directly proportional to the ratio of the current delivered to the load to the bias current consumption. On the other hand the noise, which is proportional to the high frequency current Ai should be minimized.
[0122] In a Class A stage, the efficiency is very low since the maximum delivered current is a portion of the biasing available current. This kind of amplifier stages are very common when the linearity is a priority.
[0123] The natural solution that maximize the power efficiency is the Class AB amplifier stage, which is capable of deliver to the load a current that is not-related-and-larger-than the biasing current.
[0124] The main drawback of the Class AB amplifier stage is that, despite it can deliver a current to the load that is uncorrelated with the DC biasing current, the maximum amplitude of this current is not well controlled when an input voltage step is applied.
[0125] A Class AB single stage operational transconductance amplifier is represented schematically to describe such drawback.
[0126] The class AB amplifier circuit shown in
[0127] From
g.sub.m_EQ=g.sub.m2//g.sub.m4
[0128] where g.sub.m2 and g.sub.m4 are respectively, the transconductance of M.sub.2 and M.sub.4.
[0129] In DC biasing condition, if Vin.sub.−=Vin.sub.+ then the devices M.sub.7-M.sub.3 form a current mirror so the bias current I.sub.B appear on drain of M.sub.3 and M.sub.1.
[0130] Considering now a large voltage step applied between V.sub.IN+ and V.sub.IN−, under this condition, the MOS devices M.sub.1 and M.sub.3 are instantaneously off while the current i.sub.UP is generated from the previously discussed g.sub.m_EQ of M.sub.2-M.sub.4. Considering for simplicity that the dimensions of first mirror PMOS M.sub.6A-6B are the same, the current i.sub.UP is directly applied on the load C.sub.OUT.
[0131] Under these assumptions, when a large voltage step is applied on the input of the amplifier 20, then a large current i.sub.UP is applied to the load and this current is uncorrelated from the biasing current I.sub.B.
[0132] Thus, a Class AB amplifier it is used an efficient way to deliver a large current to the load C.sub.OUT but doing so it is lost the possibility to control and/or limit the maximum current to the load disregarding the amplitude of input, i.e. to control the input slew rate.
[0133] The solution here described is directed to a Class AB amplifier with a controlled output slew rate.
[0134] The output current i.sub.OUT is:
i.sub.OUT=g.sub.m_EQ.Math.v.sub.IN (1)
[0135] From equation (1), is possible to see that the maximum deliverable current is proportional to the equivalent transconductance g.sub.m_EQ and to the differential input voltage v.sub.IN.
[0136] If the target is to limit the power line drops to limit the noise injected to the other devices, the current limitation must be independent from the input voltage like happen in Class A in slewing condition.
[0137] In addition, if the accuracy of the limiting current must be high, this architecture is not well suited since it depends on the absolute accuracy of the equivalent transconductance g.sub.m_EQ and from the absolute of the maximum input voltage v.sub.IN_MAX. Either quantities are not well controlled since they depend on many factors (process, temperature, and voltages).
[0138] The solution here described introduces a slew rate limitation to an architecture where the deliverable current is intrinsically unlimited (Class AB).
[0139]
[0140] Such current limiter is for instance embodied by the latch 31. As shown in
[0141] Symmetrically a second latch cell 31, of the NMOS type, has one of its current inputs I.sub.IN1 receiving the current flowing in the first current mirror M.sub.6A, M.sub.6B, in particular by a PMOS M.sub.XB coupled in parallel with respect to the PMOS M.sub.6B on the second mirror, i.e. with its gate coupled to the gates of M.sub.6A and M.sub.6B. The drain of the PMOS M.sub.XB is coupled to current input I.sub.IN1. The second input current I.sub.IN2 of the latch 31 is coupled to a current generator injecting in it a maximum current I.sub.MAX.
[0142] With reference to the first latch 31p, supposing to have I.sub.B<I.sub.MAX, during the DC operation, since I.sub.IN1=I.sub.B and I.sub.IN2=I.sub.MAX then I.sub.O2=I.sub.B.
[0143] If a voltage drop Δv, e.g. a decrease of the voltage of a short time length is applied on the negative input Vin.sub.− and the relative generated current on the drain of NMOS M.sub.3 is less than the maximum current I.sub.MAX, then, the current limiter, i.e. latch 31, is transparent and I.sub.O2=I.sub.IN1. While, if the voltage drop Δv has an amplitude enough to generate a current at the drain of NMOS M.sub.3 so that I.sub.D3>I.sub.MAX (
I.sub.O2=I.sub.MAX (2)
[0144] There are two different current limiters since a symmetrical output current limitation is needed.
[0145] The solution just described regarding the class AB amplifier overcomes the problem discussed. In particular:
[0146] current levels delivered to the load are larger than the biasing currents;
[0147] current limiting (slew rate) is implemented in a Class AB architecture; and
[0148] high accuracy of the limited/controlled maximum output current is obtained.
[0149] The claims are an integral part of the technical teaching of the disclosure provided herein.
[0150] Of course, without prejudice to the principle of the invention, the details of construction and the embodiments may vary widely with respect to what has been described and illustrated herein purely by way of example, without thereby departing from the scope of the present invention, as defined by the ensuing claims.