This repository contains a make file for easy compile and install of Icarus Verilog. Icarus Verilog is a verilog compilation and simulation system.
This make file can build the icarus verilog tool on the following systems:
Get the code for this component to a local directory on your PC.
git clone https://github.com/embed-dsp/ed_iverilog.git
Get the code for Icarus Verilog.
# Enter the ed_iverilog directory.
cd ed_iverilog
NOTE: If this is the first time Icarus Verilog is built, then ...
# Clone the Icarus Verilog git repository.
make clone
Otherwise just pull the latest updates ...
# Pull latest updates from the Icarus Verilog git repository.
make pull
Edit the Makefile for selecting the Icarus Verilog source version.
# Edit Makefile ...
vim Makefile
# ... and set the Icarus Verilog source version.
PACKAGE_VERSION = master
# PACKAGE_VERSION = v12_0
# Checkout specific version and rebuild configure.
make prepare
# Configure source code.
make configure
# Clean any old build artifacts before compiling.
make clean
# Compile source code using 8 simultaneous jobs (Default).
make compile
# Install build products.
sudo make install
The Icarus Verilog package installs correctly according to the GNU Coding Standards. The build products are installed in the following locations:
/opt/
└── iverilog/
└── iverilog-master/ # prefix:
├── include/ # includedir: Include directory.
│ ├── iverilog
│ ...
├── linux_x86_64/ # exec_prefix: 64-bit binaries and libraries for Linux
│ ├── bin/ # bindir:
│ │ ├── iverilog
│ │ ├── vvp
│ │ ...
│ └── lib/ # libdir: Library directory.
│ ├── libveriuser.a
│ ├── libvpi.a
│ ...
└── share/ # datadir: Architecture independent data files.
...
# Install build products.
make install
The Icarus Verilog package installs correctly according to the GNU Coding Standards. The build products are installed in the following locations:
/c/opt/
└── iverilog/
└── ...
The following system configurations have been tested.
System | OS |
---|---|
linux | Fedora-40 64-bit |
mingw64 | Windows-10 64-bit |
mingw32 | Windows-10 64-bit |
sudo dnf install gcc-c++
sudo dnf install autoconf
sudo dnf install gperf
sudo dnf install flex
sudo dnf install bison