FETCH · DECODE · EXECUTE

HOW A CPU RUNS CODE


prostudypk.com
How Does the CPU Run an Instruction?CPU PCIRACC CU ALU RAM0:LOAD 51:ADD 32:STORE3:HALT bus stepinstructionaccumulator
1. Machine Cycle1Fetch2Decode3Execute
2. Who Does What?CU: control · ALU: calculationsRegisters: fast, small memory
3. Remember3 GHz = 3 billion cyclesevery second!
COMPUTER SCIENCE · COMPUTER SYSTEMS · PUNJAB BOARDS
‹ Labs Next ›