Chapter2 2017SemIEmbSysStd 4in1
Chapter2 2017SemIEmbSysStd 4in1
Introduction
Design Challenges
CHAPTER 2 Design Process
EMBEDDED SYSTEM DESIGN Example
PROCESS Traditional Embedded System Development
Modern
M d E
Embedded
b dd d System
S t D
Development
l t
Hardware Software Co-Design
Comparison and Application Areas
1
strive to create both hardware and software, that To best meet the optimization challenge the designer must be
An expert in HW/SW technologies
complement
p each other
FFamiliar
ili with
ith State‐of‐the
St t f th artt design
d i technologies
t h l i ini both
b th HW and
d
SW design
Embedded systems projects aren’t just either “software
on small machines.
machines ” nor “writing
writing ‘C’
C code
code” 3 A design
d i process should
h ld take
t k into
i t accountt the
th design
d i metrics
ti 4
through out the development process
DESIGN PROCESS DESIGN PROCESS…
Major
j abstraction levels of the design
g pprocesses are Two types of design process
Top‐Down
Requirements, Specification, Architecture, Components, Bottom‐Up
System Integration
These are important steps in developing an embedded Top Down
Top‐Down
system Begins with the most abstract description of the system and
conclude with the concrete detail
Most favored approach
pp
Bottom‐Up
Start with components to build the system, ending up with
particular requirements
U d when
Used h we do d nott have
h perfect
f t insight
i i ht into
i t how
h l t stages
later t off
the design process will turn out
Used when we have the less experience with the design of such
systems
5 Most preferred approach for beginners 6
7 8
DESIGN PROCESS – REQUIREMENTS… DESIGN PROCESS – REQUIREMENTS…
Requirements Form entries Requirements Form entries…
Name Performance
Essential that the performance requirements be identified early since they must
Giving a name to the project not only simplifies talking about it to be carefully measured during implementation, to ensure that the system works
other people but can also crystallize the purpose of the machine properly
Purpose Manufacturing cost
Includes primarily the cost of the hardware components
This should be a brief one or two‐line description of what the system is You should have some idea of the eventual cost range
supposed to do
Power
Inputs and outputs A rough idea of how much power the system can consume would be helpful.
Encompass a wealth of detail Decision whether the machine will be battery powered or plugged into the wall
Types of data: Analog electronic signals? Digital data? Mechanical inputs? will be based on this information
Data characteristics: Periodically arriving data, such as digital audio samples? Physical size and weight
Occasional user inputs? How many bits per data element? Give some indication of the physical size of the system to help guide certain
Types of I/O devices: Buttons? Analog/digital converters? Video displays? architectural decisions
A desktop machine has much more flexibility in the components used than, for
Functions 9 example,
l a lapel
l l mounted
t d voice
i recorder
d 10
A more detailed description of what the system does
DESIGN PROCESS
DESIGN PROCESS – ARCHITECTURE… HARDWARE AND SOFTWARE COMPONENTS
How do we know our HW and SW architectures meet The architectural description tells us what components we need
design metrics ? The component design effort builds those components in
Estimate the properties of the components of the block conformance to the architecture and specification
diagram The components will in general include both HW & SW modules
Accurate estimation derives from experience Some of the components will be ready‐made (CPU, memory
Create simplified models for more accurate estimations chips…)
When creating Embedded SW module,
module ensure the system runs on
properly in real time, and doesn’t take more memory space
Sound estimates of all non‐functional requirements
Carefully analyze the power consumption
during the architecture phase are crucial, since decision E
Example:
l Memory
M transactions
i must be
b carefully
f ll planned
l d to avoid
id reading
di
based on bad data will show up during the final phase of the same data several times, since memory accesses are the major source
design of power consumption
23 24
DESIGN PROCESS
HARDWARE AND SOFTWARE COMPONENTS… DESIGN PROCESS - SYSTEM INTEGRATION
Example: Hardware and Software component of GPS moving map Deal with the integration/assembly of the components created
GPS receiver After the components are built, they are integrated
A predesigned standard HW component Bugs are typically found during system integration
Topographic
p g p software However, good planning, phase level development, good test runs
A standard SW module with standard routines to access DB at each phase can assist in finding bugs well/early
PCB By debugging few simple bugs early, more complex or other bugs
Houses custom and off
off‐the
the shelf components can be uncovered
Lots of custom programming also required System integration is difficult because it usually uncovers problems
The debugging facilities for ES are usually much more limited than
the desktop systems
Careful attention to inserting appropriate debugging facilities
during design can help ease system integration problems
25 26
33