Setting Up OpenLane using Ubuntu and Docker
OpenLane is an automated RTL-to-GDSII flow that integrates open-source EDA tools for ASIC physical design. The toolchain incorporates OpenROAD, Yosys, Magic, Netgen, CVC, SPEF-Extractor, and KLayout. This guide explains how to install and configure OpenLane on Ubuntu using Docker.
Efabless developed OpenLane to provide an autonomous physical design flow. The flow automates synthesis, floorplanning, placement, clock tree synthesis, routing, and physical verification. Designers use OpenLane and the open-source SkyWater 130 nm PDK to prepare silicon designs for shuttle fabrication.
Docker containerization packages the entire toolchain into precompiled container images. This containerized architecture prevents library version conflicts between individual tools on host operating systems. The flow executes tool sequences automatically using Tcl scripts and Python wrappers.
This tutorial guides you through configuring Docker and installing OpenLane on an Ubuntu system.
Prerequisites
Verify the following system requirements before proceeding:
- Ubuntu Linux 20.04 LTS or newer (tested on Ubuntu 25.04).
- Root access privileges using
sudo. - An active internet connection for downloading container images and PDK files.
Installation
Step 0: Operating System Setup
You can run Ubuntu directly on bare metal or inside a virtualization hypervisor. Download the desktop installation image from the official Ubuntu website.
Both Long Term Support (LTS) releases and interim releases support Docker and OpenLane. Complete the operating system installation within your hypervisor.
Proceed to package updates once the operating system installation completes.
Step 1: Update the Operating System
Update local package index caches and installed system software:
sudo apt update
sudo apt upgrade
When operating inside VMware hypervisors, install desktop guest integration tools:
sudo apt install open-vm-tools-desktop
Step 2: Install Required Dependencies
Install the prerequisite system utilities and Python tools:
sudo apt install -y build-essential python3 python3-venv python3-pip make git
Package roles:
build-essential: Standard compiler toolchain including GCC, G++, and GNU Make.python3andpython3-pip: Python runtime environment and package manager.python3-venv: Support for isolated Python virtual environments.git: Distributed version control system.
Step 3: Install Docker Engine
OpenLane executes tools inside managed Docker containers. Follow these steps to install Docker Engine.
Remove Obsolete Docker Packages
Uninstall legacy or conflicting container packages:
sudo apt remove docker docker.io containerd runc
Install Repository Prerequisites
Install transport security packages and certificates:
sudo apt install ca-certificates curl gnupg lsb-release
Register the Docker GPG Key
Download and store the official Docker package signing key:
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
Add the Docker Package Repository
Configure the apt package source list for the Docker repository:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
Install Docker Packages
Update the package index and install Docker Engine with the Compose plugin:
sudo apt update
sudo apt install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
Configure User Permissions for Docker
Add your user account to the docker system group to run commands without sudo:
sudo groupadd docker
sudo usermod -aG docker $USER
Reboot the system to apply group membership changes:
sudo reboot
Alternatively, refresh user group membership in the active shell:
newgrp docker
Verify Docker Installation
Confirm that Docker executes correctly without root privileges:
docker --version
docker run hello-world
The container engine pulls the test image and displays confirmation text:
If the terminal reports permission denied on the Docker socket, verify that your user account belongs to the docker group:
Step 4: Install OpenLane
After configuring Docker, install OpenLane and download the required container images.
Clone the OpenLane Repository
Clone the OpenLane repository to your local directory:
git clone --depth 1 https://github.com/The-OpenROAD-Project/OpenLane.git
cd OpenLane/
Build the Environment
Run the setup target using GNU Make:
make
This target performs the following actions:
- Downloads the required OpenLane container images.
- Configures local directory mounts and execution scripts.
- Installs and configures the SkyWater 130 nm Process Design Kit (PDK).
Execute Verification Test
Verify the installation by running the test target:
make test
This command runs the complete physical design flow on a sample design. Upon completion, the terminal displays test status:
The tool saves generated reports and layout databases in the designs/ directory.
Step 5: Verify Tool Versions
Verify the installed versions of prerequisite software:
git --version
docker --version
python3 --version
pip3 --version
make --version
Viewing Test Results with KLayout
If you have KLayout installed on the host system, inspect the generated GDSII file:
klayout designs/spm/runs/*/results/final/gds/*.gds
You can also launch KLayout from within the OpenLane Docker environment:
xhost +local:docker # Enable docker to connect to X server
make mount # Launch OpenLane docker container and mount the volume in it
klayout designs/spm/runs/*/results/final/gds/*.gds
The KLayout graphical interface displays the final silicon layout:
Troubleshooting
Docker Permission Denied
If the terminal reports permission errors when running Docker commands:
sudo usermod -aG docker $USER
sudo reboot
Make Target Failures
Verify that the Docker daemon is active and responding:
sudo systemctl status docker
Python Version Incompatibility
OpenLane requires Python version 3.6 or newer. Verify the installed version:
python3 --version
Next Steps
With OpenLane configured, you can perform the following activities:
- Inspect reference designs in the
designs/directory. - Configure physical constraints for custom Verilog RTL modules.
- Run complete synthesis, placement, routing, and physical verification flows.
- Configure PDK parameters for targeted process nodes.
The OpenLane flow provides an automated physical design environment on Ubuntu and Docker. This environment enables designers to translate Verilog RTL code into tapeout-ready GDSII layouts using open-source tools.