/chip-design-sta:stafrom chip-design-sta
Guides multi-corner static timing analysis: constraint validation, setup/hold analysis, exception review, and ECO closure. Use when reviewing timing violations or performing sign-off.
Ships in chip-design-sta. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
When this skill is loaded and a user presents a timing analysis task, do not
execute stages directly. Immediately spawn the
digital-chip-design-agents:sta-orchestrator agent and pass the full user
request and any available context to it. The orchestrator enforces the stage
sequence, loop-back rules, and sign-off criteria defined below.
Use the domain rules in this file only when the orchestrator reads this skill mid-flow for stage-specific guidance, or when the user asks a targeted reference question rather than requesting a full flow execution.
<MEM> below is the resolved memory root, never the literal memory/ directory: an
explicit --memory-root, else $CHIP_DESIGN_MEMORY_ROOT, else the central default, else
the in-repo seed (python3 plugins/infrastructure/skills/memory-keeper/memory_root.py
prints it; the orchestrator's ## Memory section is authoritative).
Before executing or advising on any stage, read the following files if they exist:
<MEM>/sta/knowledge.md — known failure patterns, successful tool flags, PDK/tool quirks.
Incorporate its guidance into every stage decision. If absent, proceed without it.<MEM>/sta/run_state.md — current run identity (run_id, design_name, tool,
last_stage). Use this to resume correctly after interruption. If absent, a new run
is starting; the orchestrator will create this file before the first stage.This pre-run read applies whether this skill is loaded by a user or called by the orchestrator mid-flow. It ensures the fix database is consulted before any diagnosis step.
Multi-corner, multi-mode timing analysis, exception review, ECO-guided closure, and timing sign-off. WNS ≥ 0 and TNS = 0 at all corners required for tape-out.
sta) — standalone open-source STA; runs tcl scripts in batch mode (see sequential flow note below)openroad -no_init) — STA within the OpenROAD PD flow; runs sequentially via tcl scriptpt_shell, dialect synopsys) — gold-standard multi-corner STA and power analysistempus, dialect cadence) — concurrent multi-mode multi-corner STA with ECO guidance;
optional, absent on some hosts — use PrimeTime thereStarXtract, dialect synopsys) — extraction that produces the SPEF read here
(wrapper wrap-starrc.sh); the PD flow's extraction stage owns itOpenSTA (sta) and the OpenROAD STA subsystem (openroad -no_init) execute tcl script
commands sequentially. When run in batch mode the agent must parse the output log to
extract timing results — there is no interactive prompt to query mid-run.
Key log patterns to parse after run completion:
report_timing output → extract WNS (worst negative slack) and critical pathreport_tns output → extract TNS (total negative slack) per cornerreport_clock_skew output → global skew and insertion delay per clock groupcheck_timing → missing constraints, unconstrained endpoints, loopsBatch invocation:
opensta -no_splash -exit timing_check.tcl > sta.log 2>&1
# or via OpenROAD:
openroad -no_init -exit sta.tcl > sta.log 2>&1
Parse sta.log after completion. Apply loop-back rules (ECO guidance stage) if
setup/hold violations are found.
Measured with PrimeTime X-2025.06 (pt_shell, through wrap-pt.sh) as the judge for three
P&R flows of one Sky130 CPU macro, on StarRC X-2025.06-SP1 SPEFs: 27 runs per flow (9 corners x 3
SDC variants), one pt_shell per (library corner, RC corner), 2 cores, 8-43 s wall and
1.0-1.3 GB RSS per run, one licensed tool at a time. The flow, per run:
set_app_var search_path / link_path {* <stdcell corner>.db <every macro>.db}; a macro
with a single characterisation (TT-only SRAM) is linked at every corner and that limitation
is written next to every ss/ff figure. Physical-only cells (fill, tap, decap_12) are not in
the .db and are black-boxed (LNK-005), harmlessread_verilog + current_design + link_design; assert the SDC md5 inside the script and
abort on mismatch, then read_sdc; set_propagated_clock on the real clocks only (a
propagated virtual clock ignores its network latency)read_parasitics -format spef <spef> of the RC corner paired with the library corner. The
9-corner matrix was every pairing of {tt, ss, ff} with {nom, min, max}; the pairing is
written in each run's metrics. Copy the SPEF into the run directory and record its md5
before and after the copy, so a SPEF replaced mid-sweep is caughtupdate_timing, then the annotation gate: report_annotated_parasitics -check -internal_nets -boundary_nets -driverless_nets -loadless_nets -pin_to_pin_nets, gated on the
pin-to-pin row (PT splits out driverless and loadless nets, which have no timing arc), plus
the same report with -list_not_annotated on the clock nets (get_nets -of_objects [all_fanout -flat -clock_tree]; -clock_tree takes no -from). read_parasitics writes
its own summary to parasitics_command.log in the cwd, not stdout. Result here: 0
unannotated pin-to-pin nets in every run. SPEF nets absent from the netlist (PARA-124, e.g.
ICC2 _dummynet*) are counted, not failedcheck_timing -verbose, report_global_timing, report_qor, report_constraint -all_violators -max_transition -max_capacitance, and per-endpoint WNS/TNS/violators from
get_timing_paths -delay_type max|min -max_paths 1000000 -nworst 1 -slack_lesser_than 0.
report_global_timing prints No setup violations found. instead of a table when clean;
set_app_var report_default_significant_digits 4 (the default 2 hid a -0.0046 ns slack).
Its reg-to-reg / in-to-reg categories move when I/O constraints change: for a reg-to-reg
figure use explicit -from [all_registers] -to [all_registers]read_sdc aborted
produced a "done" run with empty metrics until this check was addedread_sdc stops at the first unsupported command and drops everything after it, without
failing the session. An Innovus-exported SDC is not PT-readable as is: remove the
current_design line and replace get_designs with current_design, then diff the result.
The first own-SDC results (+2.85 / +0.34 ns) came from a half-read SDC and were invalidwrite_sdc added
set_clock_latency 1.77814 "for io paths" (-origin useful_skew) that the shared SDC lacks
(a 1.2 ns native-vs-judge hold gap on I/O); Innovus keeps I/O latency in each view's
latency.sdc and exports only part of it. Diff every tool-written SDC against the shared one
and record each variant's md5 (shared / I/O-latency variant / the tool's own); rank flows only
on the shared SDC, and report the others as diagnosticsset_app_var power_enable_analysis true, power_analysis_mode averaged,
vectorless with power_default_toggle_rate 0.1 and power_default_static_probability 0.5,
update_power, report_power -nosplit. PT propagates activity through registers from D;
OpenSTA gives register outputs the default activity, a 15 % difference on the same design.
Adding set_switching_activity -toggle_rate 0.1 -static_probability 0.5 -base_clock <clk> [all_registers -output_pins] matched OpenSTA within 2-3 %. With PT's own default the judge
reproduced ICC2's native power (same engine) to 0.3 %. State which activity a number usesWhen the timing or power of designs implemented by different tools is compared (for example Innovus vs ICC2 vs OpenROAD/LibreLane on one netlist and PDK), every flow is judged the same way, or the comparison measures the judges rather than the implementations:
sta.sdc_md5). A tool-specific SDC variant is a different experimentextraction in the PD flow). A tool's built-in
extraction is nativesta.engine),
with the same libraries, corners and deratesnative (sta.judged_by). They are useful
for diagnosing a flow and are never ranked against another flow's signoff numbersreport_timing -unconstrained–setup N and –hold 1 specified| Error | Consequence |
|---|---|
| MCP without hold correction | Hold violations introduced |
| False path too broad | Real timing issues masked |
| Generated clock missing | Path unconstrained |
| Wrong clock period | Over/under-constraining |
Corners are driven by design_state.constraints.pvt_corners[]. The table below shows the
default corners used when pvt_corners is absent or contains no entries with non-null V/T:
| Mode | Setup Corner | Hold Corner |
|---|---|---|
| Functional | SS/0.9V/125°C (default) | FF/1.1V/−40°C (default) |
| Test (at-speed) | SS/0.9V/125°C (default) | FF/1.1V/25°C (default) |
| Low Power | SS/0.9V/125°C (default) | FF/1.1V/25°C (default) |
When pvt_corners is populated, use every entry with "checks": ["setup"] for setup and
every entry with "checks": ["hold"] for hold; the defaults above are the fallback.
report_annotated_parasitics, or the engine's equivalent): > 1 % of signal nets or any
clock net unannotated is a FAIL of this stage (input_setup), whatever the slack says. An
STA run on mostly unannotated nets reports clean timing that is falsept_shell) or OpenSTA (sta) is then the engine. Name
the engine and version with every figure| Metric | Target |
|---|---|
| Setup WNS | ≥ design_state.constraints.timing.wns_ns_target (default: 0) all corners |
| Setup TNS | = design_state.constraints.timing.tns_ns_target (default: 0) all corners |
| Hold WNS | ≥ design_state.constraints.timing.wns_ns_target (default: 0) all corners |
| Hold TNS | = design_state.constraints.timing.tns_ns_target (default: 0) all corners |
set_false_path: verify the path is truly non-functional (not just inconvenient)set_multicycle_path: verify both -setup N and -hold 1 are set correctlyset_max_delay: verify value matches system-level timing budget| Error | Consequence |
|---|---|
set_false_path on functional CDC | Real metastability risk hidden |
| MCP without hold correction | Hold violations introduced silently |
| Exception too broad (glob match) | Unintended paths unconstrained |
| Expired exception (removed logic) | Stale SDC — may mask other issues |
Setup violation:
Logic depth > target? → Retime / add pipeline stage
Long wire (> 500μm)? → Buffer insertion / reroute on upper metal
Weak driver? → Upsize driver cell
High-Vt on critical path? → Swap to SVT or LVT
Reconvergent fanout? → Clone cell / split net
Hold violation:
Skew-induced (post-CTS)? → Useful skew / targeted delay buffer
Short path (< 1 cycle)? → Insert HVT delay buffer
New path from ECO? → Targeted hold buffer at sink register
design_state.constraints.timing.wns_ns_target (default: 0) at all cornersdesign_state.constraints.timing.tns_ns_target (default: 0) at all cornersdesign_state.constraints.timing.wns_ns_target (default: 0) at all cornersdesign_state.constraints.timing.tns_ns_target (default: 0) at all cornersSee plugins/meta/skills/pipeline-orchestration/SKILL.md §Constraints Schema for the authoritative schema and stage-entry validation rule.
Required at entry (constraint_validation) — hard-fail if missing:
constraints.clock.clk_mhz — clock frequency used to interpret timing resultsconstraints.pvt_corners — at least one entry with non-null voltage_v and temp_c; missing or invalid entries should hard-fail during constraint_validationOptional (schema defaults apply when absent):
constraints.timing.wns_ns_target (default: 0) — WNS sign-off thresholdconstraints.timing.tns_ns_target (default: 0) — TNS sign-off thresholdconstraints.timing.skew_ps_max (default: 100) — CTS skew limitconstraints.timing.transition_ps_max (default: 200) — max clock transitionconstraints.timing.insertion_delay_ps_max (default: 500) — max insertion delayAfter each stage completes (regardless of whether an orchestrator session is active),
write or overwrite one JSON record in <MEM>/sta/experiences.jsonl keyed by
run_id. This ensures data is persisted even if the flow is interrupted or called
without full orchestrator context.
Use run_id = sta_<YYYYMMDD>_<HHMMSS> (set once at flow start; reuse on each
stage update). Set signoff_achieved: false until the final sign-off stage completes.
Write <MEM>/sta/run_state.md as the first action before launching any tool:
run_id: sta_<YYYYMMDD>_<HHMMSS>
design_name: <design>
tool: <primary tool>
start_time: <ISO-8601>
last_stage: <first stage name>
Update last_stage after each stage completes. This file lets wakeup-loop prompts
and resumed sessions identify the correct run without relying on in-memory state.
Create the file and parent directories if they do not exist.
If mcp__plugin_ecc_memory__add_observations is available in this session, emit each
applied fix as an observation to entity chip-design-sta-fixes after writing to
experiences.jsonl. Skip silently if the tool is absent — JSONL is the canonical record.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub hdl-tools/digital-chip-design-agents --plugin chip-design-staOther plugins' skills for the same job