16_GLS_and_SDF.md

Gate-Level Simulation and SDF — Where Logic Meets Physics


Purpose of This Chapter

The purpose of this chapter is to explain why Gate-Level Simulation (GLS) exists and how it connects:

In short:

GLS is where “it should work” becomes “it actually works.”

If you skip GLS, you are trusting assumptions instead of silicon reality.


What GLS Really Is

GLS simulates:

Unlike RTL simulation:

This is intentional.


Why RTL Simulation Is Not Enough

RTL simulation assumes:

Silicon does none of these.

GLS exists to expose:


Types of GLS

1. Functional GLS (No SDF)

Used to answer:

“Does the synthesized structure behave logically?”


2. Timing GLS (With SDF)

Used to answer:

“Does this chip work at speed?”


Required Files for GLS

A correct GLS setup always requires:

Missing any of these guarantees failure.


Why Everything Becomes X

At gate level:

This is not a bug.

X is telling you the truth.


The Role of Reset Signals

A correct design must:

If GLS shows X forever:

The design is wrong, not the simulator.


Common GLS Failure Patterns

Pattern 1: All-X Waveforms

Cause

Meaning


Pattern 2: Unknown Module Errors

Cause

Meaning


Pattern 3: RTL Works, GLS Fails

Cause

Meaning


Why SDF Changes Everything

SDF introduces:

This transforms simulation from logical correctness to timing correctness.


Setup vs Hold in Simulation

With SDF:

These appear as:

Exactly like real silicon.


Why SDF GLS Is Rarely Used (and Why It Matters)

Many flows skip SDF GLS because:

That is precisely why it matters.


Relationship Between STA and GLS

They should agree.

If they do not:

Trust GLS. Fix the design.


Practical Completion Criteria

GLS is considered successful only if:

Anything less is unfinished.


Chapter Conclusion


Next Chapter

Next, we return to the physical world.

👉 17_Magic_KLayout_Reality_Check.md — Reading the Truth from GDS