Embedded Systems Design: A Unified Hardware/Software Introduction
Embedded Systems Design: A Unified Hardware/Software Introduction
Hardware/Software Introduction
Chapter 1: Introduction
1
Outline
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
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, delay D=4 wks
D W 2W
– (4*(3*26 –4)/2*26^2) = 22%
On-time Delayed Time – Lifetime 2W=52 wks, delay D=10 wks
entry entry – (10*(3*26 –10)/2*26^2) = 50%
– 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
$80,000 $80
$40,000 $40
$0 $0
0 800 1600 2400 0 800 1600 2400
Number of units (volume) Number 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”)
Desired
functionality
general ALU
• User benefits Program
memory
Data
memory
– Low time-to-market and NRE costs
Assembly code
– High flexibility for:
• Benefits
– Fast
– Low power
– Small size
• Features Data
Program memory
– Program memory memory
– Optimized datapath Assembly code
– Special functional units for:
• Benefits total = 0
for i =1 to …
gate
IC package IC oxide
source channel drain
Silicon substrate
millions)
Logic
s per
chip
10
(in
1
0.1
Note:
0.01
logarithmic scale
0.001
81 83 85 87 89 91 93 95 97 99 01 03 05 07 09
19 19 19 19 19 19 19 19 19 19 20 20 20 20 20
10,000 150,000,000
transistors transistors
To final implementation
10,000
(K) Trans./Staff – Mo.
1,000Productivity
100
10
0.1
0.01
1981 1991 1993 1995 1997 2001 2007 2009
1983 1985 1987 1989 1999 2003 2005
• Hardware/software
Implementation
“codesign” Microprocessor plus
program bits: “software”
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.
General- Single-
purpose ASIP purpose
General, processor processor Customized,
providing improved: providing improved:
millions)
Logic
Gap
s per
chip
Trans./St
Producti
10
(in
100
aff-Mo.
IC capacity
vity
(K)
1 10
0.1 1
productivity
0.01 0.1
0.001 0.01
81 83 85 87 89 91 93 95 97 99 01 03 05 07 09
19 19 19 19 19 19 19 19 19 19 20 20 20 20 20
Gap
chip
Product
(in
Trans./
10 100
Staff-
)
IC capacity
ivity
Mo.
(K)
1 10
0.1 1
productivity
0.01 0.1
0.001 0.01
81 83 85 87 89 91 93 95 97 99 01 03 05 07 09
19 19 19 19 19 19 19 19 19 19 20 20 20 20 20