Configuration
Built: the loader, the three kinds of file in HJSON, TOML or JSON, and doris validate. See Configuration and Config and the repo model.
More in the project file
The project file has configs, cores_root, tool, the default tool for each flow role, and filters. It gains:
- Core mappings, such as
lowrisc:prim_generic, shared by every design. - The output root. Today output goes to
scratch/doris/. - Packages of vendored config (see Vendored IP).
More in the design file
scope: <top>, to put a design in a top that it is not below.
Variants
A variant of a flow, such as GTECH synthesis, is a named variant inside one flow config file, not a second config with overrides. Each variant is a small typed struct. An illustration for AES’s synthesis config, not a final syntax:
{
schema: dv/syn/1
tool: dc
constraints: constraints.sdc
variants: {
gtech: {
constraints: {
builtin: gtech
}
stop_after: compile
}
}
}
A variant is part of the job’s ID: syn/aes#gtech@dc.
JSON Schema
JSON Schema is generated from the same Rust types as the loader, with schemars, so editors can validate and autocomplete. One schema serves every file format: editors use it for HJSON and JSON directly, and for TOML through Taplo.
Better messages
- An unknown key names the nearest valid key. Today the message lists every valid key of the table.
- The checks the types can’t express, such as an unknown tool name, name the line as well as the file.
More file formats
- YAML (
.yaml,.yml), if asked for. YAML’s implicit typing (nobecomingfalse, version numbers becoming floats) is a common source of config bugs, and the Rust YAML crates are in flux. doris convert --to toml <file>rewrites a config in another format through the same value tree. HJSON comments are carried across to TOML and YAML where the position is unambiguous, and dropped otherwise with a warning. JSON has no comments, so converting to it drops them all.
More flow config files
Each planned flow has its own file and schema: syn.hjson with dv/syn/1, and the same for CDC, RDC and formal. They hold constraints, waivers and typed options, with tool-specific options under tools.