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

how to calculate the execution time?

Altera_Forum
Contributeur émérite II
1 463 Visites

hi, 

I want to calculate the time of my program, so I use "profiling library" option.  

I got a file that contains information on the timing of certain functions in my program.  

my question is: how can I use a performance counter to measure the execution time of each function in my program? 

thks for all members
0 Compliments
1 Répondre
Altera_Forum
Contributeur émérite II
654 Visites

There is no such thing as "normal execution time" for a testbench. 

It depends of course on your simulation system (P3 800 MHz has other 

Perfomance than a P4 3GHz). 

Further on the complexity of your design, next point is the average 

switching frequency for your design, as a simulator needs to calculate 

every signal switching. 

Another point is the testbench itself. You could programm fast 

testbenches or slow testbenches. A testbench using only sequential 

signalassignments an wait statements will be quite faster than a 

testbench, that calculates the stimuli and waittimes or reads them 

from external stimuli files.
0 Compliments
Répondre