cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
6,732 Views
Registered: ‎02-19-2013

Error when apply dataflow directive in Vivado HLS

Hello,

 

I applied the dataflow directive to the top module of my design. But it gives me an error:

@E [XFORM-722] Found unsupported dataflow constructs in function : control flows are not allowed outside of loops.

 

There is no loops in main function, the loops are all in sub-functions and I have unroll them. 

Have tried fixing it whole day, still get this error. Anyone know what is the real cause of this error?

Thanks in advance for replying my post.

Abner
0 Kudos
1 Reply
Highlighted
Xilinx Employee
Xilinx Employee
6,705 Views
Registered: ‎03-22-2011

For dataflow to work, each function or loop needs to be able to have data flow unconditionally into the next. It's likely your design contains control code around the functions or loops, such that some of them are conditionally executed.

 

  if (some condition)

      function1

 

   function2

 

   function3

 

If these conditions, or control statemens exists, try to push them into the function or loops.

You may also want to file a web case with support that the message should be clearer.

 

 

 

0 Kudos