Module 9: GDSII Generation and Tapeout · 9.1 GDSII Streaming

Inspecting Your First GDS File

In the previous article, we confirmed that uart_top.gds exists and references valid standard cell structures. In this article, we open the file in KLayout to examine the physical mask geometry produced by the complete physical design flow.

Opening the GDSII Database

Launch KLayout with the generated GDSII file:

klayout runs/uart_full/results/final/gds/uart_top.gds &

Understand the three primary interface areas:

  1. Layers Panel: Lists every layer and datatype pair present in the GDSII file. Without a layer properties file loaded, KLayout displays raw numerical identifiers (such as 68/20 for met1) with default colors. Layer styling and color palettes are viewer settings rather than data stored in the GDSII file.
  2. Cell Hierarchy Browser: Displays uart_top as the top-level structure. Expanding the tree reveals all instantiated standard cells and their instance counts, as shown in Figure 1.
  3. Layout Canvas: Displays physical geometries. At full zoom-out, the layout appears as a dense grid of overlapping layers.

KLayout’s cell list for uart_top
Figure 1: The cell list for uart_top, with the logic cells from synthesis and the physical-only cells added by the flow

Inspecting Physical Features

Zoom into a cluster of adjacent standard cells. The abstract layout pattern resolves into identifiable physical structures: diffusion active areas, polysilicon transistor gates crossing diffusion, contact cuts, and local interconnect lines (li1 and met1). Every polygon displayed in this view maps directly to an optical mask feature during wafer lithography in Section 9.4.

Use the measurement ruler (press k or select the ruler tool, then click two coordinate points). Measure the height of a standard cell row: 2.72 µm in the SkyWater 130 nm HD library. Measure the pitch of met1 horizontal routing tracks. This step provides direct physical validation of the floorplan parameters established in Module 3.

Verilog and DEF netlists specify logical and topological connectivity. The GDSII stream specifies physical coordinates and layer assignments. Complete design validation requires tools that link both representations.

If a freshly loaded GDSII file displays identical gray or monochrome fills, the viewer lacks a SkyWater 130 nm layer properties file (.lyp). In Section 9.2, we load layer properties to display standard foundry color assignments.

Practice Exercise

In the cell hierarchy list shown in Figure 1, instance counts for decap_4, fill_1, and tapvpwrvgnd_1 exceed counts for individual logic gates. Explain why these cells are numerous, and determine whether they consume a large share of the GDSII polygon storage.

Solution

These instances are physical-only cells inserted by automated flow stages rather than logic synthesis. Substrate tap cells (tapvpwrvgnd_1) were inserted during floorplanning (Module 3) to prevent CMOS latch-up. Decap cells and row fillers were inserted during fill insertion (Module 8.5) to complete n-wells and supply rails in unoccupied row sites. Because these cells recur across all standard cell rows, their instance counts are high.

However, they do not consume significant GDSII file space. Each physical-only cell is simple, containing basic well, diffusion, and power rail shapes. GDSII hierarchy stores each unique cell definition once and represents the numerous placements using compact SREF records. Instance counts do not correlate directly with total polygon storage or file size.

In the next section, we configure KLayout with the SkyWater 130 nm layer palette and perform independent physical verification.

← Streaming Out GDS From Magic Layer-by-Layer Visualization in KLayout →