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.

Six modules — link layer to a coherent subsystem
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
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
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
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
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
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.
Module 1CHI Architecture and Link Fundamentals
Node roles, the four channels, flit structures, link activation, link-layer credits and a channel-level UVM monitor.
- Lab 1CHI Architecture and Link Fundamentals
Model CHI Request Node, Home Node, and Subordinate Node Interfaces
Model the channel ends of an RN-F, an HN-F inside the interconnect and an SN-F — which of REQ, RSP, SNP and DAT each transmits and receives — wire them with ten links, and prove every link reaches the right node and that the SN-F has no snoop channel.
Foundation·120 min·Testbench·4 challengesFoundationPublishedPaid - Lab 2CHI Architecture and Link Fundamentals
Design CHI REQ, RSP, SNP, and DAT Channel Interface Structures
Write the request, response, snoop and data flit formats as packed structs from the specification's tables, carry them on a type-parameterised link, tell Link flits from Protocol flits, and read TxnID from raw bits on every channel.
Foundation·120 min·Testbench·4 challengesFoundationPublishedPaid - Lab 3CHI Architecture and Link Fundamentals
Implement CHI Link Activation and Deactivation Control
Implement the transmitter and receiver halves of the LINKACTIVEREQ / LINKACTIVEACK handshake as state machines through STOP, ACTIVATE, RUN and DEACTIVATE, with per-state permissions and a hardware monitor for illegal transitions.
Foundation·120 min·Testbench·4 challengesFoundationPublishedPaid - Lab 4CHI Architecture and Link Fundamentals
Design CHI Link-Level Credit-Based Flow Control
Design both ends of L-Credit flow control for one channel — a 4-bit transmitter credit counter and a receiver that promises only free slots — with overflow and underflow checks, conservation assertions and a measured credit round trip.
Foundation·120 min·Testbench·4 challengesFoundationPublishedPaid - Lab 5CHI Architecture and Link Fundamentals
Implement CHI Flit Transmission and Reception with Credit Accounting
Integrate CHI-02 flits, CHI-03 link control and CHI-04 credits into a complete transmitter and receiver for one channel, with a receive buffer and credit return by Link flits, verified to deliver every flit exactly once, in order.
Foundation·150 min·Testbench·4 challengesFoundationPublishedPaid - Lab 6CHI Architecture and Link Fundamentals
Build a CHI Flit Field Decoder and Protocol Legality Checker
Decode the raw flits of a Request Node's six channels, sweep every opcode against the specification's tables, flag a message on the wrong channel, a reserved value, a reused or stray TxnID, and prove the checker silent on thousands of legal flits.
Foundation·90 min·Testbench·4 challengesFoundationPublishedPaid - Lab 7CHI Architecture and Link Fundamentals
Develop a UVM Monitor for CHI Channel-Level Transactions
Build a passive UVM monitor that samples all six channels of a Request Node port every cycle, drops Link flits, and publishes each Protocol flit as a new object on its own channel's analysis port — proven against what was driven, edge by edge.
Foundation·105 min·Testbench·4 challengesFoundationPublishedPaid
Module 2CHI Request and Response Transactions
ReadShared, ReadUnique, ReadOnce, WriteUnique and WriteBack flows, TxnID matching and a read/write scoreboard.
- Lab 8CHI 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 challengesIntermediatePublishedPaid - Lab 9CHI 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 challengesIntermediatePublishedPaid - Lab 10CHI 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 challengesIntermediatePublishedPaid - Lab 11CHI 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 challengesIntermediatePublishedPaid - Lab 12CHI 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 challengesIntermediatePublishedPaid - Lab 13CHI 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 challengesIntermediatePublishedPaid - Lab 14CHI 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 challengesIntermediatePublishedPaid
Module 3CHI Cache Coherency and Snoop Operations
Cache-line states, Home Node snooping, snoop responses and data, snoop filters, directories and coherency checking.
- Lab 15CHI 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 challengesIntermediatePublishedPaid - Lab 16CHI 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 challengesIntermediatePublishedPaid - Lab 17CHI 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 challengesIntermediatePublishedPaid - Lab 18CHI 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 challengesIntermediatePublishedPaid - Lab 19CHI 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 challengesIntermediatePublishedPaid - Lab 20CHI 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 challengesIntermediatePublishedPaid - Lab 21CHI 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 challengesIntermediatePublishedPaid - Lab 22CHI 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 challengesIntermediatePublishedPaid
Module 4CHI Ordering, Concurrency, and Advanced Transactions
Outstanding-transaction tracking, ordering, CompAck, RetryAck and PCrdGrant, data buffers and atomic transactions.
- Lab 23CHI 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 challengesAdvancedPublishedPaid - Lab 24CHI 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 challengesAdvancedPublishedPaid - Lab 25CHI 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 challengesAdvancedPublishedPaid - Lab 26CHI 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 challengesAdvancedPublishedPaid - Lab 27CHI 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 challengesAdvancedPublishedPaid - Lab 28CHI 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 challengesAdvancedPublishedPaid - Lab 29CHI 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 challengesAdvancedPublishedPaid
Module 5CHI UVM Verification and Protocol Checking
A reusable CHI agent, constrained-random sequences, a reference model, assertions, coverage and negative testing.
- Lab 30CHI 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 challengesAdvancedPublishedPaid - Lab 31CHI 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 challengesAdvancedPublishedPaid - Lab 32CHI 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 challengesAdvancedPublishedPaid - Lab 33CHI 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 challengesAdvancedPublishedPaid - Lab 34CHI 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 challengesAdvancedPublishedPaid - Lab 35CHI 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 challengesAdvancedPublishedPaid - Lab 36CHI 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 challengesAdvancedPublishedPaid
Module 6CHI Expert Debugging and Subsystem Integration
Deadlock and credit starvation, concurrent snoop traffic, failure diagnosis and a simplified coherent subsystem.
- Lab 37CHI 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 challengesExpertPublishedPaid - Lab 38CHI 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 challengesExpertPublishedPaid - Lab 39CHI 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 challengesExpertPublishedPaid - Lab 40CHI 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 challengesExpertPublishedPaid
