Steps
A flow is a graph of steps. This part has one page per step: the command, what it reads and writes, what its cache key covers, what passed means for it, and what to check by hand. The flow pages say which steps a flow runs, in what order, and with what from its config.
Read Running flows first for how any step runs and what outcomes mean.
| Step | Does | Used by |
|---|---|---|
filelist | Asks FuseSoC for a core’s sources | TestRIG, Lint |
flatten | Makes one argument file from what FuseSoC wrote | TestRIG, Lint |
model | Builds the reference model | TestRIG |
engine | Builds QCVEngine | TestRIG |
instrument | Prepares the sources a Verilator build uses | TestRIG |
build | Compiles and elaborates a testbench in a simulator | TestRIG |
run | Runs QCVEngine against the reference model and the design | TestRIG |
coverage | Reports on the coverage a run collected | TestRIG |
lint | Runs a linter on the sources | Lint |
script | Writes a checker’s run script from the config | CDC and RDC |
cdc, rdc | Runs a crossing checker on the run script | CDC and RDC |
A step used by two flows is not shared between them
filelist and flatten are each one piece of doris that both flows use. A flow gives the step its own arguments, and every job runs the step in its own directory:
scratch/doris/testrig/my_core@xcelium/filelist/
scratch/doris/lint/top_chip_system@verilator/filelist/
scratch/doris/lint/top_chip_system@verible/filelist/
Those three ask FuseSoC for different things, so they have different cache keys and none of them reuses another’s result. A result is reused only when two steps have the same key: the same command, the same inputs and the same tool versions.
On these pages, paths are relative to the job’s directory, scratch/doris/<flow>/<job>/. doris plan -v FLOW DESIGN prints the real commands.
What is left in a step’s directory
Each page names the step’s outputs. After a normal run, a step that passed has those in its directory and nothing else: its stdout.log, stderr.log and scratch files are deleted when it ends, unless they are outputs. A step that failed or did not complete keeps everything.
So a page’s “To check by hand” says where a file it names is not an output. To read such a file for a step that passed, run the job with --debug, which keeps every step’s whole directory and runs again any step whose cache entry a plain run stored:
doris run testrig my_core --debug
Working directories has the rules, and doris clean to remove what a debug run kept.
| Step | Outputs, kept after a pass | Not outputs: there after a failure, or with --debug |
|---|---|---|
filelist | work/ | stdout.log, stderr.log |
flatten | filelist.f, verible.flags | Nothing: it writes nothing else |
model | The emulator binary | stdout.log, stderr.log, the rest of the copied source tree |
engine | bin/QCVEngine | stdout.log, stderr.log, the copied source tree |
instrument | filelist.f, src/, doris_support.cc, unsupported.txt | Nothing: it writes nothing else |
build | Xcelium: xcelium.d/. Verilator: obj_dir/sim | stdout.log, stderr.log. Xcelium: build.log, a debug output, and build.history, xmsc.log. Verilator: the rest of obj_dir/ |
run | stats.txt, stdout.log, the simulator’s log, counterexamples/, the coverage data, the waves | stderr.log, reference.log, and for Xcelium dut.log |
coverage | The reports | For IMC: stdout.log, stderr.log |
lint | The logs the messages are read from | For Verilator: stdout.log |