analyze_failures
Pinpoint the first failure in a simulation log, then retrieve error context and a waveform snapshot around the failure time to debug RTL testbench issues.
Instructions
Core failure-analysis tool. Focuses on the first occurrence of a single failure group and returns the log summary, raw error context, and waveform snapshot. FSDB support depends on fsdb_runtime.enabled.
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": {
"log_path": "<log_path>",
"wave_path": "<wave_path>",
"signal_paths": "<signal_paths>",
"simulator": "<simulator>"
},
"name": "analyze_failures"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log_path | Yes | Simulation log path, for example irun.log | |
| simulator | Yes | vcs / xcelium | |
| wave_path | Yes | Waveform file path, for example top_tb.fsdb | |
| window_ps | No | Waveform window around each failure time in ps. Default: 2000 | |
| group_index | No | Failure group index to analyze. Default: 0 | |
| signal_paths | Yes | Signal paths to inspect. Clients should confirm full paths with search_signals after inferring candidates from RTL or log output. | |
| extra_transitions | No | Extra transitions to include before the window for each signal. Default: 5 |