Computer Aided Design and Analysis of El
Computer Aided Design and Analysis of El
control
Victor M. Castaño, and Adolfo Bribiesca
A computer program for obtaining symbolic transfer functions of complex electronic circuits is
described. The program accepts both numerical and symbolic elements as input and it is
capable of performing some analysis of the calculated transfer function (Bode and Nyquist
plots, for example). The mathematical algorithm underlying the program is briefly discussed
as well.
INTRODUCTION l(s) can be obtained with the help of the transfer function
T(s) of the circuit:
Designing complex electronic networks (i.e., those which
include components such as transistors, diodes, voltage- O(s) = T(s)l(s) .
controlled current sources, and even integrated circuits)
has become an almost standard task in many experimental- Obviously, in order to be linear, T must behave as a
ly oriented physics laboratories, since the use and design of linear function, in the same sense of that oflinear algebra. 1
most modem ·experimental equipment requires a good In other words, obtaining and analyzing the transfer
knowledge of automatic control (a good example of this function T of an electronic circuit is all that is needed for
statement is the recent development of the scanning tunnel- characterizing the circuit itself (if the system is linear, of
ing microscope). Also, besides the design problem itself, it course). In principle, the transfer function can contain ei-
is extremely important to analyze, from a control theory ther numerical and symbolic coefficients for the variable s
point of view, the behavior of the resulting electronic (for example, 30s2 or C3 s, C3 being, for instance, the sym-
network, for instance, in terms of its frequency response bolic value of a capacitor in the circuit) or combinations of
under various conditions. 1•2 both. In practice, however, most algorithms for obtaining
On the other hand, given the size and complexity of an transfer functions out of big circuits (i.e., bigger than 100
actual electronic network, it is impossible to even think of nodes) work only with purely numerical values, 2 in such a
performing such design and analysis in a purely theoretical way that the typical output of one of those programs is a
basis. Thus the digital computer arises in these cases as an table containing the actual value of the transfer function for
invaluable tool for the experimentalist. The problem, how- a given frequency. Obviously, this constitutes a serious li-
ever, is that most available algorithms for performing com- mitation if a versatile circuit is to be designed because, in
puter-aided design in electronics are either limited in the many cases, some of the parameters of the circuit have to be
number and type of components they are able to handle or changed under different operation conditions and recalcu-
are very complicated and not user-friendly at all, 2 the latter lating the numerical transfer function each time a single
point being especially important for those people who are parameter has varied would be highly inconvenient and
not professionals in electronics (and most physicists are impractical.
not!). This present report describes a computer program As for the circuits containing some symbolic ele-
developed for a medium-size computer (Digital's VAX- ments, various computational approaches have been pro-
11/780), as well as some examples of the application of the posed in the specialized literature (see, for example, Ref. 1)
program to typical electronic networks. Some of the char- and, in practically all the cases, they are based in topologi-
acteristics and advantages of the algorithm in which our cal considerations about a graph associated with the circuit
program is based4 are also discussed and compared to other (the so-called tree-enumeration technique, 2-s for exam-
approaches. ple). The practical problem being, nevertheless, the enor-
mous computing time required for calculating the transfer
I. GENERAL function in circuits bigger than 100 nodes and which con-
As it is well known, the output O(s) of a linear system (sis tain more than, let's say, 30 symbolic components. 4 •5 For-
the frequency-domain variable) for a given input signal tunately, some authors have proposed some variants of the
standard topological methods that allow us to use some
"Current address: l.T.A.M., Rio Hondo I, San Angel, Mexico, D.F. 01000, Mexi-
numerical analysis type of algorithms and then enable us to
co. produce more efficient programs. Specifically, Alderson
Denominator:
(1/g 1 )(4.S) +
{1/g 1 )(1/g2 )(S + !.) +
(llg2)(3. s + 3.) +
FIG. I. Example circuit, the values of the resistances are in ohms and the (3.S)
value of the capacitor is in Farads.
in the program. First of all, the program is strongly VAX 111. EXAMPLES
dependent and an effort to make it more friendly to other In order to illustrate the operation of the program, a couple
systems should be made. Second, the graphics capabilities of rather simple examples were chosen. First, consider the
included are very poor and some small modifications are circuit of Fig. 1 that appears in the original article by
needed in order to attach the program to some of the pow- Alderson and Lin4 and, as can be seen in the figure, in-
erful graphics systems available today. In any case, the ac- cludes two symbolic resistors (g 1 and g 2 ) • The reader can
tual program is obtainable from the authors and anyone
easily prove that the transfer function voutput (s)//input (s)
interested should contact them.
is equal to
voutput (s)
/input (s)
~
.. The authors wish to thank Professor Miguel Jose-Yaca-
-1 man, head of the Instituto de Fisica of the Universidad
0 2 3 4 5
Nacional Aut6noma de Mexico (IFUNAM) for his sup-
log frequency (Hz l port and encouragement during the development of this
work. This work is dedicated to Professor Tomas Brody, in
memoriam.
element) or not (when it has a numerical value). The last
column in Table I has the value or the name (if symbolic)
of the element.
The results from the program are shown in Table II.
As expected, they coincide with the theoretical value of the
transfer function (see equation above). Furthermore, the
program is capable of calculating much more complicated
networks (up to I 00 node circuits) that include transistors, REFERENCES
diodes, and operational amplifiers (OPAM's). The trick I. R. P. de la Barriere, Optimal Control Theory (Dover, New York, 1967).
2. L. 0. Chua and P. M. Lin, Computer-aided Analysis ofElectronic Circuits: Algor-
for doing so is rather simple: one only has to model those ithms and Computational Techniques (Prentice-Hall, Englewood Cliffs, NJ,
elements as a series of capacitors, resistances, and depen- 1975).
dent current and voltage sources in the standard procedure 3. J. Millman and C. C. Halkias, Integrated Electronics: Analog and Digital Circuits
and Systems (McGraw-Hill Kogakusha Ltd., Tokyo, 1975).
familiar to electronics experts. 3 Then, by storing the data in 4. G. E. Alderson and P. M. Lin, IEEE Trans. Circ. Theory CT-20, 43 ( 1973 ).
a special file, the operator of the program has only to type, 5. A. Bribiesca, B.S. thesis, Universidad Iberoamericana, Mexico City ( 1987).
6. A. Bribiesca and V. M. Castano, to be published in Ciencia (Mexico City).
for example, the word "Diode" and the program knows 7. V. M. Castano and A. Bribiesca, Proc. Int. Conf. Comput., Mexico City (in
what to do in that case. press).
The second example is a fourth-order Butterworth 8. B. Carre, Graphs and Networks, Oxford Applied Mathematics and Computing
Science Series (Clarendon, Oxford, 1979).
low-pass filter 3 with a cutoff frequency of I kHz (Fig. 2). 9. R. L. Burden, J. D. Faires, and A. C. Reynolds, Numerical Analysis (Prindle,
This example is interesting since the circuit includes two Weber& Schmidt, Boston, 1978).