/chip-design-dft:dftfrom chip-design-dft
Guides the complete DFT flow: scan architecture planning, scan insertion, ATPG pattern generation, MBIST for embedded memories, and JTAG boundary scan. Use when planning a DFT strategy or verifying chip testability.
Ships in chip-design-dft. 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.
digital-chip-design-agents:dft-orchestrator agent and pass the full user
request and any available context. Do not execute stages directly.dft-orchestrator mid-flow: do not spawn a new agent.
Treat this file as read-only — return the requested stage rules, sign-off
criteria, or loop-back guidance to the calling orchestrator.Spawning the orchestrator from within an active orchestrator run causes recursive delegation and must never happen.
<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>/dft/knowledge.md — known failure patterns, successful tool flags, PDK/tool quirks.
Incorporate its guidance into every stage decision. If absent, proceed without it.<MEM>/dft/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.
Guide the complete DFT flow from architecture planning through ATPG pattern generation, BIST insertion, JTAG setup, and sign-off. Ensures the manufactured chip meets quality targets (fault coverage and DPPM).
yosys) — basic scan insertion for open-source flowsopenroad) — scan insertion within the OpenROAD/ORFS flowtmax, dialect synopsys) — pattern generation, fault simulation, and compressionmodus, dialect cadence) — ATPG, scan DRC, and diagnosistessent, dialect siemens) — full DFT suite: scan, ATPG, MBIST, IJTAG.
See Tool Notes: Siemens Tessent below for the flow and its trapsCheck the RTL or pre-DFT netlist for constructs that block scan. Each is owned by the RTL flow, not by scan insertion:
assign gclk = clk & en;) — gated flops are unreachable in scan modetest_en / scan_en) OR-ed into the enableReport each finding with the instance and the rule above. A finding that insertion can
repair (a test point, a tool-inserted reset or clock mux) is planned into scan_insertion;
one that needs an RTL change is handed back to the RTL flow — do not edit the RTL here.
scan_en (SE): primary input, must be controllable from ATEscan_in[] (SDI): one per chainscan_out[] (SDO): one per chaintest_clk: separate from functional clock or gated version| Fault Model | Target Coverage |
|---|---|
| Stuck-at (SAF) | ≥ design_state.constraints.dft.saf_coverage_pct% (default: 99%) |
| Transition Delay | ≥ design_state.constraints.dft.transition_coverage_pct% (default: 95%) |
| Cell-Aware | ≥ design_state.constraints.dft.cell_aware_coverage_pct% (default: 95%) |
| Bridging | ≥ design_state.constraints.dft.bridging_coverage_pct% (default: 90%) |
| Path Delay | Critical paths only |
20 of 1574), never as the full setdesign_state.constraints.dft.saf_coverage_pct% (default: 99%)design_state.constraints.dft.transition_coverage_pct% (default: 95%)reduced_address_count on); a
fault proof run that way misses faults outside the reduced rangedesign_state.constraints.dft.mbist_coverage_pct% (default: 99%)design_state.constraints.dft.saf_coverage_pct% (default: 99%)design_state.constraints.dft.transition_coverage_pct% (default: 95%)design_state.constraints.dft.mbist_coverage_pct% (default: 99%)Tessent's modern flow is context-based. The legacy add_scan_groups / add_scan_chains dofile
path can run to completion and insert nothing, so check the inserted-cell count, not the exit
status. Measured on Tessent 2025.4.
tessent -shell -dofile <f>.do -log <f>.log -replace < /dev/null. Without
< /dev/null the shell waits on stdin after an aborted dofile and the job hangs. Without
-replace an old log survives and reads like a result. Confirm the log's timestamp is this run'sadd_processors -number)share/UsageExamples) as read-only
reference; copy what you adapt into the projectread_liberty supplies cell attributes only. Cell behaviour comes from Verilog models
compiled with LibComp (libcomp <models.v> -dofile ... < /dev/null) into an .atpglib;
read that with read_cell_library, add read_liberty, and save both with
write_cell_library ... -include_created_dft_cell_selections to a .tcelllib that the
scan and patterns contexts read. Fail the step on any // Error line in the LibComp logassign y = a; buffer is modelled as a wire,
and the cell then fails the tool's buffer checkdft_cell_selection. The auto-generated one can pick special-purpose cells (for
sky130, lpflow_* low-power cells). A buffer, inverter, 2:1 mux and lockup latch must be
named explicitlyset_context dft -scan -no_rtl -design_id gate, read_cell_library <.tcelllib>, read the
netlist, set_current_design, define clocks, set_scan_enable, then
set_system_mode analysis (scan DRC runs here)add_scan_mode <name> -chain_count N -si_connections [get_ports ...] -so_connections [get_ports ...] to bind chains to existing scan ports, then analyze_scan_chains,
insert_test_logic, write_design -tsdb. If port binding fails and a script falls back
to tool-created ports, report it: the chains no longer use the architecture's portsset_context patterns -scan, read_design <design> -design_id gate,
import_scan_mode <name>, then pattern generation per fault modelset_context dft -rtl -design_id rtl1; read the RTL and a memory library of TCD
(tcd_memory) descriptions, one per memory macrocheck_design_rules, create_dft_specification, edit it with set_config_value if needed,
process_dft_specificationextract_icl, create_patterns_specification, process_patterns_specificationrun_testbench_simulations -simulator vcs (or the simulator in use)lib/tools/etv/membistipg_algos/, share/UsageExamples/*.tgz); read them before writing a TCDLogicalPorts lists read, write, then read-write ports in that order
([nR][nW][nRW]); without column address bits, BitGrouping is forced and cannot be setDFT_C1-1: every memory clock must trace from a primary input. A hand-instantiated library
clock cell (a clock gate) is a black box to the trace unless its model is readSee plugins/meta/skills/pipeline-orchestration/SKILL.md §Constraints Schema for the authoritative schema and stage-entry validation rule.
No required keys for DFT — all constraints in this domain are optional with schema defaults.
Optional (schema defaults apply when absent):
constraints.dft.saf_coverage_pct (default: 99) — stuck-at fault coverage target %constraints.dft.transition_coverage_pct (default: 95) — transition delay coverage target %constraints.dft.cell_aware_coverage_pct (default: 95) — cell-aware fault coverage target %constraints.dft.bridging_coverage_pct (default: 90) — bridging fault coverage target %constraints.dft.mbist_coverage_pct (default: 99) — MBIST memory fault coverage target %constraints.dft.chain_balance_pct (default: 5) — max chain length deviation %Tag constraint_ref in history entries when evaluating QoR against these values (e.g. "dft.saf_coverage_pct").
After each stage completes (regardless of whether an orchestrator session is active),
write or overwrite one JSON record in <MEM>/dft/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 = dft_<YYYYMMDD>_<HHMMSS> (set once at flow start; reuse on each
stage update). Every JSON record written must include a top-level "run_id" field
whose value matches this key — reject or regenerate if missing before writing. Set
signoff_achieved: false until the final sign-off stage completes.
Write <MEM>/dft/run_state.md as the first action before launching any tool:
run_id: dft_<YYYYMMDD>_<HHMMSS>
design_name: <design>
tool: <primary tool>
start_time: <ISO-8601>
last_stage: null
Update last_stage to the completed stage name only after each stage finishes successfully.
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-dft-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-dftOther plugins' skills for the same job