Digital Synthesize
digital_synthesizeSynthesize Verilog into a gate-level netlist with Yosys, then report cell counts by type, wire count, longest combinational path, and unit-gate area estimate for design analysis.
Instructions
Synthesise Verilog with Yosys to a generic gate-level netlist and report what came out: cell counts by type, wires, the longest combinational path in gate levels (Yosys ltp, flip-flops cut), and a unit-gate area estimate (a toolkit convention: NOT/AND/OR/NAND/NOR 1, XOR/XNOR 2, MUX 3, flip-flop 5; see data.area_model; not silicon area). Give Verilog as text in 'source' or as file paths in 'files' (.v/.sv, up to 20, 1 MB in all) and the name of the top module. 'target': 'structural' (no optimiser: the operators are expanded and the count follows the source exactly), 'optimized' (Yosys's default synth with ABC; smaller, but the count depends on ABC and the Yosys version), or 'abc_simple', 'abc_gates', 'abc_aig', 'abc_cmos2', 'abc_nand' (a chosen generic gate library). Same input, same Yosys version: same counts. The gate-level netlist (Verilog and JSON), the Yosys script and the log tail are written as artifacts. Needs Yosys installed by the user (see toolkit_doctor). `include and file-touching system tasks in the source are refused.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"top": "<top>"
},
"name": "digital_synthesize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | Yes | Name of the top module (letters, digits, underscore; at most 64 characters) | |
| 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 | |
| target | No | 'optimized' (default), 'structural', 'abc_simple', 'abc_gates', 'abc_aig', 'abc_cmos2' or 'abc_nand' | optimized |
| language | No | 'verilog' (Verilog-2005, default) or 'systemverilog' (Yosys's limited SystemVerilog subset) | verilog |
| timeout_seconds | No | Time limit for Yosys, 1 to 120 seconds (default 30); a design that needs more is refused |
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 |