Introduction To Embedded Systems - Sungkyunkwan University

Transcription

Introduction toEmbeddedSystemsJin-Soo Kim (jinsookim@skku.edu)Computer Systems LaboratorySungkyunkwan Universityhttp://csl.skku.edu

Embedded Systems EverywhereICE3028: Embedded Systems Design Spring 2016 Jin-Soo Kim (jinsookim@skku.edu)2

What are Embedded Systems?

Definition Embedded System (ES):any device that includes a programmable computerbut is not itself a general-purpose computer. Take advantage of application characteristics to optimize thedesignICE3028: Embedded Systems Design Spring 2016 Jin-Soo Kim (jinsookim@skku.edu)4

Embedding a memICE3028: Embedded Systems Design Spring 2016 Jin-Soo Kim (jinsookim@skku.edu)5

Where are the CPUs? Estimated 98% of 8 billionCPUs produced in 2000used for embeddedapplications Smartphone shipments(101M) surpass PCs(2010Q4)Direct2%Robots6%Vehicles12%8.5B Partsper YearSource: DARPA/Intel (Tennenhouse)ICE3028: Embedded Systems Design Spring 2016 Jin-Soo Kim (jinsookim@skku.edu)6

Embedded Processors Microcontroller (μC or MCU) A small computer on a single IC containing aprocessor core, memory, and I/O peripherals Microprocessor A general-purpose CPU in a single chip SoC (System-on-a-Chip) More integration than MCU Mostly, require external memoryICE3028: Embedded Systems Design Spring 2016 Jin-Soo Kim (jinsookim@skku.edu)7

Early History (1) MIT Whirlwind computer(Late 1940’s) Originally designed tocontrol a flight simulatorfor training bomber crews The first computer thatoperated in real time 5000 vacuum tubesICE3028: Embedded Systems Design Spring 2016 Jin-Soo Kim (jinsookim@skku.edu)8

Early History (2) Intel 4004 (1971) The first microprocessor (4-bit)Originally designed for use in a calculatorThe first complete CPU on one chipThe first commercially available microprocessor2300 transistors @ 108KHzICE3028: Embedded Systems Design Spring 2016 Jin-Soo Kim (jinsookim@skku.edu)9

Early History (3) Automobiles used microprocessor-based enginecontrollers starting in 1970’s Control fuel/air mixture, engine timing, etc. Multiple modes of operation: warm-up, cruise, hill climbing,etc. Provides lower emissions, better fuel efficiencyICE3028: Embedded Systems Design Spring 2016 Jin-Soo Kim (jinsookim@skku.edu)10

KeyboardICE3028: Embedded Systems Design Spring 2016 Jin-Soo Kim (jinsookim@skku.edu)11

MouseICE3028: Embedded Systems Design Spring 2016 Jin-Soo Kim (jinsookim@skku.edu)12

Hard Disk DriveICE3028: Embedded Systems Design Spring 2016 Jin-Soo Kim (jinsookim@skku.edu)13

Digital Still CameraCanon EOS3 uses three microprocessors for auto-focus, etc. (1998)ICE3028: Embedded Systems Design Spring 2016 Jin-Soo Kim (jinsookim@skku.edu)14

iPhone 5SApple M7Co-processorApple A7Application Processor &1GB LPDDR3 DRAMQualcomm MDM9615MLTE ModemQualcomm WTR1605LLTE/HSPA /CDMA2K/TDSCDMA/EDGE/GPSTransceiverApple 338S1216Power Management ICTriQuintTQM6M6224Dual-bandPA duplexerTI reenControllerSK Hynix 16GBNAND FlashICE3028: Embedded Systems Design Spring 2016 Jin-Soo Kim (jinsookim@skku.edu)Qualcomm PM8018 RFPower Management IC15

Digital TVProgrammable CPUs hardwired logic for video/audio decode, etc.ICE3028: Embedded Systems Design Spring 2016 Jin-Soo Kim (jinsookim@skku.edu)16

Automobile A high-end automobile 100 microprocessors 4-bit microcontrollerchecks seat belt Microcontrollers rundashboard devices 16/32-bitmicroprocessorcontrols engineICE3028: Embedded Systems Design Spring 2016 Jin-Soo Kim (jinsookim@skku.edu)17

Fitbit FlexSTMicroelectronics 32L151C6Ultra Low Power ARM Cortex M3MicrocontrollerCharger IC: TI BQ24040Accelerometer IC?Nordic Semiconductor nRF8001Bluetooth Low Energy ICSource: https://www.ifixit.com/Teardown/Fitbit Flex Teardown/16050ICE3028: Embedded Systems Design Spring 2016 Jin-Soo Kim (jinsookim@skku.edu)18

DJI Phantom 2 DroneSource: one-from-dji.htmlICE3028: Embedded Systems Design Spring 2016 Jin-Soo Kim (jinsookim@skku.edu)19

Solid State Drive (SSD)ICE3028: Embedded Systems Design Spring 2016 Jin-Soo Kim (jinsookim@skku.edu)20

Want More? You name it!Anti-lock brakesAuto-focus camerasAutomatic teller machinesAutomatic toll systemsAutomatic transmissionAvionic systemsBattery chargersCamcordersCell phonesCell-phone base stationsCordless phonesCruise controlCurbside check-in systemsDigital camerasDisk drivesElectronic card readersElectronic instrumentsElectronic toys/gamesFactory controlFax machinesFingerprint identifiersHome security systemsLife-support systemsMedical testing systemsModemsMPEG decodersNetwork cardsNetwork switches/routersOn-board navigationPagersPhotocopiersPoint-of-sale systemsPortable video gamesPrintersSatellite phonesScannersSmart ovens/dishwashersSpeech recognizersStereo systemsTeleconferencing systemsTelevisionsTemperature controllersTheft tracking systemsTV set-top boxesVCR’s, DVD playersVideo game consolesVideo phonesWashers and dryersAnd the list goes on and on ICE3028: Embedded Systems Design Spring 2016 Jin-Soo Kim (jinsookim@skku.edu)21

Challenges

ES Characteristics (1) Single-functioned Executes a single program, repeatedly Sophisticated functionality Often have to run sophisticated algorithms or multiplealgorithms– Cell phone, laser printer, digital TV, etc. Often provide sophisticated user interfacesICE3028: Embedded Systems Design Spring 2016 Jin-Soo Kim (jinsookim@skku.edu)23

ES Characteristics (2) Reactive and real-time operation:Must finish operations by deadlines Continually reacts to changes in the systems environment Hard real-time: missing deadline causes failure Soft real-time: missing deadline results in degradedperformance Many systems are multi-rate:Must handle operations at widely varying rateICE3028: Embedded Systems Design Spring 2016 Jin-Soo Kim (jinsookim@skku.edu)24

ES Characteristics (3) Low cost Manufacturing cost– The monetary cost of manufacturing each copy NRE (Non-Recurring Engineering) cost– The one-time monetary cost of designing the system Many embedded systems are mass-market items that musthave low manufacturing cost Limited memory, microprocessor power, etc.ICE3028: Embedded Systems Design Spring 2016 Jin-Soo Kim (jinsookim@skku.edu)25

ES Characteristics (4) Low power Power consumption is critical in battery-powered devices Excessive power consumption increases system cost even inwall-powered devicesICE3028: Embedded Systems Design Spring 2016 Jin-Soo Kim (jinsookim@skku.edu)26

ES Characteristics (5) Designed to tight deadlines by small teams Often designed by a small team of designers Often must meet tight deadlines– 6-month time-to-market is common– Can’t miss back-to-school window for calculator Many design alternatives Hard to develop and debugICE3028: Embedded Systems Design Spring 2016 Jin-Soo Kim (jinsookim@skku.edu)27

Challenges in ES Design (1) How much hardware do we need? Powerful CPU? Big memory? How do we meet our deadlines? Faster hardware or cleverer software? How do we minimize power? Turn off unnecessary logic? Reduce memory accesses? How do we design for upgradeability? e.g. Evolution Kit in Samsung Digital TVs Time-to-market?ICE3028: Embedded Systems Design Spring 2016 Jin-Soo Kim (jinsookim@skku.edu)28

Challenges in ES Design (2) Does it really work? Is the specification correct?Does the implementation meet the spec?How do we test for real-time characteristics?How do we test on real data?Does it work reliably? How do we work on the system? Limited observability and controllability Restricted development environmentsICE3028: Embedded Systems Design Spring 2016 Jin-Soo Kim (jinsookim@skku.edu)29

Challenges in ES Design (3) Optimizing design metrics Improving one may worsen others Expertise with both software and hardware is needed tooptimize design metrics A designer must becomfortable with variousPowertechnologies in order tochoose the best for a givenPerformanceapplication and constraintsSizeNRE costICE3028: Embedded Systems Design Spring 2016 Jin-Soo Kim (jinsookim@skku.edu)30

ICE3028: Embedded Systems Design Spring 2016 Jin-Soo Kim (jinsookim@skku.edu) 25 ES Characteristics (3) Low cost Manufacturing cost -The monetary cost of manufacturing each copy NRE (Non-Recurring Engineering) cost -The one-time monetary cost of designing the system Many embedded systems are mass-market items that must