System Design · Interactive workshop
The CPU workbench
Build it. Run it. Follow the bytes.
Extra cores help only when work is ready to run independently. Build a small instruction graph, step through result production, and compare a dependent chain with parallel calculations. CPU time sums occupied core time; elapsed time measures the interval from start to finish.
The canvas runs in your browser and needs JavaScript. You can read the model below and read the accompanying Library lesson without JavaScript.
What this machine models
Model cpu-dependencies-1 executes load, add, multiply and store operations. Each load reads its configured immutable input cell into a named intermediate result. Arithmetic reads completed results; each store writes its own output cell. Result names illustrate register values, not physical register allocation. Values can pass between modeled cores without a transfer cost. No cache, operating-system scheduler, instruction pipeline, coherence or physical CPU timing is simulated.
Choose 1 to 4 identical cores and 1 to 24 instructions. Every operation occupies one core without interruption for 1 to 20 educational ticks, including loads and stores. Inputs are integers from -1000000 to 1000000; results must fit signed 32-bit integers. An overflow stops as incomplete. Cycles, missing inputs and unsupported configurations are refused before execution. At each tick, all completions happen before new assignments; ties complete in core order, and ready work starts in instruction-list order on the lowest free core. This policy is deterministic, not an optimal schedule promise.
At most 24 completion events and 4 pending events are retained. Execution is synchronously bounded by that small graph; playback only reveals its recorded states and never sets simulated time. Step and Back inspect completions, Reset clears the current run, and one pinned comparison can restore its design. Guests and members use the same temporary memory session through article/workbench detours. Reload clears it. No score or assessment is saved.
The machine previews your configuration after edits; Results retains the previous run. During execution it follows the selected core, showing input memory, operand reads, execution units, logical register results and output writes. Inspect values as four little-endian bytes. Transfers illustrate recorded events; animation duration does not measure hardware latency. Loads copy immutable inputs. Named cells are not physical addresses, and cross-core transfers are idealized. Pause stops event advancement; a transfer illustration may finish its current event.
DAG opens a view of the currently configured instructions, including added or removed nodes. Solid arrows connect value producers; dashed arrows show extra ordering constraints. This view does not execute instructions or reuse previous result values. Invalid cycles and missing producers remain diagnosable while you edit. Its open/closed state follows the same temporary session.
By GOAT Engineer. Explore System Design · Privacy Policy · Contact.