CircuitAgent
v0.25.0AI hardware synthesis: CircuitBlocks DSL, live LCSC parts, industrial DFX audit, stdio MCP server.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
synthesize_circuit
Synthesize a deterministic hardware netlist and component modules from a natural language prompt. Supported MCUs: STM32F103, ESP32-C3, ESP32-S3, RP2040, STC89C52, CH32V003, STM32G030, ATmega328P. Peripherals: Type-C, LDO, Crystal, Buttons, LEDs, Buzzer, I2C, RS485, CAN, TP4056 Battery, AHT20 Temp/Humidity Sensor, MPU6050 6-Axis Motion Sensor.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Natural language circuit description, e.g. '基于 CH32V003 的 AHT20 温湿度与 MPU6050 姿态传感器节点' |
chip_id | string | Optional explicit MCU chip model (e.g. 'CH32V003F4P6', 'STM32G030F6P6', 'ATmega328P', 'STM32F103C8T6') |
custom_chip | object | Optional third-party chip definition with custom pinout, package, and peripheral multiplexing rules |
pin_mapping | object | Optional custom signal-to-pin allocations, e.g. {'/SCL': 'PC2', '/SDA': 'PC1'} |
list_supported_chips
List all registered MCU chips and third-party pinout allocation rules (e.g. CH32V003, STM32G030, ATmega328P).
register_custom_chip
Register or dynamically override a third-party microcontroller pinout and peripheral multiplexing rule.
| Parameter | Type | Description |
|---|---|---|
chip_id * | string | Unique identifier, e.g. 'CH32V003F4P6' |
pins * | array | List of available GPIO and power pins |
default_gpio_assignments | object | Default signal mappings, e.g. {'/LED1': 'PD4'} |
description | string | Human-readable description of the chip |
mcu_family | string | MCU family, e.g. 'QingKe-RISC-V', 'ARM-Cortex-M0+' |
package | string | Physical package, e.g. 'TSSOP-20', 'QFN-32' |
peripheral_routes | object | Peripheral routing defaults, e.g. {'I2C1': {'I2C_SCL': 'PC2', 'I2C_SDA': 'PC1'}} |
pin_numbers | object | Map of pin names to physical pin numbers, e.g. {'PD1': '8'} |
reserved_pins | object | Map of reserved pins and reasons, e.g. {'PD1': 'SWDIO', 'NRST': 'RESET'} |
supply_voltage | number | Operating voltage (typically 3.3 or 5.0) |
search_lcsc_parts
Query live LCSC / JLCPCB component inventory, stock, package, and pricing with zero API keys required. Features 24-hour disk cache and exponential backoff.
| Parameter | Type | Description |
|---|---|---|
query * | string | Component part number, model, or description (e.g. 'CH340N', 'SP3485', 'TP4056'). |
limit | integer | Maximum number of component matches to return (default: 5). |
list_circuit_blocks
List all 10 pre-validated CircuitBlocks available in the hardware DSL catalog.
run_erc
Run deterministic Electrical Rules Check (ERC) on a netlist: floating nets, missing GND, unknown designators, missing power domain, missing decoupling. Every finding carries severity + source; blocking/error issues gate BOM/CPL delivery.
| Parameter | Type | Description |
|---|---|---|
netlist * | object | Netlist dict with 'connections' (synthesize_circuit output passes directly). |
modules | object | Optional modules dict (ref -> {kind, value, package, lcsc}) for component-aware rules. |
validate_netlist
Validate a hardware netlist dictionary against the formal CircuitAgent JSON Schema specification.
| Parameter | Type | Description |
|---|---|---|
netlist * | object | Netlist dictionary containing 'connections' list with 'net' and 'points'. |
calculate_trace_impedance
Calculate characteristic impedance (Z0) or differential impedance (Zdiff) for PCB microstrip traces using IPC-2141 / Wheeler equations. Solves exact trace width W and spacing S for target impedance (e.g. 50Ω RF, 90Ω USB, 120Ω RS485/CAN).
| Parameter | Type | Description |
|---|---|---|
mode * | string | Trace mode: 'single' for single-ended microstrip, 'differential' for edge-coupled microstrip pair. |
target_z * | number | Target impedance in ohms (e.g. 50.0 for single-ended, 90.0 for USB differential, 120.0 for CAN/RS485). |
dielectric_er | number | Relative dielectric permittivity (Er) (default: 4.2 for FR4). |
dielectric_h_mm | number | Dielectric height between trace and reference ground plane in mm (default: 0.1mm for JLC04161H 4-layer). |
trace_gap_mm | number | Spacing between differential traces in mm (only used in differential mode, default: 0.15mm). |
trace_thickness_mm | number | Finished copper thickness in mm (default: 0.035mm for 1oz copper). |
calculate_bom_cost
Calculate PCBA component cost breakdown and estimate JLCPCB SMT manufacturing surcharges. Identifies Basic library parts (¥0 feeder fee) vs Extended library parts (+¥20/type feeder fee) and suggests cost optimizations.
| Parameter | Type | Description |
|---|---|---|
queries * | array | List of component names, models, or descriptions (e.g. ['STM32F103C8T6', 'SP3485', '0603 10k']). |
calculate_ipc2152_trace_current
Calculate conductor current-carrying capacity or solve required PCB trace width according to IPC-2152 standards for given copper weight (oz), temperature rise (ΔT °C), and layer position.
| Parameter | Type | Description |
|---|---|---|
mode * | string | 'solve_current' calculates max Amps for given trace_width_mm; 'solve_width' calculates required mm for target_current_a. |
copper_oz | number | Finished copper thickness in ounces (default: 1.0 oz = 35 um). |
layer | string | Conductor layer position: 'external' (outer copper) or 'internal' (inner plane). |
target_current_a | number | Target continuous current in Amperes (required for 'solve_width'). |
temp_rise_c | number | Allowable conductor temperature rise above ambient in °C (default: 20.0 °C). |
trace_width_mm | number | Trace width in mm (required for 'solve_current'). |
audit_industrial_dfx
Execute an enterprise-grade DFX (DFM/DFA/DFT/DFC/EMC) compliance audit on a schematic netlist. Verifies optical fiducials (MARK points), ICT testpoint coverage on power/debug rails, IEC 61000-4-2 TVS surge protection on exposed ports (USB, RS485, CAN), reverse polarity protection, and SMT costs.
| Parameter | Type | Description |
|---|---|---|
netlist * | object | Hardware netlist dictionary containing 'components' and 'connections'. |
export_kicad_netlist
Export standard KiCad S-Expression netlist (.net) compatible with KiCad 6/7/8/9/10 Pcbnew.
| Parameter | Type | Description |
|---|---|---|
netlist * | object | Hardware netlist dictionary or synthesis result. |
title | string | Schematic / board project title. |
export_manufacturing_bom
Generate production-ready JLCPCB SMT BOM CSV with part grouping, designator aggregation, and Basic/Extended classification.
| Parameter | Type | Description |
|---|---|---|
netlist * | object | Hardware netlist dictionary or synthesis result. |
export_manufacturing_cpl
Generate the JLCPCB SMT pick-and-place (CPL/pos) file with designator, centre X/Y in mm, layer and rotation. Required alongside the BOM for assembly: a part in the BOM but absent here is purchased and never soldered.
| Parameter | Type | Description |
|---|---|---|
netlist * | object | Hardware netlist dictionary or synthesis result. |
default_layer | string | Layer to assign when the netlist does not specify one (default 'Top'). |
calculate_parametric_circuit
Solve discrete parametric circuit equations: optimal E96 resistor dividers, LDO thermal dissipation, I2C bus pullups, or RC filters.
| Parameter | Type | Description |
|---|---|---|
params * | object | Calculation arguments: for 'resistor_divider' (v_in, v_out_target, max_quiescent_current_ma); for 'ldo_thermal' (v_in, v_out, i_load_a, package); for 'i2c_pullup' (v_cc, bus_capacitance_pf, mode); for… |
type * | string | Type of parametric calculation to perform. |
render_circuit_topology
Render a clean, structured ASCII architectural diagram of power domains, buses, and connected subsystems.
| Parameter | Type | Description |
|---|---|---|
netlist * | object | Hardware netlist dictionary or synthesis result. |
analyze_power_tree
Analyze system-level power distribution architecture, load current budgets (typical & peak mA), regulator dropout headroom, and LDO thermal dissipation / junction temperature estimates.
| Parameter | Type | Description |
|---|---|---|
modules * | object | Component modules dict (from synthesize_circuit output). |
netlist * | object | Netlist dict with 'connections' (from synthesize_circuit output). |
ambient_temp_c | number | Operating ambient temperature in °C (default: 25.0). |
calculate_ipc2221_clearance
Calculate minimum electrical clearance (conductor spacing) according to IPC-2221B Table 6-1 based on peak voltage and conductor classification (B1 internal, B2 external uncoated, B4 coated, A6 leads).
| Parameter | Type | Description |
|---|---|---|
peak_voltage_v * | number | Peak working or test voltage in Volts (e.g., 5.0, 12.0, 24.0, 230.0). |
conductor_type | string | Conductor classification: B1 (internal), B2 (external uncoated), B4 (coated), A6 (leads). Default: B2. |
export_specctra_dsn
Generate universal Specctra DSN (v15.0) auto-router interchange file for automated PCB track routing in Freerouting, Cadence Specctra, Altium, or KiCad. Includes heuristic component auto-placement.
| Parameter | Type | Description |
|---|---|---|
modules * | object | Component modules dict (from synthesize_circuit output). |
netlist * | object | Netlist dict with 'connections' (from synthesize_circuit output). |
board_height_mm | number | PCB height in mm (default: 50.0). |
board_width_mm | number | PCB width in mm (default: 70.0). |
clearance_mm | number | Default routing clearance in mm (default: 0.200 / 8mil). |
trace_width_mm | number | Default routing trace width in mm (default: 0.254 / 10mil). |
autoroute_pcb
Execute automated native PCB layout and multi-layer track routing on circuit specifications. Generates standard Specctra SES (Session) routing data and comprehensive physical metrics (completion rate, total track length, via count, layer utilization) with zero JVM dependencies.
| Parameter | Type | Description |
|---|---|---|
modules * | object | Component modules dict (from synthesize_circuit output). |
netlist * | object | Netlist dict with 'connections' (from synthesize_circuit output). |
board_height_mm | number | PCB height in mm (default: 50.0). |
board_width_mm | number | PCB width in mm (default: 70.0). |
clearance_mm | number | Default routing clearance in mm (default: 0.100 / 4mil). |
engine | string | Autorouting engine track. 'exact' (default) is orthogonal and DRC-verified; 'grid' is 8-connected and can leave diagonal shorts; 'room' uses continuous expansion rooms (may leave nets unrouted on dens… |
trace_width_mm | number | Default routing trace width in mm (default: 0.150 / 6mil). |
export_kicad_schematic
Export modern KiCad 8/9 S-Expression schematic file (.kicad_sch) directly viewable and editable in KiCad Eeschema with sheet layout, component symbols, pin references, and LCSC attributes.
| Parameter | Type | Description |
|---|---|---|
modules * | object | Component modules dict (from synthesize_circuit output). |
connections | array | Netlist connections list (optional). |
title | string | Schematic sheet title block title. |
audit_supply_chain
Audit BOM component multi-sourcing resilience (ISO 9001 supply chain audit), identifying single-source bottlenecks and mapping pin-compatible second-source drop-in replacements with LCSC cross-references.
| Parameter | Type | Description |
|---|---|---|
modules * | object | Component modules dict (from synthesize_circuit output). |
calculate_differential_skew
Solve high-speed differential pair intra-pair propagation delay skew (USB 2.0 HS ≤10ps, Ethernet ≤25ps, CAN-FD ≤50ps) and calculate required serpentine length matching tuning bumps count and geometry.
| Parameter | Type | Description |
|---|---|---|
trace_length_delta_mm * | number | Measured trace length mismatch in mm (P minus N). |
dielectric_er | number | Relative dielectric permittivity Er (default: 4.2). |
height_mm | number | Dielectric height to reference plane in mm (default: 0.100). |
protocol | string | Target protocol standard (default: USB2_HS). |
trace_width_mm | number | Trace width in mm (default: 0.254). |
export_ipc_d356
Generate universal IPC-D-356A ASCII bare-board electrical test netlist file for flying probe testers (AEMG, ATG, MicroCraft) and bed-of-nails PCB fabrication test fixtures.
| Parameter | Type | Description |
|---|---|---|
modules * | object | Component modules dict (from synthesize_circuit output). |
netlist * | object | Netlist dict with 'connections' (from synthesize_circuit output). |
board_height_mm | number | Board height in mm (default: 50.0). |
board_width_mm | number | Board width in mm (default: 70.0). |
job_name | string | Fabrication PCB job name. |
export_gerber_bundle
Generate native fabrication-ready Gerber RS-274X + Excellon bundle (Edge_Cuts .gm1, Top/Bottom Copper .gtl/.gbl, Top/Bottom Mask .gts/.gbs, Top Silkscreen .gto, drill .drl) directly from placed modules and netlist, eliminating GUI EDA dependency. Copper layers carry real footprint pads and the autorouter's actual track geometry.
| Parameter | Type | Description |
|---|---|---|
modules * | object | Component modules dict (from synthesize_circuit output). |
netlist * | object | Netlist dict with 'connections' (from synthesize_circuit output). |
autoroute | boolean | Run the autorouter first so the copper layers carry real tracks (default: true). Set false to export pads only, i.e. an unrouted board. |
board_height_mm | number | PCB height in mm (default: 50.0). |
board_width_mm | number | PCB width in mm (default: 70.0). |
ses_text | string | Optional Specctra SES session text from a previous autoroute_pcb call. Overrides 'autoroute' and avoids routing twice. |
calculate_pcb_stackup_impedance
Lookup standard industrial 4-layer (JLC04161H) and 6-layer (JLC06161H) PCB stackup matrices and solve target controlled impedance trace widths (50Ω RF, 90Ω USB, 100Ω Ethernet, 120Ω CAN/485, IPC-2141A).
| Parameter | Type | Description |
|---|---|---|
solve_custom_z_ohms | number | Optional custom single-ended target impedance in Ohms to solve required trace width. |
stackup_id | string | Standard industrial stackup model (default: JLC04161H). |
export_excellon_drill
Generate production IPC-NC-349 Excellon CNC drill file (.drl) with metric tool headers (T01C... T02C...), completing the 5-layer PCB manufacturing bundle for automated CNC drilling machines.
| Parameter | Type | Description |
|---|---|---|
modules * | object | Component modules dict (from synthesize_circuit output). |
board_height_mm | number | PCB height in mm (default: 50.0). |
board_width_mm | number | PCB width in mm (default: 70.0). |
connections | array | Netlist connections list (optional). |
job_name | string | PCB fabrication job name. |
generate_interactive_bom
Generate a lightweight self-contained single-file Interactive HTML BOM (iBOM, InteractiveHtmlBom-compatible) with interactive component grouping table, vector SVG board map, and bidirectional hover/click inspection.
| Parameter | Type | Description |
|---|---|---|
modules * | object | Component modules dict (from synthesize_circuit output). |
board_height_mm | number | PCB height in mm (default: 50.0). |
board_width_mm | number | PCB width in mm (default: 70.0). |
title | string | Inspection page title. |
calculate_smt_feeder_matrix
Optimize SMT pick-and-place feeder slot allocation (8mm/12mm/16mm/24mm) and nozzle tooling selection (502/503/504/505/506) according to EIA-481 carrier tape standard and OpenPnP/Juki machine matrices.
| Parameter | Type | Description |
|---|---|---|
modules * | object | Component modules dict (from synthesize_circuit output). |
export_openpnp_job
Generate production OpenPnP and industrial SMT pick-and-place board job CSV (part, designator, X/Y coords, rotation, nozzle ID, feeder slot assignment) for automated robotic assembly.
| Parameter | Type | Description |
|---|---|---|
modules * | object | Component modules dict (from synthesize_circuit output). |
board_height_mm | number | PCB height in mm (default: 50.0). |
board_width_mm | number | PCB width in mm (default: 70.0). |
calculate_ipc7351_land_pattern
Calculate mathematically compliant surface mount land pattern geometry (pad width X, pad length Y, pad center distance C, and courtyard boundary bounds) based on IPC-7351B standards across Density Levels A (Most), B (Nominal), and C (Least).
| Parameter | Type | Description |
|---|---|---|
package * | string | Standard footprint name (e.g. '0805', '0603', 'SOIC-8', 'QFN-32', 'TSSOP-14') or custom. |
density | string | IPC-7351B Density Level: 'A' (Most/M), 'B' (Nominal/N, default), or 'C' (Least/L). |
lead_contact_t | number | Optional component lead contact length/band (mm). |
lead_pitch | number | Optional pin center-to-center pitch (mm) for multi-lead packages. |
lead_type | string | Component lead style: 'chip', 'gullwing', 'no_lead' (QFN/DFN), or 'j_lead'. |
lead_width_w | number | Optional component lead width (mm). |
overall_length_l | number | Optional component overall tip-to-tip span (mm). |
calculate_pcb_panel_rails
Calculate SMT automated assembly panel frame with breakaway process rails, conveyor clamp clearances, SMEMA tooling holes (NPTH Φ3.2mm), optical fiducials (Φ1.0mm/Φ3.0mm mask), and de-paneling features (V-Cut score lines or perforated mouse-bites) per IPC-2221B Section 8.4 and IPC-SMEMA-9851.
| Parameter | Type | Description |
|---|---|---|
board_height_mm * | number | Single PCB outline height (mm). |
board_width_mm * | number | Single PCB outline width (mm). |
board_spacing_mm | number | Spacing between individual boards in mm (default: 0 for V-cut, 2.0 for mouse-bites). |
depaneling_method | string | De-paneling method: 'v_cut' (default) or 'mouse_bites'. |
grid_x | integer | Number of boards in X direction (default: 2). |
grid_y | integer | Number of boards in Y direction (default: 2). |
rail_sides | string | Rail placement: 'left_right' (default), 'top_bottom', or 'all_four'. |
rail_width_mm | number | Conveyor clamping rail width in mm (default: 5.0, min: 3.0 per SMEMA). |
calculate_ict_testpoints
Analyze PCB netlist testability, allocate automated bed-of-nails In-Circuit Test (ICT) testpoints (B.Cu Φ1.0mm), assign probe tip types (crown, spear, serrated), and verify fault coverage percentage per IPC-9252 & IPC-2221B.
| Parameter | Type | Description |
|---|---|---|
connections * | array | Netlist connections list (from synthesize_circuit output). |
board_height_mm | number | PCB height in mm (default: 50.0). |
board_width_mm | number | PCB width in mm (default: 70.0). |
min_pad_diameter_mm | number | Testpad diameter in mm (default: 1.0). |
min_probe_pitch_mm | number | Minimum probe center-to-center pitch in mm (default: 2.0). |
calculate_bga_escape_routing
Calculate BGA diagonal dogbone via fanout geometry, escape channel trace widths and clearances, and minimum signal layer requirements per IPC-7095 Section 5.2.
| Parameter | Type | Description |
|---|---|---|
ball_count * | integer | Total BGA ball count (e.g. 64, 100, 144, 256). |
ball_pad_dia_mm | number | BGA solder ball pad diameter in mm (default: 0.4). |
ball_pitch_mm | number | BGA ball center-to-center pitch in mm (default: 0.8). |
trace_width_mm | number | Escape routing neck-down trace width in mm (default: 0.10). |
via_drill_mm | number | Fanout via drill diameter in mm (default: 0.2). |
via_pad_dia_mm | number | Fanout via pad outer diameter in mm (default: 0.45). |
calculate_teardrop_reinforcement
Calculate tangent teardrop fillets for PCB vias, circular pads, and testpoints to prevent drill breakout, eliminate mechanical/thermal crack stress, and comply with IPC-2221B Section 9.1.5 and IPC-A-600J Class 3.
| Parameter | Type | Description |
|---|---|---|
vias * | array | List of via objects ({'x_mm', 'y_mm', 'pad_dia_mm', 'drill_dia_mm', 'trace_angle_deg'}). |
default_trace_width_mm | number | Default trace width in mm (default: 0.20). |
teardrop_style | string | Fillet geometry: 'curved' (default) or 'linear'. |
calculate_copper_thieving_balance
Calculate layer copper density balance between top and bottom layers, assess reflow thermal bow/twist warpage risk (IPC-TM-650 2.4.22 <= 0.75%), and generate non-functional dummy copper thieving dot/grid patterns per IPC-2221B Section 10.1.1.
| Parameter | Type | Description |
|---|---|---|
board_height_mm * | number | PCB height in mm (default: 50.0). |
board_width_mm * | number | PCB width in mm (default: 70.0). |
bot_copper_area_mm2 | number | Optional bottom copper area in mm². |
keepout_margin_mm | number | Keepout margin from board edge in mm (default: 2.0). |
pattern_pitch_mm | number | Thieving dot pitch in mm (default: 2.54). |
top_copper_area_mm2 | number | Optional top copper area in mm². |
calculate_via_stitching_array
Calculate thermal via matrix array under QFN/power exposed pads (IPC-7093 Section 7.2) or RF ground shielding fence via arrays (IPC-2141A <= lambda/10 pitch) with thermal resistance reduction metrics.
| Parameter | Type | Description |
|---|---|---|
center_x_mm | number | Center X coordinate in mm (default: 0.0). |
center_y_mm | number | Center Y coordinate in mm (default: 0.0). |
drill_dia_mm | number | Via drill diameter in mm (default: 0.30). |
grid_pitch_mm | number | Via center-to-center pitch in mm (default: 1.20). |
is_rf_shielding_fence | boolean | Whether to generate dual-side ground shielding fence for RF microstrip (default: false). |
pad_height_mm | number | Exposed pad height in mm (default: 5.0). |
pad_width_mm | number | Exposed pad width in mm (default: 5.0). |
calculate_serpentine_tuning_geometry
Calculate high-speed differential pair serpentine delay tuning meander geometry, ensuring self-coupling suppression (S >= 3W, H >= 3W) and generating vertex paths per IPC-2141A Section 5.3.
| Parameter | Type | Description |
|---|---|---|
delta_length_mm * | number | Target added delay length in mm (e.g. 3.5). |
end_x_mm | number | End X coordinate in mm (default: 30.0). |
end_y_mm | number | End Y coordinate in mm (default: 20.0). |
start_x_mm | number | Start X coordinate in mm (default: 10.0). |
start_y_mm | number | Start Y coordinate in mm (default: 20.0). |
trace_width_mm | number | Trace width in mm (default: 0.15). |
calculate_stencil_aperture_ratios
Evaluate SMT stencil aperture area ratio (>= 0.66 laser-cut) and aspect ratio (>= 1.5) compliance per IPC-7525 Stencil Design Guidelines, identifying paste-release-deficient apertures.
| Parameter | Type | Description |
|---|---|---|
apertures * | array | List of apertures ({ref, shape: 'rect'|'circle', width_mm, length_mm}). |
foil_thickness_um | number | Stencil foil thickness in μm (default: 100). |
min_area_ratio | number | Minimum acceptable area ratio (default: 0.66). |
min_aspect_ratio | number | Minimum acceptable aspect ratio (default: 1.5). |
calculate_fiducial_layout
Generate asymmetric 3-point global optical fiducial layout (L-shape, 180° rotation unambiguous) and 2-point local fiducials for fine-pitch components per IPC-2221B Section 12 and JEDEC J-STD-020.
| Parameter | Type | Description |
|---|---|---|
board_height_mm * | number | PCB height in mm. |
board_width_mm * | number | PCB width in mm. |
edge_clearance_mm | number | Fiducial center clearance from board edge in mm (default: 5.0). |
fine_pitch_components | array | Fine-pitch components ({ref, pitch_mm, x_mm, y_mm, half_diagonal_mm}). |
fine_pitch_threshold_mm | number | Component pitch below which local fiducials are required (default: 0.5). |
calculate_via_protection_plan
Select IPC-4761 via protection types (Type I ~ VII) per via assembly context: Type VII filled-and-capped (VIPPO) mandatory for BGA via-in-pad, Type V fill for thermal pads, Type IV tent+plug for BGA channels, Type II tent for free vias.
| Parameter | Type | Description |
|---|---|---|
vias * | array | Via list ({id, in_pad, land_type: 'bga'|'thermal'|'signal', in_bga_pitch, vippo_filled}). |
calculate_solder_paste_volume
Assess per-aperture deposited solder paste volume against target joint volume per IPC-7525A transfer analysis (accepted ratio window 1.0 ~ 2.5), flagging starved joints and excessive paste defects.
| Parameter | Type | Description |
|---|---|---|
apertures * | array | Aperture list ({ref, shape: 'rect'|'circle', width_mm, length_mm}). |
foil_thickness_um | number | Stencil foil thickness in μm (default: 100). |
target_standoff_mm | number | Target solder standoff height in mm (default: 0.10). |
transfer_efficiency | number | Paste transfer efficiency η (default: 0.90; nano-coated laser-cut foil). |
export_ipc2581
Export a simplified IPC-2581B single-file intelligent fabrication data package (XML) — stackup, BOM, placed components, nets with pin membership, and board profile — replacing the legacy Gerber+Excellon+TXT handoff bundle accepted by Siemens X / Altium / Zuken / EMS houses.
| Parameter | Type | Description |
|---|---|---|
modules * | object | Component modules dict (from synthesize_circuit output). |
board_height_mm | number | PCB height in mm (default: 50.0). |
board_width_mm | number | PCB width in mm (default: 70.0). |
connections | array | Netlist connections list. |
project_name | string | Project/organization name embedded in the XML (default: HARDWARE_PROJECT). |
stackup_layers | array | Optional stackup layers ({name, class: 'CONDUCTOR'|'DIELECTRIC', thickness_um, material}). |
export_assembly_drawing_svg
Generate a scaled PCBA assembly drawing SVG per ASME Y14.5 and IPC-2221B Section 11: body outlines with refDes labels, polarity marks (pin-1 dots, cathode bars, plus frames), mirrored bottom view, and an ASME Y14.100 title block with revision and check signature.
| Parameter | Type | Description |
|---|---|---|
modules * | object | Component modules dict (from synthesize_circuit output, with positions). |
board_height_mm | number | PCB height in mm (default: 50.0). |
board_width_mm | number | PCB width in mm (default: 70.0). |
mirrored_bottom | boolean | Render bottom view mirrored in X (default: true). |
revision | string | Drawing revision letter (default: A). |
title | string | Drawing title (default: PCBA ASSEMBLY DRAWING). |
diff_netlists
Engineering Change Order (ECO) netlist diff: compare two netlist revisions and report added/removed components, value/package changes, added/removed nets, pin membership moves, total change count, and ECO severity (NONE / MINOR / MAJOR) for PLM change management.
| Parameter | Type | Description |
|---|---|---|
new_connections * | array | Revision B connections list. |
new_modules * | object | Revision B component modules dict. |
old_connections * | array | Revision A connections list. |
old_modules * | object | Revision A component modules dict. |
generate_assembly_process_plan
Generate a mixed-assembly process route plan: classify each component into SMD reflow / THT wave / THT manual / mechanical stages per IPC-A-610G Section 7, output the 10-stage EMS routing (SPI -> reflow -> AOI -> THT insert -> wave -> manual -> ICT -> FCT -> coating -> packing).
| Parameter | Type | Description |
|---|---|---|
modules * | object | Component modules dict (from synthesize_circuit output). |
optimize_panel_grid
Enumerate panel grid combinations (grid_x x grid_y, rail sides, V-cut vs mouse-bites), filter options exceeding the max panel size (default 300x300mm fab limit), and rank feasible layouts by material utilization percentage.
| Parameter | Type | Description |
|---|---|---|
board_height_mm * | number | Single board height in mm. |
board_width_mm * | number | Single board width in mm. |
max_grid | integer | Maximum grid count per axis (default: 4). |
max_panel_mm | number | Maximum panel dimension in mm (default: 300.0). |
rail_width_mm | number | Conveyor rail width in mm (default: 5.0). |
calculate_fab_cost
Estimate PCB fabrication cost from fab-house published tiered pricing: layers (2/4/6), quantity tiers (5/10/30/100), area surcharge beyond 100x100mm, solder mask color, surface finish (HASL/ENIG/OSP), board thickness, and lead time (normal/48h/24h). Estimate only.
| Parameter | Type | Description |
|---|---|---|
board_height_mm | number | Board height in mm (default 100). |
board_width_mm | number | Board width in mm (default 100). |
layers | integer | Layer count (2, 4, or 6; default 4). |
lead_time | string | Lead time: normal (x1.0), fast_48h (x1.5), urgent_24h (x2.5). |
quantity | integer | Board quantity (default 5). |
solder_mask_color | string | Solder mask color: green (free), red/yellow/blue (+25), black/white (+40), matte (+60). |
surface_finish | string | Surface finish: hasl_lead (free), hasl_lead_free (+15), enig (+80), osp (free), silver (+45). |
thickness_mm | string | Board thickness in mm: 0.6/0.8/1.0/1.2/1.6 (default)/2.0. |
calculate_smt_placement_clearance
Analyze SMT pick-and-place nozzle collision clearance between tall (H >= 4.0mm) and low components, evaluate nozzle keepout envelopes (min 2.0mm horizontal gap), and generate layered placement priority sequences (lowest to tallest) per IPC-SM-782 and OpenPnP guidelines.
| Parameter | Type | Description |
|---|---|---|
modules * | object | Component modules dict (from synthesize_circuit output, with positions). |
board_height_mm | number | Board height in mm (default: 50.0). |
board_width_mm | number | Board width in mm (default: 70.0). |
min_clearance_envelope_mm | number | Minimum required horizontal clearance between tall and low components (default: 2.0). |
min_tall_component_height_mm | number | Threshold height for tall components in mm (default: 4.0). |
calculate_creepage_isolation_slot
Evaluate high-voltage electrical creepage compliance per IPC-2221B Table 6-1 and IEC 62368-1, and plan an air isolation milled slot (slot width, length, endpoints, and expanded effective creepage path) between high-voltage and low-voltage conductors when surface distance is insufficient.
| Parameter | Type | Description |
|---|---|---|
cond1_coords * | array | Coordinates [x, y] of first conductor. |
cond2_coords * | array | Coordinates [x, y] of second conductor. |
voltage_v * | number | Operating voltage difference between conductors (e.g. 220.0). |
conductor_radius_mm | number | Conductor/pad radius in mm (default: 1.0). |
is_reinforced_insulation | boolean | Whether reinforced insulation (2x clearance) is required per IEC 62368-1 (default: false). |
slot_extension_mm | number | Slot extension past conductor edges in mm (default: 2.0). |
slot_width_mm | number | Width of milled isolation slot in mm (default: 1.2). |
analyze_impedance_tolerance
Analyze PCB characteristic impedance manufacturing tolerance window and sensitivities per IPC-2141A and Polar SI9000 models: evaluates dielectric height (+-10%), trace width (+-10%), copper thickness (+-15%), and Er (+-5%) cumulative variations, calculating Zmin, Zmax, dZ/dW, dZ/dH, and yield within +-10% target.
| Parameter | Type | Description |
|---|---|---|
copper_thickness_mm | number | Nominal copper thickness in mm (default: 0.035 for 1oz). |
dielectric_er | number | Substrate dielectric constant (default: 4.2 for FR-4). |
dielectric_height_mm | number | Nominal dielectric height in mm (default: 0.20). |
height_tolerance_pct | number | Dielectric height tolerance percentage (default: 10.0). |
target_z0_ohms | number | Target characteristic impedance (default: 50.0). |
trace_width_mm | number | Nominal trace width in mm (default: 0.38). |
width_tolerance_pct | number | Trace width tolerance percentage (default: 10.0). |
evaluate_material_cti_creepage
Evaluate substrate Comparative Tracking Index (CTI) Material Group (Group I >= 600V to Group IIIb) and required safety creepage under Pollution Degrees 1/2/3 and Basic/Reinforced insulation per IEC 62368-1 Table 25 and IPC-2221B, calculating safety margins and recommending high-CTI laminates.
| Parameter | Type | Description |
|---|---|---|
actual_clearance_mm | number | Actual physical conductor spacing in mm (default: 2.0). |
insulation_type | string | Insulation classification: 'Basic' (default) or 'Reinforced'. |
pollution_degree | integer | Pollution degree 1, 2, or 3 (default: 2). |
substrate_cti_v | number | Substrate CTI rating in Volts (default: 175.0 for standard FR-4; 600.0 for Group I). |
working_voltage_v | number | Operating rms/DC voltage (default: 220.0). |
calculate_wave_solder_orientation_audit
Audit bottom-side SMD component wave soldering orientation angles and hydrodynamic shadowing per IPC-7351B and SMTA guidelines: chip passives (0603/0805) perpendicular to flow to prevent tombstoning, SOIC ICs parallel to flow to prevent solder bridging, and 3xH shadow keepout zones behind tall components.
| Parameter | Type | Description |
|---|---|---|
modules * | object | Component modules dict (with rotation_deg, position, and package). |
flow_direction | string | Conveyor wave flow direction: 'X+' (default), 'X-', 'Y+', or 'Y-'. |
calculate_press_fit_hole_compliance
Evaluate automotive and industrial solderless press-fit compliant pin (eye-of-the-needle) finished hole diameter tolerances (standard 0.94mm ~ 1.09mm) and copper barrel plating thickness (>= 25μm) per IPC-9797 and IEC 60352-5, estimating insertion and retention forces to prevent inner-layer tear or vibration disconnects.
| Parameter | Type | Description |
|---|---|---|
pins * | array | List of press-fit pin dicts ({pin_id, connector_ref, drill_dia_mm, copper_thickness_um, finished_dia_mm}). |
min_copper_plating_um | number | Minimum barrel copper plating thickness in μm (default: 25.0). |
nominal_finished_dia_mm | number | Nominal compliant pin hole diameter in mm (default: 1.00). |
audit_fab_capabilities
Audit PCB layout physical design rules against real-world fab house capabilities (JLCPCB standard/advanced, PCBWay, OSH Park): verifies min trace width, min clearance, min via drill, annular ring, aspect ratio, and slot width against published fab process limits to prevent CAM engineering query (EQ) rejections.
| Parameter | Type | Description |
|---|---|---|
board_thickness_mm | number | Nominal PCB thickness in mm (default: 1.600). |
fab_id | string | Fab house identifier: 'jlcpcb_standard' (default), 'jlcpcb_advanced', 'pcbway_standard', 'oshpark_standard'. |
min_slot_width_mm | number | Smallest mechanical milled slot width in mm (default: 0.800). |
min_trace_clearance_mm | number | Smallest conductor-to-conductor gap in mm (default: 0.127). |
min_trace_width_mm | number | Smallest conductor trace width in mm (default: 0.127). |
min_via_drill_mm | number | Smallest via drill diameter in mm (default: 0.200). |
min_via_pad_mm | number | Smallest via outer pad diameter in mm (default: 0.450). |
gate_production_readiness
One-call industrial release gate: synthesizes from a prompt, places, autoroutes, exports the full 9-layer fab bundle (copper, mask, silk, stencil, drill, BOM, CPL), then runs the manufacturing validator including solder-mask dam width. Returns a single production_ready verdict plus the blocking defects, so a CI job or a contract manufacturer can decide go/no-go without reading five separate reports.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Natural-language circuit description, e.g. 'ESP32-C3 sensor node with USB-C'. |
board_height_mm | number | |
board_width_mm | number | |
job_name | string |
validate_manufacturing_package
Headless manufacturing package validator for automated CI/CD and developer hand-off: checks completeness and non-emptiness of 5-layer Gerbers, Excellon drill, BOM, and CPL, verifies component refDes consistency, and calculates SHA-256 cryptographic tamper-proof ledger.
| Parameter | Type | Description |
|---|---|---|
artifacts_dict * | object | Dict mapping filename (e.g. 'board-Edge_Cuts.gm1', 'bom.csv') to content string or bytes. |
job_name | string | Project job name for manifest header (default: PCB_PROJECT). |
modules | object | Optional component modules dict from synthesis for BOM cross-verification. |
audit_ipc6012_class_compliance
Audit PCB physical and metallurgical design parameters against IPC-6012E and IPC-A-600J Class 1/2/3 acceptance criteria: evaluates external/internal annular rings, zero-breakout constraints for Class 3, PTH copper barrel plating thickness (avg >= 25μm for Class 3), etch conductor width reduction, and solder mask dam widths.
| Parameter | Type | Description |
|---|---|---|
avg_copper_barrel_um | number | Average electroplated copper thickness in PTH barrels in μm (default: 22.0). |
breakout_angle_deg | number | Observed breakout angle in degrees (default: 0.0). |
conductor_width_reduction_pct | number | Conductor width reduction percentage from etch defects (default: 5.0). |
external_annular_ring_mm | number | Smallest external annular ring width in mm (default: 0.125). |
has_hole_breakout | boolean | Whether drill hole breakout from annular ring is observed (strictly 0° allowed in Class 3). |
internal_annular_ring_mm | number | Smallest internal annular ring width in mm (default: 0.100). |
min_copper_barrel_um | number | Minimum thin-point PTH copper plating thickness in μm (default: 19.0). |
min_solder_mask_dam_mm | number | Smallest solder mask dam width between adjacent exposed pads in mm (default: 0.090). |
target_class | string | Target IPC reliability class: 'Class 1', 'Class 2' (default), or 'Class 3'. |
optimize_smt_feeder_setup
Optimize SMT pick-and-place feeder trolley allocation (Panasonic NPM / Fuji NXT / ASM SIPLACE standard 80-slot cart): applies Group Technology (GT) to pin permanent common passive reels (100nF, 10k), places high-frequency reels near the gantry center to minimize travel time, and forecasts reel run-out exhaustion points per batch size per IPC-9851.
| Parameter | Type | Description |
|---|---|---|
modules * | object | Component modules dict (e.g. from synthesis or netlist). |
batch_size | integer | Production batch size in boards (default: 1000). |
common_parts_list | array | Optional list of common component identifiers to pin into the permanent feeder block. |
feeder_cart_capacity | integer | Total feeder slots on trolley cart (default: 80). |
calculate_copper_pour_current_drop
Calculate DC IR-drop, Joule heating dissipation, and localized bottleneck current density in polygon copper pours and power busbars per IPC-2152 Section 5.0 and IEC 60092-352, verifying current density <= 35.0 A/mm² to prevent copper foil delamination or blistering under heavy loads.
| Parameter | Type | Description |
|---|---|---|
current_a * | number | Continuous DC load current in Amperes. |
ambient_temp_c | number | Ambient operating temperature in °C (default: 25.0). |
bottleneck_width_mm | number | Narrowest constriction neck width (e.g. around cutouts or anti-pads) in mm. |
copper_weight_oz | number | Finished copper foil weight in oz (default: 1.0). |
effective_length_mm | number | Conduction path length from source to load in mm (default: 50.0). |
effective_width_mm | number | Average conduction width of the copper pour in mm (default: 20.0). |
max_allowed_current_density_a_per_mm2 | number | Maximum safe current density ceiling in A/mm² (default: 35.0). |
max_allowed_temp_rise_c | number | Allowable conductor temperature rise ΔT in °C (default: 30.0). |
audit_component_msl_floor_life
Audit SMD plastic packages (BGA, QFN, CSP, TQFP) for moisture sensitivity level (MSL 1 to 6) and open-bag shop floor life per JEDEC J-STD-033D and IPC-M-109, flagging expired components and generating recommended dehumidification baking schedules (e.g. 125°C for 24h or 40°C for 192h) to prevent 260°C reflow popcorning defects.
| Parameter | Type | Description |
|---|---|---|
modules * | object | Component modules dict with refDes, package, and optional msl_level or exposed_hours. |
ambient_rh_pct | number | Workshop ambient relative humidity percentage (default: 55.0). |
ambient_temp_c | number | Workshop ambient temperature in °C (default: 25.0). |
exposed_hours_default | number | Default shop floor exposure hours since unsealing moisture barrier bag (default: 48.0). |
calculate_effective_capacitance
Effective capacitance of a Class II MLCC at real operating conditions — the marked value is not the value in circuit. Multiplies the four loss mechanisms that compound: DC bias (the dominant one, typically 35-65% loss at rated voltage and worse in small cases), AC signal level, temperature coefficient, and logarithmic dielectric ageing, then applies the part tolerance. Returns the full factor stack so you can see which mechanism hurt most. Class I (C0G/NP0) parts correctly short-circuit to tolerance-only. Pass measured_retention_at_bias from a datasheet curve (Murata SimSurfing, TDK SEAT) to…
| Parameter | Type | Description |
|---|---|---|
applied_v * | number | DC bias actually across the part in this circuit, in volts. |
marked_capacitance_uf * | number | The capacitance printed on the reel, in µF. |
rated_v * | number | The part's rated DC voltage. |
ac_level | string | Signal magnitude class: small_signal (<50 mVrms), moderate (50-500 mVrms), or large (>500 mVrms). Small signals see less capacitance. |
ambient_c | number | Operating ambient temperature in °C. |
case_size | string | EIA case code: 0402, 0603, 0805, 1206 or 1210. Larger cases retain more capacitance under bias. |
dielectric | string | EIA Class II dielectric: X5R, X7R, X8R, Y5V, Z5U, or Class I C0G/NP0. |
hours_in_service | number | Expected service life in hours, used for the log-time ageing term. |
measured_retention_at_bias | number | Retention fraction (0-1] read from the real datasheet DC-bias curve at applied_v. Replaces the band estimate. |
tolerance_pct | number | The part's capacitance tolerance in percent (e.g. 10 for ±10%). Applied at the pessimistic end. |
size_hold_up_capacitor
Size an MLCC reservoir bank for a brown-out ride-through window in EFFECTIVE farads, then report the marked value you must actually buy. Solves C = I·t/ΔV for the required effective capacitance and divides by the retention at the worst-case bias in the window, because sizing from the marked value is how a design that 'passes' delivers 0.85 ms of hold-up when the spec asked for 20 ms. Reports the achieved hold time, the shortfall, and the required marked capacitance.
| Parameter | Type | Description |
|---|---|---|
load_current_ma * | number | Load current drawn from the reservoir during the outage, in mA. |
required_hold_time_ms * | number | Required ride-through duration in milliseconds. |
v_floor * | number | Minimum voltage the load tolerates (brown-out floor), in volts. |
v_start * | number | Rail voltage at the moment the source collapses, AFTER any ORing diode drop — not the nominal input. |
ambient_c | number | Operating ambient in °C. |
case_size | string | EIA case code (0402/0603/0805/1206/1210). |
dielectric | string | EIA dielectric: X5R, X7R, X8R, C0G/NP0. |
hours_in_service | number | Expected service life in hours. |
rated_v | number | Capacitor rated voltage. Defaults to 2x v_start to keep bias derating near 50%. |
tolerance_pct | number | Capacitance tolerance in percent. |
analyze_rc_filter_effective
RC filter cutoff computed from the capacitance the part actually has, not the marked value. A 1 kHz filter built with a 10 µF X5R part that delivers 4 µF under bias cuts at 2.5 kHz — the nominal calculation is not wrong, it answers a different question. Returns nominal vs actual cutoff, the drift percentage, and the retention that caused it.
| Parameter | Type | Description |
|---|---|---|
applied_v * | number | DC bias across the capacitor, in volts. |
marked_c_uf * | number | Marked capacitance in µF. |
r_ohm * | number | Series resistance in ohms. |
rated_v * | number | Capacitor rated DC voltage. |
ambient_c | number | Operating ambient in °C. |
case_size | string | EIA case code. |
dielectric | string | EIA dielectric. |
hours_in_service | number | Expected service life in hours. |
analyze_divider_tolerance
Tolerance band of a resistor divider — nominal is not a specification. Reports BOTH the exact worst case (corner enumeration, valid because the transfer function is monotonic in each resistor) and the realistic statistical band (first-order sensitivity propagation, NOT naive RSS of percentage tolerances — the output is a quotient of random variables, so RSS-ing the percentages directly is invalid; TI SNVA112 states this explicitly). Includes TCR, sqrt-of-time life drift, supply tolerance, and matched-pair ratio tolerance, and names which resistor dominates the error budget so you fix the r…
| Parameter | Type | Description |
|---|---|---|
r1_ohm * | number | High-side resistor (input to midpoint), in ohms. |
r2_ohm * | number | Low-side resistor (midpoint to ground), in ohms. |
v_in * | number | Input voltage to the divider, in volts. |
delta_temp_c | number | Temperature excursion from 25 °C that the design must hold accuracy over. |
life_drift_pct | number | Life drift percent over the datasheet's stated hours. Scales with sqrt of the time ratio. |
ratio_tolerance_pct | number | Ratio tolerance for a matched pair in one package. Replaces both absolute tolerances — the biggest free accuracy win. |
tcr_ppm_per_c | number | Temperature coefficient in ppm/°C. Thick film is ~200, thin film ~25, metal foil ~2. |
tolerance_pct | number | Resistor value tolerance in percent at 25 °C. |
v_in_tolerance_pct | number | Supply tolerance in percent, treated as an independent contribution. |
analyze_resistor_error_budget
End-of-life resistance band for one resistor from the four-term error model: value tolerance, temperature coefficient, life drift, and (for matched networks) ratio tolerance. Reports both the RSS band and the linear worst-case band, and names the dominant term — because buying a ±0.1% thick-film part to fix an accuracy problem does nothing when its 200 ppm/°C TCR already contributes 1.2% over a 60 °C excursion. Life drift scales with sqrt of the time ratio (random walk, not a ramp).
| Parameter | Type | Description |
|---|---|---|
nominal_ohm * | number | Marked resistance in ohms. |
delta_temp_c | number | Temperature excursion from 25 °C. |
life_drift_pct | number | Life drift percent over life_hours_specified. |
life_hours_required | number | The service life the design must meet. |
life_hours_specified | number | The hours the datasheet's life figure refers to. |
tcr_ppm_per_c | number | Temperature coefficient in ppm/°C. |
tolerance_pct | number | Value tolerance in percent. |
solve_feedback_divider
Exact R1/R2 feedback divider pair for a regulator or comparator target, plus the static error the E96 snap adds. The ideal pair almost never exists in E96, and that snap error is a wrongness, not a tolerance: it is identical on every board and must be budgeted separately from the tolerance band.
| Parameter | Type | Description |
|---|---|---|
v_out * | number | Target output voltage. |
v_ref * | number | Reference voltage at the feedback midpoint. |
r_total_ohm | number | Total divider resistance R1+R2, which sets the quiescent current. |
calculate_high_speed_skin_depth_loss
Calculate high-frequency skin effect depth, Hammerstad surface roughness correction factor (Ksr), and conductor attenuation per IPC-4562B and IPC-2141A for 1GHz to 50GHz signals (PCIe 5.0/6.0, USB4, 112G PAM4), recommending standard ED, VLP, or HVLP/RTF copper foil profiles to recover high-speed signal integrity eye margins.
| Parameter | Type | Description |
|---|---|---|
custom_rq_um | number | Optional custom RMS roughness Rq in μm. |
dielectric_er | number | Substrate relative dielectric constant Er (default: 4.2). |
foil_type | string | Copper profile: 'standard_ed', 'vlp' (default), or 'hvlp'. |
frequency_ghz | number | Signal frequency in GHz (default: 10.0). |
max_acceptable_ksr | number | Maximum allowable roughness penalty factor (default: 1.85). |
trace_thickness_mm | number | Copper foil thickness in mm (default: 0.035 for 1oz). |
trace_width_mm | number | Conductor trace width in mm (default: 0.150). |
calculate_bare_board_test_parameters
Plan IPC-9252B bare-board electrical test recipes (flying probe or bed-of-nails universal grid): establishes continuity thresholds (signal <= 10Ω, power <= 2Ω) and isolation test voltages (Class 1: 50V, Class 2: 100V, Class 3: 250V), automatically derating test voltages to 100V on fine-pitch (<0.100mm) or sensitive RF nets to prevent dielectric breakdown arc-over damage.
| Parameter | Type | Description |
|---|---|---|
has_sensitive_rf_nets | boolean | Whether board contains sensitive RF/microwave nets (default: False). |
min_trace_clearance_mm | number | Minimum conductor clearance on board in mm (default: 0.127). |
nets | array | Optional list of net dicts ({name, min_clearance_mm, is_power, is_sensitive}). |
target_class | string | IPC reliability class: 'Class 1', 'Class 2' (default), or 'Class 3'. |
tester_type | string | Test equipment: 'flying_probe' (default) or 'universal_grid'. |
run_pcb_drc
Execute rigorous physical Design Rule Check (DRC) on a routed PCB and return a scored violation report. Verifies what the router cannot: true copper-to-copper clearance between different nets (segment-to-segment geometry, not grid cells), acid traps and sub-90-degree etching crevices (IPC-2221B 10.1.2), trace width vs process capability, board-edge and mounting-hole keepout intrusion, RF antenna keepout, and high-speed differential pair skew (IPC-2141A 3.4). Returns severity-tagged violations with measured vs required values plus a 0-100 score; `passed` is false when any blocking error remains…
| Parameter | Type | Description |
|---|---|---|
modules * | object | Component modules dict (from synthesize_circuit output). |
netlist * | object | Netlist dict with 'connections' (from synthesize_circuit output). |
board_height_mm | number | PCB height in mm (default: 50.0). |
board_width_mm | number | PCB width in mm (default: 70.0). |
check_acid_traps | boolean | Whether to check acute-angle etching traps and 90-degree high-speed corners (default: true). |
edge_clearance_mm | number | Minimum copper-to-board-edge setback in mm (default: 0.800). |
max_diff_skew_mm | number | Maximum allowed USB differential pair length mismatch in mm (default: 1.250). |
min_clearance_mm | number | Minimum copper-to-copper clearance in mm (default: 0.100 / 4mil). |
min_trace_width_mm | number | Minimum manufacturable trace width in mm (default: 0.127 / 5mil). |
ses_text | string | Specctra SES session text to check. When omitted the board is routed first with the default exact engine, so the report describes what would actually be fabricated. |
analyze_ionic_contamination
Post-clean ionic contamination (ROSE) and ion chromatography compliance analyzer per IPC-CH-65 and IPC-TM-650 2.3.25/2.3.28: compares NaCl-equivalent loading against class limits (1.56 μg/cm² standard, 1.20 Class 3), flags per-species halide carryover (chloride 0.70, bromide 0.54 μg/cm²), and scores dendrite/CAF risk from bias voltage and conductor pitch.
| Parameter | Type | Description |
|---|---|---|
rose_measured_ug_cm2 * | number | Measured NaCl-equivalent loading from the ROSE tester in μg/cm². |
bias_voltage_v | number | Largest sustained DC bias between adjacent conductors (default: 5.0). |
board_area_cm2 | number | Total extracted board area in cm² (default: 100.0). |
min_conductor_gap_mm | number | Smallest biased conductor spacing in mm (default: 0.20). |
species_ug_cm2 | object | Optional ion chromatography per-species results in μg/cm² (chloride, bromide, fluoride, nitrate, sulfate, weak_organic_acid). |
target_class | string | IPC reliability class: 'Class 1', 'Class 2' (default), or 'Class 3'. |
analyze_enig_plating
ENIG/ENEPIG plating thickness and black-pad (interfacial nickel corrosion) risk auditor per IPC-4552A and IPC-4556: verifies gold 0.05~0.20 μm, nickel 3.0~6.0 μm, phosphorus 7~10 wt%, and ENEPIG palladium 0.10~0.30 μm windows; scores galvanic black-pad susceptibility from phosphorus content, gold over-deposition, rework cycles, and process type, and flags gold >0.25 μm solder embrittlement.
| Parameter | Type | Description |
|---|---|---|
finish_type | string | Surface finish: 'enig' (default) or 'enepig'. |
gold_thickness_um | number | XRF immersion-gold thickness in μm (default: 0.08). |
nickel_thickness_um | number | XRF electroless-nickel thickness in μm (default: 4.0). |
palladium_thickness_um | number | ENEPIG palladium barrier thickness in μm (optional). |
phosphorus_wt_pct | number | Nickel deposit phosphorus content in wt% (default: 8.5). |
rework_cycles | integer | Number of prior soldering/rework thermal excursions (default: 0). |
soldering_process | string | Assembly process: 'reflow' (default), 'wave', or 'hand'. |
estimate_solder_joint_thermal_fatigue
IPC-9701A / IPC-D-279 Engelmaier thermal cycling fatigue life estimator for critical SMT attachments: computes CTE-mismatch shear strain range over the component DNP, applies the creep-aware cycle exponent (hot dwell and mean joint temperature), and reports cycles-to-63.2%-failure against the service requirement across TC1-TC4 automotive/aerospace profiles.
| Parameter | Type | Description |
|---|---|---|
compliance_factor_f | number | Joint compliance factor (0.5 typical, 1.0 stiff; default: 0.5). |
component | string | Ref/designation of the worst-case component (default: U1_BGA256). |
condition | string | IPC-9701 profile: 'TC1' 0-100, 'TC2' -25-125, 'TC3' -40-125 (default), 'TC4' -55-125 °C. |
dnp_mm | number | Distance from board neutral point to farthest joint in mm (default: 15.0). |
hot_dwell_min | number | Hot dwell time per cycle in minutes (default: 10.0). |
joint_height_mm | number | Solder joint standoff height in mm; BGA ~0.10-0.45, QFN ~0.05 (default: 0.10). |
package_cte_ppm | number | Package substrate/leadframe CTE in ppm/K (default: 14.0 BT BGA). |
pcb_cte_ppm | number | PCB in-plane CTE in ppm/K (default: 15.0 FR-4). |
required_cycles | number | Service cycles the attachment must survive (default: 3000). |
temp_max_c | number | Explicit cycle maximum °C (overrides condition). |
temp_min_c | number | Explicit cycle minimum °C (overrides condition). |
plan_conformal_coating
IPC-CC-830C / IPC-A-610G §10 conformal coating material selector and masking keepout planner: validates dry-film thickness against the type windows (AR/ER/UR 30-130, SR 50-210, XY 10-50 μm), flags reworkability conflicts for field-repairable products, and enumerates connector/test-point/switch masking keepouts from the BOM before the selective-coating program is generated.
| Parameter | Type | Description |
|---|---|---|
coating_type | string | IPC-CC-830 type: 'AR' acrylic (default), 'ER' epoxy, 'UR' urethane, 'SR' silicone, or 'XY' parylene. |
measured_thickness_um | number | Witness-coupon measured dry-film thickness in μm (default: 75.0). |
modules | object | Optional BOM modules dict — contact-bearing parts become masking keepouts. |
requires_field_rework | boolean | Whether the product must be repairable in service (default: False). |
predict_assembly_mtbf
Telcordia SR-332 / MIL-HDBK-217F part-stress MTBF prediction: classifies the BOM into Telcordia part classes, applies Arrhenius πT at worst-case ambient, quality πQ (level 1-3), and environment πE (ground benign 1.0 to airborne 12.0), returns total FIT, MTBF hours/years, 5-year survival probability, and the top-5 dominant failure-rate contributors.
| Parameter | Type | Description |
|---|---|---|
ambient_temp_c | number | Worst-case operating ambient in °C (default: 40.0). |
duty_cycle_derate | number | Operating duty fraction 0-1 applied to total λ (default: 1.0). |
environment | string | 'ground_benign' | 'ground_fixed' (default) | 'ground_mobile' | 'airborne'. |
modules | object | BOM modules dict — parts are auto-classified by kind/value. |
part_counts | object | Explicit {part_class: quantity} mapping (Telcordia classes). |
quality_level | integer | Telcordia qualification level 1 (screened 0.8×) / 2 (standard, default) / 3 (uncertified 2.0×). |
assess_drop_shock_reliability
JEDEC JESD22-B111 board-level drop shock assessor (1500 G / 0.5 ms half-sine, 30 drops): computes per-component inertial joint loads (F=ma), flags heavy components in board-corner high-strain flexure zones, estimates board natural frequency (border-ring stiffener aware), and prescribes underfill / center-migration / boss-fastening mitigations.
| Parameter | Type | Description |
|---|---|---|
board_height_mm | number | PCB height in mm (default: 50.0). |
board_mass_g | number | Total assembled board mass in g (default: 60.0). |
board_width_mm | number | PCB width in mm (default: 80.0). |
components | array | [{ref, mass_g, x_mm, y_mm, joint_count}] coordinates relative to board center. |
has_border_ring_stiffener | boolean | True when a mid-frame/border ring anchors the board edge (default: False). |
test_g | number | Peak shock level in G (default: 1500 per JESD22-B111). |
solve_via_current_array
IPC-2152 / IPC-2221 via barrel current capacity and stitching-array solver: computes the annular barrel cross-section from drill and plating, applies the thermal formula with internal/external k constants, 40% array current-sharing derate, and IPC-4761 Type VII fill+cap credit, returning the minimum parallel via count for a rail current.
| Parameter | Type | Description |
|---|---|---|
current_a | number | Rail current to carry in A (default: 3.0). |
internal_layer | boolean | Transition between internal layers k=0.024 (default: False). |
is_filled | boolean | IPC-4761 Type VII fill+cap via (default: False). |
max_array_size | integer | Stitching ceiling before recommending wider traces (default: 8). |
max_delta_t_c | number | Allowable barrel temperature rise °C (default: 20.0). |
plating_um | number | Copper plating thickness in μm (default: 25.0). |
via_drill_mm | number | Finished drill diameter in mm (default: 0.30). |
budget_fab_order
JLCPCB / PCBWay headless order cost budget and submission manifest builder: offline math over public price ladders (layers, quantity, area, finish, SMT, shipping, lead priority), cross-vendor recommendation, and a SHA-256 tamper-evident manifest over the manufacturing artifacts for CI order staging — no network, no keys, stdlib-only (macOS laptop or Docker CI runner).
| Parameter | Type | Description |
|---|---|---|
artifacts | object | Manufacturing artifacts {filename: content} for the SHA-256 submission manifest. |
board_h_mm | number | Outline height mm (default: 50.0). |
board_w_mm | number | Outline width mm (default: 70.0). |
include_smt | boolean | Request PCBA assembly (default: False). |
layers | integer | 2 / 4 / 6 layers (default: 2). |
lead_priority | string | 'economy' | 'standard' (default) | 'expedite'. |
qty | integer | Panel quantity: 5/10/30/100 ladder (default: 5). |
shipping | string | 'standard' (default) | 'dhl'. |
smt_parts | integer | Number of SMT placements (default: 0). |
surface_finish | string | 'hasl_lead_free' (default) | 'enig' | 'osp'. |
calculate_qfn_thermal_pad_stencil
IPC-7093A / IPC-7525A QFN and BTC thermal slug window-pane stencil aperture solver: converts solid 100% paste openings into an optimized matrix grid (50%~70% paste coverage, default 60%) separated by 0.15~0.25mm bare copper web outgassing channels, preventing solder voiding (>35%), die floating, and perimeter bridging.
| Parameter | Type | Description |
|---|---|---|
has_unfilled_thermal_vias | boolean | Whether open unfilled vias exist in the pad (default: False). |
is_automotive_class3 | boolean | Whether strict Class 3 / automotive voiding limit <=15% applies (default: False). |
pad_height_mm | number | Thermal slug height in mm (default: 4.5). |
pad_width_mm | number | Thermal slug width in mm (default: 4.5). |
target_coverage_pct | number | Target paste coverage percentage 50~70% (default: 60.0). |
web_width_mm | number | Outgassing web channel width in mm (default: 0.20). |
audit_smt_tombstone_risk
IPC-A-610G §8.3.2.9 / IPC-SM-782 SMT chip passive component thermal relief & tombstoning (Manhattan effect) risk auditor: checks thermal connection width symmetry between opposite pads on 0201/0402/0603/0805 passives, flagging direct solid plane connections without thermal relief spokes that create unbalanced wetting torque.
| Parameter | Type | Description |
|---|---|---|
components | array | List of passive component dicts ({ref, package, pad1_type, pad2_type, pad1_width_mm, pad2_width_mm}). |
default_trace_width_mm | number | Nominal signal trace width in mm (default: 0.20). |
calculate_castellated_pad_geometry
IPC-A-600J §2.9 / IPC-6012E §3.6.3 castellated hole (edge plating half-hole) manufacturability solver: verifies minimum finished hole diameter (>=0.80mm), centerline routing cut offset (|delta| <= 0.05mm), minimum inward pad extension (>=0.50mm), pitch (>=1.27mm), and barrel copper plating thickness (>=20μm) to prevent copper barrel tearout and burrs during daughterboard depaneling.
| Parameter | Type | Description |
|---|---|---|
center_to_edge_offset_mm | number | Cutter path offset from hole center in mm (default: 0.00). |
copper_plating_thickness_um | number | Barrel copper plating thickness in μm (default: 25.0). |
hole_drill_diameter_mm | number | Finished drill diameter in mm (default: 1.00). |
pad_inward_length_mm | number | Inward annular pad extension from board edge in mm (default: 0.80). |
pad_pitch_mm | number | Center-to-center pitch between adjacent holes in mm (default: 2.00). |
pad_width_mm | number | Pad width along board perimeter in mm (default: 0.80). |
solder_mask_clearance_mm | number | Solder mask relief opening margin in mm (default: 0.080). |
calculate_pcb_bow_and_twist
IPC-TM-650 2.4.22 / IPC-6012E §3.4.4 PCB bow and twist (warpage & flatness) analyzer: evaluates residual bimetallic thermal curvature driven by dielectric stackup core/prepreg asymmetry and copper density gradients, enforcing strict <=0.75% limit for SMT assemblies to prevent BGA Head-in-Pillow (HiP) open defects and tombstoning.
| Parameter | Type | Description |
|---|---|---|
board_length_mm | number | Board longest edge in mm (default: 100.0). |
board_thickness_mm | number | Total PCB thickness in mm (default: 1.60). |
board_width_mm | number | Board shortest edge in mm (default: 80.0). |
copper_balance_ratio_top_bottom | number | Top-to-bottom copper volume ratio (default: 1.0). |
dielectric_asymmetry_pct | number | Dielectric core/prepreg thickness asymmetry % (default: 0.0). |
has_smt_components | boolean | Whether assembly contains SMT parts <=0.75% (default: True). |
layer_count | integer | Total layer count (default: 4). |
measured_bow_height_mm | number | Optional measured dial-gauge bow deflection in mm. |
measured_twist_height_mm | number | Optional measured corner lift in mm. |
audit_smt_nozzle_selection
EIA-481 & Juki/Yamaha/Fuji/Panasonic SMT pick-and-place nozzle selector & vacuum audit: verifies nozzle outer diameter (OD) clearances against tape pocket walls and component margins, inner diameter (ID) vacuum seal against leakage, and dynamic inertial hold safety factor (SF >= 1.5) under 3G~5G head acceleration to eliminate pick failure and fly-off.
| Parameter | Type | Description |
|---|---|---|
component_designator | string | Component designator (default: 'U1'). |
component_height_mm | number | Component height in mm. |
component_length_mm | number | Component length in mm. |
component_mass_mg | number | Component mass in milligrams. |
component_width_mm | number | Component width in mm. |
friction_coefficient | number | Surface friction coefficient (default: 0.30). |
head_acceleration_g | number | Head acceleration in G (default: 3.5). |
package_type | string | Package designation (e.g. '0402', '0603', 'SOT-23', 'QFN-32'). |
specified_nozzle_model | string | Optional explicit nozzle model (e.g. 'Juki-502', 'Yamaha-302A'). |
vacuum_pressure_kpa | number | Factory vacuum pressure in kPa (default: 70.0). |
vendor_preference | string | Vendor preference ('Juki', 'Yamaha', 'Fuji'). |
calculate_trace_fusing_current
IPC-2152 §5.3 & Onderdonk equation short-time transient conductor fusing current and burnout solver: computes adiabatic fusing current, time-to-melt, FR-4 resin delamination/blister threshold, and Joule action integral (I²t) for internal/external traces, verifying upstream fuse/PTC protection coordination margin (>=2.0x) against electrical fire.
| Parameter | Type | Description |
|---|---|---|
ambient_temp_c | number | Initial ambient temperature in °C (default: 25.0). |
copper_thickness_um | number | Copper thickness in μm (default: 35.0 for 1oz). |
fault_current_a | number | Estimated short-circuit fault current in Amperes (default: 15.0). |
pulse_duration_s | number | Fault pulse duration in seconds (default: 0.10). |
trace_layer | string | Layer type ('external' or 'internal') (default: 'external'). |
trace_width_mm | number | Trace width in mm (default: 0.50). |
upstream_fuse_i2t_a2s | number | Optional upstream fuse rated melting I²t in A²s. |
upstream_fuse_rating_a | number | Optional upstream fuse rated current in Amperes. |