1 of 83

An Energy-Efficient RISC-V RV32IMAC Microcontroller for Periodical-Driven Sensing Applications

Ckristian Duran1, Megan Wachs2, Luis E. Rueda G.1, Albert Huntington2, Javier Ardila1, Jack Kang2,Andres Amaya1, Hector Gomez1, Juan Romero1, Laude Fernandez1, Felipe Flechas1, Rolando Torres1, Juan Moya1, Wilmer Ramirez1, Julian Arenas1, Juan Gomez1, Hanssel Morales1, Camilo Rojas1, Alex Mantilla1,

Elkim Roa1 and Krste Asanovic2,3

​

1OnChip - Universidad Industrial de Santander, Colombia,

2SiFive, Inc. - San Mateo, CA,

3U. California at Berkeley, CA

2 of 83

Outline

  • Introduction: Low Power Systems-on-Edge
  • µC Architecture: LFO and Voltage Detectors
  • PMU Algorithm
  • Results and Summary

2

3 of 83

Outline

  • Introduction: Low Power Systems-on-Edge
  • µC Architecture: LFO and Voltage Detectors
  • PMU Algorithm
  • Results and Summary

3

4 of 83

Sleepy or Lazy Systems-on-Edge

4

?

Cloud

<1uW

~hours

Sleeping Node

Time [s]

Power [W]

5 of 83

Sleepy or Lazy Systems-on-Edge

5

?

...

?

?

?

?

Time [s]

Power [W]

<1uW

~hours

~10uW

~1ms

Sleeping Node

Starting-up Node

6 of 83

Sleepy or Lazy Systems-on-Edge

6

✓

...

<1uW

~hours

~10uW

~10mW

~10ms

~1ms

Sleeping Node

Active Node

Starting-up Node

Time [s]

Power [W]

✓

✓

✓

✓

7 of 83

Sleepy or Lazy Systems-on-Edge

7

✓

<1uW

~hours

~10uW

~10mW

~1ms

~10ms

<1uW

Time [s]

Power [W]

Sleeping Node

Active Node

Starting-up Node

8 of 83

Sleepy or Lazy System-on-Chip

8

UART

GPIO

RAM

SPI

DBG

I2C

JTAG

QSPI

PWM

HFXO

HFRO

TRNG

LFXO

BOD

POR

RCO

BGAP

DAC

ADC

LDO

CORE

RV32IMAC

9 of 83

Sleepy or Lazy Systems-on-Chip

9

Active mode

Sleep mode

Deep-sleep

UART

GPIO

RAM

SPI

DBG

I2C

JTAG

QSPI

PWM

HFXO

HFRO

TRNG

LFXO

BOD

POR

RCO

BGAP

DAC

ADC

LDO

CORE

RV32IMAC

UART

GPIO

RAM

SPI

DBG

I2C

JTAG

QSPI

PWM

HFXO

HFRO

TRNG

LFXO

BOD

POR

RCO

BGAP

DAC

ADC

LDO

CORE

RV32IMAC

UART

GPIO

RAM

SPI

DBG

I2C

JTAG

QSPI

PWM

HFXO

HFRO

TRNG

LFXO

BOD

POR

RCO

BGAP

DAC

ADC

LDO

CORE

RV32IMAC

10 of 83

Minimum Energy Supply Operation (MESO)

10

UART

GPIO

RAM

SPI

DBG

I2C

JTAG

QSPI

PWM

HFXO

HFRO

TRNG

LFXO

BOD

POR

RCO

DAC

ADC

LDO

BGAP

CORE

RV32IMAC

Leakage Energy

Energy/cycle [pJ]

VSUPPLY [V]

11 of 83

Minimum Energy Supply Operation (MESO)

11

UART

GPIO

RAM

SPI

DBG

I2C

JTAG

QSPI

PWM

HFXO

HFRO

TRNG

LFXO

BOD

POR

RCO

DAC

ADC

LDO

BGAP

CORE

RV32IMAC

Leakage Energy

Dynamic Energy

vin

Energy/cycle [pJ]

VSUPPLY [V]

12 of 83

Minimum Energy Supply Operation (MESO)

12

UART

GPIO

RAM

SPI

DBG

I2C

JTAG

QSPI

PWM

HFXO

HFRO

TRNG

LFXO

BOD

POR

RCO

DAC

ADC

LDO

BGAP

CORE

RV32IMAC

Leakage Energy

Dynamic Energy

Core Energy (Total)

vin

+

Energy/cycle [pJ]

VSUPPLY [V]

13 of 83

Minimum Energy Supply Operation (MESO)

13

VNOM

VMESO

UART

GPIO

RAM

SPI

DBG

I2C

JTAG

QSPI

PWM

HFXO

HFRO

TRNG

LFXO

BOD

POR

RCO

DAC

ADC

LDO

BGAP

CORE

RV32IMAC

Core Energy

Energy/cycle [pJ]

VSUPPLY [V]

14 of 83

MESO Systems: How-to obtain MESO

14

Dynamic Approach

Start at VNOM

UART

GPIO

RAM

SPI

DBG

I2C

JTAG

QSPI

PWM

HFXO

HFRO

TRNG

LFXO

BOD

POR

RCO

DAC

ADC

LDO

BGAP

CORE

RV32IMAC

Energy/cycle [pJ]

VSUPPLY [V]

VNOM

VMESO

15 of 83

MESO Systems: How-to look for MESO

15

Dynamic Approach

VSEARCH

Looking for MESO

UART

GPIO

RAM

SPI

DBG

I2C

JTAG

QSPI

PWM

HFXO

HFRO

TRNG

LFXO

BOD

POR

RCO

DAC

ADC

LDO

BGAP

CORE

RV32IMAC

Energy/cycle [pJ]

VSUPPLY [V]

VNOM

VMESO

16 of 83

MESO Systems: How-to look for MESO

16

UART

GPIO

RAM

SPI

DBG

I2C

JTAG

QSPI

PWM

HFXO

HFRO

TRNG

LFXO

BOD

POR

RCO

DAC

ADC

LDO

BGAP

CORE

RV32IMAC

Dynamic Approach

MESO Found!

Energy/cycle [pJ]

VSUPPLY [V]

VNOM

VMESO

17 of 83

MESO Systems: How-to obtain MESO

17

UART

GPIO

RAM

SPI

DBG

I2C

JTAG

QSPI

PWM

HFXO

HFRO

TRNG

LFXO

BOD

POR

RCO

DAC

ADC

LDO

BGAP

CORE

RV32IMAC

LUT Approach

Look for it and save it at production level.

Energy/cycle [pJ]

VSUPPLY [V]

VNOM

VMESO

18 of 83

Problems in MESO Systems

18

Core only

UART

GPIO

RAM

SPI

DBG

I2C

JTAG

QSPI

PWM

HFXO

HFRO

TRNG

LFXO

BOD

POR

RCO

DAC

ADC

LDO

BGAP

CORE

RV32IMAC

Energy/cycle [pJ]

VSUPPLY [V]

VNOM

VMESO1

19 of 83

Problems in MESO Systems

19

LFXO

BOD

POR

RCO

DAC

ADC

LDO

BGAP

CORE

RV32IMAC

UART

GPIO

RAM

SPI

DBG

I2C

JTAG

QSPI

PWM

HFXO

HFRO

TRNG

VMESO2

Core + RAM + CLK

Energy/cycle [pJ]

VSUPPLY [V]

VNOM

VMESO1

20 of 83

Problems in MESO Systems

20

LFXO

BOD

POR

RCO

DAC

ADC

LDO

BGAP

CORE

RV32IMAC

UART

GPIO

RAM

SPI

DBG

I2C

JTAG

QSPI

PWM

HFXO

HFRO

TRNG

All Digital

It’s not only the core!

Energy/cycle [pJ]

VSUPPLY [V]

VNOM

VMESO1

VMESOT

21 of 83

What if only the Core is considered?

21

LFXO

BOD

POR

RCO

DAC

ADC

LDO

BGAP

CORE

RV32IMAC

UART

GPIO

RAM

SPI

DBG

I2C

JTAG

QSPI

PWM

HFXO

HFRO

TRNG

All Digital

More Power!

Core only

Energy/cycle [pJ]

VSUPPLY [V]

VNOM

VMESO1

VMESOT

22 of 83

What if only the Core is considered?

22

LFXO

BOD

POR

RCO

DAC

ADC

LDO

BGAP

CORE

RV32IMAC

UART

GPIO

RAM

SPI

DBG

I2C

JTAG

QSPI

PWM

HFXO

HFRO

TRNG

VSUPPLY [V]

Energy/cycle [pJ]

All Digital

Core only

RAM failed!

CLK failed!

VNOM

VMESO1

VMESOT

23 of 83

MESO + Lazy Systems

23

Active mode

Sleep mode

Deep-sleep

UART

GPIO

RAM

SPI

DBG

I2C

JTAG

QSPI

PWM

HFXO

HFRO

TRNG

LFXO

BOD

POR

RCO

BGAP

DAC

ADC

LDO

CORE

RV32IMAC

UART

GPIO

RAM

SPI

DBG

I2C

JTAG

QSPI

PWM

HFXO

HFRO

TRNG

LFXO

BOD

POR

RCO

BGAP

DAC

ADC

LDO

CORE

RV32IMAC

UART

GPIO

RAM

SPI

DBG

I2C

JTAG

QSPI

PWM

HFXO

HFRO

TRNG

LFXO

BOD

POR

RCO

BGAP

DAC

ADC

LDO

CORE

RV32IMAC

24 of 83

MESO + Lazy Systems

24

VNOM

VMESOSlp

Active

UART

GPIO

RAM

SPI

DBG

I2C

JTAG

QSPI

PWM

HFXO

HFRO

TRNG

LFXO

BOD

POR

RCO

BGAP

DAC

ADC

LDO

CORE

RV32IMAC

UART

GPIO

RAM

SPI

DBG

I2C

JTAG

QSPI

PWM

HFXO

HFRO

TRNG

LFXO

BOD

POR

RCO

BGAP

DAC

ADC

LDO

CORE

RV32IMAC

UART

GPIO

RAM

SPI

DBG

I2C

JTAG

QSPI

PWM

HFXO

HFRO

TRNG

LFXO

BOD

POR

RCO

BGAP

DAC

ADC

LDO

CORE

RV32IMAC

VMESODSlp

VMESOAct

Sleep

Deep

Energy/cycle [pJ]

VSUPPLY [V]

25 of 83

Outline

  • Introduction: Low Power Systems-on-Edge
  • µC Architecture: LFO and Voltage Detectors
  • PMU Algorithm
  • Results and Summary

25

26 of 83

SoC Architecture

26

E-31 RISC-V CORE

HFXO

UART

SPI

I2C

TRNG

GPIO

RAM

PWM

DBUG

QSPI

JTAG

DAC/ADC

TileLink

HFRO

1.25-72MHz

30MHz

  • 1.8V
  • 3.3V
  • 1.8V & 3.3V
  • LF Clocks

LFXO

RCO

32.768KHz

32-1024KHz

Timer

Sched

CMP

FSM

POR

BOD

LDO

Reset

PD

BGAP

AON

PMU

27 of 83

PMU Architecture

27

E-31 RISC-V CORE

HFXO

HFRO

1.25-72MHz

30MHz

LFXO

RCO

32-1024KHz

Timer

Sched

CMP

FSM

POR

BOD

BGAP

LDO

AON

PMU

Reset

PD

  • The state machine of the PMU is configurable by the processor.
  • The PMU sets clocks and enables blocks for active, sleep, and deep-sleep modes.

32.768KHz

28 of 83

Low-Frequency Oscillators

28

LFXO

RCO

32-1024KHz

AON

Low-frequency clock selection for sleep mode

Always-On active low-frequency clock for the Power Management Unit (PMU)

  • Low Start-Up Energy RC-Based Oscillator (RCO)
  • Low-Frequency Crystal Oscillator (LFXO) for real-time counters

32.768KHz

29 of 83

Low-Frequency Oscillators: RC Oscillator

29

[a] H. Gomez et. al., CICC 2019

  • Multiple Frequency Operation.
  • Low Temperature Drift.
  • Low Power Consumption.
  • Fast Start-up.

30 of 83

RC Oscillator: Multiple Frequency Operation

30

[a] H. Gomez et. al., CICC 2019

Freq [kHz]

32.768

1024

TC [ppm/°C]

​

​

Power [uW]

​

​

Start-up time [us]

​

​

31 of 83

RC Oscillator: Multiple Frequency Operation

31

[a] H. Gomez et. al., CICC 2019

Fine<7:0>

Coarse<7:0>

Freq [kHz]

32.768

1024

TC [ppm/°C]

​

​

Power [uW]

​

​

Start-up time [us]

​

​

32 of 83

RC Oscillator: Low Temperature Drift

32

[a] H. Gomez et. al., CICC 2019

Freq [kHz]

32.768

1024

TC [ppm/°C]

68

36

Power [uW]

​

​

Start-up time [us]

​

​

Fine<7:0>

Coarse<7:0>

TC<7:0>

33 of 83

RC Oscillator: Low Power Consumption

33

1

  • Periodically driven power-down comparator.

34 of 83

RC Oscillator: Low Power Consumption

34

1

  • Periodically power-down comparator.
  • Put schmitt trigger point close to VREF.
  • Use long transistors in schmitt trigger.

35 of 83

RC Oscillator: Low Power Consumption

35

OpAmp

1

36 of 83

RC Oscillator: Low Power Consumption

36

1

  • 99% Error Amplifier power reduction
  • 64% Total power reduction

​

​

OpAmp

37 of 83

RC Oscillator: Low Power Consumption

37

[a] H. Gomez et. al., CICC 2019

Freq [kHz]

32.768

1024

TC [ppm/°C]

68

36

Power [uW]

0.33

1.5

Start-up time [us]

​

​

(1.2V)

38 of 83

RC Oscillator: Fast Start-up

38

[a] H. Gomez et. al., CICC 2019

Slow settling VREF:

​

VDDA

VREF

GND

39 of 83

RC Oscillator: Fast Start-up

39

[a] H. Gomez et. al., CICC 2019

Fast settling VREF:

Use switched-caps.

VDDA

VREF

GND

40 of 83

RC Oscillator: Fast Start-up

40

[a] H. Gomez et. al., CICC 2019

Freq [kHz]

32.768

1024

TC [ppm/°C]

68

36

Power [uW]

0.33

1.5

Start-up time [us]

220

4.0

41 of 83

RC Oscillator: Low Start-up Energy

41

[a] H. Gomez et. al., CICC 2019

Freq [kHz]

32.768

1024

Start-up energy [pJ]

72.64

6.0

42 of 83

PMU: Voltage Regulators and Detectors

42

Timer

Sched

CMP

FSM

POR

BOD

LDO

PMU

Reset

PD

3.3V to 1.8V linear low-dropout (LDO) regulator for Core domain supply

3.3V bandgap (BGAP) reference for the LDO regulator

  • Power-On Reset (POR) for initial reset on both AON and Core domains
  • Brown-Out Detector (BOD) as a voltage monitor for sleep mode transitions

BGAP

43 of 83

Voltage Detectors: Brown-Out Detector

43

[b] L. Rueda et. al., ICECS 2019

44 of 83

Brown-Out Detector: Voltage Divider

44

[b] L. Rueda et. al., ICECS 2019

  • Diode-connected PMOS.

126nA

45 of 83

Brown-Out Detector: Voltage Divider

45

[b] L. Rueda et. al., ICECS 2019

  • Diode-connected PMOS.
  • Limited to 11 PMOS. Negative effect of reversed nwell-psub diode (worst at high temperatures).

IDIO1

126nA

46 of 83

Brown-Out Detector: Voltage Divider

46

[b] L. Rueda et. al., ICECS 2019

  • Diode-connected PMOS.
  • Limited to 11 PMOS. Negative effect of reversed nwell-psub diode.
  • Tgate mux to select node. Negative effect of reversed diode as well.

126nA

47 of 83

Brown-Out Detector: Comparator

47

[b] L. Rueda et. al., ICECS 2019

vinn

vinp

vout

PDn

PD

PDn

VDDA

Ibias

10nA

PD

5nA

5nA

48 of 83

Brown-Out Detector: Voltage Reference

48

[b] L. Rueda et. al., ICECS 2019

  • The Zero VTH NMOS forces a subthreshold condition.

10nA

49 of 83

Brown-Out Detector: Voltage Reference

49

[b] L. Rueda et. al., ICECS 2019

10nA

VREF

+

-

Vgs

  • The Zero VTH NMOS forces a subthreshold condition.
  • Both PMOS and NMOS: same Vgs, same current.
  • Due to complementary nature, with correct sizing: zero-TC reference.

50 of 83

Brown-Out Detector: Voltage Reference

50

[b] L. Rueda et. al., ICECS 2019

10nA

VREF

VREF/N

+

-

+

-

Vgs

VREF/N

+

-

VREF/N

+

-

  • The Zero VTH NMOS forces a subthreshold condition.
  • Both PMOS and NMOS: same Vgs, same current.
  • Due to complementary nature, with correct sizing: zero-TC reference.
  • Higher VREF by stacking more PMOS-diode (limit, like in divider).

VREF/N

+

-

51 of 83

Brown-Out Detector: Voltage Reference

51

[b] L. Rueda et. al., ICECS 2019

  • The Zero VTH NMOS forces a subthreshold condition.
  • Both PMOS and NMOS: same Vgs, same current.
  • Due to complementary nature, with correct sizing: zero-TC reference.
  • Higher VREF by stacking more PMOS-diode (limit, like in divider).
  • Tgate mux to select node. Negative effect of reversed diode as well.

10nA

52 of 83

Voltage Detectors: Brown-Out Detector

52

[b] L. Rueda et. al., ICECS 2019

Current [nA]

280

Fall Time* [ms]

1 - 50

# Levels

5

Temp. [ºC]

-40-125

*From 3.3V to 1V

53 of 83

Outline

  • Introduction: Low Power Systems-on-Edge
  • µC Architecture: LFO and Voltage Detectors
  • PMU Algorithm: Power-Up Sequence
  • Results and Summary

53

54 of 83

PMU Algorithm: Power-Up Sequence

54

3.3V Power On

POR Event

PMU General Reset

PMU Core Power-Up

POR Exception Handling

Main Program

POR

3.3V Supply

3.3V

1.8V

VPORTH

clk

UART

GPIO

RAM

SPI

DBG

CORE

RV32IMAC

I2C

JTAG

QSPI

PWM

HFXO

HFRO

TRNG

LFXO

BOD

POR

RCO

DAC

ADC

LDO

BGAP

t0

time

Global Reset

55 of 83

Power-Up Sequence: Power-On Reset

55

3.3V Power On

POR Event

PMU General Reset

PMU Core Power-Up

POR Exception Handling

Main Program

POR

3.3V Supply

Global Reset

Power-On

Reset Event

VPORTH

clk

UART

GPIO

RAM

SPI

DBG

CORE

RV32IMAC

I2C

JTAG

QSPI

PWM

HFXO

HFRO

TRNG

LFXO

BOD

POR

RCO

DAC

ADC

LDO

BGAP

LDO Power On

t1

t0

3.3V

1.8V

time

56 of 83

Power-Up Sequence: Core Power-Up

56

3.3V Power On

POR Event

PMU Core Power-Up

LDO

clk

UART

GPIO

RAM

SPI

DBG

CORE

RV32IMAC

I2C

JTAG

QSPI

PWM

HFXO

HFRO

TRNG

LFXO

BOD

POR

BGAP

DAC

ADC

LDO

LDO Power On

Core Reset

POR Exception Handling

Main Program

t1

t2

PMU General Reset

RCO

3.3V

1.8V

time

3.3V Supply

1.8V Supply

Global Reset

Local Reset

57 of 83

Power Up Sequence: Unhold Reset

57

Bootloader execution

3.3V Power On

POR Event

PMU General Reset

HFXO

HFRO

TRNG

LFXO

BOD

POR

BGAP

DAC

ADC

LDO

POR Exception Handling

Main Program

UART

GPIO

RAM

SPI

DBG

CORE

RV32IMAC

I2C

JTAG

QSPI

PWM

Core Reset

t2

Transition to Active Mode

PMU Core Power-Up

t3

RCO

clk

3.3V Supply

1.8V Supply

3.3V

1.8V

time

Program

Global Reset

Local Reset

58 of 83

Power Up Sequence: Enabling blocks

58

BOD

t3

t4

HFXO

HFRO

POR

BGAP

LDO

UART

GPIO

RAM

SPI

DBG

CORE

RV32IMAC

I2C

JTAG

QSPI

PWM

BOD

DAC ADC

DAC

ADC

Other Blocks

TRNG

RCO

LFXO

clk

En. HF Clocks

3.3V Power On

POR Event

PMU General Reset

PMU Core Power-Up

POR Exception Handling

Main Program

Program

Enable Blocks

time

59 of 83

Power Up Sequence: Enabling Clocks

59

UART

GPIO

RAM

SPI

DBG

CORE

RV32IMAC

I2C

JTAG

QSPI

PWM

HFXO

HFRO

TRNG

BOD

POR

BGAP

DAC

ADC

LDO

Change Clock

RCO

LFXO

En. Blocks

Enable HF Clocks

HFXO

HFRO

t5

t4

Other Blocks

clk

3.3V Power On

POR Event

PMU General Reset

PMU Core Power-Up

POR Exception Handling

Main Program

Program

time

60 of 83

Power Up Sequence: Changing Clocks

60

UART

GPIO

RAM

SPI

DBG

CORE

RV32IMAC

I2C

JTAG

QSPI

PWM

HFXO

HFRO

TRNG

LFXO

BOD

POR

BGAP

DAC

ADC

LDO

Enable HF Clocks

t5

Change Clock

t4

HFXO

HFRO

RCO

RCO

HFRO

HFXO

En. Blocks

Other Blocks

clk

3.3V Power On

POR Event

PMU General Reset

PMU Core Power-Up

POR Exception Handling

Main Program

Program

time

61 of 83

Power Up Sequence: Enter Active Mode

61

3.3V Power On

POR Event

PMU General Reset

PMU Core Power-Up

POR Exception Handling

UART

GPIO

RAM

SPI

DBG

CORE

RV32IMAC

I2C

JTAG

QSPI

PWM

HFXO

HFRO

TRNG

BOD

POR

BGAP

DAC

ADC

LDO

Change Clock

Main Program

t6

LFXO

RCO

RCO

HFRO

Main Program

Active Mode

clk

Program

time

62 of 83

Outline

  • Introduction: Low Power Systems-on-Edge
  • µC Architecture: LFO and Voltage Detectors
  • PMU Algorithm: Brown-Out Event Sequence
  • Results and Summary

62

63 of 83

Problem if There is no PMU-BOD

63

3.3V

BOD threshold

Active Mode

UART

GPIO

RAM

SPI

DBG

CORE

RV32IMAC

I2C

JTAG

QSPI

PWM

HFXO

HFRO

TRNG

BOD

POR

BGAP

DAC

ADC

LDO

LFXO

RCO

Turn off point

Main program

HFRO

BGAP

clk

Program

3.3V Supply

time

64 of 83

PMU Brown-out Notification Handling

64

3.3V

Main program

clk

Mux Sel. RCO

HF Osc. �OFF

LF Mode St-by

Active Mode

Act?

Program

Sleep Event

BOD threshold

3.3V Supply

Active Mode

Sleep Mode

RAM

CORE

RV32IMAC

BOD

POR

BGAP

LDO

HFXO

UART

GPIO

SPI

DBG

I2C

JTAG

QSPI

PWM

TRNG

LFXO

DAC

ADC

HFRO

RCO

time

t7

Disable

Blocks

65 of 83

BO Sequence: Disabling Blocks

65

Chg. clk

Main program

clk

Disable

Blocks

Mux Sel. RCO

HF Osc. �OFF

LF Mode St-by

Active Mode

Act?

Sleep

Disable Blocks

BOD threshold

3.3V Supply

Sleep Mode

RAM

CORE

RV32IMAC

BOD

POR

BGAP

LDO

HFXO

UART

GPIO

SPI

DBG

I2C

JTAG

QSPI

PWM

TRNG

LFXO

DAC

ADC

HFRO

RCO

time

TRNG

DAC ADC

POR

3.3V

t7

t8

66 of 83

BO Sequence: Change to LF Clock

66

HF clk OFF

Disable

Blocks

Mux Sel. RCO

HF Osc. �OFF

LF Mode St-by

Active Mode

Act?

Sleep

Disable Blocks

BOD threshold

3.3V Supply

Sleep Mode

RAM

CORE

RV32IMAC

BOD

POR

BGAP

LDO

HFXO

UART

GPIO

SPI

DBG

I2C

JTAG

QSPI

PWM

TRNG

LFXO

DAC

ADC

HFRO

RCO

time

Change Clock

RCO

HFXO

POR

clk

3.3V

t8

t9

67 of 83

BO Sequence: Turning HF Clocks OFF

67

Change Clock

HF CLK OFF

clk

Disable

Blocks

Mux Sel. RCO

HF Osc. �OFF

LF Mode St-by

Active Mode

Act?

Sleep

BOD threshold

3.3V Supply

Sleep Mode

RAM

CORE

RV32IMAC

BOD

POR

BGAP

LDO

HFXO

UART

GPIO

SPI

DBG

I2C

JTAG

QSPI

PWM

TRNG

LFXO

DAC

ADC

HFRO

RCO

time

RCO

HFXO

LF Mode

HFXO

HFRO

3.3V

t10

t9

t11

68 of 83

BO Sequence: Sleep Mode

68

RAM

CORE

RV32IMAC

BOD

POR

BGAP

LDO

Main program

HFXO

UART

GPIO

SPI

DBG

I2C

JTAG

QSPI

PWM

TRNG

LFXO

DAC

ADC

HFRO

Sleep Event

Act?

RCO

clk

BOD threshold

3.3V Supply

Disable

Blocks

Mux Sel. RCO

HF Osc. �OFF

LF Mode St-by

Active Mode

Act?

Program

Active Mode

Sleep Mode

time

2

1

3.3V

t11

t7

69 of 83

BO Sequence: Sleep Mode

69

t14

Sleep

Deep Event

clk

BOD threshold

3.3V Supply

Program

Deep Sleep

time

3.3V

t11

Set Time

Assert

Reset

LDO

Sleep

Sleep Mode

Deep-Sleep Mode

RAM

CORE

RV32IMAC

BOD

POR

BGAP

LDO

HFXO

UART

GPIO

SPI

DBG

I2C

JTAG

QSPI

PWM

TRNG

LFXO

DAC

ADC

HFRO

RCO

70 of 83

Going back to Sleep: What if VDD goes up?

70

RAM

CORE

RV32IMAC

BOD

POR

BGAP

LDO

HFXO

UART

GPIO

SPI

DBG

I2C

JTAG

QSPI

PWM

TRNG

LFXO

DAC

ADC

HFRO

Sleep Event

Act?

RCO

clk

BOD threshold

3.3V Supply

Turn-on

LDO

Unhold

Reset

LF Mode St-by

Act?

Program

Deep Sleep

Sleep Mode

time

2

1

3.3V

TIMEOUT!

t15

t16

Deep Sleep

71 of 83

Running Main Program in Sleep

71

RAM

CORE

RV32IMAC

BOD

POR

BGAP

LDO

HFXO

UART

GPIO

SPI

DBG

I2C

JTAG

QSPI

PWM

TRNG

LFXO

DAC

ADC

HFRO

Sleep Event

RCO

clk

BOD threshold

3.3V Supply

Program

Sleep Mode

time

2

3.3V

Main Program

t16

t17

72 of 83

Going back to Active Mode

72

RAM

CORE

RV32IMAC

BOD

POR

BGAP

LDO

HFXO

UART

GPIO

SPI

DBG

I2C

JTAG

QSPI

PWM

TRNG

LFXO

DAC

ADC

HFRO

RCO

clk

BOD threshold

3.3V Supply

Program

Sleep Mode

time

3.3V

Main Program

HF Osc.

ON

Clk Sel.

HF Mode St-by

Sleep

Mode

Active

Mode

Active Mode

t17

73 of 83

Outline

  • Introduction: Low Power Systems-on-Edge
  • µC Architecture: LFO and Voltage Detectors
  • PMU Algorithm
  • Results and Summary

73

74 of 83

Results: Chip Micrograph

74

*Developed in collaboration with SiFive Inc.

75 of 83

Active, Sleep, and Deep Sleep Currents

75

76 of 83

Active-to-Sleep Mode Transition

76

77 of 83

Power Gating Transistions

77

78 of 83

RCO low-power Start-up Energy Comparison

78

79 of 83

MESO in Active Mode

79

80 of 83

Summary

80

  • MCU operating in three different power states, achieving a minimum energy operation of 190pJ/cycle.

​

  • Results from previous works underestimated the workload fluctuation for different functionalities in MESO systems.

​

  • First work that addresses full system minimum energy operation in a SoC.

​

  • The proposed architecture is a key enabler to implement lazy or sleepy sensor nodes.

81 of 83

Thanks! Questions?

81

leruegue@uis.edu.co

onchip@uis.edu.co

@onchipUIS

82 of 83

References

82

[1] S. Paul et al., “A Sub-cm3 Energy-Harvesting Stacked Wireless Sensor Node Featuring a Near-Threshold Voltage IA-32 Microcontroller in 14-nm Tri-Gate CMOS for Always-ON Always-Sensing Applications,” JSSC, vol. 52, no. 4, pp. 961–971, April 2017.

​

[2] F. Rahman et al., “Computationally Enabled Total Energy Minimization Under Performance Requirements for a Voltage-Regulated 0.38-to-0.58V Microprocessor in 65nm CMOS,” in (ISSCC), Feb 2019, pp. 312–314.

​

[3] L. Lin, S. Jain, and M. Alioto, “A 595pW 14pJ/Cycle Microcontroller with Dual-Mode Standard Cells and Self-Startup for Battery-Indifferent Distributed Sensing,” ISSCC, pp. 44–46, Feb 2018.

​

[4] D. Bol et al., “SleepWalker: A 25-MHz 0.4-V Sub-mm27-μW/MHz Microcontroller in 65-nm LP/GP CMOS for Low-Carbon Wireless Sensor Nodes,” JSSC, vol. 48, no. 1, pp. 20–32, Jan 2013.

​

[5] T. Karnik et al., “A cm-Scale Self-Powered Intelligent and Secure IoT Edge Mote Featuring an Ultra-Low-Power SoC in 14nm Tri-Gate CMOS,” ISSCC, pp. 46–48, Feb 2018.

​

[6] RISC-V Foundation, “RISC-V Tests,” https://github.com/riscv/riscv-tests, 2019.

​

83 of 83

SoC Architecture

83

SRAM

ROM

JTAG

PMU

uProcessor

Core

AHB-Lite

APB

DMA

USB

Xtal

BOD

POR

Bias

ADC

DAC

SPI

I2C

LDO

RCO

Bgap

GPIOs

PRBS

TRNG

​

Digital Domain

​

Memory Domain

​

Always-ON Domain

​

Peripheral Domain

​

IO Domain