Embedded System Design: Unified Hardware-Software Approach

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 25

Embedded System Design:

Unified Hardware-Software
approach
Outline
• Embedded systems overview
– What are they?
– History
• Design challenge – optimizing design metrics
• Technologies
– Processor technologies
– IC technologies
– Design technologies
ESD: Trends

• IC technology: Both Software and hardware


processors coexist in Single ICs
• Software, compilers are now readily
available
• Well developed synthesis tools.
Embedded Systems
• Real time and non real time systems
• Common Architecture
• Few terms and defnitions
• A number of systems coexist to discharge a specific function in real time -
Embedded
Embedded systems characteristics
• 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
An embedded system example -- a
digital camera
Digital camera chip
CCD
CCD preprocessor Pixel coprocessor D2A
A2D

lens

JPEG codec Microcontroller Multiplier/Accum

DMA controller Display ctrl

Memory controller ISA bus interface UART LCD ctrl

• Single-functioned -- always a digital camera


• Tightly-constrained -- Low cost, low power, small, fast
• Reactive and real-time -- only to a small extent
Design challenge – optimizing
design metrics
• Obvious design goal:
– Construct an implementation with desired functionality
• Key design challenge:
– Simultaneously optimize numerous design metrics
• Design metric
– A measurable feature of a system’s implementation
– Optimizing design metrics is a key challenge
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
Design challenge – optimizing
design metrics
• Common metrics (continued)
– Time-to-prototype: the time needed to build a working version of the
system
– Time-to-market: the time required to develop a system to the point that
it can be released and sold to customers
– Maintainability: the ability to modify the system after its initial release
– Correctness, safety, etc
Design metric competition --
improving one may worsen others
Power
• Expertise with both software and
hardware is needed to optimize
Performance Size design metrics
– Not just a hardware or software
expert, as is common
NRE cost – A designer must be comfortable
with various technologies in order
to choose the best for a given
Digital camera chip
CCD application and constraints
CCD preprocessor Pixel coprocessor D2A
A2D
lens
JPEG codec Microcontroller Multiplier/Accum

DMA controller Display ctrl Hardware

Memory controller ISA bus interface UART LCD ctrl


Software
Time-to-market: a demanding design
metric
• Time required to develop a
product to the point it can be sold
to customers
• Market window
– Period during which the
Revenues ($) product would have highest
sales
• Average time-to-market constraint
is about 8 months
Time (months) • Delays can be costly
Losses due to delayed market entry
• Simplified revenue model
Peak revenue
– Product life = 2W, peak at W
Peak revenue from – Time of market entry defines a
Revenues ($)

delayed entry
On-time triangle, representing market
Market rise Market fall penetration
Delayed – Triangle area equals revenue
• Loss
D
– The difference between the on-
W 2W
On-time Delayed Time
time and delayed triangle areas
entry entry
Losses due to delayed market entry
(cont.)
• Area = 1/2 * base * height
Peak revenue
– On-time = 1/2 * 2W * W
– Delayed = 1/2 * (W-D+W)*(W-D)
Peak revenue from
Revenues ($)

delayed entry • Percentage revenue loss = (D(3W-


On-time
D)/2W2)*100%
Market rise Market fall
• Try some examples
Delayed

– 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!
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
NRE and unit cost metrics
• Compare technologies by costs -- best depends on quantity
– Technology A: NRE=$2,000, unit=$100
– Technology B: NRE=$30,000, unit=$30
– Technology C: NRE=$100,000, unit=$2

$200,000 $200
A A
B B
$160,000 $160
C C
total c ost (x1000)

per product cost


$120,000 $120

$80,000 $80

$40,000 $40

$0 $0
0 800 1600 2400 0 800 1600 2400
Number of units (volume) Number of units (volume)
The performance design metric
• Widely-used measure of system, widely-abused
– Clock frequency, instructions per second – not good measures
– Digital camera example – a user cares about how fast it processes images, not clock
speed or instructions per second
• Latency (response time)
– Time between task start and end
– e.g., Camera’s A and B process images in 0.25 seconds
• Throughput
– Tasks per second, e.g. Camera A processes 4 images per second
– Throughput can be more than latency seems to imply due to concurrency, e.g.
Camera B may process 8 images per second (by capturing a new image while
previous image is being stored).
• Speedup of B over S = B’s performance / A’s performance
– Throughput speedup = 8/4 = 2
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
Processor technology
• The architecture of the computation engine used to implement a
system’s desired functionality
• Processor does not have to be programmable
“Processor” not equal to general-purpose processor
Controller Datapath Controller Datapath Controller Datapath
Control index
Control Register Control logic Registers
logic
logic and file and State total
State register register State
Custom +
ALU register
General
IR PC ALU IR PC
Data Data
memory memory
Program Data Program memory
memory memory
Assembly code Assembly code
for: for:

total = 0 total = 0
for i =1 to … for i =1 to …
Processor technology
Processors vary in their customization for the problem at hand

total = 0
for i = 1 to N loop
total += M[i]
Desired end loop
functionality

General-purpose Application-specific Single-purpose


processor processor processor
General-purpose processors
• Programmable device used in a variety of
Controller Datapath
applications
– Also known as “microprocessor” Control Register
logic and file
• Features State
register
– Program memory General
ALU
– General datapath with large register file and IR PC

general ALU
Program
• User benefits memory
Data
memory
– Low time-to-market and NRE costs
Assembly code
– High flexibility for:

• “Pentium” the most well-known, but there are total = 0


for i =1 to …
hundreds of others
Single-purpose processors
• Digital circuit designed to execute exactly one
Controller Datapath
program
Control index
– a.k.a. coprocessor, accelerator or peripheral logic
total
• Features State
+
– Contains only the components needed to register

execute a single program


– No program memory Data
memory
• Benefits
– Fast
– Low power
– Small size
Application-specific processors
• Programmable processor optimized for a particular Controller Datapath
class of applications having common Control Registers
characteristics logic and
State
– Compromise between general-purpose and register
Custom
single-purpose processors ALU
IR PC
• Features
Data
– Program memory memory
Program
– Optimized datapath memory

– Special functional units Assembly code


for:
• Benefits
total = 0
– Some flexibility, good performance, size and for i =1 to …

power
IC technology
• The manner in which a digital (gate-level) implementation is mapped
onto an IC
– IC: Integrated circuit, or “chip”
– IC technologies differ in their customization to a design
– IC’s consist of numerous layers (perhaps 10 or more)
• IC technologies differ with respect to who builds each layer
and when

gate
IC package IC oxide
source channel drain
Silicon substrate
Moore’s law
• The most important trend in embedded systems
– Predicted in 1965 by Intel co-founder Gordon Moore
IC transistor capacity has doubled roughly every 18 months for the past several decades

10,000
1,000
Logic transistors

(in millions)

100
per chip

10
1
0.1
0.01
0.001

2009 2007 2005 2003 2001 1999 1997 1995 1993 1991 1989 1987 1985 1983 1981
Summary
• Key challenge: optimization of design metrics
– Design metrics compete with one another
• A unified view of hardware and software is
necessary to improve productivity
• Processor Technology:

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy