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
  • Reading Paths
  • Concept Map
  • How to Read the Diagrams
  • Part 0: What Is a Protocol?10
  • Part 1: Timing and Clocking11
  • Part 2: Encoding and Framing12
  • Part 3: Handshakes13
  • Part 4: Flow Control17
  • Part 5: Transactions19
  • Part 6: Concurrency and Performance17
  • Part 7: Ordering13
  • Part 8: Sharing and Arbitration12
  • Part 9: Deadlock and Liveness13
  • Part 10: Reliability and Recovery20
  • Part 11: Bring-Up and Link Management10
  • Part 12: Power8
  • Part 13: Shared State and Coherence9
  • Part 14: Security and Isolation7
  • Part 15: Specifying and Verifying11
  • Part 16: Protocols Dissected17
    • How to Dissect a Protocol
    • UART
    • SPI
    • I2C
    • APB
    • AHB
    • AXI4
    • AXI-Stream
    • PCI Express
    • DDR
    • CHI
    • Ethernet
    • USB
    • UCIe
    • CXL
    • Protocols Compared: Protocols Dissected
    • Drills: Protocols Dissected
  • Part 17: Capstones5
  • Part 18: Interview Preparation6
Loading lesson

‹Part 16: Protocols Dissected
  1. Topics
  2. First Principles of Hardware Protocols
  3. Part 16: Protocols Dissected
  4. Drills: Protocols Dissected

Part 16 · Protocols Dissected · All levels

Drills: Protocols Dissected

Interview questions, a whiteboard exercise and a ten-question checkpoint for Part 16.

On this page

    Answer each question out loud before opening it. If you miss more than three in the checkpoint, revisit the protocol pages linked at the end.

    Interview questions

    Check yourself How would you get up to speed on an unfamiliar protocol?

    Answer the five constraint questions, then each of the fifteen questions: mechanism, alternative rejected, reason, what is left to the system.

    Check yourself What does SPI not do that I2C does?

    Addressing, acknowledgement, arbitration and clock stretching.

    Check yourself Why did AHB-Lite drop SPLIT and RETRY?

    With one master per layer there is nobody to hand the bus to; multi-layer interconnects handle several masters.

    Check yourself Why does AXI have separate read and write channels?

    So reads and writes never block each other and each can have many outstanding transactions; there is no read/write ordering.

    Check yourself Why does PCIe have both credits and ACK/NAK?

    Credits prevent overflow (transaction layer); ACK/NAK and replay recover corruption (data link layer).

    Check yourself Why does DDR have no ready signal?

    Fixed latencies keep the DRAM simple and the bus fast; the controller schedules everything.

    Check yourself Ethernet drops frames: where does reliability come from?

    End to end, from TCP or the application; PFC makes links lossless when needed.

    Check yourself What are CXL's three protocols?

    CXL.io (PCIe), CXL.cache (device caches host memory), CXL.mem (host uses device memory).

    Whiteboard exercise

    Task. A new accelerator must attach to a processor. Option A: on the same die, as an AXI4 manager and subordinate. Option B: on a separate card, over PCI Express. Dissect both choices for this use: timing, flow control, concurrency, ordering, errors, bring-up, coherence and security, and recommend one for an accelerator that shares large data structures with the CPU.

    Check yourself Open a model answer

    AXI4 on die: common clock; READY back-pressure; many outstanding by ID; per-ID ordering, no read/write ordering; errors reported, never retried (fine on chip); no bring-up beyond reset; coherence only with ACE or ACE-Lite (I/O coherence lets it read CPU-cached data without maintenance); AxPROT for security, with an SMMU in its path. PCIe card: embedded clock; credits; many outstanding by tag; producer-consumer ordering table; LCRC with replay; LTSSM training and enumeration; DMA snooped by the host but no device caching (unless CXL); IOMMU via requester ID, IDE if the link is exposed. For shared large data structures, latency and coherence dominate: on die with ACE-Lite (or full coherence) avoids copies and cache maintenance and has far lower latency. If it must be a card, CXL (CXL.cache for coherent access, CXL.mem if the card has memory) answers the coherence question that plain PCIe leaves to software.

    Checkpoint: ten questions

    Check yourself 1. What re-aligns a UART receiver every character?

    The start bit's falling edge.

    Check yourself 2. How is an SPI slave selected?

    By its own chip-select line.

    Check yourself 3. What lets I2C arbitrate without a controller?

    Open-drain, wired-AND lines: a 0 wins, and a master reading 0 after sending 1 stops.

    Check yourself 4. Minimum APB transfer length?

    Two cycles: setup and access.

    Check yourself 5. What ordering does AXI give two reads with different IDs?

    None: they may complete in any order.

    Check yourself 6. What does AXI-Stream use instead of an address?

    TID for stream identity, TDEST for routing.

    Check yourself 7. Which PCIe rule prevents request/response deadlock?

    Posted writes must be able to pass non-posted requests and completions.

    Check yourself 8. What orders requests to one address in CHI?

    The home node, the point of coherence.

    Check yourself 9. Why is one bit enough for USB 2.0's sequence number?

    Each endpoint has only one transaction outstanding.

    Check yourself 10. Which layer does UCIe replace compared with PCIe?

    The physical layer: short-reach, forwarded clock, many lanes.

    Revisit

    • How to Dissect a Protocol

    • UART

    • SPI

    • I2C

    • APB

    • AHB

    • AXI4

    • AXI-Stream

    • PCI Express

    • DDR

    • CHI

    • Ethernet

    • USB

    • UCIe

    • CXL

    Keep going

    Next: Part 17: Capstones. Can you apply all of it?

    Previous

    223 / 234

    Next: Part 17: Capstones

    Up next

    Up nextPart 17: Capstones

    Sign in to save progress

    Practice this lessonReport an error

    See also

    • How to Dissect a Protocol
    • UART
    • SPI