cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
14,316 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
Explorer
Explorer
14,309 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
Highlighted
Xilinx Employee
Xilinx Employee
14,298 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