-
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.
-
Download and install ghdl-0.29.1 compiler. 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
-
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 testbench VHDL file
gates/tb_gates.vhd
. Open the Example of basic gates and copy/paste thetestbench.vhd
code to your localgates/tb_gates.vhd
file. -
Create a new file
gates/RUN.sh
and copy/paste the content to it. In this file:- set the
TOP_ENTITY
according to your testbench - set path to your
gtkwave
installation on Windows or Linux
TOP_ENTITY=tb_gates # For Windows GTK=c:/APPZ/gtkwave/bin # For Linux # GTK=/usr/bin
- set the
-
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 | Date (YYYY-MM-DD) | Note |
---|---|---|
Linux Mint 20.3 (Una) | 2022-02-24 | Laptop |
# FYI: How to check OS version in Linux
$ cat /etc/os-release
# Or by Neofetch
$ neofetch