Skip to content
VLSI Mentor
Learnings · AMBA CHI · Labs

AMBA CHI RTL Design & UVM Verification Labs.

40 Hands-on Protocol Design & Verification Challenges

Forty labs that take AMBA CHI from node roles and link-layer credits to a verified coherent subsystem — read and write flows, cache-line states, Home Node snooping, snoop filters and directories, ordering, CompAck, RetryAck and protocol credits, then a reusable UVM agent, reference model, assertions, coverage and expert debugging. Every lab builds a simplified educational model of a stated CHI subset, not a compliant CHI implementation.

40Labs
6Modules
40Published
Foundation → ExpertLevel
All 40 labs are published. One purchase covers the entire collection.
CHI

Six modules — link layer to a coherent subsystem

Module 1Foundation · 7 labs

CHI Architecture and Link Fundamentals

Node roles, the four channels, flit structures, link activation, link-layer credits and a channel-level UVM monitor.

CHI-01 · CHI-02 · CHI-03 · CHI-04 · CHI-05 · CHI-06 · CHI-07

Module 2Intermediate · 7 labs

CHI Request and Response Transactions

ReadShared, ReadUnique, ReadOnce, WriteUnique and WriteBack flows, TxnID matching and a read/write scoreboard.

CHI-08 · CHI-09 · CHI-10 · CHI-11 · CHI-12 · CHI-13 · CHI-14

Module 3Intermediate · 8 labs

CHI Cache Coherency and Snoop Operations

Cache-line states, Home Node snooping, snoop responses and data, snoop filters, directories and coherency checking.

CHI-15 · CHI-16 · CHI-17 · CHI-18 · CHI-19 · CHI-20 · CHI-21 · CHI-22

Module 4Advanced · 7 labs

CHI Ordering, Concurrency, and Advanced Transactions

Outstanding-transaction tracking, ordering, CompAck, RetryAck and PCrdGrant, data buffers and atomic transactions.

CHI-23 · CHI-24 · CHI-25 · CHI-26 · CHI-27 · CHI-28 · CHI-29

Module 5Advanced · 7 labs

CHI UVM Verification and Protocol Checking

A reusable CHI agent, constrained-random sequences, a reference model, assertions, coverage and negative testing.

CHI-30 · CHI-31 · CHI-32 · CHI-33 · CHI-34 · CHI-35 · CHI-36

Module 6Expert · 4 labs

CHI Expert Debugging and Subsystem Integration

Deadlock and credit starvation, concurrent snoop traffic, failure diagnosis and a simplified coherent subsystem.

CHI-37 · CHI-38 · CHI-39 · CHI-40

Lab numbers are stable IDs (Lab 21 is CHI-21). Each lab page lists its deliverable, prerequisites and specification dependency.

Specification scope

Based on the AMBA CHI Architecture Specification (Arm IHI 0050). All 40 labs, CHI-01 to CHI-40, are written against ARM IHI 0050E.a, the issue their protocol details were checked against. Moving to a later issue would mean re-checking each lab against that issue's tables. Every lab inherits these assumptions:

  • Core subset: RN-F, RN-D and RN-I requesters, HN-F and HN-I homes, SN-F and SN-I subordinates (older documents say Slave Node); the REQ, RSP, SNP and DAT channels; link activation and link-layer credits; and the read, write, snoop, CompAck, RetryAck and PCrdGrant flows the labs name.
  • Field widths, opcode encodings, legal state transitions and timing are taken from the chosen issue's tables when a lab is authored and carried as parameters — nothing is hard-coded from memory.
  • Optional features are used only where a lab says so: atomic transactions, an optional feature absent from the first issue of the specification, appear only in CHI-28.
  • Out of scope: DVM, cache stashing, Direct Memory/Cache Transfer, memory tagging, persistence and cache-maintenance flows, multiple and replicated interfaces, and the QoS and data-check / poison features.
  • Snoop filters and directories are implementation-defined — CHI specifies the snoop transactions, not the filter structure — so those labs design one stated organisation.
  • Every lab builds a simplified educational model of this subset. None is a compliant CHI implementation or a substitute for a commercial CHI VIP.

All 40 labs

Search and filter the full curriculum. Titles, previews and metadata are free to browse — full lab content requires the labs package.

40 of 40
Module
Difficulty
Status

Module 2CHI Request and Response Transactions

ReadShared, ReadUnique, ReadOnce, WriteUnique and WriteBack flows, TxnID matching and a read/write scoreboard.

7 labs · 7 published
  1. Lab 8
    CHI Request and Response Transactions

    Implement a CHI ReadShared Transaction Controller

    Implement the RN-F side of ReadShared: issue the request with the right attributes, assemble CompData beats in any DataID order, install the line in the state the completion permits, and send CompAck to the data's HomeNID with its DBID.

    Intermediate·120 min·Testbench·4 challenges
    IntermediatePublishedPaid
  2. Lab 9
    CHI Request and Response Transactions

    Design a CHI ReadUnique Transaction Flow

    Design the ReadUnique flow end to end on three Request Nodes and a directory Home Node: snoop every other holder, wait for every response before granting UC, hold the line until CompAck — checked against the single-writer rule at every edge.

    Intermediate·120 min·Testbench·4 challenges
    IntermediatePublishedPaid
  3. Lab 10
    CHI Request and Response Transactions

    Implement CHI ReadOnce Transaction Handling

    Build an RN-I that reads with ReadOnce, with and without CompAck, and extend the Home Node to serve it — SnpOnce to a Unique holder, no directory entry for the reader — then show, with memory changing between reads, that the requester keeps nothing.

    Intermediate·90 min·Testbench·4 challenges
    IntermediatePublishedPaid
  4. Lab 11
    CHI Request and Response Transactions

    Design CHI WriteUnique Transaction Processing

    Process WriteUniquePtl and WriteUniqueFull: the Home Node returns a DBID, the requester sends the write data with byte enables, and other cached copies are made coherent before the write completes.

    Intermediate·120 min·Testbench·4 challenges
    IntermediatePublishedPaid
  5. Lab 12
    CHI Request and Response Transactions

    Implement CHI WriteBack Transaction Handling

    Implement the copy-back of a dirty line with WriteBackFull and WriteBackPtl: the requester waits for CompDBIDResp, then sends copy-back data carrying the line's state, and updates its own state.

    Intermediate·105 min·Testbench·4 challenges
    IntermediatePublishedPaid
  6. Lab 13
    CHI Request and Response Transactions

    Design CHI Transaction ID Allocation and Response Matching

    Allocate TxnIDs so no two outstanding requests from one source share one, match every response and data flit back to its request, and track the DBID a write receives.

    Intermediate·105 min·Testbench·4 challenges
    IntermediatePublishedPaid
  7. Lab 14
    CHI Request and Response Transactions

    Build a UVM Scoreboard for CHI Read and Write Transactions

    Build a scoreboard that pairs requests with their responses by source and TxnID, checks read data against a memory model and applies completed writes in completion order.

    Intermediate·120 min·Testbench·4 challenges
    IntermediatePublishedPaid

Module 3CHI Cache Coherency and Snoop Operations

Cache-line states, Home Node snooping, snoop responses and data, snoop filters, directories and coherency checking.

8 labs · 8 published
  1. Lab 15
    CHI Cache Coherency and Snoop Operations

    Implement a CHI Cache-Line State Tracking Model

    Model the seven CHI cache-line states — I, UC, UCE, UD, UDP, SC and SD — as the Valid, Unique, Clean/Dirty and Full/Partial/Empty properties they encode, and track each line's state through requests and snoops.

    Intermediate·90 min·Testbench·4 challenges
    IntermediatePublishedPaid
  2. Lab 16
    CHI Cache Coherency and Snoop Operations

    Design a CHI Home Node Snoop Request Controller

    Design the Home Node logic that decides which snoop to send — for example SnpShared, SnpUnique or SnpCleanInvalid — and to which requesters, then collects every snoop response before completing the original request.

    Intermediate·120 min·Testbench·4 challenges
    IntermediatePublishedPaid
  3. Lab 17
    CHI Cache Coherency and Snoop Operations

    Implement CHI Snoop Response Generation

    Implement the RN-F side of snooping: given the line's current state and the snoop type, choose the next state and the SnpResp to return, including whether dirty responsibility passes to the Home Node.

    Intermediate·105 min·Testbench·4 challenges
    IntermediatePublishedPaid
  4. Lab 18
    CHI Cache Coherency and Snoop Operations

    Design CHI Snoop Data Transfer Handling

    Handle snoops that must return data: the RN-F sends SnpRespData or SnpRespDataPtl to the Home Node, which merges it and uses it to complete the original request. Direct Cache Transfer is out of scope.

    Intermediate·120 min·Testbench·4 challenges
    IntermediatePublishedPaid
  5. Lab 19
    CHI Cache Coherency and Snoop Operations

    Implement CHI Snoop Filter Lookup and Update Logic

    Implement an inclusive snoop filter for the Home Node: look up which requesters may hold a line, update the entry as requests and snoop responses change ownership, and handle a filter eviction by snooping out the victim line.

    Intermediate·120 min·Testbench·4 challenges
    IntermediatePublishedPaid
  6. Lab 20
    CHI Cache Coherency and Snoop Operations

    Design CHI Directory-Based Sharer Tracking

    Design a directory that records the owner and the sharer set of each line, and compare a full bit-vector against a limited-pointer organisation on snoop count and accuracy.

    Intermediate·120 min·Testbench·4 challenges
    IntermediatePublishedPaid
  7. Lab 21
    CHI Cache Coherency and Snoop Operations

    Verify CHI Cache-Line Ownership and State Transitions Using UVM

    Verify that every requester's cache-line state changes only in ways the subset permits, by predicting each transition from observed requests, responses and snoops and comparing it against the model.

    Intermediate·135 min·Testbench·4 challenges
    IntermediatePublishedPaid
  8. Lab 22
    CHI Cache Coherency and Snoop Operations

    Build a CHI Coherency Scoreboard for Multi-Node Transactions

    Build a scoreboard across several RN-Fs that checks the coherency invariants — at most one unique copy, no unique copy alongside shared ones, and every read returning the latest written value.

    Intermediate·135 min·Testbench·4 challenges
    IntermediatePublishedPaid

Module 4CHI Ordering, Concurrency, and Advanced Transactions

Outstanding-transaction tracking, ordering, CompAck, RetryAck and PCrdGrant, data buffers and atomic transactions.

7 labs · 7 published
  1. Lab 23
    CHI Ordering, Concurrency, and Advanced Transactions

    Implement CHI Multiple Outstanding Transaction Tracking

    Implement a requester tracker that holds many transactions in flight, records each one's phase — awaiting response, data or CompAck — and frees its entry only when the transaction is complete.

    Advanced·120 min·Testbench·4 challenges
    AdvancedPublishedPaid
  2. Lab 24
    CHI Ordering, Concurrency, and Advanced Transactions

    Design CHI Transaction Ordering and Dependency Enforcement

    Enforce ordering in two places: the requester's use of the Order field for requests that must stay ordered, and the Home Node's same-address hazard rule that serialises transactions to one line.

    Advanced·120 min·Testbench·4 challenges
    AdvancedPublishedPaid
  3. Lab 25
    CHI Ordering, Concurrency, and Advanced Transactions

    Implement CHI CompAck Handling and Transaction Completion Tracking

    Implement CompAck on both sides: the requester sends it after receiving its completion, and the Home Node holds the line — deferring snoops to it — until CompAck arrives.

    Advanced·105 min·Testbench·4 challenges
    AdvancedPublishedPaid
  4. Lab 26
    CHI Ordering, Concurrency, and Advanced Transactions

    Design CHI RetryAck and Protocol Credit Grant Handling

    Design transaction-level flow control: the Home Node answers a request it cannot accept with RetryAck, later grants a protocol credit with PCrdGrant, and the requester resends with AllowRetry deasserted and the granted PCrdType.

    Advanced·120 min·Testbench·4 challenges
    AdvancedPublishedPaid
  5. Lab 27
    CHI Ordering, Concurrency, and Advanced Transactions

    Implement CHI Data Buffer Management for Concurrent Transactions

    Manage write data buffers for many transactions at once: reserve a buffer before issuing a DBID, assemble multi-flit data by DataID, and release buffers in any completion order.

    Advanced·120 min·Testbench·4 challenges
    AdvancedPublishedPaid
  6. Lab 28
    CHI Ordering, Concurrency, and Advanced Transactions

    Verify CHI Atomic Transaction Behavior

    Verify the atomic transaction types — AtomicStore, AtomicLoad, AtomicSwap and AtomicCompare — at a Home Node that performs them: the operation applied, the original value returned where required, and the line's coherency handled first.

    Advanced·135 min·Testbench·4 challenges
    AdvancedPublishedPaid
  7. Lab 29
    CHI Ordering, Concurrency, and Advanced Transactions

    Build a UVM Test for Concurrent CHI Read, Write, and Snoop Traffic

    Build a UVM test that runs reads, writes and the snoops they cause concurrently from several requesters, including same-line contention, with CHI-22's coherency checks still active beside new ordering checks — and measures that the overlaps really happened.

    Advanced·135 min·Testbench·4 challenges
    AdvancedPublishedPaid

Module 5CHI UVM Verification and Protocol Checking

A reusable CHI agent, constrained-random sequences, a reference model, assertions, coverage and negative testing.

7 labs · 7 published
  1. Lab 30
    CHI UVM Verification and Protocol Checking

    Build a Reusable CHI UVM Agent with Channel-Specific Drivers and Monitors

    Package one driver and monitor per channel into a configurable agent that can act as a requester or as a Home Node, active or passive, with credit handling built into its drivers.

    Advanced·150 min·Testbench·5 challenges
    AdvancedPublishedPaid
  2. Lab 31
    CHI UVM Verification and Protocol Checking

    Develop CHI Constrained-Random Request and Response Sequences

    Write constrained-random request and response sequences that generate only legal combinations of opcode, size, attributes and response for the supported subset, with knobs to bias address sharing.

    Advanced·120 min·Testbench·5 challenges
    AdvancedPublishedPaid
  3. Lab 32
    CHI UVM Verification and Protocol Checking

    Implement a CHI Protocol-Aware UVM Reference Model

    Implement a transaction-level reference model of the subset that predicts responses, snoops, final cache states and memory contents from observed requests, independent of the RTL.

    Advanced·150 min·Testbench·5 challenges
    AdvancedPublishedPaid
  4. Lab 33
    CHI UVM Verification and Protocol Checking

    Design CHI Protocol Assertions for Channel and Transaction Rules

    Write SystemVerilog assertions for link rules — no flit without a credit, legal link-state sequencing — and for transaction rules such as a response only for an outstanding TxnID and CompAck only when expected.

    Advanced·120 min·Testbench·5 challenges
    AdvancedPublishedPaid
  5. Lab 34
    CHI UVM Verification and Protocol Checking

    Create CHI Functional Coverage for Opcodes, Responses, and Coherency States

    Create coverage for each opcode, each response type, initial-to-final cache-state transitions and their crosses, excluding combinations the subset makes illegal so closure is measured on reachable bins only.

    Advanced·120 min·Testbench·5 challenges
    AdvancedPublishedPaid
  6. Lab 35
    CHI UVM Verification and Protocol Checking

    Implement CHI Protocol Error Injection and Negative Testing

    Inject protocol errors through the agent — a duplicate TxnID, a flit without a credit, a missing CompAck, a response with the wrong opcode — and prove each is detected by the intended checker and no other.

    Advanced·120 min·Testbench·5 challenges
    AdvancedPublishedPaid
  7. Lab 36
    CHI UVM Verification and Protocol Checking

    Verify CHI Link Reset, Credit Recovery, and In-Flight Transaction Handling

    Verify link deactivation and reset while traffic is in flight: credits are returned and restored correctly, no flit is lost or duplicated, and outstanding transactions either complete or are accounted for after reactivation.

    Advanced·135 min·Testbench·5 challenges
    AdvancedPublishedPaid

Module 6CHI Expert Debugging and Subsystem Integration

Deadlock and credit starvation, concurrent snoop traffic, failure diagnosis and a simplified coherent subsystem.

4 labs · 4 published
  1. Lab 37
    CHI Expert Debugging and Subsystem Integration

    Debug CHI Transaction Deadlock and Credit Starvation Scenarios

    Debug planted hangs — a requester waiting on a PCrdGrant that is never sent, a channel starved of link credits, a Home Node waiting for a snoop response blocked behind a request — from the traces alone.

    Expert·150 min·Testbench·5 challenges
    ExpertPublishedPaid
  2. Lab 38
    CHI Expert Debugging and Subsystem Integration

    Verify CHI Multi-Node Coherency Under Concurrent Snoop Traffic

    Verify coherency when several RN-Fs contend for the same lines at once, so snoops cross in-flight requests and write-backs, and show that the scoreboard and reference model agree throughout.

    Expert·150 min·Testbench·5 challenges
    ExpertPublishedPaid
  3. Lab 39
    CHI Expert Debugging and Subsystem Integration

    Diagnose CHI Ordering Violations, Response Mismatches, and Coherency Failures

    Diagnose a set of planted failures — a reordered dependent request, a response matched to the wrong TxnID, a stale read after a missed snoop — and separate the first cause from its later symptoms.

    Expert·150 min·Testbench·5 challenges
    ExpertPublishedPaid
  4. Lab 40
    CHI Expert Debugging and Subsystem Integration

    Build and Verify a Simplified CHI Coherent Subsystem Using RTL and UVM

    Integrate two RN-F models, an HN-F with a snoop filter and an SN-F memory model into one subsystem, and verify it with the full UVM environment — a simplified educational subsystem, not a compliant CHI interconnect.

    Expert·240 min·Testbench·5 challenges
    ExpertPublishedPaid