Altera_Forum
Honored Contributor
20 years agocustom instruction
hello, Does everyone know how to count the time of calling a custom insruction to run C program? http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/huh.gif
Sorry,
the drivers for the performance counter are defined for the HAL of Nios II. I think u can calculate your timing using a simple timer: starting it before your call, stoping at return of the call and reading the value of timer. You could also calculate first the offset timing for these operation: starting-stoping-reading timer, and subtract this value from the timing above...