scieee AI-readable full text Open interactive document viewer

Analog controllers using digital stochastic logic

Quero Reboul, José Manuel; Toral, S. L.; García Ortega, Juan de la Cruz; García Franquelo, Leopoldo

Abstract

Stochastic logic is based on digital processing of a random pulse stream, where the information is codified as the probability of a high level in a finite sequence. The probability of the pulse stream codifies a continuous time variable. Subsequently, this pulse stream can be digitally processed to perform analog operations. In this paper we propose a stochastic approach to the digital implementation of complex controllers. This is approach allows for the realization of the controllers, and A/D and D/A converters within a digital programmable device, leading to simple circuit implementations. A practical realization of a classical PID and nonlinear dissipative controllers for the series switching power resonant converter is presented.

Full text

Analog Controllers using Digital Stochastic Logic J.M. Quero, Member IEEE, S.L. Toral, J.G. Ortega and L.G. Franquelo, Senior Member, IEEE Dpto. de Ingenieria Electr6nica, Escuela Superior de Ingenieros, Avda. Camino de los Descubrimientos sin, Sevilla-41092 (SPAIN) e-mail: [email protected] AbstrO£t- Stochastic logic is based on digital pro· cessing of a random pulse stream, where the informa~ tion is codified as the probability of a hlgh level in a finite sequence~ The probability of the pulse stream codifies a continuous time variable. Subsequently, this pulse stream can be digitally proeessed to perfonn analog operatiO'nL In this paper we propose a stochas· tic approach to the digital implementation of complex oontroDers. This is approach allows for the realiza.. tion of the contron"", and AID and DlA converters within a digital programmable device,leading to simple circuit implementations. A practical reali:mtion of a classical pm and nonlinear dissipative controllers for the series swithehing power resonant converter is presented. I. INTRODUCTION Modern control theories is improving the dynamical behavior of our industrial systems. However, in many cases they lack of a simple physical realization. Thus, in practice, the benefits of new controllers are not applied as classical controllers are cheaper to implement. Only in a very limited number of practical applications, the use of a complex electronic control circuit is justified. Stochastic systems make pseudo analog operations using stochastically coded pulse sequences [1], [2]. Information is represented by the statistical mean value of a pulse sequence. In binary logic, it is codified as the probability of taking a "high" level. The easiest method of generating such sequence is through a random number generator. The value stored in a register is compared with a random number generator. If the random number generator is less or equal than the register value, the output of the comparator is set to a high level. Otherwise, a low level is set. In Fig. 1, the digital to stochastic conversion scheme is shown. Equation (1) give us the probability of an output high level. REGISTER RANDOM NUMBER Fig. 1. Digital to stochastic conversion. a consequence, the stochastic computing techuique introduces errors in the form of variance when we attempt to estimate the number from the sequence. This kind of representation leads to very sim· pIe computational circuits, as it will be shown in the next section. All this circuits features that they are digitally implemented. The basis of the stochastic signal processing theory that it is included in this work has been formulated some decades ago [lJ, although some improvements are included in Our work. The reason why they are now becoming a practical solution to industry implementation of analog circuits is the appearance of high density digital programmable devices, that allows the realization of large digital circuits and their interfaces within the same integrated circuit [31. In this paper a set of basic stochastic circuits are introduced together with a design procedure of this kind of circuits. Finally, the stochastic realization of a nonlinear dissipative controllers fur the series resonant converter is included as an example to illustrate this novel approach. II. STOCHASTIC LOGIC A. Arithmetic Operations The two most common arithmetic operations on stochastic signals are multiplication and summation, showed in Fig. 2. Assuming that two stochastic signals are stochastically uncor- P( Output =" I") = _D_i=-9'_' tal-o-V_al_ue_ 2n (1) related, the product of both oftham can be computed by a singie AND gate. Summation is a more difficult operation to perform. The simplest way is to use wired OR summation [4], but it is a non linear scheme: as the probability A probability can not be exactly measured but only estimated as the relative frequency of ''high" levels in a long enough sequence. As 249 m :::()- ..JUL "., •• J\f1fL f1fL Non.l ........ JlJL n. , •. llfll"UUl o·'.~.lLll .06 JLIL 0.6 nlil1JlJl .., IDJlJl •. ,JIU " ilill ., IDJlJl "' JlruULIl ·06]JL ·,.lIUL ." rll1IIn Fig. 2. Stochastic multiplication and summation. of "high" levels increase, pulse overlap also increases, and the summation saturates gradually (figure 2b). Nevertheless, for low pulse densities, this approach is enough accurate. Another way to realize an exact summation is aggregating pulses in a counter. Other techniques to perform summation are described in [5J, [6], [7J. Digitally, integration is performed by a counter. It has been proved [8] that a n bit counter working at a clock frequency f. is equivalent to a pure analog integrator with time constant 2nl f, B. Digital to Stochastic and Stochostic to digital Conversions To recover the value of the probability, the stochastic pulse stream must be integrated to obtain its mean value. Digitally, integration is performed by a counter. A low pass RC filter is well suited to recover the analog value of this probability, that is, to perform the stochastic to analog conversion (9J. A digital to stochastic converter is well known in the literature and has been extensively used from the beginning of stochastic computation [10J,[l1J,[12]. An analog to digital based on stochastic logic has been also developed in [13J. Also an analog random signal generator [14] may be used, but we propose a mixed analog/digital approach to this conversion, using a generalization of the first order system described before. In Fig. 3 there is a basic scheme for this conversion. The analog input signal Vi (t) ASIC COUNTER LFSR • .nrL ~---------------+ STOCHAStIC Fig. 3. Analog to stochastic conversion, is compared with the stochastic pulse sequence integrated with simple RC integrating circuit. The output of the comparator is a PWM representation of the input signal, that is time integrated with the up/down counter. This structure is similar to the stochastic first order SYS- tem, but with an external analog comparator that leads to a PWM representation of inform ation, instead of an error signal proportional to the input difference. III. STOCHASTIC CIRCUIT DESIGN PROCEDURE Once the basic stochastic building blocks are characterized, more complex circuits can be developed, following the nest steps: 1. Determination of Sealing Jiilctors. The main design constraint that stochastic variables must agree is that the should take values within [0,1]. Therefore, appropriate scaling factors should be determined for any variable. Notice that, on the other hand, all variables are inherently bounded, even under exceptional functional conditions, thus ensuring a secure response of the stochastic circuit. 2. Determination of integration circuits clock frequency. The location of constants and additions/substractions previous to the integrators can be done algebraically manipulating the mathematical equations. Placing constants previous to the integrators is appropriate because constant larger than unity can be implemented using integrator's constant. Besides, despite of existing substration stochastic logic circuits [151, it is preferable to aggregate positive values in the incremental input signals of counters, while negative signals are aggregated in the decremental one. 3. Selection of LFSRs. The determination of a set of LFSRs (linear feedback shift register) as the random number generator to perform digital to stochastic conversion should be done to generate stochastic pulse streams as uncorrelated as possible. Otherwise, the stochastic signal processing would loose accuracy. This can be done using a set of LFSRs with the same feedback, but using seeds corresponding to pseudo random numbers generated with a sufficiently large number of clock cycles. IV. SERIES RESONANT CONVERTER MODEL Considering the Series Resonant Converter (SRC) circuit shown in Fig. 4. This circuit is fed by a bipolar square signal whose amplitude is in most of the cases constant, remaining the commuting frequency as the only accessible control input. The system is a cascade connection of two subsystems. The first one, the tank circuit, is fud 250 with a modulated signal and whose states are not available for measurement. The second subsystem acts as a detector of the inductor current amplitude, which is the only useful information coming from the first subsystem. Using harmonics approximation, the discontinuous system can be simplified to a static nonlinearity in cascade with an output passive filter. A state space model of the system can be obtained from Kirchoff's voltage and current laws [18] • c, Vo T Fig. 4. C:i:reuit sehematic of a series resonant converter Ldh == dt Cdvo = iL dt C dVo = 0di" abseiL) - Vo - Io R (3) where iL is the input inductor current, Vo is the series capacitor voltage and 110 is the output voltage supplying the load. L and C are the inductance and capacitance in the resonant tank, respectively. Co is the capacitance of the output filter and R is the output load. It has been assumed that viet) signal has been implemented as Viet) V,sign(sin(ut)), with V; a constant value that represents the source amplitude and u the switching frequency generated by the control system. In our study, the following converter parameters has been chosen: L = O.9059mH, C == 130J.!F and Co = 2400J.!F. V. STOCHASTIC PID CONTROLLER FOR RESONANT CONVERTER A classical PID controller for the previous SRC has been designed, and its parameters have been adjusted by simulation. In Fig. 5 the digital realization of the stochastic circuit is shown. It is composed by to blocks: (a) in Fig. 5 rep· resents the integral of the difference between VreJ and Yo. Both input signals are normal· ized using a maximum value Vm SOY. The digital value Vref is transformed in a stochastic pulse stream, indicated by a number in circl~. V 0 is feedback using a sigma-delta stochastic AID converter. The.integrator's constant is implemented simply dividing the clOck frequency of the counter. (b) in Fig. 5 generates the switching signal from the semi period T /2 calculated in the previous block. The main digital clock frequency is 18MHz. A Simulation results Fig. 6 shows the start-up and a 511 to 10n load change response, including the output voltage of the resonant converter when using the theoretical and the PlD stochastie controllers. Also other test were performed, an theoretical and stochastic circuits behaviour were very similar in all cases. 00&(' r. ____________ ~ "'.0 10.0 .-~ Stod'Wltic output -.~- lheoretiCai ovlput O·°o.l,-o----,Oc::.,;-----;;'Q.4;----;;O'C;;6--...J """($) Fig. 6. Response of the resowmt converter for the theoretical and PID stochastic controllers VI. STOCHASTIC PASSIVITY-BASED CONTROLLER FOR RESONANT CONVERTER Passivity-based control techniques have been shown to be rather useful in several unrelated electrical and mechanical engineering control problems, such as synchronous and asynchronous induction motor, robotic manipulator systems and dc-to-dc power converters (see Ortega et al [16] for a complete revision of all this topiCS). A new control technique for a SRC was proposed in [17]. The control was obtained by incorporating the passivity based controller design methodology embedded with an adaptive law to estimate the unknown resistive load showing an excellent -performa:n.ce. This control technique is summarized in the following set of differential equations: 251 (a) ~ ~ n-{TI<lGGER J @-1 MOD 6 COUNTERH COUNTER r--vu- (0) Fig. 5. Digital realization of the PID controller using stochastic logic Va:ri.1i"'~ I ,ca.liAA!actor value: r 'Vs~,Vre.f.V"d I Vm 80v i L-9 est elm 0.25 fl- I i ILe~ 1m lOeB (~d/ $ F.J I Ditl D,. I " Urn 20000 radTs--""1 TABLET SCALING FACTORS FOR CON'I'ROLLER'SVARlABLES II.est = 7rV re f gest (4) 4 GoVQd 4 = -I Lest -gestVod (5) 7r gest = -,),Vod(V;, -V od ) (6) Diy = V:-V~ (7) trILest 1.1 = 2,fi5F) (8) gest = -,),Vod(Va - VQd) (9) where geBt is the estimate for 1/ R, V re , is the output voltage reference, Rl is a damping constant in the error Yo - Vod and')' is a control constant. A Stochastic Controller Design The set of equations 4-9 should be implemented by applying the procedure described in section III. According to definitions and simulations, the maximum values of variables given in Table I have been chosen as scaling factors. The application of this scaling factors lead to the fbllowing set of normalized equations: I LFSR# value .- f--- 0 1 1 458 2 756 ~. 708 1 4 848 f---- 5 575 L..-..:::" TABLElI INi-rIAL VALUES OF LFSRs gest = ')'V,:, J -(V V - Gm Vo• Vo - •• )Iit (10) v. 2 v2 -2 Div -m 8 - Vod ".2 P Dm.t;, ILest it = .j2D",,; . --- Dw Urn where (.) represents per unit variable. As a digital clock frequency of 18MHz, and a 1O-bit resolution has arbitrary been chosen it can be determined the integrator's clock fre: q~~ncy ratios. In our case, instead of dividing digttal clock frequency, it has been increased the number of bits in the counters. More precisely, the integrator counters gest and Vad have 18 and 19 bits respectively, but only the 10 MSBs are considered in the digital to stochastic conversion. As a result, the digital circuit depicted in Fig. 7 is achieved. Finally, it has been defined a set of LFSRs, all with the feedback polynomial given by equation 11, where /I represents an XOR logic function, and seeds of Table II. QIO = Q1/\ Q,/\ Q3 /I Q,/\ Q. /I Q1 (11) A number X in circle represents a digital to stochastic conversion using LFSR number X and a comparator, as it is depicted in Fig. l. It should be remarked that blocks (d) and (el 252 COUNTER )---'\ &esl J (aJ 08--· Vref (b) I Vodl)---- (oj (d) (e) ~r-I6--b-i'-CO-UNTB--R..,Hr-c-O-UNTER--V&TIUGG~ I (f) Fig. 7. Digital realization of the passivation controller using stochastic logic 253 in Fig. 7 correspond to the division and square root functions respectively. It can be easily verified that it is accomplished by using the negative feedback of their inverse functions (multiplication and square). Circuit (f) generates the switching signal of "i(t) by converting the digitally codified value of the frequency to one half of the period, thus generating the frequencyvariable squared switching signal named TRIGGER. It is remarkable than only some counters, digital comparators and auxiliary logic is needed to implement the controller. B. Simulation results In order to verify the previous design. both controllers, the stochastic one and its theoretical formulation, have been compared using a passivation model of the series resonant converter. Again, Fig. 8 shows the start-up response, including the output voltage of the resonant converter when using the theoretical and the stochastic controllers and a load change of the same values than in the PID controller simulation. The converter response is faster and presents a lower over-voltage than the response obtained with the PID controller. 6M 50.0 'MI I -Slcx:nasfic OUlpul . lhtOteooa/ ovtput "O.I::.O-~--::O.';:-2 ~---""";o .• ;---·--;o"' .• ;-_........J titne{$} Fig. 8. Start-up response of the resonant converter for the theoretical and stochastic passivity-based controllers VII. CONCLUSIONS The use of stochastic logic to implement analog controllers provides a set of very simple circuits that can be digitally implemented. As a result, the implementation of a continuous time system using digital circuits and their interfaces is achieved. As an examples, the stochastic implementation of a classical PID and a passivitybased controllers are included. This approach to complex controller designs allows a low area cost implementation in programmable devices and can be applied to develop embedded systems [19] that process digitally an analog information. This approach also simplifies the programmability of the controllers in a networked environment using dynamic device programming. REFERENCES [1] B.R. Gaines" Stochastic computing systems. Advaxu;es Inform. Syst. Sci., vol. 2, pp. 37·172, 1969. (2) C.L. Janer, J.M. Quero, J.G. Ortega and L.G. Fran· quelo, Fully Fbralkl Srochastic ComputatWn Architec· ture. IEEE Trans. Signal Processing, vol. 44, no, 8, Au. 1996. pp. 2110· 2117, Aug. 1996. (3) J. Logue, V<rtex Digital to Anawg Cnnuerter. Advancod Application Note. XilinL Feb. 1999. 14] A.F. Murray, D. del eo,..o and L. Tara.senko, 'Pulse· Stream VLSI Neural. Networks Mixing Analag and Digi· tal Techniques». IEEE Transaction on Neural Networks, vol. 2, no. 2~ FP. 193-2041 1991. [5] D.E. Van den Bout and TK Miller, 'A Digital Architec· turn Employing Stochastic;'m for tlu! Simulation of Hopfield', IEEE Transacti<>ns on Circuits and Systems, vol. 36,lUI. 5, pp. 732-738. May 1989. [6] C.L. Janer, J.M. Quero and L.G. Franquelo, 'Fully Par· allel Summation in a New Stochastic NeurtJl Network Architecture', IEEE Intl. Coni on Neural Net., pp. 1498- 1503, San Francisco 1993. (7] M. van Daalen, J. Shawe-Taylor andJ. Zhao. "Real Time Ou.tput Deriuati""$ for ." Chip Leo:ming Using DigitoJ. Stochastic Bit Stream Neurons", IEEE Electrowc Lette,.., voL 30, pp. 1775-1777,1994. 18] J.M. Quem and L.G. Franquelo, 'Controlt:td<>res Digitales Estocdsticvs" DCIS'95, pp. 272-276, Zaragoza, Nov. 1995. (9) J.G. Ortega, C.L. Janer, J.M. Quem and L.G. Franquolo, J. Pinilla and J. Serrano, 'Analog to Digital and Digital t<> Analog Conversiorl Based on Stcchastic Logie", IEEE Inti. Coni. on Ind. Electr. IECON'95, Orlando, Nov. 1995. 110j B.R. Gaines, "Stochastic Computer Thriues On !Wise" Electronics, pp. 72-79, July 1967. [l1J S. Ribeiro, "Random·pulse machind', IEEE Transac· . tions on Electronic Cowputers, vol. EC-16,llD. 3, pp. 261- 276, June 1967. [12) A.J, Miller, A.W. Brown and P. M ..... 'Moving-average Output Inter{1Ice for Digital Srochastic Computers' Electron. Lett., voL 10, no. 20, pp. 419-420, Oct. 1974. [13J J.M. Quem, C.L. Janer, J.G. Ortega, L.G. F'ranquelo, "DIA Converter ASIC U_ Stochastic Logic", EDN, pp. _, Oct. 1996. [14] E. Petriu, K. Watanabe and T. Yeap, "Applicatton. of Random-Pulse Machine Concept t<> Neural. Network. De· sign, IEEE Trans. lnstrum Meas., vol. 45, no, 2, pp. 665- 669,1996. (15) S.L. Toral, J.M. Quero and L.G. F'ranquelo, "Reactive Power and EMrgy Meter based on Random Signal Pr0- cessing" Design of Circuits and Integrated ~.tems Conference (DCIS98), Madrid, November 1998. [16) R. Ortega and A. Loria and P. J. Nicldasson and H. Slra-Ra:tnirez, "Passivity-based control of Euler- Lagrange systems", Springer-Verlag, Berlin. 1998. (17] G. E"""bar, '00. tlu! ""n·linear Control of Switching Po,..r Electronic ~stem.s". PhD Dissertation developed in LSS-Supelec. France, 1999 (18] A.M. Stankovic, D. J. Perreault and K. Sat<>, "Analysis and Experimentation with Dissipative Nonlinear Controllers for Series Resonant DCIDC Conve:rten". Pr0.- ceeding. of the 28th An.nual IEEE Power Ekctronics Specialist Cnnferenee (PESC97), Vol. I, pp. 679·685, St. Lows, Miss<>uri. May 1997. (19] S,L. Torol, J.M. Quero and L.G. Franquelo, ".fmber En· ergy Metering based en Random Sigrwl Proce •• ing (EC· RPS)" lSCAS'98. Monterrey, california, May.June 1998. 254