ELECTRONIC DEVICE COMPRISING AN ELECTRONIC MODULE AND A COMPENSATION CIRCUIT
The compensation circuit addresses the vulnerability of systems on a chip to SPA attacks by maintaining a constant total current draw, enhancing responsiveness and reducing energy consumption and size, thus protecting against power analysis attacks.
Patent Information
- Application Number
- FR2022001616
- Authority / Receiving Office
- FR · FR
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-02-23
- Publication Date
- 2024-11-08
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing systems on a chip are vulnerable to Simple Power Analysis (SPA) attacks due to variations in power consumption that can be exploited to deduce information on operations and their occurrences, and current smoothing methods are not responsive enough at high frequencies, leading to signature generation that can be used for attacks.
A compensation circuit is introduced with a current source and compensation stage using transistors and operational amplifiers to generate auxiliary currents, ensuring a constant total current draw independent of the module's consumption, thus masking the module's current variations.
The compensation circuit improves responsiveness to current variations, reduces energy consumption, and physical size, while avoiding errors in current mirroring, making it effective against SPA attacks.
Smart Images

Figure 00000015_0000 
Figure 00000016_0000 
Figure 00000017_0000
Abstract
Description
Title of the invention: ELECTRONIC DEVICE COMPRISING AN ELECTRONIC MODULE AND A COMPENSATION CIRCUIT
[0001] Implementations and embodiments of the invention relate to systems on chip, and in particular to the protection of these systems on chip against external attacks of the simple analysis of energy consumption type (also known by the acronym "SPA" for "Simple Power Analysis").
[0002] Systems on chip can be the target of attacks aimed at recovering secure information, and in particular of power analysis attacks or SPA.
[0003] In operation, a system on chip consumes more or less depending on the operations it performs. The SPA attack involves analyzing these consumption variations in order to deduce information on the operations performed and / or their occurrences.
[0004] In secure applications, it is therefore recommended to smooth out the consumption seen from the power supply as much as possible so that a potential attacker can hardly determine the activity of the different components of the system on chip by SPA attacks.
[0005] French patent application No. 19.14244 describes a solution against SPA attacks. The proposed solution describes an electronic device comprising first processing means connected to a power supply terminal of an electronic module, in particular a microprocessor. The module is configured to consume a module current. The first processing means are configured to process for each module an auxiliary module current equal to a first fraction of the corresponding module current. The electronic device also comprises a first stage, connected to the power supply terminal, comprising at least one current source configured to provide a stage current greater than the sum of the maximum values of each auxiliary module current.The device further comprises second development means configured to develop an intermediate current equal to a difference between the stage current and a secondary current equal to the sum of each module auxiliary current. The electronic device also comprises a regulation stage connected to the power supply terminal comprising a first branch configured to develop a reference potential from the intermediate current, a second branch comprising a regulation means and comparison means configured to control in voltage. the regulating means such that a potential of the second branch is equal to the reference potential, said potential being obtained by multiplying a current flowing in said branch by an impedance equal to said first fraction. The device further comprises a terminal stage connected to the supply terminal and configured to multiply the intermediate current by a multiplication factor equal to one.
[0006] Such a device makes it possible to simply develop a plurality of currents consumed by the power supply, the sum of which does not depend on the current consumed by the electronic module but only in theory on the current supplied by the current source stage. The sum of the currents consumed is then relatively constant. The consumption of the integrated circuit is therefore smoothed, and this smoothed overall consumption seen from the outside is greater than the sum of the maximum consumptions of each module.
[0007] To achieve good performance, it is important that the current smoothing means quickly follow the current drawn by the voltage regulator to best smooth the current delivered by the power supply.
[0008] However, the electronic device has several stages controlled by two amplifiers, which clutter the electronic device, and generate additional delays and energy consumption. These delays do not allow for a sufficiently fast response to be obtained for smoothing the current in applications with a high operating frequency of the electronic module, for example of the order of 115 MHz. The high frequency results in a more abrupt current draw between slow phases and faster phases of activity of the electronic module. The compensation delay then results in peaks in the current delivered by the power source and therefore generates a signature of the operation of the electronic module which can be used to carry out a consumption analysis attack.
[0009] There is therefore a need to propose a compensation circuit that is more responsive to variations in current drawn by the electronic module.
[0010] According to one aspect, there is provided an electronic device comprising: - a power terminal configured to be connected to a power source, - at least one voltage regulator connected to the supply terminal, - at least one electronic module, in particular a microprocessor, connected to said at least one voltage regulator and configured to be able to consume an electronic module current coming from the power source, - a compensation circuit connected to said at least one voltage regulator and configured to receive an auxiliary current generated by said at least one voltage regulator and being equal to a first fraction of the electronic module current consumed by said at least one electronic module, the compensation circuit comprising: O a current source connected to said at least one voltage regulator so as to receive the auxiliary current and being configured to supply to a cold point a source current greater than a maximum value of the electronic module current consumed by said at least one electronic module, O a compensation stage comprising: • a first resistor and a second resistor each having a first terminal connected to said supply terminal, the first resistor having a resistive value equal to a resistive value of the second resistor multiplied by said multiplication factor, the first resistor having a second terminal connected to the current source so as to be crossed by an intermediate current equal to a difference between the source current and the auxiliary current, • a transistor having a drain connected to a second terminal of the second resistor and a source connected to the cold point, • an operational amplifier configured to control the transistor and having an inverting input connected to the second terminal of the first resistor and a non-inverting input connected to the second terminal of the second resistor, such that the second resistor is crossed by a complementary current equal to the intermediate current multiplied by said multiplication factor.
[0011] The compensation circuit is configured to consume a current flowing through the compensation stage in addition to the current drawn by the electronic module so that the sum of the currents drawn by the compensation circuit and the electronic module is constant.
[0012] Such a compensation circuit makes it possible to smooth the current seen from the supply terminal in order to conceal the current drawn by said electronic module connected to said at least one voltage regulator.
[0013] Such a compensation circuit comprises a limited number of stages, which allows it to improve its responsiveness to variations in current drawn by the electronic module, to reduce its energy consumption as well as its physical size. Such a compensation circuit makes it possible in particular to avoid copying errors of the current mirrors used in the electronic device described by the French patent application having filing number No. 19.14244. Such a compensation circuit is also inexpensive.
[0014] It is possible to provide an electronic device comprising a single voltage regulator and a single electronic module connected to the voltage regulator. Of course, it is also possible to provide an electronic device comprising several voltage regulators and several electronic modules connected to the different voltage regulators. The compensation circuit then has an input for each voltage regulator in order to receive the auxiliary currents generated by the different voltage regulators. The current source and the compensation stage are then connected to the different voltage regulators.
[0015] In an advantageous embodiment, the current source and the compensation stage are connected to said at least one regulator via a transistor controlled by an operational amplifier having an inverting input connected to a source of this transistor and a non-inverting input configured to receive a voltage delivered by said at least one regulator to the electronic module. This transistor and this amplifier make it possible to obtain a potential at a drain of this transistor identical to the potential between said at least one regulator and said at least one electronic module so as to ensure an auxiliary current consistent with the current supplying the electronic module.
[0016] When the electronic device comprises several voltage regulators and several electronic modules, the current source and the compensation stage are connected to the different regulators via several parallel branches each comprising a transistor controlled by an operational amplifier as described previously.
[0017] Preferably, the compensation stage comprises: - a first transistor having a drain connected to the second terminal of the first resistor and a source connected to the current source such that the second terminal of the first resistor is connected to the current source via said first transistor, and - a second transistor having a drain connected to the second terminal of the second resistor and a source connected to the drain of the transistor such that the second terminal of the second resistor is connected to the drain of the transistor via said second transistor, the first transistor and the second transistor having a gate configured to receive a fixed voltage allowing the first transistor and the second transistor to operate as cascodes. This fixed voltage may be that delivered by said at least one regulator to the electronic module.
[0018] This first transistor allows the potential at the second terminal of the first resistor to vary freely depending on the current flowing through this first resistor. This second transistor makes it possible to protect the transistor of the compensation stage controlled by the operational amplifier from high voltages, and allows the potential at the second terminal of the second resistor to vary freely depending on the current flowing through this second resistor.
[0019] Advantageously, the current source comprises at least one current mirror configured to generate the source current from a reference current. Thus, the current source may comprise a single or several current mirrors to generate the source current. When the current source comprises several current mirrors, the latter may be activated or deactivated depending on the desired value of the source current.
[0020] In an advantageous embodiment, the current source comprises: - a reference branch including: • a reference transistor of said at least one current mirror, • a cascode transistor having a drain configured to receive said reference current and connected to a gate of the reference transistor, a source connected to a drain of the reference transistor, and a gate configured to receive a fixed voltage, • a transistor having a drain connected to a source of the reference transistor, a source connected to the cold point and a gate configured to receive a voltage delivered by said at least one regulator to the electronic module, - an auxiliary current generation branch for each current mirror comprising: • a copy transistor of said current mirror having a gate connected to a gate of the reference transistor and being configured to generate at least part of the source current, • a cascode transistor having a drain connected to the second output of said at least one regulator, a source connected to a drain of the copy transistor, • a selection transistor having a drain connected to a source of the copy transistor, a source connected to the cold point and a gate configured to be controlled by a selection signal.
[0021] The reference current can be of the order of 5qA for example. Each current mirror comprises the reference transistor and a copy transistor for multiplying the reference current. The sum of the currents generated by each current mirror corresponds to the source current generated by the current source.
[0022] Each selection transistor makes it possible to activate or deactivate the current mirror with which it is associated in order to modify the value of the source current generated by the current source.
[0023] Advantageously, the cascode transistor of the generation branch of each current mirror has a gate configured to receive a fixed voltage.
[0024] Preferably, the cascode transistor is common to each generation branch, the current source further comprising an operational amplifier having a non-inverting input connected to the drain of the reference transistor, an inverting input connected to the source of the common transistor, and an output connected to the transistor gate. The operational amplifier then makes it possible to obtain a drain voltage of the current mirror copy transistor identical to the voltage at the drain of the current mirror reference transistor. This makes it possible to use a smaller common cascode transistor to reduce parasitic capacitances so that the compensation circuit is more responsive to current variations.
[0025] Other advantages and characteristics of the invention will appear on examining the detailed description of embodiments, which are in no way limiting, and the appended drawings in which:
[0026] [Fig.l]
[0027] [Fig.2]
[0028] [Fig.3] illustrate embodiments and implementations of the invention.
[0029] [Fig.l] illustrates an electronic device DIS, in particular a system on chip, comprising an electronic module, in particular a microprocessor CPU, and an LDO voltage regulator. The LDO regulator is configured to adapt a voltage VCC supplied by a power supply source ALIM to a desired voltage for powering the microprocessor CPU. For example, the LDO regulator can be adapted to provide a voltage of 1.2V to the microprocessor CPU from a voltage of 3V generated by the power supply source ALIM. The LDO voltage regulator can be of the low-dropout type (also known by the expression “low-dropout regulator” or “LDO regulator”).
[0030] The LDO voltage regulator has an input II connected to a power supply terminal BA of the electronic device DIS. The power supply terminal BA is configured to be connectable to said electrical power source ALIM. The LDO regulator also has a first output 01 connected to a power supply terminal of the microprocessor CPU. In this way, the LDO voltage regulator is configured to draw a current Ivdd delivered by the electrical power source ALIM and transmit this current to the microprocessor CPU. The value of the current Ivdd can vary depending on the operations that can be performed by the microprocessor.
[0031] The electronic device DIS also comprises a compensation circuit JSCR configured to be able to draw a current IJSCr delivered by the power source ALIM, so that the total current IVcc drawn from the power source is constant regardless of the value of the current Ivdd required by the microprocessor CPU.
[0032] In particular, the JSCR compensation circuit comprises a first input INI connected to a second output 02 of the LDO voltage regulator, and a second input IN2 connected to the power supply terminal BA of the electronic device DIS so as to be able to be connected to the power supply source ALIM.
[0033] The second output 02 of the voltage regulator is configured to deliver to the compensation circuit JSCR an auxiliary current Lux equal to Ivdd / 100, that is to say one hundredth of the current Ivdd. To do this, the LDO voltage regulator may comprise a current mirror. The current mirror may then comprise a first branch having a first transistor having given dimensions, and a second branch having a second transistor of dimensions one hundred times smaller than those of the first transistor. The current mirror may also comprise on its first branch a number of identical transistors connected in parallel one hundred times greater than a number of identical transistors connected in parallel provided on its second branch.
[0034] The LDO regulator is therefore configured to draw a total current IVDd equal to the sum of the current Ivdd required by the microprocessor and the current Lux equal to Ldd / 100 delivered to the compensation circuit.
[0035] The JSCR compensation circuit may comprise a first amplifier AMP_LDO configured to control a gate of a first PMOS type PCASLDO transistor. The amplifier AMP_LDO comprises an inverting input connected to the second output 02 of the LDO regulator via the first input INI of the compensation circuit and to the source of the PCASLDO transistor. The amplifier AMP_LD0 also comprises a non-inverting input connected to the first output 01 of the LDO regulator so as to receive a voltage vdd! at the input of the microprocessor CPU. Thus, the first amplifier AMP_LD0 and the transistor PCASLDO make it possible to obtain a potential at the second output 02 of the LDO regulator identical to the potential at the first output 01 of the LDO regulator so as to ensure a current Ivdd / 100 in accordance with the current Ivdd supplying the microprocessor CPU.
[0036] The JSCR compensation circuit further comprises a current source SC having a first terminal connected to the drain of the PCASLDO transistor and a second terminal connected to a cold point, in particular to a ground GND. The current source SC is of the NMOS type and is thus configured to generate a current Isrc equal to Iset / 100 towards the cold point GND. The value of the current Let is chosen to be greater than a maximum of the current Ivdd. The ratio between the current Isrc and the current Let is chosen to be identical to the ratio between the current Lux and Ldd. Embodiments of such a current source are described below in relation to FIGS. 2 and 3.
[0037] The JSCR compensation circuit further comprises a compensation stage. The compensation stage comprises an NMOS type CASMINUS transistor. The CASMINUS transistor has a gate connected to the first output of the regulator LDO so as to receive a fixed voltage allowing the CASMINUS transistor to operate as a cascode. This fixed voltage can be the voltage vdd!. The CASMINUS transistor also has a source connected to the first terminal of the current source and to the drain of the PCASLDO transistor.
[0038] The compensation stage CSTG comprises a resistor Ro having a first terminal connected to the second input IN2 of the compensation circuit JSCR so as to be able to be connected to the power source ALIM and a second terminal connected to a drain of the transistor CASMINUS. The compensation stage also comprises a resistor Ri having a first terminal connected to the first terminal of the resistor Ro and to the second input IN2 of the compensation circuit JSCR so as to be able to be connected to the power source ALIM. The value of the resistor Ri is chosen so that the ratio between the resistor Ri and the resistor Ro is the same as the ratio between the current Iaux and Ivdd, and the same as the ratio between the current Lrc and the current Iset. For example, the resistor Ri has a value equal to R0 / 100.The CASMINUS transistor allows the potential at the second terminal of the resistor Ro to vary freely depending on the current flowing through this resistor Ro.
[0039] The CSTG compensation stage also includes a CASPLUS transistor of the NMOS type. The CASPLUS transistor has a gate connected to the first output of the LDO regulator so as to receive a fixed voltage allowing the CASPLUS transistor to operate as a cascode. This fixed voltage can be the voltage vdd!. The CASPLUS transistor also has a drain connected to a second terminal of the resistor Rb
[0040] The CSTG compensation stage also includes an NMOS type LV transistor. The LV transistor has a drain connected to the source of the CASPLUS transistor and a source connected to the cold point, in particular to ground. The CASPLUS transistor protects the LV transistor from high voltages, and allows the potential at the second terminal of the resistor Ri to vary freely depending on the current flowing through this resistor Rb.
[0041] The compensation stage CSTG further comprises an operational amplifier AMP3 having an inverting input connected to the second terminal of the resistor Ro and a non-inverting input connected to the second terminal of the resistor Rb. The operational amplifier AMP3 also has an output connected to the gate of the transistor LV so as to be able to control the transistor LV. Thus, the amplifier AMP3 makes it possible to obtain a potential at the second terminal of the resistor R i identical to the potential at the second terminal of the resistor Ro.
[0042] In this way, the resistance Ro is crossed by a current Iint equal to (Iset-Ivdd) / 100, and the resistance Ri is crossed by a current ISMt equal to Iset-Ivdd.
[0043] Thus, the current IVcc delivered by the power supply source ALIM is equal to the sum of the current Ivdd required by the microprocessor CPU, the current Ivdd / 100 delivered at the second output 02 of the LDO regulator and the current IJSCr corresponding to the sum of the current Iint passing through the resistor Ro and ISMt passing through the resistor Ri. Thus, the current IVcc is expressed according to the following formula:
[0044] hcc= 1vdd + hscR j \ = ^01¾
[0045] The current IVCC having the value 1.01*Iset no longer depends on the current Ivdd required by the microprocessor CPU, and is therefore constant.
[0046] Such a JSCR compensation circuit has the advantage of being relatively simple while allowing smoothing of the current drawn from the power source and being responsive to variations in the current required by the CPU microprocessor.
[0047] [Fig.2] illustrates an electronic device DIS as described previously, the current source SC of which makes it possible to generate the current Isrc is represented according to a first embodiment.
[0048] In this embodiment, the current source SC comprises a reference branch BREF and at least one current generation branch BGEN Isrc.
[0049] The reference branch comprises an NMOS type cascode transistor MCREF and each current generation branch BGEN comprises an NMOS type cascode transistor MCDAC. The transistors MCREF and MCDAC each have a gate configured to receive a fixed voltage vcas5u. The drain MCREF is configured to receive a reference current Iref, for example 5pA.
[0050] The current source SC further comprises a current mirror MIR for each current generation branch BGEN. Each current mirror MIR makes it possible to multiply the reference current Iref in order to obtain the current Isrc equal to Iset / 100 at the output of the current source. In particular, the generation branch comprises an NMOS type MMREF transistor. This MMREF transistor has a drain connected to a source of the MCREF transistor, a gate connected to a drain of the MCREF transistor and a source connected to a drain of a MSREF transistor of the reference branch. This MSREF transistor also comprises a source connected to the cold point, in particular to ground, and a gate configured to receive the voltage vdd!.
[0051] Each current generation branch comprises an MMDAC transistor <n:0>of NMOS type and a transistor MSDACcn :0> of NMOS type. The transistor MMDACcn :0> of each current generation branch has a gate connected to the gate of the transistor MMREF, a drain connected to a source of the transistor MCDAC <n:0>of this same current generation branch, and a source connected to a drain of the MSDAC transistor <n:0>of this same current generation branch. Thus, each current mirror includes the transistor MMREF of the reference branch and a transistor MMDACcn :0> of a current generation branch.
[0052] Each MSDAC transistor <n:0>has a grid for receiving a SEL selection signal <n:0>, and a source connected to the cold point, in particular to ground. The selection signals allow the different MIR current mirrors to be activated or not.
[0053] The total current consumed by the compensation circuit is then equal to the sum of the current Isrc equal to Iset / 100 generated by the current source SC, a current consumed by the operational amplifier AMP_LDO and a current consumed by the operational amplifier AMP3. The total current consumed is therefore relatively low, and therefore presents an advantage, in particular for products requiring high energy consumption.
[0054] Furthermore, it is also possible to increase the bias current of the amplifier AMP3 in order to improve the performance of the compensation circuit JSCR.
[0055] [Fig.3] illustrates an electronic device DIS as described previously, the current source SC of which makes it possible to generate the current Lrc equal to Let / 100 is represented according to a second embodiment.
[0056] This second embodiment differs from the first embodiment in that it comprises a single common MCDAC transistor for each current generation branch. This MCDAC transistor is controlled by an operational amplifier AMP_CAS and not by the vcas5u signal.
[0057] In particular, the operational amplifier AMP_CAS has a non-inverting input connected to the drain of the transistor MMREF, and an inverting input connected to the drain of the transistor MMDAC.
[0058] In this way, the drain voltage of the MMDAC transistor is identical to the voltage at the drain of the MCREF transistor. It is thus possible to use a smaller MCDAC transistor to reduce parasitic capacitances so that the compensation circuit is more responsive to variations in Ivdd current. The amplifier bandwidth does not impact the compensation circuit because the Iref current is constant.
[0059] The total current consumed by the compensation circuit is then equal to the sum of the current Iset / 100 generated by the current source, the current supplying the operational amplifier AMP_LDO, the current consumed by the operational amplifier AMP3 and the current Iamp_cas supplying the amplifier AMP_CAS. Such a total current is also relatively low compared to known compensation circuits.
[0060] Of course, the present invention is susceptible to various variations and modifications which will appear to those skilled in the art. For example, it is also It is possible to provide an electronic device comprising several LDO voltage regulators and several electronic modules connected to the different voltage regulators. The compensation circuit then has several INI inputs for the different voltage regulators so as to receive the auxiliary currents generated by the different regulators. The current source SC and the compensation stage CSTG are then connected to the different LDO regulators via several parallel branches connected to the INI inputs, each branch comprising a PCAS_LDO transistor controlled by an operational amplifier AMP_LDO as described previously.
Claims
1. Claims Electronic device comprising: - a power supply terminal (BA) configured to be connected to a power source (ALIM), - at least one voltage regulator (LDO) connected to the power supply terminal, - at least one electronic module (CPU) connected to said at least one voltage regulator (LDO) and configured to be able to consume an electronic module current (Ivdd) from the power source, - a compensation circuit (JSCR) connected to said at least one voltage regulator and configured to receive an auxiliary current (Lux) generated by said at least one voltage regulator and being equal to a first fraction of the electronic module current (Ivdd) consumed by said at least one electronic module (CPU), the compensation circuit comprising: O a current source (SC) connected to said at least one voltage regulator so as to receive the auxiliary current (Iaux) and being configured to supply a source current (Isrc) to a cold point such that the source current multiplied by an inverse multiplication factor of the first fraction is greater than a maximum value of the electronic module current (Ivdd) consumed by said at least one electronic module (CPU), O a compensation stage (CSTG) comprising: • a first resistor (RO) and a second resistor (RI) each having a first terminal connected to said supply terminal, the first resistor (RO) having a resistive value equal to a resistive value of the second resistor (RI) multiplied by an inverse multiplication factor of said first fraction, the first resistor having a second terminal connected to the current source so as to be crossed by an intermediate current (Iint) equal to a difference between the source current (I src) and the auxiliary current (Iaux), • a transistor (LV) having a drain connected to a second terminal of the second resistor (RI) and a source connected to the cold point, • an operational amplifier (AMP3) configured to control the transistor (LV) and having an inverting input connected to the second terminal of the first resistor and a non-inverting input connected to the second terminal of the second resistor, so that the second resistor is crossed by a complementary current (ISMt) equal to the intermediate current multiplied (Iint) by said multiplication factor.
2. Device according to claim 1, in which the current source and the compensation stage are connected to said at least one regulator (LDO) via a transistor (PCASLDO) controlled by an operational amplifier (AMP_LDO) having an inverting input connected to a source of this transistor (PCASLDO) and a non-inverting input configured to receive a voltage (vdd!) delivered by said at least one regulator (LDO) to said at least one electronic module (CPU).
3. Device according to one of claims 1 or 2, in which the compensation stage (CSTG) comprises: - a first transistor (CASMINUS) having a drain connected to the second terminal of the first resistor (RO) and a source connected to the current source so that the second terminal of the first resistor is connected to the current source via said first transistor (CASMINUS), and - a second transistor (CASPLUS) having a drain connected to the second terminal of the second resistor (RI) and a source connected to the drain of the transistor (LV) so that the second terminal of the second resistor is connected to the drain of the transistor (LV) via said second transistor (CASMINUS), the first transistor (CASMINUS) and the second transistor (CASPLUS) having a gate configured to receive a fixed voltage (vdd !).
4. Device according to one of claims 1 to 3, in which the current source comprises at least one current mirror configured to generate the source current (Isrc) from a reference current (U)-
5. Device according to claim 4 in which the current source comprises: - a reference branch (BREF) comprising: • a reference transistor (MMREF) of said at least one current mirror, • a cascode transistor (MCREF) having a drain configured to receive said reference current and connected to a gate of the reference transistor (MMREF), a source connected to a drain of the reference transistor (MCREF), and a gate configured to receive a fixed voltage (vcas5u), • a transistor (MSREF) having a drain connected to a source of the reference transistor (MMREF), a source connected to the cold point and a gate configured to receive a voltage (vdd!) delivered by said at least one regulator (LDO) to said at least one electronic module (CPU), - an auxiliary current generation branch (BGEN) for each current mirror comprising: • a copy transistor (MMDACcn :0>) of said current mirror having a gate connected to a gate of the reference transistor and being configured to generate at least in part the source current (1^),• a cascode transistor (MCDAC, <n:0>) having a drain connected to the second output of said at least one regulator (LDO), a source connected to a drain of the copy transistor (MMDAC <n:0>), • a selection transistor (MSDAC <n:0>) having a drain connected to a source of the copy transistor (MMDAC <n:0>), a source connected to the cold point and a grid configured to be controlled by a selection signal (SEL <n:0>).
6. Device according to claim 5 in which the transistor (MCDACcn:0>) of the generation branch of each current mirror has a gate configured to be controlled by the signal (vcas5u).
7. Device according to claim 5 in which the transistor (MCDAC) is common to each generation branch, the current source further comprising an operational amplifier having a non-inverting input connected to the drain of the reference transistor (MMREF), an inverting input connected to the source of the common transistor (MCDAC), and an output connected to the gate of the transistor (MCDAC).
