Tap Cells and Endcaps
Standard cell libraries contain functional cells such as flip-flops and logic gates. They also include non-logic physical cells, such as tap cells and endcap cells. These cells carry no logical signals but are required to satisfy semiconductor manufacturing rules.
Purpose of Tap Cells and Endcap Cells
CMOS integrated circuits build NMOS and PMOS transistors in shared silicon substrates and n-wells. The substrate must connect to ground (VSS), and the n-well must connect to power (VDD). If substrate or well resistance is too high, parasitic bipolar structures trigger latch-up. Latch-up creates a low-impedance short circuit between VDD and ground, causing permanent chip damage. Tap cells connect the substrate and n-wells directly to the power rails at periodic intervals to prevent latch-up.
Endcap cells protect the physical boundaries of standard cell rows. They terminate the n-well diffusion layers at the ends of each row. This termination ensures boundary cells satisfy optical lithography and design rule requirements.
Figure 1 illustrates tap and endcap cell placement in a standard cell row. Tap cells carry no logic nets and do not appear in RTL descriptions. OpenLane inserts tap cells and endcaps automatically during floorplanning.
Tap Cell Count Calculation
Design rules define the maximum allowable distance between adjacent tap cells.
Assume a maximum tap spacing rule of $15\ \mu\text{m}$.
For a $40\ \mu\text{m}$ row in the counter8 core, calculate the required number of tap cells:
$$N_{\text{taps}} = \left\lceil \frac{\text{row length}}{\text{max spacing}} \right\rceil + 1 = \left\lceil \frac{40}{15} \right\rceil + 1 = 3 + 1 = 4$$
The row requires four tap cells. Four evenly spaced tap cells create three intervals of approximately $13.3\ \mu\text{m}$. This spacing satisfies the $15\ \mu\text{m}$ rule.
The table demonstrates tap counts for different row dimensions:
| Row length | Max spacing | Taps needed |
|---|---|---|
| 40 µm (this example) | 15 µm | 4 |
| 100 µm | 15 µm | 8 |
| 100 µm | 25 µm | 5 |
Automated Insertion in OpenLane
OpenLane inserts tap and endcap cells during run_floorplan:
% run_floorplan
[INFO]: Generating floorplan...
[INFO]: Inserting endcap cells at row boundaries...
[INFO]: Inserting tap cells (sky130_fd_sc_hd__tapvpwrvgnd_1) per density rule...
[INFO]: Row 0 (y=5.00): 4 tap cells inserted
[INFO]: Row 1 (y=7.72): 4 tap cells inserted
...
OpenLane utilizes cell type sky130_fd_sc_hd__tapvpwrvgnd_1 in SKY130.
These physical cells occupy row sites before standard cell placement.
Practice Exercise
A standard cell row measures $90\ \mu\text{m}$ in length. The process design manual specifies a maximum tap spacing of $20\ \mu\text{m}$. Calculate the minimum number of tap cells required for this row.
Solution
$$N = \left\lceil \frac{90}{20} \right\rceil + 1 = 5 + 1 = 6\ \text{tap cells}$$
Six tap cells placed across the $90\ \mu\text{m}$ row create five equal intervals of $18\ \mu\text{m}$. Each interval satisfies the $20\ \mu\text{m}$ maximum spacing requirement.
The final article executes the complete floorplan flow and inspects the resulting DEF file in layout viewers.