[sv-bc] Import directive proposal


Subject: [sv-bc] Import directive proposal
From: Peter Flake (Peter.Flake@synopsys.com)
Date: Fri Mar 14 2003 - 06:42:21 PST


ADD to draft 3 a new Section 23.3

23.3 Import directive

For tools which require separate analysis of modules, it is useful to be able to `include a file of global definitions for each module.  For tools which analyze modules all together, it is necessary to avoid multiple definitions, and so each such file should be included only once.

SystemVerilog provides an enhanced form of the `include directive, which is the `import directive
        `import "myhead"

is similar in effect to
        `ifndef myhead
        `include "myhead"
        `define myhead
        `endif

Note that 'import is not exactly the same as the above code, because the filename string is converted to a description of the file, such as the absolute path, which is less sensitive to the current working directory.



This archive was generated by hypermail 2b28 : Fri Mar 14 2003 - 07:38:15 PST