Design of a CMOS OR Gate using Artificial Neural Networks (ANNs)

Similar documents
Signal Processing in Neural Network using VLSI Implementation

Figure 1. Artificial Neural Network structure. B. Spiking Neural Networks Spiking Neural networks (SNNs) fall into the third generation of neural netw

ECE380 Digital Logic. Logic values as voltage levels

CHAPTER 4 MIXED-SIGNAL DESIGN OF NEUROHARDWARE

Sensors & Transducers 2014 by IFSA Publishing, S. L.

A comparative study of different feature sets for recognition of handwritten Arabic numerals using a Multi Layer Perceptron

A SUBSTRATE BIASED FULL ADDER CIRCUIT

Implementation of Full Adder using Cmos Logic

Optimization of Digitally Controlled Oscillator with Low Power

VLSI IMPLEMENTATION OF BACK PROPAGATED NEURAL NETWORK FOR SIGNAL PROCESSING

MOS CURRENT MODE LOGIC BASED PRIORITY ENCODERS

SIMULATION AND IMPLEMENTATION OF PID-ANN CONTROLLER FOR CHOPPER FED EMBEDDED PMDC MOTOR

Design Analysis of 1-bit Comparator using 45nm Technology

A Comparative Analysis Of Back Propagation And Random Forest Algorithm For Character Recognition From Handwritten Document

Design of High Gain Two stage Op-Amp using 90nm Technology

Design & Simulation of Half Adder Circuit Using AVL technique based on CMOS Technology

VLSI Implementationn of Back Propagated Neural Network Signal Processing

Engr354: Digital Logic Circuits

Chapter 3 Digital Logic Structures

Design of Robust and power Efficient 8-Bit Ripple Carry Adder using Different Logic Styles

Low Power CMOS Digitally Controlled Oscillator Manoj Kumar #1, Sandeep K. Arya #2, Sujata Pandey* 3 and Timsi #4

arxiv: v1 [cs.ne] 16 Nov 2016

Design and Analysis of Row Bypass Multiplier using various logic Full Adders

A Simple Design and Implementation of Reconfigurable Neural Networks

A New Configurable Full Adder For Low Power Applications

VLSI Implementation & Design of Complex Multiplier for T Using ASIC-VLSI

Design & Analysis of Low Power Full Adder

Live Hand Gesture Recognition using an Android Device

ASIC Implementation of High Speed Area Efficient Arithmetic Unit using GDI based Vedic Multiplier

Lecture 2: Digital Logic Basis

CMOS Digital Logic Design with Verilog. Chapter1 Digital IC Design &Technology

Electronic Circuits EE359A

Comparator Design Analysis using Efficient Low Power Full Adder Meena Aggarwal 1, Rajesh Mehra 2 1 ME student (ECE), 2 Associate Professor

AN ANALYSIS OF SPEECH RECOGNITION PERFORMANCE BASED UPON NETWORK LAYERS AND TRANSFER FUNCTIONS

II. Previous Work. III. New 8T Adder Design

Design of Low power multiplexers using different Logics

Implementation of High Performance Carry Save Adder Using Domino Logic

Abstract. Most OCR systems decompose the process into several stages:

Design and Analysis of CMOS based Low Power Carry Select Full Adder

POWER EFFICIENT DESIGN OF COUNTER ON.12 MICRON TECHNOLOGY

VLSI Designed Low Power Based DPDT Switch

Device Technology( Part 2 ): CMOS IC Technologies

NOVEL OSCILLATORS IN SUBTHRESHOLD REGIME

NNC for Power Electronics Converter Circuits: Design & Simulation

International Journal of Advanced Research in Computer Science and Software Engineering

International Journal of Advance Engineering and Research Development

Integrated Circuit Design for High-Speed Frequency Synthesis

MINE 432 Industrial Automation and Robotics

ISSN (PRINT): , (ONLINE): , VOLUME-3, ISSUE-8,

Comparison of Multiplier Design with Various Full Adders

Investigation on Performance of high speed CMOS Full adder Circuits

Low Power Realization of Subthreshold Digital Logic Circuits using Body Bias Technique

A Survey on Design of Pipelined Single Precision Floating Point Multiplier Based On Vedic Mathematic Technique

Design a Low Power High Speed Full Adder Using AVL Technique Based on CMOS Nano-Technology

Lecture 9 Transistors

Computational Intelligence Introduction

Code No: R Set No. 1

CHAPTER 6 DIGITAL CIRCUIT DESIGN USING SINGLE ELECTRON TRANSISTOR LOGIC

IMPLEMENTATION OF NEURAL NETWORK IN ENERGY SAVING OF INDUCTION MOTOR DRIVES WITH INDIRECT VECTOR CONTROL

2-BIT COMPARATOR WITH 8-TRANSISTOR 1-BIT FULL ADDER WITH CAPACITOR

An Eight-Octant bipolar junction transistor analog multiplier circuit and its applications

High Speed Binary Counters Based on Wallace Tree Multiplier in VHDL

Design and Implementation of Complex Multiplier Using Compressors

Vector Arithmetic Logic Unit Amit Kumar Dutta JIS College of Engineering, Kalyani, WB, India

FPGA based Real-time Automatic Number Plate Recognition System for Modern License Plates in Sri Lanka

Design of Low Power Flip Flop Based on Modified GDI Primitive Cells and Its Implementation in Sequential Circuits

Design and Analysis of a New Power Efficient Half Subtractor at Various Technologies

High Performance 128 Bits Multiplexer Based MBE Multiplier for Signed-Unsigned Number Operating at 1GHz

EE 330 Laboratory 7 MOSFET Device Experimental Characterization and Basic Applications Spring 2017

John Lazzaro and John Wawrzynek Computer Science Division UC Berkeley Berkeley, CA, 94720

A HIGH SPEED & LOW POWER 16T 1-BIT FULL ADDER CIRCUIT DESIGN BY USING MTCMOS TECHNIQUE IN 45nm TECHNOLOGY

Design and Analysis of Energy Efficient MOS Digital Library Cell Based on Charge Recovery Logic

Figure.1. Schematic of 4-bit CLA JCHPS Special Issue 9: June Page 101

FTL Based Carry Look ahead Adder Design Using Floating Gates

LOW POWER NOVEL HYBRID ADDERS FOR DATAPATH CIRCUITS IN DSP PROCESSOR

CHAPTER 6 BACK PROPAGATED ARTIFICIAL NEURAL NETWORK TRAINED ARHF

EE241 - Spring 2002 Advanced Digital Integrated Circuits

Gdi Technique Based Carry Look Ahead Adder Design

Depletion-mode operation ( 공핍형 ): Using an input gate voltage to effectively decrease the channel size of an FET

An Analog Phase-Locked Loop

Chapter 6 DIFFERENT TYPES OF LOGIC GATES

An Efficient and High Speed 10 Transistor Full Adders with Lector Technique

POWER DISSAPATION CHARACTERISTICS IN VARIOUS ADDERS

High Performance Low-Power Signed Multiplier

The Application of neumos Transistors to Enhanced Built-in Self-Test (BIST) and Product Quality

A Review of Optical Character Recognition System for Recognition of Printed Text

INTERNATIONAL JOURNAL OF PURE AND APPLIED RESEARCH IN ENGINEERING AND TECHNOLOGY

Comparative Analysis of Multiplier in Quaternary logic

Electronics Basic CMOS digital circuits

EE 330 Laboratory 8 Discrete Semiconductor Amplifiers

An Efficient Design of CMOS based Differential LC and VCO for ISM and WI-FI Band of Applications

Design of low-power, high performance flip-flops

Power-Area trade-off for Different CMOS Design Technologies

Speed estimation of three phase induction motor using artificial neural network

A Low Power, 8-Bit, 5MS/s Digital to Analog Converter for Successive Approximation ADC

A High-Speed 64-Bit Binary Comparator

ARTIFICIAL INTELLIGENCE BASED TUNING OF SVC CONTROLLER FOR CO-GENERATED POWER SYSTEM

EE 42/100 Lecture 23: CMOS Transistors and Logic Gates. Rev A 4/15/2012 (10:39 AM) Prof. Ali M. Niknejad

Topic 6. CMOS Static & Dynamic Logic Gates. Static CMOS Circuit. NMOS Transistors in Series/Parallel Connection

Design and Analysis of Different Adder Circuit Using Output Wired Cmos Logic Based Majority Gate

Transcription:

AMSE JOURNALS-2016-Series: Advances D; Vol. 21; N 1; pp 66-77 Submitted July 2016; Revised Oct. 11, 2016, Accepted Nov. 15, 2016 Design of a CMOS OR Gate using Artificial Neural Networks (ANNs) R. K. Mandal Department of Computer Science & Application, University of North Bengal Raja Rammohunpur, PO: NBU, Distt: Darjeeling, West Bengal 734013 India (rakesh_it2002@yahoo.com; http://www.nbu.ac.in) Abstract: - This paper is an approach to simplify the electronic circuits by using Complementary Metal Oxide Semiconductors (CMOS) transistors and map those to equivalent Artificial Neural Networks (ANNs). The implementation of those circuits in ANN leads to software implementation of complex circuits which makes them cheaper as compared to their hardware counterpart. In this paper a multiple layer ANN is developed for the OR gate using already designed CMOS OR gate. The transistors used in CMOS are replaced by simple artificial neurons. The weights used in this ANN are fixed and negative weights are considered for the inverters. Key-words: - Complementary Metal Oxide Semiconductors (CMOS), Artificial Neural Networks (ANNs), OR Gate I. Introduction The modern computing is more biased towards intelligent computing. Intelligence can be best incorporated in computers using Artificial Neural Networks (ANNs) [1, 2]. Research work is going on to develop models which can be used in vast range of applications like medical informatics, handwriting recognition, speech recognition, and other applications of pattern recognition [3, 4, 5, 6]. The development of these models leads to implementation of more 66

complex circuits in software by keeping the hardware simple. These make these circuits cheaper. If ANNs are developed equivalent to the CMOS circuits, then it becomes simple to map ANNs to hardware circuits using CMOS [7, 8, 9, 10, 15]. Work has been done by Forssell M in the field of hardware implementation of Artificial Neural Networks [11]. Some work has already been done in this field where CMOS circuits were designed which accepts synaptic inputs and generates pulse width modulated output waveform of constant frequency on the basis of activation level [12]. Logic gates were implemented in single layer and two layers feed forward neural network based on supervised learning [13]. In another approach Artificial Neural Network (ANN) was used to demonstrate the way in which the biological system was processed in analog domain by using analog component as Gilbert cell multiplier, Adder, Neuron activation function for implementation [14]. Hui W et al worked on the use of artificial neural networks on segmented arc heather failure prediction [16]. This paper has been divided into three sections. Section-1 discusses the implementation of a simple ANN CMOS OR gate. Section-2 discusses the methodology. Section-3 discusses the result analysis. II. Design of CMOS OR gate using Artificial Neural Networks (ANN) [15] v dd A CMOS NOT GATE y B A B v ss Figure 1: CMOS OR GATE 67

Figure 1 [15], displays a CMOS OR gate which is divided into two portions. The upper portion of the CMOS gate consists of two transistors connected in series. The upper portion is P-MOS. It is also called Pull up (PUN). The transistor inputs are A and B which are inverted before going to the transistor. The value of vdd is always 1. The lower portion of the CMOS gate consists of two transistors connected in parallel. The lower portion is N-MOS. It is also called Pull down (PDN). The transistor inputs are A and B. The value of vss is always 0. When A=0 and B=0, the upper transistors connected in series gets inputs as 1. This clears the line for the vdd. The output obtained here will be vdd, which is 1 and an inverted output is obtained because a NOT gate is connected further. In case of lower transistors the 0 input in both parallel transistor blocks the way for vss. When A=0 and B=1, the first upper transistor gets input as 1 and the second upper transistor gets the input as 0 and blocks the way for vdd. The first lower transistor gets 0 and blocks the way for vss. The second lower transistor gets output as 1 and clears way for vss. The output obtained here will be vss. Similarly, other outputs obtained are the outputs of an OR gate as shown in Table 1, [15]. Table 1: Truth Table of C-MOS OR GATE A B vdd vss y y 0 0 1 0 1 0 0 1 1 0 0 1 1 0 1 0 0 1 1 1 1 0 0 1 The OR gate already designed by using transistors and inverters are designed using a multiple layer Artificial Neural Network (ANN) as shown in Figure 2. III. Methodology of designing CMOS OR gate using Artificial Neural Networks (ANN) In case of an equivalent ANN circuit. The transistors are replaced by simple artificial neurons. The inverters are replaced by negative weights used on the links. Multiple layers of neurons are used to implement the ANN circuit. 68

v dd w 1 T 1 w 7 y 1 x 1 T 2 w 2 w 11 x 1 w 3 x 2 N 1 w 8 y 2 ANN NOT GATE y 6 w 4 T 3 y 3 w 9 w 12 w 12 y v ss N 2 y 5 w 5 T 4 w 10 y 4 x 2 w 6 Figure 2: C-MOS OR Gate using multiple-layer ANN Figure 2 shows a multiple layer ANN, where T1 and T2 are the artificial neurons representing the two transistors connected in series. And the neurons T3 and T4 represent the transistors connected in parallel. N1 and N2 are two simple neurons. One neuron is a simple perceptron and another neuron is a referee neuron. The weighted (w1 and w2) inputs of T1 are vdd and x1 and output is y1. The weighted (w7 and w8) inputs of T2 are y1 and x2 and output is y2. The weighted (w3 and w4) inputs of T3 are x1 and vss and output is y3. The weighted (w5 and w6) inputs of T4 are vss and x2 and output is y4. The weighted (w11 and w12) inputs of N1 are y2 and y5 and output is y6. The weighted (w9 and w10) inputs of N2 are y3 and y4 and output is y5. Final output of the ANN is connected to a CMOS NOT gate. 69

The output of the neurons T1, T2, T3, T4 and N2 are calculated by using the following equations: yout1 = vdd*w1 + x1*w2 Equation 1 yout2 = y1*w7 + x2*w8 Equation 2 yout3 = x1*w3 + vss*w4 Equation 3 yout4 = vss*w5 + x2*w6 Equation 4 yout5 = y3*w9 + y4*w10 Equation 5 for (j=1 to 5; if youtj > 0; then yj = 1 else yj = -1) Equation 6 The output of the neuron N1 is calculated by using the following equation: If (y2 == 1 && y5 == -1) then y6 == vdd Equation 7 Example 1: The following example calculates the inputs and outputs of the CMOS OR gate using ANN. x1 = -1 and x2 = -1 yout1 = vdd*w1 + x1*w2 = 1*1 + (-1)*(-1) = 2 > 0 Therefore, y1 = 1 yout2 = y1*w7 + x2*w8 = 1*1 + (-1)*(-1) = 2 > 0 Therefore, y2 = 1 yout3 = x1*w3 + vss*w4 70

Therefore, y3 = -1 yout4 = vss*w5 + x2*w6 Therefore, y4 = -1 yout5 = y3*w9 + y4*w10 Therefore, y5 = -1 Applying Equation 7 we get y6 = 1 Therefore, y x1 = -1 and x2 = 1 yout1 = vdd*w1 + x1*w2 = 1*1 + (-1)*(-1) = 2 > 0 Therefore, y1 = 1 yout2 = y1*w7 + x2*w8 = 1*1 + 1*(-1) Therefore, y2 = -1 yout3 = x1*w3 + vss*w4 Therefore, y3 = -1 yout4 = vss*w5 + x2*w6 71

= (-1)*1 + 1*1 Therefore, y4 = -1 yout5 = y3*w9 + y4*w10 Therefore, y5 = -1 Applying Equation 7 we get y6 = -1 Therefore, y = 1 x1 = 1 and x2 = -1 yout1 = vdd*w1 + x1*w2 = 1*1 + 1*(-1) Therefore, y1 = -1 yout2 = y1*w7 + x2*w8 = (-1)*1 + (-1)*(-1) Therefore, y2 = -1 yout3 = x1*w3 + vss*w4 = 1*1 + (-1)*1 Therefore, y3 = -1 yout4 = vss*w5 + x2*w6 Therefore, y4 = -1 72

yout5 = y3*w9 + y4*w10 Therefore, y5 = -1 Applying Equation 7 we get y6 = -1 Therefore, y = 1 x1 = 1 and x2 = 1 yout1 = vdd*w1 + x1*w2 = 1*1 + 1*(-1) Therefore, y1 = -1 yout2 = y1*w7 + x2*w8 = (-1)*1 + 1*(-1) Therefore, y2 = -1 yout3 = x1*w3 + vss*w4 = 1*1 + (-1)*1 Therefore, y3 = -1 yout4 = vss*w5 + x2*w6 = (-1)*1 + 1*1 Therefore, y4 = -1 yout5 = y3*w9 + y4*w10 73

Therefore, y5 = -1 Applying Equation 7 we get y6 = -1 Therefore, y = 1 IV. Result Analysis Table 2 shows various inputs given to different artificial neurons used in the CMOS OR ANN and the corresponding output. A and B are the inputs of the OR gate and y is the output, which is binary. But the ANN deals with bipolar inputs and outputs. Table 2: Input-Output Set A B x1 x2 vdd vss y1 y2 y3 y4 y5 y6 y y 0 0-1 -1 1-1 1-1 -1-1 -1 1-1 0 0 1-1 1 1-1 1-1 -1-1 -1-1 1 1 1 0 1-1 1-1 -1-1 -1-1 -1-1 1 1 1 1 1 1 1-1 -1-1 -1-1 -1-1 1 1 Table 3 shows various weights used in the CMOS OR ANN. Table 3: Weight Set w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 1-1 1 1 1 1 1-1 1 1 1 1 V. Discussion This paper is an approach to design the ANN model for basic logic gates like OR gate. A similar approach has already been done before by the same paper author but the ANN designed was deviated from the working of the CMOS gates. These ANNs are based on simple Self Organizing Maps (SOMs) which uses unsupervised learning. Therefore the synaptic weighs are fixed here. The weights are negative where inverted transistors are used. Other weights are kept positive. Work has already been done in this field as discussed in the 74

introduction but the work in this paper is an approach to design very simple circuits. Simple circuits are easy to implement. This approach can be used to simplify complex circuits in future for various applications. Here, only OR-Gate is considered because the logic behind working of OR-Gate if mapped with CMOS OR-Gate, which is further mapped to a simple ANN, any type of logic circuit can be mapped using ANN. The concept of vdd and vss is very clearly mentioned here. vdd is always binary 1 as in CMOS OR-Gate and vss is always binary 0. The function of inverter can easily be implemented with negative weight. Further, the emphasis is given on mapping ANN circuits to replace complicated electronic hardware circuits with ANN models which can be implemented using software. VI. Conclusion The approach in this paper is to design simple circuits to develop basic logic gates using CMOS. CMOS circuits are used in many devices now days. ANNs are also becoming popular now days. This approach will lead to the development of simple ANN circuits and also the hardware implementation of the ANN models will become simple with the advancement of this technology. References [1.] L. Fausett, Fundamentals of Neural Networks, Architectures, Algorithms and Applications, Pearson Education, India, 2009. [2.] G.N. Swamy, G. Vijay Kumar, Neural Networks, Scitech, India, 2007. [3.] Ashutosh Aggarwal, Rajneesh Rani, RenuDhir, Handwritten Devanagri Character Recognition using Gradient Features, International Journal of Advanced Research in Computer Science and Software Engineering, Volume 2, Issue 5, May 2012, ISSN 2277 128X, pp. 85-90. [4.] Sandeep, Saha, Nabarag Paul, Sayam Kumar Das, Sandip Kundu, Optical Character Recognition using 40-point Feature Extraction and Artificial Neural Network, International Journal of Advanced Research in Computer Science and Software Engineering, Volume 3, Issue 4, April 2013, ISSN 2277 128X, pp. 495-502. [5.] Ali Borji, Mandana Hamidi, Fariborz Mahmoudi, Robust Handwritten Character Recognition with Features Inspired by Visual Ventral Stream, Springer Science+Business Media, LLC. 2008, published online (31 August 2008), pp. 97-111. 75

[6.] Y Perwej and A Chaturvedi, Neural Networks for Handwritten English Alphabet Recognition, International Journal of Computer Applications, Volume 20, No. 7, pp. 1-5, 2011. [7.] Frye R C, Rietman E A, and Wong C C, Back-propagation learning and non idealities in analog neural network hardware, Neural Networks, IEEE Transactions on, vol. 2, no. 1, pp. 110 117, 1991. [8.] Jung S and Kim S S, Hardware implementation of a real-time neural network controller with a dsp and an fpga for nonlinear systems, Industrial Electronics, IEEE Transactions on, vol. 54, no. 1, pp. 265 271, 2007. [9.] Hikawa H, {FPGA} implementation of self organizing map with digital phase locked loops, Neural Networks, vol. 18, no. 56, pp. 514 522, 2005, {IJCNN} 2005. Available Online: http://www.sciencedirect.com/science/article/pii/s0893608005001103 [10.] Merolla P A, Arthur J V, Alvarez-Icaza R, Cassidy A S, Sawada J, Akopyan F, Jackson B L, Imam N, Guo C, Nakamura Y, Brezzo B, Vo I, Esser S K, Appuswamy R, Taba B, Amir A, Flickner M D, Risk W P, Manohar R, and Modha D S, A million spiking-neuron integrated circuit with a scalable communication network and interface, Science, Vol. 345, No. 6197, pp 668 673, 2014. Available Online: http://www.sciencemag.org/content/345/6197/668.abstract [11.] Forssell M, Hardware Implementation of Artificial Neural Networks, 18-859E INFORMATION FLOW IN NETWORKS, pp 1-4, Available: http://users.ece.cmu.edu/~pggrover/teaching/files/neuromorphiccomputing.pdf, (Accessed : 2016) [12.] Yellamraju S, Kumari Swati, Girolkar S, Chourasia S and Tete A D, Design of Various Logic Gates in Neural Networks, Annual IEEE India Conference (INDICON), 2013, Mumbai, India. [13.] Hawas N M, Rekaby B K A, ANN Based On Learning Rule Of Neuron Activation Function Using Electronic Devices, International Journal of Advanced Computer Technology (IJACT), Vol 4, No. 3, pp 19-22, 2015. [14.] Kale N B, Padole V B, Compression and Decompression of Signal Using CMOS Technology...A Review, International Journal of Advanced Research in Computer Science and Software Engineering, Vol. 4, Issue 3, pp 53-55, 2014. [15.] CMOS Gate Circuitry, Chapter 3 - Logic Gates, Available: http://www.allaboutcircuits.com/textbook/digital/chpt-3/cmos-gatecircuitry, 2016 76

[16.] Hui W, Dejang C, Wei Z, Ping Z, Yongsheng L, Application of artificial neural networks to segmented arc heather failure prediction, AMSE Journals, Advances in Modeling, Series B, Vol. 54-1, pp 17-29. 2011 77