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

  • How to Use This Course
  • Protocol Metrics Reference
  • Protocols Glossary
  • Reading Path
  • Protocol Fundamentals61
  • AMBA Family (APB / AHB / AXI)61
  • Coherence Fabrics (ACE / CHI)61
  • Memory Interfaces (DDR / LPDDR / HBM)61
  • PCIe & CXL61
    • PCIe Layering & TLPs
    • Enumeration & Link Training
    • CXL Attach Modes
    • PCIe / CXL Debug
    • PCIe & CXL: Tricky Q&A
  • Embedded Peripherals (I2C / SPI / UART)61
  • High-Speed I/O (USB / Ethernet / MIPI)61
  • Protocol Verification & Compliance61
  • Protocols Interview Prep5
  • Interface Protocols Cheatsheet
Loading lesson

‹Bus Protocols
  1. Topics
  2. Bus Protocols
  3. PCIe & CXL

Interface Protocols · All levels

PCIe & CXL

PCIe transaction, data-link, and physical layers; enumeration; link training; credits; CXL attach modes; and performance tuning.

  • 5topics
  • 61lessons

Topics in this section

  1. 1PCIe Layering & TLPs15 lessons
    • PCIe Layering & TLPs: Mechanism
    • PCIe Layering & TLPs: Inputs & Outputs
    • PCIe Layering & TLPs: Reports & Metrics
    • PCIe Layering & TLPs: Debug Playbook
    • PCIe Layering & TLPs: Worked Example
    • PCIe Layering & TLPs: Pitfalls & Red Flags
    • PCIe Layering & TLPs: Interview Drills
    • PCIe Layering & TLPs: Review Checklist
    • PCIe Layering & TLPs: Theory Deep Dive
    • PCIe Layering & TLPs: Design Space
    • PCIe Layering & TLPs: Expanded Case Study
    • PCIe Layering & TLPs: Step-by-Step Walkthrough
    • PCIe Layering & TLPs: Comparison Matrix
    • PCIe Layering & TLPs: Software / Programmer View
    • PCIe Layering & TLPs: Silicon PPA Impact
  2. 2Enumeration & Link Training15 lessons
    • Enumeration & Link Training: Mechanism
    • Enumeration & Link Training: Inputs & Outputs
    • Enumeration & Link Training: Reports & Metrics
    • Enumeration & Link Training: Debug Playbook
    • Enumeration & Link Training: Worked Example
    • Enumeration & Link Training: Pitfalls & Red Flags
    • Enumeration & Link Training: Interview Drills
    • Enumeration & Link Training: Review Checklist
    • Enumeration & Link Training: Theory Deep Dive
    • Enumeration & Link Training: Design Space
    • Enumeration & Link Training: Expanded Case Study
    • Enumeration & Link Training: Step-by-Step Walkthrough
    • Enumeration & Link Training: Comparison Matrix
    • Enumeration & Link Training: Software / Programmer View
    • Enumeration & Link Training: Silicon PPA Impact
  3. 3CXL Attach Modes15 lessons
    • CXL Attach Modes: Mechanism
    • CXL Attach Modes: Inputs & Outputs
    • CXL Attach Modes: Reports & Metrics
    • CXL Attach Modes: Debug Playbook
    • CXL Attach Modes: Worked Example
    • CXL Attach Modes: Pitfalls & Red Flags
    • CXL Attach Modes: Interview Drills
    • CXL Attach Modes: Review Checklist
    • CXL Attach Modes: Theory Deep Dive
    • CXL Attach Modes: Design Space
    • CXL Attach Modes: Expanded Case Study
    • CXL Attach Modes: Step-by-Step Walkthrough
    • CXL Attach Modes: Comparison Matrix
    • CXL Attach Modes: Software / Programmer View
    • CXL Attach Modes: Silicon PPA Impact
  4. 4PCIe / CXL Debug15 lessons
    • PCIe / CXL Debug: Mechanism
    • PCIe / CXL Debug: Inputs & Outputs
    • PCIe / CXL Debug: Reports & Metrics
    • PCIe / CXL Debug: Debug Playbook
    • PCIe / CXL Debug: Worked Example
    • PCIe / CXL Debug: Pitfalls & Red Flags
    • PCIe / CXL Debug: Interview Drills
    • PCIe / CXL Debug: Review Checklist
    • PCIe / CXL Debug: Theory Deep Dive
    • PCIe / CXL Debug: Design Space
    • PCIe / CXL Debug: Expanded Case Study
    • PCIe / CXL Debug: Step-by-Step Walkthrough
    • PCIe / CXL Debug: Comparison Matrix
    • PCIe / CXL Debug: Software / Programmer View
    • PCIe / CXL Debug: Silicon PPA Impact
  5. 5PCIe & CXL: Tricky Q&A1 lesson
On this page

    Section goal

    PCIe transaction, data-link, and physical layers; enumeration; link training; credits; CXL attach modes; and performance tuning.

    How to study this section

    1. Start with the topic hub to learn the contract.

    2. Use mechanism and reports pages to connect rules to metrics.

    3. Use debug and worked-example pages for interview and on-call practice.

    4. Close with checklist and PPA impact before signing any change.

    Topics

    1. pcie-layering-and-tlp/ — PCIe Layering & TLPs

    2. enumeration-and-link-training/ — Enumeration & Link Training

    3. cxl-attach-modes/ — CXL Attach Modes

    4. pcie-cxl-debug/ — PCIe / CXL Debug

    Related topics

    • Protocols course hub

    Protocol deep dive

    PCIe is reliable packet delivery over unreliable links; debug flows PHY -> DLL -> TLP -> firmware.

    Concept diagram

    Diagram
    PCIe DEBUG TOP-DOWN
    
    L0 link healthy?  -> credits OK?  -> TLP completes?  -> driver happy?
    
    Skip a layer and you will mis-own the bug.

    Metric graph

    Diagram
    LINK DEGRADE EXAMPLE
    
    target x4 Gen4  ---- ---- ---- ----
    actual   x4 Gen4  ---- ---- ---- ----   (eval board)
    actual   x1 Gen3  -                   (product board)
    
    Package/SI often shows up as width downgrade, not hard fail.

    Metrics and artifacts to collect

    • link width/speed

    • replay count

    • completion timeout

    • AER error log

    • LTSSM history

    Mini case study

    Endpoint enumerated but DMA timed out: completion credits exhausted because a switch port was misconfigured in firmware, not because the endpoint was broken.

    Debug branches

    • If degrade at width/speed, PHY/SI before driver.

    • If replay storm, link layer before transaction layer.

    • If CXL coherency bug, separate .io vs .cache vs .mem traffic.

    Senior review question

    Ask: what is the first transaction that deviates, and which spec rule does it test?

    PreviousNext: PCIe Layering & TLPs

    Up next

    Up nextPCIe Layering & TLPs

    Sign in to save progress

    Practice this lessonReport an error

    See also

    • How to Use This Course
    • Protocol Metrics Reference
    • Protocols Glossary