Layer-by-Layer Visualization in KLayout
In the previous article, we observed uart_top with all layers visible concurrently, which appears as complex geometric texture. Layout review requires selective layer isolation. Engineers isolate specific physical layers to inspect layout structures. In this article, we configure layer properties in KLayout and examine physical mask layers systematically.
Loading the SkyWater 130 nm Palette
Load the SkyWater 130 nm technology configuration (.lyt) and layer properties file (.lyp) supplied with the PDK. These files map numerical layer and datatype pairs to standard names and colors:
klayout -nn $PDK_ROOT/sky130A/libs.tech/klayout/tech/sky130A.lyt \
-l $PDK_ROOT/sky130A/libs.tech/klayout/tech/sky130A.lyp \
runs/uart_full/results/final/gds/uart_top.gds &
From substrate to top metal, the primary physical layers include the elements listed in Table 1:
| Layer | Visual Appearance | Physical Function |
|---|---|---|
nwell |
Wide horizontal rectangles along the upper half of standard cell rows | N-type well housing PMOS transistors |
diff (and tap) |
Rectangular shapes inside and below wells | Transistor source and drain regions, plus substrate and well taps |
poly |
Narrow vertical strips crossing diffusion | Transistor gate electrodes and short local interconnects |
licon1 |
Small square contact cuts | Vertical contacts connecting diffusion and poly to local interconnect (li1) |
li1 |
Thin routing shapes inside standard cells | SkyWater 130 nm local interconnect layer beneath met1 |
mcon |
Small square via cuts | Interconnect vias connecting li1 to met1 |
met1 |
Horizontal rails along cell rows and short routes | First metal layer: cell power rails and local signal routing |
via, met2–met5 |
Long routing wires with alternating horizontal and vertical tracks | Inter-cell signal routing and top-level power grid straps |
Selective Layer Inspection
In the layers panel, disable upper metal layers progressively starting from met5. Hiding met5 through met2 removes inter-block signal routing and power straps. Hiding met1 and mcon removes standard cell power rails. Hiding li1 and licon1 isolates nwell, diff, and poly. Figure 1 illustrates these base layers for a CMOS inverter.
With only nwell, diff, and poly visible, the display shows physical transistors directly. Each location where a polysilicon line crosses a diffusion rectangle forms a transistor gate. You can inspect physical channel widths and lengths directly rather than inferring them from schematic netlists.
Experienced physical design engineers inspect base layers visually before executing automated verification tools. Developing visual familiarity with physical geometries helps diagnose DRC and LVS failures quickly.
Distinguish clearly between li1 and met1. SkyWater 130 nm includes local interconnect layer li1 beneath met1 for intra-cell routing. In some display palettes, both layers use similar colors. Always verify the layer name in the panel.
Practice Exercise
With only diff and poly visible, you inspect a small row segment. You observe 6 vertical polysilicon strips. Each strip crosses two distinct diffusion regions: NMOS diffusion in the lower row half and PMOS diffusion in the upper row half. How many transistors exist in this region?
Solution
A transistor gate forms at each intersection where polysilicon crosses active diffusion. Because each polysilicon strip crosses both NMOS and PMOS diffusion regions, each strip forms two distinct transistors sharing a common gate input. Therefore, 6 strips create 12 physical transistors (6 CMOS complementary pairs). Transistor count equals total intersections of polysilicon over diffusion rather than the raw number of polysilicon strips.
In the next article, we trace individual electrical nets across the layout and cross-probe between physical geometry and netlist connectivity.