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
  • Part 17: Capstones5
  • Part 18: Interview Preparation6
    • The Reasoning Framework
    • Question Bank: Foundation
    • Question Bank: Senior
    • Question Bank: Principal
    • Whiteboard Drills
    • System Design Questions
Loading lesson

‹Part 18: Interview Preparation
  1. Topics
  2. First Principles of Hardware Protocols
  3. Part 18: Interview Preparation
  4. System Design Questions

Part 18 · Interview Preparation · Principal (P)

System Design Questions

System design walk-throughs for protocol interviews: "design the interconnect for X". A method (clarify, size, structure, choose per question, verify) and three worked walk-throughs with illustrative numbers: a camera SoC, a NIC's host interface and a multi-core cluster.

On this page

    Note

    Level: Principal (P) · Answers: Can you explain it under pressure?

    Before this: Design a Protocol, The Reasoning Framework

    "Design the interconnect for a camera SoC." Forty-five minutes, a whiteboard, no other information. The interviewer wants to see how you turn a vague request into requirements, numbers, a structure and justified choices, and how you respond when they change a requirement halfway through.

    How do you walk through an open interconnect design question end to end?

    The method

    Step

    Do

    Time

    1. Clarify

    Agents, traffic types, bandwidth and latency targets, power, area, safety, security, who builds what

    5 min

    2. Size

    Bandwidth per flow, total, outstanding by Little's law, buffer sizes from round trips

    10 min

    3. Structure

    Topology: where traffic meets, what is shared, where crossings and bridges are

    10 min

    4. Choose per question

    Handshake, flow control, ordering, arbitration and QoS, deadlock, errors, power, coherence, security

    10 min

    5. Verify and observe

    Assertions, models, coverage, formal targets, silicon debug

    5 min

    6. Adapt

    Respond to a changed requirement by naming which choices it affects

    5 min

    Walk-through 1: a camera SoC (illustrative numbers)

    Clarified: an image sensor delivering 4K video at 60 frames per second into DRAM, an image processor reading and writing frames, a video encoder, a CPU cluster and a display. Real-time deadlines for sensor and display.

    Diagram
    Sensor write:   3840 x 2160 pixels x 2 bytes x 60 /s   = about 1.0 GB/s
    Processor:      reads 1.0 + writes 1.0                  = about 2.0 GB/s
    Encoder:        reads about 1.0 GB/s, writes little
    Display:        3840 x 2160 x 4 bytes x 60 /s           = about 2.0 GB/s
    Total to DRAM:  about 6 GB/s plus CPU traffic
    • Structure: AXI4 to a memory controller; streaming engines on AXI-Stream between processing stages to avoid DRAM round trips where possible.

    • QoS: sensor and display are real-time (buffers would underflow or overflow); give them high priority with bandwidth regulation so they cannot starve the CPU; the encoder is best effort.

    • Buffering: sensor and display FIFOs sized to cover the worst-case DRAM latency under load at their rates.

    • Ordering: per-ID ordering is enough; frames are independent.

    • Power: idle engines quiesced and clock-gated with request/accept/deny handshakes.

    • Verify: bandwidth and latency model before RTL; assertions per interface; underflow monitors on display.

    Walk-through 2: a NIC's host interface

    Clarified: a 100 Gb/s network card on PCI Express, many queues, low latency for small packets.

    Diagram
    Line rate:            100 Gb/s = 12.5 GB/s each way
    Minimum packets:      84 bytes on the wire -> about 149 million packets/s
    Descriptor reads:     one per packet (or batched)
    Outstanding DMA reads: 12.5 GB/s x 1 µs host latency = 12.5 KB in flight
                          -> about 49 reads of 256 bytes outstanding
    • Structure: descriptor rings in host memory with doorbells (lesson 5.16); DMA engines; interrupt moderation.

    • Transactions: posted writes for receive data and completions (they are fast and ordered behind data); reads for transmit data and descriptors, with enough tags.

    • Ordering: an interrupt (MSI) must follow its data: both are posted writes in one ordered stream (fact P26).

    • Isolation: SR-IOV virtual functions per virtual machine, IOMMU translation, per-queue rate limits.

    • Reliability: PCIe replay handles links; end-to-end checksums for packets.

    • Verify: per-queue scoreboards, ordering checks for interrupts after data, error injection.

    Walk-through 3: a multi-core cluster

    Clarified: 16 cores with private caches, a shared last-level cache, coherent accelerators, DRAM.

    • Coherence: invalidation-based, MOESI-like states; a directory or snoop filter at the shared cache's home slices, so snoops go only to holders.

    • Interconnect: a message-based protocol (CHI-like) on a mesh; separate request, response, snoop and data channels with link credits.

    • Deadlock: message classes on separate virtual channels; homes retry with protocol credits instead of worst-case buffers.

    • Sizing: outstanding misses per core by Little's law against DRAM and remote latency; snoop filter sized for the total private cache capacity with margin.

    • Accelerators: fully coherent if they reuse data, I/O coherent otherwise.

    • Verify: formal on the coherence tables and race cases; litmus tests for the memory model; directed races between writebacks and forwards.

    When the interviewer changes a requirement

    Change

    Name what it affects

    "Now the display must never underflow, even at maximum CPU load"

    QoS guarantees, regulator settings, FIFO depth, DRAM scheduling priority

    "Latency must halve"

    Outstanding limits (Little's law changes), buffering, hop count, whether to cut through

    "It must meet ASIL B"

    Interface protection, ECC, timeouts, fault reporting and coverage metrics (lesson 10.17)

    "Two tenants will share it"

    Isolation: IOMMU, per-tenant queues and regulators, partitioning (lesson 14.6)

    Check yourself Why size before choosing mechanisms?

    The numbers decide the mechanisms: outstanding counts set tags and buffers, round trips decide ready or credits, error rates decide replay or FEC.

    Check yourself In the NIC walk-through, why must the MSI be a posted write behind the data?

    So it cannot overtake the DMA writes it announces; posted writes from one function stay in order, so software sees the data when the interrupt arrives.

    Why this matters

    Principal lens. System design interviews reward structure and adaptability more than any particular answer. Clarify before designing, put numbers on the board early, choose per question with a reason, and when a requirement changes, say exactly which choices move and which do not. That is how architecture work is done.

    Key takeaways

    • Clarify, size, structure, choose per question, verify, adapt.

    • Numbers first: bandwidth per flow, Little's law, round trips, error rates.

    • When requirements change, name precisely which choices they affect.

    Keep going

    Next: Course hub. You have reached the end of the course. Return to the hub to review any part or follow a reading path.

    Related topics

    • Part 18 overview: Interview Preparation

    Previous

    234 / 234

    Up next

    You reached the end of this course — nicely done.

    Sign in to save progress

    Practice this lessonReport an error

    See also

    • The Reasoning Framework
    • Question Bank: Foundation
    • Question Bank: Senior