Command Line Options » History » Version 10
Sergey Smolov, 11/06/2019 05:13 PM
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 | 9 | Alexander Kamkin | ** both files should be given to VeriTrans; |
16 | ** @b.v@ comes first; |
||
17 | ** @--include-path@ is not required; |
||
18 | 8 | Alexander Kamkin | * @a.v@ contains @`include "b.v"@: |
19 | ** the path @/absolute/path/to@ should be added to @--include-path@; |
||
20 | * @a.v@ contains @`include "path/to/b.v"@: |
||
21 | 10 | Sergey Smolov | ** the path @/absolute/path/to@ should be added to @--include-path@. |
22 | 7 | Alexander Kamkin | |
23 | h2. Library file |
||
24 | |||
25 | The option sets the library file that declares names of non-standard system tasks and functions. The file has the following structure: |
||
26 | |||
27 | <pre> |
||
28 | <kind> (<type>)? <name> |
||
29 | ... |
||
30 | <kind> (<type>)? <name> |
||
31 | </pre> |
||
32 | |||
33 | where |
||
34 | * @<kind>@ is either @function@ or @task@; |
||
35 | * @<type>@ is the return type (only for functions); |
||
36 | * @<name>@ is the entity name. |
||
37 | |||
38 | 8 | Alexander Kamkin | Here is an example: |
39 | 7 | Alexander Kamkin | |
40 | <pre> |
||
41 | function [3:0] $myFunction |
||
42 | task $myTask |
||
43 | </pre> |