verilog_compile
Check Verilog syntax and elaboration using iverilog or Verilator, with optional top module specification, skipping full simulation to quickly catch errors.
Instructions
Performs syntax validation and elaboration checking on Verilog files using iverilog or verilator without running full simulation.
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": {
"files": "<files>"
},
"name": "verilog_compile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional working directory. | |
| files | Yes | List of Verilog source files to compile. | |
| compiler | No | Compiler engine to use ('iverilog' or 'verilator'). Defaults to 'iverilog'. | |
| top_module | No | Top-level module name for elaboration. |