在vcs编译的命令中没有-sverilog , 仿真代码中如果出现#10ns,#20us 这种时间单位时,编译会不通过,错误为这些时间单位没有被定义。 编译选项加上-sverilog 后,可识别时间单位