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
Copy file name to clipboardExpand all lines: README.md
+14-6Lines changed: 14 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ Recreation of `vpp` version 2.0.3d which is Copyright (c) 2006-2020 Takashige Su
6
6
7
7
## Build and Install
8
8
9
-
From Linux, simply make `src/vhdlproc` executable by running `chmod +x src/vhdlproc`. Then the program can be run directly via `./src/vhdlproc`. Requires the Python libs `os`, `sys`, `random`, and `argparse`.
9
+
From Linux, simply make `src/vhdlproc` executable by running `chmod +x src/vhdlproc`. Then the program can be run directly via `./src/vhdlproc`. Requires the Python libs `os`, `sys`, `random`, `datetime`, and `argparse`.
`else - Reverse condition for `ifdef and `ifndef (when not
76
-
overridden by nested if)
75
+
`else - Reverse condition for `ifdef and `ifndef
77
76
78
77
`endif - Terminator for `ifdef, `ifndef and `else
79
78
80
-
`for LABEL - Duplicate program code until `endfor LABEL times
79
+
`for INT- Duplicate program code until `endfor INT times
81
80
Can be nested
82
81
83
82
`endfor - Terminator for `for
84
83
85
84
`message STRING - Print STRING to the standard output stream
85
+
86
+
`error STRING - Print STRING to standard error output stream
87
+
Will force close VHDLproc without saving
86
88
```
87
89
88
90
The preprocessor character (default: \` ) can either be changed by the command line option `--directive CHAR` or by the environment variable `VHDLPROC_DIRECTIVE`. The command line option supersedes the environment variable, which supersedes the default.
@@ -91,6 +93,12 @@ It's possible to use `#` as the preprocessor directive by passing in `--directiv
91
93
92
94
The comment character (default: -- ) can either be changed by the command line option `--comment CHAR` or by the environment variable `VHDLPROC_COMMENT`. The command line option supersedes the environment variable, which supersedes the default.
93
95
96
+
There are some predefined labels as follows:
97
+
-`__FILE__`: Full path to the input file, set to `"STDIN"` when reading from stdin
98
+
-`__LINE__`: The current input line number as a string, not affected by for repeats
99
+
-`__DATE__`: The current date formatted as a string as `"Jan 01 1970"`
100
+
-`__TIME__`: The current time formatted as a string as `"00:00:00"`, 24 hour clock
0 commit comments