Search papers, labs, and topics across Lattice.
This paper introduces PCBWorld, an open-source environment for PCB routing that leverages the KiCad EDA engine, allowing agents to interactively route boards while adhering to strict design rules through real-time Design Rule Check (DRC) feedback. The authors demonstrate that agents trained in PCBWorld significantly outperform traditional grid-action reinforcement learning (RL) policies and open-loop large language model (LLM) baselines, with an RL policy trained on synthetic boards achieving near rule-based router performance on real-world boards. This work highlights the potential of engine-grounded approaches to enhance the capabilities of both RL and LLM agents in PCB design automation.
Agents in PCBWorld can achieve near rule-based performance in PCB routing, showcasing the power of interactive, engine-grounded learning.
PCB routing is the task of connecting the nets of a board with copper traces under strict design rules, yet learning-based methods still lag behind rule-based routers. We introduce PCBWorld, an open-source engine-grounded PCB routing environment built on the KiCad EDA engine. As a human engineer does, agents in PCBWorld interactively route a board through the engine's native operations, using its Design Rule Check (DRC) feedback to keep the routing within the design rules. The environment supports both RL policies and tool-using LLM agents. Alongside the environment, PCBWorld-Bench provides three dataset families in KiCad's native board format (.kicad_pcb), covering two types of controllable synthetic instances and 679 real open-source boards. It scores any completed board with eight engine-checked evaluation metrics, regardless of the routing method. In our experiments, agents in PCBWorld consistently outperformed grid-action RL policies and open-loop LLM baselines, and an RL policy trained only on synthetic boards transferred zero-shot to real boards, approaching rule-based routers. These results position the engine-grounded, interactive approach of PCBWorld as a promising foundation for advancing the routing ability of both RL and LLM agents.