Command Line Options » History » Version 8
Alexander Kamkin, 11/06/2019 11:07 AM
1 | 1 | Sergey Smolov | h1. Command Line Options |
---|---|---|---|
2 | |||
3 | 7 | Alexander Kamkin | Verilog Translator handles the following command line options: |
4 | 5 | Sergey Smolov | |
5 | 7 | Alexander Kamkin | |*Long name*|*Short name*|*Description*|*Default value, if applicable*| |
6 | |--include-path|-I|Include directories|-| |
||
7 | |--library-file|-L|Library file|-| |
||
8 | 1 | Sergey Smolov | |
9 | 7 | Alexander Kamkin | h2. Include directories |
10 | 1 | Sergey Smolov | |
11 | 7 | Alexander Kamkin | The option sets the directories where VeriTrans searches for Verilog files included from others. Multiple paths are separated by @:@ (for Unix) or @;@ (for Windows). |
12 | 1 | Sergey Smolov | |
13 | 7 | Alexander Kamkin | When @a.v@ uses something defined in @b.v@ (located at @/absolute/path/to@), there may be the following situations: |
14 | 8 | Alexander Kamkin | * @a.v@ does not contain @`include "b.v"@: |
15 | ** both files should be given to VeriTrans, and @b.v@ comes first (@--include-path@ is not required); |
||
16 | * @a.v@ contains @`include "b.v"@: |
||
17 | ** the path @/absolute/path/to@ should be added to @--include-path@; |
||
18 | * @a.v@ contains @`include "path/to/b.v"@: |
||
19 | ** the path @/absolute@ should be added to @--include-path@. |
||
20 | 7 | Alexander Kamkin | |
21 | h2. Library file |
||
22 | |||
23 | The option sets the library file that declares names of non-standard system tasks and functions. The file has the following structure: |
||
24 | |||
25 | <pre> |
||
26 | <kind> (<type>)? <name> |
||
27 | ... |
||
28 | <kind> (<type>)? <name> |
||
29 | </pre> |
||
30 | |||
31 | where |
||
32 | * @<kind>@ is either @function@ or @task@; |
||
33 | * @<type>@ is the return type (only for functions); |
||
34 | * @<name>@ is the entity name. |
||
35 | |||
36 | 8 | Alexander Kamkin | Here is an example: |
37 | 7 | Alexander Kamkin | |
38 | <pre> |
||
39 | function [3:0] $myFunction |
||
40 | task $myTask |
||
41 | </pre> |