Hi!
i've tried to implement an very simple example to evaluate C2H. i've accelerated a function named testalg. c2h compiles it, in the sopc builder everything is fine, the quartus flow doesn't report any errors, nor the C2H Register build log at Nios II IDE says anything. it looks everything fine, but the result is always -1
here's the whole code
#include
int testalg(int a, int b ) { return a*a + b*b; }
int main() { int sum = 0; printf("sum before = %d\n",sum); sum = testalg(5,5); printf("sum after = %d\n",sum); printf("should be 50\n"); return 0; }
P.S. can i avoid the c2h compiler to restart the whole quartus flow, when i just change something in the software project, and not in the accelerated function?
Thanks 4 reading and it would be good, if someone can help me out
greetz Andreas