Forum Discussion
Altera_Forum
Honored Contributor
8 years ago --- Quote Start --- Thanks mate! :) The dependency on front is because is reading the value from lcontsum that is been computed on the inner loop right? --- Quote End --- No, it is because "front += lcontsum;" is equivalent to "front = front + lcontsum;" and the "front" on the right-hand side is the value from the previous iteration, but the floating-point addition cannot be performed in one clock and hence, the new value of front needs multiple clocks to be calculated. This creates a read-after-write dependency on "front" and increases the initiation interval of the loop on "z" to a value that is equal to the latency of floating-point addition on the FPGA.