Module 10: Capstone Projects · Project 5: Debugging a Broken Flow

Project 5, Part 1: The Broken Design and the Evidence

Every earlier project in this module provided functional RTL code. This project uses a different approach. The design completed synthesis, floorplanning, placement, CTS, and routing. The signoff flow produced three failing reports. You must examine the evidence and determine the root causes independently.

This design uses the UART core (uart_top) from Project 2. We processed the core through the OpenLane flow a second time. Several errors were injected before the run started. This article presents the raw evidence from the diagnostic reports. Read each report carefully before moving to the next section.

Report One: DRC

Magic executed design rule checking on the final GDS file. The check used the signoff script from Module 8.1:

Metal2 spacing < 0.14um (met2.2)
----------------------------------------
212.400 88.600 214.100 89.000

COUNT: 1

The report identifies one violation on one metal layer. The tool reports coordinates, but it omits net names. DRC algorithms evaluate layout geometries without netlist context. You can inspect the bounding box coordinates in the OpenROAD graphical interface or KLayout.

Visual inspection reveals three specific layout features:

  • Two metal2 geometries show a spacing of 0.11 µm. The minimum spacing rule requires 0.14 µm.
  • One geometry belongs to net rx_valid_fix_net. This geometry is a straight metal2 segment with a length of 6.2 µm and minimum layer width. It contains no jogs and no vias.
  • The adjacent geometry is an ordinary routed segment belonging to net tx_busy.

Observe the geometry characteristics of rx_valid_fix_net. These physical characteristics provide an important diagnostic clue.

Report Two: LVS

Netgen compared the extracted layout against the structural netlist generated by OpenLane. The following extract shows the primary netlist mismatches:

Number of devices: 432 **Mismatch**          |Number of devices: 431 **Mismatch**
Number of nets: 590 **Mismatch**             |Number of nets: 589 **Mismatch**
...
Instance: _eco_buf_9 (sky130_fd_sc_hd__buf_4)|(no matching instance)
...
Net: rx_valid                                |Net: rx_valid
  sky130_fd_sc_hd__dfxtp_1/Q = 1             |  sky130_fd_sc_hd__dfxtp_1/Q = 1
  sky130_fd_sc_hd__buf_4/A = 1               |  sky130_fd_sc_hd__buf_2/A = 1
  sky130_fd_sc_hd__buf_2/A = 1               |
...
Netlists do not match.

The simplified report shows only standard logic cells. The real report also includes tap cells, decap cells, and filler cells. The layout contains one extra instance named _eco_buf_9 that does not exist in the netlist. The layout also contains one extra net.

The net rx_valid contains an extra pin in the layout. This extra pin connects to the input of buffer _eco_buf_9. Every device count and net count differs by exactly one element.

Report Three: Signoff Timing

Multi-corner static timing analysis passes at the typical corner with a worst setup slack of +2.10 ns. The design also passes at the fast corner with +2.94 ns of slack. However, the path fails timing at the slow corner:

Corner: ss_100C_1v60
Startpoint: baud_tick_reg        Endpoint: tx_shift_reg[0]        Path Type: max

  Delay   Time   Fanout  Description
   0.31   0.31           clock latency at baud_tick_reg
   5.61   5.92      42   baud_tick_reg/Q (sky130_fd_sc_hd__dfxtp_1)
   0.46   6.38           wire to the farthest load
   4.63  11.01           mux2, a21oi, mux2 to tx_shift_reg[0]/D
         11.01           data arrival time

  10.00  10.34           clock period + capture clock latency (0.34)
  -0.25  10.09           clock uncertainty and setup
         10.09           data required time

                 -0.92   slack (VIOLATED)

Only the slow corner violates timing. The report indicates a fanout of 42 on the output pin of register baud_tick_reg. Register baud_tick_reg is a single standard flip-flop. Its clock-to-Q delay is 5.61 ns, which exceeds half of the clock period.

None of these three reports provides an explicit diagnosis. A DRC report identifies geometry violations. An LVS report identifies netlist discrepancies. An STA report identifies timing violations. Engineers must connect these observations to determine physical design causes.

Practice Exercise

Form diagnostic hypotheses before you read the next article. Consider the physical shape of net rx_valid_fix_net. Also examine the instance name _eco_buf_9. What do these details suggest about the origin of the DRC and LVS violations?

Solution

Neither detail confirms a single error immediately, but both point to manual intervention. Automated detailed routers rarely generate straight, minimum-width metal runs that terminate 0.11 µm from adjacent routes. The router follows routing grids, introduces jogs, switches layers, and maintains design clearances. A straight metal wire that ignores design clearances indicates manual editing or an external script.

The instance naming convention provides an additional clue. Yosys and OpenROAD generate structured names such as _1532_, hold12, and rebuffer3. An instance name containing eco and a net name ending in fix_net indicate manual engineering change order (ECO) edits. These identifiers guide the detailed diagnosis in the next article.

These reports contain three independent defects without explicit tool explanations. The next article analyzes each problem systematically. You will use the diagnostic methodologies from Modules 6, 7, and 8 to isolate each root cause.

← Project 4, Part 3: Full Physical Verification and Signoff Project 5, Part 2: Diagnosing Each Violation From the Reports Alone →