You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
input Input files (will skip over files with the output extension)
41
+
42
+
options:
38
43
-h, --help show this help message and exit
39
-
-i I Input file (Omit to read from stdin)
40
-
-o O Output file (Omit to print to stdout)
41
44
-D IDENTIFIER=value Specify identifiers for conditional compilation, ex. DEBUG_LEVEL=2
45
+
-o DIRECTORY Directory to store parsed files
46
+
-e EXTENSION Output extension for processed files (defaults to '.proc.vhdl')
47
+
--self-test Run a self-test to ensure functionality
48
+
--log-level LEVEL Configure the logging level
42
49
```
43
50
44
-
You can read from stdin or a file, and print to stdout or another file.
51
+
A basic example, where VHDLproc will parse each input file, output the processed text to a new file with a given extension, and the processed files are then passed to GHDL:
45
52
53
+
```bash
54
+
vhdlproc *.vhdl # preprocess all the files
55
+
ghdl -a --std=08 *.proc.vhdl # pass processed files to ghdl
### Preprocessor Directives (what you put in your VHDL files)
@@ -136,7 +154,7 @@ By default, `TOOL_NAME` is set to `VHDLproc` and `TOOL_VERSION` is set to the cu
136
154
-[ ] Prevent a file from including itself (to prevent infinite loops)
137
155
-[ ] Modify text and file operations to work on Windows (if they don't already)
138
156
-[ ] Throw an error if a `` `warning `` or `` `error `` string isn't wrapped in quotes
139
-
-[] Add the option to the CLI to take in a series of file inputs, process them, save the individual results to temporary files (i.e. in `/tmp/` or a local path), then return all of the filepaths. This would be useful for doing this with GHDL: `ghdl -a $(vhdlproc -f *.vhdl)`.
157
+
-[x] Add the option to the CLI to take in a series of file inputs, process them, save the individual results to temporary files (i.e. in `/tmp/` or a local path), then return all of the filepaths. This would be useful for doing this with GHDL: `ghdl -a $(vhdlproc *.vhdl)`.
0 commit comments