Finding and Fixing an Antenna Violation on the UART
In the last two articles, we covered the physical antenna mechanism and the two standard repair methods. In this article, we run the antenna check on the routed UART design. Antenna checking occurs after detailed routing because it requires the exact physical geometry of every metal layer. Antenna verification belongs to the physical signoff stage with DRC and LVS. The design cannot proceed to tapeout until all antenna violations are resolved.
Running the Antenna Check
OpenROAD includes an antenna checker that analyzes the routed design database directly. For each net, the tool calculates the metal area connected to each gate at every etching step. It divides this area by the gate oxide area and compares the quotient against limits in the technology LEF file. This calculation follows the formulas introduced in the first article of this section.
openroad
% read_lef $PDK_ROOT/sky130A/libs.ref/sky130_fd_sc_hd/techlef/sky130_fd_sc_hd__nom.tlef
% read_lef $PDK_ROOT/sky130A/libs.ref/sky130_fd_sc_hd/lef/sky130_fd_sc_hd.lef
% read_def runs/uart_full/results/routing/uart_top.def
% check_antennas -verbose
OpenLane executes this check at the completion of routing. The flow stores the generated report in the reports directory alongside DRC and LVS results. OpenLane also runs repair_antennas after global routing, so most vulnerable nets already contain diodes. Occasional violations persist because detailed routing alters wire geometries slightly after the repair step. This behavior occurred in our UART design.
Reading the Antenna Report
The summary and verbose report for the failing net display the following data (exact formatting depends on the OpenROAD version):
Net: baud_div_out
Pin: tx_clkgate/GATE (sky130_fd_sc_hd__dlclkp_1)
Layer: met2
Partial area ratio: 1647.00 (Required: 400.00) VIOLATED
Gate area: 0.090 um^2 Metal side area: 148.2 um^2
[INFO ANT-0002] Found 1 net violations.
[INFO ANT-0001] Found 1 pin violations.
The checker found one violation on the net baud_div_out. The met2 partial area ratio is 1647.00 against the allowable limit of 400.00. This ratio exceeds the threshold by more than four times. The violation endangers the GATE pin of standard cell tx_clkgate (sky130_fd_sc_hd__dlclkp_1). This integrated clock-gating cell has small input transistors and a gate area of only 0.090 µm².
Root Cause Analysis
Examine the physical layout before applying a fix. When you inspect the net in the OpenROAD GUI or the DEF file, you find a single met2 wire segment of approximately 200 µm. This segment connects to the clock-gate input pin through a via at one end. The connection to the driver output pin occurs through met3. During the met2 plasma etch step, this entire 200 µm metal run connects only to the clock-gate input oxide. The net has a long single-layer wire connected to a small gate with driver diffusion isolated until a higher layer. This structure matches the primary risk profile.
Applying the Repair
The timing path from baud_div_out to the clock gate has more than 1 ns of setup slack across all process corners. The parasitic capacitance of an antenna diode does not degrade timing here. Therefore, inserting an antenna diode is the most reliable solution. Re-run antenna repair from global routing with an increased margin factor, then execute detailed routing:
% global_route -congestion_iterations 50
% repair_antennas sky130_fd_sc_hd__diode_2 -iterations 3 -ratio_margin 20
% detailed_placement
% check_placement
% detailed_route
% check_antennas -verbose
The repair_antennas command places diode cells adjacent to the input pins of violating nets based on global routing estimates. The argument -ratio_margin 20 tightens the ratio limits by 20%. This margin ensures that borderline nets receive diodes before detailed routing. Next, detailed_placement legalizes the new diode locations in the standard cell rows. Finally, detailed_route connects the diode pins. In OpenLane, you can achieve this behavior by setting the antenna repair margin configuration variable and restarting the flow from routing.
After the repair, the OpenROAD log shows one diode inserted on baud_div_out adjacent to tx_clkgate. The antenna checker then reports:
[INFO ANT-0002] Found 0 net violations.
[INFO ANT-0001] Found 0 pin violations.
The physical wire length on met2 remains unchanged. However, the net now connects to diffusion through the diode on met1 next to the gate. During the met2 etch step, accumulated plasma charge safely discharges into the substrate. The allowable antenna ratio also increases when a diffusion area connects to the net.
A jumper routing fix would also resolve this violation by moving the long segment to met3. If this net were on a critical timing path, a jumper would be the preferred solution. In this design, the antenna diode is simpler and imposes no timing penalty.
Verifying Layout Integrity
Any physical modification requires re-executing all prior verification steps. Adding a diode cell and re-routing requires the following verification tasks:
- Re-run DRC: The inserted diode cell and modified wire segments introduce new layout geometry.
- Re-run LVS: You must extract the post-repair netlist and compare it against the updated schematic netlist that includes the inserted diode. Comparing against the old netlist will report an extraneous diode device.
- Re-run STA: Confirm that added diode capacitance does not violate setup or hold timing constraints.
In this design, DRC, LVS, and STA all pass cleanly. Always perform these verification checks after any layout modification.
Practice Exercise
Assume that after antenna repair, another net reports a met2 partial area ratio of 394 against a maximum limit of 400. The net passes the check with narrow margin. Would you approve this net for tapeout, and what checks would you perform?
Solution
A ratio of 394 against 400 passes the automated check, but the margin is insufficient. Minor routing modifications during engineering change orders (ECOs) or tool updates can easily push this net over the limit. Subsequent runs would then fail signoff unexpectedly.
Before approving the layout, confirm whether the tool applied the specified repair margin to this net. A 20% margin should have triggered diode insertion at a ratio of 320. If the path has sufficient timing slack, manually insert an antenna diode to eliminate the risk. If the path is timing-critical, introduce a routing jumper or constrain the router to avoid long single-layer runs. A robust design should maintain clear safety margins before tapeout.
DRC, LVS, and antenna checks confirm that the layout is manufacturable, matches the schematic, and withstands fabrication etching. However, these checks do not verify whether cells receive sufficient supply voltage during circuit operation. The next section covers power grid verification and IR drop analysis.