All projects

CompleteUpdated Added

Virtual CPU & Kernel Workshop

A virtual 8-bit computer in the browser, with a custom CPU, devices, boot firmware and a preemptive multitasking kernel that you can program, step through and debug down to individual micro-operations.

Note: Desktop Recommended

About this project

I have always been interested in understanding the foundations and history of computer engineering. Some of my education at Georgia Tech helped fill those in, and adventures in self-study, such as online videos of breadboard computers and Wikipedia pages on operating system design, broadened my understanding while igniting my interests. Around the time of this project, I had become particularly interested in the capabilities of the Linux kernel, the means of communicating with the other hardware within a computer, and what a minimum viable user space that is built off the Linux kernel might look like.

With my AI-assisted tooling in hand, I set out to create a learning environment for me to experiment with kernel and operating system design and simulate some very small and low-level operations on my computer with minimal troubleshooting. Interacting with this tool brought me right back to my computer architecture classes, and it was a real joy getting an opportunity to appreciate all the engineering work that went into building these systems that all modern computers stem from today.

Screenshots

The process table for four user programs and a scheduling timeline showing the kernel switching between them on timer interrupts and system calls (view full size)
The kernel's process table and round-robin scheduling timeline, paused mid-run.
A datapath diagram of the VC-8 CPU with its register file, ALU, address unit, memory address and data registers, and their live values (view full size)
The CPU datapath, where each micro-operation highlights the units it uses.
The assembly editor with the list of example programs and first-program.asm open beside the registers and the terminal (view full size)
Editing VC-8 assembly before building and loading it onto the machine.

Resources