Linux install and doctor checks
SV-Gap's built-in backend needs Python, Yosys, and Icarus Verilog on PATH.
On Ubuntu or Debian, install the open tools before installing SV-Gap:
sudo apt-get update
sudo apt-get install -y python3 python3-venv python3-pip yosys iverilog
python3 -m venv .venv
. .venv/bin/activate
python -m pip install svgap==0.3.0a8
svgap doctor
For a GitHub Actions Ubuntu runner, use the maintained runner Python plus the same open RTL packages:
- uses: actions/setup-python@v6
with:
python-version: "3.12"
- run: sudo apt-get update && sudo apt-get install -y iverilog yosys
- run: python -m pip install svgap==0.3.0a8
- run: svgap doctor
Understanding svgap doctor
svgap doctor checks whether yosys, iverilog, and vvp are discoverable on
PATH. It exits with status 1 when any required tool is missing and prints
native installation recipes plus the no-host-install container fallback.
yosys MISSING: install theyosyspackage and verify it withcommand -v yosys.iverilog MISSING: install theiverilogpackage and verify it withcommand -v iverilog.vvp MISSING: install theiverilogpackage; the simulator runtime is packaged with Icarus Verilog on Ubuntu and Debian. Verify it withcommand -v vvp.
The remediation block covers Homebrew on macOS; apt, dnf, and pacman on
common Linux distributions; and Docker Desktop or WSL2 for Windows. Native
Windows execution is not currently tested.
To inspect the exact paths that will be used:
command -v svgap
command -v yosys
command -v iverilog
command -v vvp
printf '%s\n' "$PATH" | tr ':' '\n'
If SV-Gap was installed in a virtual environment, activate it first or call the script directly:
. .venv/bin/activate
svgap doctor
# or
.venv/bin/svgap doctor
When all required tools are present, doctor also prints the configured
reference-yosys backend with the detected Yosys version.
Container fallback
If the host is not Ubuntu/Debian, the system package names differ, or the local EDA packages are too old for a reproducible run, use the open-tool container:
docker run --rm ghcr.io/shsridhar-beep/svgap:v0.3.0-alpha.8 doctor
The container bundles SV-Gap with the pinned open-source toolchain used by the project image.