Chapter 1 - Introduction
Chapter 1 - Introduction
Hardware/Software Introduction
Chapter 1: Introduction
1
Acknowledgement
2
Embedded systems overview
3
Embedded systems overview
4
A “short list” of embedded systems
Anti-lock brakes Modems
Auto-focus cameras MPEG decoders
Automatic teller machines Network cards
Automatic toll systems Network switches/routers
Automatic transmission On-board navigation
Avionic systems Pagers
Battery chargers Photocopiers
Camcorders Point-of-sale systems
Cell phones Portable video games
Cell-phone base stations Printers
Cordless phones Satellite phones
Cruise control Scanners
Curbside check-in systems Smart ovens/dishwashers
Digital cameras Speech recognizers
Disk drives Stereo systems
Electronic card readers Teleconferencing systems
Electronic instruments Televisions
Electronic toys/games Temperature controllers
Factory control Theft tracking systems
Fax machines TV set-top boxes
Fingerprint identifiers VCR’s, DVD players
Home security systems Video game consoles
Life-support systems Video phones
Medical testing systems Washers and dryers
6
Embedded System Main Components
7
Some common characteristics of embedded
systems
• Single-functioned
– Executes a single program, repeatedly
• Tightly-constrained
– Low cost, low power, small, fast, etc.
• Reactive and real-time
– Continually reacts to changes in the system’s environment
– Must compute certain results in real-time without delay
8
An embedded system example -- a digital
camera
Digital camera chip
CCD
lens
9
Design challenge – optimizing design metrics
10
Design challenge – optimizing design metrics
• 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
– User interface
11
Design challenge – optimizing design metrics
12
Design metric competition -- improving one
may worsen others
Power • Expertise with both software
and hardware is needed to
Performance Size
optimize design metrics
– Not just a hardware or
software expert, as is common
NRE cost – A designer must be
comfortable with various
CCD
Digital camera chip technologies in order to choose
A2D
CCD preprocessor Pixel coprocessor D2A the best for a given application
lens
and constraints
JPEG codec Microcontroller Multiplier/Accum
13
Time-to-market: a demanding design metric
14
Losses due to delayed market entry
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
15
Losses due to delayed market entry (cont.)
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!
16
NRE and unit cost metrics
• 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
Amortizing NRE cost over the units results in an
additional $200 per unit
17
The performance design metric
18
Three key embedded system technologies
• 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
19
Processor technology
total = 0 total = 0
for i =1 to … for i =1 to …
Application-specific
General-purpose (“software”) (e.g., micro-controllers, DSPs) Single-purpose (“hardware”)
20
Processor technology
total = 0
for i = 1 to N loop
total += M[i]
end loop
Desired
functionality
21
General-purpose processors
• Programmable device used in a variety of
Controller Datapath
applications
Control
– Also known as “microprocessor” logic and
Register
file
• Features State register
general ALU
• User benefits Program
memory
Data
memory
– Low time-to-market and NRE costs
Assembly code
– High flexibility for:
22
Single-purpose processors
• Benefits
– Fast
– Low power
– Small size
23
Application-specific processors
• Features Data
Program memory
– Program memory memory
– Optimized datapath Assembly code
– Special functional units for:
• Benefits total = 0
for i =1 to …
24
IC technology
gate
IC package IC oxide
source channel drain
Silicon substrate
25
IC technology
26
Full-custom/VLSI
27
Semi-custom
28
PLD (Programmable Logic Device)
30
Graphical illustration of Moore’s law
10,000 150,000,000
transistors transistors
31
Design Technology
To final implementation
32
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, processor processor Customized,
providing improved: providing improved:
33
Summary
34