24.07.2013 Views

MEH531 Gömülü Sistemler - KULIS

MEH531 Gömülü Sistemler - KULIS

MEH531 Gömülü Sistemler - KULIS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>MEH531</strong> <strong>Gömülü</strong> <strong>Sistemler</strong><br />

Ders Saati: Perşembe – 13:00 – 15:50 (EHMB – YL Dersliği)<br />

Öğretim Üyesi: Doç.Dr. Oğuzhan Urhan , urhano@ieee.org<br />

- 1 -<br />

Graphics:<br />

© Aleexandra<br />

Noolte,<br />

Gesinee<br />

Marwedel,<br />

2003


İzlence<br />

İçerik: <strong>Gömülü</strong> sistemlere giriş, mikroişlemci,<br />

mikrodenetleyici kavramları, 8-bitlik (PIC), 16-bitlik<br />

(MSP430) ve 32-bitlik (ARM) mimarilerin örnek işlemciler ile<br />

ele l alınması, l SSayısal liişaret tiişleyiciler l i il (DSP) ve mimarileri, i il i<br />

System on Chip (SoC) tasarım, bus haberleşmesi ve bazı<br />

seri haberleşme ş protokolleri p ( (I2C, , USB, , IrDA), ), güç g ç yönetimi, y ,<br />

<strong>Gömülü</strong> yazılım geliştirme, kod optimizasyonu, gerçek<br />

zamanlı scheduling, Ağa bağlı sistemler, Uygulamalar.<br />

Değerlendirme<br />

Ders için ara ve yıl sonu sınavları yapılacaktır<br />

yapılacaktır.<br />

Değerlendirmenin önemli kısmında yapılacak uygulama<br />

projeleri dikkate alınacaktır.<br />

- 2 -


İzlence<br />

Uygulama Projeleri Hakkında:<br />

BBu çalışma l kkapsamında d hher bi bir öğ öğrencinin i i bi bir gömülü ö ülü sistemi i t i<br />

pratik olarak gerçekleştirilmesi beklenmektedir. Bu amaçla 3 hafta<br />

içinde haftalık hedefler içeren bir proje planı sunması<br />

gerekmektedir. Son tarih 14 Ekim 2010. Her öğrenci ile en geç 2<br />

haftada bir birebir görüşülerek proje, proje planı doğrultusunda<br />

değerlendirilecektir.<br />

ğ<br />

Kaynaklar:<br />

[1] W. Wolf, “Computers as Components, Second Edition: Principles of<br />

Embedded Computing System Design,” Morgan Kaufmann, 2008.<br />

[2] P. Marwedel, “Embedded System Design”, ISBN 1-4020-7690-8, Kluwer<br />

Academic Publishers, 2003.<br />

[3] F. Vahid, T. Givargis, “Embedded System Design: A Unified<br />

Hardware/Software Introduction”, ISBN 0-471-38678-2, Wiley and Sons,<br />

2002.<br />

- 3 -


According to forecasts characterized<br />

by y the terms such as<br />

Post-PC era<br />

Disappearing computer<br />

Ubiquitous computing<br />

Pervasive computing<br />

Ambient intelligence g<br />

Embedded systems<br />

Future of IT?<br />

preface<br />

- 4 -


Embedded Systems<br />

Embedded systems (ES) = information processing<br />

systems t embedded b dd d into i t a larger l product d t<br />

Main reason for buying is not information processing<br />

- 5 -


Embedded systems<br />

and ubiquitous computing<br />

Ubiquitous computing: Information anytime, anywhere.<br />

Embedded systems provide fundamental technology.<br />

UMTS,<br />

Ist.gif g<br />

- 6 -


• Automotive electronics<br />

• Aircraft electronics<br />

• Trains<br />

• Telecommunication<br />

Application areas (1)<br />

1.2 Application areas<br />

- 7 -


• Medical systems<br />

e.g. “artificial eye”<br />

• Blood Pressure Monitors<br />

Application areas (2)<br />

[www.dobelle.com]<br />

- 8 -


• Military applications<br />

• Authentication<br />

Application areas (3)<br />

http://www.submarine.co.mp/wallpaper/submarine_640.jpg<br />

- 9 -


• Consumer<br />

electronics<br />

Application areas (4)<br />

- 10 -


• Fabrication equipment<br />

• SSmart t bbuildings ildi<br />

Application areas (5)<br />

Show movie http://www.dateconference.com/conference/<br />

2003/keynotes/index.htm<br />

- 11 -


• Robotics<br />

Application areas (6)<br />

„Pipe-climber“ Robot<br />

„Johnnie“<br />

(Courtesy<br />

and ©:<br />

H.Ulbrich, F.<br />

Pfeiffer, TU<br />

München)<br />

Show movie of 2-legged robot(s)<br />

- 12 -


Examples<br />

Some embedded<br />

systems from<br />

real ea lifee


Information<br />

Teechnoologyy<br />

Smart Beer Glass<br />

Contact less<br />

transmission<br />

of power and<br />

readings<br />

Department of Information Technology | www.it.uu.se<br />

Capacitive sensor<br />

for fluid level<br />

8-bit, bit, 88-pin<br />

pin<br />

PIC processor<br />

Inductive coil for RF<br />

ID activation &<br />

power<br />

CPU and reading coil in the<br />

table. Reports the level of fluid in<br />

the glass, alerts servers when<br />

close to empty<br />

© Jakob Engblom


Information<br />

Teechnoologyy<br />

Smart Beer Glass<br />

Typical embedded solution<br />

Integrates several technologies:<br />

Radio transmissions<br />

Sensor technology<br />

MMagnetic ti inductance i d t f for power<br />

Computer used for calibration<br />

Impossible without the computer<br />

Meaningless without the electronics<br />

Department of Information Technology | www.it.uu.se<br />

© Jakob Engblom


Information<br />

Teechnoologyy<br />

Pedometer<br />

Obvious computer<br />

work:<br />

Count steps<br />

Keep time<br />

Averages<br />

etc.<br />

Hard computer work:<br />

Actually y identify y when a<br />

step is taken<br />

Sensor feels motion of<br />

ddevice, i not t of f user feet f t<br />

Department of Information Technology | www.it.uu.se<br />

© Jakob Engblom


Information<br />

Teechnoologyy<br />

Mobile phones<br />

Department of Information Technology | www.it.uu.se<br />

© Jakob Engblom<br />

Multiprocessor<br />

88-bit/32-bit bit/32 bit for UI<br />

DSP for signals<br />

32 32-bit bit in IR port<br />

32-bit in Bluetooth<br />

88-100 100 MB of memory<br />

All custom chips<br />

P Power consumption ti &<br />

battery life depends<br />

on software


Information<br />

Teechnoologyy<br />

Mobile base station<br />

Massive signal processing<br />

Several processing tasks per<br />

connected mobile phone<br />

Based on DSPs<br />

Standard or custom<br />

100s of processors<br />

Department of Information Technology | www.it.uu.se © Jakob Engblom


Information<br />

Teechnoologyy<br />

Telecom Switch<br />

Department of Information Technology | www.it.uu.se<br />

© Jakob Engblom<br />

Rack-based<br />

CControl t l cards d<br />

IO cards<br />

DSP cards d<br />

...<br />

Optical & copper<br />

connections<br />

Digital & analog<br />

signals g


Information<br />

Teechnoologyy<br />

Sewing Machine<br />

User interface<br />

EEmbroidery b id patterns tt<br />

Touch-screen control<br />

” ”Smart” ”<br />

Department of Information Technology | www.it.uu.se © Jakob Engblom<br />

Sets pressure of foot<br />

ddepending di on task k<br />

Raise foot when stopped<br />

New functions added by<br />

upgrading the software


Information<br />

Teechnoologyy<br />

Cars<br />

Multiple processors<br />

Up to 100<br />

Networked<br />

together<br />

Department of Information Technology | www.it.uu.se © Jakob Engblom<br />

Multiple networks<br />

BBody, d engine, i<br />

telematics, media,<br />

safety


Information<br />

Teechnoologyy<br />

Cars<br />

Functions by embedded processing:<br />

ABS: Anti-lock braking systems<br />

ESP: Electronic stability y control<br />

Airbags<br />

Efficient automatic gearboxes<br />

Theft prevention with smart keys<br />

Blind-angle alert systems<br />

... etc ...<br />

Department of Information Technology | www.it.uu.se © Jakob Engblom


Information<br />

Teechnoologyy<br />

Cars<br />

Large diversity in processor types:<br />

8-bit – door locks, lights, etc.<br />

16-bit – most functions<br />

32-bit – engine control, airbags<br />

Form follows function<br />

Processing where the action is<br />

Sensors and actuators distributed all<br />

over the vehicle<br />

Department of Information Technology | www.it.uu.se © Jakob Engblom


Information<br />

Teechnoologyy<br />

Extremely Large<br />

Functions requiring<br />

computers:<br />

Radar<br />

Weapons<br />

Damage control<br />

Navigation g<br />

basically everything<br />

Computers: p<br />

Large servers<br />

1000s of<br />

processors<br />

Department of Information Technology | www.it.uu.se<br />

© Jakob Engblom


Information<br />

Teechnoologyy<br />

Inside your PC<br />

Custom processors<br />

Graphics Graphics, sound<br />

32-bit processors<br />

Network Network, WLAN<br />

Harddisk<br />

RAID controllers<br />

8-bit processors<br />

USB<br />

Keyboard, mouse<br />

Department of Information Technology | www.it.uu.se © Jakob Engblom


Information<br />

Teechnoologyy<br />

If you want to play<br />

Lego mindstorms<br />

robotics kit<br />

Standard controller<br />

8-bit processor p<br />

64 kB of memory<br />

Electronics to<br />

iinterface t f t to motors t<br />

and sensors<br />

Good way to learn<br />

embedded<br />

systems<br />

Department of Information Technology | www.it.uu.se<br />

© Jakob Engblom


Concept of ES Education<br />

programming algorithms computer math electrical networks<br />

organization education & digital circuits<br />

A course<br />

on embedded systems<br />

control DSP machine real-time project applications …<br />

systems vision systems group<br />

Provides motivation and context of other work in the area<br />

Mix of students and courses from CS and EE departments<br />

lab<br />

- 27 -


A possible structure for this course<br />

1.4 Structure<br />

- 28 -


Growing importance of embedded systems (1)<br />

GGrowing i economical i l iimportance t of f embedded b dd d systems t<br />

THE growing market according to forecasts, e.g.:<br />

• Worldwide mobile phone sales surpassed 156 156.4 4 mln<br />

units in Q2 2004, a 35% increase from Q2 2003,<br />

according to Gartner [www.itfacts.biz]<br />

• The worldwide portable flash player market exploded<br />

in 2003 and is expected p to ggrow<br />

from 12.5 mln units in<br />

2003 to over 50 mln units in 2008 [www.itfacts.biz]<br />

• Global 3G subscribers will grow g from an estimated 45<br />

mln at the end of 2004 to 85 mln in 2005, according to<br />

Wireless World Forum. [www.itfacts.biz]<br />

1.3 … importance<br />

- 29 -


Growing importance of embedded systems (2)<br />

• The number of broadband lines worldwide increased by y<br />

almost 55% to over 123 mln in the 12 months to the end<br />

of June 2004, according to Point-Topic.<br />

[ [www.itfacts.biz] itf t bi ]<br />

• Today's DVR (digital video recorders) users - 5% of<br />

households - will grow to 41% within five years years,<br />

according to Forrester. [www.itfacts.biz]<br />

• The automotive sector … ensures the employment of<br />

more than 4 million people in Europe. Altogether, some<br />

8 million jobs in total depend on the fortunes of the<br />

transport industry and related sectors - representing<br />

around 7 per cent of the European Union’s Gross<br />

National Product (GNP) [OMI bulletin]<br />

- 30 -


Growing importance of embedded systems (3)<br />

• .. but embedded chips form the backbone of the<br />

electronics driven world in which we live ... they are<br />

part of almost everything that runs on electricity<br />

[Mary Ryan, EEDesign, 1995]<br />

• 79% of all high high-end end processors are used in<br />

embedded systems<br />

The future is embedded, Embedded is the future!<br />

Foundation for the „post PC era“<br />

ES ES hardly discussed in other CS and EE courses<br />

1.3 … importance<br />

- 31 -


Characteristics of Embedded Systems (1)<br />

Must be dependable,<br />

• Reliability R(t) = probability of system working<br />

correctly provided that is was working at t=0<br />

• MMaintainability i t i bilit M(d) = th the probability b bilit th that t a ffailing ili<br />

system can be repaired within a certain time-frame.<br />

• Availability A(t): probability of system working at time t<br />

• Safety: no harm to be caused<br />

• Security: confidential and authentic communication<br />

Even perfectly designed systems can fail if the<br />

assumptions p about the workload and ppossible<br />

errors turn<br />

out to be wrong.<br />

Making the system dependable must not be an after-<br />

thought, it must be considered ffrom<br />

the very beginning<br />

1.1 terms and scope<br />

- 32 -


Characteristics of Embedded Systems (2)<br />

Must be efficient<br />

– Energy efficient<br />

– Code-size efficient<br />

(especially for systems on a chip)<br />

– Run-time efficient (consuming less resource)<br />

– Weight efficient<br />

– Cost efficient<br />

Dedicated towards a certain application<br />

Knowledge g about behavior at design g time can be used<br />

to minimize resources and to maximize robustness<br />

Dedicated user interface<br />

(no mouse, keyboard and screen)<br />

- 33 -


Characteristics of Embedded Systems (3)<br />

Many a y ES S must ust meet eet real-time ea t e co constraints st a ts<br />

– A real-time system must react to stimuli from the<br />

controlled object j ( (or the operator) p ) within the time<br />

interval dictated by the environment.<br />

– For real-time systems, right answers arriving too late<br />

are wrong.<br />

– „A real-time constraint is called hard, if not<br />

meeting ti that th t constraint t i t could ld result lt in i a<br />

catastrophe“ [Kopetz, 1997].<br />

– All other time time-constraints constraints are called soft soft.<br />

– A guaranteed system response has to be explained<br />

without statistical arguments<br />

- 34 -


Information<br />

Teechnoologyy<br />

Real-Time Systems<br />

Embedded and Real-Time<br />

Synonymous?<br />

Most embedded<br />

systems t are<br />

embedded<br />

real-time embedded<br />

real real-time time<br />

Most real-time<br />

systems y are<br />

embedded real real-time time<br />

Department of Information Technology | www.it.uu.se © Jakob Engblom


Characteristics of Embedded Systems (4)<br />

Frequently q y connected to physical p y environment<br />

through sensors and actuators,<br />

Hybrid systems<br />

(analog + digital parts).<br />

Typically, ES are reactive systems:<br />

„A reactive system is one which is in continual<br />

interaction with is environment and executes at a<br />

pace determined by that environment“ [Bergé, 1995]<br />

Behavior depends on input and current state.<br />

automata model appropriate,<br />

model of computable p functions inappropriate. pp p<br />

- 36 -


Characteristics of Embedded Systems (5)<br />

ES are underrepresented in teaching and<br />

public discussions:<br />

„Embedded chips p aren‘t hyped yp in TV and<br />

magazine ads ... [Mary Ryan, EEDesign, 1995]<br />

Not every ES has all of the above characteristics.<br />

Def Def.: : Information processing systems having most of the<br />

above characteristics are called embedded systems.<br />

CCourse on embedded b dd d systems t makes k sense bbecause of f th the<br />

number of common characteristics.<br />

- 37 -


Challenges for implementation in hardware<br />

Lack of flexibility (changing standards).<br />

Mask cost for specialized HW becomes very expensive<br />

Trend<br />

towards<br />

implementation<br />

in Software<br />

[http://www.molecularimprints.com/Technology/<br />

tech_articles/MII_COO_NIST_2001.PDF9]<br />

- 38 -


Importance of Embedded Software<br />

and Embedded Processors<br />

“... the New York Times has<br />

estimated that the average g<br />

American comes into contact<br />

with about 60 micro-<br />

processors every d day....” ”<br />

[Camposano, 1996]<br />

Latest top-level BMWs<br />

contain over 100 micro<br />

processors<br />

[Personal communication]<br />

Most The average of the<br />

functionality American does will<br />

be not implemented<br />

drive a<br />

in BMW! software<br />

- 39 -


Challenges for implementation in software<br />

If embedded systems will be<br />

iimplemented l t d mostly tl iin software, ft th then<br />

why don‘t we just use what software<br />

engineers have come up with?<br />

- 40 -


Software complexity is a challenge<br />

Exponential Exponential increase in software<br />

complexity<br />

In In some areas code size is<br />

doubling every 9 months [ST<br />

Microelectronics, Medea Workshop, Fall<br />

2003]<br />

... > 70% of the development cost<br />

for complex systems such as<br />

Opportunities and challenges in embedded systems,<br />

automotive electronics and<br />

communication systems y are due<br />

to software development<br />

[A. Sangiovanni-Vincentelli, 1999]<br />

Rob van Ommering, COPA Tutorial, as cited by: Gerrit Müller:<br />

Eindhoven Embedded Systems Institute, 2004<br />

- 41 -


More challenges for embedded software<br />

Dynamic y environments<br />

Capture the required behaviour!<br />

Validate specifications<br />

Efficient translation of specifications<br />

into implementations!<br />

HHow can we check h k th that t we meet t reall<br />

time constraints?<br />

How do we validate embedded realtime<br />

software? (large volumes of data,<br />

ttesting ti may be b safety-critical)<br />

f t iti l)<br />

- 42 -


It is not sufficient to consider ES<br />

just as a special case of software engineering<br />

EE knowledge g must be available, ,<br />

Walls between EE and CS must be torn down<br />

CS EE<br />

- 43 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!