Embedded System Design Issues
Embedded System Design Issues
Philip Koopman
Engineering Design Research Center
Carnegie Mellon University
Pittsburgh, PA 15213
koopman@cs.cmu.edu
http://www.cs.cmu.edu/~koopman/
SUPPORT/ PRODUCTION
MAINTENANCE 5.3. Logistics and repair
DEPLOYMENT Whenever an embedded computer design is created or
changed, it affects the downstream maintenance of the prod-
Figure 2. An embedded system lifecycle.
uct. A failure of the computer can cause the entire system to
be unusable until the computer is repaired. In many cases ponents are no longer economically available, the entire
embedded systems must be repairable in a few minutes to a embedded computer must sometimes be redesigned or up-
few hours, which implies that spare components and main- graded. This redesign might need to take place even if the
tenance personnel must be located close to the system. A system is no longer in production, depending on the avail-
fast repair time may also imply that extensive diagnosis and ability of a replacement system. This problem is a signifi-
data collection capabilities must be built into the system, cant concern on the Distributed example system.
which may be at odds with keeping production costs low. Design challenge:
Because of the long system lifetimes of many embedded · Cost-effectively update old designs to incorporate new
systems, proliferation of design variations can cause signifi- components.
cant logistics expenses. For example, if a component design
is changed it can force changes in spare component inven-
tory, maintenance test equipment, maintenance procedures, 6. Business model
and maintenance training. Furthermore, each design change The business models under which embedded systems are
should be tested for compatibility with various system con- developed can vary as widely as the applications themselves.
figurations, and accommodated by the configuration man- Costs, cycle time, and the role of product families are all
agement database. crucial business issues that affect design decisions.
Design challenge:
· Designs optimized to minimize spares inventory.
6.1. Design vs. production costs
· High-coverage diagnosis and self-test at system level, not
just digital component level. Design costs, also called Non-Recurring Engineering
costs (NRE), are of major importance when few of a particu-
lar embedded system are being built. Conversely, produc-
5.4. Upgrades
tion costs are important in high-volume production.
Because of the long life of many embedded systems, Embedded systems vary from single units to millions of
upgrades to electronic components and software may be units, and so span the range of tradeoffs between design
used to update functionality and extend the life of the em- versus production costs.
bedded system with respect to competing with replacement At the low-volume end of the spectrum, CAD tools can
equipment. While it may often be the case that an electronics help designers complete their work with a minimum of
upgrade involves completely replacing circuit boards, it is effort. However, at the high-volume end of the spectrum the
important to realize that the rest of the system will remain designs may be simple enough and engineering cost such a
unchanged. Therefore, any special behaviors, interfaces, small fraction of total system cost that extensive hand-opti-
and undocumented features must be taken into account when mization is performed in order to reduce production costs.
performing the upgrade. Also, upgrades may be subject to CAD tools may be able to outperform an average engi-
recertification requirements. neer at all times, and a superior engineer on very large
Of special concern is software in an upgraded system. designs (because of the limits of human capacity to deal with
Legacy software may not be executable on upgraded re- complexity and repetition). However, in small designs some
placement hardware, and may not be readily cross-compiled embedded computer designers believe that a superior human
to the new target CPU. Even worse, timing behavior is engineer can outperform CAD tools. In the Small system
likely to be different on newer hardware, but may be both example a programmer squeezed software into a few hun-
undocumented and critical to system operation. dred bytes of memory by hand when the compiler produced
Design challenge: overly large output that needed more memory than was
· Ensuring complete interface, timing, and functionality available. It can readily be debated whether CAD tools or
compatibility when upgrading designs. humans are “better” designers, but CAD tools face skepti-
cism in areas that require extraordinary optimization for size,
performance, or cost.
5.5. Long-term component availability Design challenge:
When embedded systems are more than a few years old, · Intelligently trade off design time versus production cost.
some electronic components may no longer be available for
production of new equipment or replacements. This prob-
lem can be especially troublesome with obsolete processors
6.2. Cycle time
and small-sized dynamic memory chips. The cycle time between identification of a product oppor-
When a product does reach a point at which spare com- tunity and product deployment (also called Time to Market)
can be quite long for embedded systems. In many cases the on simulation and CAD tools to provide engineering trade-
electronics are not the driving force; instead, product sched- offs based on accurate performance and cost predictions.
ules are driven by concerns such as tooling for mechanical Computer designers venturing into the embedded arena
components and manufacturing process design. Superfi- must realize that their culture (and the underlying tool infra-
cially, this would seem to imply that design time for the structure) are unlike what is commonly practiced in some
electronics is not an overriding concern, but this is only other engineering disciplines. But, because embedded sys-
partially true. tem design requires a confluence of engineering skills, suc-
Because the computer system may have the most malle- cessful computer designers and design methodologies must
able design, it may absorb the brunt of changes. For exam- find a harmonious compromise with the techniques and
ple, redesign of hardware was required on the Mission methodologies of other disciplines as well as company man-
Critical example system when it was found that additional agement. Also, in many cases the engineers building em-
sensors and actuators were needed to meet system perform- bedded computer systems are not actually trained in
ance goals. On the Small example system, delays in making computer engineering (or, perhaps not even electrical engi-
masked ROM changes in order to revise software dominate neering), and so are not attuned to the culture and method-
concerns about modifications (and programmable memory ologies of desktop computer design.
is too expensive). So, although the initial design is often not
in the critical path to product deployment, redesign of the
computer system may need to be done quickly to resolve 7.1. Computer culture vs. other cultures
problems. A specific problem is that computer design tools have
Design challenge: progressed to the point that many believe it is more cost-ef-
· Rapid redesign to accommodate changing form factors, fective to do extensive simulation than build successive
control algorithms, and functionality requirements. prototypes. However, in the mechanical arena much exist-
ing practice strongly favors prototyping with less exhaustive
up-front analysis. Thus, it may be difficult to convince
6.3. Product families project managers (who may be application area specialists
In many cases embedded system designs are not unique, rather than computer specialists) to spend limited capital
and there are a variety of systems of various prices and budgets on CAD tools and defer the gratification of early
capabilities forming a product family. To the extent that prototype development in favor of simulation.
system designers can reuse components, they lower the total Design challenge:
cost of all systems in the product family. · Make simulation-based computer design accessible to non-
However, there is a dynamic tension between overly specialists.
general solutions that satisfy a large number of niche require-
ments, and specifically optimized designs for each point in
a product family space. Also, there may be cases in which 7.2. Accounting for cost of engineering design
contradictory requirements between similar systems prevent One area of common concern is the effectiveness of using
the use of a single subsystem design. In the Mission Critical engineers in any design discipline. But, some computer
and Small examples different customers require different design CAD tools are very expensive, and in general organi-
interfaces between the embedded system and their equip- zations have difficulty trading off capital and tool costs
ment. In the Distributed example regulatory agencies im- against engineering time. This means that computer design-
pose different safety-critical behavior requirements ers may be deprived of CAD tools that would reduce the total
depending on the geographic area in which the system is cost of designing a system.
deployed.
Also, in high-volume applications engineering costs can
Design challenge: be relatively small when compared to production costs.
· Customize designs while minimizing component variant Often, the number of engineers is fixed, and book-kept as a
proliferation. constant expense that is decoupled from the profitability of
any particular system design, as is the case in all four
example systems. This can be referred to as the “Engineers
7. Design culture Are Free” syndrome. But, while the cost of engineering time
Design is a social activity as well as a technical activity. may have a small impact on product costs, the unavailability
The design of desktop computers, and CPUs in particular, of enough engineers to do work on all the products being
has matured in terms of becoming more quantitative in designed can have a significant opportunity cost (which is,
recent years. With this new maturity has come an emphasis in general, unmeasured).
Design challenge: current form. Such methodologies may not be cost-effective
· Improved productivity via using tools and methodologies given constraints on categories of expenditures, may not be
may be better received by managers if it is perceived to seen as worthwhile by non-computer-trained professionals,
increase the number of products that can be designed, or may simply be solving the wrong problems.
rather than merely the efficiency of engineers on any given Recent interest in hardware/software codesign is a step in
product design effort. This is a subtle but, in practice, the right direction, as it permits tradeoffs between hardware
important distinction. and software that are critical for more cost-effective embed-
ded systems. However, to be successful future tools may
well need to increase scope even further to include life-cycle
7.3. Inertia issues and business issues.
In general, the cost of change in an organization is high The tutorial slide presentation presented at the conference
both in terms of money and organizational disruption. The aug ments th is paper, and may be found at:
computer industry can be thought of as being forced to http://www.cs.cmu.edu/~koopman/iccd96/
change by inexorable exponential growth in hardware capa-
bilities. However, the impact of this growth seems to have Acknowledgements
been delayed in embedded system development. In part this
This work was sponsored, in part, by DARPA contract
is because of the long time that elapses between new tech-
DABT63-95-C-0026, and ONR contract N00014-96-1-
nology introduction and wide-scale use in inexpensive sys-
0202.
tems. Thus, it may simply be that complex designs will force
updated CAD tools and design methodologies to be adopted
for embedded systems in the near future. References
On the other hand, the latest computer design technolo- [1] Bernard Cole, “Architectures overlap applications”, Electronic
gies may not have been adopted by many embedded system Engineering Times, March 20, 1995, pp. 40,64-65.
makers because they aren’t necessary. Tool development [2] Stephanie White, Mack Alford & Julian Hotlzman, “Systems
that concentrates on the ability to handle millions of transis- Engineering of Computer-Based Systems.” In: Lawson
tors may simply not be relevant to designers of systems using (ed.), Proceedings 1994 Tutorial and Workshop on Systems
4- and 8-bit microprocessors that constitute the bulk of the Engineering of Computer-Based Systems, IEEE Computer
embedded CPU market. And, even if they are useful, the Society, Los Alamitos CA, 1994, pp. 18-29.
[3] Design Automation for Embedded Systems: an international
need for them may not be compelling enough to justify the
journal, Kluwer Academic, ISSN 0929-5585.
pain and up-front expense of change so long as older tech-
[4] Embedded Systems Programming, Miller Freeman, San Fran-
niques work. cisco, ISSN 1040-3272.
That is not to say that new tools aren’t needed, but rather [5] Daniel D. Gajski, Frank Vahid, Sanjiv Narayan & Jie Gong,
that the force of cultural inertia will only permit adoption of Specification and Design of Embedded Systems, PTR Pren-
low-cost tools with significant advantages to the problem at tice Hall, Englewood Cliffs NJ, 1994.
hand. [6] Jack Ganssle, Art of programming Embedded Systems, Aca-
Design challenge: demic Press, San Diego, 1992.
[7] Don Thomas & Rolf Ernst (eds.), Proceedings: Fourth Inter-
· Find/create design tools and methodologies that provide national Workshop on Hardware/Software Co-Design,
unique, compelling advantages for embedded design.
IEEE Computer Society, Los Alamitos CA, 1996.
[8] David Patterson & John Hennessy, Computer Architecture: a
Quantitative Approach, Morgan Kaufmann, San Mateo CA,
8. Conclusions 1990.
Many embedded systems have requirements that differ [9] Philip Koopman, “Perils of the PC Cache”, Embedded Systems
significantly both in details and in scope from desktop com- Programming, May 1993, 6(5) 26-34.
puters. In particular, the demands of the specific application [10] Shem-Tov Levi & Ashok Agrawala, Fault Tolerant System
and the interface with external equipment may dominate the Design, McGraw-Hill, New York, 1994.
system design. Also, long life-cycles and in some cases [11] Daniel Siewiorek & Robert Swarz, Reliable Computer Sys-
tems: design and evaluation (2nd edition), Digital Press,
extreme cost sensitivity require more attention to optimiza-
Burlington MA, 1992.
tion based on these goals rather than maximizing the com- [12] Nancy Leveson, Safeware: system safety and computers,
putational throughput. Addison-Wesley, Reading MA, 1994.
The business and cultural climates in many embedded [13] Georgette Demes et al., “The Engineering Design Research
system design situations are such that traditional simulation- Center of Carnegie Mellon University,” Proceedings of the
based computer design techniques may not be viable in their IEEE, 81(1) 10-24, January 1993.