Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

alt_timestamp timer information

Hi,

I am using the interval timer for my design. Below is part of C code I used. The elapsed time I am getting is around 1000 ticks. I have this doubt that this part of code will take 1000 cycles to run or am I doing something wrong? Also, I would like to know what is the difference between performance counter and interval timer when it comes measuring the time elapsed?

if ( alt_timestamp_start() < 0 )

{

printf("No timer devices available.\n\n");

}

time_elapsed = alt_timestamp();

printf("Time elapsed %ld\n\n", time_elapsed);

Thanks.

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    hi.,

    i am implementing dual NIOS-II system on DE2 board.

    i could not solve the following error::

    "timestamp value does not match : image on board is older than expected"

    read timestamp 5:29:59 1970/01/01; expected 1:15:38 2014/05/06

    the software you are downlaoding may not run on the system which is currently configured into the device.plaese download the correct SOF or recompile.

    restarting the target processor.

    regards...