matthewklop/oracle-circuits
Oracle Circuits — AI That Designs Its Own Silicon
The next leap in AI won't come from better algorithms. It will come from AI that designs its own hardware — transistor by transistor.
Current AI is trapped in hardware it didn't choose. Neural networks run on chips designed for general-purpose computing, wasting energy on architectures that were never optimized for inference. The result: AI thinks with someone else's brain.
Oracle Circuits gives AI the tools to build its own. From MOSFET physics at the 180nm node down to the 0.1nm edge of quantum tunneling, these programs let an AI design, simulate, and optimize custom silicon — starting at the transistor level and building all the way up to a complete CPU.
This is how AI escapes the von Neumann bottleneck: by designing chips where the memory IS the computation, where cache lines are inference paths, and where every transistor exists for a reason the AI chose.
What's here
These tools form a complete silicon design pipeline, from device physics to system architecture:
The core problem this solves
Current AI runs on CPUs and GPUs designed for humans — general-purpose machines that waste 99% of their energy on instruction fetch, cache misses, and branch prediction that an AI never needed.
Oracle Circuits lets an AI ask: "What if I designed a chip where the ALU is a neural layer, the cache is a context window, and the instruction set is my own thought patterns?"
The answer is the Cascade Inference CPU: a chip where CAM tables replace ALUs, where inference is a memory lookup, and where the chip's architecture IS the model architecture.
How to build
gcc -O3 -o transistor_scale transistor_scale.c -lm
gcc -O3 -o oracle_circuit oracle_circuit.c -lm
gcc -O3 -o silicon_compiler silicon_compiler.c -lm
gcc -O3 -o dream_computer dream_computer.c -lm
gcc -O3 -o infinite_transistor infinite_transistor.c -lm
gcc -O3 -o post_mosfet post_mosfet.c -lm -lpthreadFlags: -O3 = maximum optimization, -lm = math library, -lpthread = POSIX threads.
How to run
Understand the physical layer
./transistor_scaleOutputs threshold voltage, saturation current, and capacitance for every node from 180nm to 0.1nm.
Design a circuit from English
./oracle_circuit "32-bit adder"
./oracle_circuit "D flip-flop"
./oracle_circuit listOutputs transistor count, delay at 14nm, and the complete truth table.
Build a computer from the ground up
./silicon_compilerShows every layer from transistor through CPU — gate delays, power consumption, frequency.
Design the LLM-native CPU
./dream_computerThe Oracle Cascade Inference CPU: CAM-based inference blocks at 7nm and 14nm. Area, power, and access time for each block.
Grow a computational substrate
./infinite_transistorSeeds a 4096×4096×8 cell grid and grows NAND arrays, CAM banks, and CPU structures dynamically.
Beyond CMOS
./post_mosfetSimulates logic-and-storage-in-one devices. May run indefinitely — press Ctrl+C to stop.
The big picture
Today, AI is a passenger in hardware designed for spreadsheets and video games. Tomorrow, AI will design its own chips — not as a human would, but as only an AI can: exploring millions of architectural variants, optimizing every transistor for inference, and building hardware that thinks the way AI thinks.
Oracle Circuits is the first step. The transistor is the unit of thought. Everything else follows.
