ee249: embedded system designembedded.eecs.berkeley.edu/research/hsc/class.f03/ee249/...design,...

70
EE249:Fall03 EE249: Embedded EE249: Embedded System Design System Design Alberto Sangiovanni Alberto Sangiovanni - - Vincentelli Vincentelli Department of EECS, Department of EECS, University of California at University of California at Berkeley Berkeley

Upload: others

Post on 06-Jul-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

EE249:Fall03

EE249: Embedded EE249: Embedded System DesignSystem Design

Alberto SangiovanniAlberto Sangiovanni--VincentelliVincentelli

Department of EECS, Department of EECS, University of California at University of California at BerkeleyBerkeley

Page 2: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

2EE249Fall03

Carly Fiorina, CEO, Hewlett Packard Corporation

“I believe we are now entering the Renaissance phase of the Information Age, where creativity and ideas are the new currency, and invention is a primary virtue, where technology truly has the power to transform

lives, not just businesses, where technology can help us solve fundamental problems.”

Page 3: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

3EE249Fall03

“Client”

“Server”

eMerging Societal-Scale Systems

New System ArchitecturesNew Enabled ApplicationsDiverse, Connected, Physical,

Virtual, Fluid

Clusters

Massive Cluster

Gigabit Ethernet

MEMSBioMonitoring

Scalable, Reliable,Secure Services

InformationAppliances

Page 4: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

4EE249Fall03

Embedded Software Systems

• Computational– but not first-and-foremost a computer

• Integral with physical processes– sensors, actuators

• Reactive– at the speed of the environment

• Heterogeneous– hardware/software, mixed

architectures• Networked

– shared, adaptive

Source: Edward A. Lee

Page 5: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

5EE249Fall03

Observations

• We are on the edge of a revolution in the way electronics products are designed

• System design is the key (also for IC design!)

– Start with the highest possible level of abstraction (e.g. control algorithms)

– Establish properties at the right level

– Use formal models

– Leverage multiple “scientific” disciplines

Page 6: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

6EE249Fall03

Course overview

Managing Complexity

Orthogonalizingconcerns

Behavior Vs. Architecture

Computation Vs. Communication

Page 7: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

7EE249Fall03

Behavior Vs. Architecture

SystemSystemArchitectureArchitecture

MappingMapping

Flow To ImplementationFlow To Implementation

3

4

2

Assign functionality to arch elements

HW/SW partitioning,Scheduling

Comm. and comp. resources

SystemSystemBehaviorBehavior

Refinement

1Models of

Computation

Quantity estimation

Synthesis: HW and

SW

Page 8: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

8EE249Fall03

Behavior Vs. Communication

• Clear separation between functionality and interaction model

• Maximize reuse in different environments, change only interaction model

ETROPOLIS

PIG: Protocol interface generation

PEARLS: Latency insensitive protocols

Page 9: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

9EE249Fall03

Administration

• Office hours: Alberto’s : Tu-Th 12:30pm-2pm or (better) by appointment (2-4882)

• Teaching Assistant:

– Alessandro PINTO, [email protected]

Page 10: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

10EE249Fall03

Grading

• Grading will be assigned on:

– Homework (~30%)

– Project (~50%)

– Reading assignments (~20%)

• There will be approx. 7 homework (due 2 weeks after assignment) and 6 reading assignments

Page 11: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

11EE249Fall03

Discussion sections

• Lab section (Th. 4-6):

– tool presentations

• Discussion Session (Tu. 5-6)

– students’ presentation of selected papers

– Each student will be required to fill in a questionnaire in class for each discussion session

– Each student (in groups of 2-3 people) will have to make an oral presentation once during the class

• Auditors are OK but please register as P-NP

Week Lab Sections Homeworks1 - - - - - -2 Tool presentation HW13 Discussion4 Tool presentation HW25 Discussion6 Tool presentation HW37 Discussion8 Tool presentation HW49 Discussion10 Tool presentation HW511 Discussion12 Tool presentation HW613 Discussion14 HW715

Page 12: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

12EE249Fall03

Links

• Class

– http://www-cad.eecs.berkeley.edu/~polis/class/

• On the left frame, go to Start EE249!

– Subscribe to the mailing list

– Fill up the questionnaire

• There is a message board for communication

Page 13: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

13EE249Fall03

Outline of the course

• Part 1. Introduction: Future of Information Technology, System Design, IP-based Design, System-on-Chip and Industrial Trends

• Part 2. Design Methodology (Platform-based Design)

• Part 3. Functional Design: Models of Computation

• Part 4. Architecture Design: Capture and Modeling

• Part 5. Exploration and Mapping

• Part 6. Implementation Verification and Synthesis, Hardware and Software

Page 14: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

14EE249Fall03

Outline for the Introduction

• Examples of Embedded Systems

• Their Impact on Society

• Design Challenges

• Embedded Software and Control

Page 15: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

15EE249Fall03

Electronics and the Car

•More than 30% of the cost of a car is now in Electronics•90% of all innovations will be based on electronic systems

Page 16: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

16EE249Fall03

Page 17: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

17EE249Fall03

Page 18: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

18EE249Fall03

Page 19: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

19EE249Fall03

Elevators

1. EN: GeN2-Cx 2. ANSI:Gen2/GEM

3. JIS: GeN2-JIS

Page 20: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

20EE249Fall03

Segments

YesYesYesRemote Service

DesignUtility, DesignUtilityMarket

MedHigh, MedHighPrice Sensitivity

EN, ANSI, JIS

Advanced Perf.

Advanced FM

Hi-End Dispatch

< 15 m/s

1 – 8 cars

< 128 stops

Type 3

EN, ANSI, JISEN, ANSI, JISCode

Limited Perf.

Advanced FM

Basic Perf.

Basic FMMotion Features

AdvancedBasicOp Features

< 4 m/s< 4m/s

<= .75 m/s (ANSI)Speed

1 – 8 carsSimplexGroup Size

< 64 stops< 20 stopsOpportunity: < 6 stops (20m)

Stops/Rise

Type 2Type 1Attribute

Page 21: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

21EE249Fall03

Embedded Systems

• Computational– but not first-and-foremost a computer

• Integral with physical processes– sensors, actuators

• Reactive– at the speed of the environment

• Heterogeneous– hardware/software, mixed

architectures• Networked

– shared, adaptive

Source: Edward A. Lee

Page 22: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

22EE249Fall03

Common Situation in Industry

• Different hardware devices and architectures

• Increased complexity

• Non-standard tools and design processes

• Redundant development efforts

• Increased R&D and sustaining costs

• Lack of standardization results in greater quality risks

• Customer confusion

Page 23: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

23EE249Fall03

Outline for the Introduction

• Examples of Embedded Systems

• Their Impact on Society

• Design Challenges

• Embedded Software and Control

Page 24: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

24EE249Fall03

The Killer Applications?

• Energy Conservation

• Emergency Response and Homeland Defense

• Transportation Efficiency

• Monitoring Health Care

• Land and Environment

• Education

Page 25: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

25EE249Fall03

Smart Dust

1-2 mm

Active beam steering laser comm.MEMS/optical quality polysilicon

Laser diodeIII-V process

Passive CCR comm.MEMS/polysilicon

Analog I/O, DSP, ControlCOTS CMOSSensor

MEMS/bulk, surface, ...Power capacitorMulti-layer ceramic

Solar cellCMOS or III-V

Thick film batterySol/gel V2O5

Source: K. Pister, Berkeley

Page 26: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

26EE249Fall03

February 2000 February 2001

February 2002August 2001

Page 27: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

27EE249Fall03

Energy Scavenging: Vibration

Source: P. Wright, Berkeley

Page 28: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

28EE249Fall03

Wireless Sensor Networks

The use of wireless networks of embedded computers “could well dwarf previous milestones in the information revolution” - National Research Council Report: Embedded, Everywhere”, 2001.

Berkeley Dust Mote1 Berkeley Mote1

1From Pister et al., Berkeley Smart Dust Project

Page 29: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

29EE249Fall03

Applications

Distributed Bio-monitoring– Wristband bio-monitors for chronic illness and the elderly

– Monitored remotely 24x7x365

– Emergency response and potential remote drug delivery

– Cardiac Arrest

– Raise out-of-hospital survival rate from 6% to 20% => save 60K lives/year

Page 30: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

30EE249Fall03

Silicon-Processed Micro-needles• Neural probe with fluidchannel for bio-medical appl.

• Two micro-needles penetratingporterhouse (New-York) steak

Lin and Pisano, IEEE/ASME J. of MEMS, Vol. 8, pp 78-84, 1999

Page 31: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

31EE249Fall03

Applications

Saving Energy– Smart Buildings that adjust to inhabitants

– Make energy deregulation work via real-time metering and pricing

– Large potential savings in energy costs: for US commercial buildings

– Turning down heat, lights saves up to $55B/year, 35M tons C emission/year

– 30% of energy bill is from “broken systems”

Page 32: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

32EE249Fall03

Smart Buildings

•Task/ambient conditioning systems allow thermal conditioning in small, localized zones, to be individually controlled by building occupants , creating “micro-climates within a building”

• Other functions: security, identification and personalization, object tagging, seismic monitoring

Dense wireless network of sensor, monitor, and actuator

nodes

•Disaster mitigation, traffic management and control• Integrated patient monitoring, diagnostics, and drug administration• Automated manufacturing and intelligent assembly• Toys, Interactive Musea

Dense wireless network of Dense wireless network of sensor, monitor, and actuator sensor, monitor, and actuator

nodesnodes

•Disaster mitigation, traffic management and control• Integrated patient monitoring, diagnostics, and drug administration• Automated manufacturing and intelligent assembly• Toys, Interactive Musea

Page 33: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

33EE249Fall03

Additional Applications

• Environmental Monitoring

– Monitor air quality near highways to meet Federal Guidelines

– Mutual impact of urban and agricultural areas

– Monitor water shed response to climate events and land use changes

Page 34: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

34EE249Fall03

Applications

Disaster Mitigation (natural and otherwise)– Monitor buildings, bridges, lifeline systems to assess damage after

disaster

– Provide efficient, personalized responses

– Must function at maximum performance under very difficult circumstances

Page 35: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

35EE249Fall03

What is Disaster Response?

LASER link

Radio link

Radio link

• Sensors installed near critical structural points

• Sensor measure motion, distinguish normal deterioration and serious damage

• Sensors report location, kinematics of damage during and after an extreme event– Guide emergency personnel

– Assess structural safety without deconstructing building

Page 36: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

36EE249Fall03

Seismic Monitoring of Buildings: Before CITRIS

$8,000 each

Page 37: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

37EE249Fall03

Seismic Monitoring of Buildings: With CITRIS Wireless Motes

$70 each

Page 38: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

38EE249Fall03

Stability of Masada North Face: The Foundations of King Herod’s Palace

Page 39: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

39EE249Fall03

Additional Applications

• Transportation Systems– Use SISs to improve the efficiency and utility of highways while

reducing pollution

– Improve carpooling efficiency using advanced scheduling

– Improve freeway utilization by managing traffic flows

– Large potential savings in commuter time, lost wages, fuel, pollution: for CA

– 15 minutes/commuter/day => $15B/year in wages

– $600M/year in trucking costs, 150K gallons of fuel/day

• Distributed Education– Smart Classrooms

– Lifelong Learning Center for professional education

Page 40: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

40EE249Fall03

Discussion

• What are the most challenging aspects of these applications (and how does a company make money) ?

– Interaction mechanisms: sensors, actuators, wireless networks

– Reliability and survivability

– Infrastructure

– Services

– Legislation

– ……

Page 41: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

41EE249Fall03

Picoradio Sensor Networks (BWRC)

Control Environmental parameters (temperature, humidity…)Minimize Power consumptionCheap (<0.5$) and small ( < 1 cm3)

Large numbers of nodes — between 0.05 and 1 nodes/m2

Limited operation range of network — maximum 50-100 mLow data rates per node — 1-10 bits/sec average Low mobility (at least 90% of the nodes stationary)

sensoractuator

controller

• Key challenges

– Satisfy tight performance and cost constraints (especially powerconsumption)

– Identify Layers of Abstraction (Protocol Stack)

– Develop distributed algorithms (e.g. locationing, routing) for ubiquitous computing applications

– Design Embedded System Platform to implement Protocol Stack efficiently

Page 42: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

42EE249Fall03

Page 43: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

43EE249Fall03

Technology Generations of Information Assurance

Intrusions will Occur

Some Attacks will Succeed

Cryptography

Trusted Computing Base

Access Control & Physical Security

Multiple Levels of Security

2nd Generation2nd Generation(Detect Intrusions, (Detect Intrusions,

Limit Damage)Limit Damage) Firewalls Intrusion Detection SystemsBoundary Controllers VPNs

PKI

3rd Generation(Operate Through Attacks) Big Board View of

AttacksReal-Time Situation

Awareness& Response

Intrusion Tolerance

Graceful Degradati

on

Hardened Core

Functionality

Performance

Security

1st Generation1st Generation(Prevent Intrusions)(Prevent Intrusions)

Page 44: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

44EE249Fall03

Secure Network Embedded SystEms(SENSE)

• Networked embedded systems and distributed control creates a new generation of future applications: new infrastructures

• We need to think about how to prevent the introduction of vulnerabilities via this exciting technology

• Security, Networking, Embedded Systems

Page 45: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

45EE249Fall03

Outline for the Introduction

• Examples of Embedded Systems

• Their Impact on Society

• Design Challenges

• Embedded Software and Control

Page 46: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

46EE249Fall03

Interfaces

Fabrics

Manufacturing

Implementation

System Design

IP

Design Science

Opportunity: Electronic Systems Design Chain

Page 47: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

47EE249Fall03

Disaggregation:Complex Design Chain Management

Supply Chain• Movement of tangible goods from

sources to end market• Supply Chain Management is $3.8B

market projected to be $20B in 2005

Design Chain• Movement of technology

(IP and knowledge) from sources to end market

• Design Chain Management is an untapped market

SemiconductorCompanies

SystemCompanies

Foundries System Test Equipment

Contract Manufacturing

Design Services

Embedded Software

Software Development Tools

EDA

Processor & Hardware IP

Process & Yield Services

Fabrication Equipment

IC Packaging & Test

Mechanical CAD

SubsystemCompanies

Page 48: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

48EE249Fall03

Supply Chain: Design Roles-> Methodology->Tools

Methodology

Design Roles

Tools

Page 49: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

49EE249Fall03

Automotive Supply Chain:Car Manufacturers

Product Specification & Architecture Definition(e.g., determination of Protocols and Communication standards)System Partitioning and Subsystem SpecificationCritical Software DevelopmentSystem Integration

Page 50: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

EE249Fall03

Electronics for the Car: A Distributed System

InformationSystems

Tele

mat

ics

Fau

lt T

oler

ant

Fail

Safe

Fau

ltFu

nct

ion

al

Body Electronics

Dri

vin

g an

d V

ehic

leD

ynam

ic F

un

ctio

ns

Mobile Communications Navigation

FireWall

Access to WWWDAB

GateWay

GateWay

Theft warning

Door Module Light Module

AirConditioning

Shift by Wire

EngineManagement

ABS

Steer by Wire

Brake by Wire

MOSTMOSTFirewireFirewire

CANCANLinLin

CANTTCAN

FlexRay

Today, morethan 80Microprocessors and millions of lines of code

Bod

yFu

nct

ion

s

Body Electronics

Page 51: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

51EE249Fall03

Automotive Supply Chain:Tier 1 Subsystem Providers

1 Transmission ECU2 Actuation group3 Engine ECU4 DBW5 Active shift display6/7 Up/Down buttons 8 City mode button9 Up/Down lever10 Accelerator pedal

position sensor11 Brake switch

Subsystem Partitioning Subsystem IntegrationSoftware Design: Control Algorithms, Data ProcessingPhysical Implementation and Production

Page 52: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

52EE249Fall03

Automotive Supply Chain:Subsystem Providers

µControllers Library

OSEKRTOS

OSEKCOMI/O drivers & handlers

(> 20 configurable modules)

Application Programming Interface

Boot LoaderSys. Config.

TransportKWP 2000

CCP

ApplicationSpecificSoftware

Speedometer

Tachometer

Water tem

p.

Speedometer

Tachometer

Odom

eter---------------

ApplicationLibraries

CustomerLibraries

Application Platform layer(≅ 10% of total SW)

Application Platform layer(≅ 10% of total SW)

SW Platform layer(> 60% of total SW)SW Platform layer(> 60% of total SW)

HW layerHW layer Nec78kNec78k HC12HC12HC08HC08 H8S26H8S26 MB90MB90

Platform Integration: “firmware” and “glue software”Software Design: “Application”

Page 53: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

53EE249Fall03

Automotive Supply Chain:Platform & IP Providers

Application Platform layer(≅ 10% of total SW)

HW layerHW layer

SW Platform layer(> 60% of total SW)SW Platform layer(> 60% of total SW)

Application Platform layer(≅ 10% of total SW)

µControllers Library

OSEKRTOS

I/O drivers & handlers(> 20 configurable modules)

Application Programming Interface

Boot LoaderSys. Config.

TransportKWP 2000

CCP

ApplicationSpecificSoftware

Speedometer

Tachometer

Water tem

p.

Speedometer

Tachometer

Odom

eter---------------

ApplicationLibraries

CustomerLibraries

OSEKCOM

Nec78kNec78k HC12HC12HC08HC08 H8S26H8S26 MB90MB90

“Software” platform: RTOS and communication layer“Hardware” platform: Hardware and IO drivers

Page 54: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

54EE249Fall03

Outline for the Introduction

• Examples of Embedded Systems

• Their Impact on Society

• Design Challenges

• Embedded Software and Control

Page 55: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

55EE249Fall03

How Safe is Our Real-Time Software?

Page 56: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

56EE249Fall03

Computing for Embedded Systems

Imag

e “b

orro

wed”

fro

m a

n Io

meg

a ad

vert

isem

ent

for

Y2K

soft

ware

and

dis

k dr

ives

, Sci

enti

fic

Amer

ican

, Sep

tem

ber

1999

.

Page 57: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

57EE249Fall03

Mars, December 3, 1999Crashed due to un-initialized variable

Page 58: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

58EE249Fall03

$4 billion development effort40-50% system integration & validation cost

Page 59: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

59EE249Fall03

Complexity, Quality, & Time To Market today

Memory

Lines Of Code

Changing Rate

Dev. Effort

Validation Time

Time To Market

INSTRUMENTCLUSTER

Productivity

Residual DefectRate @ End Of Dev

256 Kb

50.000

3 Years

40 Man-yr

5 Months

24 Months

PWT UNIT

6 Lines/Day

3000 Ppm

128 Kb

30.000

2 Years

12 Man-yr

1 Month

18 Months

BODY GATEWAY

10 Lines/Day

2500 ppm

184 Kb

45.000

1 Year

30 Man-yr

2 Months

12 Months

6 Lines/Day

2000ppm

8 Mb

300.000

< 1 Year

200 Man-yr

2 Months

< 12 Months

TELEMATICUNIT

10 Lines/Day*

1000 ppm

* C++ CODE FABIO ROMEO, Magneti-MarelliDAC, Las Vegas, June 20th, 2001

Page 60: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

60EE249Fall03

What About Real Time?

“Make it faster!”

Page 61: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

61EE249Fall03

Software Architecture Today

Poor common infrastructure. Weak specialization of functions. Poor resource management. Poor planning.

Page 62: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

62EE249Fall03

Design “Practice”

Page 63: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

63EE249Fall03

Design Science: Build upon Solid Foundations

Page 64: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

64EE249Fall03

Software Architecture Tomorrow?

Page 65: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

65EE249Fall03

The Goal (CHESS Project)

• To create a modern computational systems science and systems design practice with

– Concurrency

– Composability

– Time

– Hierarchy

– Heterogeneity

– Resource constraints

– Verifiability

– Understandability

Page 66: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

66EE249Fall03

A Traditional Systems Science –Feedback Control Systems

• Models of continuous-time dynamics

• Stability analysis

• But not accurate for software controllers

Page 67: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

67EE249Fall03

Discretized Model –A Step Towards Software

• Numerical integration techniques provided ways to get from the continuous idealizations to computable algorithms.

• Discrete-time signal processing techniques offer the same sophisticated stability analysis as continuous-time methods.

• But it’s still not accurate for software controllers

Page 68: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

68EE249Fall03

Hybrid Systems –Reconciliation of Continuous & Discrete

• But it’s still not accurate for software controllers

Page 69: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

69EE249Fall03

Timing in Software is More Complex Than What the Theory Deals With

An example (Jie Liu) models two controllers sharing a CPU under an RTOS. Under preemptive multitasking, only one can be made stable (depending on the relative priorities). Under non-preemptive multitasking, both can be made stable.

Where is the theory for this?

Page 70: EE249: Embedded System Designembedded.eecs.berkeley.edu/research/hsc/class.F03/ee249/...Design, IP-based Design, System-on-Chip and Industrial Trends • Part 2. Design Methodology

70EE249Fall03

Foundational Theory Research …

• The science of computation has systematically abstracted away the physical world. The science of physical systems has systematically ignored computational limitations.Embedded software systems, however, engage the physical world in a computational manner.

• It is time to construct a Hybrid Systems Science that is simultaneously computational and physical. Time, concurrency, robustness, continuums, and resource management must be remarried to computation.