17_Magic_KLayout_Reality_Check.md

Reading Physical Truth from GDS


Purpose of This Chapter

This chapter explains how to read reality from layout data.

Not theory.
Not intent.
Not RTL.

GDS is what will be fabricated. Everything else is a guess.

Magic and KLayout are not viewers. They are truth inspectors.


Why GDS Is the Final Authority

By the time GDS is generated:

If something is wrong in GDS:

The chip is wrong.

No simulator can fix that.


Roles of the Tools

KLayout — Visual Truth

KLayout is best for:

KLayout answers:

“What does the chip look like?”


Magic — Physical Truth

Magic is best for:

Magic answers:

“Is this layout physically valid?”


Why Both Are Required

KLayout shows you what is there.
Magic explains what it means.

Using only one guarantees blind spots.


Understanding Abstract vs Real Geometry

OpenLane-generated GDS is abstracted:

This is expected.

To see real devices:


Standard Cell Reality Check

Inspecting standard cells reveals:

This explains:


Power Distribution Inspection

GDS inspection must confirm:

Power bugs do not show in RTL. They destroy silicon silently.


Clock Routing Reality

From GDS you can verify:

This explains why STA reports what it reports.


DRC Is Not Optional

A clean flow must satisfy:

If DRC is ignored:

Yield becomes zero.


LVS as Reality Confirmation

LVS answers exactly one question:

“Is this layout the same circuit as the netlist?”

If LVS fails:


Common Layout Misconceptions

Misconception 1: “It passed simulation, so it’s fine”

False.

Simulation does not see:


Misconception 2: “GDS looks fine visually”

False.

Visual symmetry does not imply:


When Manual Edits Are Justified

Manual layout edits should be:

If you edit GDS without understanding PDK rules:

You are guessing at silicon physics.


Practical Inspection Checklist

Before trusting a GDS:

Anything missing invalidates the chip.


Chapter Conclusion


Next Chapter

Now that layout truth is understood, we address timing truth.

👉 18_STA_Reality_and_Timing_Closure.md — When Slack Becomes Law