Skip to content
VLSI Mentor
Labs · DDR Concepts

DDR Concepts Labs.

Learn memory-controller RTL design and UVM verification through a simplified memory model. Fifty labs in ten modules take you from address decoding and request handshakes to bank state, timing enforcement, scheduling, ordering hazards, refresh, ECC, coverage closure and a capstone sign-off.

50Labs
10Modules
50Published
RTL Design & Design VerificationCategory
Scope. These labs use a simplified memory model with abstract bank commands and configurable timing, not a JEDEC DDR standard. Generation-specific DDR protocol implementation, PHY training and JEDEC timing requirements are outside this curriculum.
All 50 labs are published. One purchase covers the entire collection.
DDR Labs

10 modules · 50 labs

Each lab poses one engineering question about building or verifying part of a memory controller. The modules build from addressing and bank sequencing to a UVM subsystem regression and sign-off.

Module 15 labs

Addressing and Request Interfaces

DDRC-01 · DDRC-02 · DDRC-03 · DDRC-04 · DDRC-05

Module 25 labs

Banks, Rows, and Command Sequencing

DDRC-06 · DDRC-07 · DDRC-08 · DDRC-09 · DDRC-10

Module 35 labs

Configurable Timing and Data Transfer

DDRC-11 · DDRC-12 · DDRC-13 · DDRC-14 · DDRC-15

Module 45 labs

Queues, Arbitration, and Scheduling

DDRC-16 · DDRC-17 · DDRC-18 · DDRC-19 · DDRC-20

Module 55 labs

Ordering, Hazards, and Multi-Beat Responses

DDRC-21 · DDRC-22 · DDRC-23 · DDRC-24 · DDRC-25

Module 65 labs

Refresh, Idle Control, and Reset

DDRC-26 · DDRC-27 · DDRC-28 · DDRC-29 · DDRC-30

Module 75 labs

UVM Environment and Reference Checking

DDRC-31 · DDRC-32 · DDRC-33 · DDRC-34 · DDRC-35

Module 85 labs

UVM Stress, Assertions, and Coverage Closure

DDRC-36 · DDRC-37 · DDRC-38 · DDRC-39 · DDRC-40

Module 95 labs

Error Handling and Performance Analysis

DDRC-41 · DDRC-42 · DDRC-43 · DDRC-44 · DDRC-45

Module 105 labs

Integration and Capstone

DDRC-46 · DDRC-47 · DDRC-48 · DDRC-49 · DDRC-50

Lab numbers are stable. Published labs open their reader; the rest open here as each one is published.

All 50 labs

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

50 of 50
Module
Status

Module 1Addressing and Request Interfaces

5 labs · 5 published
  1. Lab 1
    Addressing and Request Interfaces

    Address Decoder

    Can you split a byte address into byte offset, column, bank, and row fields, then verify every field boundary with a self-checking testbench?

    PublishedPaid
  2. Lab 2
    Addressing and Request Interfaces

    Configurable Address Mapping

    Can you implement two mappings, one that keeps nearby accesses in the same row and one that spreads them across banks, then compare both with a sequential address trace?

    PublishedPaid
  3. Lab 3
    Addressing and Request Interfaces

    Request Handshake

    Can you accept a read or write request using valid and ready while ensuring the payload stays stable during backpressure and each accepted request is counted once?

    PublishedPaid
  4. Lab 4
    Addressing and Request Interfaces

    Burst Address Generator

    Can you generate the address for every beat of an incrementing burst and split the request when the next beat maps to a different row?

    PublishedPaid
  5. Lab 5
    Addressing and Request Interfaces

    Byte-Enabled Writes

    Can you update only the enabled bytes of a memory word and verify that disabled bytes retain their previous values under overlapping writes?

    PublishedPaid

Module 2Banks, Rows, and Command Sequencing

5 labs · 5 published
  1. Lab 6
    Banks, Rows, and Command Sequencing

    Single-Bank State Machine

    Can you model a bank as closed or open, track the open row, and reject an access when the requested row differs from the open row?

    PublishedPaid
  2. Lab 7
    Banks, Rows, and Command Sequencing

    Row Hit, Closed Bank, and Row Conflict

    Can you classify each request and generate the correct sequence of abstract OPEN, ACCESS, and CLOSE commands?

    PublishedPaid
  3. Lab 8
    Banks, Rows, and Command Sequencing

    Multi-Bank State Tracking

    Can you track open rows independently across banks and prove that opening or closing one bank leaves the others untouched?

    PublishedPaid
  4. Lab 9
    Banks, Rows, and Command Sequencing

    Open-Row and Close-After-Access Policies

    Can you implement both policies and measure command count and request latency for sequential and alternating-row traffic?

    PublishedPaid
  5. Lab 10
    Banks, Rows, and Command Sequencing

    Command Backpressure

    Can you stall the command interface mid-sequence and prove that the controller neither advances early nor issues the same command twice?

    PublishedPaid

Module 3Configurable Timing and Data Transfer

5 labs · 5 published
  1. Lab 11
    Configurable Timing and Data Transfer

    Open-to-Access Timing

    Can you make the controller enforce a configurable gap between OPEN and ACCESS and catch a one-cycle-early access with an assertion?

    PublishedPaid
  2. Lab 12
    Configurable Timing and Data Transfer

    Minimum Open Time and Reopen Delay

    Can you enforce the earliest legal CLOSE and the earliest subsequent OPEN, including exact-cycle boundary tests?

    PublishedPaid
  3. Lab 13
    Configurable Timing and Data Transfer

    Write Recovery

    Can you prevent a bank from closing until the configured recovery interval has elapsed after the final accepted write beat?

    PublishedPaid
  4. Lab 14
    Configurable Timing and Data Transfer

    Read-to-Write Turnaround

    Can you reserve a shared data path for read returns and writes so that a delayed read burst cannot collide with an upcoming write?

    PublishedPaid
  5. Lab 15
    Configurable Timing and Data Transfer

    Per-Bank and Shared Timing

    Can you combine local timing restrictions with a shared command issue gap so that a blocked bank does not stall an eligible bank?

    PublishedPaid

Module 4Queues, Arbitration, and Scheduling

5 labs · 5 published
  1. Lab 16
    Queues, Arbitration, and Scheduling

    Request FIFO

    Can you implement a parameterized FIFO that handles simultaneous push and pop, pointer wraparound, and full or empty transitions without losing a request?

    PublishedPaid
  2. Lab 17
    Queues, Arbitration, and Scheduling

    Per-Bank Request Queues

    Can you dispatch requests to per-bank queues and demonstrate when this removes head-of-line blocking compared with a single FIFO?

    PublishedPaid
  3. Lab 18
    Queues, Arbitration, and Scheduling

    Round-Robin Arbitration

    Can you schedule eligible banks fairly under sustained traffic and show that an ineligible bank does not consume a grant?

    PublishedPaid
  4. Lab 19
    Queues, Arbitration, and Scheduling

    Row-Hit Scheduling With Aging

    Can you prioritize ready row hits while ensuring an older row conflict eventually runs under a defined service assumption?

    PublishedPaid
  5. Lab 20
    Queues, Arbitration, and Scheduling

    Write Draining

    Can you enter and leave write-drain mode using queue watermarks while preserving a service opportunity for reads under sustained write traffic?

    PublishedPaid

Module 5Ordering, Hazards, and Multi-Beat Responses

5 labs · 5 published
  1. Lab 21
    Ordering, Hazards, and Multi-Beat Responses

    Outstanding Request IDs

    Can you allocate and retire IDs so that multiple reads can be outstanding and every response matches exactly one live request?

    PublishedPaid
  2. Lab 22
    Ordering, Hazards, and Multi-Beat Responses

    Out-of-Order Completion

    Can you allow independent banks to finish in a different order and correctly associate each response with its original requester?

    PublishedPaid
  3. Lab 23
    Ordering, Hazards, and Multi-Beat Responses

    Read After Pending Write

    Can you stall a read that overlaps an older pending write and verify that unrelated reads continue to make progress?

    PublishedPaid
  4. Lab 24
    Ordering, Hazards, and Multi-Beat Responses

    Write-to-Read Forwarding

    Can you forward bytes from older pending writes, select the newest eligible value for each byte, and obtain the remaining bytes from memory?

    PublishedPaid
  5. Lab 25
    Ordering, Hazards, and Multi-Beat Responses

    Burst Response Tracking

    Can you track the beat count and final-beat signal for each outstanding read while independently applying backpressure to the response path?

    PublishedPaid

Module 6Refresh, Idle Control, and Reset

5 labs · 5 published
  1. Lab 26
    Refresh, Idle Control, and Reset

    Periodic Refresh Request

    Can you generate refresh requests at a configurable interval and prove the timer behaves correctly at expiry, reset, and counter wraparound?

    PublishedPaid
  2. Lab 27
    Refresh, Idle Control, and Reset

    Refresh Under Traffic

    Can you finish in-flight operations, close affected banks, issue refresh, and resume queued traffic without losing or duplicating accepted requests?

    PublishedPaid
  3. Lab 28
    Refresh, Idle Control, and Reset

    Bounded Refresh Deferral

    Can you defer refresh to finish useful work while guaranteeing that refresh service stays within a configured deadline under continuous load?

    PublishedPaid
  4. Lab 29
    Refresh, Idle Control, and Reset

    Self-Refresh Coordination

    Can you enter a simplified self-refresh state only after required work drains, then handle a new request arriving on the cycle of entry?

    PublishedPaid
  5. Lab 30
    Refresh, Idle Control, and Reset

    Reset With Outstanding Work

    Can you define and verify what happens to queued requests, partially transferred writes, and late read responses when reset occurs mid-transaction?

    PublishedPaid

Module 7UVM Environment and Reference Checking

5 labs · 5 published
  1. Lab 31
    UVM Environment and Reference Checking

    Transaction and Sequence Design

    Can you model reads, writes, masks, burst lengths, and IDs as UVM transactions, then generate legal traffic and deliberate boundary cases?

    PublishedPaid
  2. Lab 32
    UVM Environment and Reference Checking

    Backpressure-Aware UVM Driver

    Can you build a driver that holds request fields stable until acceptance and drives back-to-back requests without inserting unintended idle cycles?

    PublishedPaid
  3. Lab 33
    UVM Environment and Reference Checking

    Independent UVM Monitors

    Can you reconstruct accepted requests, issued commands, and returned responses from interface activity and publish each through the appropriate analysis port?

    PublishedPaid
  4. Lab 34
    UVM Environment and Reference Checking

    Byte-Addressable Reference Model

    Can you predict memory contents independently of the DUT, accounting for partial writes and the controller’s documented write visibility rules?

    PublishedPaid
  5. Lab 35
    UVM Environment and Reference Checking

    UVM Scoreboard

    Can you compare out-of-order, multi-beat responses by ID and flag wrong data, duplicate beats, unexpected responses, and unfinished reads at test end?

    PublishedPaid

Module 8UVM Stress, Assertions, and Coverage Closure

5 labs · 5 published
  1. Lab 36
    UVM Stress, Assertions, and Coverage Closure

    Concurrent Traffic With Virtual Sequences

    Can you combine random requests, response stalls, and refresh activity while keeping any failure reproducible from its seed?

    PublishedPaid
  2. Lab 37
    UVM Stress, Assertions, and Coverage Closure

    Bank and Timing Assertions

    Can you write assertions that identify the first illegal command or timing boundary violation before it becomes a data mismatch?

    PublishedPaid
  3. Lab 38
    UVM Stress, Assertions, and Coverage Closure

    Functional Coverage Plan

    Can you cross request type, bank relationship, row hit or conflict, and refresh overlap, then explain which combinations are unreachable?

    PublishedPaid
  4. Lab 39
    UVM Stress, Assertions, and Coverage Closure

    Coverage-Driven Sequence Refinement

    Can you close a hole involving a row conflict, a nearly full queue, and an imminent refresh deadline without simply increasing the seed count?

    PublishedPaid
  5. Lab 40
    UVM Stress, Assertions, and Coverage Closure

    Checker Validation and Debug

    Can you introduce a controlled one-cycle timing defect and a masked-byte defect separately, then show which checker catches each and how the waveform confirms the cause?

    PublishedPaid

Module 9Error Handling and Performance Analysis

5 labs · 5 published
  1. Lab 41
    Error Handling and Performance Analysis

    Parity-Protected Request Queue

    Can you add parity to queued request metadata and verify that detected corruption produces the specified error response without issuing a memory command?

    PublishedPaid
  2. Lab 42
    Error Handling and Performance Analysis

    SECDED-Protected Data

    Can you implement single-error correction and double-error detection for a memory word, then verify clean, corrected, and uncorrectable read cases?

    PublishedPaid
  3. Lab 43
    Error Handling and Performance Analysis

    Scrubbing and Concurrent Writes

    Can you write corrected data back in the background while ensuring that a newer host write to the same address keeps priority?

    PublishedPaid
  4. Lab 44
    Error Handling and Performance Analysis

    Latency and Throughput Measurement

    Can you measure request wait time, end-to-end latency, and useful data throughput, then explain why two workloads with the same request count differ?

    PublishedPaid
  5. Lab 45
    Error Handling and Performance Analysis

    Scheduler Trade-Off Study

    Can you compare round-robin and row-hit scheduling on streaming, random, and bank-conflict traffic and explain the trade-off between throughput and worst-case latency?

    PublishedPaid

Module 10Integration and Capstone

5 labs · 5 published
  1. Lab 46
    Integration and Capstone

    Configurable Memory Controller

    Can you integrate address mapping, queues, bank tracking, timing enforcement, and refresh into one RTL controller and verify two configurations against the same memory model?

    PublishedPaid
  2. Lab 47
    Integration and Capstone

    Register Control With UVM RAL

    Can you add configuration, status, and error registers, then verify reset values, field access policies, and when configuration changes take effect during traffic?

    PublishedPaid
  3. Lab 48
    Integration and Capstone

    Clock-Domain Crossing

    Can you connect host and controller clock domains with asynchronous request and response FIFOs, then stress them with unrelated clock ratios, stalls, and documented reset sequencing?

    PublishedPaid
  4. Lab 49
    Integration and Capstone

    Subsystem UVM Regression

    Can you build a compact regression that covers mixed traffic, ordering hazards, refresh deadlines, ECC events, reset under load, and the remaining functional coverage holes?

    PublishedPaid
  5. Lab 50
    Integration and Capstone

    Capstone Debug and Sign-Off

    Can you reproduce a masked-write mismatch during refresh and queue saturation, isolate the first incorrect event, fix the RTL, and produce a sign-off report backed by assertions, scoreboard results, and coverage?

    PublishedPaid