Project

General

Profile

Command Line Options » History » Revision 6

Revision 5 (Sergey Smolov, 11/06/2019 10:36 AM) → Revision 6/11 (Sergey Smolov, 11/06/2019 10:36 AM)

h1. Command Line Options

Verilog Translator provides the following command line options:
|*Long name*|*Short name*|*Description*|*Default value*|
|--include-path|-I|Include directory path|-|

Detailed notes about described options are written below.

h2. Include directory path

The option is used to provide to the tool the path to directory where Verilog modules that the target one uses are located. Multiple paths are always allowed - in such case the should be separated by system separator (":" for Unix, ";" for Windows).

When _a.v_ module uses module that is described at _b.v_ file, following situations are available:
# The _a.v_ file does not contain "`include" macro - no '--include-dir' option should be used, both modules should be given to Verilog Translator and _b.v_ should be the first one;
# The _a.v_ file contains "`include "b.v"" macro - set full path to directory with _b.v_ to '--include-dir' option; option
# The _a.v_ file contains "`include "/relative/path/to/b.v"" macro - set prefix to path to directory with _b.v_ to '--include-dir' option. option