Empirical PCB Review: Combining Open-Source EDA, Local LLMs, and EMI Simulation
This article explores an automated PCB review workflow integrating an open-source EDA DRC engine, a locally deployed Large Language Model (LLM), and a ray-tracing EMI simulation platform. Based on tests conducted on a 4-layer high-speed adapter board, the findings reveal that the open-source DRC and local LLM effectively generated actionable engineering checklists. However, the EMI simulation platform, despite producing visually appealing results, currently lacks the accuracy required for engineering sign-offs and even exposed underlying logical flaws in the simulation engine.
In modern high-speed PCB design, manual reviews or single tools are no longer sufficient to meet increasingly complex board-level reliability requirements. To explore an effective automated review and simulation verification workflow, this engineering practice evaluated a 4-layer high-speed adapter board using an open-source EDA DRC (Design Rule Check) engine, a locally deployed Large Language Model (LLM), and a ray-tracing EMI (Electromagnetic Interference) simulation platform.
To summarize the conclusion upfront: the open-source EDA DRC and local LLM provided actionable checklists directly guiding board modifications. Conversely, the EMI simulation platform currently only offers visually impressive analysis maps that cannot be directly used for engineering sign-offs. Testing its correctness prematurely exposed three logical flaws within the simulation engine itself. This article reviews the entire process, focusing on technical details and problem-solving paths in engineering practice.
1. Board Background and EDA Data Flow
The test object was an adapter carrier board converting a high-performance computing module interface to a standard PCIe x16 slot. The board dimensions were 171.71 × 100.28 mm, featuring a 4-layer stack-up with a thickness of 1.6 mm. The board was of medium scale, containing 106 component footprints, 3066 track segments, and 911 vias. Originally designed in a domestic online EDA platform, the data had to cross format conversion barriers to access the open-source review pipeline.
In the data export phase, there was a typical misconception: the standard version of the online EDA platform did not support direct export to open-source EDA formats. The initial idea was to export to a commercial PCB design software format and perform a secondary conversion, which increased data loss risk and required extra commercial software. However, the professional version of the online EDA platform natively supports open-source EDA format export, eliminating the intermediate step.
The real challenge lay in compatibility handling after format import. When importing data into the open-source EDA tool, the system continuously threw multiple low-level assertion errors:
- Missing via parameters: The log reported
PCB_VIA::GetWidth called without a layer argument. This indicated that during via data parsing, the program failed to obtain necessary layer information, causing an assertion failure when calculating via width. - Plugin registration exception: A
PgmOrNull() failed in register_action()error occurred, usually due to incorrect initialization of the underlying program context or incomplete loading of the plugin dependency environment. - Missing font dependency: The interface frequently popped up a
specific font not foundwarning, requiring manual installation of the corresponding font file in the host system to eliminate interference.
Only after resolving these underlying compatibility issues could the board data be fully presented in the review tool.
2. The Brute-Force Power and Precise Localization of DRC Verification
After data import, the first task was running a full-board DRC. The results were shocking: 2080 violations were triggered, including 1635 errors, 445 warnings, and 59 unconnected nets. These were not probabilistic fuzzy inferences, but deterministic problems derived from rigorous geometric operations, each locatable to specific coordinates.
The most fatal issue appeared in the M7 mounting hole area. M7 is a large grounded hole with a diameter of 4.013 mm, but 20 high-speed differential tracks ran directly through it. The worst intrusion reached -1.7625 mm, meaning the tracks were not just outside the safety clearance but physically pressed into the hole wall. This design would cause the 8 involved differential networks (including positive and negative poles of TX/RX channels) to short-circuit directly with the GND network. If this layout were submitted for prototyping directly, the produced boards would be defective.
Besides such severe short-circuit risks, the DRC also identified other systemic issues: 68 dangling vias (unconnected to any network), 200 unclosed track endpoints (potentially causing impedance discontinuity and manufacturing errors), and 150 abnormal definitions with zero-width annular rings. The DRC engine completed the full-board physical examination with high efficiency through preset geometric and topological rules, demonstrating its irreplaceability in handling deterministic physical rules.
3. Introducing a Local LLM for Smart Review and Log Parsing
Although DRC can calculate geometric conflicts, its output JSON error list poses a high reading barrier for non-specialist engineers and is difficult to automatically associate with design intent. Therefore, we deployed a local LLM with 14B parameters for assisted review. The model ran on a local inference service framework (occupying port 8083), consuming about 22.8 GB of VRAM on a 32GB AI accelerator card. Upgrading from a 12B to a 14B model was driven not by small-talk capabilities, but by the need for robust long-text JSON parsing and summarization.
In the engineering implementation of this phase, we encountered two typical integration pitfalls:
Pitfall 1: The Authentication Paradox of Local Routing. When calling the LLM API, the system threw a no credential for provider route "local-v100" error. This indicated that the LOCAL_LLM_API_KEY environment variable was not set when configuring the model Provider. Although local inference services usually do not require real key verification, mainstream AI orchestration frameworks enforce this credential field to be non-empty during route resolution. This caused the entire call chain to be cut off at the gateway entrance. The solution was to configure an arbitrary placeholder key for the local service to satisfy the framework’s mandatory validation logic.
Pitfall 2: Context Length Overflow. When feeding the full DRC JSON containing 2080 violations to the model, the system directly errored: request (66798 tokens) exceeds the available context size (65536 tokens). Because the error list was too massive, it exceeded the model’s standard 64k context window. In practice, this required log preprocessing before calling the model: writing middleware scripts to truncate errors by severity or using a sliding window to feed batches into the model for parsing and summarization. Ultimately, the LLM successfully transformed the messy JSON into an actionable checklist with coordinate classifications, network ownership, and modification suggestions, greatly improving error review efficiency.
4. Limitations and Reflections on EMI Ray-Tracing Simulation
The third test introduced an EMI simulation platform based on ray-tracing technology, expecting to predict electromagnetic radiation interference from high-speed differential signals to surrounding areas using field analysis tools. However, the actual test results failed to reach a sign-off level of usability.
Although the ray-tracing simulation output highly intuitive electromagnetic field distribution heat maps, its simulation data showed non-negligible deviations from theoretical calculations during multiple cross-validations. During troubleshooting, we even discovered three logical flaws in the simulator itself (such as abnormal boundary condition settings and numerical divergence under specific meshing). This indicates that while frontier electromagnetic field simulations are theoretically feasible algorithmically, their meshing precision and solver stability still face engineering bottlenecks when dealing with real-world scenarios involving complex multi-layer boards, dense vias, and high-frequency differential pairs. Current EMI simulation results are more suitable as references for early proof-of-concept and cannot replace rigorous DRC and impedance rule calculations as the final sign-off basis.
Conclusion
This comprehensive review practice shows that modern PCB design review requires a multi-layered defense system. The open-source EDA DRC engine is the first line of defense to hold the manufacturing bottom line, accurately intercepting physical-level disasters like short and open circuits. The local LLM acts as a bridge between cold rules and human intent, transforming massive logs into actionable engineering checklists through intelligent processing. Advanced field analysis tools like EMI simulation currently require cautious treatment, serving as auxiliary references rather than absolute criteria. Developers building automated review workflows should follow the engineering principle of “rules first, intelligent parsing auxiliary, simulation cautious verification” to truly improve board-level design reliability and delivery efficiency.
