Professional Documents
Culture Documents
Today programme
Introduction to Embedded Systems What are embedded systems? Challenges in embedded computing system design. Design methodologies.
Copyright Note:
Winter-Spring 2001
analog
analog
Winter-Spring 2001
Embedded Systems
Advantages
Winter-Spring 2001
Winter-Spring 2001
uP early history
Designed for RT operations. Originally designed to control an aircraft simulator. First uP: Intel 4004, early 1970s. HP-35 calculator: comprising several chips, 1972.
Codesign of Embedded Systems 6
uP history
Winter-Spring 2001
Starting in 1970s. Control fuel/air mixture, engine timing, etc. Multiple modes of operation: warm-up, cruise, hill climbing, etc. Provides lower emissions, better fuel efficiency. Native example: Cadillac Iran!
Codesign of Embedded Systems 7
Winter-Spring 2001
uP varieties
uController: includes
Winter-Spring 2001
Application examples
Simple control: front panel of microwave oven, etc Canon EOS 3 has three microprocessors.
Analog TV: channel selection, etc. Digital TV: programmable CPUs + hardwired logic
Codesign of Embedded Systems 9
Winter-Spring 2001
4-bit uController checks seat belt; uControllers run dashboard devices; 16/32-bit uP controls engine.
Native examples
Winter-Spring 2001
Winter-Spring 2001
sensor
brake
brake
sensor
Winter-Spring 2001
brake
sensor
Codesign of Embedded Systems 12
Functional requirements
Non-functional requirements
Winter-Spring 2001
Functional Requirements
RT operation
Hard RT: missing deadline causes failure. Soft RT: missing deadline results in degraded performance.
Winter-Spring 2001
Many systems are multi-rate: must handle operations at widely varying rates.
Codesign of Embedded Systems 14
Non-functional requirements
Many embedded systems are mass-market items that must have low manufacturing costs.
Winter-Spring 2001
15
Design teams
Often designed by a small team of designers. Often must meet tight deadlines.
6 month market window is common. Cant miss back-to-school window for calculator.
Winter-Spring 2001
16
Alternatives:
uPs are often very efficient: can use same logic to perform many different functions. uPs simplify the design of families of products.
Codesign of Embedded Systems 17
Winter-Spring 2001
uP uses much more logic to implement a function than does custom logic. But uP is often at least as fast:
Winter-Spring 2001
18
Power
Custom logic is a clear winner for low power devices. Modern uP offer features to help control power consumption. Software design techniques can help reduce power consumption.
Winter-Spring 2001
20
How big is the CPU? Memory? Faster hardware or cleverer software? Turn off unnecessary logic? Reduce memory accesses?
Winter-Spring 2001
21
Is the specification correct? Does the implementation meet the spec? How do we test for real-time characteristics? How do we test on real data? Observability, controllability? What is our development platform?
Winter-Spring 2001
22
23
Design methodologies
A procedure for designing a system. Understanding your methodology helps you ensure you didnt skip anything. Compilers, software engineering tools, computer-aided design (CAD) tools, etc., can be used to:
Winter-Spring 2001
Design goals
Functional requirements
Performance.
Functionality and user interface. Manufacturing cost. Power consumption. Other requirements (physical size, etc.)
Codesign of Embedded Systems 25
Non-functional requirements
Winter-Spring 2001
Levels of abstraction
requirements
specification architecture component design system integration
Winter-Spring 2001 Codesign of Embedded Systems 26
Top-down design:
start from most abstract description; work to most detailed. work from small components to big system.
Bottom-up design:
Winter-Spring 2001
Stepwise refinement
analyze the design to determine characteristics of the current state of the design; refine the design to add detail.
Winter-Spring 2001
28
Requirements
Plain language description of what the user wants and expects to get. May be developed in several ways:
talking directly to customers; talking to marketing representatives; providing prototypes to users for comment.
Winter-Spring 2001
29
Functional requirements:
Non-functional requirements:
time required to compute output; size, weight, etc.; power consumption; reliability; etc.
Codesign of Embedded Systems 30
Winter-Spring 2001
Winter-Spring 2001
31
lat: 40 13 lon: 32 19
Winter-Spring 2001 Codesign of Embedded Systems 32
Scotch Road
Moving map obtains position from GPS, paints map from local database.
I-78
Functionality: For automotive use. Show major roads and landmarks. User interface: At least 400 x 600 pixel screen. Three buttons max. Pop-up menu. Performance: Map should scroll smoothly. No more than 1 sec power-up. Lock onto GPS within 15 seconds. Cost: $500 street price = approx. $100 cost of goods sold.
Codesign of Embedded Systems 33
Winter-Spring 2001
Physical size/weight: Should fit in hand. Power consumption: Should run for 8 hours on four AA batteries.
Winter-Spring 2001
34
Winter-Spring 2001
35
Specification
should not imply a particular architecture; provides input to the architecture design process.
May include functional and non-functional elements. May be executable or may be in mathematical form for proofs.
Winter-Spring 2001
36
GPS specification
Should include:
What is received from GPS; map data; user interface; operations required to satisfy user requests; background operations needed to keep the system running.
Codesign of Embedded Systems 37
Winter-Spring 2001
Architecture design
Software components:
Winter-Spring 2001
database
user interface
Winter-Spring 2001
39
panel I/O
Winter-Spring 2001
40
pixels
user interface
timer
Winter-Spring 2001
41
Must spend time architecting the system before you start coding. Architecture components
Some are ready-made, Some can be modified from existing designs Others must be designed from scratch.
Winter-Spring 2001
42
System integration
Have a plan for integrating components to uncover bugs quickly, test as much functionality as early as possible.
Winter-Spring 2001
43
Embedded systems pose many design challenges: design time, deadlines, power, etc. Design methodologies help us manage the design process.
Codesign of Embedded Systems 44
Winter-Spring 2001
Homework
part 1: un-encoded transmitter refer to the homework definition page Esfand 6th
Due date:
Winter-Spring 2001
45