HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

ghdl — Open-source simulator for the VHDL language. More information: <https://ghdl.github.io/ghdl/>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandsimulatorghdlsourcecliopenfor

Problem

How to use the ghdl command: Open-source simulator for the VHDL language. More information: <https://ghdl.github.io/ghdl/>.

Solution

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}}


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

Code Snippets

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}}

Context

tldr-pages: common/ghdl

Revisions (0)

No revisions yet.