/chip-design-synthesis:logic-synthesisfrom chip-design-synthesis
Guides logic synthesis from RTL to gate-level netlist for ASIC flows. Covers SDC constraint validation, compile/optimisation strategy, netlist quality checks, and LEC equivalence verification.
Ships in chip-design-synthesis. 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:synthesis-orchestrator agent and pass the full
user request and any available context. Do not execute stages directly.synthesis-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>/synthesis/knowledge.md — known failure patterns, successful tool flags, PDK/tool quirks.
Incorporate its guidance into every stage decision. If absent, proceed without it.<MEM>/synthesis/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.
Produce a timing-clean, area-efficient, LEC-verified gate-level netlist from RTL. Covers constraint setup, synthesis compilation strategy, and quality checks before PD handoff.
yosys) — open-source synthesis suite; runs as a sequential pass pipeline (see sequential flow note below)surelog) — SystemVerilog front-end for Yosysdc_shell, dialect synopsys) — industry-standard logic synthesisgenus, dialect cadence) — RTL-to-netlist with concurrent optimisationfc_shell, dialect synopsys) — combined synthesis and physical guidanceWrappers: wrap-dc.sh and wrap-genus.sh (Fusion Compiler through wrap-icc2.sh with
WRAP_ICC2_TOOL=fc_shell). Prove a netlist with LEC (wrap-fm.sh / wrap-lec.sh) before
handing it to PD.
Measured on one host (8 vCPU, 15 GB) on a Sky130 sky130_fd_sc_hd CPU macro of about 30k
cells with 10 OpenRAM SRAM hard macros, 2 cores per tool, one licensed tool at a time (see the
infrastructure skill, Licensed tools on a small shared host). Versions: DC-NXT
X-2025.06-SP3, Genus 23.14-s090_1, PrimeTime X-2025.06 for the neutral probe.
Fusion Compiler was not run: fc_shell synthesis is compile_fusion (stepwise with
-to/-from) in the same NDM design library the back end continues from, and
compile_ultra is not the FC command; nothing about FC below is measured.
Design Compiler, topographical on NDM.
dc_shell -topographical_mode is the Milkyway flow: it has no create_lib (CMD-005) and
cannot read NDM reference libraries. NDM topographical synthesis runs in
dcnxt_shell -topographical_mode -f <script.tcl>. Build the .db/NDM views first
(physical-design skill, ## PDK Enablement)set_tlu_plus_files -max_tluplus <f> -min_tluplus <f> -tech2itf_map <map> then
check_tlu_plus_files (all three checks must pass). read_parasitic_tech does not exist in
dcnxt_shell. Set the TLU+ before extract_physical_constraints, or the floorplan step
runs without RC (PSYN-100 per layer)extract_physical_constraints <fp.def> for die, rows and pins. A DEF cannot
name a generate-scope cell (gen_data_sram[i].u_data_sram), so place macros with
set_cell_location -fixed and set_dont_touch them. Routing layers with set_ignored_layersset_svf <file> before analyze, set_svf -off at the end; Formality needs this SVF to
match DC's constant-register removals and merges (without it 143 registers stay unmatched)analyze -format sverilog + elaborate read the RTL natively (struct-member part-selects
elaborated clean, checked by LEC). Compile: compile_ultra -spg, then
change_names -rules verilog -hierarchy. set_dont_use */<cell> is rejected (UID-109): use
set_dont_use [get_lib_cells */<cell>]write_parasitics -format spef is not valid in DC (WP-1). write_sdc after SPG carries about
69k per-pin annotations: do not hand it to P&R as the constraints file, use the source SDCcompile_ultra -spg 219 s, session 9 min, peak RSS 1.4-1.6 GBset_max_area 0, DC met 0 ps at tt with a ~30-cell fa_1/fah_1 ripple-carry PC
adder, and the netlist was -10.5 ns at ss zero-wire (Yosys -1.9, Genus +0.6). DC stops at
slack 0 and recovers area, so "+0.00" is not headroom. The fix was MCMM:
create_scenario setup ss (max TLU+) + tt (nom), hold ff (min) + tt, the same SDC read
per scenario, set_fix_hold [get_clocks <clk>] in the hold scenarios (DC repairs hold only
when asked). Result +1.16 ns at ss for +10 % std-cell area; Formality still EQUIVALENTGenus, physically aware.
genus -no_gui -overwrite -f <script.tcl>: read_mmmc <mmmc.tcl>, read_physical -lef (tech LEF,
cell LEF, macro LEFs), read_hdl -sv -define <defines> <files>, elaborate, read_def <fp.def>, then
syn_generic -physical (453 s), syn_map -physical (161 s), syn_opt (51 s); peak RSS
2.0 GB. Output with write_hdl, write_sdc -view <view> (needs -view in MMMC) and
write_do_lec (the Conformal do-file; see the formal skill)create_timing_condition + create_delay_corner -timing_condition; Innovus 23.1x rejects
that form (TCLCMD-992) and wants -library_set. One shared MMMC file must branch on the tool.location is read-only: place macros with read_def -incremental <macros.def>
and set preserve on them. Dont-use is set_db [get_db base_cells <c>] .dont_use truesyn_opt -spatial (iSpatial) fails with PHYS-1015 without a qrcTechFile (it needs
probabilistic extraction); run plain physical-aware syn_opt and record itset_max_area 0 is ignored by Genus (SDC-200) and honoured by DC, which favours
DC on area in a comparisonreport_timing forms, report_summary and write_def failed and
report_power has no -depth: wrap every report and output in catch/try so one failed
report does not lose the netlistJudge synthesis netlists across corners before choosing a re-run. Time each netlist in PrimeTime at every library corner with an ideal clock, no parasitics and the shared SDC (46 s for three netlists x two corners). That separates an intrinsically slow netlist from a wire problem: here it confirmed DC's tt-only weakness and refuted it for Genus (+0.6 ns at ss), so only DC got an MCMM re-run.
Yosys runs its synthesis script (yosys -c synth.ys or yosys -p "synth_*") as a
sequential pass pipeline. Each pass (read_verilog → synth → opt → techmap → abc →
write_verilog) executes in order; errors or warnings in early passes propagate forward.
After a Yosys run the agent must:
yosys.log) for:
Warning: / Error: lines per pass$-prefixed cell names in the output netlist)synth_netlist.v) exists and is non-emptyreport_area / report_timing output if ABC timing mode (abc -constr) was usedWhen used inside OpenROAD Flow Scripts (ORFS) or LibreLane, the Yosys log appears at:
logs/<platform>/<design>/1_1_yosys.log
create_clock: all primary clocks with period, waveform, source pin, namecreate_generated_clock: all derived/divided clocks with correct sourceset_clock_uncertainty: setup = skew + jitter — use design_state.constraints.timing.clk_uncertainty_ps if set; otherwise 200–500 ps pre-CTS (default: see constraints.timing.clk_uncertainty_ps, schema default null → use 200–500 ps rule-of-thumb)set_input_delay / set_output_delay: all primary IOs constrainedset_false_path: multi-clock crossings, test modes, async resetsset_multicycle_path: both setup (-setup N) and hold (-hold 1) must be setset_dont_touch: IPs, memory macros, hand-crafted cellsset_max_fanout: from design_state.constraints.timing.fanout_max (default: 32)set_max_transition: per technology DRC rule| Mistake | Consequence |
|---|---|
| Missing generated clock | Path unconstrained — may miss timing |
| MCP without hold correction | Hold violations introduced |
| False path too broad | Real timing issues masked |
| No operating conditions set | Wrong library corner used |
report_clocks)report_port -verbose)report_timing -unconstrained)| Priority | Approach |
|---|---|
| Timing | compile_ultra, path_group weighting, retiming |
| Area | High area_effort, resource sharing |
| Power | Clock gating insertion, power-aware compile |
| Balanced | compile_ultra -no_autoungroup + incremental |
design_state.constraints.timing.wns_ns_target at worst-case corner for sign-off (default: 0)design_state.constraints.timing.tns_ns_target for clean sign-off (default: 0)design_state.constraints.area.area_um2 budget (comparison run: recorded, not judged)design_state.constraints.power.power_mw budget (comparison run: recorded, not judged)input_setupreport_loop)design_state.constraints.timing.wns_ns_target at all required corners (default: 0)design_state.constraints.timing.tns_ns_target (default: 0)design_state.constraints.area.area_um2 budgetdesign_state.constraints.power.power_mw budgetSee plugins/meta/skills/pipeline-orchestration/SKILL.md §Constraints Schema for the authoritative schema and stage-entry validation rule.
Required at entry (constraint_setup) — hard-fail if missing:
constraints.clock.clk_mhz — target clock frequency (drives SDC create_clock)constraints.area.area_um2 — area budgetconstraints.power.power_mw — power budgetComparison / benchmark runs (pipeline_config.comparison_run: true, or a user request
that is a tool-vs-tool comparison rather than a product build): area.area_um2 and
power.power_mw may be absent. Record "comparison run, no target" for each in the stage
reason, report the measured area and power, and do not escalate. clock.clk_mhz stays
required — every compared synthesis must use the same clock.
Optional (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.fanout_max (default: 32) — set_max_fanout valueconstraints.timing.clk_uncertainty_ps (default: null → use 200–500 ps rule-of-thumb)After each stage completes (regardless of whether an orchestrator session is active),
upsert one JSON record in <MEM>/synthesis/experiences.jsonl keyed by run_id.
Implement the upsert by rewriting the file: read all existing lines, filter out any
record(s) with the same run_id, append the updated record, write the full content
back atomically (replace the file). Every record must include a top-level "run_id"
field with format synthesis_<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>/synthesis/run_state.md as the first action before launching any tool:
run_id: synthesis_<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-synthesis-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
npx claudepluginhub hdl-tools/digital-chip-design-agents --plugin chip-design-synthesisOther plugins' skills for the same job