A Resource- and Power-Efficient FPGA Implementation of a Segmented Chebyshev Tanh Activation Function Using Single-Precision Floating-Point Arithmetic

Artificial intelligence and machine learning workloads increasingly rely on dedicated hardware accelerators, including field-programmable gate arrays (FPGAs), which offer parallelism and reconfigurability. The hyperbolic tangent (tanh) is widely used as a nonlinear activation function yet is costly to evaluate directly in hardware, making efficient approximation essential. This work presents an FPGA implementation of a segmented Chebyshev-polynomial-based tanh core for IEEE-754 single-precision floating-point. The input domain x∈[−6,6] is reduced to |x|∈[0,6] by exploiting tanh’s odd symmetry, and partitioned into three sub-intervals with per-interval Chebyshev degrees selected to achieve the target accuracy. Polynomial evaluation is performed via Clenshaw’s recurrence, with a single recurrence stage reused for all evaluation steps under finite-state-machine control. Implemented and verified on an Altera Cyclone V FPGA, the core uses 1176 adaptive logic modules, 317 registers, and one digital signal processing (DSP) block. It requires 28 clock cycles for inputs within the approximation domain and 3 outside it, and dissipates 6.20 mW of dynamic power at 40 MHz. The mean absolute error is 8.26×10−8 across the tested inputs and 5.74×10−8 over a denser MATLAB sweep. Against exponential-based, continued-fraction-based, and polynomial-based tanh approximations, it achieves the lowest register, DSP, memory, and dynamic power utilization.

Authors

Institutions

Publication Details

Journal
Electronics
Published
2026-10-28
DOI
https://doi.org/10.3390/electronics15214993
Primary Topic
Numerical Methods and Algorithms
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Resource- and Power-Efficient FPGA Implementation of a Segmented Chebyshev Tanh Activation Function Using Single-Precision Floating-Point Arithmetic

Chanakya Dinesh Hingu, Xingang Fu, Mahesh V. Hosur, Praneeth Vangala
2 links
Electronics
Numerical Methods and Algorithms
article

A Resource- and Power-Efficient FPGA Implementation of a Segmented Chebyshev Tanh Activation Function Using Single-Precision Floating-Point Arithmetic

Chanakya Dinesh Hingu, Xingang Fu, Mahesh V. Hosur, Praneeth Vangala
article en

Abstract

Artificial intelligence and machine learning workloads increasingly rely on dedicated hardware accelerators, including field-programmable gate arrays (FPGAs), which offer parallelism and reconfigurability. The hyperbolic tangent (tanh) is widely used as a nonlinear activation function yet is costly to evaluate directly in hardware, making efficient approximation essential. This work presents an FPGA implementation of a segmented Chebyshev-polynomial-based tanh core for IEEE-754 single-precision floating-point. The input domain x∈[−6,6] is reduced to |x|∈[0,6] by exploiting tanh’s odd symmetry, and partitioned into three sub-intervals with per-interval Chebyshev degrees selected to achieve the target accuracy. Polynomial evaluation is performed via Clenshaw’s recurrence, with a single recurrence stage reused for all evaluation steps under finite-state-machine control. Implemented and verified on an Altera Cyclone V FPGA, the core uses 1176 adaptive logic modules, 317 registers, and one digital signal processing (DSP) block. It requires 28 clock cycles for inputs within the approximation domain and 3 outside it, and dissipates 6.20 mW of dynamic power at 40 MHz. The mean absolute error is 8.26×10−8 across the tested inputs and 5.74×10−8 over a denser MATLAB sweep. Against exponential-based, continued-fraction-based, and polynomial-based tanh approximations, it achieves the lowest register, DSP, memory, and dynamic power utilization.

ElectronicsVol. 15(21)
University of Nevada, Reno (US), Texas A&M University – Kingsville (US)
National Science Foundation
Openalex Percentile: Top 14%
Numerical Methods and Algorithms
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon
A Resource- and Power-Efficient FPGA Implementation of a Segmented Chebyshev Tanh Activation Function Using Single-Precision Floating-Point Arithmetic — Chanakya Dinesh Hingu, Xingang Fu, et al. · Electronics (2026) | TGRS Research Map | TGRS