Skip to main content
Glama

set_breakpoint

Set conditional breakpoints in Xcelium simulations using Tcl expressions to pause execution when specific conditions occur, enabling targeted debugging of RTL and gate-level designs.

Instructions

Set a conditional breakpoint in the simulation.

Args: condition: Tcl expression (e.g. "{/tb/dut/state == 3}"). name: Optional breakpoint name.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
conditionYes
nameNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The 'set_breakpoint' tool handler, which constructs a Tcl 'stop' command and executes it via the simulation bridge.
    @mcp.tool()
    async def set_breakpoint(condition: str, name: str = "") -> str:
        """Set a conditional breakpoint in the simulation.
    
        Args:
            condition: Tcl expression (e.g. "{/tb/dut/state == 3}").
            name: Optional breakpoint name.
        """
        bridge = _get_bridge()
        cmd = f"stop -condition {condition}"
        if name:
            cmd += f" -name {name}"
        result = await bridge.execute(cmd)
        return f"Breakpoint set: {result}"

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