cursor_set
Position a waveform cursor at a specified simulation time to analyze signal behavior during debugging sessions.
Instructions
Set a waveform cursor to a specific time.
Args: time: Simulation time (e.g. "50ns"). cursor_name: Cursor name (default "TimeA").
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | Yes | ||
| cursor_name | No | TimeA |
Implementation Reference
- src/xcelium_mcp/server.py:276-288 (handler)The 'cursor_set' tool handler is implemented in 'server.py' as an async function decorated with '@mcp.tool()'. It uses the '_get_bridge' helper to communicate with SimVision via a Tcl command.
@mcp.tool() async def cursor_set(time: str, cursor_name: str = "TimeA") -> str: """Set a waveform cursor to a specific time. Args: time: Simulation time (e.g. "50ns"). cursor_name: Cursor name (default "TimeA"). """ bridge = _get_bridge() result = await bridge.execute( f"cursor set -using {cursor_name} -time {time}" ) return f"Cursor {cursor_name} set to {time}. {result}"