run_tcl
Run arbitrary OpenSTA Tcl commands in a live session for static timing and power analysis, including slack, TNS/WNS, and fmax queries.
Instructions
Run any OpenSTA Tcl command(s) in the live session.
Rules:
OpenSTA syntax. Unsure of a command name? Use find_commands. Unsure of its options? Run
help <command>here first.Wrap bus bit names in braces: -to {reg_next_pc[31]}.
exec, exit, socket, source, cd and load are disabled. Files (reports via
> file, write_* commands) can be written only under the session directory shown by get_status.State changes made here (read_*, set_*, create_*, ...) stay in effect, start a new analysis state and are listed by get_conditions.
The script's Tcl return value is returned too, so
putsis not needed.Long output is truncated; narrow the query instead of asking for everything. timeout_s: 0 = no limit. sta is never restarted automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| timeout_s | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |