What's An Embedded System?
What's An Embedded System?
What's An Embedded System?
Non-Embedded Systems
PCs, servers, and notebooks
2/6/2012
B mn K Thut in T - HBK
B mn K Thut in T - HBK
2/6/2012
B mn K Thut in T - HBK
B mn K Thut in T - HBK
2/6/2012
B mn K Thut in T - HBK
B mn K Thut in T - HBK
2/6/2012
Embedded program
OS / non-OS supported realtime / non-realtime timer, interrupt, serial port
Clock:
crystal
Power:
+5V / +3.3V / +2.5V
B mn K Thut in T - HBK
9
User interface:
Button / keypad / switch LCD / 7-segment LED / LED indicator
Sensors:
temperature, light, ultrasound, pressure,
Actuators:
motor, solenoid, relay,
B mn K Thut in T - HBK
10
2/6/2012
Tightly-constrained
Low cost, low power, small, fast, etc.
B mn K Thut in T - HBK
11
DMA controller
Display ctrl
Memory controller
UART
LCD ctrl
Single-functioned -- always a digital camera Tightly-constrained -- Low cost, low power, small, fast Reactive and real-time -- only to a small extent
12
B mn K Thut in T - HBK
2/6/2012
Tightly-constrained
Low cost, low power, small, fast, etc.
B mn K Thut in T - HBK
13
2. Functions
safety-critical applications damage to life, economy can result
3. Real-time systems
Not only right output but at the right time processing time is the most important one.
B mn K Thut in T - HBK
14
2/6/2012
5. Reactive systems
Once stated run forever Continuous interaction with their environment termination is a bad behavior
B mn K Thut in T - HBK
15
Cost / resource
B mn K Thut in T - HBK
16
2/6/2012
Customers
System architects
SW developer
Describe what board, subsystem, and firmware will be used. Describe how the board will be implemented and how it works. Describe how the software will be implemented. Describe how the system will be tested.
B mn K Thut in T - HBK
18
2/6/2012
B mn K Thut in T - HBK
B mn K Thut in T - HBK
10
2/6/2012
B mn K Thut in T - HBK
21
B mn K Thut in T - HBK
22
11
2/6/2012
B mn K Thut in T - HBK
B mn K Thut in T - HBK
24
12
2/6/2012
General-purpose processor
Application-specific processor
Single-purpose processor
B mn K Thut in T - HBK
25
Processor technology
Processor not equal to general-purpose processor
Controller Control logic and State register IR PC Datapath Register file General ALU Controller Control logic and State register IR PC Data memory Program memory Assembly code for: total = 0 for i =1 to General-purpose (software) B mn K Thut in T - HBK
26
Data memory
Data memory
Program memory Assembly code for: total = 0 for i =1 to Application-specific Single-purpose (hardware)
13
2/6/2012
IC technology
The manner in which a digital (gate-level) implementation is mapped onto an IC
IC: Integrated circuit, or chip IC technologies differ in their customization to a design ICs consist of numerous layers (perhaps 10 or more)
IC technologies differ with respect to who builds each layer and when
IC package
IC
B mn K Thut in T - HBK
27
B mn K Thut in T - HBK
28
14
2/6/2012
3. 4. 5. 6.
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
B mn K Thut in T - HBK
29
11. Safety: the probability that the system will not cause harm
B mn K Thut in T - HBK
30
15
2/6/2012
Revenues ($)
Time (months)
B mn K Thut in T - HBK
31
Loss
The difference between the on-time and delayed triangle areas
Peak revenue Revenues ($) Peak revenue from delayed entry Market fall Delayed
W Time
2W
On-time entry
B mn K Thut in T - HBK
Delayed entry
32
16
2/6/2012
W Time
2W
On-time entry
Delayed entry
B mn K Thut in T - HBK
33
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
B mn K Thut in T - HBK
34
17
2/6/2012
$120 $80
Throughput
Tasks per second, e.g. Camera A processes 4 images per second Throughput can be more than latency seems to imply due to concurrency, e.g. Camera B may process 8 images per second (by capturing a new image while previous image is being stored).
B mn K Thut in T - HBK
18
2/6/2012
Performance
Size
NRE cost
B mn K Thut in T - HBK
37
Summary
Embedded systems are everywhere Key challenge: optimization of design metrics
Design metrics compete with one another
A unified view of hardware and software is necessary to improve productivity Three key technologies
Processor: general-purpose, application-specific, single-purpose IC: Full-custom, semi-custom, PLD Design: Compilation/synthesis, libraries/IP, test/verification
B mn K Thut in T - HBK
38
19
2/6/2012
Class assignment
1. 2. 3. 4. 5. 6. 7. What is an embedded system? What are embedded system features? What are issues of embedded system design? What are five basic requirements of embedded system? What are common characteristics of an embedded system? What are optimizing design metrics? What is the most importance step of embedded system design process? 8. What are three key technologies for embedded systems?
B mn K Thut in T - HBK
39
Class assignment
8. Consider the following embedded systems: a pager, 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. 9. List three pairs of design metrics that may compete, providing an intuitive explanation of the reason behind the competition. 10. The design of a particular disk drive has an NRE cost of $100,000 and a unit cost of $20. How much will we have to add to the cost of the product to cover our NRE cost, assuming we sell: (a) 100 units, and (b) 10,000 units. 11. (a) Create a general equation for product cost as a function of unit cost, NRE cost, and number of units, assuming we distribute NRE cost equally among units. (b) Create a graph with the x-axis the number of units and the y-axis the product cost, and then plot the product cost function for an NRE of $50,000 and a unit cost of $5.
B mn K Thut in T - HBK
40
20
2/6/2012
Class assignment
Design a embedded system for washing machine
No. 1 Specification Product specification Engineering specification Hardware specification Software specification Test specification Describe -Washing process: soak, wash, rinse, spin -Mode: manual, fuzzy -Constraints -Inputs: -Outputs: -Use interface: -Microcontroller: -Sensors: -Actuators: -Functions: -Control algorithm: -Platform: -Test process:
41
4 5
B mn K Thut in T - HBK
Class assignment
1. Consider the project car door mechanism Write system specification for this project
B mn K Thut in T - HBK
42
21