Skip to content
DenseChip
Learn
PracticeCode labInterview

DenseChip

Navigate

Menu

LearnPracticeCode labInterview

Tools

All toolsSV editorCode repoResume
DenseChip

Practice, courses, and chip-design tools in one focused workspace.

LearnPracticeCode labInterviewToolsLearning paths

© 2026 DenseChip

AboutContactPrivacyTerms
Skip to lesson

Course contents

  • Logic Synthesis Glossary
  • Logic Synthesis Cheatsheet
  • Synthesis Foundations14
  • Logic Optimisation and Mapping20
  • Constraints and Timing15
    • SDC for Synthesis
    • Delay Models and Slack
    • Timing-Driven Synthesis
      • Critical-Path Focus
      • Restructuring and Duplication
      • Sizing and Path Groups
      • Reading WNS and TNS
      • Margin and When to Stop
  • Sequential, FSM and Memory19
  • Datapath Synthesis14
  • Area, Power and Test14
  • Verification, ECO and Handoff15
  • Flows and Debugging15
  • Interview and Judgment11
Loading lesson

‹Timing-Driven Synthesis
  1. Topics
  2. Logic Synthesis
  3. Constraints and Timing
  4. Timing-Driven Synthesis
  5. Reading WNS and TNS

Part 3 · Constraints and Timing · Intermediate

Reading WNS and TNS

Worst and total negative slack: what each measures and how to read them.

On this page

    Two numbers summarize all paths

    Worst negative slack (WNS) is the smallest slack across all paths. Total negative slack (TNS) is the sum of the negative slacks only.

    Positive slacks contribute nothing to TNS. WNS is the minimum over all paths, so once nothing violates, WNS is the smallest positive slack.

    Metric

    Definition

    Answers

    WNS

    Minimum slack over all paths

    How bad is the single worst path.

    TNS

    Sum of all negative slacks

    How much failure exists across the design.

    A worked pair of runs

    Run 1 has three failing paths out of five. Run 2 fixes path A only, and the calc block recomputes both totals.

    Diagram
    run 1 path slacks in delay units: A -0.4, B -0.2, C -0.1, D +0.3, E +0.5
    WNS = minimum = -0.4
    TNS = -0.4 + -0.2 + -0.1 = -0.7
    run 2 after path A is fixed: A +0.1, B -0.2, C -0.1, D +0.3, E +0.5
    WNS = minimum = -0.2
    TNS = -0.2 + -0.1 = -0.3
    WNS gain = -0.2 - -0.4 = +0.2; TNS gain = -0.3 - -0.7 = +0.4

    How to read each trend

    WNS and TNS move for different reasons, so read them as a pair. The table below covers the four common patterns.

    WNS

    TNS

    Reading

    Improving

    Improving

    Effort works across the failing paths.

    Improving

    Flat

    One path is fixed while many still fail; broaden the effort.

    Flat

    Improving

    Shared logic helps many paths but the worst one resists; attack it directly.

    Flat

    Flat

    Effort is spent out; restructure or stop.

    Common mistakes

    Common pitfall

    Celebrating a better WNS while TNS stays flat misses the spread of failure. The design still fails on many paths, and signoff needs both totals at zero.

    Interview

    Likely probes: definitions and the split pattern.

    • WNS is the minimum slack; TNS sums only the negative slacks.

    • Positive slacks add nothing to TNS; when nothing violates, WNS is the smallest positive slack.

    • WNS up with TNS flat means one path fixed among many failures.

    Check yourself Run 1 gives WNS -0.4 and TNS -0.7. Which paths fail, and by how much in total?

    Paths A, B, and C fail. Their total shortfall is 0.7 delay units.

    Check yourself WNS improves from -0.4 to -0.2 while TNS stays near -0.7. What happened?

    The worst path improved but other failures remain or grew. Effort must broaden beyond that one path.

    Related topics

    • Up: Timing-Driven Synthesis

    • Next: Margin and When to Stop

    • Debugging QoR

    Previous

    50 / 139

    Next: Margin and When to Stop

    Up next

    Up nextMargin and When to Stop

    Sign in to save progress

    Practice this lessonReport an error

    See also

    • Critical-Path Focus
    • Restructuring and Duplication