run_testbench
Run pass/fail testbenches against a running simulation to set pins, advance time, and verify digital, analog, frequency, duty, or wait conditions. Failures are reported without stopping the test.
Instructions
[probe] Run a pass/fail testbench against the running simulation. bench is a dict or a .json path: {"name", "steps": [{"set": {"PIN": "1"}}, {"run": 0.001}, {"expect": {"PIN": "0"}}, {"expect_analog": {"PIN": {"min": 4.5, "max": 5.5}}}, {"expect_frequency": {"pin": "P", "min_hz": 900, "max_hz": 1100}}, {"expect_duty": {...}}, {"wait_for": {"pin": "P", "value": "1", "timeout": 0.01, "poll": 0.0001}}]}. Failed expectations are reported, not raised. Needs sim_start and a probe on the named pins.
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": {
"bench": "<bench>"
},
"name": "run_testbench"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bench | Yes | ||
| vcd_path | No |