Simulation Time in ModelSim

T

typhoon

Guest
Hello everyone!

I have to know the time needed to CPU for simulation; Modelsim don't tell
this time explicity, while other simulator do it. What I can do with
ModelSim?

Thanks!
 
"typhoon" <nardy@nospam.tin.it.> wrote in message news:<1785fc1a3fa6e20a4aa18811f4e3b44e@localhost.talkaboutprogramming.com>...
Hello everyone!

I have to know the time needed to CPU for simulation; Modelsim don't tell
this time explicity, while other simulator do it. What I can do with
ModelSim?

Thanks!
There are a couple of methods from within Modelsim:

You can use the TCL time command to obtain the CPU time

e.g.

VSIM 8> time {run -all}
# 187000 microseconds per iteration

If you need elapsed time, use the TCL clock command:

e.g.
set starttime [clock seconds]
# 1087889343
run 1000 ns
set endtime [clock seconds]
# 1087889358
set totaltime [expr $endtime - $starttime]
# 15
echo "Simulation took $totaltime seconds"

Hope this helps,

Steven
 
"typhoon" <nardy@nospam.tin.it.> wrote in message news:<1785fc1a3fa6e20a4aa18811f4e3b44e@localhost.talkaboutprogramming.com>...
Hello everyone!

I have to know the time needed to CPU for simulation; Modelsim don't tell
this time explicity, while other simulator do it. What I can do with
ModelSim?

Thanks!

The simstats command returns performance info about any simulation
(memory used, elab time, run time, cpu time, page faults .....)
If you just want the cpu time type "simstats cpu"
 

Welcome to EDABoard.com

Sponsor

Back
Top