Inspecting Special Nets in KLayout
Physical inspection of layout databases validates router execution. KLayout provides independent layout visualization to verify physical shapes. This laboratory exercise loads the routed UART DEF file into KLayout and inspects power and clock networks.
Loading the Routed DEF in KLayout
Launch KLayout with the SkyWater 130nm layer properties file (sky130A.lyp):
klayout -l sky130A.lyp \
designs/uart/runs/routing_run_01/results/routing/uart.def
The layer properties file applies standard colors and fill patterns to each metal layer. Without this file, the viewer cannot distinguish between metal layers.
Inspecting the Power Distribution Network
In the KLayout layer palette, hide all layers except met4 and met5. The visible geometries display the physical power distribution grid:
- A continuous ring on
met5surrounds the chip perimeter. - Evenly spaced vertical stripes on
met4span the interior core area.
Next, make met2 visible. The display reveals dense, irregular interconnect geometries connecting logic gates. This visual contrast demonstrates the structural difference between planned power grids and automated signal routes.
Tracing the Clock Distribution Network
Select the net tracer tool in KLayout and highlight the clk net. The viewer isolates the physical clock tree across all metal layers.
Observe the branching hierarchy:
- The clock root connects from the input pin to the primary clock driver.
- The trunk splits into symmetrical branches on
met3andmet2. - Leaf buffers connect to flip-flop clock pins in standard cell rows.
Compare the wirelengths of sibling branches extending from a common fork. TritonCTS balances branch lengths to minimize arrival time skew across flip-flops.
Visual Sanity Checks
Visual inspection complements numerical summary reports. A routing report verifies that zero DRC violations exist. However, visual layout checks detect structural anomalies such as:
- Discontinuous power stripes caused by incorrect floorplan boundaries.
- Severe routing congestion around dense macro pins.
- Asymmetrical clock branches caused by routing blockages.
Catching these physical anomalies early prevents design iterations during timing and power signoff.
Practice Exercise
An engineer traces the clock network in KLayout and observes that one branch is significantly longer than its sibling. Which analysis steps verify whether this asymmetry causes timing violations?
Solution
Follow these analysis steps:
- Review the post-CTS timing report from Module 5. Check if skew between the destination flip-flops satisfies timing limits. CTS intentionally builds asymmetric branches when load capacitances differ.
- If post-CTS estimates pass, execute post-routing static timing analysis in Module 7. Extract actual wire parasitics (SPEF) to verify that physical routing did not introduce unacceptable skew.
Special nets exhibit distinct geometric structures. Section 6.5 demonstrates how to diagnose routing failures and resolve localized congestion.