Skip to main content
Glama

shutdown_simulator

Safely shut down the Xcelium simulator to preserve SHM waveform data during debug sessions. Use this tool to close databases and terminate simulations without losing critical debugging information.

Instructions

Safely shutdown the simulator, preserving SHM waveform data.

Closes all SHM databases and terminates xmsim gracefully. Always use this instead of disconnect_simulator when ending a debug session. WARNING: exit or pkill will lose SHM data. This is the only safe way.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • Implementation of the shutdown_simulator tool, which safely shuts down the simulator using the bridge and clears the connection.
    async def shutdown_simulator() -> str:
        """Safely shutdown the simulator, preserving SHM waveform data.
    
        Closes all SHM databases and terminates xmsim gracefully.
        Always use this instead of disconnect_simulator when ending a debug session.
        WARNING: exit or pkill will lose SHM data. This is the only safe way.
        """
        global _bridge
        bridge = _get_bridge()
        try:
            resp = await bridge.execute_safe("__SHUTDOWN__")
            return f"Simulator shutdown: {resp.body}"
        except (ConnectionError, asyncio.TimeoutError):
            return "Simulator shutdown completed (connection closed)."
        finally:
            _bridge = None

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