User manual

Tutorial: Handel-C advanced optimization
First, the while condition on line number 57 uses a "less than" < comparison, when in fact a "not equal"
!= will perform the same function, as Index is only incremented by 1 each time through the loop. Try
changing this line of code from
< to != in the in the version2 project in the TutorialEstimator workspace,
rebuild it, and look at the Estimator output again. You will notice that the logic associated with line
number has now reduced, as shown below:
A further reduction in logic area is possible because the Index variable is 32 bits wide, but is never
incremented above 10,000, which only requires a width of 14 bits. Try changing the width of
Index in
the
version2 project in the TutorialEstimator workspace, rebuild it, and look at the Estimator output again.
You will notice that the logic associated with line numbers 30, 55 and 57 has now reduced, as shown
below:
www.celoxica.com
Page 95