Skip to main content
Glama

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
NameRequiredDescriptionDefault
durationNo
timeoutNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • 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}"

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hslee-cmyk/xcelium-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server