Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21592 Discussions

change ticks to seconds

Altera_Forum
Honored Contributor II
1,415 Views

Hello, i wanna check the processing time of certain function by using alt_timestamp. When i get the freq using alt_timestamp_freq and divide it with number of ticks, the value is always 0. why?

0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
427 Views

Well, if I understand you correctly, are you dividing the frequency by the number of ticks? In that case after one second you will always get 0 as the number of ticks will be always higher than the frequency. You should do it the opposite way.

0 Kudos
Reply