Command Line Options » History » Revision 7

« Previous | Revision 7/11 (diff) | Next »
Alexander Kamkin, 11/06/2019 11:06 AM

Command Line Options

Verilog Translator handles the following command line options:

Long name Short name Description Default value, if applicable
--include-path -I Include directories -
--library-file -L Library file -

Include directories

The option sets the directories where VeriTrans searches for Verilog files included from others. Multiple paths are separated by : (for Unix) or ; (for Windows).

When a.v uses something defined in b.v (located at /absolute/path/to), there may be the following situations:
  1. a.v does not contain `include "b.v":
    1. both files should be given to VeriTrans, and b.v comes first (--include-path is not required);
  2. a.v contains `include "b.v":
    1. the path /absolute/path/to should be added to --include-path;
  3. a.v contains `include "path/to/b.v":
    1. the path /absolute should be added to --include-path.

Library file

The option sets the library file that declares names of non-standard system tasks and functions. The file has the following structure:

<kind> (<type>)? <name>
<kind> (<type>)? <name>
  • <kind> is either function or task;
  • <type> is the return type (only for functions);
  • <name> is the entity name.

Here is an example.

function [3:0] $myFunction
task $myTask

Updated by Alexander Kamkin 12 months ago · 7 revisions