UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor madhuri87
Visitor
14,254 Views
Registered: ‎02-12-2013

recursive function not supported in vivado hls synthesis

Hello

 

I am woring on Fast Fourier Transform algorithm and my C code has recursive function. 

 

When I am trying to do synthesize its showing error of not supported recursive functions. Can I change it to while loop and stack. If I change my code then is synthesize works?

 

 

Thanks,

Madhuri 

Tags (1)
0 Kudos
2 Replies
Highlighted
Explorer
Explorer
14,247 Views
Registered: ‎12-31-2012

Re: recursive function not supported in vivado hls synthesis

Why are you cross-posting? 

---------------------------------------------------------------------------------
I like these books:
Free Range VHDL (free), http://www.freerangefactory.org/site/pmwiki.php/Main/Books
VHDL for Logic Synthesis, Andrew Rushton
FPGA Prototyping by VHDL Examples, Pong P Chu
0 Kudos
Xilinx Employee
Xilinx Employee
14,236 Views
Registered: ‎03-22-2011

Re: recursive function not supported in vivado hls synthesis

A while loop is supported for synthesis. Also, refer to the User Guide. If you search for recursion you'll find an example of recursion using templates: the secret is to have a termination template so that it's not infinite.

 

Duncan

 

0 Kudos