一、仿真控制系统task
1、$finish(n) n--0,1,2
0:直接结束仿真,不打印任何信息
1:打印结束行号,以及结束时间
2:打印结束行号,以及结束时间,以及仿真的内存消耗 以及cpu运行时间等信息(vcs仿真器1和2参数打印一样,vsim有区别)
2、$stop(n) n--0,1,2 暂停仿真
3、$exit(n) n--0,1,2 应用在program中
二、获取当前仿真时间的function
1、$time 返回64bit integer数据,单位为所调用module的time precision
2、$stime 和$time相当,但返回32bit integer数据
3、$realtime 返回real number time
三、Timescale系统task
1、$printtimescale 打印指定module的时间单位和精度
语法:$printtimescale [ (hierarchical_identifer) ];
2、$timeformat 用于统一显示打印信息
语法:$timeformat [ (units_number, precision_number, suffx_string, minimum_feld_
width) ];