Applied Sciences (Oct 2022)

An Optimized Method for Nonlinear Function Approximation Based on Multiplierless Piecewise Linear Approximation

  • Hongjiang Yu,
  • Guoshun Yuan,
  • Dewei Kong,
  • Lei Lei,
  • Yuefeng He

DOI
https://doi.org/10.3390/app122010616
Journal volume & issue
Vol. 12, no. 20
p. 10616

Abstract

Read online

In this paper, we propose an optimized method for nonlinear function approximation based on multiplierless piecewise linear approximation computation (ML-PLAC), which we call OML-PLAC. OML-PLAC finds the minimum number of segments with the predefined fractional bit width of input/output, maximum number of shift-and-add operations, user-defined widths of intermediate data, and maximum absolute error (MAE). In addition, OML-PLAC minimizes the actual MAE as much as possible by iterating. As a result, under the condition of satisfying the maximum number of segments, the MAE can be minimized. Tree-cascaded 2-input and 3-input multiplexers are used to replace multi-input multiplexers in hardware architecture as well, reducing the depth of the critical path. The optimized method is applied to logarithmic, antilogarithmic, hyperbolic tangent, sigmoid and softsign functions. The results of the implementation prove that OML-PLAC has better performance than the current state-of-the-art method.

Keywords