run_circuit_simulation
Simulate SPICE netlists by auto-selecting PSpice or ngspice; returns measurements (peak/average/RMS) and trace names, or netlist plus install tips if no backend.
Instructions
执行电路仿真。自动选择后端:1) 找到 pspice.exe 就用 PSpice (Cadence 默认需 license);2) 否则尝试 ngspice CLI;3) 都没有就只返回网表 + 安装提示。返回 measurements (峰值/平均/RMS) 与 trace 名称。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| netlist | Yes | SPICE 网表文本,包含 .TRAN / .AC / .DC / .OP 等控制指令。 | |
| analysis | No | 分析类型: TRAN / AC / DC / OP,默认 TRAN。 | TRAN |
| work_dir | No | 工作目录,默认临时目录。 | |
| prefer_pspice | No | 是否优先用 PSpice.exe (Cadence license 可用时)。默认 true。 |