|
3 | 3 | HDL converter (between VHDL, SystemVerilog and/or Verilog), based on [GHDL](https://github.com/ghdl/ghdl), [Yosys](https://github.com/YosysHQ/yosys), [Synlig](https://github.com/chipsalliance/synlig) and the plugins [ghdl-yosys-plugin](https://github.com/ghdl/ghdl-yosys-plugin) and [yosys-slang](https://github.com/povik/yosys-slang). |
4 | 4 | It relies on [Docker](https://docs.docker.com/get-docker) and [PyFPGA containers](https://github.com/PyFPGA/containers). |
5 | 5 |
|
6 | | -> Known limitation: the files must be located either under the `$HOME` directory or under the current working directory (`$PWD`) for Docker to be able to find and access them. |
7 | | -
|
8 | 6 | * `vhdl2vhdl`: converts from a newer VHDL to VHDL'93 (using `ghdl`). |
9 | 7 | * `vhdl2vlog`: converts from VHDL to Verilog (backends: `ghdl` or `yosys`). |
10 | 8 | * `slog2vlog`: converts from SystemVerilog to Verilog (frontends: `slang`, `synlig` or `yosys`). |
11 | | - |
12 | | -# Documentation |
13 | | - |
14 | | -``` |
15 | | -usage: vhdl2vhdl [-h] [-v] [--no-docker] [-g GENERIC VALUE] [-a ARCH] |
16 | | - [-f FILENAME] [-o PATH] -t TOPNAME |
17 | | - FILE[,LIBRARY] [FILE[,LIBRARY] ...] |
18 | | -
|
19 | | -VHDL to VHDL |
20 | | -
|
21 | | -positional arguments: |
22 | | - FILE[,LIBRARY] VHDL file/s (with an optional LIBRARY specification) |
23 | | -
|
24 | | -optional arguments: |
25 | | - -h, --help show this help message and exit |
26 | | - -v, --version show program's version number and exit |
27 | | - --no-docker do not use Docker (use system tools instead) |
28 | | - -g GENERIC VALUE, --generic GENERIC VALUE |
29 | | - specify a top-level Generic (can be specified multiple |
30 | | - times) |
31 | | - -a ARCH, --arch ARCH specify a top-level Architecture |
32 | | - -f FILENAME, --filename FILENAME |
33 | | - resulting file name [<TOPNAME>.<EXT>] |
34 | | - -o PATH, --odir PATH output directory [results] |
35 | | - -t TOPNAME, --top TOPNAME |
36 | | - specify the top-level of the design |
37 | | -``` |
38 | | - |
39 | | -``` |
40 | | -usage: vhdl2vlog [-h] [-v] [--no-docker] [--backend TOOL] [-g GENERIC VALUE] |
41 | | - [-a ARCH] [-f FILENAME] [-o PATH] -t TOPNAME |
42 | | - FILE[,LIBRARY] [FILE[,LIBRARY] ...] |
43 | | -
|
44 | | -VHDL to Verilog |
45 | | -
|
46 | | -positional arguments: |
47 | | - FILE[,LIBRARY] VHDL file/s (with an optional LIBRARY specification) |
48 | | -
|
49 | | -optional arguments: |
50 | | - -h, --help show this help message and exit |
51 | | - -v, --version show program's version number and exit |
52 | | - --no-docker do not use Docker (use system tools instead) |
53 | | - --backend TOOL backend tool [ghdl] |
54 | | - -g GENERIC VALUE, --generic GENERIC VALUE |
55 | | - specify a top-level Generic (can be specified multiple |
56 | | - times) |
57 | | - -a ARCH, --arch ARCH specify a top-level Architecture |
58 | | - -f FILENAME, --filename FILENAME |
59 | | - resulting file name [<TOPNAME>.<EXT>] |
60 | | - -o PATH, --odir PATH output directory [results] |
61 | | - -t TOPNAME, --top TOPNAME |
62 | | - specify the top-level of the design |
63 | | -``` |
64 | | - |
65 | | -``` |
66 | | -usage: slog2vlog [-h] [-v] [--no-docker] [--frontend TOOL] [-p PARAM VALUE] |
67 | | - [-d DEFINE VALUE] [-i PATH] [-f FILENAME] [-o PATH] -t |
68 | | - TOPNAME |
69 | | - FILE [FILE ...] |
70 | | -
|
71 | | -SystemVerilog to Verilog |
72 | | -
|
73 | | -positional arguments: |
74 | | - FILE System Verilog file/s |
75 | | -
|
76 | | -optional arguments: |
77 | | - -h, --help show this help message and exit |
78 | | - -v, --version show program's version number and exit |
79 | | - --no-docker do not use Docker (use system tools instead) |
80 | | - --frontend TOOL frontend tool [slang] |
81 | | - -p PARAM VALUE, --param PARAM VALUE |
82 | | - specify a top-level Parameter (can be specified |
83 | | - multiple times) |
84 | | - -d DEFINE VALUE, --define DEFINE VALUE |
85 | | - specify a Define (can be specified multiple times) |
86 | | - -i PATH, --include PATH |
87 | | - specify an Include Path (can be specified multiple |
88 | | - times) |
89 | | - -f FILENAME, --filename FILENAME |
90 | | - resulting file name [<TOPNAME>.<EXT>] |
91 | | - -o PATH, --odir PATH output directory [results] |
92 | | - -t TOPNAME, --top TOPNAME |
93 | | - specify the top-level of the design |
94 | | -``` |
0 commit comments