Introduction
doris runs hardware verification flows, from linting RTL to checking a RISC-V core against its reference model, instruction by instruction. Describe a design once, in a few small config files, and doris plans the work, runs only what has changed, and records every job as a versioned JSON result with an HTML report.
doris run lint # lint every design that has a lint config
doris run testrig my_core # check a RISC-V core against its reference model
doris report view # open the reports in a browser
Flows
- TestRIG checks a RISC-V core against the Sail reference model, instruction by instruction, with Xcelium or Verilator.
- Lint runs Verilator, Verible, slang and AscentLint over a design’s RTL.
- CDC and RDC check a design’s clock and reset domain crossings with Meridian CDC and Meridian RDC.
Synthesis and formal flows are planned. The Roadmap lists them, with everything else that is designed but not built.
Key features
- Everything is cached. A step’s cache key is a hash of its command, its inputs, the versions of its tools and the plugins they come from. A second run with nothing changed runs no tool at all, and an edit reruns only the steps it reaches. The cache is shared by every checkout, so a new worktree starts warm.
- Tools are plugins. Each tool is a sandboxed WebAssembly plugin that knows how to invoke it and how to read what it writes. doris ships one for every tool it supports, and a site adds its own through
plugins.path, including for a commercial tool whose details can’t be published. - Mistakes surface at load time. Every config file is checked against a schema, and each tool’s options by its plugin, so a misspelt key is an error naming the file and line before any step runs.
- You can see a run before it happens.
doris planshows every job and step, the exact command each runs, and which come from the cache.doris checkruns each step’s prechecks against the machine, without running a step. - The machine is shared fairly. Steps hold threads, memory, disk and licences from resource pools, so the steps running at once never hold more than there is.
doris resourcessuggests what each step should hold, from what earlier runs measured. - Results are data. Each job writes a result file in a versioned format. Reports are made from it, and
doris report viewserves them, so an old run’s report can be made again by a newer doris.
Guiding principles
- Config is data, not a program. Loading config never runs a command or reads the environment, so a config means the same thing on every machine and in every checkout.
- Tool knowledge lives in one place. How to drive a simulator or linter, and how to read its output, is written once, in its plugin. A project’s config describes its designs and which tool fills each role.
- Plans are repeatable. A plugin never starts a process or sees the machine, and the sandbox, not review, is what keeps it that way. The same request always gives the same plan.
- The result is the record. A result file holds everything a report shows about a job. Reports, indexes and metrics pages are views of it.
- A verdict says what it covers. Each flow and step page says what
passedmeans and what to check by hand, so a reviewer knows how far to rely on a result.
How it fits together
flowchart LR
config["<b>Config files</b><br/>project, design, flow"] --> loader["<b>Loader</b><br/>schema check, paths"]
loader --> plan["<b>Flow</b><br/>plans the step graph"]
tools["<b>Tool plugins</b><br/>simulator, linter, …"] -- commands --> plan
plan --> exec["<b>Run</b><br/>cache check, then steps"]
exec --> parse["<b>Tool plugins</b><br/>read the tool's output"]
parse --> results["<b>Result files</b><br/>versioned JSON"]
results --> reports["<b>Reports</b><br/>HTML, from the results"]
classDef tool stroke-width:3px
class tools,parse tool
Config is loaded and checked once. Only the two boxes with heavy borders know anything about a specific tool. The rest of doris works the same whichever simulator or linter a design uses.
Where to start
| To | Read |
|---|---|
| Build doris and make a first run | Getting started |
| Describe a project and its designs | Configuration |
| Understand a run, its outcomes and outputs | Running flows |
| Set up or review one flow | TestRIG, Lint |
| Know exactly what a step ran and checked | Steps |
| Understand how doris is put together | Architecture |
| Look up a command or option | Command line |
| See what is coming | Roadmap |