1-Introducao 2022
1-Introducao 2022
Introdução
Sistema Embutido
Variáveis Variáveis
Software
de entrada de saída
Hardware
© 2014 by M. Jiménez, R.
Palomera, & I. Couvertier
© 2014 by M. Jiménez, R.
Palomera, & I. Couvertier
© 2014 by M. Jiménez, R.
EEE026 – PSE – UFMG 2022 Palomera, & I. Couvertier 7
Tipos de SE
© 2014 by M. Jiménez, R.
Palomera, & I. Couvertier
• HW
- Simplificado
- Família de microcontroladores
- Poucos periféricos não padronizados
• SW
- Específico para cada aplicação
- Linguagens de alto nível
- Sistemas de desenvolvimento
• Emuladores
• Simuladores
9
EEE026 – PSE – UFMG 2022
Integração HW/SW
• HW
• CPU
• Memória
• Interfaces Analógicas
• E/S Serial e Paralela
- RS232, I2C, LCD, motores, óptica.
• SW
• Assembly e Linguagens de alto nível
• Tempo real e Sistemas Operacionais
10
EEE026 – PSE – UFMG 2022
Aplicações
• Sistemas
- Embarcados
• Motor, freios, janelas, air-bags, faroletes, alarme
- Interconexão
• Internet, WEB, WiFi, USB, RFID
- Vestíveis
- Biomédicos
- Automação Industrial e Domiciliar
11
EEE026 – PSE – UFMG 2022
SE Embarcados
12
EEE026 – PSE – UFMG 2022
Principais Desafios e Soluções
https://www.instructables.com/id/A-Beginners-Guide-to-Microcontrollers/?utm_source=newsletter&utm_medium=email
https://en.wikipedia.org/wiki/ESP32 e .../ESP8266
EEE026 – PSE – UFMG 2022 17
Sistemas Embutidos
• Microprocessadores x Microcontroladores
18
EEE026 – PSE – UFMG 2022
Final da parte 1
lens
• Common metrics
- Unit cost: the monetary cost of manufacturing each copy of the system,
excluding NRE cost
- NRE cost (Non-Recurring Engineering cost): The one-time
monetary cost of designing the system
- Size: the physical space required by the system
- Performance: the execution time or throughput of the system
- Power: the amount of power consumed by the system
- Flexibility: the ability to change the functionality of the system without
incurring heavy NRE cost
© 2014 by M. Jiménez, R.
Palomera, & I. Couvertier
EEE026 – PSE – UFMG 2022 38
Time-to-market: a demanding design metric
Revenues ($)
- Period during which the product would
have highest sales
l Average time-to-market constraint is
about 8 months
Time (months)
l Delays can be costly
delayed entry
On-time triangle, representing market
Market rise Market fall penetration
Delayed - Triangle area equals revenue
• Loss
D W 2W - The difference between the on-
On-time Delayed Time time and delayed triangle areas
entry entry
On-time
delayed entry
• Percentage revenue loss =
Market rise Market fall (D(3W-D)/2W2)*100%
Delayed • Try some examples
- Lifetime 2W=52 wks,
D W 2W - delay D= 4 wks = 22%
On-time Delayed Time - delay D=10 wks = 50%
entry entry - Delays are costly!
• Costs:
- Unit cost: the monetary cost of manufacturing each copy of the system,
excluding NRE cost
- NRE cost (Non-Recurring Engineering cost): The one-time monetary cost of
designing the system
- total cost = NRE cost + unit cost * # of units
- per-product cost = total cost / # of units
= (NRE cost / # of units) + unit cost
• Example
- NRE=$2000, unit=$100
- For 10 units
- total cost = $2000 + 10*$100 = $3000
- per-product cost = $2000/10 + $100 = $300
p er p rod uc t c ost
$120,000 $120
$80,000 $80
$40,000 $40
$0 $0
0 800 1600 2400 0 800 1600 2400
Numb er of units (volume) Numb er of units (volume)
• Technology
- A manner of accomplishing a task, especially using technical
processes, methods, or knowledge
• Three key technologies for embedded systems
- Processor technology
- IC technology
- Design technology
total = 0 total = 0
for i =1 to … for i =1 to …
General-purpose (“software”) Application-specific Single-purpose (“hardware”)
Embedded Systems Design: A Unified
Hardware/Software Introduction, (c) 2000 Vahid/Givargis
EEE026 – PSE – UFMG 2022 47
Processor technology
total = 0
for i = 1 to N loop
total += M[i]
end loop
Desired
functionality
• Benefits
- Fast
- Low power
- Small size
• Features Data
memory
- Program memory Program
memory
- Optimized datapath
Assembly code
- Special functional units for:
• Benefits total = 0
for i =1 to …
- Some flexibility, good performance, size and
power
Embedded Systems Design: A Unified
Hardware/Software Introduction, (c) 2000 Vahid/Givargis
gate
IC package IC oxide
source channel drain
Silicon substrate
1983
1985
1987
1989
1991
1993
1995
1997
1999
2001
2003
2005
2007
2009
Embedded Systems Design: A Unified
Hardware/Software Introduction, (c) 2000 Vahid/Givargis
• Wow
- This growth rate is hard to imagine, most people
underestimate
- How many ancestors do you have from 20 generations ago
• i.e., roughly how many people alive in the 1500’s did it take to make
you?
• 220 = more than 1 million people
- (This underestimation is the key to pyramid schemes!)
10,000 150,000,000
transistors transistors
- 8 bits - 64 bits
- 1 MHz - 3 GHz
- 3.510 Tr - 16.000.000.000 Tr
- 10,99 x 10,96 mm
- 3,9 x 4,3 mm
- 120,45 mm2
- 16,6 mm2
MOS 6502
3,9 x 4,3 mm
16,6 mm2
3.510 Tr
nMOS
8µm
1975
Apple M1
10,99 x 10,96 mm
120,45 mm2
16 bilhões Tr
CMOS
5nm
EEE026 – PSE – UFMG 2022 2020
MOS Tec. 6502
l ALU 8 bits
l Enderaçamento de 64KB
l 1 MHz
l 3 registradores
l ALU 8 bits
l Enderaçamento de 64KB Decoder
l 1 MHz
Control Logic
l 3 registradores
ALU Registers
l 32x NE Cores
l 32x NE Cores
l 114 bi Tr
l 840 mm2
l CoWoS
l Chip on Wafer on Substrate
To final implementation
Embedded Systems Design: A Unified
Hardware/Software Introduction, (c) 2000 Vahid/Givargis
10,000
Productivity
100
10
0.1
0.01
1993
2005
1983
1987
2001
2003
1985
1991
1981
1989
1999
1997
1995
2007
2009
• Exponential increase over the past few decades
Embedded Systems Design: A Unified
Hardware/Software Introduction, (c) 2000 Vahid/Givargis
• Hardware/software
“codesign” Microprocessor plus
program bits: “software”
Implementation
VLSI, ASIC, or PLD
implementation: “hardware”
The choice of hardware versus software for a particular function is simply a tradeoff among various
design metrics, like performance, power, size, NRE cost, and especially flexibility; there is no
fundamental difference between what hardware or software can implement.
Embedded Systems Design: A Unified
Hardware/Software Introduction, (c) 2000 Vahid/Givargis
EEE026 – PSE – UFMG 2022 74
Independence of processor and IC
technologies
• Basic tradeoff
- General vs. custom
- With respect to processor technology or IC technology
- The two technologies are independent
General- Single-
purpose ASIP purpose
General, Customized,
processor processor
providing improved: providing improved:
1983
1985
1987
1989
1991
1993
1995
1997
1999
2001
2003
2005
2007
2009
Embedded Systems Design: A Unified
Hardware/Software Introduction, (c) 2000 Vahid/Givargis
1983
1985
1987
1989
1991
1993
1995
1997
1999
2001
2003
2005
2007
2009
Embedded Systems Design: A Unified
Hardware/Software Introduction, (c) 2000 Vahid/Givargis
0 10 20 30 40
Number of designers
Embedded Systems Design: A Unified
Hardware/Software Introduction, (c) 2000 Vahid/Givargis