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

cdc and rdc

Runs a crossing checker on the run script. Used by CDC and RDC, where its outcome is the result. The step is named after the flow: cdc in a CDC job and rdc in an RDC job.

Depends onfilelist (the sources), flatten (the list naming them) and script
Runs incdc/ or rdc/
Outputsreports/, stdout.log, and findings.json: what the checker found, parsed from its report and log
Timeouttimeout from the config. None by default
CheckerCommandKeyed by the version printed byReportLog
meridiancdcmcdc -i ../script/run.tcl [<args>]mcdc -version, the line Meridian CDC ...cdc/reports/cdc.new.rptcdc/mcdc.log, else stdout.log
meridianrdcmrdc -i ../script/run.tcl [<args>]mrdc -version, the line Meridian RDC ...rdc/reports/rdc.new.rptrdc/mrdc.log, else stdout.log

<args> is tools.<checker>.check.args. With the config’s own script, -i names it, and the environment has what OpenTitan’s scripts read (see A project’s own script). Each run holds one licence from the checker’s resource pool. reports/ is made before the checker starts, so it is there even if the checker stops early.

The cache key covers the sources and the filelist, the run script, every file the config names (constraints, environment files, configuration scripts, waivers, reset scenarios, and reads), the checker’s version and its plugin.

The parsed findings

When the checker has run, doris parses its reports and log once, in-process, into findings.json. A report’s summary, between Summary of Policy: <POLICY> and Rule Details of Policy: <POLICY>, gives each rule’s category, from its section (SDC_ENV_LINT, M?DC_SETUP_CHECKS, M?DC_ANALYSIS_CHECKS), and level, from the group within it (ERROR, WARNING, REVIEW, INFO), with its counts. A group within a level, such as RDC’s E_RST_METASTABILITY, holds rules of its own, one per reset scenario. The rules and their waived counts are read from reports/<kind>.all.rpt, and the findings from the details of reports/<kind>.new.rpt: rows that start with a rule and its RuleDataId, all the rows of one id being one violation. A rule listed under two levels has the first, the higher, and the counts of both. The log’s errors and warnings come first, with the category flow.

What passed means

See the flow’s page.

To check by hand

Compare each rule’s new count with the number of its violations in result.json, as on the flow’s page, and read the reports in reports/.