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

Tool capabilities

Built: every tool a plugin, a WebAssembly component doris embeds or loads from plugins.path; a Tool trait every tool implements, with four capabilities as subtraits of it; a Flow trait with roles and bindings; tools bound to roles in config, with defaults in the project file and several tools for any role; tools.<name> options for every tool; and feature and pairing checks when a job is planned. See Flows and tools.

Flows as plugins

Tools are plugins and flows are not. A flow plugin would export a flow interface whose plan returns the job’s steps, and import the capability interfaces of its roles, which doris would link to the plugins config binds. The hard part is the step model in WIT: artefacts, services, readiness, cache units, composite steps, prechecks and resources, and judges and parse functions as callbacks, as plugins’ are already. The step model is still changing, so this waits until it settles, and until the command line works on any Flow (below). A flow’s report would be a callback too, or made from a generic result form, so that doris report view can show results whose flow it doesn’t have.

Distributing plugins

A plugin is a file in a plugins.path directory today. A project file could name the plugins its configs need, pinned by hash, so a checkout that lacks one says so when config loads, and a run never uses another build of it by mistake. Plugins could be published as OCI artefacts or Nix packages, and signed.

Flows on the command line

The command line is a fixed list of flows that main.rs matches on. Each flow has a plan function of its own that the match calls, and the Flow trait and its driver, flows::plan_jobs, are used inside those functions. The design has the command line work on any Flow, so a new flow is registered in one place.

Flow::Config gains a JsonSchema bound, so each flow’s config schema is published from the type the loader reads (see JSON Schema). Today the bound is DeserializeOwned alone, and schemars is not a dependency.

Options checked against steps

A tool’s options are keyed by the step the tool is used in, such as tools.verilator.build. Today a tools.<name> table is accepted if the tool can fill any role of the flow, and every step’s table of that tool is accepted with it. So tools.verilator.build is accepted in a lint config and ignored, because a lint job has no build step.

The design checks each step’s table against the steps the flow uses the tool in. One that no step reads is an error when the config loads.

Waves, parameters and DPI sources in a real simulator

dut.waves, dut.parameters and dut.dpi are built, with unit tests of the command lines they give. Waves have been run in a real Verilator. Waves in Xcelium, and parameters and DPI sources in either simulator, have not been run for real yet.

More capabilities

CapabilityToolsUsed by
SimulatorVCSTestRIG
Coverage reporterURGTestRIG
SynthesiserDesign CompilerSynthesis
Formal proverJasperGoldFormal

Tool scripts

Some tools are driven by scripts that are themselves part of the flow, such as run-syn.tcl for Design Compiler. doris ships default scripts embedded in the binary. A project can point at its own script for flows where it needs to customise, which partners using a foundry library will need. How much of each script a project may replace is decided per tool (see Open questions).

Meridian CDC and RDC are the first tools driven by a script. Their plugin makes it from typed config, in a step of its own, with a callback (see script), and a config can name a project’s own script instead. Design Compiler’s would follow the same pattern.