chapter 1 - Introduction (1)
chapter 1 - Introduction (1)
5
Characteristics of Embedded
System:
Sophisticated Functionality: The functionality of no two
embedded system applications is bound to be the same.
The functionality of a washing machine is different from that
of a microwave. However, the functionality of a laptop and a
desktop are almost the same.
Real-Time Operation: It doesn’t mean live operation. It
means the software programs hardware to operate in a
time-bound fashion.
Low Manufacturing Cost: As an embedded system
design aims for any particular application, it involves less
manufacturing cost as compared to a versatile general
computing system. As a result, embedded systems also 6
Cont…
Processor and Memory: Depending on the type,
processor and memory requirements may vary. For
instance, small embedded systems would require less
memory, but sophisticated systems demand more memory
and run on multi-core processors.
Tight Design Constraint: There are many design
constraints to consider around the cost, performance, size,
and power of an embedded system to realize its absolute
performance. These design factors are kept to a minimum
to justify their simple function.
7
Characteristics of Real-time
System:
Time Constraints: Time interval allotted for the
response of the ongoing program. This deadline
means that the task should be completed within this
time interval.
Correctness: Real-time systems produce correct
result within the given time interval. If the result is
not obtained within the given time interval then also
result is not considered correct.
Embedded: All the real-time systems are embedded
now-a-days. Embedded system means that
combination of hardware and software designed for a 8
Cont …
Concurrency: Real-time systems are concurrent that
means it can respond to a several number of processes
at a time.
Real-time communication: Real-time systems often
require real-time communication between different
components or devices. The system must ensure that
communication is reliable, fast, and secure.
Scalability: Real-time systems must be scalable, which
means that the system must be able to handle varying
workloads and increase or decrease its resources as
needed. 9
Examples of Examples of Real
Embedded Systems time Systems
Digital cameras: Embedded systems Air traffic control systems: These
control the camera's functions, systems must track the positions of
including image processing, autofocus, aircraft and ensure that they do not
and exposure control. collide. If a deadline is missed, it
MP3 players: Embedded systems could result in a collision.
manage the playback of music files, Medical devices: Some medical
handle user input, and display devices, such as pacemakers, must
information on the screen. deliver electrical pulses to the heart
Smartphones: Embedded systems at precise intervals. If a deadline is
power the phone's core functionality, missed, it could be fatal.
including communication, processing,
and running various applications.
Video game consoles: Embedded
systems handle graphics rendering,
game logic, and user interaction. 10
1.2 Types of real time tasks
A real time task can be classified into
Hard real-time task
Soft real-time task or
Firm real-time task depending on the consequences of a
task missing its deadline.
It is not necessary that all tasks of a real-time application belong
to the same category.
It is possible that different tasks of a real-time system can
belong to different categories.
We now elaborate these three types of real-time tasks.
11
Hard Real-Time Tasks
A hard real-time task is one that is constrained to
produce its results within certain predefined time
bounds.
The system is considered to have failed whenever any of
its hard real-time tasks does not produce its required
results before the specified time bound.
An example of a system having hard real-time tasks is :
o Anti-missile system
o Aerospace and defense: Aircraft flight control
systems, missile guidance systems, and radar 12
Soft real-time
Soft real-time systems have less stringent timing
requirements than hard real-time systems.
Missing a deadline in a soft real-time system may
degrade the quality of service, but it will not have
catastrophic consequences.
Examples of soft real-time systems include
operating systems, and network routers.
13
Firm real-time systemsreal-time
Unlike a hard real-time task, even when a firm real-
time task does not complete within its deadline, the
system does not fail.
The late results are merely discarded.
In other words, the utility of the results computed by
a firm real-time task becomes zero after the
deadline.
Example : Video confessing or satellite-based
tracking of enemy movements
14
1.3 Basic Model of a Real-Time System
In this section try to develop a broad
understanding of high level issues of
the underlying hardware in a real-time
system.
This figure shows a simple model of a
real time system in terms of its
important functional blocks.
We briefly describe the roles of the
different functional blocks of a real-
time system:
15
Cont …
Sensor: converts some physical characteristic of its
environment into electrical signals.
An example of a sensor is a photo-voltaic cell which
converts light energy into electrical energy.
A wide variety of temperature and pressure sensors are
also used.
Actuator: converts these electrical signals into some
physical actions on its environment.
The physical actions may be in the form of motion, change
of thermal, electrical, pneumatic, or physical characteristics
16
of some objects.
Cont …
Signal Conditioning Units:
The electrical by computers signals produced by a
computer can rarely be used to directly drive an
actuator. The computer signals usually need
conditioning before they can be used by the actuator.
This is termed output conditioning.
Similarly, input conditioning is required to be carried
out on sensor signals before they can be accepted by
the computer.
17
Cont …
Interface Unit: Normally commands from the CPU are
delivered to the actuator through an output interface.
An output interface converts the stored voltage into
analog form and then outputs this to the actuator
circuitry.
The interface takes care of the buffering and the
handshake control aspects. Analog to digital
conversion is frequently deployed in an input interface.
Similarly, digital to analog conversion is frequently
used in an output interface. 18
1.4 Timing Constraints
20
Cont …..
25
Computer Organization Concepts and
1.5
Memory
Computer organization is a branch of computer science that
deals with the structural design and implementation of
computer systems.
It encompasses the study of
The various components of a computer system,
Their interactions, and
The principles that govern their operation.
26
Computer Organization Concepts and
Memory
A computer system can be broadly divided into three main
components:
1) Processing Unit (PU): The brain of the computer,
responsible for executing instructions and performing
computations.
2) Memory: Stores instructions and data that the PU needs
to access during processing.
3) Input/Output (I/O) Devices: Allow the computer to
interact with the external world, such as keyboards,
monitors, and storage devices. 27
Memory Organization
Memory is organized into a hierarchy of levels, each with
different characteristics and performance trade-offs.
Cache Memory: Small, fast memory located close to the
PU for storing frequently accessed data and instructions.
Main Memory (RAM): Larger, slower memory that holds
the program and data currently being executed.
Secondary Storage: Non-volatile storage devices like
hard drives and SSDs for storing large amounts of data
permanently.
28
Cont ….
Computer organization concepts and memory are
fundamental to understanding the design,
implementation, and performance of computer systems.
By understanding these concepts, we can appreciate
the intricate workings of modern computers and their
ability to perform complex tasks efficiently.
29