Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12603 Discussions

How to see the timestamp in NIOS ?

Sushmita
Beginner
848 Views

Hi,

I want to see the overall RTL time taken for my design. I am using a c code to trigger the RTL from NIOS eclipse. I have tried various methods to print the time taken, but the time it prints is not as I am expecting from my RTL performance.

So I tired putting a counter in RTL to count overall cycles taken, so that is taking same cycles as my expectation. But the time shown by various methods, its either not showing accurate value or it shows the value in seconds ( my expectations in milli or micro seconds).

Below are the two links which I tried. I used alt_timestamp() option from NIOS bsp settings, it is not giving any tick value. 

I am getting almost near results from gettimeofday() method. Expectation value -105 ms; Real value - 150 ms. 

  Can anyone suggest me a way to find the exact timestamp from NIOS?

below are the link which I referred already:

1) To find execution time from c code:

https://www.techiedelight.com/find-execution-time-c-program/

2) page 363 - alt_timestamp ()

https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/nios2/n2sw_nii5v2gen2.pdf 

 

Regards

 

 

0 Kudos
1 Reply
EricMunYew_C_Intel
Moderator
803 Views
0 Kudos
Reply