Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 Discussions

how to change the alt_timestamp counter size to 64 bit

Altera_Forum
Honored Contributor II
1,141 Views

The default counter size for alt_timestamp() is 32 bit and the counter will overflow when it reaches count beyond 2^32. 

 

How do i change it to count up to 64 bit? I have changed both the system clock timer core and timestamp timer core counter size to 64 bit in the SOPC builder and regenerated the whole system.  

 

What else do i have to modify? Do i have to modify the h headers? 

 

Thanks.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
449 Views

Do i have to define anything in system.h?

0 Kudos
Reply