Implementation of hyperbolic tangent function in neural network using Matlab HDL coder for Biosignals

In this paper, the hyperbolic tangent function and its application in a test neural network on a Field Programmable Gate Array are presented, using the Verilog hardware description language. The hyperbolic tangent activation function is presented using a rational approximation in order to avoid floating-point arithmetic and instead use fixed-point. When the approximated version of the hyperbolic tangent function with fix point representation was compared to its original version, the mean absolute error was 0.00536, the mean squared error was $5.607 \mathrm{e}-05$, and the maximum error was 0.016, which shows that to an average of 2.27 decimal places the approximation was accurate. For comparison, the approximated function was implemented using two types of logic: sequential and combinational. The combinational logic was 67 percent more energy efficient than the sequential logic, because the combinational logic provided an immediate response, while the sequential logic required only one clock cycle. These implementations were achieved through MATLAB software in conjunction with the integrated hardware description language Coder and Fixed Point Designer tools, in which the mathematical instructions are written in MATLAB scripts and then generated into Verilog code. The design was then taken to Xilinx’s Vivado software to conduct tests and evaluate things like power consumption and response times.

Authors

Institutions

Publication Details

Published
2025-05-09
DOI
https://doi.org/10.1109/iccre65455.2025.11093331
Citations
1
Primary Topic
Neural Networks and Applications
Type
article
Field-Weighted Citation Impact
2.48
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Implementation of hyperbolic tangent function in neural network using Matlab HDL coder for Biosignals

Abbass Nasser, José Luis Ordóñez-Ávila, Jorge Canales Verdial
1 citations
Neural Networks and Applications
2.48
article

Implementation of hyperbolic tangent function in neural network using Matlab HDL coder for Biosignals

Abbass Nasser, José Luis Ordóñez-Ávila, Jorge Canales Verdial
article en
1 citations

Abstract

In this paper, the hyperbolic tangent function and its application in a test neural network on a Field Programmable Gate Array are presented, using the Verilog hardware description language. The hyperbolic tangent activation function is presented using a rational approximation in order to avoid floating-point arithmetic and instead use fixed-point. When the approximated version of the hyperbolic tangent function with fix point representation was compared to its original version, the mean absolute error was 0.00536, the mean squared error was $5.607 \mathrm{e}-05$, and the maximum error was 0.016, which shows that to an average of 2.27 decimal places the approximation was accurate. For comparison, the approximated function was implemented using two types of logic: sequential and combinational. The combinational logic was 67 percent more energy efficient than the sequential logic, because the combinational logic provided an immediate response, while the sequential logic required only one clock cycle. These implementations were achieved through MATLAB software in conjunction with the integrated hardware description language Coder and Fixed Point Designer tools, in which the mathematical instructions are written in MATLAB scripts and then generated into Verilog code. The design was then taken to Xilinx’s Vivado software to conduct tests and evaluate things like power consumption and response times.

Central American Technological University (HN), Central New Mexico Community College (US)
Openalex Percentile: Top 9%
Neural Networks and Applications
2.48
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.