Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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.

StepDoesUsed by
filelistAsks FuseSoC for a core’s sourcesTestRIG, Lint
flattenMakes one argument file from what FuseSoC wroteTestRIG, Lint
modelBuilds the reference modelTestRIG
engineBuilds QCVEngineTestRIG
instrumentPrepares the sources a Verilator build usesTestRIG
buildCompiles and elaborates a testbench in a simulatorTestRIG
runRuns QCVEngine against the reference model and the designTestRIG
coverageReports on the coverage a run collectedTestRIG
lintRuns a linter on the sourcesLint
scriptWrites a checker’s run script from the configCDC and RDC
cdc, rdcRuns a crossing checker on the run scriptCDC 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.

StepOutputs, kept after a passNot outputs: there after a failure, or with --debug
filelistwork/stdout.log, stderr.log
flattenfilelist.f, verible.flagsNothing: it writes nothing else
modelThe emulator binarystdout.log, stderr.log, the rest of the copied source tree
enginebin/QCVEnginestdout.log, stderr.log, the copied source tree
instrumentfilelist.f, src/, doris_support.cc, unsupported.txtNothing: it writes nothing else
buildXcelium: xcelium.d/. Verilator: obj_dir/simstdout.log, stderr.log. Xcelium: build.log, a debug output, and build.history, xmsc.log. Verilator: the rest of obj_dir/
runstats.txt, stdout.log, the simulator’s log, counterexamples/, the coverage data, the wavesstderr.log, reference.log, and for Xcelium dut.log
coverageThe reportsFor IMC: stdout.log, stderr.log
lintThe logs the messages are read fromFor Verilator: stdout.log