Table Of Contents

Scalar Feedback Nodes in Loop-Based Designs in Optimized FPGA VIs

Last Modified: March 30, 2016

To take advantage of loop unrolling the compiler performs, avoid loop feedback patterns when possible.

If you have a feedback pattern in your For Loop, as demonstrated in the following image, you might not benefit from the advantages of loop unrolling because the compiler must wait for all loop iterations to complete before providing new inputs.

The one use case when you should use a feedback loop pattern is when you initialize an array shift register, which allows the compiler to optimize array initialization and eliminate iteration dependency.


Recently Viewed Topics