Power Function Algorithms Implemented in Microcontrollers and FPGAs
Open Access
- 10 August 2023
- journal article
- research article
- Published by MDPI AG in Electronics
- Vol. 12 (16) , 3399
Abstract
The exponential function is widespread in many fields of science. Its calculation is a complicated issue for Central Processing Units (CPUs) and Graphics Processing Units (GPUs), as well as for specialised Digital Signal Processing (DSP) processors, such as Intelligent Processor Units (IPUs), for the needs of neural networks. This article presents some simple and accurate exponential function calculation algorithms in half, single, and double precision that can be prototyped in Field-Programmable Gate Arrays (FPGAs). It should be noted that, for the approximation, the use of effective polynomials of the first degree was proposed in most cases. The characteristic feature of such algorithms is that they only contain fast ‘bithack’ operations (‘bit manipulation technique’) and Floating-Point (FP) addition, multiplication, and (if necessary) Fused Multiply-Add (FMA) operations. We published an article on algorithms for this class of function recently, but the focus was on the use of approximations of second-degree polynomials and higher, requiring two multiplications and two additions or more, which poses some complications in FPGA implementation. This article considers algorithms based on piecewise linear approximation, with one multiplication and one addition. Such algorithms of low complexity provide decent accuracy and speed, sufficient for practical applications such as accelerators for neural networks, power electronics, machine learning, computer vision, and intelligent robotic systems. These are FP-oriented algorithms; therefore, we briefly describe the characteristic parameters of such numbers.
Keywords
Funding Information
- Faculty of Electrical and Computer Engineering, Cracow University of Technology and the Ministry of Science and Higher Education, Republic of Poland (E-1/2023)
This publication has 12 references indexed in Scilit:
- Divide and Conquer: Floating-Point Exponential Calculation Based on Taylor-Series Expansion2021
- Hardware Approximation of Exponential Decay for Spiking Neural Networks2021
- PLAC: Piecewise Linear Approximation Computation for All Nonlinear Unary FunctionsIEEE Transactions on Very Large Scale Integration (VLSI) Systems, 2020
- Improved Convolutional Neural Network Based on Fast Exponentially Linear Unit Activation FunctionIEEE Access, 2019
- Fast approximations of exponential and logarithm functions combined with efficient storage/retrieval for combustion kinetics calculationsCombustion and Flame, 2018
- Floating-point exponential functions for DSP-enabled FPGAs2010
- On the number of segments needed in a piecewise linear approximationJournal of Computational and Applied Mathematics, 2010
- FPGA Implementation of 64-Bit Exponential Function for HPC2007
- Algorithm and architecture for logarithm, exponential, and powering computationIEEE Transactions on Computers, 2004
- A Fast, Compact Approximation of the Exponential FunctionNeural Computation, 1999