Next Article in Journal
Improved Parallel Implementation of 1D Discrete Wavelet Transform Using CPU-GPU
Previous Article in Journal
Distributed ItemCF Recommendation Algorithm Based on the Combination of MapReduce and Hive
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Power Function Algorithms Implemented in Microcontrollers and FPGAs

1
Faculty of Mechanical and Industrial Engineering, Warsaw University of Technology, 00-661 Warszawa, Poland
2
Faculty of Electrical and Computer Engineering, Cracow University of Technology, Warszawska 24 Str., 31-155 Cracow, Poland
*
Author to whom correspondence should be addressed.
Electronics 2023, 12(16), 3399; https://doi.org/10.3390/electronics12163399
Submission received: 25 June 2023 / Revised: 5 August 2023 / Accepted: 7 August 2023 / Published: 10 August 2023
(This article belongs to the Section Circuit and Signal Processing)

Abstract

The exponential function ax 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: microcontrollers; FPGA; numerical methods; reconfigurable computing systems; accelerators for neural networks; machine learning; computer vision microcontrollers; FPGA; numerical methods; reconfigurable computing systems; accelerators for neural networks; machine learning; computer vision

Share and Cite

MDPI and ACS Style

Moroz, L.; Samotyy, V.; Gepner, P.; Węgrzyn, M.; Nowakowski, G. Power Function Algorithms Implemented in Microcontrollers and FPGAs. Electronics 2023, 12, 3399. https://doi.org/10.3390/electronics12163399

AMA Style

Moroz L, Samotyy V, Gepner P, Węgrzyn M, Nowakowski G. Power Function Algorithms Implemented in Microcontrollers and FPGAs. Electronics. 2023; 12(16):3399. https://doi.org/10.3390/electronics12163399

Chicago/Turabian Style

Moroz, Leonid, Volodymyr Samotyy, Paweł Gepner, Mariusz Węgrzyn, and Grzegorz Nowakowski. 2023. "Power Function Algorithms Implemented in Microcontrollers and FPGAs" Electronics 12, no. 16: 3399. https://doi.org/10.3390/electronics12163399

APA Style

Moroz, L., Samotyy, V., Gepner, P., Węgrzyn, M., & Nowakowski, G. (2023). Power Function Algorithms Implemented in Microcontrollers and FPGAs. Electronics, 12(16), 3399. https://doi.org/10.3390/electronics12163399

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop