time_to_cycle
Map any timestamp to the latest clock cycle at or before that time, using a specified clock signal and edge. Helps align signal events with clock cycles in VCD waveform analysis.
Instructions
Map a time to the latest clock cycle at or before that time.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"clock": "<clock>",
"time": "<time>"
},
"name": "time_to_cycle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edge | No | rise or fall; default rise | |
| time | Yes | Query time | |
| clock | Yes | Clock signal |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| status | Yes | ||
| summary | Yes | ||
| confidence | No | ||
| limitations | No |