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

AboutRoadmapCareersInternshipsFAQContactPrivacyTerms
Skip to lesson

Course contents

  • Start Here5
  • SystemVerilog Language Foundations28
  • Object-Oriented SystemVerilog for Verification30
  • Constraint Randomization — Interview-Critical Deep Dive39
  • SystemVerilog Assertions — Interview-Critical Deep Dive41
  • Functional Coverage in SystemVerilog25
  • Testbench Architecture in SystemVerilog24
    • Testbench Anatomy & Layering
    • Stimulus: Generators, Transactions & Drivers
      • Transaction Design for Stimulus
      • Layered Constraint Architecture
      • Shaping Stimulus with Knobs and Policies
      • Protocol Legality and Error Injection
      • Randomizing Scenarios, Not Just Items
      • Generator Patterns
      • Driver Design
      • Mixing Directed and Random Stimulus
    • Monitors, Scoreboards & Reference Models
    • Self-Checking Tests & Regression
    • From Hand-Built TB to UVM
  • Advanced Language & Integration26
  • Senior & Interview Preparation23
  • Principal-Level Verification34
Loading lesson

←Testbench Architecture in SystemVerilog
  1. Topics
  2. SystemVerilog
  3. Testbench Architecture in SystemVerilog
  4. Stimulus: Generators, Transactions & Drivers

Part 6 of 9Part 6 of 9/Testbench ArchitectureIntermediate

Stimulus: Generators, Transactions & Drivers

Stimulus flow plus constraint shaping: transactions, generators, drivers, and closure.

  • 8topics
  • 8lessons

Stimulus is a pipeline with a shaping discipline. Transactions describe operations, generators decide which ones run, drivers turn them into pin activity, and a constraint architecture keeps hundreds of shaping rules composable across tests.

Stage

Question answered

Lesson

Transaction

What is sent

Field taxonomy plus identities and printing

Constraints

What stays legal

Layered rules, knobs, policies, protocol legality

Scenarios

Which patterns

Solver-side correlation across items

Generator

When and how many

Blueprints, mixes, and stop conditions

Driver

How on the pins

Handshakes, reset, pipelining, shared buses

Strategy

What order over weeks

Directed bring-up through targeted closure

Lesson

You will build...

Path

Transaction Design for Stimulus

A disciplined transaction class with identities and greppable printing.

Required

Layered Constraint Architecture

Base legality with soft typicality and per-test intent.

Recommended

Shaping Stimulus with Knobs and Policies

Runtime dials and composable policy objects.

Recommended

Protocol Legality and Error Injection

Spec tables as constraints plus clean negative testing.

Recommended

Randomizing Scenarios, Not Just Items

Correlated multi-transaction patterns in one solve.

Optional

Generator Patterns

Blueprint retargeting, scenario tasks, and stop conditions.

Optional

Driver Design

Reset-aware driving, backpressure, pipelining, and bus locking.

Required

Mixing Directed and Random Stimulus

Bring-up, volume, and coverage-driven closure.

Recommended

Path tells you how to spend your time. Required is the core first pass for building a layered testbench. Recommended is what most learners should read. Optional is reference, specialist or revision material that you can return to later.

PacketFIFO step: the pf_pkt class in PacketFIFO Step: A Monitor and Scoreboard is a small transaction in this style: kind, dest and len as rand-ready fields, a payload queue, a check byte computed by seal(), and equals() and str() for the compare and the log.

Check yourself Where does a new address-window requirement belong: base transaction, knob, or policy?

A knob or a policy, not the base transaction. The base carries only protocol legality, so a window belongs in shaping. A knob fits one axis, a policy fits a matrix of axes.

Senior stimulus interviews probe the split of responsibilities.

transactions describe, generators decide, drivers drive, and constraints shape. Candidates who place each new requirement in its layer signal benches that scale.

PreviousNext: Transaction Design for Stimulus

Up next

Up nextTransaction Design for Stimulus

Sign in to save progress

Practice this lessonPrevious lessonReport an error

See also

  • Testbench Anatomy & Layering
  • Monitors, Scoreboards & Reference Models
  • Self-Checking Tests & Regression