Design_of_single_neuron_on_FPGA
Design_of_single_neuron_on_FPGA
Khairudin Mohamad, Mohamad Faiz Omar Mahmud, Fadzilatul Husna Adnan, Wan Fazlida Hanim Abdullah
Fakulti Kejuruteraan Elektrik, Universiti Teknologi MARA, Selangor, Malaysia
[email protected]
Abstract— This paper presents a digital design of neuron module is the design of mathematical operation. This includes
architecture on field-programmable gate array (FPGA). The issues relating to data structure, design of Multiplier
objective of this project is to translate data from electrochemical Accumulator (MAC) and activation function implementation.
sensor signals and process the data with neuron structure on The final module is displaying the result from the data that
digital hardware. The hardware realization of neural network have been accumulating by the neuron. A 7-segment driver is
requires investigation of many design issues relating to signal included to enable reading and displaying the data that comes
interfacing and design of a single neuron. Analysis focuses on out from neuron architecture.
effect of digital design decisions such as module architecture
towards data accuracy and delay. The work touches on analogue
to digital interfacing, data structure and digital module design
that includes adder, multiplier and multiplier accumulator
(MAC). A major component of the algorithm is the design of the
activation function. The chosen activation function is the
hyperbolic tangent which is approximated by Taylor Series
expansion. The neuron is evaluated on an Altera DE2-70 FPGA.
The performances are evaluated in terms of functionality, usage Fig.1.General flow of the project system linking applied chemical sensor to
of resources and timing analysis. For the data structure, it was digital processing
demonstrated that increasing the fractional bits will increases the
precision. The neuron functionality was demonstrated on digital
platform. It was found that less delay were produce by using II. DESIGN AND METHODOLOGYS
Carry Look Ahead design compared to Ripple Carry Adder by
25% in the MAC performance.
This section presents the deisgn of the submodules in
implementing Fig 1. This covers the interfacing issues such as
Keywords-component; formatting; style; styling; insert (key analog to digital implementation, data structure and the neuron
words) architecture topology.
Authorized licensed use limited to: Amrita School Of Engineering - Kollam. Downloaded on December 17,2024 at 11:17:15 UTC from IEEE Xplore. Restrictions apply.
978-1-4673-1310-0/12/$31.00 ©2012 IEEE 133
2012 IEEE Symposium on Humanities, Science and Engineering Research
clock toggles, two bits are actually transmitted (one in each scaled down by 2 to the appropriate value that can be
direction). In term of performance, SPI can easily achieve a accommodated by the bits number. Finally, the value will be
few Mbps (mega-bits-per-seconds) [4]. For this module, the rounded (truncated) to integer value and be represented in
approach taken is hardware implementation of existing binary number [5].
technique, tailored to 10-bit environment.
A neuron can be viewed as processing data in three steps;
the weighting of its input values, the summation of them all
and their filtering by a activation function. The Neuron can be
expressed by the following equation:
(1)
Predicted
!#'&&
output yj
!
"$ +
Fig.4. Structure of Neuron [7]
!#'&
Authorized licensed use limited to: Amrita School Of Engineering - Kollam. Downloaded on December 17,2024 at 11:17:15 UTC from IEEE Xplore. Restrictions apply.
134
2012 IEEE Symposium on Humanities, Science and Engineering Research
%&$&
& & & &
' '&"$
'& &&&&
'&#'&&
Fig.8:.Design flow of activation function
!
Authorized licensed use limited to: Amrita School Of Engineering - Kollam. Downloaded on December 17,2024 at 11:17:15 UTC from IEEE Xplore. Restrictions apply.
135
2012 IEEE Symposium on Humanities, Science and Engineering Research
Authorized licensed use limited to: Amrita School Of Engineering - Kollam. Downloaded on December 17,2024 at 11:17:15 UTC from IEEE Xplore. Restrictions apply.
136