Project 4, Part 1: Setup and Floorplan
In previous capstone projects, small gate counts made floorplanning straightforward. Project 4 implements the 8-bit RISC processor core (cpu_top) from Module 10 of the Verilog course. The design contains instruction and data memories, a register file, an arithmetic logic unit, and a multi-cycle control state machine. At this scale, core utilization, aspect ratio, and power grid strap density directly influence downstream routability and timing closure.
Processor Architecture
The cpu_top design incorporates an 8-bit datapath, a 4-entry general-purpose register file, program counter logic, and embedded memories (imem and dmem) synthesized directly from flip-flops. To keep flip-flop counts manageable without introducing memory macros, memory depth is parameterized to 32 bytes ($32 \times 8 = 256$ bits per memory):
openlane --flow Classic --run-tag cpu_run1 --to Yosys.Synthesis designs/cpu_top/config.json
=== cpu_top ===
Number of cells: 1842
sky130_fd_sc_hd__dfxtp_1 612
sky130_fd_sc_hd__mux4_2 180
sky130_fd_sc_hd__nand2_1 244
sky130_fd_sc_hd__a221oi_1 96
...
Chip area for module '\cpu_top': 22380.6
Synthesis produces 1,842 standard cells and 612 flip-flops. Total standard cell area is approximately $22{,}381\ \mu\text{m}^2$. The large number of 4-to-1 multiplexers (mux4_2) implements memory read selection. At this gate density, routing congestion and slow-corner timing pressures emerge during physical implementation.
Core Utilization and Area Planning
Core area scales with standard cell area and target utilization:
$$ \text{Core area} = \frac{\text{Cell area}}{\text{Target utilization}} $$
At a conservative 40% utilization, the core area requires $55{,}950\ \mu\text{m}^2$ (roughly 237 µm × 237 µm). In this project, we deliberately select an aggressive 55% core utilization to challenge placement and routing:
$$ \text{Core area} \approx \frac{22{,}381\ \mu m^2}{0.55} \approx 40{,}690\ \mu m^2 \quad (\approx 202\ \mu m \times 202\ \mu m) $$
{
"DESIGN_NAME": "cpu_top",
"VERILOG_FILES": "dir::src/cpu_top.v",
"CLOCK_PORT": "clk",
"CLOCK_PERIOD": 12,
"FP_SIZING": "relative",
"FP_CORE_UTIL": 55,
"FP_ASPECT_RATIO": 1,
"PL_TARGET_DENSITY": 0.62,
"PL_ROUTABILITY_DRIVEN": false,
"FP_PDN_VPITCH": 50,
"FP_PDN_HPITCH": 50
}
We initially set PL_ROUTABILITY_DRIVEN: false to observe default placement behavior. In Part 2, we evaluate how omitting routability-driven placement causes localized congestion in control logic.
Aspect Ratio Selection
Parameter FP_ASPECT_RATIO: 1 establishes a square core. A square aspect ratio minimizes average interconnect wire lengths for designs with omnidirectional communication. In cpu_top, the central control unit broadcasts control signals to all functional blocks. Rectangular aspect ratios benefit pipeline structures with linear dataflow, but increase wire lengths in centralized control architectures.
Power Grid Sizing
Default OpenLane power grid configurations specify a 150 µm strap pitch. Across a 202 µm core, a 150 µm pitch provides only one vertical and one horizontal strap. Peripheral standard cells would receive current through long, resistive met1 rails. We reduce strap pitch to 50 µm in both directions, placing four vertical met4 straps and four horizontal met5 straps across the core, as shown in Figure 1.
Simultaneous switching of 612 flip-flops draws substantial transient current. Sizing strap pitch to 50 µm ensures low resistance across the power grid.
openlane --flow Classic --run-tag cpu_run1 --from OpenROAD.Floorplan --to OpenROAD.GeneratePDN \
designs/cpu_top/config.json
Core area: 201.710 x 201.620 um
Number of rows: 74
The floorplan constructs 74 standard cell rows across a 202 µm × 202 µm core. Initial static voltage drop analysis indicates an estimated drop of 6.0 mV, which is well below the 90 mV budget.
Practice Exercise
Assume FP_ASPECT_RATIO is changed from 1 to 2 (height equal to twice the width) while maintaining total core area. Which physical layout parameters change, and which flow stage encounters new difficulties?
Solution
Total core area remains approximately $40{,}700\ \mu\text{m}^2$. Core dimensions adjust to approximately 143 µm width by 285 µm height. Row counts increase, while row lengths contract.
Because the centralized control unit routes signals to all execution units, a tall rectangular floorplan increases vertical wire lengths significantly. Global placement and routing will experience elevated track demand along the vertical axis. Congestion will concentrate across the central horizontal waist of the core.
In the next article, we advance cpu_top through placement, CTS, routing, and timing closure, resolving routing congestion and slow-corner setup violations.