Docsity

Neural Network FPGA Xilinx, Lecture notes of Electronic Technology

Partial preview of the text

Download Neural Network FPGA Xilinx and more Lecture notes Electronic Technology in PDF only on Docsity!

Neural Networks implementation using FPGA

By:

Amjed Jumaah

Content

 (^) Artificial Neural Network  (^) Introduction  (^) COMPUTATIONAL BLOCKS FOR A NEURON  (^) Field Programmable Gate Arrays and Very-High Hardware Description Language  (^) Implementation Issues of Computational Blocks  (^) FPGA Implementation of a Multi-Input Neuron  (^) Conclusion  (^) References

Artificial Neural Network

 (^) Artificial Neural Networks (ANNs) can solve great variety of problems in areas of pattern recognition, image processing and medical diagnostic.  (^) The biologically inspired ANNs are parallel and distributed information processing systems.  (^) Thus, the high speed operation in real time applications can be achieved only if the networks are implemented using parallel hardware architecture.

Implementation of ANNs

 (^) Implementation of ANNs falls into two categories:  (^) Software implementation o (^) ANNs are implemented in software, and are trained and simulated on general-purpose sequential computers for emulating a wide range of neural networks models. o (^) Software implementations offer flexibility.  (^) Hardware implementation. o (^) hardware implementations are essential for applicability and for taking the advantage of ANN’s inherent parallelism.

general neural network system diagram

COMPUTATIONAL BLOCKS FOR A

NEURON

 (^) The basic structure of a neuron with ‘n’ inputs is shown in Fig. The function of a neuron is described by the following equations.

Field Programmable Gate Arrays and Very-High Hardware Description Language  (^) FPGAs consist of three basic blocks that are configurable logic blocks, in- out blocks and connection blocks.  (^) Logic blocks perform logic function. Connection blocks connect logic blocks with in-out blocks.  (^) These structures consist of routing channels and programmable switches.  (^) Routing process is effectively connection logic blocks exist different distance the others

Field Programmable Gate Arrays and Very-High Hardware Description Language  (^) FPGAs are chosen for implementation ANNs with the following reason:  (^) They can be applied a wide range of logic gates starting with tens of thousands up to few millions gates.  (^) They can be reconfigured to change logic function while resident in the system.  (^) FPGAs have short design cycle that leads to fairly inexpensive logic design.  (^) FPGAs have parallelism in their nature. Thus, they have parallel computing environment and allows logic cycle design to work parallel.  (^) They have powerful design, programming and syntheses tools.

Implementation Issues of Computational Blocks  (^) Parallel computations require larger resource and are therefore costly.  (^) Selecting bit precision is another important choice when implementing ANNs on FPGAs.  (^) A higher bit precision means fewer quantization errors in the final implementations, while a lower precision leads to simpler designs, greater speed and reductions in area requirements and power consumption.  (^) Lookup tables improve speed of operation, but higher precision demands larger memory.

FPGA Implementation of a Multi- Input Neuron  (^) The structure of a neuron is split into various sub blocks and these blocks are implemented individually first and then they are integrated to form the entire neuron.  (^) The two major blocks are SIGMA block and LOGSIG block.

FPGA Implementation of a Multi- Input Neuron  (^) Sigma Block: This bock computes the value for  (^) MUL8: Performs 8-bit multiplication.  (^) ADD: Performs 24-bit addition.  (^) SUB: Performs 24-bit subtraction.  (^) SIGMA_CTRL: It is finite state machine, which controls the operation of ADD, MUL8, and SUB blocks.  (^) LOGSIG Block: The computation of is done in this block.

Conclusion  (^) Neural networks can be implemented using analog or digital systems.  (^) The digital implementation is more popular as it has the advantage of o (^) higher accuracy, o (^) better repeatability, o (^) lower noise sensitivity, o (^) better testability, o (^) higher flexibility, o (^) compatibility with other types of preprocessors.  (^) FPGA is a suitable hardware for neural network implementation as it preserves the parallel architecture of the neurons in a layer and offers flexibility in reconfiguration.