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

Selecting and filtering jobs

What is built is described in Choosing jobs. This page is what is still to come.

Packages and variants

Two attributes wait for the features they describe: vendored IP and variants.

AttributeValuesExample
packagelocal, or the vendored package namepackage=lowrisc_ip
variantVariant name, default if nonevariant=gtech
  • A job’s ID gains its variant: FLOW/DESIGN[#VARIANT][@TOOL], for example syn/kmac#gtech@dc. A design argument such as doris run syn kmac gives every variant’s jobs.
  • Two more shorthands: --vendored and --local, for -x package=local and -i package=local.
CommandRuns
doris run lint --top earlgrey -x package=lowrisc_ipEarlgrey and its IP, except blocks from the lowrisc_ip package
doris run syn kmacEvery syn job for kmac: each tool and variant
doris run syn/kmac#gtech@dcOne job

A named filter set can then leave out a package too:

filters: {
  pr: {
    exclude: [
      tag=slow
      package=lowrisc_ip
    ]
  }
}

One run of several flows

A run with jobs of several flows runs them together, but writes the run’s metrics file to each flow’s directory, so each flow’s metrics page shows the other flows’ jobs too. The run gets a metrics file and page of its own, and each flow’s page shows only its jobs.

Commands

doris tops                        list tops and their IP counts
doris ip [--top T] [--shared]     list IP, with scope and configured flows
doris flows [DESIGN]              show which flows each design has configured

doris flows exists. It gains the design argument and a scope column:

DESIGN                    SCOPE       LINT  SYN  CDC  RDC  FORMAL
earlgrey                  top         yes   yes  yes  yes  yes
earlgrey/alert_handler    earlgrey    yes   -    -    -    yes
darjeeling/alert_handler  darjeeling  yes   -    -    -    yes
aes                       shared      yes   yes  -    -    yes

Contexts

  • An exact dependency walk. The walk that finds the tops using a design reads core files instead of asking FuseSoC (see How the tops that use a design are found). Applying the top’s mappings to the walk, or taking the resolved core list from the top’s own filelist step, would make it exact.
  • Contexts for every flow. Only lint uses them. Each new flow that resolves a design’s core takes the same contexts.
  • scope: <top>, to move a design into a top that it isn’t below.

De-duplicating shared IP

Shared designs are de-duplicated by the cache. Three things would make that better:

  • An exact walk, as above.
  • Sharing the FuseSoC step. A top’s mappings are part of the filelist command, so each context runs FuseSoC itself, and only flatten and the steps after it are taken from the cache. A resolve step keyed on the core files would make that cheap.
  • Merged results. Each context is a job with its own result and report row. The design has one row under the shared IP, listing the tops it covers.

This depends on cache keys being quick to compute, since every top’s FuseSoC resolution feeds them. The file index should make that cheap. If measurement shows it isn’t, alternatives will be considered. One is to run shared IP once in a neutral context, such as prim_generic with no top mapping, which only works if no shared IP depends on a top’s virtual cores.