+ All Categories
Home > Documents > Embedded Systems - Columbia Universitysedwards/classes/2005/4840/embedded-syst… · Hidden...

Embedded Systems - Columbia Universitysedwards/classes/2005/4840/embedded-syst… · Hidden...

Date post: 08-May-2018
Category:
Upload: buidan
View: 217 times
Download: 2 times
Share this document with a friend
25
Embedded Systems CSEE W4840 Prof. Stephen A. Edwards Columbia University Embedded Systems – p. 1/2
Transcript
Page 1: Embedded Systems - Columbia Universitysedwards/classes/2005/4840/embedded-syst… · Hidden Computers Casio Nokia 7110 Sony Camera Browser Playstation 2 Watch Phone Philips Philips

Embedded SystemsCSEE W4840

Prof. Stephen A. Edwards

Columbia University

Embedded Systems – p. 1/24

Page 2: Embedded Systems - Columbia Universitysedwards/classes/2005/4840/embedded-syst… · Hidden Computers Casio Nokia 7110 Sony Camera Browser Playstation 2 Watch Phone Philips Philips

Spot the Computer

Embedded Systems – p. 2/24

Page 3: Embedded Systems - Columbia Universitysedwards/classes/2005/4840/embedded-syst… · Hidden Computers Casio Nokia 7110 Sony Camera Browser Playstation 2 Watch Phone Philips Philips

Hidden Computers

Casio Nokia 7110 SonyCamera Browser Playstation 2Watch Phone

Philips PhilipsDVD Player TiVo Recorder

Embedded Systems – p. 3/24

Page 4: Embedded Systems - Columbia Universitysedwards/classes/2005/4840/embedded-syst… · Hidden Computers Casio Nokia 7110 Sony Camera Browser Playstation 2 Watch Phone Philips Philips

Technical Challenges

Real-time Complexity

Concurrency Legacy LanguagesEmbedded Systems – p. 4/24

Page 5: Embedded Systems - Columbia Universitysedwards/classes/2005/4840/embedded-syst… · Hidden Computers Casio Nokia 7110 Sony Camera Browser Playstation 2 Watch Phone Philips Philips

Software complexity growing

Size of Typical Embedded System1985 13 kLOC1989 21 kLOC ↓ 44 % per year1998 1 MLOC2000 2 MLOC

2008 16 MLOC ≈ Windows NT 4.02010 32 MLOC ≈ Windows 2000

Source: “ESP: A 10-Year Retrospective,” Embedded Systems Programming,November 1998

Embedded Systems – p. 5/24

Page 6: Embedded Systems - Columbia Universitysedwards/classes/2005/4840/embedded-syst… · Hidden Computers Casio Nokia 7110 Sony Camera Browser Playstation 2 Watch Phone Philips Philips

Written in stone-age languages

“Which of the following programming languageshave you used for embedded systems in the last12 months?”

C 81%Assembly 70%C++ 39%Visual Basic 16%Java 7%

Source: “ESP: A 10-Year Retrospective,” Embedded Systems Programming,November 1998

Embedded Systems – p. 6/24

Page 7: Embedded Systems - Columbia Universitysedwards/classes/2005/4840/embedded-syst… · Hidden Computers Casio Nokia 7110 Sony Camera Browser Playstation 2 Watch Phone Philips Philips

Digital Camera Block Diagram

Embedded Systems – p. 7/24

Page 8: Embedded Systems - Columbia Universitysedwards/classes/2005/4840/embedded-syst… · Hidden Computers Casio Nokia 7110 Sony Camera Browser Playstation 2 Watch Phone Philips Philips

The Design Challenge

Design optimal device that meets constraints on

Price Functionality

Performance Size

Power Time-to-market

Maintainability SafetyEmbedded Systems – p. 8/24

Page 9: Embedded Systems - Columbia Universitysedwards/classes/2005/4840/embedded-syst… · Hidden Computers Casio Nokia 7110 Sony Camera Browser Playstation 2 Watch Phone Philips Philips

The Time-to-Market Challenge

Time

Possible

Revenue

MarketWindow

Typicaltime-to-marketconstraint:8 months

Embedded Systems – p. 9/24

Page 10: Embedded Systems - Columbia Universitysedwards/classes/2005/4840/embedded-syst… · Hidden Computers Casio Nokia 7110 Sony Camera Browser Playstation 2 Watch Phone Philips Philips

Simplified Revenue Model

Time

Sales

W 2WD

Market ramp On-time curve

Delayed curve

Loss due to delay

Assuming a constant market ramp, on-time revenue is 1

2bh = 1

2· 2W · W = W 2

and delayed revenue is 1

2(2W − D)(W − D) so fractional revenue loss is

D(3W − D)

2W 2= O(D2)

Example: when W = 26 and D = 10, fraction lost is about 50%.

Embedded Systems – p. 10/24

Page 11: Embedded Systems - Columbia Universitysedwards/classes/2005/4840/embedded-syst… · Hidden Computers Casio Nokia 7110 Sony Camera Browser Playstation 2 Watch Phone Philips Philips

NRE

Nonrecurring engineering cost:The cost of producing the first one.

log Volume

logU

nitCost

NRE cost dominates

Production cost dominates

Low NRE, high production costs

High NRE, low production costs

Embedded Systems – p. 11/24

Page 12: Embedded Systems - Columbia Universitysedwards/classes/2005/4840/embedded-syst… · Hidden Computers Casio Nokia 7110 Sony Camera Browser Playstation 2 Watch Phone Philips Philips

Embedded System Technologies

Integrated Circuits

Processing elements

Design tools

Embedded Systems – p. 12/24

Page 13: Embedded Systems - Columbia Universitysedwards/classes/2005/4840/embedded-syst… · Hidden Computers Casio Nokia 7110 Sony Camera Browser Playstation 2 Watch Phone Philips Philips

IC Technology

1947: First transistor (Shockley, Bell Labs)

1958: First integrated circuit (Kilby, TI)

1971: First microprocessor (4004: Intel)

Today: six wire layers, 100 nm features

Embedded Systems – p. 13/24

Page 14: Embedded Systems - Columbia Universitysedwards/classes/2005/4840/embedded-syst… · Hidden Computers Casio Nokia 7110 Sony Camera Browser Playstation 2 Watch Phone Philips Philips

Moore’s Law

Gordon Moore, 1965: Exponential growth in thenumber of transistors per ICSource: Intel

Embedded Systems – p. 14/24

Page 15: Embedded Systems - Columbia Universitysedwards/classes/2005/4840/embedded-syst… · Hidden Computers Casio Nokia 7110 Sony Camera Browser Playstation 2 Watch Phone Philips Philips

$1000 buys you this many CPS

1900 1910 1920 1930 1940 1950 1960 1970 1980 1990 2000

10−4

10−2

1

102

104

106

108

��

����

��

��

��

��

��

��

��

��

��

��

��

��

��� �

��

Electromechanical Relay Tube Transistor Integrated Circuit

Source: Ray Kurzweil, The Age of Spiritual Machines

Embedded Systems – p. 15/24

Page 16: Embedded Systems - Columbia Universitysedwards/classes/2005/4840/embedded-syst… · Hidden Computers Casio Nokia 7110 Sony Camera Browser Playstation 2 Watch Phone Philips Philips

1918 Sears Roebuck Catalog

About $100 in today’s dollars.From Donald Norman, The Invisible Computer, 1998.

Embedded Systems – p. 16/24

Page 17: Embedded Systems - Columbia Universitysedwards/classes/2005/4840/embedded-syst… · Hidden Computers Casio Nokia 7110 Sony Camera Browser Playstation 2 Watch Phone Philips Philips

Spectrum of IC choices

Full Custom

ASIC

Gate Array

FPGA

PLD

GP Processor

SP Processor

MultifunctionFixed-function

You choosepolygons (Intel)

circuit (Sony)

wires

logic network

logic function

program (e.g., Pentium)

program (e.g., DSP)

settings (e.g., Ethernet)part number (e.g., 74LS00)

Flexibility

Embedded Systems – p. 17/24

Page 18: Embedded Systems - Columbia Universitysedwards/classes/2005/4840/embedded-syst… · Hidden Computers Casio Nokia 7110 Sony Camera Browser Playstation 2 Watch Phone Philips Philips

Hardware and Software

HardwareParallelSynchronousLogic GatesWire-based

communicationFixed topologyLow powerMore detailedHigh NREFaster

SoftwareSequentialAsynchronousStored programsMemory-based

communicationHighly programmableHigh powerLess detailedNo NRESlower

Embedded Systems – p. 18/24

Page 19: Embedded Systems - Columbia Universitysedwards/classes/2005/4840/embedded-syst… · Hidden Computers Casio Nokia 7110 Sony Camera Browser Playstation 2 Watch Phone Philips Philips

Design Tools

Hardware

Logic Synthesis

Place-and-route

DRC/ERC/LVS

Simulators

Software

Compilers

Assemblers

Linkers

Debuggers

Embedded Systems – p. 19/24

Page 20: Embedded Systems - Columbia Universitysedwards/classes/2005/4840/embedded-syst… · Hidden Computers Casio Nokia 7110 Sony Camera Browser Playstation 2 Watch Phone Philips Philips

Cost of Designs is Rising

1981: 100 designer-months for leading-edge chip10k transistors, 100 transistors/month

2002: 30 000 designer-months150M transistors, 5000 transistors/month

Design cost increased from $1M to $300M

1980 1985 1990 1995 2000 2005 2010

Transistors per chip

Transistors/designer-month

100

10k

1M

100M

10G

Embedded Systems – p. 20/24

Page 21: Embedded Systems - Columbia Universitysedwards/classes/2005/4840/embedded-syst… · Hidden Computers Casio Nokia 7110 Sony Camera Browser Playstation 2 Watch Phone Philips Philips

Your Nemesis: The XESS XSB-300E

Embedded Systems – p. 21/24

Page 22: Embedded Systems - Columbia Universitysedwards/classes/2005/4840/embedded-syst… · Hidden Computers Casio Nokia 7110 Sony Camera Browser Playstation 2 Watch Phone Philips Philips

Block Diagram

Overview of the XSB Board Circuitry

The XSB Board has two major groups of components that connect to the FPGA: 1) those

with dedicated buses, and 2) those that share a peripheral bus. Components that process

video and audio data streams use dedicated buses, while all other components use the

shared Peripheral Bus. (The audio codec actually connects to both types of buses: it is

loaded with configuration data through the Peripheral Bus but it sends and receives

digitized audio data through a dedicated bus.) The chip-selects for components on the

Peripheral Bus are controlled by the FPGA to prevent contention.

CPLD

EthernetMAC+PHY

USB 2.0

AudioCodec

Exp

an

sio

nC

on

ne

cto

r

ExpansionConnector

Exp

an

sio

nC

on

ne

cto

r

RS

23

2C

on

ne

cto

rID

E D

isk

Co

nne

cto

r

Compact FlashConnector

256K x 16SRAM

8M x 16SDRAM

LEDsButtons

4 MbFlash

VideoDAC

30 MSPSADC

VideoDecoder

Pe

rip

hera

l B

us

XSB BOARD V1.0 MANUAL 8/20/2003 19

XC2S300E FPGAXC9572 CPLD256K x 16 SRAM8M x 16 SDRAM512K x 8 Flash6-channel NTSC video decoder12-bit, 30 MSPS ADC80 MHz, 30-bit video DAC20-bit, 4-input, 1-output stereo codecMicrophone/line-in/line-out jacks10/100 Ethernet MAC+PHYUSB 2.0 peripheral portSix pushbuttons, DIP switchTwo LED digits, bargraphThree programmable oscillatorsTwo expansion headers w/ 75 I/O pinsPeripheral header w/ 18 I/O pinsParallel and Serial portCompact Flash interfaceIDE hard disk interface

Embedded Systems – p. 22/24

Page 23: Embedded Systems - Columbia Universitysedwards/classes/2005/4840/embedded-syst… · Hidden Computers Casio Nokia 7110 Sony Camera Browser Playstation 2 Watch Phone Philips Philips

Class Structure

First half of course: Six Introductory Labs:

1. Count in C on the 7-segment display

2. TV Typewriter in C

3. VHDL system reverse-engineering

4. Sum the contents of a small memory in VHDL

5. Create a simple peripheral

6. Build an OPB interface to off-chip SRAM

Second half project: Design-your-own

Embedded Systems – p. 23/24

Page 24: Embedded Systems - Columbia Universitysedwards/classes/2005/4840/embedded-syst… · Hidden Computers Casio Nokia 7110 Sony Camera Browser Playstation 2 Watch Phone Philips Philips

Custom Project Ideas

Broadly: C + VHDL + peripheral(s)

Digital tone control

Digital sound effects processor

Real-time audio spectrum analyzer

Simple video effects processor

Speech synthesizer

Digital picture frame

Internet radio

Embedded Systems – p. 24/24

Page 25: Embedded Systems - Columbia Universitysedwards/classes/2005/4840/embedded-syst… · Hidden Computers Casio Nokia 7110 Sony Camera Browser Playstation 2 Watch Phone Philips Philips

Projects from 2004

MIDI synthesizer

Line-following robot with video vision

SAE student vehicle telemetry system

Stereo video vision system

Pac-man-like video game

Internet video camera

Embedded Systems – p. 25/24


Recommended