cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
1,369 Views
Registered: ‎03-29-2017

VIVADO HLS Error Message: math function 'tanhf' is not supported for synthesis

Hi,

 

  I need to include 'tanhf' function in my program codes to run an application. In Vivado HLS, its showing Error message and Synthesizability check failed. How to get rid-off ? Any help will be appreciated.

 

 

for(i=0;i<ROWS_P;i++)
    {
        temp=1;
        for(j=0;j<ROWS_P;j++)
        {
            if(j!=i && h[j][0]==h[i][0])
            {
                temp=temp * tanhf(LLR[j]/2);   // tanhf FUNCTION.
            }
        }

 

Thanks

 

0 Kudos
5 Replies
Highlighted
Xilinx Employee
Xilinx Employee
1,361 Views
Registered: ‎08-01-2008

try tanf

check supported functions here
https://www.xilinx.com/products/design-tools/vivado/integration/esl-design.html
Thanks and Regards
Balkrishan
--------------------------------------------------------------------------------------------
Please mark the post as an answer "Accept as solution" in case it helped resolve your query.
Give kudos in case a post in case it guided to the solution.
0 Kudos
Highlighted
Explorer
Explorer
1,359 Views
Registered: ‎03-29-2017

tanf - ok But its showing incorrect result. So tanh is must to implement my application. Any other solution.

0 Kudos
Highlighted
Xilinx Employee
Xilinx Employee
1,345 Views
Registered: ‎08-01-2008

check page 50

https://www.xilinx.com/publications/archives/xcell/Xcell79.pdf
Thanks and Regards
Balkrishan
--------------------------------------------------------------------------------------------
Please mark the post as an answer "Accept as solution" in case it helped resolve your query.
Give kudos in case a post in case it guided to the solution.
0 Kudos
Highlighted
Explorer
Explorer
1,342 Views
Registered: ‎03-29-2017

tanhf wont support in Vivado HLS

0 Kudos
Highlighted
Advisor
Advisor
1,340 Views
Registered: ‎04-26-2015

The only other solution is to implement tanhf yourself. Depending on the accuracy and performance required, this can range from "extremely easy" to "extremely difficult".

0 Kudos