Beruflich Dokumente
Kultur Dokumente
1
Overview
2
Application Area of embedded systems
3
Application Area of embedded systems
4
Some common characteristics of embedded
systems
• Single-functioned
– Executes a single program, repeatedly
• Tightly-constrained
– Low cost, low power, small size, fast computing
• Reactive and real-time
– Continually reacts to changes in the system’s
environment
– Must compute certain results in real-time without
delay
5
An embedded system example -- a digital
camera
Digital camera chip
CCD
lens
• Design metric is
– A measurable feature of a system’s implementation
– Optimizing design metrics is a key challenge
7
Design challenge – optimizing
design metrics
• 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
8
Design challenge – optimizing design
metrics
• Common metrics (continued)
– Time-to-prototype: the time needed to build a working version of
the system
– Maintainability: the ability to modify the system after its initial release
– Correctness: Confidences that the designer has implemented
system’s functionality correctly.
– Safety: Probability that system will not cause harm.
9
Design metric competition -- improving
one may worsen others
• To best meet the optimization
Power
challenges –
10
NRE and Unit cost - metrics
• Costs:
– NRE cost (Non-Recurring Engineering cost): The one-time
monetary cost of designing the system
– Unit cost: the monetary cost of manufacturing each copy of
the system, excluding NRE cost
11
NRE and Unit cost - metrics
• Example
– NRE=$2000, unit=$100
– For 10 units
– total cost = $2000 + 10*$100 = $3000
– per-product cost = $2000/10 + $100 = $300
Amortizing NRE cost over the units results in an additional $200 per unit
• Thus, the larger the volume, lower the per product cost.
12
The Performance Design - metric
13
Three key embedded system technologies
• Technology
– A manner of accomplishing a task, using technical
processes, methods, or knowledge
14
Real Time Systems
15
What is Real Time Systems
16
A Typical Real Time Systems
17
Real Time Systems
18
Real Time Systems
19
Real Time Systems
• A Low cost Servos
• A servo is a small wireless device that has a shaft, the shaft
can be positioned at specific angular positions – by sending
a coded signal
• As long as a coded signal exists on the input line, the servo
will maintain the angular positions of the shaft
• As the coded signal changes, the angular position of the
shaft changes
• Servos are used in robots, radio controlled cars, puppets etc
20
Basic Model of Real Time Systems
Input
Conditioning Input
Sensors Unit Interface
Real
Time
Computer
Output
Conditioning Output
Unit Interface
Actuators
Human
Computer
Interface
21
Sample Applications
Traffic control system
Agile Manufacturing
22
Sample Applications
Industrial Internet
and
Internet of Things
23
Real Time Systems Introduction
24
Real Time Systems
25
Real Time Systems – Example Car Driver
• Mission: Reaching the destination safely.
• Controlled System: Car.
• Operating environment: Road conditions.
• Controlling System
- Human driver: Sensors - Eyes and Ears of the driver.
- Computer: Sensors - Cameras, Infrared receiver, Laser
telemeter, Navigation system, Street maps.
26
Real Time Systems – Example Car Driver
27
Real Time Operating System
28
Real Time Operating System
29
Characteristics of ES
Real Time: Every real-time task is associated with some time
constraints e.g deadline
30
Characteristics of ES
31
Real Time Systems
32
Characteristics of ES
Summary
33
Real Time Tasks
• Periodic tasks
• Aperiodic tasks
• Sporadic Tasks
34
Real Time Tasks
• Periodic tasks
- Time-driven. Characteristics are known a priori
- Task Ti is characterized by (ei, pi)
E.g.: Task monitoring temperature of a patient in an ICU.
• Aperiodic tasks
- Event-driven. Characteristics are not known a priori
- Task Ti is characterized by (ai, ri, ei, di)
E.g.: Task activated upon detecting change in patient’s condition.
• Sporadic Tasks
– Known minimum inter-arrival time among successive instances of a
(periodic) task, rather strictly being periodic.
36
Common Misconceptions
37
Real Time Systems - issues
• Architectural Issues
– Computing subsystem, Communication subsystem, I/O
subsystem
• Software Issues
– Requirements, specification, verification, Real-time
languages, Real-time databases
38
Notion of Predictability
39
Optimal scheduling -- definition
40
Preemptive vs Non-preemptive scheduling
• Preemptive Scheduling
– Task execution is preempted and resumed later
– Preemption occurs to execute higher priority task.
– Offers higher schedulability
– Involves higher scheduling overhead due to context
switching
• Non-preemptive Scheduling
– Once a task starts executing, it completes its full execution
– Offers lower schedulability
– Less overhead due to less context switching
41
Architectural Issues
42
Architectural Issues
43
Requirements…
44
Introduction: Summary
• RTS require logical correctness and timeliness.
• RTS consists of a controlling system, controlled system, and the
environment.
• RTS are classified as: hard, firm, and soft RTS.
• Workload (tasks) are periodic, aperiodic, sporadic.
• The notion of predictability is very important in RTS.
• Important issues include:
– scheduling, precedence constraints, resource reclaiming, fault-
tolerance, RT communication, architectural issues, system
specification and verification, programming languages, and RT
databases.
45