1. `timescale
`timescale是systemverilog/verilog的预编译指令。指定位于该语句后面的time scope (module/program/package/interface等等)的时间单位和时间精度。直到遇到新的`timescale指令或者`resetall指令。
2. timeunit和timeprecision
timeunit关键字用于指定当前time scope的时间单位,timepresision用于指定当前time scope的时间精度。他们的作用域都是当前time scope。并且其优先级要高于`timescale预编译指令。


3. $printtimescale
$printtimescale是systemverilog的系统函数,可以打印当前module或者指定module的时间精度和时间单位。

博客介绍了SystemVerilog中与时间单位和精度相关的内容。包括`timescale预编译指令,用于指定后续时间范围的时间单位和精度;timeunit和timeprecision关键字,分别指定当前时间范围的时间单位和精度,优先级高于`timescale;还有$printtimescale系统函数,可打印时间精度和单位。
64

被折叠的 条评论
为什么被折叠?



