A CMOS MEMBERSHIP FUNCTION CIRCUIT EMPLOYING SINGLE CURRENT DIFFERENCING BUFFERED AMPLIFIER Mahmut Tokmakgi, Mustafa AIqI Erciyes University, Engineering Faculty, Dept. of Electrical&Electronics Engineering, Kayseri, Turkey Key words: MFC, CDBA, PSPICE, CMOS Abstract: The author proposes a new fully integrable Membership Function Circuit (MFC) using a Current Differencing Buffered Amplifier (CDBA) which employs two second generation current conveyor (CCII) and a voltage buffer. This MFC achieves basic membership functions such as trapezoidal, triangle, S-shape, and Z-shape. The characteristics (width, height, and position) of the implemented MFC are easily adjusted by varying left and right voltages and bias currents. Since the proposed MFC is implemented with a single CDBA block with simple structure, it can be capable of high-speed operation and integrated as a circuit to cover small area of a chip. The behaviour of the proposed MFC has been verified by PSPICE using the model parameters with 0.5 mm MIETEC CMOS process. The proposed MFC is voltage-input current-output and CMOS based structure with low supply voltages (± 1.5V). Therefore, it is suitable for both current-mode and low-voltage fuzzy and neural hardware. Izvedba CMOS MFC vezja z uporabo enojnega tokovnega diferenčnega ojačevalnika Kjučne besede: MFC, CDBA, PSPICE, CMOS Izvleček: V prispevku predlagamo izvedbo popolnoma itegriranega MFC vezja ( Membership Function Circuit ) z uporabo CDBA, ki uporablja dva CCII druge generacije in napetostni vmesnik. S pomočjo tako izvedene MFC pridemo do osnovnih funkcij, kot so trapezoidalna, trikotna, S-oblike in Z-oblike. Karakteristike MFC zlahka prilagajamo s spreminjanjem napetosti in napajalnih tokov. Ker je MFC izveden z enim CDBA blokom z enostavno strukturo, je hiter in se da integrirati na majhno površino čipa. Vedenje MFC smo preverili s pomočjo programa PSPICE z uporabo modelnih parametrov procesa 0.5 ^m MIETEC CMOS. MFC je izveden z napetostnim vhodom in tokovnim izhodom s tehnologijo CMOS pri nizki napajalni napetosti +-1.5V. 1. Introduction The Membership Function Circuit (MFC) or fuzzifier is one of the most important units in the fuzzy logic controllers (FLC). The various MFC hardware have implemented in literature /1-10/. A high-speed digital MFC based on BiCMOS technology has been proposed in /1/ but the fabrication cost is high. The other MFC designs with current-mode analogue circuits were proposed in /2-3/. However the speed of these circuits is low. Then, the sub-threshold membership function circuit was proposed in /4/. Although this MFC has low power consumption, the output current linearity and accuracy of the circuit is low. Most of the membership function circuits in literature /5-6/ have been designed to provide two membership functions as triangle and trapezoidal shapes in general. In addition to these functions, for generating Z-shape and S-shape membership functions are required extra circuits in original membership function circuit /7-8/. A voltage-input/current-output programmable Gaussian function network with capacitors for the programmability is introduced in /9/. But, the capacitors in network can be refreshed to maintain an accurate programmed value. Also, the reference current needs to be adjusted to control the amplitudes of the output current in their design. The other MFC with good programmable features is presented in /10/. In this MFC, all using transistors are operated in weak inversion region and narrow input current range. The dynamic range of this circuit is small and speed is low for gen- eral applications because of the inherent limitations of transistors in weak inversion /11/. In this study, a new MFC using CDBA is presented. The proposed MFC has capability of generating four standard membership functions without extra devices. Also, it can be operated high speed and implemented simple structures with easy design automation. The outline of this paper is as follows. Section II briefly defines a basic Current Differencing Buffered Amplifier (CDBA) and proposed Membership Function Circuit (MFC) is theoretically described in detailed. Section III evaluates a current-mode MFC with PSPICE simulation experiments. In Section IV, the overall conclusions are given. 2. Circuit description The fuzzification block maps the measured fuzzy input variable(s) of a fuzzy system into a suitable range that corresponds to the universe of discourse, and then converts the crisp input value into a fuzzy set. In many fuzzy and neuro-fuzzy applications, a Gaussian or triangular function is generally used in the fuzzification process of the Fuzzy Logic Controllers (FLCs). In this study, we used a CDBA into our proposed MFC. The modified circuit structure of the CDBA in /12/ and circuit symbol is shown in Fig. 1. The characteristic equation of this element can be given as Vp=V„=0, V„=V, (1) Here, current through z-terminal follows the difference of the current through p-terminal and n-terminal. Input terminals, p and n, are internally grounded. A possible CMOS realization of CDBA consisting of a differential current controlled current source (DCCCS) followed by a voltage buffer is shown in Fig. 1. The CDBA offers the well-known advantages of the CFA and CCII, such as high slew-rate, wide bandwidth and simple implementation. According to the above equations, this element converts the difference of the input currents Ip and In, into the output voltage Vw, through the impedance which will be connected to terminal 'z'. Therefore, the CDBA can be considered as a transimpedance amplifier and, from this viewpoint, it is similar to the current feedback amplifier (CFA) /13/. Furthermore, since the CDBA can be considered as a collection of current-mode and voltage-mode unity gain cell, this element is free from many parasitic effects and is expected to be suitable for high-frequency operation /14-16/. It can be operated in both current-mode and voltage-mode in a wide frequency range and can also be implemented with CMOS technology. Fig. 1 (a) Simplified circuit of modified CDBA and (b) its symbol The proposed MFC is shown in Fig. 2 which composed of two P channel MOS based cascode current mirrors, a single CDBA, two bias current sources (Ibr, Ibl), and four N channel MOS transistors. The PMOS current mirrors are carried out reversing right and left currents from input NMOS transistors. The CDBA is operated to take difference between right and left currents from PMOS cascode mirrors. The MOSFETs, M1, M2, M3, and M4, are the identical transistors, working in saturation region. In condition that Vgs>Vt and Vds>Vgs-Vt, the expression of drain current for the simple MOS transistor operating in saturation region is Id. = -V,)^ (2) Ids (3) where K is trans-conductance parameter. p., Cox, W, and L stand for carrier effective mobility, gate oxide capacitance per unit area, width, and length of the channel, respectively. Fig. 2. The block representation of proposed CDBA-based MFC In Fig.2, Vl and Vr can be adjusted to determine left and right side of membership function such as trapezoidal. The branch currents of proposed MFC are given as follows: I. ' ~ 2 ' 2 K, I =I2S._V ^^ 2 2 2Ibr _ V 2 ▼ rn K, K, 21 2 V K T -IsL-V J- r»/i » n K4 (4) (5) (6) (7) 2 2 where difference voltages, Vd1 and Vd2, are given by and (8) Also, right and left currents of MFC, Ir and Il, can be obtained with KCL as follows: IR = IDI+ID3 and IL=ID2 + ID4 (9) The output current, Iout, is equal to difference of left and right currents of MFC and it is obtained from z-terminal of CDBA. I„„.=Il-IR (10) In condition that K1 =K2=K3=K4=K and Ibr=Ibl=Ib, the output current of MFC can be given in Eq. (11). Iou.=K + (11) Vl must be greater than Vr in order to generate the Gaussian-type curve. The drain current equations of the MOSFETs are valid when voltage from gate-to-source, Vgs, is higher than VT threshold voltage of related transistor. Hence, the following condition must be as follows: 27 K, 2/„ i = 1,2 (12) 3. Simulation results In order to verify the above given theoretical analysis, a new MFC is designed using the proposed configuration of Fig.2. The behaviour of the implemented CDBA-based MFC was confirmed with 0.5 ^m MIETEC CMOS process parameters by PSPICE simulation experiments. The device dimensions of the channel width (W) and the channel length (L) for Mi, M2, M3, and M4 are 10 mm and 4 p,m, respectively. For all transistors operated in saturation region, bias currents of differential pairs, Ibr and Ibl, are adjusted to 10 pA. The power supply is Vdd= -Vss=1.5 V. Fig. 3. The basic membership function output graphs of proposed MFC The simulation result of basic four membership functions such as trapezoidal, S and Z shape obtained by proposed MFC is shown in Fig. 3. Here, right voltage Vr must be bigger than left voltage Vl. For example, in this study, triangular membership shape is obtained on condition that Vr-Vl=0.5 V. Fig. 4 (a) and (b) show the width adjusting of MFC towards right and left, respectively. In this DC analysis result, the one of the adjusting voltages is fixed a constant value for extension to right or left direction of membership function. Also, the height of membership function (amplitude of output current) can be varied with adjusting bias currents, Ibr and Ibl, as shown in Fig. 5. Here, bias currents are varied between [10 pA; 50 pA] in 5 pA steps for Vr -Vl= 1V, i.e., trapezoidal membership shape centred 0 V. Also, the CDBA based MFC has capable of high-speed operations because of using CDBA structures in this design has got high frequency range. The frequency response of the MFC is shown in Fig. 6. The bandwidth of the MFC is about 266 MHz (for -20 dB) as shown in Fig. 6. Low power low voltage technology offers the possibility of connecting the bulk and the source of transistors. In this case, the input current swing increases but the bandwidth is reduced substantially, as it is expected Fig. 4. Width adjusting of proposed MFC (a) Right directions, and (b) Left directions Fig. 5. Width adjusting of membership function with varied bias currents, Ibr and Ibl, for trapezoidal shape centered 0V. (Ibr = Ibl and between [10 pA; 50 pA] with 5 pA steps) Fig. 6. Frequency response of the proposed CDBA based Membership Function Circuit (MFC) 4. Conclusion A new and fully integrable membership function circuit (MFC) is proposed by using single CDBA. The performance of proposed MFC is analyzed based upon PSPICE simulation experiments. This MFC operates low supply voltages as ± 1.5 V. Also, the proposed MFC has got both wide input current range and high frequency response. The proposed circuit configuration consists of a single CDBA and four N channel MOS transistors operated in saturation region. This MFC is suitable for both current-mode and voltage-mode fuzzy hardware because of a voltage buffer is available in CDBA structure. Basic four membership functions can be implemented by this MFC. The characteristics such as width, height, and position of implemented membership functions are easily adjustable by varying left and right voltages, and bias currents. References /1/ D.G. Zrilic, J. Ramirez-Angulo, B. Yuan, "Hardware Implementations of Fuzzy Membership Functions, Operations, and Inference", Computers and Electrical Engineering, vol. 26, pp. 85105, 2000. /2/ T. Kettner, C. Heite, and K. Schumacher, "Analog CMOS Realization of Fuzzy Logic Membership Functions", IEEE Jour. of SolidState Circuits, vol. 28, no.7, pp. 857-861, 1993. /3/ M. Tokmakgy, M. Algy, and R. Kylyg, "A simple CMOS-based Membership Function Circuit", Analog Integrated Circuits and Signal Processing, vol. 32, pp. 83-88, 2002. /4/ S. Collins, G.F. Marshall, "Subthreshold Membership Function Circuit", Electronics Letters, vol. 34, no. 11, pp. 1113-1114, 1998. /5/ I. Baturone, S. Sanchez-Solano, Ä. Barriga, and J. L. Huertas, 'Implementation of CMOS Fuzzy Controllers as Mixed-Signal Integrated Circuits', IEEE Trans. on Fuzzy Systems, Vol.5, No.1, pp.1-19, Feb.1997. /6/ S. Bouras, M. Kontronakis, K. Suyama, and Y. Tsividis, 'Mixed Analog-Digital Fuzzy Logic Controller with Continuous-Amplitude Fuzzy Inferences and Defuzzification', IEEE Trans. on Fuzzy Systems, vol.6, No.2, 205-215, 1998. /7/ R.G. Carvajal, A. Torralba, F. Colodro, and L.G. Franquela, "Mixed-Signal CMOS Fuzzifier with Emphasis in Power Consumption", IEEE 42nd Midwest Symp. on Circuits and Systems, vol.2, pp. 929-933, 2000. /8/ P. Saavedra, A. Lopez, J. Zrilic, and J. Ramfrez-Angulo, "New Analog Current-mode/Voltage-mode Fuzzifier with continuously Adjustable Parameters", IEEE Proc. 40th Midwest Symposium on Circuits and Systems, USA, vol.1, pp. 31-34, 1997. /9/ J. Choi, B. J. Sheu, and J. C.-F. Chang, "A Gaussian Synapse Circuit for Analog VLSI Neural Networks," IEEE Trans. on Very Large Scale Integration (VLSI) Systems, vol. 2, no. 1, pp. 129133, March 1994. /10/ L. Tigaeru, "Programmable Analog Membership Function Circuit for Hybrid-mode Fuzzy Systems", Electronics Letters, vol. 39, no.8, pp. 642-644, 2003. /11/ E. Seevinck, and R.J. Wiegerink, "Generalized Translinear Circuit Principle", IEEE Jour. of Solid-State Circuits, vol.26, no.8, pp.1098-1102, 1991. /12/ C. Acar, and S. Özoduz, "A Versatile Building Block: Current Differencing Buffered Amplifier Suitable for Analog Signal Processing Filters," Microelectronics Journals, vol.30, pp.157160, 1999. /13/ K. Manetakis, C. Toumazou, 'Current-feedback opamp suitable for CMOS VLSI technology', Electronics Letters, vol. 32, no.12, pp.1090-1092, 1996. /14/ A. Toker, S. Özcan, O. Qigekodlu, and C. Acar, "Current-mode allpass filters using CDBA and a new high Q bandpass filter configuration", IEEE Trans. on Circuits and Systems-II: Analog and Digital Signal Processing, vol.47, no.9, pp.949-954, 2000. /15/ W. Tangsrirat, W. Surakampontorn, and N. Fujii, "Realisation of leaprog filters using current differencing buffered amplifiers," IEICE Transaction on Fundemantals, vol. E86-A, no.2, pp.318326, 2003. /16/ S. Celma, J. Sabadell, and P. Martinez, "Universal filter using unity-gain cells," Electronics Letters, vol.31, no.21, pp.18171818, 1995. Mahmut Tokmakgi, Mustafa Algi Erciyes University, Engineering Faculty, Dept. of Eiectricai&Eiectronics Engineering, 38039, Kayseri, Turkey e-mail: tokmakci@erciyes.edu.tr; maici@erciyes.edu.tr Prispelo (Arrived): 30.04.07 Sprejeto (Accepted): 28.5.08