-
Notifications
You must be signed in to change notification settings - Fork 229
How to install ghdl on Windows and Linux
-
Download and install GtkWave waveform viewer to
C:\APPZ\VHDL\
. Do NOT use accented symbols and spaces in the path to install folder! -
Download and install ghdl-0.29.1 compiler to
C:\APPZ\VHDL\
. Note that, actual version can be found here.
-
Start Terminal (typically
Ctrl+Alt+T
) and install ghdl compiler and GtkWave waveform viewer.sudo apt-get install ghdl gtkwave
Note: Description and example of
ghdl
usage is also here.
-
Create a new project folder
gates
on your local disk. Do NOT use accented symbols and spaces in the path to project folder! -
Create a design VHDL file
gates/gates.vhd
. Open the Example of basic gates and copy/paste thedesign.vhd
code to your localgates/gates.vhd
file. -
Create a simulation VHDL file
gates/tb_gates.vhd
and copy/paste thetestbench.vhd
to this file. -
Create a script file
gates/RUN.sh
and copy/paste this content to it. In this file:-
set the
TOP_ENTITY
according to your testbench -
set path to your
gtkwave
installation on Windows or LinuxTOP_ENTITY=tb_gates # For Windows GTK=C:/APPZ/VHDL/gtkwave/bin # For Linux # GTK=/usr/bin
-
-
Run Git Bash, Command Prompt (Windows) of Terminal (Linux), navigate to your project folder, and run the script.
# Windows Git Bash or Linux: sh RUN.sh
Version | Result (yyyy-mm-dd) | Note |
---|---|---|
Windows 10 | OK (2023-04-01) | HomeOffice |
Linux Mint 20.3 (Una) | OK (2022-02-24) | Laptop |
# FYI: How to check OS version in Linux
$ cat /etc/os-release
# Or by Neofetch
$ neofetch