verilog_simulate
Compile and run Verilog testbench simulations with iverilog and vvp, catching runtime assertions and testbench errors while preventing infinite loops via timeout.
Instructions
Compiles and runs a behavioral testbench simulation using iverilog + vvp. Captures runtime assertions ($fatal), testbench errors, and protects against infinite loops with a timeout.
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_simulate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional working directory. | |
| files | Yes | List of Verilog source files including the design and testbench. | |
| dump_waves | No | Whether to record VCD waveforms. | |
| timeout_ms | No | Maximum simulation runtime in milliseconds before aborting (default: 15000). | |
| top_module | No | Name of the top-level testbench module. |