Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
ELECTRONIC DEVICE
Document Type and Number:
WIPO Patent Application WO/2019/145753
Kind Code:
A1
Abstract:
The present invention concerns an electronic device (1000) comprising a digital circuit (6) to be compensated and a compensation device for compensating PVT variations of this digital circuit (6). This compensation device is arranged also for controlling the operating speed (fDIG) of the 5 digital circuit (6) and can also be arranged for equalising a rise time and a fall time of a logic gate comprising the transistors of the digital circuit (6).The electronic device (1000) implements a first loop, allowing to control the operating speed (fDIG) of the digital circuit (6) by exploiting the same voltage at the compensation terminals of the compensation device and at 10 the terminals at the digital circuit (6) and at a critical path replica module (4) allowing to control the threshold voltages of the respective transistors. The electronic device (1000) can implement also a second loop allowing to equalise the rise and fall times of a logic gate comprising the transistors of the digital circuit (6).

Inventors:
SCOLARI NICOLA (CH)
PON SOLÉ MARC (CH)
RUFFIEUX DAVID (CH)
Application Number:
PCT/IB2018/050463
Publication Date:
August 01, 2019
Filing Date:
January 25, 2018
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
CSEM CT SUISSE DELECTRONIQUE MICROTECHNIQUE SA RECH DEVELOPPEMENT (CH)
International Classes:
H03K3/011; G05F3/20; H03K19/003
Foreign References:
US6466077B12002-10-15
US20080136400A12008-06-12
EP3187960A12017-07-05
US20110095811A12011-04-28
US20040183588A12004-09-23
US20040135621A12004-07-15
Other References:
E. VITTOZ: "High-Performance Crystal Oscillator Circuits: Theory and Application", IEEE, J. SOLID STATE CIRCUITS, vol. 23, no. 3, June 1998 (1998-06-01), pages 774 - 783, XP000670599, DOI: doi:10.1109/4.318
S. Z. ASL: "A 3 ppm 1.5 x 0.8 mm2 1.0 pA 32.768 kHz MEMS-Based Oscillator", J. SOLID-STATE CIRCUITS, vol. 50, no. 1, January 2015 (2015-01-01), pages 1 - 12, XP011568757, DOI: doi:10.1109/JSSC.2014.2360377
Attorney, Agent or Firm:
P&TS SA (AG, LTD.) (CH)
Download PDF:
Claims:
Claims

1. An electronic device (1000) comprising:

- a digital circuit (6) to be compensated, arranged to be operated at an operating speed (ίϋΐs), and comprising a critical path module, said critical path module comprising a first transistor and a second transistor of opposite polarity of said first transistor, the digital circuit comprising a first terminal (V'BPW) and a second terminal (V'BNW) allowing to modify a threshold voltage of said first transistor respectively of said second transistor, said critical path module being arranged to generate a first delay (T'D) related to said operating speed (ίϋΐs),

- a compensation device for compensating PVT variations of said digital circuit (6) and for controlling said operating speed (ίϋΐs), comprising:

- an oscillator (5), generating an oscillator signal having a predetermined frequency (†REF),

- a critical path replica module (4), arranged for generating a second delay (ID) equal or superior to a first delay (T'D) of the critical path module of the digital circuit (6), and comprising a first critical path replica transistor, a second critical path replica transistor of opposite polarity of said first critical path replica transistor, a first critical path replica terminal (V"BPW) and a second critical path replica terminal (V"BNW) allowing to modify a threshold voltage of said first critical path replica transistor respectively of said second critical path replica transistor,

- a speed measurement module (1), connected to the oscillator (5) and to the critical path replica module (4), and arranged to determine a relation between the predetermined frequency (†REF) of the oscillator (5) and the second delay (TD) of the critical path replica module (4), a first compensation terminal (VBPW), a second compensation terminal (VBNW), wherein the first terminal (V'BPW) is arranged to be connected to the first critical path replica terminal (V"BPW) and to the first compensation terminal (VBPW), the second terminal (V'BNW) is arranged to be connected to the second critical path replica terminal (V"BNW) and to the second compensation terminal (VBNW), and wherein the compensation device further comprises:

- a control module (3) arranged to be connected to the speed measurement module (1), to the first compensation terminal (VBPW) and to the second compensation terminal (VBNW), SO as to adjust the voltage at the first compensation terminal (VBPW) and at the second compensation terminal (VBNW), in order to modify the second delay (ID) of the critical path replica module (4) so as to operate the digital circuit (6) at the operating speed (ίϋΐs).

2. The electronic device of claim 1 , wherein the compensation device further comprises:

- a current balance detector module (2), comprising a first replica transistor and a second replica transistor of opposite polarity of said first replica transistor, a first replica terminal (V"'BPW) and a second replica terminal (V"'BNW) allowing to modify a threshold voltage of said first replica transistor respectively of said second replica transistor, current balance detector module (2) being arranged for indicating a balance between a current flowing in a first replica transistor and in the second replica transistor, said current balance detector module (2) being connected to the control module (3), the first compensation terminal (VBPW) being arranged to be connected to the first replica terminal (V"'BPW),

the second compensation terminal (V'BNW) being arranged to be connected to the second replica terminal (V"'BNW), the control module (3) being further arranged to adjust, on the basis of an output of said current balance detector module (2), the voltage at first compensation terminal (VBPW) and the voltage at the second compensation terminal (VBNW), in order to modify and/or guarantee the balance of the currents flowing in the first and second replica transistors, so as to equalise a rise time and a fall time of at least one logic gate comprising the first transistor and of the second transistor of the digital circuit (6).

3. The electronic device of one of claims 1 or 2, the first and second critical path replica transistors being a replica of said first

respectively second transistors and/or the first and second replica transistors being a replica of said first respectively second transistors.

4. The electronic device of one of claims 1 to 3, wherein said critical path replica module (4) comprises a combination of cascaded digital logic gates (41), each of said logic gates comprising said first critical path replica transistor and/or said second critical path replica transistor. 5. The electronic device of one of claims 1 to 4, wherein the critical path replica module (4) comprises a ring oscillator (40).

6. The electronic device of one of claims 1 to 5, wherein a length of said critical path replica module (4) is tunable, preferably at the runtime of the electronic device, in order to adjust said second temporal delay (ID) for a given design of said digital circuit (6) to be compensated.

7. The electronic device of claim 6, wherein said ring oscillator (40) comprises a multiplexer (42) at an input of the ring oscillator (40), said multiplexer (42) comprising a critical path tuning terminal

(crit_path_tuning), allowing to tune the length of said ring oscillator (40), and hence the delay per stage (TD/N) of said ring oscillator (40), the second delay (ID) being controlled by said control module (3).

8. The electronic device of one of claims 6 to 7, wherein said tunable length of said critical path replica module (4) generates said operating speed (ίϋΐs).

9. The electronic device of one of claims 6 to 8, comprising a built-in self test module (BIST) for adjusting the length of critical path replica module (4) and/or for adjusting the second delay (ID) via the control means (3). 10. The electronic device of claim 9, said digital circuit (6) comprising said built-in self test module (BIST).

1 1. The electronic device of one of claims 9 or 10, said replica path module of said digital circuit (6) comprising said built-in self test module (BIST). 12. The electronic device of claim 9, said critical path replica module (4) comprising said built-in self test module (BIST).

13. The electronic device of claim 12, wherein said built-in self test module comprises a pseudo-random digital sequence generator (9), connected to a first, second and third parallel paths (P1 , P2, P3), the first and third paths (PI , P3) being delayed with regards to the second path (P2) by a first respectively third temporal delays (n, n+m), the third delay (n+m) being superior to the first delay (n), said built-in self test module further comprising logical operators for comparing the signals at an output of each of the three paths so as to decide if the length of the critical path replica module (4) must be modified or not on the basis of said comparing and/or if the second delay (ID) must be modified or not via the control means (3).

14. The electronic device of one of claims 1 to 13, wherein the speed measurement module (1) comprises a frequency locked loop control finite state machine module (FLL CTRL FSM), having as inputs:

- the predetermined frequency (†REF) of the ring oscillator (5),

- the operating speed (†DIG) generated by said critical path replica module (4), and

- a frequency ratio (N), defining the desired ratio between the operating speed (†DIG) and the predetermined frequency (fi_o).

15. The electronic device of claim 14, wherein the current balance detector module (2) comprises a current mirror module (8).

16. The electronic device of claim 15, wherein the frequency locked loop control finite state machine module (FLL CTRL FSM) has an output signal defining a current ratio (K) of the current mirror module (8).

17. The electronic device of one of claims 14 to 16, wherein said frequency locked loop control finite state machine module (FLL CTRL FSM) comprises:

- a frequency counter module (FC), followed by

- at least one integrator time constant module (INT), followed by

- a sigma-delta modulator (SD), allowing to increase the resolution of the output of the frequency locked loop control finite state machine module (FLL CTRL FSM). 18. The electronic device of one of claims 2 to 17, wherein the compensation device comprising a first operational amplifier transistor (TOAN) and a second operational amplifier transistor (TOAP), the first compensation terminal (VBPW) and the second compensation terminal (VBNW) being bulk terminals (B) or the back gate terminals (G') of a first operational amplifier transistor (TOAN) respectively of the second

compensation transistor (TOAP), or - if the first and second operational amplifier transistors (TOAN, TOAP) comprise two gate terminals - the second gate terminals (G") of the first and second operational amplifier transistors (TOAN, TOAP).

19. The electronic device of one of claims 15 to 18, wherein said current balance detector module (2) comprises said current mirror module (8), said first operational amplifier transistor (TOAN) and said second operational amplifier transistor (TOAP), said first operational amplifier transistor (TOAN) being said first replica transistor and said second

operational amplifier transistor (TOAP) being said second replica transistor.

20. The electronic device of one of claims 18 to 19, wherein said control module (3) comprises a first operational amplifier (OA1) and a second operational amplifier (OA2) configured to force the current of the current mirror module to flow in the first and second operational amplifier transistors (TOAN, TOAP), by adjusting the voltages at the first and second compensation terminals (VBPW, VBNW).

21. The electronic device of claim 20, wherein

- the first operational amplifier (OA1) comprising a first inverting input terminal (I N 1 -), a first non-inverting input terminal (IN 1 +) and a first output terminal (OUT1), wherein:

- the first non-inverting input terminal (IN 1 +) is connected to a first supply source (VDDC),

- the first inverting input terminal (IN 1 -) is connected to the current mirror module (8) and to the drain terminal of the first operational amplifier (TOAN),

- the first output terminal (OUT1) is connected to the first compensation terminal (VBPW) of the first operational amplifier (TOAN) via a first second compensation module (10), and

- the second operational amplifier (OA2) comprising an inverting input terminal (IN2-), a non-inverting input terminal (IN2+) and a second output terminal (OUT2), wherein:

- the non-inverting input terminal (IN2+) is connected to the current mirror module (8) and to the source terminal of the second operational amplifier (TOAP),

- the inverting input terminal (IN2-) is connected to the first supply source (VDDC), - the second output terminal (OUT2) is connected to the second compensation terminal (VBNW) of the second compensation transistor (Tp) via a second compensation module (10).

22. The electronic device of one of claims 1 to 21 , wherein the control module (3) comprises

- a first second compensation modules (10, 20), forming two parallel branches whose positive and negative power supplies (V+1 , V-1 ; V+2, V-2) cover the range of the desired substrate voltage excursion at the first and second compensation terminal (VBPW, VBNW)

- a first and second drive modules (31 , 32) connected to the speed

measurement module (1) and to the output of the current balance detector module (2), and on the basis of at least one of said outputs, configured to drive the first and second compensation modules (10, 20), in order to change the voltage at the first compensation respectively second

compensation terminals (VBPW, VBNW).

23. The electronic device of one of claims 20 to 22, wherein said first drive module (31) comprises said first operational amplifier (OA1) and said second drive module (32) comprises said second operational amplifier (OA2).

24. The electronic device of the claim 22, wherein:

- the first compensation module comprises a first compensation transistor (TN), a first load ( ) in series with said first compensation transistor (TN), said first load (U) being a first resistor (Ri) or a first load compensation transistor (TPL) of opposite polarity of said first compensation transistor (TN), the first compensation transistor (TN) and the first load compensation transistor (TPL) being arranged to work as individually controlled current sink respectively current source generators, or as individually controlled switches, the first compensation terminal (VBPW) being between the first compensation transistor (TN) and the first load (U),

- the second compensation module comprises a second compensation transistor (Tp), a second load (l_2) in series with said second compensation transistor (Tp), said second load (l_2) being a second resistor (R2) or a second load compensation transistor (TNL) of opposite polarity of said second compensation transistor (Tp), the second compensation transistor (Tp) and the second load compensation transistor (TNL) being arranged to work as individually controlled current source respectively current sink generators, or as individually controlled switches, the second compensation terminal (VBNW) being between the second compensation transistor (Tp) and the second load (L2).

25. The electronic device of one of claims 22 or 24, wherein the control module (3) comprises an H-bridge type charge pump module arranged to be supplied at voltages corresponding at least to the extremes of range of the desired substrate voltage excursion at the first and second compensation terminal (VBPW, VBNW).

26. The electronic device of claim 25, wherein said H-bridge type charge pump module comprises a first charge pump current module (12) and a second charge pump current module (14), each first and second charge pump current modules (12, 14) being connected to one of the two compensation terminals (VBPW, VBNW), said H-bridge type charge pump module being arranged to modify the voltage at the first and second compensation terminals (VBPW, VBNW) by modifying a current in each of said first and second charge pump current modules (12, 14).

27. The electronic device of claim 26, wherein:

- said first charge pump current module (12) comprises a first source current generator (11 1), in series with a first switch (Sw1), a second switch (Sw2), a first sink current generator (112), and the first compensation terminal (VBPW) being between the first switch (Sw1) and the second switch (Sw2), and

- said second charge pump current module (22) comprises a second source current generator (121), in series with a third switch (Sw3), a fourth switch (Sw42), a second sink current generator (I22), and the second compensation terminal (VBNW) being between the third switch (Sw3) and the fourth switch (Sw4),

wherein the first and third switches (Sw1 , Sw3) and the first and fourth switches (Sw1 , Sw4) are controlled by the speed measurement module (1) and/or by the current balance detector module (2) via the first and second drive modules (31 , 32).

28. The electronic device of claim 27, wherein the second and third switches (Sw2, Sw3) are closed at the same time by the first and second drive modules (31, 32), so as to control via the currents of the corresponding current generators (121 , 112) the differential mode voltages at the first and second compensation terminals (VBPW, VBNW) in order to increase the second delay (ID) of the critical path replica module (4).

29. The electronic device of claim 28, wherein the first and fourth switches (Sw1 , Sw4) are closed at the same time by the first and second drive modules (31 , 32), so as to control via the currents of the

corresponding current generators (11 1 , I22) the differential mode voltages at the first and second compensation terminals (VBPW, VBNW) in order to reduce the second delay (ID) of the critical path replica module (4).

30. The electronic device of claim 28, wherein the first and third switches (Sw1 , Sw3) or the second and fourth switches (Sw2, Sw4) are closed at the same time by the first and second drive modules (31 , 32), so as to control via the currents of the corresponding current generators (11 1 ,

121; 112, 122) the common mode voltages at the first and second

compensation terminals (VBPW, VBNW) in order to modify the ratio of the current flowing in the first replica transistor (T"'N) with the current flowing in the second replica transistor (T"'p), according to the output of the current balance detector module (2).

31. The electronic device of one of claims 26 to 30, wherein the output of the current balance detector module (2) and the output of the speed measurement module (1) define four logic combinations, each combination allowing to activate one of the switches of the first charge pump current module (12) and of the second charge pump current module (22).

32. The electronic device of one of claims 26 to 31 , wherein the first source current generator, the second source current generator, the first sink current generator and/or the second sink current generator comprise an IDAC module controlled by a current locked loop control finite state machine module, in order to minimize a ripple on the voltage at the first and second compensation terminal (VBPW, VBNW).

33. The electronic device of claim 32, wherein the current locked loop control finite state machine module comprises an integrator, said integrator being arranged to dynamically trim a static average DC current needed at the first and second compensation terminal (VBPW, VBNW).

34. The electronic device of one of claims 22 or 24, wherein the control module (3) comprises a dual polarity DCDC-type charge pump converter module arranged to generate the desired substrate voltage excursion at the first and second compensation terminals (VBPW, VBNW).

35. The electronic device of claim 34, wherein dual polarity DCDC- type charge pump converter module is arranged to modify the voltage at the first and second compensation terminals (VBPW, VBNW) by modifying a charge at said first and second compensation terminals (VBPW, VBNW).

36. The electronic device of one of claims 34 or 35, wherein said dual polarity DCDC-type charge pump converter module comprises:

- a first DCDC-type charge pump converter module (14), comprising a first charge pump flying capacitor (C1), two voltage sources (VDD, VSS), said first charge pump flying capacitor (C1) being connected to said voltage sources (VDD, VSS) and to said first compensation terminal (VBPW), via couples of switches (f, ) or which are commanded so as to generate the desired substrate voltage at the first second compensation terminal (VBPW), said voltage varying in a range whose extremities depend on the two voltage sources (VDD, VSS),

- a second DCDC-type charge pump converter module (24), comprising a second charge pump flying capacitor (C2), said two voltage sources (VDD, VSS), said second charge pump flying capacitor (C2) being connected to said voltage sources (VDD, VSS) and to said second compensation terminal (VBNW), via couples of switches (fί ) which are commanded so as to generate the desired substrate voltage at the second compensation terminal (VBNW), said voltage varying in a range whose extremities depend on the two voltage sources (VDD, VSS).

37. The electronic device of claim 36, wherein each of the first and second DCDC-type charge pump converter modules (14, 24) comprises a first couple of switches (fo, fo) arranged to be closed so as to charge the first respectively second charge pump flying capacitors (C1 , C2) at a voltage corresponding to a first difference between the two voltage sources (VDD- VSS), and a second and/or a third couples of switches (fi, fn; f2, f2') arranged to be closed so as to alter said voltage (VDD-VSS) at the

respectively second charge pump flying capacitors (C1 , C2) in said range whose extremities depend on the two voltage sources (VDD, VSS).

38. The electronic device of one of claims 36 to 37, wherein the extremities of said range are:

- a second difference between the two voltage sources (VSS-VDD), and

- the double of the higher voltage source (2VDD).

39. The electronic device of one of claims 22 to 38, wherein the current balance detector module (2) comprises a N-stages modified inverter-based comparator (26), wherein the two gate terminals of the inverter of the first stage (260) are connected to a first supply voltage (VDD), to a node of a fixed voltage (VDD/2), or to a second supply voltage (VSS), according to the operating speed (†DIG) of the digital circuit (6) to be compensated and/or to a type of the application of said digital circuit (6).

40. The electronic device of claim 31 , the N-stages modified inverter-based comparator comprises at least a second and a third stages (262, 264), allowing to increase the gain of the current balance detector module (2).

41. The electronic device of one of claims 39 or 40, the number of the transistors of the first stage (260) being superior to the number of transistor of the second stage (262), and the number of the transistors of the second stage (262) being superior to the number of transistor of the third stage (264), in order to improve the precision of the current balance detector module (2).

42. The electronic device of one of claims 39 to 41 , wherein the current balance detector module (2) and the speed measurement module (1) are duty-cycled, e.g. by to maintain the digital circuit (6) in retention, e.g. by gating the operating speed (ίϋΐs).

43. The electronic device of one of claims 39 to 42, comprising several current balance detector modules (2) arranged to be used

alternatively to scale their static consumption depending on the operating condition of the digital circuit (6) to be compensated.

44. The electronic device of one of claims 39 to 43, wherein the current balance detector module(s) (2) comprises a number of digital gates superior to 50, e.g. superior to 100, used in series and/or parallel

arrangement, so as to minimise their mismatch.

45. The electronic device of one of claims 22 to 44, wherein the current balance detector module (2) is arranged to quantitatively indicate the ratio between the current flowing in the first replica transistor (T"'N) and the current flowing in the second replica transistor (T"'p).

46. The electronic device of claim 45, wherein the current balance detector module (2) comprises a balance measurement module, said current balance measurement module comprising

- two half rings (HR1 , HR2), each half ring comprising fast and slow NMOS transistors and fast and slow PMOS transistors,

- each half ring comprising at a first end a first logic gate and at a second end a win terminal, the first logic gate having a first input being the start input (start 1 ) and a second input being the win terminal (win2) of the other half ring,

- a first path for a first signal at the first input of the first logic gate comprising fast transistors NMOS and slow transistors PMOS,

- a second path for a second signal at the first input of the second logic gate comprising slow transistors NMOS and the fast transistors PMOS,

- a counter module (COUNT) arranged to count the number of loops in the two half rings (HR1 , HR2) necessary for one of the first and second signals to chase the other, so as to indicate how balanced the NMOS and PMOS transistors are.

47. The electronic device of claim 46, wherein the current balance measurement module is arranged to provide proportional, integral or derivative coefficients.

48. The electronic device of one of claims 1 to 47, the transistor being operated to work in a sub-threshold region or in a near-threshold region.

49. The electronic device of one of claims 1 to 48, the module of the difference between the voltage of first supply source (VSS) and the voltage of second supply source (VDD) of the digital circuit (6) being comprised between 50 mV and 900 mV, preferably being substantially equal to 500 mV.

50. The electronic device of one of claims 1 to 49, the digital circuit (6) comprising a third and a fourth transistors of opposite polarity, the third and a fourth transistors being different from the first and second transistors, as e.g. they have a different orientation or as e.g. they are SRAM bit-cell transistors.

51. The electronic device of claim 50, the electronic device (1000) comprising a second critical path replica circuit, a second speed

measurement module and a second balance current detector module comprising transistors which are a replica of the third and fourth transistors of the digital circuit (6).

Description:
Electronic device

Field of the invention

[0001] The present invention concerns an electronic device. In particular, the present invention concerns an electronic device comprising a digital circuit to be compensated and a compensation device for compensating PVT variations of this digital circuit. This compensation device is arranged also for controlling the operating speed of the digital circuit. This

compensation device can also be arranged for equalising a rise time and a fall time of a logic gate comprising the transistors of the digital circuit. This electronic device allows robust low voltage operation of digital circuits.

Description of related art

[0001] With the constant scaling of MOS transistors resulting in ever increasing speed performance, it has long been proposed to supply analog and/or digital circuits (e.g. and in a non-limiting way, digital gates) at lower voltages, so to spare dynamic power (equal to f-C V 2 , where f is the clock frequency, C the gate capacitance being switched and V the supply voltage of the circuit), as long as required speed performance can be met.

[0002] Provided the transistors are operated in strong inversion or in the super-Vi h region (i.e. their gate-source voltage is higher than the threshold voltage of the transistor, i.e. I V GS I » Vi h ), the variation in speed

performance of the analog and/or digital circuit over Process-Voltage- Temperature variations ("PVT variations" in the following) remains reasonable, permitting the generation of the lower reference voltage, e.g. by using a bandgap circuit or a similar circuit, providing a mostly PVT- insensitive constant voltage output. In such a way, it is possible to

guarantee a controlled dynamic power dissipation.

[0003] For example, a 180 nm CMOS node having a nominal core voltage VDD of 1.8 V, a threshold voltage Vm of 450mV, operation at VDD from 0.8 V to 1 V permits an about 4-fold power reduction. [0004] However, more advanced process nodes face a constant nominal voltage reduction (e.g. 1 V - 1.2 V for a 55-65 nm CMOS) imposed by thinner gate oxide, calling for more drastic voltage reduction if significant energy savings are desired. As the threshold voltage V- of the transistors does not scale as fast as nominal voltage, the transistors of the analog and/or digital circuits are operated more and more in the near-threshold region or in the sub-threshold region, exacerbating their sensitivity to PVT variations.

[0005] In this context, the expression "sub-threshold region" indicates that the gate-source voltage of the transistor is lower than the threshold voltage of the transistor, i.e. I V GS I < V-r h .

[0006] In this context, the expression "near-threshold region" indicates that the gate-source voltage of the transistor is at or near the threshold voltage of the transistor, i.e. I V GS I º V-r h . In other words, the difference between the gate-source voltage of the transistor and its threshold voltage is of some tenths of Volts at most.

[0007] In near-threshold regions or in a sub-threshold regions, the bandgap-based constant voltage approach, used in super-Vi h regions, reaches its limits, calling for PVT-variations tracking adaptive reference generation devices.

[0008] Ways to control the power dissipation of logic gates were proposed for watch circuits, for a nominal voltage VDD of 5 V and for threshold voltage V- of about 2 V. a particular way is described in the document E. Vittoz et. al., "High-Performance Crystal Oscillator Circuits: Theory and Application", IEEE, J. Solid State Circuits, Vol. 23, no. 3, pp. 774- 783, June 1998. The main drawback of this solution is that the dynamic power dissipated by the logic gates compensated by such a device will vary significantly.

[0009] Another known compensation device, generating a lower voltage, is described in the document 5. Z. As!, et. al., "A 3 ppm 1.5 x 0.8 mm 2 1.0 mA 32.768 kHz MEMS-Based Oscillator", J. Solid-State Circuits, Vol. 50, no. 1, pp. 1-12, Jan. 2015. Although the dynamic power dissipated by the logic gates compensated by such a device varies less than the previous solution, logic gates compensated by such a device will have their slowest transistor (NMOS or PMOS) delivering an ION current similar to the biasing one I, guarantying a minimum circuit speed. The speed of the other transistor type (PMOS or NMOS) will depend on the specific process corner, being maximal in slow-fast (SF) or fast-low (FS) cases, and rather close in typical -typical (TT), fast-fast (FF) or slow-slow (SS) ones. Under low voltage operation, in the case the transistors are operated in the sub- or near threshold region, this can result in huge N to P type MOS current ratios, leading to large leakage currents or even compromising retention in SRAM cells of the circuit to be compensated.

[0010] In this context, the expression "low voltage operation" for a circuit indicates that the difference between the voltage of a first supply source and the voltage of a second supply source of the circuit is comprised between 50 mV and 900 mV, preferably being substantially equal to 500 mV.

[0002] The document US20040135621 concerns a semiconductor integrated circuit apparatus capable of controlling the substrate voltage of a MOSFET so that the drain current for an arbitrary gate voltage value in a subthreshold region or a saturated region will be free from temperature dependence and process variation dependence. The semiconductor integrated circuit apparatus includes:

- an integrated circuit main body having a plurality of MOSFETs on a semiconductor substrate,

- a circuit generating a constant threshold voltage Vm or a constant current flowing in the transistors (ID S ).

This circuit generating a constant threshold voltage Vm or a constant current ID S comprises monitoring means (a constant current source and a monitoring MOSFET formed on the same substrate as the plurality of MOSFETs of the integrated circuit main body) and comparison means (e.g. an operational amplifier). The output of the comparison means is connected to the bulk of the monitoring MOSFET, so as to compensate PVT variations.

The described compensation device does not allow to control the operating speed of the digital circuit to be compensated. The described compensation device does not allow also to equalise a rise time and a fall time of a logic gate comprising the transistors of the digital circuit to be compensated.

[0003] In this context, the expression "operating speed" of the digital circuit to be compensated indicates a parameter of the digital circuit indicating how slow or fast the digital circuit works. In one embodiment, the operating speed of the digital circuit is its operating frequency.

[0004] In this context, the expression "rise time" indicates the time (or a percentage of the time) necessary for an output terminal of a logic gate of the digital circuit to be compensated, to go from a low voltage

(corresponding to a logic zero value) to a high voltage (corresponding to a logic one value).

[0005] In this context, the expression "fall time" indicates the time (or a percentage of the time) necessary for an output terminal of a logic gate of the digital circuit to be compensated, to go from a high voltage

(corresponding to a logic one value) to a low voltage (corresponding to a logic zero value).

[0006] The ratio of the currents flowing in the transistors of opposite polarity of the digital circuit to be compensated determines the ratio of the rise/fall times. In other words, by balancing those currents it is possible to equalise the rise time with the fall time. [0011] Therefore, it is an aim of the present invention to propose an electronic device comprising a digital circuit to be compensated and a compensation device in which the aforementioned disadvantages are obviated or mitigated. [0007] It is an aim of the present invention to propose an electronic device comprising a digital circuit to be compensated and a compensation device for compensating PVT variations of the digital circuit allowing also to control the operating speed of the digital circuit. [0008] It is an aim of the present invention to propose an electronic device comprising a digital circuit to be compensated and a compensation device for compensating PVT variations of the digital circuit allowing also to equalise a rise time and a fall time of a logic gate comprising the transistors of the digital circuit. [0012] It is an aim of the present invention to propose an electronic device comprising a digital circuit to be compensated and a compensation device for compensating PVT variations of the digital circuit in which the power dissipation is optimised.

[0013] It is an aim of the present invention to propose an electronic device comprising a digital circuit to be compensated and a compensation device compensating in an efficient way PVT variations of the digital circuit operating at low voltages.

[0014] It is an aim of the present invention to propose an electronic device comprising a digital circuit to be compensated and a compensation device compensating in an efficient way PVT variations of the digital circuit operating in the sub- or near- threshold region.

Brief summary of the invention

[0015] According to the invention, these aims are achieved by means of an electronic device according to the appended claims. Brief description of the drawings

[0016] The invention will be better understood with the aid of the description of an embodiment given by way of example and illustrated by the figures, in which: Fig. 1 shows a general view of the modules of an embodiment of the electronic device according to the invention.

Fig. 2 shows a view of a first embodiment of the electronic device according to the invention.

Fig. 3 shows a view of one embodiment of the frequency locked loop control finite state machine module of a first embodiment of the electronic device according to the invention.

Fig. 4 shows a view of one embodiment of the built-in self test module of the first embodiment of the electronic device according to the invention. Fig. 5 shows a view a second embodiment of the control module of the compensation device according to the invention.

Fig. 6 shows a view of a third embodiment of the control module of the compensation device according to the invention.

Figs. 7A and 7B show a view of two embodiments of the current balance detector module which is present in one embodiment of the compensation device according to the invention.

Fig. 8 shows a view of one embodiment of the the critical path replica module of the compensation device according to the invention. Fig. 9 shows a view another embodiment of the current balance detector module of the compensation device according to one embodiment of the invention.

Detailed description of possible embodiments of the invention [0017] Fig. 1 shows a general view of the modules of an embodiment of the electronic device 1000 according to the invention.

[0018] This the electronic device 1000 comprises:

- a digital circuit 6 to be compensated, arranged to be operated at an operating speed fpi G , and

- a compensation device for compensating PVT variations of the digital circuit and for controlling this operating speed fpi G , the compensation device comprising:

- the reference or local oscillator 5,

- the critical path replica module 4,

- the speed or timing measurement module 1 ,

- the first compensation terminal VBPW,

- the second compensation terminal VBNW, and

- the control module 3.

[0019] In the context of the present invention, the term "terminal" must be considered as a synonym of a node. It does not necessarily indicate that it is a pin that can be physically accessed by a user.

[0020] In the embodiment of Fig. 1 , the compensation device comprises also the balance current detector module 2. However, its presence is not necessary for the working of the electronic device 1000 and will be discussed later.

[0021] The digital circuit 6 to be compensated comprises a first transistor and a second transistor of opposite polarity of the first transistor (e.g. the first transistor is a NMOS transistor and the second transistor is a PMOS transistor), which are not illustrated in Fig. 1. The digital circuit 6 comprises also a first terminal V'BPW and a second terminal V'BNW allowing to modify a threshold voltage of the first transistor respectively of the second transistor.

[0022] The digital circuit 6 to be compensated according to the

invention comprises also a critical path module (not illustrated). The above- mentioned first and a second transistors belong to this critical path module. In one embodiment, the critical path module comprises a combination of cascades digital logic gates of standard library cells (e.g. inverters, NANDs, NORs, etc.), each of the logic gates comprising the first critical path replica transistor and/or the second critical path replica transistor. The critical path module generates a first delay T'D. The critical path module is the path which has the longest delay between its input value and its output value. This longest delay or first delay T'D is related to the operating speed f DiG -

[0023] In one preferred embodiment, the digital circuit 6 is arranged to be operated at low voltage. In this context the expression "low voltage" for a circuit indicates that the difference between the voltage of its first supply source and the voltage of its second supply source is comprised between 50 mV and 900 mV, preferably being substantially equal to 500 mV.

[0024] The oscillator 5 according to the invention is arranged to generate an oscillator signal having a predetermined frequency†REF. In one embodiment, the oscillator is a crystal based oscillator (or XTAL oscillator).

In one particular embodiment, it is arranged for generated a frequency of 32 kHz.

[0025] The critical path replica module 4 according to the invention is a replica of the critical path module of the digital circuit 6, i.e. it is arranged for generating a second delay TD equal or superior to a first delay of the critical path module of the digital circuit 6. In other words, TD > T'D. [0026] The critical path replica module 4 comprises a first critical path replica transistor and a second critical path replica transistor of opposite polarity of the first critical path replica transistor (not illustrated). The first and second critical path replica transistors are a replica of the first respectively second transistors of the digital circuit 6.

[0027] In this context, the expression "being a replica" means that at least at a temporal instant, the four terminals (i.e. the source, gate, drain terminals and the terminal allowing to modify the threshold voltage of the transistor) of each of the transistors of the critical path replica module 4 are at the same potential of the corresponding terminals of the corresponding transistors of the critical path module of the digital circuit 6 to be

compensated. Moreover, it also means that the transistors of the critical path replica module 4 are of the same technology of the corresponding transistors of the critical path module of the digital circuit 6. Finally, it also means that the transistors of the critical path replica module 4 match the corresponding transistors of the critical path module of the digital circuit 6, i.e. they have at least the same width to length ratio (W/L) and the same orientation on the silicon slice.

[0028] The critical path replica module 4 comprises also a first critical path replica terminal V"BPW and a second critical path replica terminal V"BNW allowing to modify a threshold voltage of the first respectively of the second critical path replica transistors.

[0029] As illustrated in Fig. 1, the first terminal V'BPW of the digital circuit 6 is arranged to be connected to the first critical path replica terminal V"BPW, and the second terminal V'BNW of the digital circuit 6 is arranged to be connected to the second critical path replica terminal V"BNW.

[0030] In the context of the present invention, the expression

"connected to" means that the connection can be direct (i.e. without any element between the two connected parts), or that the two connected parts are linked by an electric path comprising in between one or more elements which do not modify the voltage between the connected parts (e.g. a buffer). The expression "connected to" could also mean that the two connected parts are linked by an electric path comprising in between one or more elements that could modify the voltage between the connected parts.

[0031] The speed measurement module 1 according to the invention is connected to the oscillator 5 and to the critical path replica module 4, in particular to its input "in" and its output "out".

[0032] In the embodiment illustrated in Fig. 1, the input of the critical path replica module 4 is the operating speed†DI G of the digital circuit 6 to be compensated. This feature is illustrated in Fig. 1 by a dotted line connecting the input "in" of the critical path replica module 4 and the digital circuit 6.

[0033] The speed measurement module 1 is arranged to determine a relation between the predetermined frequency of the oscillator†REF and the second delay ID of the critical path replica module 4.

[0034] The compensation device illustrated in Fig. 1 comprises a first compensation terminal VBPW arranged to be connected to the first terminal V'BPW of the digital circuit 6 and to the first critical path replica terminal V"BPW of the critical path replica module 4.

[0035] The compensation device illustrated in Fig. 1 comprises a second compensation terminal VBNW arranged to be connected to the second terminal V'BNW of the digital circuit 6 and to the second critical path replica terminal V" BN w of the critical path replica module 4.

[0036] In one preferred embodiment, the first and second terminals and the critical path replica terminals are bulk terminals or the back gate terminals of respective transistors. If those transistors comprise two gate terminals, the first and second terminals and the critical path replica terminals are the gate terminals of the respective transistors. [0037] The control module 3 is arranged to be connected to the speed measurement module 2, to the first compensation terminal VBPW and to the second compensation terminal VBNW, SO as to adjust the voltage at the first compensation terminal VBPW and at the second compensation terminal VBNW (ant therefore the voltage at the the first and second terminals V'BPW, V'BNW of the digital circuit 6 and the voltage at the the first and second critical path replica terminals V"BPW, V"BNW of the critical path replica module 4) in order to modify the second delay ID of the critical path replica module 4, so as to operate the digital circuit 6 at the (desired) operating speed foi G -

[0038] In other words, the electronic device 1000 implements a first loop, allowing to control the operating speed†DI G of the digital circuit 6 by exploiting the same voltage at the terminals VBPW, V'BPW and V"BPW, respectively at the terminals VBNW, V'BNW and V"BNW.

[0039] In one preferred embodiment, this first loop comprises mainly and preferably only digital elements.

[0040] This first loop allows to implement the equation:

†DIG = N *†REF

wherein†DI G is the operating speed,†REF is frequency generated by the oscillator and N is a positive fractional or integer number, preferably superior to one, which can be defined by the user of the electronic device according to the type of application of the electronic device (e.g. memories, processors, etc.) and/or the value of the operating speed and/or according to other user's needs.

[0041] The first loop can be a DLL (Delay Lock Loop) if the critical path replica module 4 comprises an open loop, as illustrated in Fig. 4. In this case, the speed measurement module allows to measure a time (the second delay ID).

[0042] The first loop can be a FLL (Frequency Lock Loop) or a PLL (Phase Lock Loop), if the critical path replica module 4 comprises a closed loop, e.g. a ring oscillator, as illustrated e.g. on Fig. 2. If the first loop is a FLL or a PLL, the speed measurement module 1 allows to measure a frequency (the operating frequency of the digital circuit 6) respectively a phase (related to the operating frequency).

[0043] In all the cases, the speed measurement module 1 allows to compare a speed of the critical path replica module 4, e.g. a time, a frequency or a phase, to a reference frequency†REF, i.e. the frequency of the oscillator. For example, the speed measurement module 1 could comprise a counter arranged for counting the frequency†REF of the oscillator 5 during the second delay ID of the critical path replica module 4.

[0044] According to this comparison, if the relation†DI G = N *†REF is not satisfied, the control module 3 according to the invention is configured to adjust the voltage at the first compensation terminal VBPW and at the second compensation terminal VBNW, in order to modify the second delay ID of the critical path replica module 4 so as to operate the digital circuit 6 at the desired operating speed f DiG -

[0045] In the embodiment of Fig. 1 , the compensation device further comprises a current balance detector module 2. In one preferred

embodiment, the current balance detector module 2 comprises a first replica transistor (not illustrated in Fig. 1) and a second replica transistor (not illustrated in Fig. 1) of opposite polarity of the first replica transistor. Examples of said first replica transistors are illustrated in Figs 7A and 7B (references T"'N, T"'p). The first and second replica transistors are a replica of the corresponding first and second transistors of the digital circuit 6 to be compensated.

[0046] In the embodiment of Fig. 1 , the current balance detector module 2 comprises a first replica terminal V"'BPW and a second replica terminal V"BNW allowing to modify a threshold voltage of the first respectively second replica transistors T"'N, T"'p. In this embodiment, the first compensation terminal VBPW is arranged to be connected to the first replica terminal V"'BPW. Therefore, the terminals VBPW, V'BPW, V"BPW and V"'BPW have substantially the same voltage. [0047] In this embodiment, the second compensation terminal VBNW is arranged to be connected to the second replica terminal V"'BNW. Therefore, the terminals VBNW, V'BNW, V"BNW and V"'BNW have substantially the same voltage.

[0048] In this embodiment, current balance detector module 2 is arranged for indicating a balance between a current flowing in the replica transistor and in the second replica transistor. The current balance detector module 2 is connected to the control module 3.

[0049] In particular, the control module is further arranged to adjust, on the basis of an output of the current balance detector module 2, the voltage at first compensation terminal VBNW and the voltage at the second compensation terminal VBPW, in order to modify and/or guarantee the balance of the currents flowing in the first and second replica transistors, so as to equalise a rise time and a fall time of at least one logic gate

comprising the first transistor and of the second transistor of the digital circuit 6. In this preferred embodiment, the compensation device allows not only to compensate PVT variations of the digital circuit 6 to be

compensated, and to control the operating speed of the digital circuit 6 by using the critical path replica module 4 and the speed measurement module 1 , but also to equalise a rise time and a fall time of at least one logic gate comprising the first transistor and of the second transistor of the digital circuit 6 by using the current balance detector module 2.

[0050] In other words, in this preferred embodiment, the compensation device implements also a second loop, allowing to control and/or equalise the rise and fall times of at least one logic gate comprising the transistors of the digital circuit 6.

[0051] For each of the first and second compensation terminals VBPW and VBNW, the control module 3 of Fig. 1 comprises:

- a first and second drive modules 31 respectively 32, and

- a first and second compensation modules 10 respectively 20. [0052] In the embodiment illustrated in Fig. 1 , the first and second drive modules 31 respectively 32 are analog or digital modules connected to the output of the speed measurement module 1 and to the output of the current balance detector module 2. On the basis of at least one of those outputs, they allow to drive or configure the first and second compensation modules 10, 20, in order to change the voltage at the first compensation respectively second compensation terminals VBPW, VBNW.

[0053] In particular, in the embodiment illustrated in Fig. 1 , the positive and negative power supplies V+1 , V-1 ; V+2, V- 2 of the first and second compensation modules 10, 20 cover the range of the desired substrate voltage excursion at the first and second compensation terminal VBPW, VBNW. In other words,

V-1 < VBPW < V+1 , and

V-2 < VBNW < V+2.

[0054] In the illustrated embodiment, the first compensation module 10 comprises a first load in series with a first compensation transistor TN, the first load being a first resistor Ri or a first load compensation transistor T PL of opposite polarity of the first compensation transistor TN. This alternative is indicated in Fig. 1 by the dotted line connecting the first load with the first load compensation transistor TPL.

[0055] In the embodiment of Fig. 1, the first compensation transistor TN and the first load compensation transistor TPL are arranged to work as individually controlled current sink respectively current source generator, or as individually controlled switches, according to the output of the first drive module 31.

[0056] In this context, the expressions "current source generator" and "current sink generator" indicate generators of a current of opposite direction, one working as a source and the other as a sink.

[0057] In an similar way, in the embodiment of Fig. 1, the second compensation module 20 comprises a second load l_ 2 in series with the second compensation transistor Tp, the second load l_ 2 being a second resistor R 2 or a second load compensation transistor TNL of opposite polarity of the second compensation transistor Tp. This alternative is indicated in Fig. 1 by the dotted line connecting the second load l_ 2 with the second load compensation transistor TNL.

[0058] In the embodiment of Fig. 1, the each compensation terminal VBPW, VBNW is between the corresponding compensation transistor TN, TP and its relative load , l_ 2 .

[0059] The second compensation transistor Tp and the second load compensation transistor TNL are arranged to work as individually controlled current source respectively current sink, or as individually controlled switches.

[0060] However, the embodiment of Fig. 1 is not limitative, as the control module 3 could be implemented in other ways, as illustrated e.g. in the embodiment of Fig. 2.

[0061] Fig. 2 shows a view of a first embodiment of the electronic device 1000 according to the invention.

[0062] In the embodiment of Fig. 2, the critical path replica module 4 comprises a combination of cascaded digital logic gates, in particular a combination of cascaded inverters 41. In this particular embodiment, the critical path replica module 4 comprises a ring oscillator 40 comprising an odd number of cascaded inverters 41 with its input and output shorted.

[0063] The output of the ring oscillator 40 is used as a clock to drive the digital circuit 6. In other words, this clock defines I this case the operating frequency of the digital circuit 6.

[0064] In another embodiment (not illustrated), the critical path replica module 4 comprises more outputs, e.g. for deriving two non overlapping master/slave clocks, e.g. for latch based implementations. [0065] In one embodiment, the length of the critical path replica module 4 (e.g. and in a non-limiting way, the ring oscillator 40 of Fig. 2) is tunable, preferably at the runtime of the electronic device 1000, in order to adjust the second temporal delay ID of the critical path replica module 4 for a given design of the digital circuit 6 to be compensated.

[0066] In other words, the average delay per stage of the critical path replica module 4 can be modified at any of the wanted operating speed †DI G SO as to match the design-dependent critical path of different digital circuits 6.

[0067] In the embodiment of Fig. 2, the ring oscillator 40 comprises a multiplexer 42 at the input of the ring oscillator 40, this multiplexer comprising a critical path tuning terminal crit_path_tuning, allowing to tune the length of the ring oscillator 40, and hence the delay per stage TD / N, the second delay ID being controlled by the control module 3.

[0068] In one preferred embodiment, the tunable length of the critical path replica module 4, e.g. of the ring oscillator 41 , generates the

operating speed f DiG -

[0069] In the embodiment of Fig. 2, the oscillator 5 is a XO oscillator generating a reference frequency†REF. In one preferred embodiment, this frequency is equal to 32 kHz.

[0070] In the embodiment of Fig. 2, the speed measurement module 1 comprises a frequency locked loop control finite state machine module FLL CTRL FSM, having as inputs:

- the predetermined frequency†REF of the ring oscillator 5,

- the operating speed fpi G , and

- a ratio N, defining the desired ratio between the operating speed†DI G and the predetermined frequency f REF . As discussed, N is a positive fractional or integer number, preferably superior to one, which can be defined by the user of the electronic device according to the type of application of the electronic device (e.g. memories, processors, etc.) and/or the value of the operating speed and/or according to other user's needs

[0071] In the embodiment of Fig. 2, the operating speed†DI G is the desired digital frequency of the digital circuit 6.

[0072] In one embodiment, the frequency locked loop control finite state machine module FLL CTRL FSM has an output a signal idac_ctrl defining a current ratio K of the current mirror module 8 with regard to a reference current Iref.

[0073] In one embodiment, illustrated in Fig. 3, the frequency locked loop control finite state machine module FLL CTRL FSM comprises:

- a frequency counter module FC, followed by

- at least one integrator time constant module INT, followed by

- a sigma-delta modulator SD, allowing to increase the resolution of the output of the frequency locked loop control finite state machine module FLL CTRL FSM.

[0074] The sigma-delta modulator SD is connected to a digital analog converter (not illustrated) allowing to generate an analog gate voltage for the current mirror module 8.

[0075] In the embodiment of Fig. 2, the control module 3 comprises a first operational amplifier OA1 and a second operational amplifier OA2 configured to force the current of the current mirror 8 module to flow in the first and second operational amplifier transistors T O AN, T O AP, by adjusting the voltages at the first and second compensation terminals VBPW, VBNW-

[0076] In the embodiment of Fig. 2, the current balance detector module 2 comprises the current mirror module 8 and the first and operational amplifier transistors T O AN, T O AP. In particular, the first and operational amplifier transistors T O AN, T O AP are the first respectively second replica transistors. [0077] In the embodiment of Fig. 2, the matching of both the current sources by the current mirror module 8 guarantees the rise and fall time control at least one logic gate comprising the first and second transistors of the digital circuit 6.

[0078] In one embodiment, the first operational amplifier OA1 comprises a first inverting input terminal IN 1 -, a first non-inverting input terminal IN 1 + and a first output terminal OUT1 , wherein:

- the first non-inverting input terminal IN 1 + is connected to is connected to a first supply source VDDC,

- the first inverting input terminal IN 1 - is connected to the current mirror module 8 and to the drain terminal of the first operational amplifier transistor T O AN,

- the first output terminal OUT1 is connected to the first compensation terminal VBPW of the first operational amplifier transistor T O AN via a first compensation module 10.

[0079] In the embodiment of Fig. 2, the input of the first compensation module 10 is the first output terminal OUT1 and the output of the first compensation module 10 is arranged to be connected to the first

compensation terminal VBPW. The voltage of the output of the first compensation module 10, and then the voltage of the first compensation terminal VBPW, has a value belonging to the range having as extremities V- and V+.

[0080] In the embodiment of Fig. 2, the second operational amplifier OA2 comprises an inverting input terminal IN2-, a non-inverting input terminal IN2+ and a second output terminal OUT2, wherein:

- the non-inverting input terminal IN2+ is connected to the current mirror module 8 and to the source terminal of the second operational amplifier transistor T O AP,

- the inverting input terminal IN2- is connected to the first supply source VDDC,

- the second output terminal OUT2 is connected to the second compensation terminal VBNW of the second operational amplifier transistor To Ap via a second compensation module 20.

[0081] In the embodiment of Fig. 2, the input of the second

compensation module 20 is the second output terminal OUT2 and the output of the second compensation module 20 is arranged to be connected to the second compensation terminal VBNW. The voltage of the output of the second compensation module 20, and then the voltage of the second compensation terminal VBNW, has a value belonging to the range having as extremities V- and V+.

[0082] In the embodiment of Fig. 2, the first operational amplifier OA1 corresponds to the first drive module 31 of Fig. 1 and the second

operational amplifier OA2 corresponds to the second drive module 32 of Fig. 1.

[0083] A second supply source (the ground in the embodiment of Fig. 2) is connected to the drain terminal of the second operational amplifier transistor T O AP and to the source terminal of the first operational amplifier transistor T O AN.

[0084] In the embodiment of Fig. 2, the first and second operational amplifier transistors T O AN and T O AP are connected in a diode configuration (i.e. the drain terminal is connected to the gate terminal).

[0085] The first and second operational amplifier transistors T O AN and T O AP are replica of the first respectively second transistor of the digital circuit 6 to be compensated.

[0086] In particular, if each of the operational amplifier transistor T O AN and T O AP is configured to be in saturation region, if the voltage at the source terminal of each of the operational amplifier transistors T O AN and T O AP has a predetermined value, and if the difference between the voltage at the gate terminal and the voltage at the source terminal of each of the operational amplifier transistors T O AN and T O AP has a predetermined value, the replica condition is satisfied, provided that the operational amplifier transistors T O AN and T O AP have the same technology and are matched with the first respectively second transistors of the digital circuit 6.

[0087] In the embodiment of Fig. 2, the compensation terminals VBPW and VBNW allow modify the threshold voltage of the first and second operational amplifier transistors T O AN and T O AP.

[0088] In the embodiment of Fig. 2, the above-mentioned first loop allowing to control the speed of the digital circuit 6 to be compensated is intimately mixed with the second loop allowing to control and/or equalise the rise and fall times of at least one logic gate comprising the transistors of the digital circuit. In the embodiment of Fig. 2, the second loop is obtained by imposing the same current in first and second operational amplifier transistors T O AN and T O AP via the current mirror module 8. The control of this current via the first and second operational amplifiers OA1 , OA2 acts and on the operating speedy†DI G (i.e. on the "differential mode") and on the balance of the currents of the first and second operational amplifier transistors T O AN and T O AP (i.e. on the "common mode").

[0089] In one embodiment, the electronic device f the invention comprises a built-in self test module BIST, illustrated in Fig. 4, for adjusting the length of the critical path replica module 4, e.g. of the ring oscillator 40 and/or for adjusting the second delay ID via the control module 3.

[0090] In one preferred embodiment, the built-in self test module BIST is in the digital circuit 6 to be compensated, e.g. in its critical path module. In another embodiment, the built-in self test module BIST is in the critical path replica module 4.

[0091] For example, if a multiplier is identified as the critical path module, the built-in self test module BIST is arranged to compute the result of the worst case multiplication and to compare it to a pre-calculated value stored in a memory: if the result of the multiplication matches the stored value, enough margin is provided and the length of the critical path replica module could be shortened, if they do not match, the length the length of the critical path replica module should be increased to increase the timing margin by reducing the average delay per logic gate of the critical path replica module 4.

[0092] In the embodiment of Fig. 4, the built-in self test module BIST comprises a pseudo-random digital sequence generator 9, connected to a first, second and third parallel paths P1 , P2 respectively P3, the first and third paths P1 , P3 being delayed with regards to the second path P2 by a first respectively third temporal delays (n respectively n+m), the third delay (n+m) being superior to the first delay (n).

[0093] In the embodiment of Fig. 4, the built-in self test module BIST further comprising logical operators (XOR, AND and OR in Fig. 5) for comparing the signals at the output of each of the three paths P1 , P2, P3 so as to decide if the length of the critical path replica module 4 must be modified or not, on the basis of this comparing and/or if the second delay ID of the critical path replica module 4 must be modified or not via the control means 3.

[0094] The first delay (n) already include a temporal margin, i.e. a temporal difference between the second delay ID of the critical path replica module 4 and the first delay T'D of the critical path module of the electronic circuit 6 to be compensated.

[0095] In particular, the pseudo-random number generator 9 has 2 N - 1 states. In the embodiment of Fig. 4, N = 4 so that it generates 15 codes with about 0 as many as 1 but whose sequence is pseudo-random. By comparing the direct signal in the second path P2 with the delayed signals in the first and third path P1 , P3 by summing the 15 samples in the sum modules S1 , S2 it is possible to check if there is a perfect correlation, i.e. if the delay related to the length of the critical path replica circuit is short enough for the digital circuit 6 to work. [0096] If both outputs of the sum modules S1 , S2 are equal to zero, the length of the critical path replica module 4 is increased so as to make the critical path of the digital circuit 6 faster, at a given operating speed f DiG -

[0097] If both outputs of the sum modules S1 , S2 are equal to one, the length of the critical path replica module 4 is decreased so as to make the critical path of the digital circuit 6 slower, at a given operating speed f DiG -

[0098] If the outputs of the sum modules S1 , S2 are different, the length of the critical path replica module 4 is not modified.

[0099] In another embodiment, illustrated in Fig. 5, the control module 3 comprises an H-bridge type charge pump module arranged to be supplied at voltages VDDH, VSSM 1V corresponding at least to the extremes of range of the desired substrate voltage excursion or range at the first and second compensation terminals VBPW, VBNW. This H-bridge type charge pump module is similar to the one used to drive a differential loop filter in a PLL. [00100] The control module 3 if the embodiment of Fig. 5 is alternative to the embodiment of the control module 3 of Fig. 2, comprising the operational amplifiers OA1, OA2.

[00101] The two branches of H-bridge type charge pump module of Fig. 5 correspond to the first respectively second compensation module 10, 20 of Fig. 1.

[00102] The first and second compensation terminals VBPW, VBNW of Fig. 5 are directly connected to a model of the first respectively second transistors T'N and T'p of the digital circuit 6 to be compensated, in particular to the first terminal and a second terminal allowing VBPW, VBNW to modify a threshold voltage at the first, second terminals V'BPW, V'BNW of the first respectively second transistors T'N and T'p.

[00103] In the embodiment of Fig. 5, the H-bridge type charge pump module comprises a first charge pump current module 12 and a second charge pump current module 14, each first and second charge pump current modules 12, 14 being connected to one of the two compensation terminals VBPW, VBNW, the H-bridge type charge pump module being arranged to modify the voltage at the first and second compensation terminals VBPW, VBNW by modifying a current in each of the first and second charge pump current modules 12, 14.

[00104] In particular, in the embodiment of Fig. 5:

- the first charge pump current module 12 comprises a first source current generator 11 1 , in series with a first switch Sw1 , a second switch Sw2, a first sink current generator 112; and

- the second charge pump current module 22 comprises a second source current generator 121 , in series with a third switch Sw3, a fourth switch Sw4, a second sink current generator I22.

[00105] In the embodiment of Fig. 5, the first compensation terminal VBPW is between the second switch Sw2 and the first switch Sw1 , and the second compensation terminal VBNW is between the third switch Sw3 and the fourth switch Sw4.

[00106] The second and third switches Sw2, Sw3 and the first and fourth switches Sw1 , Sw4 are controlled by the speed measurement module 1 and/or by the current balance detector module 2 via drive modules not illustrated.

[00107] In one embodiment, the second and third switches Sw2, Sw3 are closed by the drive modules at the same time, so as to control via the currents of the corresponding current generators 112, 121 the differential mode voltages at the first and second compensation terminals VBPW and VBNW, in order to increase the second delay ID of the critical path replica module 4.

[00108] In another embodiment, the first and fourth switches Sw1 , Sw4 are closed by the drive modules at the same time, so as to control via the currents of the corresponding current generators 11 1 , I22 the differential mode voltages at the first and second compensation terminals VBPW and VBNW, in order to reduce the second delay ID of the critical path replica module 4.

[00109] In one embodiment, the first switch Sw1 and the third switch Sw3, or the second switch Sw2 and the fourth switch Sw4 are closed at the same time, so as to control via the corresponding current generators 11 1 ,

121 respectively 112, I22 the common mode voltages at the first and second compensation terminals VBPW and VBNW, in order to modify the ratio of the current flowing in a first replica transistor T"N visible e.g. in Figs. 7A or 7B with the current flowing in the second replica transistor, T"'p visible e.g. in Figs 7A or 7B, according to the output of the current balance detector module 2. This allows to modify the ratio of the currents flowing in the first and second transistors of the electronic circuit 6, whose the first and second replica transistors T"'N T"'p are a replica.

[00110] In one embodiment, the output of the current balance detector module 2 and the output of the speed measurement module 1 define four logic combinations, each combination allowing to activate via the first and second drive modules one of the switches of the first charge pump current module 12 and of the second charge pump current module 22.

[00111] It must be noted that the first charge pump current module 12 corresponds to the first compensation module 10 of Fig. 1 , wherein the first compensation transistor TN is a MOS transistor working as a current source generator or as a switch and wherein the compensation load transistor TPL is a MOS transistor of opposite polarity working as current sink generator or as a switch. The same analogy applies to the second charge pump current module 22 of Fig. 5 and to the second compensation module 20 of Fig. 1. The supply voltages VDDH, VSSM 1V of Fig. 5 correspond to an implementation of the voltages V+1 (2) respectively V-1 (2) of Fig. 1.

[00112] In an alternative (not illustrated) embodiment, the first source current generator, the second source current generator, the first sink current generator and/or the second sink current generator comprise an IDAC module controlled by a current locked loop control finite state machine module (not illustrated), in order to minimize a ripple on the voltage at the first and second compensation terminals VBPW, VBNW.

[00113] In one embodiment, this current locked loop control finite state machine module comprises an integrator arranged to dynamically trim a static average DC current needed at the first and second compensation terminal VBPW, VBNW.

[00114] In another embodiment, illustrated in Fig. 6 and alternative to the embodiment of Fig. 5, the control module 3 comprises a dual polarity DCDC-type charge pump converter module arranged to generate the desired substrate voltage excursion at the first and second compensation terminals VBPW, VBNW.

[00115] The dual polarity DCDC-type charge pump converter module is arranged to modify the voltage at the first and second compensation terminals VBPW, VBNW by modifying a charge at those first and second compensation terminals VBPW, VBNW.

[00116] In the embodiment of Fig. 6, the dual polarity DCDC-type charge pump converter module comprises:

- a first DCDC-type charge pump converter module 14, comprising a first charge pump flying capacitor C1, two voltage sources VDD and VSS (VSS being e.g. the ground), the first charge pump flying capacitor C1 being connected to the voltage sources VDD and VSS and to the first

compensation terminal VBPW, via couples of switches fh, wherein n =0, 1 or 2, which are commanded by the first drive module (not illustrated) in a predetermined sequence so as to generate the desired substrate voltage at the first compensation terminal VBPW, the voltage varying in a range whose extremities depend on the two voltage sources VDD, VSS, and

- a second DCDC-type charge pump converter module 24, comprising a second charge pump flying capacitor C2, the two voltage sources VDD, VSS, the second charge pump flying capacitor being connected to the voltage sources VDD, VSS and to the second compensation terminal VBNW, via couples of switches fh', wherein n = 0, 1 or 2, which are commanded by the second drive module (not illustrated) in a predetermined sequence so as to generate the desired substrate voltage VBNW at the second compensation terminal, the voltage varying in a range whose extremities depend on the two voltage sources VDD, VSS.

[00117] The first charge pump current module 14 of Fig. 6 is an

alternative implementation of the first compensation module 10 of Fig. 1. The same analogy applies to the second charge pump current module 24 of Fig. 6 and to the second compensation module 20 of Fig. 1. The supply voltages VDD, VSS of Fig. 6 correspond to an implementation of the voltages V+1 (2) respectively V-1 (2) of Fig. 1.

[00118] In the embodiment of Fig. 6, each of the first and second DCDC- type charge pump converter modules 14, 24 comprises a first couple of switches fo, f'o, arranged to be closed so as to charge the first respectively second charge pump flying capacitors C1 , C2 at a voltage corresponding to a first difference between the two voltage sources VDD - VSS, and a second couples of switches fi, f'i and/or a third couple of switches f 2 , f' 2 arranged to be closed after the ri-opening of the first couples of switches fo, f'o, so as to alter the voltage at the respectively second charge pump flying capacitors C1 , C2 in the range whose extremities depend on the two voltage sources VDD, VSS.

[00119] In the embodiment of Fig. 6, the extremities of this range are:

- a second difference between the two voltage sources (VSS - VDD), and

- the double of the higher voltage source (2VDD).

[00120] Then the switches fi or f 2 , (fn or f 2 ) are activated to alter the voltages of the corresponding compensation terminals VBPW, VBNW, towards more forward (FWD) or reverse (REV) modes respectively. In the forward mode, the operating speed†DI G is increased, in the reverse mode, it is reduced. The control is reversed for transistors of opposite polarity. The voltage at the first compensation terminal VBPW e.g. must be augmented to accelerate and vice-versa. The voltage at the second compensation terminal VBNW e.g. must be reduced to accelerate and vice-versa.

[00121] In one embodiment, not illustrated, more stages can be cascaded in the REV mode. [00122] The embodiment of Fig. 6 is particularly advantageous when the digital circuit 6 to be compensated is supplied with a low power, e.g. with a photo voltaic cell wherein VDD - VSS is about 0.5 V.

[00123] Figs. 7 A and 7B illustrate two embodiments of the current balance detector module 2. Each of those embodiments can be used with the first and second charge pump current modules 12, 22 or with the first and second first charge pump current modules 14, 24.

[00124] Each of those embodiments can be used in combination with the replica path circuit module 4 of Fig. 8.

[00125] The current balance detector module 2 of Fig. 7A form a modified N-stages inverter-based comparator. The N-stages inverter- based comparator is "modified" as its first stage is similar to an inverter. Its push pull inputs are the VBNW and VBPW voltages. In particular, the first stage of the modified inverter-based comparator comprises replica transistors T"'N and T"'p of the digital circuit 6 to be compensated. [00126] The number of the stages after the first stage of the modified inverter-based comparator is not too important and it could be even or odd. The stages after the first of the modified inverter-based comparator allows the modified inverter-based comparator to increase its gain.

[00127] At the output of the first stage of Fig. 7A, the voltage will be at about VDD/2. The output of the second stage will amplify this signal but not necessarily to reach the power supplies VDD or VSS (the ground in Fig. 7A). The output of the third stage or of the further stages will always be either Ό' or Ί ' in order to be easily readable by the control circuit 3, not illustrated in Fig. 7A.

[00128] The switching point of the inverters of Fig. 7A will be at VDD/2 if the currents in the first and second replica transistors T"'N, T"'p are equal. All the stages of the converter of Fig 7A have the same voltages at the corresponding replica compensation terminals (not illustrated), which are connected to the first and second compensation terminals VBPW, VBNW.

[00129] In one preferred embodiment, the gate terminals of the inverter of the first stage are connected to a first supply voltage, to a node of a fixed voltage, or to a second supply voltage, according to the operating speed of the digital circuit 6 to be compensated and/or to a type of the application of the digital circuit 6, thereby allowing to control the balance of the l_ON currents (ON currents), the l_RET currents (currents in retention mode) respectively the l_LEAK currents (leakage currents) of the digital circuit 6 to be compensated.

[00130] For example, the comparator of Fig. 7A allows to make the balance of the currents of the first and second replica transistors T"'N and T"'p dependent of VGS = VDD, which is useful during the operation of the logic gates of the digital circuit 6 to be compensated. [00131] The comparator of Fig. 7B allows to make the balance of the currents of the first and second replica transistors T"'N and T"'p dependent of VGS = VDD/2, which is useful during the retention of the logic gates of the digital circuit to be compensated, e.g. in SRAM applications.

[00132] Another comparator, not illustrated, allows to make the balance of the currents of the first and second replica transistors T"'N and T"'p dependent of VGS = 0, which is useful for controlling the leakage current of the logic gates of the digital circuit to be compensated.

[00133] The three above-mentioned comparators could be combined in a single comparator, in which the voltage at the gate terminals of its first stage could be modified according to the applications and/or the user's needs.

[00134] In one embodiment, the electronic device according to the invention comprises several current balance detector modules 2 arranged to be used alternatively to scale their static consumption depending on the operating condition of the digital circuit 6 to be compensated.

[00135] In one embodiment, the number of the transistors of the first stage of the modified inverter-based comparator is superior to the number of transistor of the second stage, and the number of the transistors of the second stage is superior to the number of transistor of the third stage, in order to improve the precision of the current balance detector module.

[00136] In one embodiment, the current balance detector module(s) comprise(s) a number of digital gates superior to 50, e.g. superior to 100, used in series and/or parallel arrangement, so as to minimise their mismatch.

[00137] In one embodiment, the current balance detector module 2 of Figs 7A and/or 7B and the speed measurement module 1 of the critical path replica circuit of Fig. 8 are duty-cycled, e.g. by to maintain the digital circuit 6 in retention, e.g. by gating the operating speed f DiG -

[00138] In the embodiment of Fig. 9, the current balance detector module 2 is arranged to quantitatively indicate the ratio between the current flowing in the first replica transistor and the current flowing in the second replica transistor. In other words, in the embodiment of Fig. 9, the current balance detector module is a current balance measurement module.

[00139] The current balance measurement module of Fig. 9 comprises

- two half rings HR1 HR2, each half ring comprising fast and slow NMOS transistors and fast and slow PMOS transistors,

- each half ring comprising at a first end a first logic gate (a NAND logic gate in Fig. 9, but it could be another logic gate, e.g. a NOR logic gate) and at a second end a win terminal (win1 respectively win2), the first logic gate having a first input (start 1 respectively start 2) being the start input and a second input being the win terminal (win2 respectively win1) of the other half ring,

- a first path for a first signal at the first input of the first logic gate, comprising fast transistors NMOS and slow transistors PMOS,

- a second path for a second signal at the first input of the second logic gate (a NAND logic gate in Fig. 9, but it could be another logic gate, e.g. a NOR logic gate) comprising slow transistors NMOS and the fast transistors PMOS,

- a counter module COUNT arranged to count the number of loops in the two half rings necessary for one of the first and second signals to catch the other, so as to indicate how balanced the NMOS and PMOS transistors are.

[00140] The NMOS and PMOS transistors of Fig. 7 are replica transistors of the first respectively second transistors of the digital circuit 6 to be compensated.

[00141] In other words, there are two start signals startl , start2, that start two "runner signals" that chase each other. One always takes the path comprising the transistors of the first and second half rings HR1 , HR2 which are indicated with the letter R, the other always takes the path comprising the transistors of the first and second half rings HR1 , HR2 which are indicated with the letter B.

[00142] As the slowest path determines the speed, the speed of the first runner signal taking the R path depends essentially on the NMOS

transistors of the R path and the other on the PMOS transistors of the B path.

[00143] The counter module COUNT is arranged to count the number of loops in the two half rings necessary for one of the first and second signals to catch the other, so as to indicate how balanced the NMOS and PMOS transistors are. This allows to have a quantitative indication of the current ratio between the currents flowing in the transistors of the digital circuit 6.

[00144] In one embodiment, the current balance measurement module is arranged to provide proportional, integral or derivative coefficients easy to stabilize.

[00145] In one embodiment, which is common to all the embodiments of the all figures, the transistors of the electronic devices 6 are operated to work in a sub-threshold region or in a near-threshold region.

[00146] In one embodiment, which is common to all the embodiments of the all figures, the module of the difference between the voltage of first supply source and the voltage of second supply source of the digital circuit 6 is comprised between 50 mV and 900 mV, preferably being substantially equal to 500 mV.

[00147] According to one embodiment, which is common to all the embodiments of the all figures the transistors of the compensation device respectively of the digital circuit are realised in the technology silicon on insulator (SOI). According to another embodiment, the transistors of the compensation device respectively of the digital circuit are realised in the technology fully depleted silicon on insulator (FDSOI). According to another embodiment, the transistors of the compensation device respectively of the digital circuit are realised in the technology deeply depleted channel (DDC).

[00148] According to another (not illustrated embodiment), the digital circuit comprises a third and a fourth transistors of opposite polarity, the third and a fourth transistors being different from the first and second transistors, as e.g. they have a different orientation or as e.g. they are access transistors of a SRAM memory implemented by the digital circuit 6 or SRAM bit-cell transistors.

[00149] In this case, the electronic device 1000 comprises a second critical path replica circuit, a second speed measurement module and a second balance current detector module comprising transistors which are a replica of the third and fourth transistors of the digital circuit 6.