Forum Discussion
Altera_Forum
Honored Contributor
13 years agoProblem with Performance Counter Unit
Hi I am trying to measure the number of clock cycles in NIOS2-Eclipse for a C Code using the Performance Counter and I get number of clock cycles as "-1". I have used Altera's DE1-NIOS reference d...
Altera_Forum
Honored Contributor
13 years agoHi,
Not actually but found a work around, i made a new design in the SOPC builder which just had NIOSII Processor, 20KB of On Chip-RAM, JTAG-UART, Performance Counter Unit. Then I enabled small C libraries in NIOSII-IDE and ran the same code and got the correct cycle count