Forum Discussion
Altera_Forum
Honored Contributor
21 years agoHow I can speedup of execution my program?
Hello! How I can speedup of execution my program on NIOS 2? I'm trying to make calculation of video data before output it to monitor, but cpu makes it very slowly. I want to calcula...
Altera_Forum
Honored Contributor
21 years agoFor examples this operation execute very slowly:
unsigned char *mem = ... program memory //(16 bits data bus) unsignde char *vmem = ... video memory //(8 bits data bus) for (int i=600; --i; ) for (int j=800; --j; ) if (*mem != 0xF7) { *--vmem = *mem; mem--; } I need to do this cycle about for 25-30 times per second, but really it works only for 5-10 times per second. How I can speedup this block?