5
EASY – a System for Computer-Aided Examination of Analog Circuits G. Dr¨ oge 1 M. Thole 2 E.-H. Horneber 2 1 SICAN Braunschweig GmbH 2 Institut f¨ ur Netzwerktheorie Richard-Wagner-Straße 1 und Schaltungstechnik D-38106 Braunschweig Langer Kamp 19c D-38106 Braunschweig Abstract The EASY analog design system includes a qualitative analysis tool for examination of the principal aptitude of a chosen circuit structure, as well as a symbolic analysis component. It allows the deduction of compact but suffi- ciently accurate design equations. These tools support the first steps of the design process and give insight in the be- havior of the analog circuit. 1 Introduction Apart from tools for simulation and sizing of circuits with fixed structures like opamps, CAD software that sup- ports the design of general analog circuits is rarely avail- able. Increasing attention is attracted on symbolic analysis of circuits which is tackled by a number of research groups [6, 8, 9]. The Experimental Analog Design System EASY aims at the support of the very first design steps, i. e. the se- lection and examination of possible circuit structures and the automatic deduction of design formulae. This is per- formed by the two main components shown in figure 1: the qualitative analysis component and the component for symbolic setup and approximation of design equations. It is based on the computer algebra program MACSYMA [7] Figure 1: EASY System that is used for equation manipulation, sensitivity calcula- tion and symbolic pole/zero analysis. Evaluating the sym- bolic results for some estimated parameter values (’design points’), compact design formulae can be deduced. They allow to identify the significant design parameters and, therefore, giving insight in the circuit’s behavior. The qual- itative analysis supports the examination of non-standard circuit structures with no preassigned element values. This is done by introducing qualitative values to analyze circuit states and the circuit’s behavior. Clearly, sizing of circuits of application of symbolic analysis only makes sense, if the principle design objective is covered by the circuit’s struc- ture. In the following, an overview on the tools and options of the EASY system is given, demonstrated on the basis of the example circuit of a two stage transistor amplifier [1] shown in figure 2 (a detailed discussion of the algorithms can be found in the references). Figure 2: Two stage coupled amplifier 2 Qualitative Tools At the beginning of a design process the designer has to verify which circuit structure is suitable for a given pur-

[IEEE Comput. Soc Design, Automation and Test in Europe - Paris, France (23-26 Feb. 1998)] Proceedings Design, Automation and Test in Europe - EASY-a system for computer-aided examination

  • Upload
    e-h

  • View
    214

  • Download
    0

Embed Size (px)

Citation preview

EASY – a System for Computer-Aided Examination of Analog Circuits

G. Droge1 M. Thole2 E.-H. Horneber2

1SICAN Braunschweig GmbH 2Institut fur NetzwerktheorieRichard-Wagner-Straße 1 und SchaltungstechnikD-38106 Braunschweig Langer Kamp 19c

D-38106 Braunschweig

Abstract

The EASY analog design system includes a qualitativeanalysis tool for examination of the principal aptitude ofa chosen circuit structure, as well as a symbolic analysiscomponent. It allows the deduction of compact but suffi-ciently accurate design equations. These tools support thefirst steps of the design process and give insight in the be-havior of the analog circuit.

1 Introduction

Apart from tools for simulation and sizing of circuitswith fixed structures like opamps, CAD software that sup-ports the design of general analog circuits is rarely avail-able. Increasing attention is attracted on symbolic analysisof circuits which is tackled by a number of research groups[6, 8, 9].

The ExperimentalAnalog DesignSystemEASYaimsat the support of the very first design steps, i. e. the se-lection and examination of possible circuit structures andthe automatic deduction of design formulae. This is per-formed by the two main components shown in figure 1:the qualitative analysis component and the component forsymbolic setup and approximation of design equations. Itis based on the computer algebra programMACSYMA[7]

Figure 1: EASY System

that is used for equation manipulation, sensitivity calcula-tion and symbolic pole/zero analysis. Evaluating the sym-bolic results for some estimated parameter values (’designpoints’), compact design formulae can be deduced. Theyallow to identify the significant design parameters and,therefore, giving insight in the circuit’s behavior. The qual-itative analysis supports the examination of non-standardcircuit structures with no preassigned element values. Thisis done by introducing qualitative values to analyze circuitstates and the circuit’s behavior. Clearly, sizing of circuitsof application of symbolic analysis only makes sense, if theprinciple design objective is covered by the circuit’s struc-ture. In the following, an overview on the tools and optionsof the EASY system is given, demonstrated on the basis ofthe example circuit of a two stage transistor amplifier [1]shown in figure 2 (a detailed discussion of the algorithmscan be found in the references).

Figure 2: Two stage coupled amplifier

2 Qualitative Tools

At the beginning of a design process the designer has toverify which circuit structure is suitable for a given pur-

pose. The calculation of the possible circuit’s behaviorhelps avoiding undesirable side-effects.

To support this task the qualitative tools offer differentkinds of analyses which are similar to numerical simulationtechniques regarding their functional purposes [10].

To analyze the circuit without preceding dimensioningthe qualitative valuespositive, zeroandnegative(denotedby [+], [0], [-]) are introduced. For example, the qualitativevalue of a resistor can be assignedpositive. Correspondingthe results can be interpreted, e. g. the qualitative valuenegativeas a result of a small-signal analysis meansde-creasing.

2.1 DC Analysis & Operating Point Analysis

The main purpose of a qualitative DC analysis is to de-termine possible states of the nonlinear elements. In addi-tion, all node voltages, branch voltages and branch currentsas well as their correlations can be determined [11, 12].

A qualitative operating point analysis takes into accountthe initial conditions of the dynamic elements while a qual-itative DC analysis computes the steady-state of the circuit.

The qualitative DC analysis applied on the example cir-cuit (figure 2) shows that saturation is possible for transis-tor Q2, however the cutset equation including node 1, 2and 3

I(UG)+ I(R1)+ I(Q1BE)+ I(Q1BC) = [0]

forbids saturation for transistorQ1. The set of possible so-lutions contains nine elements caused by the branch quanti-tiesU(C1) andI(Q2BC) which build a subspace of the solu-tion space with nine elements. All other network variablescan be determined unambiguously as shown in table 1 withQ1 andQ2 in forward-on state.

All node voltages are positive exceptV8 which of courseis zero. Remarkable is the orientation of the branch cur-rents of the resistorsR1 andR4. The current ofR1 andR4

arenegativeregardless of the circuit’s sizing or whetherQ2

is saturated or not.

2.2 Subspaces of Solution

The complete relations between all network variablescan be quite complex, however the interesting correlationsof certain variables are relatively simple.

Therefore it is often helpful viewing only a subspace ofthe circuit’s solution space by eliminating multiple occur-rences of states in a subset of network variables. This toolcan be used for all qualitative analyses.

2.3 Small-Signal Analysis

The qualitative small-signal analysis calculates the cir-cuit response for a given input signal. It is assumed that theinput signal is infinitely small. Hence nonlinear elementscan not leave their domains which have to be calculated

Table 1: Variables with certain states

Variable State Variable State Variable State

I(VCC) [-] I(UG) [0] I(C1) [0]I(C2) [0] I(C6) [0] I(R0) [0]I(R1) [-] I(R2) [+] I(R3) [+]I(R4) [-] I(R5) [+] I(R6) [+]I(RL) [0] I(Q1BE) [+] I(Q1BC) [0]I(Q1CE) [+] I(Q2BE) [+] I(Q2BC) [0]I(Q2CE) [+] U(VCC) [+] U(UG) [+]U(C2) [+] U(C6) [+] U(R0) [0]U(R1) [-] U(R2) [+] U(R3) [+]U(R4) [-] U(R5) [+] U(R6) [+]U(RL) [0] U(Q1BE) [+] U(Q1BC) [-]U(Q1CE) [+] U(Q2BE) [+] U(Q2CE) [+]V(9) [+] V(1) [+] V(2) [+]V(3) [+] V(7) [+] V(8) [0]V(6) [+] V(5) [+] V(4) [+]

by a qualitative steady-state analysis before. Changing themodels of the dynamic elements a qualitative frequency re-sponse can be calculated.

Without an input signal the stability of a circuit can beproven. If the circuit is stable, the set of possible solutionscontains only the trivial solution zero. Otherwise the net-work may be instable under certain conditions. This canbe used to determine meta-stable states of oscillators or toevaluate amplifiers.

Figure 3 shows the results of a qualitative AC analysis

Figure 3: Results of a qualitative AC analysis

applied on the example circuit (figure 2) with both transis-tors in forward-on state. All capacitors are treated as shortcircuits. The set of possible solutions contains 27 elementscaused byi(VCC), i(R4), u(R4) andi(C6) which build a sub-

space of the solution space with 27 elements. Again, allother network variables have certain states.

With C6 modeled as an open loop, the node voltagesv5andv6 change to

v5 =

24

+0�

35 and v6 =

24

++�

+ 0 �

35 ;

which leads to a set of possible solutions for the subspace(v5, v6) with five elements. Ifv5 is positiveor zero, v6 isalwayspositive. If v5 is negativethe node voltagev6 isuncertain.

The other node voltages are not affected. IfQ2 is sat-urated and all capacitors are treated as short circuits, nodevoltagev8 is uncertain. This means thatv8 might also bezeroor negative.

Additional analyses show that the network remains sta-ble even if dynamic effects of the bipolar transistors areconsidered.

2.4 Transient Analysis

The qualitative transient analysis is the counterpart ofthe numerical transient analysis. Its purpose is the calcu-lation of time dependencies. Analog to the numerical sim-ulation the result is a qualitative plot of network variablesversus time represented by qualitative state vectors for eachtime step. These vectors contain the nominal value and thetime derivatives of a network variable [10].

All possible trajectories as well as steady-states or os-cillations can be evaluated.

3 Symbolic Tools

3.1 Symbolic and Numerical Analysis

Symbolic circuit analysis allows a mathematical formu-lation of dependencies between particular circuit quanti-ties, such as voltages or currents. This can be done with-out fixed values for all circuit elements. Therefore, sym-bolic analyses may already be used before or during thesizing of the circuit. Thus the time-consuming first phaseof the analog circuit design process is supported. This isthe main area in which symbolic analysis differs from nu-merical analysis (for example realized within the circuitsimulatorSPICE), which is only useful for circuit verifica-tion after sizing is completed.

Symbolic analysis may generate various network func-tions in symbolic form, e. g. the input-to-output voltageor current gain, the input or output impedance or thecommon-mode rejection ratio. Numerical results can im-mediately be obtained by simply replacing the parametersby numerical values.

3.2 Sensitivity Analysis

To realize circuit specifications, it is necessary to knowwhich elements have influence on corresponding circuitquantities. These elements can be determined by use ofsensitivity analysis. Parameterized sensitivity expressionscan be calculated easily by differentiating the solution ex-pressions from the symbolic analysis.

Consider the two stage bipolar amplifier of figure 2.Figure 4 shows the pertinent sensitivities of the output el-ements (load resistanceRL and coupling capacitanceC2)with respect to the output voltageuA. It can be seen forwhich values of the frequencyf and load resistanceRL,the output elements have no influence onuA.

SensitivityUA_RLUA_C2

10010000

1e+061e+08

1e+10f 0.001

0.010.1

110

1001000

10000

RL

00.10.20.30.40.50.60.70.80.9

1

Figure 4: Sensitivity plot

3.3 Symbolic Approximation

Usually, the results from symbolic analysis, i. e. math-ematical expressions, are so complex that they cannot beused until they are reduced to their essential information.This means, approximation methods are necessary to gen-erate compact formulae [9]. These formulae establish thedesign equations given in literature for many known cir-cuits.

The magnitude plot of the given example is shown infigure 5. For several design points (which only differ inthe frequency) approximated transfer functions have beengenerated:

H0(s) = �

C1C2R5R6RLs2

C6R5R6s+R6+R5;

H3(s) = �

C1C2gm2RLs2=go2gπ2

1+(C2RL +C1R0)s+C1C2R0RLs2 ;

H6(s) = �

gm2

go2gπ2R0; H12(s) =�

1cµ2R0s

:

Each of them describes the behavior of the circuit in par-ticular frequency intervals. The symbolic expressions are

very simple and enable good insight into the circuit’s be-havior. Moreover, they reflect very well parameter de-pendencies if the design point is varied. The main cir-cuit elements are still part of the approximated expressionswhereas the elements of little or no influence are effectivelydeleted.

3.4 Symbolic Pole-Zero Determination

Another important characteristic of linear circuits con-cerns the location of their poles and zeros. Again, expres-sions in symbolic form may be used for tuning specificcircuit behavior. Their knowledge allows a wide rangeof application: e. g. pole-zero compensations, detection ofinstabilities, and determination of bandwidths and cutoff-frequencies.

In order to analyze the dynamic behavior of the examplecircuit, all transistors are replaced by a small signal high-frequency model. Numerical analyses show that the circuithas six zeros and seven poles. An exact symbolic pole andzero calculation is not possible. Therefore, special approx-imation methods [4], [5] have to be used. They guaranteethe generation of very compact and also accurate symbolicexpressions. The following poles and zeros have been cal-culated:

p2 =�1

2πC2RL; p3 =�

12πC1R0

;

which determine the lower cutoff-frequency and

p4 =�go2gπ2

2πcµ2gm2; p5 =�

go1gπ1

2πcµ1gm1;

and z5 =�go1gπ1

2πcµ1gm1;

which fixes the high cutoff-frequency (see figure 5).

1e-14

1e-12

1e-10

1e-08

1e-06

0.0001

0.01

1

100

10000

1e+06

1 100000 1e+10

f

|UA(f)|, exactappr, f=1e0appr, f=1e3appr, f=1e6

appr, f=1e12

p2=-161p3=-1540 p4=-7.76e8

p5=-8.01e8

z5=-7.55e8

oDP0

oDP3 o

DP6

oDP12

Figure 5: Magnitude plot

Figure 6: Approximated circuit with signal paths

3.5 Network Approximation and Signal FlowAnalysis

Not all circuit characteristics can be expressed mathe-matically. For example, the signal flow is frequently usedto explain the behavior of a circuit. For this problem net-work approximation methods and signal flow analyses [3]are necessary to locate different signal paths within a cir-cuit.

The main idea of the method is the transference of ap-proximations from equation level to network level [2]. Bycomparing the orders of magnitude of network quantitieselements can be simplified to short circuits or open loops.This reduces the variety of possible signal paths. Figure 6shows the approximated circuit. The broken lines indi-cate those partial branches where the current is neglectablylow. If this occurs only on one side of an element, the sig-nal flow is directed from the neglectable side to the otherside where the current is still significant. Further signalpaths can be obtained from the input, output and controlledsources. All these single signal paths together form onecomplete signal path passing the two transistor stages andone feedback pathR4.

4 Conclusion

The qualitative and the symbolic component of theEASY design system include a variety of analysis optionswhich support insight in the behavior of a designed circuit.The resulting design equations can be used for sizing andoptimization of the designed circuit even if non-standardcircuit structures are considered.

References[1] K. Beuth, W. Schmusch,Elektronik 3, Grundschaltun-

gen, 9th Edition, Vogel-Buchverlag, W¨urzburg 1988

[2] G. Droge, E.-H. Horneber, “Method for Network Inter-pretation and Finding Out the Signal Flow”, inProc.3rd Int. Workshop on Symbolic Methods and Applica-tions to Circuit Design (SMACD’94), Seville, October1994

[3] G. Droge, E.-H. Horneber, “Rechnerunterst¨utzungzum Entwurf analoger Schaltungen”, inConferenceProc. Part 3, 40th International Scientific Colloquium,Ilmenau, September 1995

[4] G. Droge, Th. Czysz, E.-H. Horneber, “Symbolic Poleand Zero Estimation for Circuit Design”, inProc. 3rdIEEE Int. Conf. on Electronics, Circuits, and SystemsICECS ’96, Rodos, October 1996

[5] G. Droge, E.-H. Horneber, “Symbolic Calculation ofPoles and Zeros” inProc. 3rd Int. Workshop on Sym-bolic Methods and Applications to Circuit Design(SMACD’96), Leuven, October 1996

[6] G. Gielen, W. Sansen,Symbolic Analysis for Auto-mated Design of Analog Integrated Circuits, KluwerAcad. Publ., Norwell, 1991

[7] Macsyma Inc.,MACSYMA Reference Manual, Version14, 1993

[8] SMACD’94 Proceedings, 3rd International Workshopon Symbolic Methods and Applications to Circuit De-sign, Seville, October 1994

[9] R. Sommer, E. Hennig, G. Dr¨oge, E.-H. Horneber,“Equation-Based Symbolic Approximation by MatrixReduction with Quantitative Error Prediction”, inAltaFrequenza – Rivista Di Elettronica, Vol. 5, Nr. 6, Mi-lano, November 1993

[10] M. Thole, J. Meise, E.-H. Horneber, “QualitativeAnalysis of Nonlinear Dynamic Circuits”, inProc. 2ndInt. Conf. on Intelligent Systems Engineering, Ham-burg, September 1994

[11] M. Thole, J. Meise, E.-H. Horneber, “Evaluating Pos-sible States of Nonlinear Dynamic Networks by Use ofQualitative Analysis”, inProc. 3rd Int. Workshop onSymbolic Methods and Applications to Circuit Design(SMACD’94), Seville, October 1994

[12] M. Thole, E.-H. Horneber, “Qualitative Analysis ofAnalog Circuits with Expanded Node and Loop Equa-tions”, in Proc. 3rd IEEE Int. Conf. on Electronics,Circuits, and Systems ICECS ’96, Rodos, October1996