From Words to Wires: Generating Functioning Electronic Devices from Natural Language Descriptions

Peter Jansen

Abstract

In this work, we show that contemporary language models have a previously unknown skill -- the capacity for electronic circuit design from high-level textual descriptions, akin to code generation. We introduce two benchmarks: PINS100, assessing model knowledge of electrical components, and MICRO25, evaluating a model's capability to design common microcontroller circuits and code in the Arduino ecosystem that involve input, output, sensors, motors, protocols, and logic -- with models such as GPT-4 and Claude-V1 achieving between 60% to 96% Pass@1 on generating full devices. We include six case studies of using language models as a design assistant for moderately complex devices, such as a radiation-powered random number generator, an emoji keyboard, a visible spectrometer, and several assistive devices, while offering a qualitative analysis performance, outlining evaluation challenges, and suggesting areas of development to improve complex circuit design and practical utility. With this work, we aim to spur research at the juncture of natural language processing and electronic design.

The Challenge of Electronic Design

Traditionally, designing an electronic device is a multi-disciplinary hurdle. A designer must select the right components (ideation), understand their specific electrical interfaces (pinouts), determine how to connect them (schematics), and write the embedded software (code) to make it all work. While Large Language Models (LLMs) have become proficient at generating pure software code, hardware design involves a "physicality" that was thought to be outside their grasp.

The core challenge is the "joint generation" problem: the generated code must perfectly match the generated hardware schematic. If the code expects a sensor on Pin A0, but the schematic wires it to Pin D2, the device fails. This research investigates whether contemporary LLMs have the "common-sense" hardware knowledge and logical consistency to handle this end-to-end design process.

Methodology: Structured Generation and Benchmarking

The study treats electronic design as a structured text generation task. Rather than just asking for "an Arduino project," models are prompted to generate a comprehensive device specification in a structured JSON format. This specification includes a Bill of Materials (BOM), component pinouts, schematics (netlists), and C++ code for the Arduino ecosystem.

A generated schematic showing an LED circuit with a switch and microcontroller.

To quantify hardware design proficiency, two novel benchmarks were introduced:

  • PINS100: Evaluates the model's "encyclopedic" knowledge of 100 common electronic components, testing if the model knows specific pin names and functions.
  • MICRO25: A set of 25 functional design tasks ranging from simple LED circuits to complex I2C communication and logic games.

Evaluation involved manual expert inspection, simulation in Autodesk Tinkercad, and physical breadboard construction, as automated unit tests for hardware remain a significant challenge.

Results and Physical Validation

GPT-4 emerged as a tier-1 designer, achieving a 96% Pass@1 rate on the MICRO25 benchmark, successfully designing 24 out of 25 devices on the first try. Claude-V1 showed moderate performance (60% on schematics), while GPT-3.5 struggled with complex wiring. In the PINS100 test, GPT-4 correctly identified all pins for 74% of components, rising to 86% when allowing for non-critical missing pins.

A physical proof-of-concept device designed by an LLM and manufactured for validation.

Beyond benchmarks, the study physically manufactured six complex "open-generation" devices designed by the models. These included a radiation-powered random number generator and a visible light spectrometer, proving that these "hallucinated" designs can function in the real world. In open-ended tasks, GPT-4 demonstrated an ability to infer hardware needs—for instance, correctly selecting an ultrasonic distance sensor and piezo buzzer for an assistive device for the blind.

Discussion and Future Outlook

While LLMs show remarkable potential as hardware "replicators," they struggle with the "messiness" of the physical world, such as deprecated software libraries or obsolete parts. Current limitations include a lack of automated evaluation tools and safety concerns regarding high-power electronics.

Future work suggests integrating LLMs with electronic simulators (like SPICE) to allow models to test their own circuits in a closed-loop feedback system. This would bridge the gap between theoretical design and practical utility, moving closer to a fully automated "words to wires" pipeline.

Summary updated

BibTeX
@inproceedings{jansen2023from,
  author = {Peter Jansen},
  title = {{From Words to Wires: Generating Functioning Electronic Devices from Natural Language Descriptions}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=BYxHeGsiay},
}
Figure