2025-03-14 21:59:59 -06:00
|
|
|
# ghdl
|
|
|
|
|
|
|
|
|
|
> Open-source simulator for the VHDL language.
|
|
|
|
|
> More information: <https://ghdl.github.io/ghdl/>.
|
|
|
|
|
|
|
|
|
|
- Analyze a VHDL source file and produce an object file:
|
|
|
|
|
|
|
|
|
|
`ghdl -a {{filename.vhdl}}`
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
- Elaborate a design (where `design` is the name of a configuration unit, entity unit, or architecture unit):
|
2025-03-14 21:59:59 -06: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}}`
|
|
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
|
|
`ghdl --help`
|