User manual
Tutorial: Handel-C advanced optimization
8.2 Using the logic estimator results
The results from the logic estimator can help you to improve the speed and reduce the size of a
Handel-C design.
The
version1 project in the TutorialEstimator workspace (accessible from Start>Programs>Celoxica>Platform
Developer's Kit>Tutorials>TutorialEstimator) contains the following simple piece of code:
set clock = external;
void main(void)
{
interface bus_in(unsigned 16) InBusA();
interface bus_in(unsigned 16) InBusB();
unsigned 16 A, B, C, D, Output;
unsigned 32 Index;
interface bus_out() OutBus(Output);
while(1)
{
par
{
A = InBusA.in;
B = InBusB.in;
Index = 0;
}
do
{
par
{
C = A * B;
D = A + B;
}
par
{
Output = C + D;
Index++;
}
} while (Index < 10000);
}
}
Build the above code in the
version1 project in the TutorialEstimator workspace. The logic estimator will
save its results in the
TutorialEstimator\version1\EDIF directory. Open the file named Summary.html by
double-clicking on it (this should load your computers default web browser).
www.celoxica.com
Page 88