Hardware/Software Design of Embedded Systems: Sudeep Pasricha
Hardware/Software Design of Embedded Systems: Sudeep Pasricha
+
of Embedded Systems
Sudeep Pasricha
Colorado State University
CS/ECE 561 Fall 2010
+Copyrighted Material adapted from Peter Marwedel, Rajesh Gupta, Frank Vahid and Tony Givargis
1
Welcome to CS/ECE 561
Instructor
Sudeep Pasricha [email protected]
Office Hours: Tu/Thu: 3:30-4:30 pm (ENGR C103A)
Course Page
http://www.engr.colostate.edu/~sudeep/teaching/cs_ece_561.htm
Visit regularly for updates and announcements
Class Meets
Tu/Thu 5:30-6:45 pm in ENGR E202
2
Course Requirements
ECE 452 or equivalent Computer
Organization or Architecture course
Assume knowledge of
Computer Organization
Programming in C/C++ or VHDL/Verilog
Some familiarity with Data Structures, Algorithms
3
Evaluation and Grading
Homework Assignments – 25%
Paper critiques, problems, programming, analysis
Embedded System Project – 35%
FinalPresentation (10%)
Design project report (25%)
Final Examination – 30%
Closed book
Class Participation – 10%
Asking/answering questions, attendance, …
Grading will be on a curve
4
Reading Materials
No Textbooks
Materials will be from various books and journal articles
References
Lecture Slides
Books
Peter Marwedel – Embedded Systems Design, Kluwer 2003
Vahid and Givargis – Embedded System Design, Prentice Hall 2002
Embedded Systems Courses
Sangiovanni-Vincentelli @ Berkeley, Gupta @ UCSD, …
Conferences/Journals
ACM TECS/TODAES, IEEE TCAD/TVLSI, Kluwer DAES,…
Web Resources
www.embedded.com, www.eetimes.com, …
5
Past Course Projects (Spring‘09)
Dynamically Adaptive Inverted Pendulum Platform
NASA space grant symposium 2009 First Place Award
Embedded RFIDs in Cybernetics
Interactive Teaching Guitar
Real Time Embedded Database Design
Roving Wireless Sensor Network
Novel Hybrid Photonic Network-on-Chip for Emerging
Chip Multiprocessors
Accepted IEEE/ACM conference paper at Embedded Systems Week
(ESWEEK ‘2009)
6
Past Course Projects (Fall ‘09)
IPhone app – Digital Circuit Analyzer
Hexapod Robot for Environmental Monitoring
Home Security System
Task Scheduling on FPGA
Semi Automated Brewery Control System
Fault Tolerant Routing for Networks on Chip
Accepted
IEEE/ACM paper at Embedded Systems Week
(ESWEEK ‘2010)
7
My Expectations from YOU
CS/ECE 561
9
Possible Class Project Topics
Wearable computing/Body sensor networks
Sensors on a human body transmitting data wirelessly to smartphone/PC
Hack an Android device
e.g. #1 create wireless P2P communication between devices
e.g. #2 attach a sensor and create an Android app to make it work
Hack a Wii/Xbox/PS3
e.g., hack motion controller/balance board to help train stroke victims
Hack a Roomba robotic vacuum
Tack on a camera, hack the firmware …
Vision Algorithms for motion estimation, object/gesture recognition
Use a webcam or higher res camera, implement image processing techniques
Energy Harvesting Platform Demonstration
Use solar/vibration/sound/thermo/piezoelectric energy to supplement battery in sensors
Comprehensive literature review (individuals only)
e.g. RFIDs, cyber-physical systems, embedded cellphone architectures
Profile and summarize trends for a conference (e.g. ESWEEK 2009)
10
Course Outline
Hardware Components
Hardware
si gn )
Concept HW/SW De ut, …
Specification Partitioning Layo
,
e s is
yn th
( S
De
sig
Estimation - (C
om n
pil
Exploration a ti
on
, …)
Medical Entertainment
Handheld
Airplanes
Military
Non-Embedded Systems
PCs, servers, and notebooks
The future of computing!
Automobiles, entertainment,
communication, aviation,
handheld devices, military and
medical equipments. 13
An Example Embedded System
Digital Camera Block Diagram
14
Components of Embedded Systems
Memory Controllers Interface
Software
(Application Programs)
Processor
Coprocessors
ASIC
Converters
Market
8.9 10.5 13.1 14.1 15.8 17.4 19.3 21.0
($billions)
18
What can go wrong: BMW 745i
2, 000, 000 LOC
Windows CE OS
53 8-bit P
11 32-bit P
7 16-bit P
Multiple Networks
Buggy!
improper synchronization between two digital electronic control
units
would stall the engine and lead to a catastrophic accident in
some cases
Recent Toyota break/acceleration fiasco
19
Digital Convergence – Mobile Example
Entertainment
Communication
Broadcasting
Computing
Imaging Telematics
700 MM phones
Non 3D MM phones
600 Native API based phones
500
400
300
Latest IPhone 4 has 960x640
200
21
Growing Importance of ES
.. embedded chips form the backbone of the electronics driven world in
which we live ... they are part of almost everything that runs on electricity
[Mary Ryan, EEDesign, 1995]
22
Characteristics
Application Specific
Applications are known a priori
Optimize for cost, area, power, and performance
25
Aerospace
Flight control
Stability: real-time differential
feedback loops
Positioning & navigation
GPS, INS
Instrumentation
Data acquisition, display,
processing, and archive
Radar
Communication
26
Automobiles
Engine management
Fuel, ignition, timing
Emission control
Instrumentation
Data acquisition, display,
processing, and archive
Safety & stability
Airbags, active control
Entertainment & comfort
Radio, A/C, …
27
Robotics
Implies autonomous
operation
N physical degree of
freedom
Artificial intelligence
Control heavy
Mission oriented
Repair, search, rescue,
investigate, and perform
physically difficult tasks
28
Process Control
Industrial automation
Plant monitoring and production control
Similar to control systems but with emphasis on
management
29
Sensor Nets
Many sensor nodes each
capable of sensing,
computation/storage, and
communication
Structure safety
Search and rescue
Military use
Energy Efficient
Distributed Modern Sensor Nodes
30
Multimedia
An exercise in
Signals, analog to digital conversion,
quantization, sampling, processing, and
digital to analogue conversion
Information theory, entropy, Huffman
codes, compression, lossless
compression
Images, audio, video
Virtual Reality
Presentation
Quality of service
Think lots of data (formats and
standards too)!
31
Consumer Electronics
Home appliances
Yesterday’s appliances: add
computation
Tomorrow’s appliances: add
networking (Internet)
Office electronics
Integration
Electronic paper (filing, printing,
sending, and receiving)
Home/office automation
Common fantasy about the
automated home or office of the
future with lights and appliances
that operate by themselves or
with minimal effort
32
Network Components
Stitching LANs
Bridge
Connects two parts of the same network
Router
Link networks using different network
identities
Extending ports
Switch
Transmit to recipient only
Hub
Transmit to all
33
Medical Instruments
Perform diagnosis
(screening/evaluation)
Data collection
Appraisal of that data
Developing a plan of action
Observation or monitoring
Other applications:
Radiation therapy
Artificial hearts, arms, legs, …
34
E-Business
Information processing
systems
ATM
Cash registers
Scanners
Credit-card readers
Automation and
convenience
35
Summary of Application Domains
Looked at a number of application domains
36
Real-Time Systems
A systems where correctness depends on
logical results and the time the results are
produced
Safety-critical: incorrect operation leads to human
loss
Mission-critical: incorrect operation leads to failed
mission
37
Embedded System Design Challenges
38
Recent Design Challenges
Design Complexity
Multiple use-case applications
Ultra low power and thermal aware
Highly adaptive
Active power management (voltage scaling, etc.)
Alternative energy source (scavenge, solar, etc.)
Internet aware
IncorporateRF technologies
Networking capabilities
LargerOS, middleware, etc.
Understanding of many/changing protocols
Co-operative operation (trashcan & refrigerator)
Fault Tolerance
Security
39
Complexity Driver: Application Pull
1TOPS/W 3D TV
3D gaming
3D ambient
Structured
interaction
decoding
Ubiquitous
3D projectednavigation
Autonomous
display
driving
HMI by motion
StructuredGesture detection
encoding
100GOPS/W Expression
recognition
Gbit radio
Collision
H264 Adaptive avoidance
encoding route
Gesture Language
Emotion
dictation recognition recognition
10GOPS/W
UWB A/V Sign
5 GOPS/W Image
recognition 802.11n
streaming recognition
Mobile Si Xray
Base-band
H264
decoding Auto
Fully recognition
personalization
(security)
40
Design Complexity: Moore’s Law
Transistor capacity doubles every 18 months
Source: Intel
Intel Pentium
Intel 486
1,000,000 NVIDIA NV20 GPU
Motorola G4
Intel 386
AMD Athlon XP
Intel286 Intel Centrino
100,000 NVIDIA NV35 GPU
Intel8086 ATI Radeon X800
10,000
Intel8080
Intel
4004 Intel8008
1000
1970 1975 1980 1985 1990 1995 2000 2005
42
High-end: Embedded Processors!
Intel Pentium
Intel 486
1,000,000 NVIDIA NV20 GPU
Motorola G4
Intel 386
AMD Athlon XP
Intel286 Intel Centrino
100,000 NVIDIA NV35 GPU
Intel8086 ATI Radeon X800
10,000
Intel8080
Intel
4004 Intel8008
1000
1970 1975 1980 1985 1990 1995 2000 2005
43
Who wants to be a Millionaire
delayed entry
On-time a triangle, representing
Market rise Market fall market penetration
Delayed Triangle area equals revenue
D W 2W
Time Loss
On-time
Delayed The difference between the
entry entry on-time and delayed triangle
areas (shaded region)
47
Delayed Market Entry (cont.)
delayed entry
Market rise
On-time
Market fall
= (D(3W-D)/2W2)*100%
Delayed Try some examples
1. Lifetime 2W=52 wks, delay D=4 wks
D W 2W Loss = (4*(3*26 –4)/2*262) = 22%
Time
On-time
Delayed 2. Lifetime 2W=52 wks, delay D=10 wks
entry entry Loss = (10*(3*26 –10)/2*262) = 50%
si gn )
Concept HW/SW De ut, …
Specification Partitioning Layo
,
e s is
yn th
( S
De
sig
Estimation - (C
om n
pil
Exploration a ti
on
, …)