Loading...
Loading...
Compare original and translation side by side
| Skill | Purpose |
|---|---|
| Schematic/PCB analysis — produces the analyzer JSON this skill consumes |
| Thermal hotspot analysis — MLCC derating and ferrite/inductor overheating findings can amplify EMC decoupling and filter issues (an over-stressed MLCC degrades; a hot ferrite drifts impedance). Worth cross-checking when EMC flags DC-001/DC-002 or EF-001/EF-002. |
| SPICE simulation — provides simulator backend for SPICE-enhanced PDN/filter checks |
kicadanalyze_schematic.pyanalyze_pcb.py--full| 工具 | 用途 |
|---|---|
| 原理图/PCB分析——生成本工具所需的分析器JSON文件 |
| 热热点分析——MLCC降额和铁氧体/电感器过热问题会加剧EMC去耦和滤波问题(过载的MLCC性能会下降;过热的铁氧体阻抗会漂移)。当EMC标记DC-001/DC-002或EF-001/EF-002时,值得交叉检查。 |
| SPICE仿真——为SPICE增强型PDN/滤波检查提供仿真后端 |
kicadanalyze_schematic.pyanalyze_pcb.py--fullanalyze_schematic.py --outputanalyze_pcb.py --full --output--fullanalyze_schematic.py --outputanalyze_pcb.py --full --output--fullpython3 <kicad-skill-path>/scripts/analyze_schematic.py design.kicad_sch --analysis-dir analysis/
python3 <kicad-skill-path>/scripts/analyze_pcb.py design.kicad_pcb --full --analysis-dir analysis/python3 <kicad工具路径>/scripts/analyze_schematic.py design.kicad_sch --analysis-dir analysis/
python3 <kicad工具路径>/scripts/analyze_pcb.py design.kicad_pcb --full --analysis-dir analysis/--analysis-dir analysis/schematic.jsonpcb.jsonemc.jsonundefined--analysis-dir analysis/schematic.jsonpcb.jsonemc.jsonundefinedundefinedundefinedreferences/pcb-emc-rules.md| Category | Rules | What it detects |
|---|---|---|
| Ground plane | GP-001 to GP-005 | Signal crossing voids, zone fragmentation, missing ground planes, low fill ratio, multiple ground domains |
| Decoupling | DC-001 to DC-003 | Cap too far from IC, IC with no decoupling cap, cap too far from via |
| I/O filtering | IO-001, IO-002 | Connector without filtering, insufficient ground pins |
| Switching EMC | SW-001 to SW-003 | Harmonic overlap, switching node copper area, input cap loop area |
| Clock routing | CK-001 to CK-003 | Clock on outer layer, long trace, clock near connector |
| Via stitching | VS-001 | Ground via spacing exceeds λ/20 at highest frequency |
| Stackup | SU-001 to SU-003 | Adjacent signal layers, signal far from reference plane, thin interplane capacitance |
| Diff pair | DP-001 to DP-004 | Intra-pair skew vs protocol limits, CM radiation, reference plane change, outer layer routing |
| Board edge | BE-001 to BE-003 | Signal near edge, incomplete ground pour ring, connector area stitching |
| PDN impedance | PD-001 to PD-004 | Anti-resonance peaks, distributed rail impedance at IC load points, cross-rail coupling from downstream switching regulators |
| Return path | RP-001 | Layer transition via without nearby ground stitching via |
| Crosstalk | XT-001 | 3H spacing violation, aggressor-victim pairs |
| EMI filter | EF-001, EF-002 | Filter cutoff too close to switching frequency (analytical or SPICE insertion loss) |
| ESD path | ES-001, ES-002 | TVS too far from connector, insufficient ground vias near TVS |
| Thermal-EMC | TH-001, TH-002 | MLCC DC bias derating (SRF shift), ferrite near heat source |
| Shielding | SH-001 | Connector aperture slot resonance near emission source |
| Emission estimates | EE-001, EE-002 | Board cavity resonance, switching harmonic envelope |
references/pcb-emc-rules.md| 类别 | 规则 | 检测内容 |
|---|---|---|
| 接地平面 | GP-001至GP-005 | 信号跨越空隙、区域碎片化、缺失接地平面、填充率低、多接地域 |
| 去耦 | DC-001至DC-003 | 电容离IC过远、IC无去耦电容、电容离过孔过远 |
| I/O滤波 | IO-001、IO-002 | 连接器无滤波、接地引脚不足 |
| 开关EMC | SW-001至SW-003 | 谐波重叠、开关节点铜面积、输入电容环路面积 |
| 时钟布线 | CK-001至CK-003 | 时钟位于外层、走线过长、时钟靠近连接器 |
| 过孔缝合 | VS-001 | 接地过孔间距超过最高频率下的λ/20 |
| 叠层 | SU-001至SU-003 | 相邻信号层、信号离参考平面过远、层间电容过薄 |
| 差分对 | DP-001至DP-004 | 对内偏移超出协议限制、共模辐射、参考平面变更、外层布线 |
| 板边 | BE-001至BE-003 | 信号靠近边缘、接地铺铜环不完整、连接器区域缝合 |
| PDN阻抗 | PD-001至PD-004 | 反谐振峰值、IC负载点的分布式电源轨阻抗、下游开关调节器的跨轨耦合 |
| 返回路径 | RP-001 | 层转换过孔附近无接地缝合过孔 |
| 串扰 | XT-001 | 3H间距违规、干扰源-受扰对 |
| EMI滤波器 | EF-001、EF-002 | 滤波器截止频率过于接近开关频率(分析或SPICE插入损耗) |
| ESD路径 | ES-001、ES-002 | TVS离连接器过远、TVS附近接地过孔不足 |
| 热-EMC | TH-001、TH-002 | MLCC直流偏置降额(SRF偏移)、铁氧体靠近热源 |
| 屏蔽 | SH-001 | 连接器孔径槽共振靠近发射源 |
| 发射估算 | EE-001、EE-002 | 板腔共振、开关谐波包络 |
{
"summary": {
"total_checks": 42,
"critical": 2, "high": 5, "medium": 8, "low": 12, "info": 15,
"emc_risk_score": 73
},
"target_standard": "fcc-class-b",
"findings": [
{
"category": "ground_plane",
"severity": "CRITICAL",
"rule_id": "GP-001",
"title": "Signal crosses ground plane void",
"description": "Net SPI_CLK crosses a 3.2mm gap in GND on In1.Cu",
"components": ["U3", "U7"],
"nets": ["SPI_CLK"],
"recommendation": "Route around the gap, or fill the void"
}
],
"per_net_scores": [
{"net": "SPI_CLK", "score": 67, "finding_count": 3, "rules": ["GP-001", "CK-001", "BE-001"]}
],
"test_plan": {
"frequency_bands": [{"band": "30-88 MHz", "risk_level": "high", "source_count": 12}],
"interface_risks": [{"connector": "J1", "protocol": "USB", "risk_score": 8}],
"probe_points": [{"ref": "L1", "x": 45.2, "y": 32.1, "reason": "switching inductor"}]
},
"regulatory_coverage": {
"market": "us",
"applicable_standards": ["FCC Part 15 Class B"],
"coverage_matrix": [{"standard": "...", "coverage": "partial", "note": "..."}]
}
}{
"summary": {
"total_checks": 42,
"critical": 2, "high": 5, "medium": 8, "low": 12, "info": 15,
"emc_risk_score": 73
},
"target_standard": "fcc-class-b",
"findings": [
{
"category": "ground_plane",
"severity": "CRITICAL",
"rule_id": "GP-001",
"title": "Signal crosses ground plane void",
"description": "Net SPI_CLK crosses a 3.2mm gap in GND on In1.Cu",
"components": ["U3", "U7"],
"nets": ["SPI_CLK"],
"recommendation": "Route around the gap, or fill the void"
}
],
"per_net_scores": [
{"net": "SPI_CLK", "score": 67, "finding_count": 3, "rules": ["GP-001", "CK-001", "BE-001"]}
],
"test_plan": {
"frequency_bands": [{"band": "30-88 MHz", "risk_level": "high", "source_count": 12}],
"interface_risks": [{"connector": "J1", "protocol": "USB", "risk_score": 8}],
"probe_points": [{"ref": "L1", "x": 45.2, "y": 32.1, "reason": "switching inductor"}]
},
"regulatory_coverage": {
"market": "us",
"applicable_standards": ["FCC Part 15 Class B"],
"coverage_matrix": [{"standard": "...", "coverage": "partial", "note": "..."}]
}
}| Severity | Meaning | Action |
|---|---|---|
| CRITICAL | Almost certain to cause EMC failure | Must fix before fabrication |
| HIGH | Very likely to cause issues | Strongly recommend fixing |
| MEDIUM | May cause issues depending on specifics | Review and assess |
| LOW | Minor risk, good practice | Fix if convenient |
| INFO | Informational — frequencies, estimates | Useful for lab prep |
| 严重程度 | 含义 | 操作 |
|---|---|---|
| CRITICAL(严重) | 几乎肯定会导致EMC测试失败 | 制造前必须修复 |
| HIGH(高) | 极有可能引发问题 | 强烈建议修复 |
| MEDIUM(中) | 根据具体情况可能引发问题 | 评审并评估 |
| LOW(低) | 轻微风险,良好实践 | 方便时修复 |
| INFO(信息) | 信息性内容——频率、估算值 | 对实验室准备有用 |
penalty = sum(worst 3 per rule × severity weight)score = max(0, 100 - penalty)惩罚值 = (每个规则最严重的3个发现 × 严重程度权重)之和评分 = max(0, 100 - 惩罚值)| Standard | Flag | Use Case |
|---|---|---|
| FCC Part 15 Class B | | US residential (default) |
| FCC Part 15 Class A | | US commercial/industrial |
| CISPR 32 Class B | | International (EU CE marking) |
| CISPR 32 Class A | | International commercial |
| CISPR 25 Class 5 | | Automotive (strictest) |
| MIL-STD-461G RE102 | | Military/defense |
--marketuseuautomotivemedicalmilitary| 标准 | 标志 | 使用场景 |
|---|---|---|
| FCC Part 15 Class B | | 美国住宅(默认) |
| FCC Part 15 Class A | | 美国商业/工业 |
| CISPR 32 Class B | | 国际(欧盟CE标志) |
| CISPR 32 Class A | | 国际商业 |
| CISPR 25 Class 5 | | 汽车(最严格) |
| MIL-STD-461G RE102 | | 军事/国防 |
--marketuseuautomotivemedicalmilitary