deposit_value
Force-deposit specific values onto signals during Xcelium simulations to control signal states for debugging and testing purposes.
Instructions
Force-deposit a value onto a signal.
Args: signal: Full hierarchical signal path. value: Value to deposit (e.g. "1'b1", "8'hFF", "0").
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signal | Yes | ||
| value | Yes |
Implementation Reference
- src/xcelium_mcp/server.py:209-221 (handler)The handler implementation for the 'deposit_value' tool. It uses the TclBridge to execute a 'deposit' command on the simulator and verifies the result by reading the signal value back.
@mcp.tool() async def deposit_value(signal: str, value: str) -> str: """Force-deposit a value onto a signal. Args: signal: Full hierarchical signal path. value: Value to deposit (e.g. "1'b1", "8'hFF", "0"). """ bridge = _get_bridge() await bridge.execute(f"deposit {signal} {value}") # Verify readback = await bridge.execute(f"value {signal}") return f"Deposited {value} on {signal}. Readback: {readback}"