A demo kitchen for the fetch Β· decode Β· execute cycle

Order Up: How a CPU Cooks a Program

Pick a dish. Watch every instruction get pulled from the pantry, read by the chef, and cooked to completion β€” one order ticket at a time.

Step 0 / 0

Warehouse RAM

Instruction Counter β€”
Notepad β€”
Fridge β€”
Chef πŸ‘¨β€πŸ³
Rule Book
    Stove
    πŸ”₯Fry
    πŸ’§Boil
    ♨️Steam
    🍞Bake
    Kitchen Table
    β€”

    Order Rail Execution Log

    Hover or focus any station above to see its computer-science name, kitchen name, and real purpose.

    Why the kitchen actually works as a model

    Von Neumann Architecture, Explained Through the Kitchen

    Von Neumann architecture is the basic blueprint almost every computer still follows today. Its core idea is simple but powerful: a single memory holds both the program's instructions and the data those instructions work on, and one processor walks through that memory, step by step, fetching an instruction, figuring out what it means, and carrying it out β€” before moving to the next one.

    That's exactly what the Warehouse in this simulation is doing. Its shelves hold two different kinds of things side by side: numbered recipe steps like "Addr 101 β€” Boil Carrot," and the raw ingredients those steps act on. Nothing on the shelf marks one as "code" and the other as "data" β€” the chef decides which is which only by when he reads it. That's the stored-program concept in miniature: instructions and data sharing one memory, one address space.

    The rest of the cycle follows the same one-track logic. The Instruction Counter holds exactly one address. The Notepad holds exactly one address. The Fridge holds exactly one instruction. The chef can only be doing one thing at a time β€” so the kitchen, like a real von Neumann CPU, works through the recipe strictly in order: fetch, decode, execute, repeat, one instruction per lap.

    That single-file design is also where the famous von Neumann bottleneck comes from. Because there's only one servant making one trip at a time between the Warehouse and the Fridge, the chef can never fetch the next instruction until the current one is fully handled β€” the trip itself becomes the limiting factor, no matter how fast the stove can cook. Real CPUs hit this same wall: no matter how fast the ALU is, it's only ever as fast as memory can feed it new instructions and data.

    πŸ—‚οΈStored-Program Conceptwarehouse
    The program itself is data sitting in memory, not something hard-wired into the machine β€” so a new recipe just means restocking the same shelves.
    🍽️Shared Memoryinstructions + ingredients
    One warehouse, one addressing scheme, for both recipe steps and raw ingredients β€” the defining trait of von Neumann over split-memory (Harvard) designs.
    πŸ”Sequential Executionone ticket at a time
    The Instruction Counter marches through addresses one at a time, and the chef finishes each step fully before the next ticket is even written.
    🚦Von Neumann Bottleneckone servant, one trip
    Every fetch waits on a single path between memory and the chef β€” the same shared-memory design that enables the model also caps its speed.