Module 1: The Physical Design Landscape · 1.4 Environment Setup

Running a First Design End to End

This article demonstrates an automated end-to-end run of OpenLane. Executing the flow produces a completed GDSII file directly from RTL source code.

Running the full flow provides a baseline reference. Subsequent modules examine each individual stage in detail.

Target Design: An 8-Bit Synchronous Counter

Place a basic synchronous counter in designs/my_first_design/src/my_first_design.v:

module my_first_design (
    input  wire clk,
    input  wire rst_n,
    output reg [7:0] count
);
    always @(posedge clk or negedge rst_n) begin
        if (!rst_n)
            count <= 8'd0;
        else
            count <= count + 8'd1;
    end
endmodule

This 8-bit counter provides sequential logic, an active-low reset, and a registered output bus. It executes fast while exercising clock tree synthesis, placement, and routing.

Executing the Automated Flow

Launch the automated flow using flow.tcl:

./flow.tcl -design my_first_design

OpenLane displays progress messages in the terminal. The stages execute in standard physical design order:

  1. Logic synthesis and technology mapping (Yosys and ABC)
  2. Floorplanning and input/output pin placement (OpenROAD)
  3. Standard cell placement and optimization (RePlAce and OpenDP)
  4. Clock tree synthesis (TritonCTS)
  5. Global and detailed routing (FastRoute and TritonRoute)
  6. Physical verification and signoff (Magic, Netgen, and KLayout)

Front-end ends at a verified netlist; back-end runs from synthesis to the fab
Figure 1: The stages you will see go by, in order

The subsequent modules explain the log files and metrics produced by each of these stages.

Locating the Output Layout File

OpenLane places output artifacts in the run directory under designs/my_first_design/runs/<run-tag>/.

The generated GDSII stream file resides at:

runs/<run-tag>/results/final/gds/my_first_design.gds

This file contains the complete geometric mask data for the 8-bit counter.

A successful flow execution does not prove that a design satisfies production specifications. Designers must verify timing slack, power consumption, and physical rule cleanliness. Module 7 and Module 8 introduce timing closure and signoff verification.

Practice Exercise

An automated run finishes without software errors and writes a GDSII file. Does this result guarantee that the circuit is ready for manufacturing tapeout?

Solution

No. A successful software run proves only that the toolchain executed without crashing.

Engineers must inspect static timing reports for setup and hold violations. Engineers must also inspect DRC and LVS reports for design rule violations and electrical shorts. Tapeout requires passing all timing and physical verification checks.

Section 1.5 analyzes config.json and details the configuration variables that control the flow.

← The OpenLane Directory Structure config.json, Field by Field →