我想要得到一个模型的VHDL仿真时间与测试台。我在ModelSim工作,知道ModelSim的分析器支持性能分析,但这不是我想要的信息。
耗时并不意味着模拟步骤,它是在我的计算机上运行的实时时间。我正在寻找句子在VHDL或命令在ModelSim或其他第三方工具。
发布于 2013-05-15 23:52:53
Modelsim有一个正在运行的tcl解释器,所以你可以使用它。
clock seconds
函数可能是一个很好的开始,存储开头和结尾的值,然后减去它们。
TCL tutorial starts here.
例如(注意:我不是TCL专家,而且我已经很长时间没有写过任何东西了:)
set start [clock seconds] # store the start time
run -all # run the simulation assuming it terminates when finished!
set finish [clock seconds] # store the end time
puts [ expr {finish - start} ] # print out the difference
发布于 2016-03-19 04:01:56
您还可以使用以下命令:
set sim_time [time {run -all}]
它将为您提供以微秒为单位的模拟时间。
https://stackoverflow.com/questions/16567363
复制相似问题