Chap 1
Chap 1
Lecture 1: Introduction
24 March 2023 1
Outline
What is Embedded System?
24 March 2023 2
What is Embedded System?
• Computing systems are everywhere
• Most of us think of “desktop” computers
as the only computing system
✔ PC’s
✔ Laptops
✔ Mainframes
✔ Servers
• But there’s another type of computing
system
✔ Computing systems embedded within
electronic devices
✔ Hard to define.
✔ Nearly any computing system other than a
desktop computer
24 March 2023 3
General Purpose Computers
•Able to run a variety of software. By installing varieties of
application software, it can be used for multiple tasks.
•Contain relatively high-performance hardware components (fast
processors, data & program storage).
•Require an operating system (OS).
•Uses a variety of peripherals (displays, keyboards, mice, internet
connections, wireless communication capability).
24 March 2023 4
What is Embedded System?
• Precisely defining Embedded System is difficult.
• The following definitions may, in combination, do the job.
✔ An embedded system is a special-purpose computer system designed
to perform one or a few dedicated functions, sometimes with
real-time computing constraints
✔ Specialized computer system hardware that is used in larger systems
or machines to control devices such as automobiles, home
appliances, and office equipment .
✔ Any electronic system that uses a CPU chip, but that is not a
general-purpose, workstation, desktop or laptop computer. Such
systems generally use microprocessors, or they may use
custom-designed chips or both.
✔ An embedded system is some combination of computer hardware
and software, either fixed in capability or programmable, that is
specifically designed for a particular kind of application device.
✔ An embedded system is a combination of computer circuitry and
software that is built into a product for purposes such as control,
monitoring and communication without human intervention.
24 March 2023 5
Embedded Systems Definition
•IEEE defines Embedded Systems as:
“the devices used to control, monitor or assist the operation of
equipment, machinery or plant.” “Embedded” reflects the fact
that they are an integral part of the system.
Embedded System = Information Processing systems embedded in a
large product
24 March 2023 6
Where are Embedded Systems?
Embedded computing systems are becoming pervasive in our society (more than
Billions of units produced yearly, versus millions of desktop units ):
▪ Robotics
▪ Plant control
▪ Automotive
▪ Consumer electronics
▪ Multimedia systems
▪ Sensor/Actor Networks
24 March 2023 8
Where are Embedded System?
•Even though often nearly invisible, embedded systems are
ubiquitous.
•Every day, people throughout the world use embedded systems
without even knowing it.
•Remarkably adaptable and versatile, embedded systems can be
found at home, at work, Indeed, it is difficult to find a segment
of daily life that does not involve embedded systems in some
way.
24 March 2023 9
A “short list” of embedded systems
✔ Anti-lock brakes ✔ Modems
✔ Auto-focus cameras ✔ MPEG decoders
✔ Automatic teller machines ✔ Network cards
✔ Automatic toll systems ✔ Network switches/routers
✔ Automatic transmission ✔ On-board navigation
✔ Avionic systems ✔ Pagers
✔ Battery chargers ✔ Photocopiers
✔ Camcorders ✔ Point-of-sale systems
✔ Cell phones ✔ Portable video games
✔ Cell-phone base stations ✔ Printers
✔ Cordless phones ✔ Satellite phones
✔ Cruise control ✔ Scanners
✔ Curbside check-in systems ✔ Smart ovens/dishwashers
✔ Digital cameras ✔ Speech recognizers
✔ Disk drives ✔ Stereo systems
✔ Electronic card readers ✔ Teleconferencing systems
✔ Electronic instruments ✔ Televisions
✔ Electronic toys/games ✔ Temperature controllers
✔ Factory control ✔ Theft tracking systems
✔ Fax machines ✔ TV set-top boxes
✔ Fingerprint identifiers ✔ VCR’s, DVD players
✔ Home security systems ✔ Video game consoles
✔ Life-support systems ✔ Video phones
✔ Medical testing systems ✔ Washers and dryers
24 March 2023 10
Embedded systems Examples
• Automotive electronics: Modern cars can be sold only if they contain
a significant amount of electronics. These include air bag control
systems, engine control systems, anti-braking systems (ABS),
air-conditioning, GPS systems, safety features, and many more.
• Aircraft electronics: A significant amount of the total value of
airplanes is due to the information processing equipment, including
flight control systems, anti-collision systems, pilot information
systems, and others. Dependability is of utmost importance.
• Trains: Again, safety features contribute significantly to the total
value of trains, and dependability is extremely important.
• Medical systems: There is a huge potential for improving the medical
service by taking advantage of information processing taking place
within medical equipment.
• Military applications: Information processing has been used in
military equipment for many years. In fact, some of the very first
computers analyzed military radar signals.
24 March 2023 11
Embedded systems Examples
• Authentication systems: Embedded systems can be used for
authentication purposes.
• Fabrication equipment: Fabrication equipment is a very traditional
area in which embedded systems have been employed for decades.
Safety is very important for such systems, the energy consumption is
less a problem.
• Smart buildings: Information processing can be used to increase the
comfort level in buildings, can reduce the energy consumption within
buildings, and can improve safety and security.
• Robotics: Robotics is also a traditional area in which embedded
systems have been used. Mechanical aspects are very important for
robots.
24 March 2023 12
Some Common Characteristics of Embedded Systems
• Single-functioned
✔ Executes a single program, repeatedly
✔ For example A pager always functions as a pager.
• Tightly constrained
✔ All computing systems have constraints on design metrics, but those on an
embedded system can be especially tight.
✔ Design metrics is a measure of an implementation's features such as its cost, size,
power, and performance.
o It must be of a size to fit on a single chip,
o must perform fast enough to process data in real-time and
o consume minimum power to extend battery life.
• Reactive and Real-time
✔ Many embedded systems must continually react to changes in the system's
environment and
✔ must compute certain results in real time without any delay.
o Consider an example of a car cruise controller; it continually monitors and reacts to speed
and brake sensors. It must compute acceleration or de-accelerations repeatedly within a
limited time; a delayed computation can result in failure to control of the car.
24 March 2023 13
Some Common Characteristics of Embedded Systems
• Embedded systems have to be dependable (trusted).
▪ airplanes,
▪ trains,
▪ cars,
▪ satellites etc.
24 March 2023 14
Dependability
▪ Dependability(trustable) encompasses the following aspects of a
system:
1. Reliability: Reliability is the probability that a system will not fail.
2. Maintainability: Maintainability is the probability that a failing system can be
repaired within a certain time-frame.
3. Availability: Availability is the probability that the system is available. Both
the reliability and the maintainability must be high in order to achieve a high
availability.
4. Safety: This term describes the property that a failing system will not cause
any harm.
5. Security: This term describes the property that confidential data remains
confidential and that authentic communication is guaranteed.
24 March 2023 15
Criticality
digital tv
QoS management High performance Safety critical
Timing constraints
24 March 2023 16
Ethiopian Airlines Crash: Boeing Faces Safety Questions Over 737
Max 8 jets
24 March 2023 17
Safety-critical System
24 March 2023 18
Safety–Critical Embedded System
• What is safety?
• “To be protected(freedom) from unacceptable risk of physical injury or
damage to the health of people, either directly or indirectly as a result of
damage to property or to the environment.”
24 March 2023 19
Design challenge of Embedded Systems – optimizing design
metrics
• Embedded systems have to be efficient.
• The following metrics can be used for evaluating the efficiency of
embedded systems:
1. Energy/power: Many embedded systems are mobile systems obtaining
their energy through batteries. Available electrical energy must be used
very efficiently.
2. Code-size: the code-size should be as small as possible for the intended
application.
3. Run-time efficiency: We should be able to meet time constraints using the
least amount of hardware resources and energy.
4. Weight: All portable systems must be of low weight. Low weight is
frequently an important argument for buying a certain system.
5. Cost: For high-volume embedded systems, especially in consumer
electronics, competitiveness on the market is an extremely crucial issue,
and efficient use of hardware components and the software development
budget are required.
24 March 2023 20
Design challenge of Embedded Systems – optimizing design
metrics
• Design metric
✔ Optimizing design metrics is a key challenge
• Common metrics
✔ Unit cost: the monetary cost of manufacturing each copy of the system, excluding NRE
cost
✔ NRE cost (Non-Recurring Engineering cost): The one-time monetary cost of designing
the system
✔ Size: the physical space required by the system
✔ Performance: the execution time or throughput of the system
✔ Power: the amount of power consumed by the system
✔ Flexibility: the ability to change the functionality of the system without incurring heavy
NRE cost.
✔ Time-to-prototype: the time needed to build a working version of the
system
✔ Time-to-market: the time required to develop a system to the point that it
can be released and sold to customers
✔ Maintainability: the ability to modify the system after its initial release
✔ Correctness, safety, many more
24 March 2023 21
Design metric competition - improving one may worsen others
• Expertise with both software and hardware is needed to optimize design metrics
✔ Not just a hardware or software expert, as is common
✔ A designer must be comfortable with various technologies in order to choose the best for a
given application and constraints
✔ Design metrics compete with one another
24 March 2023 22
Basic Structure of an Embedded System
• Frequently, embedded systems are connected to the physical
environment through sensors collecting information about that
environment and actuators controlling that environment.
✔ Sensor − measures the physical quantity and converts it to an electrical
signal.
✔ A-D Converter −converts the analog signal sent by the sensor into a
digital signal.
✔ Processor & ASICs −process the data to measure the output and store it
to the memory.
✔ D-A Converter −converts the digital data fed by the processor to analog
data
✔ Actuator −compares the output given by the D-A Converter to the actual
(expected) output stored in it and stores the approved output.
24 March 2023 23
Exercises
• Compare and contrast computer system and embedded System.
• Briefly explain the dependability characteristics of embedded
system.
• Consider the following embedded systems: a smart phone, a
computer printer, and an automobile cruise controller. Create a
table with each example as a column, and each row one of the
following design metrics: unit cost, performance, size, and power.
For each table entry, explain whether the constraint on the design
metric is very tight. Indicate in the performance entry whether the
system is highly reactive or not.
• Consider the following embedded systems: a digital TV, robot
arm, and an automobile cruise controller. And compare and
contrast these device according to quality of system management,
performance, safety criticality and time constraint.
24 March 2023 24
Exercises
• Consider the following embedded systems: smart phone, digital TV,
robot arm, and airplane flight controller. And compare and contrast
these device according to quality of system management, performance,
safety criticality, privacy and time constraint.
24 March 2023 25