Download Bournemouth University

Transcript
BEHAVIOURAL SIMULATION OF MIXED ANALOGUE/DIGITAL CIRCUITS
and doesn't provide a root object class. The C++ approach removes some of the flexibility
from the programmer (e.g. a floating point number cannot be directly assigned to an
integer) but provides a high execution speed. The degree to which a program adopts a true
be
flexibility
between
trade-off
oriented
approach
can
viewed
as
object
a
(decisions not
by
(decisions
the compiler). Since the execution
run-time)
and
speed
until
made
made
decided
is
it
of
a
mixed-signal
simulator
a
major
not to adopt a
consideration,
was
speed
true 00 approach. This meant that the class hierarchy had to be sufficiently rich to
00
the
true
system whilst giving operating speedsclose to those
of
a
advantages
maintain
distinct
This
led
to
the
two
traditional,
creation
classes of
of
structured
approaches.
of
objects: classesto represent the simulation models and classes to represent the signals that
be
between
These
can
viewed as the equivalents of components and
models.
are passed
wires in a physical system.
4.2.1 Signal Classes.
The root of the class hierarchy representing signals is the TSignal class shown in Figure
4-1. The rectangle representing each class is split into three sections: the first section
contains the class name; the second section contains the class attributes (i. e. data items);
the third section contains the class operators (i. e. methods or functions). The TSignal class
represents a single PWL or PWC point. It contains two attributes, DataP and TimeP,
TSignal
TimeP
Data
Inc
operator+
operator+=
operator-=
operator=
Point
Time
TSignal
I
PWLSignal
BitSignal
Figure 4-1. Root Classes for Representing
Page4-2
Signals.