Docsity

Embedded Systems - Lecture Notes | ETEE 3285, Study notes of Electrical and Electronics Engineering

Partial preview of the text

Download Embedded Systems - Lecture Notes | ETEE 3285 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

Embedded Systems Programming

ETEE 3285

Topic 1: Embedded Systems

Outline

 Embedded systems overview

 What are they?

 Design challenge – optimizing design

metrics

 Technologies

 Processor technologies

 IC technologies

 Design technologies

Embedded systems overview

 Computing systems are everywhere

 Most of us think of “desktop” computers

 PC’s

 Laptops

 Mainframes

 Servers

 But there’s another type of computing

system that’s far more common...

Embedded systems overview

 Embedded computing systems

 Computing systems embedded within

electronic devices

 Hard to define. Nearly any computing

system other than a desktop

computer

 Billions of units produced yearly,

versus millions of desktop units

 Perhaps 50 per household and per

automobile

Computers are in here...

and here...

and even here...

Lots more of these,

though they cost a lot

less each.

Embedded systems are everywhere

 In 2000, more than a quarter billion, 8-bit

embedded processors were being sold

each month ( http://www.extremetech.com/article2/0,3973,18917,00.asp )

Embedded systems are everywhere

 The average middle-class American household

has about 40 to 50 microprocessors in it - plus

another 10 processors for every PC

( http://www.extremetech.com/article2/0,3973,18917,00.asp )

 There's a microprocessor in your:

 The microwave oven

 The washer, dryer, and dishwasher

 Color TV and another one in the remote control

 The VCR (and its remote)

 Your stereo receiver, CD player, and DVD player An

automatic garage door opener (and each remote control for

it) also contains a microprocessor

Embedded systems are everywhere

 Got a Volvo?

 The processor in its automatic transmission

communicates with the processors behind each

side-view mirror.

 Allows the outside mirrors to automatically tilt down

and inward whenever you put car into reverse gear,

the better to see the back end of the car

Embedded systems are everywhere

 The Additional Processors in Your PC

 There's an 8-bit processor in your keyboard

 Another processor in your mouse

 There’s one in each hard disk drive and floppy

drive (if you still have one)

 One in your CD-ROM

 A big one in your graphics accelerator

 A CPU buried in your USB interface

 A processor handling your NIC

An embedded system example -

- a digital camera

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

• 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

 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, many more

Design challenge:

optimizing design metrics

Design metric trade-offs

 Expertise with both software and hardware is needed to

optimize design metrics

 Not just a hardware or software expert, as is common

 A designer must be comfortable with various technologies in order to

choose the best for a given application and constraints

 Because of the trade-offs, optimization is always a

balancing act

 This image shows metrics as pushbuttons: as you change a

parameter (push the button in), the other buttons are pushed out

Performance Size

Power

NRE cost

Losses due to delayed market

entry

 Simplified revenue model

 Product life = 2W, peak at W

 Time of market entry defines a

triangle, representing market

penetration

 Triangle area equals revenue

 Loss

 The difference between the

on-time and delayed triangle

areas

On-time Delayed entry entry

Peak revenue

Peak revenue from

delayed entry

Market rise Market fall

W 2W

Time

D

On-time

Delayed

Revenues ($)

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