MAC For ANN Using Verilog
MAC For ANN Using Verilog
processing architecture.
Figure 1. Shows the architecture of simple neural
network, its contain three layers, input, hidden and output
layer. Input data is feed forward to the output via the hidden
layer. In-between the input and output, processing is Figure. 2. Simple Artificial Neuron
performed by the help of processing unit.
III. PROCESSING UNIT (MAC) the output in that neuron. Binary threshold neuron, Sigmoid
Multiplication and Accumulation (MAC) is one of neuron, Rectified linear neuron are the different activation
the processing units in the neural network. Based on the function used in the neural network. Output functions are
performance of the MAC only the accuracy of the network is varied by the activation function.
obtained. MAC operation was performed, using the Vedic
multiplier with SQRT-CSLA adder.
a. Vedic multiplier
b. SQRT-CSLA Adder
0000
Ca1 [7:0]
0000
Ca2
8-bit SQRT-CSLA adder
[7:4]
[3:0]
Ca3
A[15:11] B[15:11] A[10:7] B[10:7] A[6:4] B[6:4] A[3:2] B[3:2] A[1:0] B[1:0]
4 4 3 3 2 2 2 2
5 5
2 10 2 8 2 6 2 4
5 4 3 2 2
0.5
0 0
V. SIMULATION RESULTS
Simulation was done by using the ModelSim XE III 6.3c simulator. Parameters like area delay and power can be
analyzed by using Xilinx ISE 10.1 simulator. Output of the Vedic multiplier is same as other multiplier, compared to the other
multiplier speed and accuracy of the Vedic multiplier is higher. The results are shown in the figure 6 contains different
combination of inputs, based on the input it produced the output.
Table No.1 Comparison of Area and Delay between Existing and Proposed system
REFERENCES
[1]. Saman Razavi and Bryan A. Tolson, “A New
formulation for feedforward neural networks”
IEEE Transactions on neural networks, vol.22,
October 2011.
[2]. Richard L. et al. “Comparison of feedforward and
feedback neural network architectures for short
term wind speed prediction”, International joint
conference on neural networks, June 2009.
[3]. Premananda B.S. et al. “Design and Implementation
of 8-bit Vedic multiplier”, International Journal of
Advanced Research in Electrical, Electronics and
Instrumentation Engineering, vol. 2, Issue 12,
December 2013.
[4]. Damarla paradhasaradhi and K. Anusudha,”An area
efficient SQRT carry select adder”, International