Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHi Fischer,
Which Nios II version are you looking at? I currently have Nios II 5.1, and in Nios II 5.1 there is a roll-over flag -for each alarm- that handles the wraparound of the timer. Although it has not the wraparound problem, as a general comment, the alarm implementation used by the HAL could be optimized: now it has an overall O(t*n) complexity, where t is the mean number of ticks of each alarm, and n is the number of alarms... If the alarm ticks are stored in an incremental way (like we do in the OSEK alarms implemented in ERIKA Enterprise), you can save some time when the numbre of alarms grows up... bye Paolo