Download Fetch >Decode>Excute>Store cycle and more Summaries Computer Architecture and Organization in PDF only on Docsity!
GROUP 1 B.ED. IT A
- ๏ EMMANUEL BOATENG NAME (S) INDEX NUMBER
- ๏ MERCY OSEI
- ๏ REGINALD TAKYI
- ๏ ALIGA MOSES
- ๏ FOSTER OPOKU
- ๏ EMMANUELLA A. SERWAA BONSU
- ๏ SACKEY MATHIAS
- ๏ BARMORM ABRAHAM MBORCHE
- ๏ SAKA NAA AKU JOANA
- ๏ FELICIA OPPONG
- ๏ MIRIAM OWUSU
- ๏ ADDEI EDWARD
- ๏ BOATENG AUGUSTINE
- ๏ RICHARD YAO MENSAH
- ๏ KUUYANI DOUGLAS
- ๏ THERESAH TETTEH
- ๏ ABUBAKARI ABDUL MUMIN AKUNATU
- ๏ ASANTE SAMUEL ACHINA KWAKU
U N I T 6 ยท C P U O R G A N I Z A T I O N A N D P E R F O R M A N C E
The Fetch-Decode-
Execute-Store Cycle
Role of the Control Unit, ALU & Registers
Group 1 ยท Computer Architecture Presentation
B A C K G R O U N D
The CPU Instruction Cycle What Is It? The instruction cycle is the repeating sequence of steps a CPU performs to process every single instruction. Also called the:
โ Fetch-Execute Cycle
โ Instruction Processing Cycle
โ Von Neumann Cycle
โฌ FETCH โ ๐ DECODE โ โ EXECUTE โ ๐ STORE
Repeats for every instruction the program contains
P H A S E 1
FETCH Retrieving the instruction from memory 1
PC
Program Counter holds address of next instruction 2
MAR
PC value copied to Memory Address Register 3
Memory
Control Unit sends READ signal to memory 4
MBR/MDR
Instruction loaded into Memory Buffer Register 5
IR
Instruction transferred to Instruction Register 6
PC+
Program Counter incremented to next address
๐ Key: The PC always points to the NEXT instruction to be fetched, not the current one
P H A S E 2
DECODE Understanding what the instruction means CONTROL UNIT (CU)
Receives instruction from the IR
Contains an Instruction Decoder circuit
Identifies the opcode (operation code)
Generates control signals for the correct operation
Coordinates ALU, registers and memory
Does NOT perform calculations itself
INSTRUCTION REGISTER (IR)
Holds the current instruction being decoded
Split into:
OPCODE OPERAND(S)
What to do What data / address
CU โ Instruction Decoder โ Control Signals
Example: LDA 0x04 โ Load Accumulator from address 0x ADD R1 โ Add contents of Register 1 to Accumulator
Understanding the command once the instruction is in the IR, the CPU needs to figure out what it actually means. The Control Unit (CU) steps in here. It directs its internal hardware component, the Instruction Decoder, to break down the instruction into two parts:Opcode (Operation Code): The action to be performed (e.g., ADD, SUB, LOAD).Operand: The data or the memory address of the data that needs to be acted upon.The CU interprets these binary codes and prepares the internal circuitry (routing signals to the ALU, SUMMARY OF THE DECODE PHASE
Doing the Heavy Lifting, this is where the actual computation happens. The Arithmetic Logic Unit (ALU) becomes active if the decoded instruction requires mathematical calculations (like addition/subtraction) or logical operations (like AND/OR comparisons). The CU signals the data paths to feed the operand data into the ALU. The ALU performs the requested operation. For example, it might add a number fetched from memory to a value already sitting in the CPU. SUMMARY OF THE EXECUTE PHASE
P H A S E 4
STORE (Write-Back) Saving the result to the right location Register Store Fastest โ result stays in CPU Result written back to Accumulator or a General-Purpose Register (R0โRn). No memory access needed. Common in RISC architectures. Example: ADD R1, R2, R3 โ R3 โ R1 + R Memory Store Slower โ writes to RAM MAR โ destination address; MBR โ result; CU issues WRITE signal to memory bus. Example: STA 0x1A04 โ Mem[0x1A04] โ ACC Output Store Result sent to I/O device In some architectures results flow to output ports, video buffer or I/O mapped addresses. Example: OUT โ Output port โ ACC
R E A L - W O R L D A N A L O G Y
The Recipe Chef ๐
CPU Component Kitchen Equivalent Role
Program Counter (PC) Page number in cookbook Knows which recipe step to read next
Memory (RAM) The cookbook / ingredient shelf Stores all recipes and ingredients
MAR / MBR Chef's hand reaching to shelf Points to & fetches ingredient or step
Instruction Register (IR) Chef's short-term memory Holds the current step being followed
Control Unit (CU) Chef's brain reading the recipe Understands and coordinates each step
ALU Chef's hands mixing/chopping Actually performs the operation
Accumulator / GPRs Chef's mixing bowl Holds ingredients & intermediate results
STORE phase Just like a chef follows a recipe step-by-step, the CPU executes instructions one by one โ continuously, billions of times per Plating the finished dish Saves the result to the right place
second.
D I A G R A M C O M P A R I S O N
Fetch-Execute Cycle Flowchart
START / Initialise PC
FETCH (PC โ MAR โ MBR โ
IR)
DECODE (CU reads IR)
EXECUTE (ALU / data
movement)
STORE (result โ register /
memory)
โผ โผ โผ โผ
โบ Increment PC; loop for next instruction
Registers Involved
FETCH
PC, MAR, MBR/MDR, IR
DECODE
IR, CU Decoder
EXECUTE
ACC, GPRs, Flags
STORE
ACC โ MAR โ MBR or GPRs
S U M M A R Y & R E F E R E N C E S
Key Takeaways
โฌ FETCH: PC โ MAR โ Memory โ MBR/MDR โ IR; PC auto-increments
๐ DECODE: Control Unit + Instruction Decoder parse the IR opcode
โ EXECUTE: ALU performs arithmetic/logic using Accumulator & GPRs
๐ STORE: Result written to register (fast) or memory via MAR/MBR
References (APA 7th Edition)
- Patterson, D. A., & Hennessy, J. L. (2020). Computer organization and design: ARM edition (2nd ed.). Morgan Kaufmann.
- Tanenbaum, A. S., & Austin, T. (2013). Structured computer organization (6th ed.). Pearson.
- Stallings, W. (2019). Computer organization and architecture: Designing for performance (11th ed.). Pearson.
- Null, L., & Lobur, J. (2014). The essentials of computer organization and architecture (4th ed.). Jones & Bartlett Learning. Thank you โ Questions Welcome!
SUMMARY OF COMPONENT ROLES COMPONENT PRIMARY ROLE DURING THE CYCLE CONTROL UNIT (CU) The "manager"; coordinates all movement and decodes instructions PC Tracks the location of the next instruction IR Holds the current instruction being decoded/executed. ACCUMULATOR Stores intermediate logic and arithmetic results
- The CPU copies an instruction from memory into the processor.
- The registers involved are the PC (tells where to look), MAR (holds the look-up address), MDR (holds the copied instruction), and IR (holds it for decoding).*?The IR holds the instruction code safely in place.
- The CU uses its internal decoder to translate those \bm{1}s and bm{0}s into command signals (like opening electronic switches) and comparison
- The ALU becomes active during the Execute phase if the instruction involves calculations (ADD, DIV, MUL, SUB).
- It grabs values from registers, processes them, and passes the result back.
- The final result is stored in the Accumulator register inside the CPU. ANSWERS TO THE GUIDING QUESTIONS