SlideShare a Scribd company logo
IJSRD - International Journal for Scientific Research & Development| Vol. 1, Issue 5, 2013 | ISSN (online): 2321-0613
All rights reserved by www.ijsrd.com 1082
Abstract — Artificial neural network play an important role
in VLSI circuit to find and diagnosis multiple fault in digital
circuit. In this paper, the example of single layer and multi-
layer neural network had been discussed secondly
implement those structure by using verilog code and same
idea must be implement in mat lab for getting number of
iteration and verilog code gives us time taken to adjust the
weight when error become almost equal to zero. The
purposed aim at reducing resource requirement, without
much compromises on the speed that neural network can be
realized on single chip at lower cost.
Keywords:--Neural Network, Verilog, Matlab, architecture
I. INTRODUCTION
As we know rapid increase in demand of digital circuit and
industry need there to launch their product as earlier as
possible without sacrificing integrated circuit (IC) quality,
so testing of digital circuit in Very Large Scale Integration
(VLSI) has become challenge for that it is also very
important to develop more powerful algorithms for
diagnosis more multiple fault in digital circuit. Diagnosis
defines as task of identifying the cause and location of a
manifested by some observation behavior. This is often
considering being a two stage process: first the fact that fault
has occurred must be recognized-this is referred to as fault
detection that is general achieved by testing. Secondly the
nature and location should be determined such that
appropriate remedial action may be initiated. To come
across this problem a test engineer has devolved a parallel
algorithm knows as ARTIFIAL NEURAL NETWORK. [4]
The application of ANN are expanding because neural
network are good at solving problem not just in engineering
but in medicine, control system, signal processing ,science
etc., because of faster algorithm and faster computer have
made it possible to use neural network to solve complex
industrial problem that formerly required too much
computation. Artificial neural networks (ANN) are parallel
algorithms. Their inherent parallelism makes them
particularly suited to parallel VLSI implementations.
The idea of neural network based on characteristic of brain
function, the brain consist of many highly connected
element knows as neuron and this is connected to axon.
Even though biological neuron is very slow when compared
to electrical circuit, the brain must perform many tasks
faster than any computer. ANN work on two network single
input neuron network and multi-layer input neuron network.
II. ALGORITHM
A. SINGLE LAYER NEURON NETWORK
Fig. 1: Single layer Neural network
Above fig-1 shown is single layer neuron network in which
there is one input layer where multiple input is being applied
and all applied input and one bias voltage are summed at
one neuron and at last output is passed through nonlinear
activation function that can be sigmoid function, there are
many other non-linear activation function hard for those
refer [4] For single input equation can be return as
A=F (w1*P1+Bias voltage) (1)
For n number of input the equation-1 can be return [1]
A ∑ (2)
Weight in single layer neural network can be adjusted by
different algorithm such as supervised learning,
unsupervised and reinforcement learning here our example
falls under category of supervised learning because to
adjust weight automatically we have to find mean square
error and tries to minimize the average squared error
between network output and targeted value. To minimize
those errors we use gradient descent algorithm.[4]
Error= (target out – network output)2
(3)
Weight=weight + alpha*Error*neural network input (4)
Continue adjusting weight from are equation-4 up to Error
reach zero here alpha is learning rate which always between
0 and 1. [4]
Simulation of Single and Multilayer of Artificial Neural Network
using Verilog
Shreyas J. Patel1
Rajesh Vasdadiya2
Shaktivel S.M3
1
PG Student 2
PG Student 3
Associate Professor
1,2,3
Department of Electronics and communication Engineering.
1,2,3
VIT UNIVERSITY, Chennai-600 048 (Chennai-Tamil Nadu-INDIA)
Simulation of Single and Multilayer of Artificial Neural Network using VERILOG
(IJSRD/Vol. 1/Issue 5/2013/0011)
All rights reserved by www.ijsrd.com 1083
B. MULTILAYER NEURAL NETWORK
Fig. 2: Multilayer network
From fig-2 Multilayer consists three layer input (I), hidden
(j) and output layer (k). To adjust the weight between two
different layer automatically in an multi-layer neural
network there are so many algorithm but one of
advantageous for this network is batch gradient negative
that is nothing but back propagation method in which weight
are update in direction of negative gradient of the
performance. The learning factor is multiplied the negative
gradient to determine the changes to weight and bias. The
larger the learning rates the bigger step. If the learning rate
is made too bigger the algorithm becomes unstable. Back
propagation is fastest algorithm than the other technique.
For multilayer neural network we are using sigmoid
function [4].where x is your input of any neuron.
(5)
Error= (target out – network output) 2
(6)
From equation-6
Wjk = Wjk+ alpha*Δjk*input (input of hidden neuron)
Wij = Wij+ alpha*Δij*input (input of input neuron)
Where
Δjk=error*dE/dWjk and wjk is weight between hidden
layer to output layer
Δij=∑wjk* Δjk and wij is weight between input and hidden
layer
III. DESIGN METHODOLOGY/DESIGN DETAILS
Simulation for single layer and multilayer example for And
Gate and X-or Gate is given.
A. And gate using single neural network
The single layer neural network first of all weight is being
assigned manually and by neural network rule weight is
being multiplied by input and summing all input with weight
and last neural network output compared to targeted output.
if difference is there that is error by using gradient decent
algorithm decrease error and at same time weight is being
adjusted and when error reach to desired output we can say
that our neural network is being trained. In an and gate we
had applied two input (1, 0) and w0, w1 are synaptic weigh
and b is bias voltage (b is not necessary that depends upon
user)[4] these three value are summed together .
How many iteration training algorithm take to reduce error
zero that can be seen by implementing the idea or program
in mat lab and how many second the algorithm is taking to
reduce error approximately up to zero can be observed by
implementing your Verilog code in model sim or Xilinx
simulator.
Fig. 3: And gate using single neural network
For example consider you are applying input and weight
randomly.
A=1 and B=0;
W0=0.5; W1=0.7;
N=(a*w0+b*w1)
=1 * 0.5 + 0 * 0.7
= 0.5
Error = target output –(desired output)
=-0.5
Here by summing input and weight (eq-3) at last output
compare with targeted output, and continuously updating
weight as per (eq-4). By using Gradient decent algorithm
error will decrease and how much iteration been taken to
adjust the weight can be easily seen by mat lab.(fig-4)
Fig. 4: Calculation of error using gradient decent algorithm
Number of iteration ==7000
Now same algorithm been implemented in model simulator
to see how much second take to adjust the weight.
Simulation of Single and Multilayer of Artificial Neural Network using VERILOG
(IJSRD/Vol. 1/Issue 5/2013/0011)
All rights reserved by www.ijsrd.com 1084
Fig. 5: Calculation of error using Verilog code
Time taken to adjust weight:-754ns
Fig. 6: Dataflow structure
This is weight w1 and w2 value when error is zero can be
seen by model simulator.
IV. MULTILAYER NEURAL NETWORK
Fig. 6: X-OR gate using multilayer neural network
In an 2-2-1 multilayer there are 2 input neuron,2 hidden
neuron and single output,the weight between input and
hidden layer is w1,w2,w3,w4 and weight between hidden to
output is w5 and w6,here we had used back propagation
algorithm the main advantage of this method to reduce
number of iterrationand time[3].the simulation result shown
below
Fig. 7: Number of itteration to adjust weight using matlab
Number of iteration:-1500
Fig 8: Time taken to adjust weight using verilog
Time taken to adjust weight:-2904ps
Fig. 9: Dataflow structure
V. CONCLUSION
All digital circuit consist of universal and logical gate and
last step in industry to test those circuit if there is fault again
they have to go for some adjustment it will take more time
to reach product to market, so if we replace those circuit by
neural network maximum time to for finding fault can be
minimized.
Simulation of Single and Multilayer of Artificial Neural Network using VERILOG
(IJSRD/Vol. 1/Issue 5/2013/0011)
All rights reserved by www.ijsrd.com 1085
REFERENCES
[1]. Karthikeyan. A , Rajeswaran. N, “DESIGN AND
IMPLEMENTATION OF MULTIPLE FAULT
DIAGNOSIS ON VLSI CIRCUITS USING
ARTIFICIAL NEURAL” IJAET, May 2012
[2]. AL-Jumah. A.A. Arslan. T,” ARTIFICIAL NEURAL
NETWORK BASED MULTIPLE FAULT
DIAGNOSIS IN DIGITAL CIRCUIT” IEEE, may
1998.
[3]. Rafid Ahamed Khali ,“HARDWARE
IMPLEMTATION OF BACK PRAPAGATION
NEURAL NETWORK ON FPGA”, university of
Mosul, sep 2007
[4]. Hagan Demuth dearle, “NEURAL NETWORK
DESIGN”, book
[5]. Aydoğan Savran, Serkan Ünsal “HARDWARE
IMPLEMTATION OF FEEDFORWARD NEURAL
NETWORK ON FPGA” Ege University, Department of
Electrical and Electronics Engineering
[6]. Alan .N.Willson, “ONE-NEURON CIRCUITARY
FOR CARRY GENERATION IN 4-BIT ADDER ”,
IEEE,1992
[7]. Samir palnitkar “VERILOG HDL”,IEEE 1364-2001

More Related Content

PDF
Hybrid PSO-SA algorithm for training a Neural Network for Classification
PDF
Review: “Implementation of Feedforward and Feedback Neural Network for Signal...
PDF
Neural network in matlab
PDF
Implementation Of Back-Propagation Neural Network For Isolated Bangla Speech ...
PDF
Implementation of Back-Propagation Neural Network using Scilab and its Conver...
PDF
G010334554
PDF
Levenberg marquardt-algorithm-for-karachi-stock-exchange-share-rates-forecast...
PDF
Efficiency of Neural Networks Study in the Design of Trusses
Hybrid PSO-SA algorithm for training a Neural Network for Classification
Review: “Implementation of Feedforward and Feedback Neural Network for Signal...
Neural network in matlab
Implementation Of Back-Propagation Neural Network For Isolated Bangla Speech ...
Implementation of Back-Propagation Neural Network using Scilab and its Conver...
G010334554
Levenberg marquardt-algorithm-for-karachi-stock-exchange-share-rates-forecast...
Efficiency of Neural Networks Study in the Design of Trusses

What's hot (17)

PDF
IRJET - Implementation of Neural Network on FPGA
PDF
PDF
Black-box modeling of nonlinear system using evolutionary neural NARX model
PDF
Economic Load Dispatch (ELD), Economic Emission Dispatch (EED), Combined Econ...
PDF
B046050711
PDF
Adaptive modified backpropagation algorithm based on differential errors
PDF
Improving Performance of Back propagation Learning Algorithm
PDF
Design of airfoil using backpropagation training with mixed approach
PDF
Digital Implementation of Artificial Neural Network for Function Approximatio...
PDF
Comparison of hybrid pso sa algorithm and genetic algorithm for classification
PDF
Optimization of Number of Neurons in the Hidden Layer in Feed Forward Neural ...
PDF
H046014853
PDF
11.comparison of hybrid pso sa algorithm and genetic algorithm for classifica...
PDF
Comparison Between Levenberg-Marquardt And Scaled Conjugate Gradient Training...
PPTX
MLConf 2013: Metronome and Parallel Iterative Algorithms on YARN
PDF
Optimal neural network models for wind speed prediction
PDF
IRJET- Image Classification – Cat and Dog Images
IRJET - Implementation of Neural Network on FPGA
Black-box modeling of nonlinear system using evolutionary neural NARX model
Economic Load Dispatch (ELD), Economic Emission Dispatch (EED), Combined Econ...
B046050711
Adaptive modified backpropagation algorithm based on differential errors
Improving Performance of Back propagation Learning Algorithm
Design of airfoil using backpropagation training with mixed approach
Digital Implementation of Artificial Neural Network for Function Approximatio...
Comparison of hybrid pso sa algorithm and genetic algorithm for classification
Optimization of Number of Neurons in the Hidden Layer in Feed Forward Neural ...
H046014853
11.comparison of hybrid pso sa algorithm and genetic algorithm for classifica...
Comparison Between Levenberg-Marquardt And Scaled Conjugate Gradient Training...
MLConf 2013: Metronome and Parallel Iterative Algorithms on YARN
Optimal neural network models for wind speed prediction
IRJET- Image Classification – Cat and Dog Images
Ad

Viewers also liked (18)

PDF
Dynamic Rule Base Construction and Maintenance Scheme for Disease Prediction
PDF
GPS and GSM based Steered navigation and location tracking device for Visionless
PDF
VHDL Implementation of Flexible Multiband Divider
PDF
Design of AMBA AHB interface around OpenRISC 1200 processor and comparing the...
PDF
Design Fabrication and Static Analysis of Single Composite Lap Joint
PDF
Computationally Efficient ID-Based Blind Signature Scheme in E-Voting
PDF
Analysis of Catalyst Support Ring in a pressure vessel based on ASME Section ...
PDF
Colour Object Recognition using Biologically Inspired Model
PDF
Modeling Analysis& Solution of Power Quality Problems Using DVR & DSTATCOM
PDF
Power Swing Phenomena and Comparative Study of Its Detection on Transmission ...
PDF
Study on effect of Alccofine & Fly ash addition on the Mechanical properties ...
PDF
Reviews of Cascade Control of Dc Motor with Advance Controller
PDF
Comparatively analysis of AODV and DSR in MAC layer for Ad Hoc Environment
PDF
A Case for E-Business
PDF
Analysis Approach for Five Phase Two-Level Voltage Source Inverter with PWM T...
PDF
Categorias
PDF
Speech Recognition using HMM & GMM Models: A Review on Techniques and Approaches
PDF
Design & Check Cyclic Redundancy Code using VERILOG HDL
Dynamic Rule Base Construction and Maintenance Scheme for Disease Prediction
GPS and GSM based Steered navigation and location tracking device for Visionless
VHDL Implementation of Flexible Multiband Divider
Design of AMBA AHB interface around OpenRISC 1200 processor and comparing the...
Design Fabrication and Static Analysis of Single Composite Lap Joint
Computationally Efficient ID-Based Blind Signature Scheme in E-Voting
Analysis of Catalyst Support Ring in a pressure vessel based on ASME Section ...
Colour Object Recognition using Biologically Inspired Model
Modeling Analysis& Solution of Power Quality Problems Using DVR & DSTATCOM
Power Swing Phenomena and Comparative Study of Its Detection on Transmission ...
Study on effect of Alccofine & Fly ash addition on the Mechanical properties ...
Reviews of Cascade Control of Dc Motor with Advance Controller
Comparatively analysis of AODV and DSR in MAC layer for Ad Hoc Environment
A Case for E-Business
Analysis Approach for Five Phase Two-Level Voltage Source Inverter with PWM T...
Categorias
Speech Recognition using HMM & GMM Models: A Review on Techniques and Approaches
Design & Check Cyclic Redundancy Code using VERILOG HDL
Ad

Similar to Simulation of Single and Multilayer of Artificial Neural Network using Verilog (20)

PDF
Digital Implementation of Artificial Neural Network for Function Approximatio...
PPTX
DNN.pptx
PDF
071bct537 lab4
PPTX
04 Multi-layer Feedforward Networks
PDF
Differential Protection of Generator by Using Neural Network, Fuzzy Neural an...
PDF
Neural Network Implementation Control Mobile Robot
PDF
Multilayer Backpropagation Neural Networks for Implementation of Logic Gates
PDF
Multilayer Backpropagation Neural for Implementation of Logic Gates Networks
PDF
Introduction to Artificial Neural Networks - PART IV.pdf
PPTX
Neural network
PDF
Fuzzy Logic Final Report
PDF
40220140501001
PDF
teste
PDF
Csss2010 20100803-kanevski-lecture2
PDF
Modeling of neural image compression using gradient decent technology
PPTX
ML_Unit_2_Part_A
PDF
W2 - Multilayer Neural Network Lecture notes university of sydney
PPT
Artificial neural networks
PPTX
Neural Networks
PDF
Artificial Neural Network for machine learning
Digital Implementation of Artificial Neural Network for Function Approximatio...
DNN.pptx
071bct537 lab4
04 Multi-layer Feedforward Networks
Differential Protection of Generator by Using Neural Network, Fuzzy Neural an...
Neural Network Implementation Control Mobile Robot
Multilayer Backpropagation Neural Networks for Implementation of Logic Gates
Multilayer Backpropagation Neural for Implementation of Logic Gates Networks
Introduction to Artificial Neural Networks - PART IV.pdf
Neural network
Fuzzy Logic Final Report
40220140501001
teste
Csss2010 20100803-kanevski-lecture2
Modeling of neural image compression using gradient decent technology
ML_Unit_2_Part_A
W2 - Multilayer Neural Network Lecture notes university of sydney
Artificial neural networks
Neural Networks
Artificial Neural Network for machine learning

More from ijsrd.com (20)

PDF
IoT Enabled Smart Grid
PDF
A Survey Report on : Security & Challenges in Internet of Things
PDF
IoT for Everyday Life
PDF
Study on Issues in Managing and Protecting Data of IOT
PDF
Interactive Technologies for Improving Quality of Education to Build Collabor...
PDF
Internet of Things - Paradigm Shift of Future Internet Application for Specia...
PDF
A Study of the Adverse Effects of IoT on Student's Life
PDF
Pedagogy for Effective use of ICT in English Language Learning
PDF
Virtual Eye - Smart Traffic Navigation System
PDF
Ontological Model of Educational Programs in Computer Science (Bachelor and M...
PDF
Understanding IoT Management for Smart Refrigerator
PDF
DESIGN AND ANALYSIS OF DOUBLE WISHBONE SUSPENSION SYSTEM USING FINITE ELEMENT...
PDF
A Review: Microwave Energy for materials processing
PDF
Web Usage Mining: A Survey on User's Navigation Pattern from Web Logs
PDF
APPLICATION OF STATCOM to IMPROVED DYNAMIC PERFORMANCE OF POWER SYSTEM
PDF
Making model of dual axis solar tracking with Maximum Power Point Tracking
PDF
A REVIEW PAPER ON PERFORMANCE AND EMISSION TEST OF 4 STROKE DIESEL ENGINE USI...
PDF
Study and Review on Various Current Comparators
PDF
Reducing Silicon Real Estate and Switching Activity Using Low Power Test Patt...
PDF
Defending Reactive Jammers in WSN using a Trigger Identification Service.
IoT Enabled Smart Grid
A Survey Report on : Security & Challenges in Internet of Things
IoT for Everyday Life
Study on Issues in Managing and Protecting Data of IOT
Interactive Technologies for Improving Quality of Education to Build Collabor...
Internet of Things - Paradigm Shift of Future Internet Application for Specia...
A Study of the Adverse Effects of IoT on Student's Life
Pedagogy for Effective use of ICT in English Language Learning
Virtual Eye - Smart Traffic Navigation System
Ontological Model of Educational Programs in Computer Science (Bachelor and M...
Understanding IoT Management for Smart Refrigerator
DESIGN AND ANALYSIS OF DOUBLE WISHBONE SUSPENSION SYSTEM USING FINITE ELEMENT...
A Review: Microwave Energy for materials processing
Web Usage Mining: A Survey on User's Navigation Pattern from Web Logs
APPLICATION OF STATCOM to IMPROVED DYNAMIC PERFORMANCE OF POWER SYSTEM
Making model of dual axis solar tracking with Maximum Power Point Tracking
A REVIEW PAPER ON PERFORMANCE AND EMISSION TEST OF 4 STROKE DIESEL ENGINE USI...
Study and Review on Various Current Comparators
Reducing Silicon Real Estate and Switching Activity Using Low Power Test Patt...
Defending Reactive Jammers in WSN using a Trigger Identification Service.

Recently uploaded (20)

PDF
Geotechnical Engineering, Soil mechanics- Soil Testing.pdf
PPTX
Unit 5 BSP.pptxytrrftyyydfyujfttyczcgvcd
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
Queuing formulas to evaluate throughputs and servers
PPTX
The-Looming-Shadow-How-AI-Poses-Dangers-to-Humanity.pptx
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
Monitoring Global Terrestrial Surface Water Height using Remote Sensing - ARS...
PPT
Chapter 6 Design in software Engineeing.ppt
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
Fluid Mechanics, Module 3: Basics of Fluid Mechanics
PPTX
AgentX UiPath Community Webinar series - Delhi
PPTX
ANIMAL INTERVENTION WARNING SYSTEM (4).pptx
Geotechnical Engineering, Soil mechanics- Soil Testing.pdf
Unit 5 BSP.pptxytrrftyyydfyujfttyczcgvcd
Model Code of Practice - Construction Work - 21102022 .pdf
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
bas. eng. economics group 4 presentation 1.pptx
Queuing formulas to evaluate throughputs and servers
The-Looming-Shadow-How-AI-Poses-Dangers-to-Humanity.pptx
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Monitoring Global Terrestrial Surface Water Height using Remote Sensing - ARS...
Chapter 6 Design in software Engineeing.ppt
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
CH1 Production IntroductoryConcepts.pptx
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Fluid Mechanics, Module 3: Basics of Fluid Mechanics
AgentX UiPath Community Webinar series - Delhi
ANIMAL INTERVENTION WARNING SYSTEM (4).pptx

Simulation of Single and Multilayer of Artificial Neural Network using Verilog

  • 1. IJSRD - International Journal for Scientific Research & Development| Vol. 1, Issue 5, 2013 | ISSN (online): 2321-0613 All rights reserved by www.ijsrd.com 1082 Abstract — Artificial neural network play an important role in VLSI circuit to find and diagnosis multiple fault in digital circuit. In this paper, the example of single layer and multi- layer neural network had been discussed secondly implement those structure by using verilog code and same idea must be implement in mat lab for getting number of iteration and verilog code gives us time taken to adjust the weight when error become almost equal to zero. The purposed aim at reducing resource requirement, without much compromises on the speed that neural network can be realized on single chip at lower cost. Keywords:--Neural Network, Verilog, Matlab, architecture I. INTRODUCTION As we know rapid increase in demand of digital circuit and industry need there to launch their product as earlier as possible without sacrificing integrated circuit (IC) quality, so testing of digital circuit in Very Large Scale Integration (VLSI) has become challenge for that it is also very important to develop more powerful algorithms for diagnosis more multiple fault in digital circuit. Diagnosis defines as task of identifying the cause and location of a manifested by some observation behavior. This is often considering being a two stage process: first the fact that fault has occurred must be recognized-this is referred to as fault detection that is general achieved by testing. Secondly the nature and location should be determined such that appropriate remedial action may be initiated. To come across this problem a test engineer has devolved a parallel algorithm knows as ARTIFIAL NEURAL NETWORK. [4] The application of ANN are expanding because neural network are good at solving problem not just in engineering but in medicine, control system, signal processing ,science etc., because of faster algorithm and faster computer have made it possible to use neural network to solve complex industrial problem that formerly required too much computation. Artificial neural networks (ANN) are parallel algorithms. Their inherent parallelism makes them particularly suited to parallel VLSI implementations. The idea of neural network based on characteristic of brain function, the brain consist of many highly connected element knows as neuron and this is connected to axon. Even though biological neuron is very slow when compared to electrical circuit, the brain must perform many tasks faster than any computer. ANN work on two network single input neuron network and multi-layer input neuron network. II. ALGORITHM A. SINGLE LAYER NEURON NETWORK Fig. 1: Single layer Neural network Above fig-1 shown is single layer neuron network in which there is one input layer where multiple input is being applied and all applied input and one bias voltage are summed at one neuron and at last output is passed through nonlinear activation function that can be sigmoid function, there are many other non-linear activation function hard for those refer [4] For single input equation can be return as A=F (w1*P1+Bias voltage) (1) For n number of input the equation-1 can be return [1] A ∑ (2) Weight in single layer neural network can be adjusted by different algorithm such as supervised learning, unsupervised and reinforcement learning here our example falls under category of supervised learning because to adjust weight automatically we have to find mean square error and tries to minimize the average squared error between network output and targeted value. To minimize those errors we use gradient descent algorithm.[4] Error= (target out – network output)2 (3) Weight=weight + alpha*Error*neural network input (4) Continue adjusting weight from are equation-4 up to Error reach zero here alpha is learning rate which always between 0 and 1. [4] Simulation of Single and Multilayer of Artificial Neural Network using Verilog Shreyas J. Patel1 Rajesh Vasdadiya2 Shaktivel S.M3 1 PG Student 2 PG Student 3 Associate Professor 1,2,3 Department of Electronics and communication Engineering. 1,2,3 VIT UNIVERSITY, Chennai-600 048 (Chennai-Tamil Nadu-INDIA)
  • 2. Simulation of Single and Multilayer of Artificial Neural Network using VERILOG (IJSRD/Vol. 1/Issue 5/2013/0011) All rights reserved by www.ijsrd.com 1083 B. MULTILAYER NEURAL NETWORK Fig. 2: Multilayer network From fig-2 Multilayer consists three layer input (I), hidden (j) and output layer (k). To adjust the weight between two different layer automatically in an multi-layer neural network there are so many algorithm but one of advantageous for this network is batch gradient negative that is nothing but back propagation method in which weight are update in direction of negative gradient of the performance. The learning factor is multiplied the negative gradient to determine the changes to weight and bias. The larger the learning rates the bigger step. If the learning rate is made too bigger the algorithm becomes unstable. Back propagation is fastest algorithm than the other technique. For multilayer neural network we are using sigmoid function [4].where x is your input of any neuron. (5) Error= (target out – network output) 2 (6) From equation-6 Wjk = Wjk+ alpha*Δjk*input (input of hidden neuron) Wij = Wij+ alpha*Δij*input (input of input neuron) Where Δjk=error*dE/dWjk and wjk is weight between hidden layer to output layer Δij=∑wjk* Δjk and wij is weight between input and hidden layer III. DESIGN METHODOLOGY/DESIGN DETAILS Simulation for single layer and multilayer example for And Gate and X-or Gate is given. A. And gate using single neural network The single layer neural network first of all weight is being assigned manually and by neural network rule weight is being multiplied by input and summing all input with weight and last neural network output compared to targeted output. if difference is there that is error by using gradient decent algorithm decrease error and at same time weight is being adjusted and when error reach to desired output we can say that our neural network is being trained. In an and gate we had applied two input (1, 0) and w0, w1 are synaptic weigh and b is bias voltage (b is not necessary that depends upon user)[4] these three value are summed together . How many iteration training algorithm take to reduce error zero that can be seen by implementing the idea or program in mat lab and how many second the algorithm is taking to reduce error approximately up to zero can be observed by implementing your Verilog code in model sim or Xilinx simulator. Fig. 3: And gate using single neural network For example consider you are applying input and weight randomly. A=1 and B=0; W0=0.5; W1=0.7; N=(a*w0+b*w1) =1 * 0.5 + 0 * 0.7 = 0.5 Error = target output –(desired output) =-0.5 Here by summing input and weight (eq-3) at last output compare with targeted output, and continuously updating weight as per (eq-4). By using Gradient decent algorithm error will decrease and how much iteration been taken to adjust the weight can be easily seen by mat lab.(fig-4) Fig. 4: Calculation of error using gradient decent algorithm Number of iteration ==7000 Now same algorithm been implemented in model simulator to see how much second take to adjust the weight.
  • 3. Simulation of Single and Multilayer of Artificial Neural Network using VERILOG (IJSRD/Vol. 1/Issue 5/2013/0011) All rights reserved by www.ijsrd.com 1084 Fig. 5: Calculation of error using Verilog code Time taken to adjust weight:-754ns Fig. 6: Dataflow structure This is weight w1 and w2 value when error is zero can be seen by model simulator. IV. MULTILAYER NEURAL NETWORK Fig. 6: X-OR gate using multilayer neural network In an 2-2-1 multilayer there are 2 input neuron,2 hidden neuron and single output,the weight between input and hidden layer is w1,w2,w3,w4 and weight between hidden to output is w5 and w6,here we had used back propagation algorithm the main advantage of this method to reduce number of iterrationand time[3].the simulation result shown below Fig. 7: Number of itteration to adjust weight using matlab Number of iteration:-1500 Fig 8: Time taken to adjust weight using verilog Time taken to adjust weight:-2904ps Fig. 9: Dataflow structure V. CONCLUSION All digital circuit consist of universal and logical gate and last step in industry to test those circuit if there is fault again they have to go for some adjustment it will take more time to reach product to market, so if we replace those circuit by neural network maximum time to for finding fault can be minimized.
  • 4. Simulation of Single and Multilayer of Artificial Neural Network using VERILOG (IJSRD/Vol. 1/Issue 5/2013/0011) All rights reserved by www.ijsrd.com 1085 REFERENCES [1]. Karthikeyan. A , Rajeswaran. N, “DESIGN AND IMPLEMENTATION OF MULTIPLE FAULT DIAGNOSIS ON VLSI CIRCUITS USING ARTIFICIAL NEURAL” IJAET, May 2012 [2]. AL-Jumah. A.A. Arslan. T,” ARTIFICIAL NEURAL NETWORK BASED MULTIPLE FAULT DIAGNOSIS IN DIGITAL CIRCUIT” IEEE, may 1998. [3]. Rafid Ahamed Khali ,“HARDWARE IMPLEMTATION OF BACK PRAPAGATION NEURAL NETWORK ON FPGA”, university of Mosul, sep 2007 [4]. Hagan Demuth dearle, “NEURAL NETWORK DESIGN”, book [5]. Aydoğan Savran, Serkan Ünsal “HARDWARE IMPLEMTATION OF FEEDFORWARD NEURAL NETWORK ON FPGA” Ege University, Department of Electrical and Electronics Engineering [6]. Alan .N.Willson, “ONE-NEURON CIRCUITARY FOR CARRY GENERATION IN 4-BIT ADDER ”, IEEE,1992 [7]. Samir palnitkar “VERILOG HDL”,IEEE 1364-2001