Skip to content

Latest commit

 

History

History
65 lines (53 loc) · 2.93 KB

README.md

File metadata and controls

65 lines (53 loc) · 2.93 KB

Choose a testbench

Purpose: pick the testbench, and so the tutorial, that fits your job and your simulator.

Prerequisites: getting_started.md (Spike installed, git-dependencies run, a toolchain in compiler.yml).

CVA6 runs in two separate testbenches. They are not two modes of one testbench: the sources, the tops, the recipes and the output directories are separate. A design elaborated for one cannot run a test of the other. The compiled programs are shared: a test built by sw-compile runs on both.

UVM testbench TestHarness
Tutorial uvm_testbench.md testharness.md
Sources verif/tb/uvmt/, agents of verif/core-v-verif corev_apu/tb/ (a small AXI SoC)
Targets all (AXI and OBI) AXI targets only (hier: axi)
Verdict UVM scoreboard, optional Spike tandem the tohost value written by the program
Extras Spike tandem, coverage, gate-level, OBI stalls, benchmarks with --stats proxy kernel, Zephyr, no licence with Verilator
Compilation modes rtl, coverage, gate_wc_timing, gate_wc_power rtl only
Recipes <sim>-uvm-comp, <sim>-uvm-run, uvm-run-testlist, vcs-uvm-gui <sim>-testharness-comp, <sim>-testharness-run, testharness-run-testlist

Simulators per testbench. "Not verified" means the recipe exists but was never run to the end of a test: expect to fix it on first use.

Simulator UVM testbench TestHarness
VCS verified verified
Questa verified not verified
Xcelium not verified not verified
Verilator no verified, no licence

The UVM testbench is the one the verification of CVA6 relies on. The TestHarness is the way in without a commercial simulator, and the one that runs pk and Zephyr. Details: Current Status.

flowchart TD
    q1{Do you have a VCS, Questa or Xcelium licence?}
    q1 -- no --> th[TestHarness on Verilator]
    q1 -- yes --> q2{What do you need?}
    q2 -- "tandem with Spike, coverage, OBI target, gate-level" --> uvm[UVM testbench]
    q2 -- "pk or Zephyr, AXI target only" --> th2[TestHarness on VCS or Verilator]
    q2 -- "a quick run of a program" --> any[either one]
Loading

Topics common to both testbenches

See also