2.1 FPGA
2.1.3 How to install and simulate with ghdl and gtkWave on Ubuntu 22.04
1. Install ghdl VHDL compiler/simulator:
Shell
$> sudo apt install ghdl
2. Install gtkwave VCD (Value Change Dump) file waveform viewer:
Shell
$> sudo apt install gtkwave
3. How to use ghdl and gtkwave
Import unit file:
Shell
$> ghdl -i unitname.vhd
Make unit:
Shell
$> ghdl -m unitname
Compile unit and make gtkwave output file:
Shell
$> ghdl -r unitname --wave outputfile.ghw
Run gtkwave:
Shell
$> gtkwave outputfile.ghw
Shell
$> sudo apt install ghdl
2. Install gtkwave VCD (Value Change Dump) file waveform viewer:
Shell
$> sudo apt install gtkwave
3. How to use ghdl and gtkwave
Import unit file: Shell
$> ghdl -i unitname.vhd
Shell
$> ghdl -m unitname
Shell
$> ghdl -r unitname --wave outputfile.ghw
Shell
$> gtkwave outputfile.ghw