Module 3: Floorplanning · 3.3 I/O Pin Placement

Pin Order and Side Assignment

Section 3.2 established the power distribution network. Section 3.3 focuses on placing signal I/O pins along die boundaries.

The counter8 design contains eleven I/O pins: clk, rst_n, en, and the 8-bit count bus. By default, OpenLane places these pins uniformly around the die perimeter in port declaration order. This automated equidistant mode functions adequately for small designs. However, random pin distribution on complex designs increases wire length and induces routing congestion.

Routability and Pin Placement Strategies

Every boundary pin connects to internal logic through the core-to-die margin. Placing a pin far from its destination module forces interconnects across the core. These long wires consume routing tracks and increase capacitive loading. Physical design supports two primary pin placement strategies:

  • Automated equidistant placement: OpenLane spaces pins evenly around the die boundary. This mode requires zero manual setup and suits simple test blocks.
  • Explicit pin assignment: Designers specify die sides and sequence orders for all pins in a configuration file. This approach aligns pins with internal logic blocks to minimize wire lengths.

Fixed external packaging often dictates pin locations. When package pinouts or PCB traces are predetermined, the floorplan must match the exact pin order.

Pin Assignment for counter8

The counter8 interface includes eleven ports:

Port Direction Width Role
clk input 1 Clock, feeds every flip-flop
rst_n input 1 Active-low reset, feeds every flip-flop
en input 1 Count enable, feeds the increment logic
count[7:0] output 8 Counter value, driven by the flip-flop bank

Assign related signals to the same boundary edge. Separating functional groups prevents unnecessary wire crossings inside the core.

counter8 with clk, rst_n and en on the west edge and count[7:0] on the east edge
Figure 1: Control on the west, the count bus on the east

In Figure 1, the control inputs (clk, rst_n, en) reside together on the west edge. These signals drive common flip-flop control pins. The 8-bit count output bus occupies the east edge in consecutive bit order. This ordering keeps the bus wires parallel and compact. North and south edges remain unassigned. Designs do not require pin allocation on all four edges.

Do not split contiguous buses across opposite edges to balance pin density. Splitting a bus forces routing lines to diverge and reconverge, increasing congestion. Always maintain contiguous bus grouping on a single die edge.

Practice Exercise

A design contains clk, rst_n, spi_mosi, spi_miso, spi_sclk, spi_cs_n, and a 4-bit status[3:0] bus. Propose a side assignment strategy.

Solution

Place global control signals clk and rst_n on the west edge. Assign the four SPI signals (spi_mosi, spi_miso, spi_sclk, spi_cs_n) together on the south edge near the SPI peripheral logic. Place the status[3:0] bus contiguously on the east edge. Group signals by functional subsystem rather than by signal direction.

The next article examines pad-limited versus core-limited floorplans.

← Configuring a Power Grid in OpenLane Pad-Limited Versus Core-Limited Designs →