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: user_guide.md
+17-1Lines changed: 17 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -302,7 +302,7 @@ test = ent.test("test")
302
302
test.disable_ieee_warnings()
303
303
```
304
304
## Setting custom simulation options
305
-
Custom simulation options can be set using the`sim_options(name, value)` method. Options can either be set globally, for a library, for an entity or for a specific test.
305
+
Custom simulation options can be set using the`set_sim_option(name, value)` method. Options can either be set globally, for a library, for an entity or for a specific test.
- Extra arguments passed to `vsim` when loading the design.
313
313
*`vsim_extra_args.gui`
314
314
- Extra arguments passed to `vsim` when loading the design in GUI mode where it takes precedence over `vsim_extra_args`.
315
+
*`ghdl_flags`
316
+
- Extra arguments passed to `ghdl --elab-run` command *before* executable specific flags. Must be a list of strings.
317
+
- Example `vu.set_sim_option("ghdl_flags", ["--no-vital-checks"])`.
318
+
319
+
## Setting custom compilation options
320
+
Custom compilation options can be set using the `set_compile_option(name, value)` method. Options can be either set globally, for a library or for a specific file returned by the `add_source_files` method.
**NOTE:** Only affects source files added *before* the option is set.
326
+
327
+
### Known compilation options
328
+
*`ghdl_flags`
329
+
- Extra arguments passed to `ghdl -a` command. Must be a list of strings.
330
+
- Example `vu.set_compile_option("ghdl_flags", ["--no-vital-checks"])`.
315
331
316
332
## Ctrl-C when using Git/MSYS Bash on Windows
317
333
VUnit will catch Ctrl-C and perform a clean shutdown closing all started simulation processes and printing the test report so far. On Git/MSYS Bash on Windows however there is a mechanism that hard kills a process a very short time after pressing Ctrl-C often prohibiting VUnit from completing its shutdown. This can leave simulation process open which have to be manually killed. See this [stack overflow post](http://stackoverflow.com/questions/23678045/control-c-kills-ipython-in-git-bash-on-windows-7) for tips on how to remove this mechanism.
0 commit comments