Module 3: Floorplanning · 3.5 The OpenLane Floorplan Stage

Viewing a First Floorplan

Previous articles defined core dimensions, power distribution grids, I/O pin placements, and tap cells. This article executes the OpenLane floorplan stage and inspects the physical layout in Magic and KLayout.

Executing the Floorplan Stage

OpenLane executes floorplanning through the interactive run_floorplan command:

% prep -design counter8
[INFO]: Preparing OpenLane environment for counter8...
[INFO]: PDK: sky130A, standard cell library: sky130_fd_sc_hd

% run_floorplan
[INFO]: Generating floorplan...
[INFO]: Core area set to 5.00 5.00 45.00 45.00 (die 0.00 0.00 50.00 50.00)
[INFO]: Inserting endcap cells at row boundaries...
[INFO]: Inserting tap cells (sky130_fd_sc_hd__tapvpwrvgnd_1) per density rule...
[INFO]: Generating power distribution network...
[INFO]:   Core ring: met4/met5, width 1.60
[INFO]:   Vertical straps (met4): 3, Horizontal straps (met5): 3
[INFO]: Placing I/O pins using FP_PIN_ORDER_CFG: pin_order.cfg
[INFO]:   West: clk, rst_n, en | East: count[7:0]
[INFO]: Floorplanning complete.
[INFO]: Writing floorplan DEF to runs/counter8_run/results/floorplan/counter8.floorplan.def

The tool log reflects each physical design choice. It reports core coordinates ($40\ \mu\text{m} \times 40\ \mu\text{m}$), die coordinates ($50\ \mu\text{m} \times 50\ \mu\text{m}$), power grid dimensions, and pin locations. The stage produces a Design Exchange Format (DEF) file containing all physical floorplan objects.

Inspecting the DEF File

A DEF file records placement sites, pin coordinates, special nets, and boundary boxes in plain ASCII text. Open the DEF file in Magic:

magic -T sky130A.tech runs/counter8_run/results/floorplan/counter8.floorplan.def

Open the file in KLayout for cross-verification:

klayout runs/counter8_run/results/floorplan/counter8.floorplan.def

Visual Layout Inspection

Figure 1 illustrates the visual elements visible in the floorplan DEF view.

The counter8 floorplan: die, core, power ring and straps, pins on west and east, rows with taps and endcaps
Figure 1: The floorplan DEF, and where each part came from

The table correlates visible layout features to their configuration origin:

What you see What it is Where it came from
Outer rectangle Die boundary 3.1.3, 50 by 50 µm
Inner rectangle, inset by the margin Core boundary 3.1.1 and 3.1.3, 40 by 40 µm, 5 µm margin
Thick traces around the core perimeter Power ring (met4/met5) 3.2.1, 3.2.3
Thick traces crossing the interior Power straps 3.2.1, 3.2.3
Marks on the west edge clk, rst_n, en 3.3.1, 3.3.3
Marks on the east edge count[7:0], in bit order 3.3.1, 3.3.3
Small repeating cells along the rows Tap and endcap cells 3.5.2
Empty rows with no logic cells Standard cell sites, unpopulated Waiting for Module 4

The standard cell sites along each row remain unpopulated. Floorplanning establishes row structure and power connections before logic placement. Module 4 places the functional flip-flops and logic gates into these empty sites.

Always perform visual inspection after floorplanning. Visual checks immediately reveal gross layout defects, such as incorrect aspect ratios, missing power rings, or mislocated pins.

Practice Exercise

An inspection of the DEF file reveals an unexpected 3:1 rectangular core rather than a 1:1 square. Identify the configuration parameters to check first.

Solution

Check FP_ASPECT_RATIO first. This parameter directly determines the width-to-height ratio of the core. If FP_ASPECT_RATIO is set to 1.0, check FP_CORE_UTIL and verify whether explicit die coordinates override automatic sizing. These parameters control the outer bounding box dimensions of the core.

This concludes Module 3. You have sized die boundaries, created power distribution grids, assigned boundary pins, positioned macros, and verified the floorplan in layout viewers. Module 4 populates the core rows through standard cell placement and legalization.

← Tap Cells and Endcaps