Simple examplesΒΆ
These examples introduce one cpptb idea at a time. Start with the counter, then add timing, checking, multiple clocks, and cancellation as you need them. Each one is a complete, runnable project with a pure-SystemVerilog twin.
Example |
Start here for |
Source shown |
|---|---|---|
A small, single-clock DUT |
Complete testbench |
|
Combinational or clockless models |
Complete testbench |
|
Streaming drivers, monitors, and scoreboards |
Key processes and composition |
|
Independent clock domains |
Producer, consumer, and trigger probe |
|
Operations that may stall or need cancellation |
Transaction, timeout, and process lifecycle |
The counter is the one walked through step by step in Getting started. When these stop being enough, move on to the advanced examples.