Hi I am just checking in to see if there is still interest in this topic.
I have a new kind of embedded processor that runs this trivial test case in 51 clock cycles.
36 of the cycles are used by iterations of the for loop. 9 iterations at 4 clocks per.
How does this compare to NIOS?
main()
{
//x = 0x00ff; // 15 | 255;
//x = 1;
if(x == 0)
if(x == 0) y = 2 + 3 * 4 - 4;
else y = 5;
else y = 2*3-4;
while(x == 6) // if x == 6
{
x = x - 7;
}
for(x = 0; x < 9; x = x + 1)
{
y = 10;
}
}
A crude but compilable .bdf shows 5 aluts and about 45K ram bits with slack of 8.189.
*******Just realized a lot of nodes were synthesized away so this data is not correct.
Am I on the right track?