CircuitFormer Dataset
This dataset contains a collection of 33,889 analog circuit netlists, images, and metadata collected from 62 textbooks.
Directory Structure
The dataset is organized into the following flattened directories (no train/test subfolders):
images/: Circuit diagrams (PNG format).metadata/: JSON files containing circuit descriptions, names, and source information.netlists/: SPICE netlist files (.cir).
Index Files
The dataset uses JSONL (JSON Lines) index files to map entries to their respective files.
| Index File | Count | Description |
|---|---|---|
index.jsonl | 33,889 | Master Index. Contains all 33,889 circuits in the dataset. Maps every ID to its image, netlist, and metadata files. |
sim_error_index.jsonl | 2,548 | Simulation Errors. A subset containing only circuits that failed prior simulation checks (based on IDs listed in simulation_check/errors_list.txt). |
sim_valid_index.jsonl | 31,341 | Simulation Valid. The complement of the error index. Contains all 31,341 circuits that did NOT fail the simulation check. |
sim_valid_filtered_index.jsonl | 18,011 | No-X Filtered. A subset of sim_valid_index that excludes ONLY subcircuits (X). All other components (including J, T, etc.) are allowed. |
Component Filtering Details (sim_valid_filtered_index.jsonl)
This index restricts netlists to only use the following Allowed Elements:
| Initial | Component Type |
|---|---|
| C | Capacitor |
| D | Diode |
| E | Voltage-controlled voltage source (VCVS) |
| F | Current-controlled current source (CCCS) |
| G | Voltage-controlled current source (VCCS) |
| H | Current-controlled voltage source (CCVS) |
| I | Current source |
| K | Coupled (Mutual) Inductors |
| L | Inductor |
| M | MOSFET |
| Q | BJT |
| R | Resistor |
| S | Switch (voltage-controlled) |
| V | Voltage source |
| W | Switch (current-controlled) |
Excluded Elements:
- A (XSPICE code model), B (Behavioral source)
- J (JFET), N (Verilog-A), Z (MESFET)
- O, P, T, U, Y (Transmission lines & XSPICE blocks)
- X (Subcircuits) - Commonly excluded to ensure raw component parsability.
Split Statistics
For sim_valid_filtered_index.jsonl:
- Total Entries: 17,253
- Train Split: 16,218 (~94%)
- Validation Split: 1,035 (~6%)
Scripts
check_integrity.py: Verifies that all files referenced in an index exist on disk and checks for orphaned files.
Processed Textbook Sources
The processed circuit images come from the following 62 textbooks:
- 301 Circuits (Elektor Electronics)
- 302 circuits (Unknown)
- 303 Circuits (Elektor Electronics)
- 304 circuits (Unknown)
- 49 easy-to-build electronic projects (Brown, Robert Michael, 1943-, Kneitel, Tom etc.)
- Abraham Pressman Switching Power Supply Design (Abraham I. Pressman)
- Analog Circuits (World Class Designs) (Robert Pease)
- Analog Design Essentials (2006), Sansen
- Analog Integrated Circuit Design (David Johns, Ken Martin)
- Analog Interfacing to Embedded Microprocessor Systems (Stuart Ball)
- Analysis and Design of Analog Integrated Circuits (Paul R. Gray, Paul J. Hurst, Stephen H. Lewis etc.)
- Audio power amplifier design handbook (Douglas Self)
- CMOS Analog Circuit Design (Phillip E. Allen, Douglas R. Holberg)
- CMOS Circuit Design, Layout, and Simulation, (R. Jacob Baker)
- CMOS Integrated Analog-To-Digital and Digital-To-Analog Converters (Rudy J. van de Plassche)
- Complete wireless design (Cotter W. Sayre)
- Crystal Oscillator Design and Temperature Compensation (Marvin E. Frerking)
- Current feedback operational amplifiers and their applications (Raj Senani, D. R. Bhaskar etc.)
- Data Converters (Franco Maloberti)
- Design of Analog CMOS (2nd Ed), Razavi
- Design of Analog Filters (Rolf Schaumann, Mac E. Van Valkenburg)
- Design with Operational Amplifiers and Analog Integrated Circuits (Sergio Franco)
- Designing audio power amplifiers (Bob Cordell)
- Electronic Filter Design Handbook (Arthur B. Williams, Fred J. Taylor)
- Encyclopedia of Electronic Circuits, Vol. 2 (Rudolf F. Graf)
- Encyclopedia of Electronic Circuits, Vol. 3 (Various authors)
- Encyclopedia of Electronic Circuits, Volume 1 (Rudolf Graf, William Sheets)
- Encyclopedia of Electronic Circuits, Volume 5 (Rudolf F. Graf, William Sheets)
- Encyclopedia of Electronic Circuits, Volume 6 (Rudolf F. Graf, William Sheets)
- Encyclopedia of electronic circuits. Vol. 4 (William Sheets, Rudolf F. Graf)
- Fundamentals of Electric Circuits (5th Ed), Alexander, Sadiku
- Fundamentals of Microelectronics (Behzad Razavi)
- Fundamentals of Power Electronics (Robert W. Erickson, Dragan Maksimović)
- IC op-amp cookbook (Walter G. Jung)
- Lumped Elements for RF and Microwave Circuits (Inder Jit Bahl)
- Microelectronic Circuits (Adel S. Sedra, Kenneth C. Smith)
- Microelectronics Circuit Analysis and Design (Donald A Neamen)
- Microwave Engineering (David Pozar)
- Microwave Transistor Amplifiers Analysis and Design (Guillermo Gonzalez)
- Nano-scale CMOS Analog Circuits - Models and CAD Techniques (Amit Patra, Soumya Pandit, Chittaranjan Mandal)
- Op Amps for Everyone, Second Edition (Ron Mancini)
- Operational Amplifiers - Theory and Design (Johan Huijsing)
- Operational Amplifiers (George Clayton, Steve Winder)
- Photodiode amplifiers op amp solutions (Jerald G. Graeme)
- Planar Microwave Engineering A Practical Guide to Theory, Measurement, and Circuits (Thomas H. Lee)
- Power Electronics Converters, Applications, and Design (Ned Mohan, Tore M. Undeland, William P. Robbins)
- Power Electronics Handbook, Rashid
- Power Supply Cookbook, Second Edition (Marty Brown)
- Principles of Power Electronics (J. Kassakian, M. Schlecht, G. Verghese)
- Radio Frequency Integrated Circuit Design (John M. W. Rogers, Calvin Plett)
- RF Circuit Design (Christopher Bowick, John Blyler, Cheryl Ajluni etc.)
- RF Microelectronics 2ed 2012 (Behzad Razavi)
- Secrets of RF Circuit Design (Joseph J. Carr)
- Sensor Technology Handbook (Jon S. Wilson)
- Silicon Optoelectronic Integrated Circuits (Horst Zimmermann)
- Small Signal Audio Design, 4th Edition (Douglas Self)
- Switch-Mode Power Supply Simulation Designing with SPICE 3 (Steven M. Sandler)
- Systematic Design of Analog CMOS Circuits (Paul G. A. Jespers, Boris Murmann)
- The Art of Electronics (Paul Horowitz, Winfield Hill)
- The Circuit Designer’s Companion (Tim Williams)
- The Design of CMOS Radio-Frequency Integrated Circuits, Second Edition (Thomas H. Lee)
- Transformer and Inductor Design Handbook (Colonel Wm. T. McLyman)