Docsity

General Computing Systems - Lecture Slides | CS 4833, Study notes of Computer Science

Partial preview of the text

Download General Computing Systems - Lecture Slides | CS 4833 and more Study notes Computer Science in PDF only on Docsity!

Fall 2008 CS 4833:Embedded Systems 1

Introduction to

Embedded Systems

Lecture Outline

aWhat is an embedded system?

aWhy do we care embedded systems?

aDesign challenges & metrics

aConstraints and design tradeoffs:

¾ cost, performance, time etc.

aDesign technologies and approaches

aSummary

Fall 2008 CS 4833: Embedded Systems 3

General Computing Systems

aPersonal Computers (PCs)

¾ Desktops

¾ Laptops

aMainframes

aServers

Embedded Computing Systems: Examples

aComputing systems embedded

within another devices/systems

aComputing system other than a

desktop computer

aPerhaps 50 per household and

per automobile

aBillions of units produced yearly,

versus millions of desktop units

Fall 2008 CS 4833: Embedded Systems 7

Digital Camera: An Example

Microcontroller
CCD preprocessor Pixel coprocessor
A2D
D2A
JPEG codec
DMA controller
Memory controller ISA bus interface UART LCD ctrl
Display ctrl
Multiplier/Accum
Digital camera chip
lens
CCD

a Single-functioned -- always a digital camera

a Tightly-constrained -- Low cost, low power, small, fast

a Reactive and real-time -- only to a small extent

Definition: An Embedded System

aEmploys a combination of hardware & software to

perform a single/specific function

aPart of a larger system (not a “computer”)

aWorks in a reactive and time-constrained

environment.

aSoftware provides features and flexibility

aHardware = {Processors, ASICs, Memory,...} is used

for performance (& sometimes security)

Fall 2008 CS 4833: Embedded Systems 9

Why are Embedded Systems important?

a Market reasons

¾ The embedded systems market is also in billions of $
¾ 90% of processors go into “ non-computers ”, only 10% in “computers”
¾ In year 2000, about $2,700 of every car goes to electronics

a Engineering reasons

¾ Why does a satellite need a Windows prompt?
¾ Does the McDonald’s POS (point-of-sale) terminal need MacOS?
¾ Any device that needs to be controlled can be controlled by a
microprocessor

a Embedded system designers are often

¾ Jackofmanytrades
¾ Need to know hardware, software, and some combination of
networking, control theory and signal processing
¾ Understand business models

Typical Embedded System Constraints

a Small Size, Low Weight

¾ Handheld electronics
¾ Transportation applications weight costs money

a Cost sensitivity

¾ Unit cost : the monetary cost of manufacturing each copy of the
system, excluding NRE cost
¾ NRE (Non-Recurring Engineering cost): The one-time monetary cost of
designing the system

a Low Power

¾ Battery power for 8+ hours

a Safety critical operation

¾ Must function correctly

a Harsh environment

¾ Heat, vibration, shock
¾ Power fluctuations, RF interference, lightning
¾ Water, corrosion, physical abuse

Fall 2008 CS 4833: Embedded Systems 13

Time-to-market: a demanding metric

aTime required to

develop a product to the

point it can be sold to

customers

aMarket window

¾ Period during which the

product would have

highest sales

aAverage time-to-market

constraint is about 8

months

aDelays can be costly

Revenues ($)

Time (months)

NRE and unit cost metrics vs. unit

a 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

a Example

¾ NRE=$2000, unit=$
¾ For 10 units
9 total cost = $2000 + 10*$100 = $
9 per-product cost = $2000/10 + $100 = $

Amortizing NRE cost over all the units

Fall 2008 CS 4833: Embedded Systems 15

NRE and unit cost metrics (cont.)

$

$40,

$80,

$120,

$160,

$200,

0 800 1600 2400

A B C

$

$

$

$

$

$

0 800 1600 2400 Numb er of units (volume)

A B C

Numb er of units (volume)

tota l c ost (x1000) p er p rod uc t c ost

a Compare technologies by costs -- best depends on quantity

¾ Technology A: NRE=$2,000, unit=$
¾ Technology B: NRE=$30,000, unit=$
¾ Technology C: NRE=$100,000, unit=$

But, must also consider time-to-market

The performance design metric

aWidely-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

aLatency (response time)

¾ Time between task start and end
¾ e.g., Camera’s A and B process images in 0.25 seconds

aThroughput

¾ 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).

a Speedup of B over A: S =8/4 = 2

Fall 2008 CS 4833: Embedded Systems 19

Different Processor Technologies

aThe architecture of the computation engine used to

implement a system’s desired functionality

Application-specific

Registers

Custom ALU

Controller Datapath

Program memory Assembly code for:

total = 0 for i =1 to …

Control logic and State register

Data memory

IR PC

Single-purpose (“hardware”)

Controller Datapath

Control logic

State register

Data memory

index total

IR PC

Register file

General ALU

Controller Datapath

Program memory Assembly code for:

total = 0 for i =1 to …

Control logic and State register

Data memory

General-purpose (“software”)

Different Processor Technologies (cont.)

aGeneral-purpose processors

¾ Low time-to-market and NRE costs

¾ High flexibility

aSingle-purpose processors: digital circuit designed

to execute exactly one program

¾ Contains only the components needed to execute a single

program Æ fast, low power and small size

¾ High cost

aApplication-specific processors: optimized for a

particular class of applications

¾ Some flexibility, good performance, size and power

Fall 2008 CS 4833: Embedded Systems 21

IC (integrated circuit) Technologies

aThe manner in which a digital (gate-level)

implementation is mapped onto an IC

aFull-custom/VLSI

aSemi-custom ASIC (gate array and standard cell)

aPLD (Programmable Logic Device)

source drain cha

nnel

oxide

gate

Silicon substrate

IC package IC

Full-custom/VLSI

aAll layers are optimized for an embedded system’s

particular digital implementation

¾ Placing transistors

¾ Sizing transistors

¾ Routing wires

aBenefits

¾ Excellent performance, small size, low power

aDrawbacks

¾ High NRE cost (e.g., $300k), long time-to-market

Fall 2008 CS 4833: Embedded Systems 25

Processor & IC technologies Relation

a Basic tradeoff

¾ General vs. custom
¾ With respect to processor technology or IC technology
¾ The two technologies are independent

General- purpose processor

ASIP

Single- purpose processor

PLD Semi-custom Full-custom

General, providing improved:

Customized, providing improved:

Power efficiency Performance Size Cost (high volume)

Flexibility Maintainability NRE cost Time- to-prototype Time-to-market Cost (low volume)

Design Technology

aThe manner in which we convert our concept of

desired system functionality into an implementation

Libraries/IP: Incorporates pre- designed implementation from lower abstraction level into higher level.

System specification

Behavioral specification

RT specification

Logic specification

To final implementation

Compilation/Synthesis: Automates exploration and insertion of implementation details for lower level.

Test/Verification: Ensures correct functionality at each level, thus reducing costly iterations between levels.

Compilation/ Synthesis

Libraries/ IP

Test/ Verification

System synthesis

Behavior synthesis

RT synthesis

Logic synthesis

Hw/Sw/ OS

Cores

RT components

Gates/ Cells

Model simulat./ checkers

Hw-Sw cosimulators

HDL simulators

Gate simulators

Fall 2008 CS 4833: Embedded Systems 27

The co-design ladder

a In the past:

¾ Hardware and software
design technologies were
very different
¾ Recent maturation of
synthesis and CAD tools
enables a unified view of
hardware and software

a Hardware/software

“codesign”

Implementation

Assembly instructions

Machine instructions

Register transfers

Compilers (1960's,1970's)

Assemblers, linkers (1950's, 1960's)

Behavioral synthesis (1990's)

RT synthesis (1980's, 1990's)

Logic synthesis (1970's, 1980's)

Microprocessor plus program bits: “software”

VLSI, ASIC, or PLD implementation: “hardware”

Logic gates

Logic equations / FSM's

Sequential program code (e.g., C, VHDL)

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.

Moore’s Law: Transistors on a Chip

1

10

100

1000

10000

100000

1000000

10000000

100000000

1000000000

19681970197219741976197819801982198419861988199019921994199619982000

Transistors 4004

8008 8080

8086

286

386

486 P-I

P-II

P-III

P-IV

Moore’s

Law

IC transistor capacity has doubled roughly

every 18 months for the past several decades

Fall 2008 CS 4833: Embedded Systems 31

Design productivity gap

a 1981 leading edge chip required 100 designer months

¾ 10,000 transistors / 100 transistors/month

a 2002 leading edge chip requires 30,000 designer months

¾ 150,000,000 / 5000 transistors/month

a Designer cost increase from $1M to $300M

10, 1, 100 10 1

Logic transistors
per chip
(in millions)

100, 10, 1000 100 10 1

Productivity
(K) Trans./Staff-Mo.

198119831985198719891991199319951997199920012003200520072009

IC capacity
productivity
Gap

The mythical man-month

a The situation is even worse than the productivity gap indicates
a In theory, adding designers to team reduces project completion time
a In reality, productivity per designer decreases due to complexities of team
management and communication
a At some point, can actually lengthen project completion time! (“Too many
cooks”)
Team
Individual
Months until completion
Number of designers
a 1M transistors , 1
designer=5000 trans/month
a Each additional designer
reduces for 100 trans/month
a So 2 designers produce 4900
trans/month each

Fall 2008 CS 4833: Embedded Systems 33

Embedded System Designer Skill Set

a Appreciation for multidisciplinary nature of design

¾ Both hardware & software skills
¾ Understanding of engineering beyond digital logic

a Communication & teamwork skills

¾ Work with other disciplines, manufacturing, marketing
¾ Work with customers to understand the real problem being solved
¾ Make a good presentation; even better write ``trade rag'' articles

a And, by the way, technical skills too...

¾ Low-level: Microcontrollers, FPGA/ASIC, assembly, A/D, D/A
¾ High-level: O-O Design, C/C++, Real Time Operating Systems
¾ Meta-level: Creative solutions to highly constrained problems
¾ Likely in the future: U nified M odeling L anguage, embedded networks
¾ (Un)certain future: Java, Windows CE

Summary

aWhat is an embedded system?

¾ More than just a computer it's a complete system

aWhat makes embedded systems different?

¾ Many constraints on designs

9 Size 9 Power 9 Cost 9 Performance etc.

aWhat embedded system designers need to know?

¾ Multi-objective: cost, dependability, performance, etc.

¾ Multidiscipline: hardware, software, electromechanical.

¾ Life-cycle: specification, design, prototyping, deployment,

support