Digital Check
digital_checkLint Verilog with Yosys to catch syntax errors, undriven or multi-driven wires, inferred latches, combinational loops, hierarchy issues and port width mismatches, with file, line and severity for each finding.
Instructions
Lint Verilog with Yosys, without synthesis goals: syntax errors with file and line, hierarchy problems (missing module, wrong port name), undriven wires, wires with several drivers, latches inferred by an incomplete if or case, combinational loops (also through module boundaries), implicit declarations (a misspelt name that became a wire) and port width mismatches. Each finding has severity ('error' or 'warning'), a rule id, file, line (null when Yosys gave none), module, signal and a hint. The call succeeds (ok=true) when the check ran, even if it found errors: read data.findings and values.errors. A syntax error is one finding (Yosys stops at the first). Give Verilog as text in 'source' or as file paths in 'files' (.v/.sv, up to 20). 'top' is optional (empty = check every module). Not a full linter: it reports what Yosys reports. Needs Yosys installed by the user. `include and file-touching system tasks in the source are refused.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "digital_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Name of the top module; empty = check all modules | |
| files | No | Paths of Verilog files (.v or .sv), separated by ';' or line breaks, or a JSON list. Up to 20; 1 MB in all with 'source' | |
| source | No | Verilog source text. Empty if 'files' is given | |
| language | No | 'verilog' (Verilog-2005, default) or 'systemverilog' | verilog |
| timeout_seconds | No | Time limit for Yosys, 1 to 120 seconds (default 30) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | Non-quantity payload (reports, listings) | |
| error | No | ||
| value | No | Primary quantity result | |
| values | No | All named quantity results (includes the primary) | |
| warnings | No | ||
| artifacts | No | ||
| provenance | Yes | What produced the result and from which inputs. | |
| review_status | No | unreviewed |