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.
| Attribute | Values | Example |
|---|---|---|
package | local, or the vendored package name | package=lowrisc_ip |
variant | Variant name, default if none | variant=gtech |
- A job’s ID gains its variant:
FLOW/DESIGN[#VARIANT][@TOOL], for examplesyn/kmac#gtech@dc. A design argument such asdoris run syn kmacgives every variant’s jobs. - Two more shorthands:
--vendoredand--local, for-x package=localand-i package=local.
| Command | Runs |
|---|---|
doris run lint --top earlgrey -x package=lowrisc_ip | Earlgrey and its IP, except blocks from the lowrisc_ip package |
doris run syn kmac | Every syn job for kmac: each tool and variant |
doris run syn/kmac#gtech@dc | One 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
fileliststep, 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
filelistcommand, so each context runs FuseSoC itself, and onlyflattenand 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.