Inspiration

I built this project because I wanted to show the CPU I designed. You can type English commands, and my emulator runs them live using Gemini AI.

How we built it

I designed my own CPU from scratch, defining its registers, instructions, and control flow. Then I wrote a Python emulator to run programs on it. To make it interactive, I integrated Google Gemini AI, so users can type natural language or pseudocode, which Gemini converts into assembly instructions compatible with my CPU. The emulator then executes these instructions step by step, showing register values, jumps, and flags in real time. This way, anyone can see how a CPU works, using only English commands, while demonstrating my custom CPU design and the power of AI-assisted programming.

Challenges we ran into

Designing my own CPU was the biggest challenge — I had to decide how many registers it should have, what instructions it could use, and how they would work together. Writing the emulator in Python to run those instructions correctly, including jumps and loops, was tricky. I also had to make the registers behave like real hardware with limits and handle flags for comparisons. Finally, integrating Google Gemini AI so it could convert English into assembly reliably required careful prompts and cleaning up its output, because AI sometimes adds extra lines or mistakes. Combining all these parts into a smooth, interactive demo took a lot of trial and error, but it taught me a lot about CPUs, programming, and AI.

Accomplishments that we're proud of

I designed my own CPU from scratch and built a working Python emulator for it. I integrated Google Gemini AI so users can type English and see it converted into assembly instructions that run on my CPU. I added features like register limits, step-by-step execution, jumps, and comparison flags. I also created a system that explains what the program does in plain English. Seeing my CPU run live, taking instructions from natural language, and making a smooth, interactive demo was incredibly satisfying. It shows I can combine computer architecture, programming, and AI in one project.

Built With

Share this project:

Updates