15
1 - 1 Swiss Federal Institute of Technology Computer Engineering and Networks Laboratory Embedded Systems 1. Introduction Lothar Thiele 1 - 2 Swiss Federal Institute of Technology Computer Engineering and Networks Laboratory Organization WWW: http://www.tik.ee.ethz.ch/tik/education/lectures/ES/ Lecture: Lothar Thiele, [email protected] Coordination: Jan Beutel, [email protected] References: P. Marwedel: Eingebettete Systeme (paperback), Springer Verlag, December 2011, ISBN: 978-94-007-0256-1. G.C. Buttazzo: Hard Real-Time Computing Systems. Springer Verlag, 2011. W. Wolf: Computers as Components – Principles of Embedded System Design. Morgan Kaufman Publishers, 2012. J. Teich: Digitale Hardware/Software Systeme, Springer Verlag, 2007. The slides contain material of J. Rabaey, K. Keuzer, Wayne Wolf, Peter Marwedel, Philip Koopman and from the above books of J. Teich, G.C. Buttazzo, W. Wolf and P. Marwedel.

Embedded Systems 1. Introduction€¦ · • Traffic control and communicating automobiles Embedded systems provide the basic technology. 1 - 28 Swiss Federal Institute of Technology

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Embedded Systems 1. Introduction€¦ · • Traffic control and communicating automobiles Embedded systems provide the basic technology. 1 - 28 Swiss Federal Institute of Technology

1 - 1Swiss FederalInstitute of Technology

Computer Engineeringand Networks Laboratory

Embedded Systems

1. Introduction

Lothar Thiele

1 - 2Swiss FederalInstitute of Technology

Computer Engineeringand Networks Laboratory

OrganizationWWW: http://www.tik.ee.ethz.ch/tik/education/lectures/ES/Lecture: Lothar Thiele, [email protected]: Jan Beutel, [email protected]: P. Marwedel: Eingebettete Systeme (paperback), Springer

Verlag, December 2011, ISBN: 978-94-007-0256-1. G.C. Buttazzo: Hard Real-Time Computing Systems. Springer

Verlag, 2011. W. Wolf: Computers as Components – Principles of Embedded

System Design. Morgan Kaufman Publishers, 2012. J. Teich: Digitale Hardware/Software Systeme, Springer

Verlag, 2007.

The slides contain material of J. Rabaey, K. Keuzer, Wayne Wolf, Peter Marwedel, Philip Koopman and from the above books of J. Teich, G.C. Buttazzo, W. Wolf and P. Marwedel.

Page 2: Embedded Systems 1. Introduction€¦ · • Traffic control and communicating automobiles Embedded systems provide the basic technology. 1 - 28 Swiss Federal Institute of Technology

1 - 3Swiss FederalInstitute of Technology

Computer Engineeringand Networks Laboratory

Communicating Embedded Systems

Example: BTnodes complete platform including OS

especially suited for pervasive computing applications

SensorActuator

1 - 4Swiss FederalInstitute of Technology

Computer Engineeringand Networks Laboratory

BTnode Platformgeneric platform for ad-hoc computing

complete platform including OS

especially suited for pervasive computing applications

Communication via Bluetooth

TransceiverData Interfaces

Microprocessor and Memory Batteries

2nd Radio

Page 3: Embedded Systems 1. Introduction€¦ · • Traffic control and communicating automobiles Embedded systems provide the basic technology. 1 - 28 Swiss Federal Institute of Technology

1 - 5Swiss FederalInstitute of Technology

Computer Engineeringand Networks Laboratory

Communicating Embedded Systems sensor networks (civil engineering, buildings, environmental

monitoring, traffic, emergency situations)

smart products, wearable/ubiquitous computing

MICS

1 - 6Swiss FederalInstitute of Technology

Computer Engineeringand Networks Laboratory

Communicating Embedded Systems

Page 4: Embedded Systems 1. Introduction€¦ · • Traffic control and communicating automobiles Embedded systems provide the basic technology. 1 - 28 Swiss Federal Institute of Technology

1 - 7Swiss FederalInstitute of Technology

Computer Engineeringand Networks Laboratory

PermaSense ProjectUniv. Zurich, Univ. Basel, ETH Zurich

1 - 8Swiss FederalInstitute of Technology

Computer Engineeringand Networks Laboratory

Page 5: Embedded Systems 1. Introduction€¦ · • Traffic control and communicating automobiles Embedded systems provide the basic technology. 1 - 28 Swiss Federal Institute of Technology

1 - 9Swiss FederalInstitute of Technology

Computer Engineeringand Networks Laboratory

Hardware

1 - 10Swiss FederalInstitute of Technology

Computer Engineeringand Networks Laboratory

Page 6: Embedded Systems 1. Introduction€¦ · • Traffic control and communicating automobiles Embedded systems provide the basic technology. 1 - 28 Swiss Federal Institute of Technology

1 - 11Swiss FederalInstitute of Technology

Computer Engineeringand Networks Laboratory

Real-Time Actuating and Sensingseismic/resistivity tomography

actuation andsensing

1 - 12Swiss FederalInstitute of Technology

Computer Engineeringand Networks Laboratory

Development in ES ExerciseLinux

GNU GCCAVR libcEclipse

BTNut OS

Page 7: Embedded Systems 1. Introduction€¦ · • Traffic control and communicating automobiles Embedded systems provide the basic technology. 1 - 28 Swiss Federal Institute of Technology

1 - 13Swiss FederalInstitute of Technology

Computer Engineeringand Networks Laboratory

Contents of Course1. Embedded Systems Introduction

10. Models2. Software Introduction 7. System Components

8. Communication3. Real-Time Models

4. Periodic/Aperiodic Tasks

5. Resource Sharing

9. Low Power Design

11. ArchitectureSynthesis

Software and Programming

HardwareProcessing andCommunication

6. Real-Time OS

12. Model Based Design

1 - 14Swiss FederalInstitute of Technology

Computer Engineeringand Networks Laboratory

Contents of Course1. Embedded Systems Introduction

10. Models2. Software Introduction 7. System Components

8. Communication3. Real-Time Models

4. Periodic/Aperiodic Tasks

5. Resource Sharing

9. Low Power Design

11. ArchitectureSynthesis

Software and Programming

HardwareProcessing andCommunication

6. Real-Time OS

12. Model Based Design

Page 8: Embedded Systems 1. Introduction€¦ · • Traffic control and communicating automobiles Embedded systems provide the basic technology. 1 - 28 Swiss Federal Institute of Technology

1 - 15Swiss FederalInstitute of Technology

Computer Engineeringand Networks Laboratory

Main reason for buying is not information processing

Embedded systems (ES) = information processing systems embedded into a larger product

Examples:

Embedded Systems 1

1 - 16Swiss FederalInstitute of Technology

Computer Engineeringand Networks Laboratory

Embedded Systems

external process

embedded system

human interface

sensors, actuators

Page 9: Embedded Systems 1. Introduction€¦ · • Traffic control and communicating automobiles Embedded systems provide the basic technology. 1 - 28 Swiss Federal Institute of Technology

1 - 17Swiss FederalInstitute of Technology

Computer Engineeringand Networks Laboratory

Examples of Embedded Systems

Car as an integrated control-, communication and information system.

ABS

gear box

motor control

climate control

information

1 - 18Swiss FederalInstitute of Technology

Computer Engineeringand Networks Laboratory

Examples of Embedded Systems

Consumer electronics, for example MP3 Audio, digital camera, home electronics, … .

sensors

actuators

user interface

processor

Page 10: Embedded Systems 1. Introduction€¦ · • Traffic control and communicating automobiles Embedded systems provide the basic technology. 1 - 28 Swiss Federal Institute of Technology

1 - 19Swiss FederalInstitute of Technology

Computer Engineeringand Networks Laboratory

Examples of Embedded Systems

Production systems

1 - 20Swiss FederalInstitute of Technology

Computer Engineeringand Networks Laboratory

Examples of Embedded Systems

Information systems, for example wireless communication (mobile phone, Wireless LAN, …), end-user equipment, router, …

Page 11: Embedded Systems 1. Introduction€¦ · • Traffic control and communicating automobiles Embedded systems provide the basic technology. 1 - 28 Swiss Federal Institute of Technology

1 - 21Swiss FederalInstitute of Technology

Computer Engineeringand Networks Laboratory

Characteristics of Embedded Systems (1)

Must be dependable: Reliability: R(t) = probability of system working correctly

provided that is was working at t=0

Maintainability: M(d) = probability of system working correctly d time units after error occurred.

Availability: probability of system working at time t

Safety: no harm to be caused

Security: confidential and authentic communication

Even perfectly designed systems can fail if the assumptions about the workload and possible errors turn out to be wrong.

Making the system dependable must not be an after-thought, it must be considered from the very beginning.

1 - 22Swiss FederalInstitute of Technology

Computer Engineeringand Networks Laboratory

Characteristics of Embedded Systems (2)

Must be efficient: Energy efficient

Code-size efficient (especially for systems on a chip)

Run-time efficient

Weight efficient

Cost efficient

Dedicated towards a certain application: Knowledge about behavior at design time can be used to minimize resources and to maximize robustness.

Dedicated user interface (no mouse, keyboard and screen).

Page 12: Embedded Systems 1. Introduction€¦ · • Traffic control and communicating automobiles Embedded systems provide the basic technology. 1 - 28 Swiss Federal Institute of Technology

1 - 23Swiss FederalInstitute of Technology

Computer Engineeringand Networks Laboratory

Characteristics of Embedded Systems (3)

Many ES must meet real-time constraints: A real-time system must react to stimuli from the controlled

object (or the operator) within the time interval dictated by the environment.

For real-time systems, right answers arriving too late are wrong.

„A real-time constraint is called hard, if not meeting that constraint could result in a catastrophe“ [Kopetz, 1997].

All other time-constraints are called soft.

A guaranteed system response has to be explained without statistical arguments.

1 - 24Swiss FederalInstitute of Technology

Computer Engineeringand Networks Laboratory

Characteristics of Embedded Systems (4)

Frequently connected to physical environment through sensors and actuators,

Hybrid systems (analog + digital parts).

Typically, ES are reactive systems:

„A reactive system is one which is in continual interaction

with is environment and executes at a pace determined by

that environment“ [Bergé, 1995]

Behavior depends on input and current state.

automata model often appropriate,

Page 13: Embedded Systems 1. Introduction€¦ · • Traffic control and communicating automobiles Embedded systems provide the basic technology. 1 - 28 Swiss Federal Institute of Technology

1 - 25Swiss FederalInstitute of Technology

Computer Engineeringand Networks Laboratory

Comparison

Embedded Systems Few applications that are

known at design-time.

Not programmable by end user.

Fixed run-time requirements (additional computing power not useful).

Criteria:

• cost

• power consumption

• predictability

• …

General Purpose Computing Broad class of applications.

Programmable by end user.

Faster is better.

Criteria:

• cost

• average speed

1 - 26Swiss FederalInstitute of Technology

Computer Engineeringand Networks Laboratory

“Typical” Architecture

Microprocessor• 4, 8, 16, 32, 4 bit bus• CISC, RISC, DSP• Integrated peripherals• Debug/Test Port• Caches• Pipeline• Multiprocessing Systems

DEBUG PortNon-volatile memory• EPROM, FLASH, DISK• Hybrid

Volatile Memory• DRAM, SRAM• Hybrid

Custom Devices• ASIC• FPGA• PAL

Standard Devices• I/O Ports• Peripheral Controllers

Communication Devices• Ethernet• RS-232• SCSI• Centronics• Proprietary

Microprocessor Bus• Custom• PCI• VME• PC-102

System Clocks• RTC circuitry• System clocks• Integrated in uC• Imported/Exported

Peripheral Bus

Software• Application Code• Driver Code / BIOS• Real Time Operating System• User Interface• Communications Protocol Stacks• C, C++, Assembly Language, ADA• Legacy Code

To O

uts

ide

Wo

rld

Page 14: Embedded Systems 1. Introduction€¦ · • Traffic control and communicating automobiles Embedded systems provide the basic technology. 1 - 28 Swiss Federal Institute of Technology

1 - 27Swiss FederalInstitute of Technology

Computer Engineeringand Networks Laboratory

Future of Embedded Systems

Embedded Systems overtook market of PCs.

Ubiquitous and pervasive computing: Information anytime, anywhere; building ambient intelligence

into our environment; internet of things:• Wearable computers

• “Smart Labels” on consumer products

• Intelligent buildings

• Environmental Monitoring

• Traffic control and communicating automobiles

Embedded systems provide the basic technology.

1 - 28Swiss FederalInstitute of Technology

Computer Engineeringand Networks Laboratory

Project Examples

wearable computer

Page 15: Embedded Systems 1. Introduction€¦ · • Traffic control and communicating automobiles Embedded systems provide the basic technology. 1 - 28 Swiss Federal Institute of Technology

1 - 29Swiss FederalInstitute of Technology

Computer Engineeringand Networks Laboratory

Project Examples

SecurityEnvironment monitoring and controlObject taggingIdentification

Dense network of Dense network of sensor and monitor nodessensor and monitor nodes

The Obvious ChoiceThe Obvious Choice -The Smart Home and Network AppliancesThe Smart Home and Network Appliances

1 - 30Swiss FederalInstitute of Technology

Computer Engineeringand Networks Laboratory

Trends …

Higher degree of integration Microprocessor, microcontroller

memory + processor + I/O-units + (wireless) communication

System-on-chip (SoC)

Multiprocessor Systems on a Chip (MPSoC)

Software increasing (amount and complexity).

Hardware/software co-design gets increasing importance.

Low power constraints (portable or unattended devices).

Communicating embedded systems, very often wireless.