mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-31 15:42:03 +00:00
34 lines
673 B
Plaintext
34 lines
673 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# ghdl
|
|
|
|
> Open-source simulator for the VHDL language.
|
|
> More information: <http://ghdl.free.fr>.
|
|
|
|
- Analyze a VHDL source file and produce an object file:
|
|
|
|
`ghdl -a {{filename.vhdl}}`
|
|
|
|
- Elaborate a design (where `design` is the name of a configuration unit, entity unit or architecture unit):
|
|
|
|
`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`
|