今天,我们学习一下 SystermVerilog_3.1a 语法参考书【25.3】章节。关于 `include 关键字的使用。
基本语法格式:
include_compiler_directive ::=
‘include "filename"
| ‘include <filename>
When the filename is an absolute path, only that filename is included and only the double quote form of the ‘include can be used.
翻译:在当filename= 某个文件的绝对路径+文件名字的时候,那么该具体指定文件,将会被编译器正确编译。就是说:双引号和尖括号,内部都可以被文件详细路径填充,都是合法的。
When the double quote ("filename") version is used, the behavior of ‘include is unchanged from IEEEStd. 1364-2001.
翻译:当使用双引号("filename")版本时,' include '的行为与IEEEStd1364 - 2001行为一致。