| Address# | Type | Value |
|---|
This simulator demonstrates the basic functioning of a Central Processing Unit (CPU) in a computer. At its core, every modern computer operates on similar principles, no matter how complex its tasks may seem.
The simulation shows five main components:
The CPU operates in a continuous "Fetch-Decode-Execute" cycle:
In this simulator, you can see (and edit) this cycle in action. The program loaded into RAM is a simple counting program. With each complete cycle, it increments a value stored in RAM.
While this simulation runs at a speed we can observe, real CPUs execute billions of instructions per second. This incredible speed allows computers to perform complex tasks like playing video games or displaying this web page.
You can interact with this simulator by clicking the "Clock Tick" button to step through each phase of the cycle, or by switching to "Edit Mode" to modify the instructions in RAM. Or you can enable the "Auto-Run" mode to see the simulation progress automatically.