sim_run
Run simulations in Cadence Xcelium for RTL and gate-level debugging, with optional duration settings and timeout controls.
Instructions
Run the simulation, optionally for a specified duration.
Args: duration: Simulation time to run (e.g. "100ns", "1us"). Empty = run until breakpoint or end. timeout: MCP response timeout in seconds (default 600s for gate-level sim support).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| duration | No | ||
| timeout | No |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- src/xcelium_mcp/server.py:77-92 (handler)The handler function for the `sim_run` MCP tool. It uses the `TclBridge` to execute a 'run' command in the SimVision simulator.
@mcp.tool() async def sim_run(duration: str = "", timeout: float = 600.0) -> str: """Run the simulation, optionally for a specified duration. Args: duration: Simulation time to run (e.g. "100ns", "1us"). Empty = run until breakpoint or end. timeout: MCP response timeout in seconds (default 600s for gate-level sim support). """ bridge = _get_bridge() cmd = f"run {duration}" if duration else "run" await bridge.execute(cmd, timeout=timeout) try: where = await bridge.execute("where") except (TclError, asyncio.TimeoutError, ConnectionError): where = "(position unknown)" return f"Simulation advanced. Current position: {where}"