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:
- Logic synthesis and technology mapping (Yosys and ABC)
- Floorplanning and input/output pin placement (OpenROAD)
- Standard cell placement and optimization (RePlAce and OpenDP)
- Clock tree synthesis (TritonCTS)
- Global and detailed routing (FastRoute and TritonRoute)
- Physical verification and signoff (Magic, Netgen, and KLayout)
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.