Reprint from: 8th Int. Mixed-Signal Testing Workshop, Montreux, Switzerland, June 18-21, 2002 A Nullator-Norator-based Analogue Circuit DC-Test Generation Approach Bernd Straube, Wolfgang Vermeiren Fraunhofer-Institut für Integrierte Schaltungen, Branch Lab Design Automation EAS Dresden, Zeunerstr. 38, 01069 Dresden, Germany e-mail: < straube | vermeiren >@eas.iis.fhg.de Abstract 1 Introduction For analogue circuits the development of automatic test generation techniques is still a subject of research [1, 2, 5, 6, 7, 9, 10, 12, 13, 14, 15, 16, 17, 18]. In this paper we propose a fault-oriented technique for generating DC-tests for nonlinear analogue circuits. At the time being the circuits to be considered have single inputs and single outputs. An extension to circuits with multiple inputs and outputs is still under investigation. The proposed technique is based on a test generation model that makes use of the »singular« network elements nullator and norator [3, 4]. Nullators and norators are network elements with two terminals. Both the current and the voltage of a nullator are equal to zero. For a norator, however, its current and its voltage may have any value. When nullators and norators are used in a network to be simulated by means of a usual electric simulator then these elements have to be used necessarily in pairs, i. e. as a two-port (Figure 1). Such a nullator-norator two-port, also referred as to a nullor, can also be described by an interconnection of controlled sources or, easier, by means of a VHDL-AMS model. inul inor vnul vnor nullator 1 0 inul 0 0 inor + 0 0 vnul 1 0 vnor = 0 0 norator Figure 1: Norator-nullator two-port (Nullor) An analogue circuit is regarded as a two-port. W. l. o. g. we consider voltages as to be the quantities for test input and test output. In Figure 2 an ideal voltage source is connected to the lhs port, i.e., v1 = vin. Since the output load can be considered as a part of the circuit the test output quantity is the open circuit voltage at port 2, i.e., v2 = vout and i2 = 0. i1 vin v1 i2 = 0 network N (two-port) v2 = vout Figure 2: Two-port model of the analogue circuit The analogue circuit described as a two-port in Figure 2 is connected with a nullator and a norator in the following way (cf. Figure 3): The voltage source of the input port is substituted by a norator. A series connection of a nullator with an independent voltage source is connected to the output port. If the simulated value for voltage v2 in Figure 2 is now taken as the value vout of the voltage source on the rhs then the voltage over the norator will be v1 = vin. By applying the substitution theorem of the network theory [19, 20] it can be shown, that each solution Reprint from: 8th Int. Mixed-Signal Testing Workshop, Montreux, Switzerland, June 18-21, 2002 of an arbitrary, i.e. also nonlinear, network according to the structure of Figure 3 is also a solution of the network according to the structure of Figure 2. i1 norator v1 i2 = 0 nullator network N (two-port) v2 Vout Figure 3: Interconnection of the circuit of Figure 2 with a norator and a nullator 2 The test generation model Fault-oriented test signal generation or fault simulation is always based on a network model that consists of a suitable composition of the fault-free network and the faulty one. In our approach to the fault-oriented test signal generation for nonlinear networks this model is made up of the interconnection of (cf. Figure 4) • the fault-free network with a nullator in series with a voltage source for the output voltage vout_good • the faulty network with a nullator in series with a voltage source for the output voltage vout_faulty • a norator at the fault site • a norator at the input ports of both the networks that are connected in parallel. The value of output voltage vout_faulty has to be taken in such a way that it is outside the pass band. The task »generating a test input« involves the numerical computation of the test input voltage vtest for given vout_good and vout_faulty. In solving this network model the norator voltage vnor_fault and the norator current inor_fault at the fault site is also calculated. nullator fault-free network vout_good nullator vtest norator faulty network vout_faulty fault vnor_fault inor_fault vnor_fault – Rfault · inor_fault = 0 norator at the fault site Figure 4: Network model for test signal generation Reprint from: 8th Int. Mixed-Signal Testing Workshop, Montreux, Switzerland, June 18-21, 2002 Since the voltage-current relation of a nullator-norator two-port can be described by an interconnection of controlled sources or by a VHDL-AMS model a common electric simulator can be applied to calculate the test input voltage vtest. It is the important advantage of our approach that no dedicated solver of the proposed test generation model has to be developed and implemented. Therefore • any electric simulator or VHDL-AMS-simulator can be used, • all the problems, that arise in solving numerically the system of nonlinear equations, are tackled by the simulator, • not only short-faults and open-faults but any models for faults that can be described by an interconnection of network elements, by a functional model, or a description in VHDL-AMS, and parametric faults can be handled. 3 Illustrating example The approach is illustrated with the simple circuit depicted in Figure 5. fault R2 – R1 = 1 kΩ v + vin R2 = 99 kΩ vout R1 Op-amp, modelled by a voltage-controlled voltage source with an amplification factor of v = 104 Figure 5: Voltage amplifier A short-fault is across R2. Therefore, the fault-norator is connected in parallel to R2. Let the fault-free output voltage be vout_good = 2.5 V. The graph of Rfault, calculated by the norator current inor_fault and the norator voltage vnor_fault versus the output voltage vout_faulty , is shown in Figure 6. Let the ‘pass band’ be 0.5V. Then, the test input voltage vtest = 25 mV is able to detect any conducting connection, which is in parallel to the resistor R2, with a resistance up to about 390 kΩ. 700k Rfault 600k 500k 400k 300k fault detected 200k 100k pass band 0.5 1.0 1.5 2.0 2.5 3.0 vout_fault Figure 6: Rfault = vnor_fault / inor_fault versus the output voltage vout_faulty 4 Results and future work The approach has successfully been applied to other circuits such as the c.t.-filter benchmark, a comparator and a sample and hold circuit taken from [6, 11, 13], respectively. The extension of our DC test generation technique to networks with more than one input and one output ports is under investigation. The generation of transient test signals will be the important task for the next future. Reprint from: 8th Int. Mixed-Signal Testing Workshop, Montreux, Switzerland, June 18-21, 2002 5 References [1] A. Abderrahman, E. Cerny, B. Kaminska: Optimization based multifrequency test generation for analog circuits. Journal of Electronic Testing: Theory and Applications, 1996, pp. 59-73. B. Burdiek: Generation of optimal test stimuli for nonlinear analog circuits using nonlinear programming and time-domain sensitivities. DATE 2001, München, pp. 603-608. H. J. Carlin, D. C. Youla: Network synthesis with negative resistors. Proc. IRE, London, 49, no. 5, 1961, pp. 475-489. H. J. Carlin: Singular networks. IEEE Trans. on Circuit Theory, vol. 11 (1964), No. 3, pp. 67-72 S. Cherubal, A. Chatterjee: Test generation based diagnosis of device parameters for analog circuits. DATE 2001, München, pp. 596-602. G. Devarayanadurg, M. Soma: Analytical fault modeling and static test generation for analog ICs. Int. Test Conf. on Computer-Aided Design. Nov. 1994, pp. 44-47. N. Engin: Linking mixed-signal design and test: Generation and evaluation of specification-based tests. Ph.D Thesis, University of Twente, 2000. S. L. Farchy, E. D. Gadzheva, L. H. Raykovska, T. G. Kouyoumdjiev: Nullator-norator approach to analogue circuit diagnosis using general-purpose analysis programmes. Int. Journal of circuit theory and applications. vol. 23 (1995), pp. 571-585. V. Glöckel, M. Pronath, H. Gräb: Deterministischer parametrischer Testentwurf für analoge integrierte Schaltungen mit Testbeobachtungen unter Anwendung von Ergebnissen aus dem Toleranzentwurf. 13. ITG/ GI/GMM Workshop „Testmethoden und Zuverlässigkeit von Schaltungen und Systemen“, 2001, Miesbach, Paper 5-2. V. Kaal, K. Kerkhoff, J. Hollema: Structural test generation for embedded analog macros. 4th IEEE International Mixed Signal Testing Workshop, The Hague, The Netherlands, 1998, pp.221-226. B. Kaminska, K. Arabi, I. Bell, P. Goteti, J. L. Huertas, B. Kim, A Rueda, M. Soma: Analog and mixed-signal benchmark circuits – first release. Proc. Int. Test Conference, 1997, pp. 183-190. W. L. Lindermeir, H. E. Graeb, K. J. Antreich: Analog testing by characteristic observation inference. IEEE Transactions CAD 18 (1999) 9, pp. 1353-1368. M. : Marlett, J. A. Abraham: DC_IATP – An iterative analog circuit test generation program for generating DC single pattern tests. Int. Test Conference, 1988, pp. 839-844. R. Ramadoss, M. Bushnell: Test generation for mixed-signal devices using signal flow graphs. Journal of Electronic Testing: Theory and Applications, 14 (1999), pp.189-295. M. Soma: Automatic test generation algorithms. Chapter 4 in B. Vinnakota (ed.): Analog and mixed-signal test. Prentice Hall PTR 1998. M. Soma, S. Huynh, J. Zhang, S. Kim, G. Devarayanadurg: Hierarchical ATPG for analog circuits and systems. IEEE Design & Test of Computers, Vol. 18, No. 1, Jan./Feb. 2001, pp. 72-81. S.-J. Tsai: Test vector generation for linear analog devices. Proc. Int. Test Conf 1991, pp. 592-597. B. Vinnakota (ed.): Analog and mixed-signal test. Prentice Hall PTR 1998. L. O. Chua, C. A. Desoer, E. S. Kuh: Linear and Nonlinear Circuits. McGraw-Hill, 1987. J. Haase, A. Reibiger: Verallgemeinerung und Anwendung des Substitutionstheorems der Netzwerktheorie. (Generalization of the substitution theorem of the network theory and its application). Wiss. Zeitschrift TU Dresden, 34, 1985, 125-129. [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20]