Professional Documents
Culture Documents
Tom Egel
Mentor Graphics
w w w. m e n t o r. c o m / s y s t e m v i s i o n
ABSTRACT Using SystemVision with VHDL-AMS, the engineer-
The low cost of microcontrollers makes them increas- ing team can graphically create a virtual system proto-
ingly popular for electronic control of a wide range of type by interconnecting the various subsystem compo-
embedded systems. An embedded mixed-signal or nent models. The resulting system model can then be
mechatronic system is one that uses a microcontroller exercised at successive stages in the design process to
to control some physical aspect of the system such as determine if the system specifications are being met.
motion, speed, temperature, and so forth. The added
dimension of software presents a significant challenge EMBEDDED MECHATRONIC SYSTEM
to the design, integration and verification of this class DESIGN CHALLENGE
of systems. The challenge of embedded mechatronic system design is
the need to control the behavior of components contain-
This paper provides an overview of how SystemVision ing heterogeneous technologies. A typical embedded
by Mentor Graphics can be used for the design and mechatronic system is depicted in Figure 1.
verification of embedded mechatronic systems.
SystemVision utilizes the IEEE standard VHDL-AMS
language as the key technology for describing the
behavior of the physical hardware along with the con-
trolling software algorithm. The resulting unified sys-
tem model provides invaluable insight to the system
engineer throughout the design process
INTRODUCTION
As mechatronic system requirements become more Figure 1: Embedded mechatronic system
complex and demanding, the use of microcontrollers
These systems exist in many forms ranging from auto-
for more precise control continues to increase.
motive subsystems to industrial controls to consumer
Current system integration methods rely on the avail-
appliances. Common to each are sensors that convert
ability of the physical hardware and occur very late in
physical quantities to electronic signals, a microcon-
the design cycle. Any problems that arise at this time
troller for digital processing and actuators that produce
often result in expensive design or schedule changes.
a physical output from the processed information. The
Having a system model that incorporates both the
microcontroller adds the dimension of software into
hardware and software allows virtual system integra-
the overall system design process. Coordinating the
tion to occur well before the physical hardware is
development of hardware and software is a major chal-
available.
lenge to embedded mechatronic system design.
MIXED-TECHNOLOGY MODELING
The ability to combine modeling abstractions within a
To fully understand an embedded mechatronic system,
single system model is one of the strengths of the
the non-electrical effects of the sensors, actuators and
VHDL-AMS language. In addition, the multi-technol-
plant must be considered. The successful conversion
ogy constructs in VHDL-AMS provide the ability to
of physical quantities into electrical signals (and vice
model analog and digital electronics interacting with
versa) involves having a full understanding of the
non-electrical components in a complete system
interaction between these technologies. Only with
model. The following sections briefly describe how
accurate models of these non-electrical devices com-
the VHDL-AMS language addresses the various
bined with the electronics entirely in a closed loop sys-
aspects of hardware modeling with the power and flex-
tem can proper analysis be achieved. Using VHDL-
ibility needed to solve complex system design and
AMS, system integration can begin before physical
analysis tasks.
hardware is available by creating a system model that
HIGH-LEVEL MODELING incorporates a combination of the technologies pres-
In the early stages of a top-down design process, high- ent. This may include the mechanical, magnetic,
level modeling techniques can provide useful insight hydraulic, thermal effects or any other domain that can
into the overall system performance. Signal flow or be described using algebraic or differential equations.
transfer function modeling techniques are used to
MODEL ABSTRACTIONS
describe the system at a purely mathematical level.
A key requirement for effective system modeling is
This method is useful for examining system perform-
the ability to describe the components at multiple lev-
ance issues like stability and for exploring compensa-
els of abstraction. This is particularly useful for top-
tion alternatives. VHDL-AMS provides constructs to
down design methods where the detail is added as the
create transfer function models in both the s-domain
system design progresses. VHDL-AMS provides a
and z-domain.
flexible modeling environment allowing the engineer
ANALOG, DIGITAL AND MIXED-SIGNAL MODELING to focus on the details of a specific part of the system,
In a typical embedded mechatronic system, the elec- include it in the context of the overall system design,
tronic hardware is often a combination of analog and and optimize the overall system simulation speed and
digital circuitry, each of which requires significantly accuracy.
different modeling techniques. Analog quantities are
continuous in time and can take on any value while As mentioned earlier, block diagram or signal flow
digital signals are discrete in time and are typically methods are often used early in the design definition