Top Banner
© 2008 Wayne Wolf Overheads for Computers as Components 2nd ed. Multiprocessors • Consumer electronics systems. • Cell phones. • CDs and DVDs. • Audio players. • Digital still cameras. 1
31

Multiprocessors

Jan 19, 2016

Download

Documents

Nessa

Multiprocessors. Consumer electronics systems. Cell phones. CDs and DVDs. Audio players. Digital still cameras. Consumer electronics use cases. Multimedia: stored in compressed form, uncompressed on viewing. Data storage and management: keep track of your multimedia, etc. - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Multiprocessors

© 2008 Wayne WolfOverheads for Computers as

Components 2nd ed.

Multiprocessors

• Consumer electronics systems.• Cell phones.• CDs and DVDs.• Audio players.• Digital still cameras.

1

Page 2: Multiprocessors

Consumer electronics use cases

• Multimedia: stored in compressed form, uncompressed on viewing.

• Data storage and management: keep track of your multimedia, etc.

• Communication: download, upload, chat.

© 2008 Wayne WolfOverheads for Computers as

Components 2nd ed. 2

Page 3: Multiprocessors

Non-functional requirements for CE

• Often battery-operated, strict power budget.,

• Very inexpensive.• User interface must be capable but

inexpensive.

© 2008 Wayne WolfOverheads for Computers as

Components 2nd ed. 3

Page 4: Multiprocessors

CE devices and hosts

• Many devices talk to host system.• PC host does things that

are hard to do on the device.

• Increasingly, CE devices communicate directly over the network, avoiding the host for access.

© 2008 Wayne WolfOverheads for Computers as

Components 2nd ed. 4

Page 5: Multiprocessors

Platforms and operating systems

© 2008 Wayne WolfOverheads for Computers as

Components 2nd ed.

• Many CE devices use a DSP for signal processing and a RISC CPU for other tasks.

• I/O devices include buttons, screen, USB.

5

Page 6: Multiprocessors

Flash file systems

• Flash is widely used for mass storage.

• Flash wears out on writing (up to 1 million cycles).• Directory is most often written, wears

out first.

• Flash file system has layer that moves contents to levelize wear.• Hides wear leveling from API.

© 2008 Wayne WolfOverheads for Computers as

Components 2nd ed. 6

Page 7: Multiprocessors

Cell phones

• Most popular CE device in history; most widely used computing device.• 1 billion sold per year.

• Handset talks to cell.• Cells hand off

handset as it moves.

© 2008 Wayne WolfOverheads for Computers as

Components 2nd ed. 7

Page 8: Multiprocessors

Cell phone platforms

• Today’s cell phones use analog front end, digital baseband processing.• Future cell phones will

perform IF processing with DSP.

• Baseband processing in DSP:• Voice compression.• Network protocol.

• Other processing:• Multimedia functions.• User interface.• File system.• Applications (contacts, etc.)

© 2008 Wayne WolfOverheads for Computers as

Components 2nd ed. 8

Page 9: Multiprocessors

CD/MP3 player

AudioCPU

amp

Jogmemory

Errorcorrector

ServoCPU

Analogin

Analogout

FE, TE, amp

focus,tracking,sled,motor head

drive

memory

memory

display

DAC

I2S

© 2008 Wayne WolfOverheads for Computers as

Components 2nd ed. 9

Page 10: Multiprocessors

CD medium

• Rotational speed: 1.2-1.4 m/s (CLV).• Track pitch: 1.6 microns.• Diameter: 120 mm.• Pit length: 0.8 -3 microns.• Pit depth: .11 microns.• Pit width: 0.5 microns.• Laser wavelength: 780 nm.

© 2008 Wayne WolfOverheads for Computers as

Components 2nd ed. 10

Page 11: Multiprocessors

CD mechanism

• Laser, lens, sled:

lase

r

CD

detectorsdiffraction

gratingsled

track

track

focus

© 2008 Wayne WolfOverheads for Computers as

Components 2nd ed.11

Page 12: Multiprocessors

Laser focus

• Focus controlled by vertical position of lens.

• Unfocused beam causes irregular spot:

In focusOut of focus Out of focus

© 2008 Wayne WolfOverheads for Computers as

Components 2nd ed. 12

Page 13: Multiprocessors

Laser pickup

A

B

C

D

F

E

Side spotdetectors

Level:A+B+C+DFocus error:(A+C)-(B+D)Tracking error:E-F

© 2008 Wayne WolfOverheads for Computers as

Components 2nd ed. 13

Page 14: Multiprocessors

Servo control

• Four main signals:• focus (laser) @ 245 kHz;• tracking (laser) @ 245 kHz;• sled (motor): @ 800 Hz;• Disc motor.

Optical pickup

© 2008 Wayne WolfOverheads for Computers as

Components 2nd ed. 14

Page 15: Multiprocessors

EFM

• Eight-to-fourteen modulation:• Fourteen-bit code guarantees a

maximum distance between transitions.

00000011 00100100000000

© 2008 Wayne WolfOverheads for Computers as

Components 2nd ed. 15

Page 16: Multiprocessors

Error correction

• CD capacity: 6.99 GB raw, 700 MB formatted.

• Reed-Solomon code:• g(x) = (x-) (x- 2) … (x- n-k-1) (x- n-k)

• Produces data, erasure bits.• Time to solve varies greatly depending on

noise.• CD interleaves Reed-Solomon blocks to

reduce effects of large data gaps.

© 2008 Wayne WolfOverheads for Computers as

Components 2nd ed. 16

Page 17: Multiprocessors

Control and error correction

• Skips caused by physical disturbance.• Wait for disturbance to subside.• Retry.

• Read errors caused by disc/servo problems.• Detect error.• Choose location for retry.• Retry.• Fail and interpolate.

© 2008 Wayne WolfOverheads for Computers as

Components 2nd ed. 17

Page 18: Multiprocessors

MPEG audio standards

• Layer 1:• Lossless compression of subbands +

optional simple masking model

• Layer 2:• More advanced masking model.

• Layer 3:• Additional processing for lower bit rates.

© 2008 Wayne WolfOverheads for Computers as

Components 2nd ed. 18

Page 19: Multiprocessors

MPEG audio rates

• Input sampling rates:• 32, 44.1, 48 kHz.

• Output bit rates:• 23, 48, 64, 96, 112, 128, 192, 256, 384

kbits/sec.

• Output can be mono, dual-channel (bilingual, etc.), stereo.

© 2008 Wayne WolfOverheads for Computers as

Components 2nd ed. 19

Page 20: Multiprocessors

Other standards

• Dolby Digital (AC-3):• Uses modified discrete cosine

transform.

• ATRAC (MiniDisc):• Uses subband + modified DCT.

• MPEG-2 AAC.

© 2008 Wayne WolfOverheads for Computers as

Components 2nd ed. 20

Page 21: Multiprocessors

MPEG Layer 1

• 384 samples/block at all frequencies.• Equals 8 ms at 48 kHz.

• Optional masking model.• Driven by separate FFT for better

accuracy.

© 2008 Wayne WolfOverheads for Computers as

Components 2nd ed. 21

Page 22: Multiprocessors

MPEG Layer 1 data frame

• Bit allocation codes specify word length in each subband.

• Scale factors give gain for each band.

header CRCbit

allocationscale

factorssubband samples

auxdata

© 2008 Wayne WolfOverheads for Computers as

Components 2nd ed. 22

Page 23: Multiprocessors

MPEG Layer 1 encoder

Filterbank

ChooseScale factor

Maskingmodel

requantize*

FFT

mux

0101..

© 2008 Wayne WolfOverheads for Computers as

Components 2nd ed. 23

Page 24: Multiprocessors

MPEG Layer 1 decoder

0101..

demux

Scalefactor

* *

Stepsize

Inversefilterbank

inversequantize

expand

© 2008 Wayne WolfOverheads for Computers as

Components 2nd ed. 24

Page 25: Multiprocessors

MP3

• Decoding is easier than encoding, but requires:• decompression;• filtering.

• Basic CD standard for data discs.• No standards for MP3 disc file

structure: player must understand Windows, Mac, Unix discs.

© 2008 Wayne WolfOverheads for Computers as

Components 2nd ed. 25

Page 26: Multiprocessors

Audio players

• Audio players may use flash, hard disk, or CD for mass storage.

• Decompression requires small amount of CPU:• 10% of ARM7.

• File system must be compatible (FAT).

© 2008 Wayne WolfOverheads for Computers as

Components 2nd ed. 26

Page 27: Multiprocessors

Digital still cameras

• DSC must determine exposure before taking picture.

• After taking picture:• Improve image

quality.• Compress.• Save as file.

© 2008 Wayne WolfOverheads for Computers as

Components 2nd ed. 27

Page 28: Multiprocessors

Digital still camera architecture

© 2008 Wayne WolfOverheads for Computers as

Components 2nd ed.

• DSC uses CPU for general-purpose processing, DSP for image processing.

• Internal memory buffers the passes on the image.

• Display is lower resolution than image sensor.• Image must be

downsampled.

28

Page 29: Multiprocessors

Image capture

• Before taking picture:• Determine

exposure.• Determine focus.• Optimize white

balance.

© 2008 Wayne WolfOverheads for Computers as

Components 2nd ed.

Bayer pattern

29

Page 30: Multiprocessors

Image processing

• Must perform basic processing to get usable picture:• Bayer->RGB interpolation.

• DSCs perform many functions formerly performed by photoprocessors for film:• Image sharpening.• Color balance.

© 2008 Wayne WolfOverheads for Computers as

Components 2nd ed. 30

Page 31: Multiprocessors

File management

• EXIF standard gives format for digital pictures:• Format of data in a file.• Directory structure.

• EXIF file includes:• Image (JPEG, etc.)• Thumbnail.• Metadata (camera type, date/time, etc.)

© 2008 Wayne WolfOverheads for Computers as

Components 2nd ed. 31