Docsity

Fetch >Decode>Excute>Store cycle, Summaries of Computer Architecture and Organization

Toggle sidebar
bg1
GROUP 1 B.ED. IT A
NAME (S) INDEX NUMBER
๏ƒ˜EMMANUEL BOATENG 5250110001
๏ƒ˜KWARTENG KWASI 5250110002
๏ƒ˜MERCY OSEI 5250110003
๏ƒ˜REGINALD TAKYI 5250110004
๏ƒ˜ALIGA MOSES 5250110005
๏ƒ˜FOSTER OPOKU 5250110006
๏ƒ˜EMMANUELLA A. SERWAA BONSU 5250110007
๏ƒ˜SACKEY MATHIAS 5250110008
๏ƒ˜BARMORM ABRAHAM MBORCHE 5250110009
๏ƒ˜SAKA NAA AKU JOANA 5250110010
๏ƒ˜FELICIA OPPONG 5250110011
๏ƒ˜MIRIAM OWUSU 5250110012
๏ƒ˜ADDEI EDWARD 5250110013
๏ƒ˜BOATENG AUGUSTINE 5250110014
๏ƒ˜RICHARD YAO MENSAH 5250110015
๏ƒ˜KUUYANI DOUGLAS 5250110016
๏ƒ˜THERESAH TETTEH 5250110017
๏ƒ˜ABUBAKARI ABDUL MUMIN AKUNATU 5250110018
๏ƒ˜ASANTE SAMUEL ACHINA KWAKU 5250110019
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13

Partial preview of the text

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
    • ๏ƒ˜ KWARTENG KWASI
  • ๏ƒ˜ 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)

  1. Patterson, D. A., & Hennessy, J. L. (2020). Computer organization and design: ARM edition (2nd ed.). Morgan Kaufmann.
  2. Tanenbaum, A. S., & Austin, T. (2013). Structured computer organization (6th ed.). Pearson.
  3. Stallings, W. (2019). Computer organization and architecture: Designing for performance (11th ed.). Pearson.
  4. 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

  1. The CPU copies an instruction from memory into the processor.
  2. 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.
  3. 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
  4. The ALU becomes active during the Execute phase if the instruction involves calculations (ADD, DIV, MUL, SUB).
  5. It grabs values from registers, processes them, and passes the result back.
  6. The final result is stored in the Accumulator register inside the CPU. ANSWERS TO THE GUIDING QUESTIONS