2020-10-09 22:35:12 -04:00
|
|
|
# ghdl
|
|
|
|
|
|
|
|
> Open-source simulator for the VHDL language.
|
2024-10-01 19:02:34 +02:00
|
|
|
> More information: <https://ghdl.github.io/ghdl/>.
|
2020-10-09 22:35:12 -04:00
|
|
|
|
|
|
|
- Analyze a VHDL source file and produce an object file:
|
|
|
|
|
|
|
|
`ghdl -a {{filename.vhdl}}`
|
|
|
|
|
2023-11-12 04:08:58 +01:00
|
|
|
- Elaborate a design (where `design` is the name of a configuration unit, entity unit or architecture unit):
|
2020-10-09 22:35:12 -04:00
|
|
|
|
|
|
|
`ghdl -e {{design}}`
|
|
|
|
|
|
|
|
- Run an elaborated design:
|
|
|
|
|
|
|
|
`ghdl -r {{design}}`
|
|
|
|
|
|
|
|
- Run an elaborated design and dump output to a waveform file:
|
|
|
|
|
|
|
|
`ghdl -r {{design}} --wave={{output.ghw}}`
|
|
|
|
|
|
|
|
- Check the syntax of a VHDL source file:
|
|
|
|
|
|
|
|
`ghdl -s {{filename.vhdl}}`
|
|
|
|
|
2024-01-30 01:55:24 -03:00
|
|
|
- Display help:
|
2020-10-09 22:35:12 -04:00
|
|
|
|
|
|
|
`ghdl --help`
|