Module 1: The Physical Design Landscape · 1.4 Environment Setup

The OpenLane Directory Structure

Understanding the filesystem layout clarifies how OpenLane reads inputs and writes outputs. This article explains the directory hierarchy of an OpenLane installation.

Three Primary Locations

An OpenLane environment organizes files into three main areas:

  • designs/: Contains individual subdirectories for each circuit design. Each design directory stores RTL source files and local configuration files.
  • PDK_ROOT: Contains the SkyWater SKY130 technology files, libraries, and verification rule decks managed by Volare.
  • runs/<run-tag>/: Created dynamically inside each design directory during flow execution. This directory stores logs, reports, and generated physical design files.

This structure separates immutable technological data from mutable project files. The PDK remains shared and unmodified across multiple designs. Each flow run creates a dedicated, timestamped folder that prevents accidental overwrites.

Creating a Design Folder Structure

Create a new design folder manually to learn its required organization:

cd designs
mkdir -p my_first_design/src
touch my_first_design/src/my_first_design.v
touch my_first_design/config.json

The resulting directory contains two key elements:

designs/my_first_design/
├── src/
│   └── my_first_design.v     # RTL source code
└── config.json                # Design-specific configuration

The src/ directory holds Verilog source files. The config.json file defines design parameters, clock period targets, and library choices.

All projects in this course follow this standard directory layout. Placing Verilog files outside src/ or renaming config.json causes initialization errors in OpenLane.

Practice Exercise

An engineer wants to compare an original RTL implementation against an experimental revision. How should the engineer structure the files to prevent output conflicts?

Solution

Create two separate design folders under designs/, such as my_first_design/ and my_first_design_v2/. Each folder must contain its own src/ directory and config.json file.

OpenLane generates independent runs/ subdirectories inside each design folder. This organization isolates reports, logs, and GDSII layouts without mixing experimental data.

The next article executes a complete design through the OpenLane flow to generate a finished GDSII file.

← Installing OpenLane and the SKY130 PDK Running a First Design End to End →