[sv-bc] Merged LRM/D2, 21.3: `include

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Sun Apr 22 2007 - 07:06:27 PDT
  

In 21.3 of Merged LRM Draft 2, on `include, this is the text from
1800-2005:

The syntax of the `include compiler directive is as follows:

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.

When the double quote ("filename") version is used, the behavior of
`include is unchanged from Verilog.

When the angle bracket (<filename>) notation is used, then only the
vendor-defined location containing files defined by the language
standard is searched. Relative path names given inside the < > are
interpreted relative to the vendor-defined location in all cases.

Stu asked, what is this "unchanged from Verilog"?

Answer: Since absolute paths are allowed only with double quotes, assume
we have only a filename or a relative path. With double quotes, the file
is searched in the current working directory or in an
include-file-search-directory specified by user with switch such as
+incdir. With angle brackets, the vendor-defined location containing
files defined by the language standard is searched. Relative path names
given inside the < > are interpreted relative to the vendor-defined
location in all cases.

Shalom

 

Shalom Bresticker

Intel Jerusalem LAD DA

+972 2 589-6852

+972 54 721-1033 

 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



image001.gif
Received on Sun Apr 22 07:06:48 2007

This archive was generated by hypermail 2.1.8 : Sun Apr 22 2007 - 07:06:56 PDT