Understanding the Fetch-Execute Cycle in Computing

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/43

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

44 Terms

1
New cards

Fetch-execute cycle

The process by which a computer retrieves an instruction from memory, decodes it, and executes it.

<p>The process by which a computer retrieves an instruction from memory, decodes it, and executes it.</p>
2
New cards

Arithmetic and Logic Unit (ALU)

A component of the processor that performs arithmetic and logical operations.

3
New cards

Control Unit

The part of the processor that directs the operation of the processor and coordinates how data moves around.

4
New cards

Registers

Small, high-speed storage locations within the CPU used to hold temporary data and instructions.

5
New cards

Program Counter (PC)

A special register that stores the address of the next instruction to be fetched, decoded, and executed.

6
New cards

Accumulator (ACC)

A register that temporarily holds the results of arithmetic and logic operations.

7
New cards

Memory Address Register (MAR)

A register that holds the address of the memory location of the data/instruction to be accessed.

8
New cards

Memory Data Register (MDR)

A register that temporarily stores the data/instruction to be used.

9
New cards

Current Instruction Register (CIR)

A register that holds the instruction currently being decoded or executed.

10
New cards

Buses

Communication systems that transfer data between components inside a computer, including data, address, and control buses.

11
New cards

Von Neumann Architecture

A computer architecture where programs and data are stored together in the same memory, using a single processor for linear processing of instructions.

12
New cards

Fetch-Decode-Execute Cycle

The sequence of steps a computer takes to retrieve an instruction from memory, decode it, and execute it.

<p>The sequence of steps a computer takes to retrieve an instruction from memory, decode it, and execute it.</p>
13
New cards

Opcode

The part of an instruction that specifies the operation to be performed.

14
New cards

Operand

The data or location (memory address or register) on which the opcode operates.

15
New cards

Special Registers

Registers specifically used to carry out the fetch-decode-execute sequence of instructions.

16
New cards

System Bus

A communication pathway that connects the CPU to other components of the computer.

17
New cards

Instruction

A binary coded operation that the CPU can execute.

18
New cards

Data

Information processed or stored by a computer.

19
New cards

Control

Signals that manage the operations of the CPU and other components.

20
New cards

Memory

The component of a computer that stores data and instructions.

21
New cards

Clock

A timing device that synchronizes the operations of the computer's components.

22
New cards

Fetch-Execute Cycle Animation

A visual representation of the fetch-execute cycle process.

<p>A visual representation of the fetch-execute cycle process.</p>
23
New cards

State of the PC

The address held in the Program Counter during the fetch/execute cycle.

24
New cards

Opcode

This part of the instruction indicates the specific operation or action that the CPU should perform like addition, subtraction, or loading data from memory.

25
New cards

Accumulator

(temporarily) stores intermediate results (in the ALU), holds the data currently being processed, and the result of calculation is held in accumulator before being passed to memory unit.

26
New cards

Instruction cycle

The sequence of steps that a processor follows to execute an instruction, including fetching, decoding, and executing the instruction.

27
New cards

Fetch-execute cycle

Processors operate in defined stages that are used to carry out program instructions, repeated for each instruction in a program.

28
New cards

Program Counter (PC)

Holds the address of the next instruction to be carried out.

29
New cards

Memory Address Register (MAR)

Holds the address of the memory location to be accessed.

30
New cards

Memory Data Register (MDR)

Holds the data that is being transferred to or from memory.

31
New cards

Current Instruction Register (CIR)

Holds the instruction that is currently being executed.

32
New cards

Control Unit

Interprets the operation code so that the CPU knows what to do.

33
New cards

Fetch Phase

The phase where the program counter holds the address of the next instruction, which is copied to the MAR.

34
New cards

Decode Phase

The phase where the contents of the CIR are decoded into binary and the operation code is interpreted.

35
New cards

Execute Phase

The phase where the instruction is executed and the result is held in the accumulator or stored in memory.

36
New cards

Fetch: Steps 1 - 4

1. The address of the next instruction is copied from the PC to the MAR. 2. The instruction held at that address is copied to the MDR. 3. The contents of the PC are incremented. 4. The contents of the MDR are copied to the CIR.

<p>1. The address of the next instruction is copied from the PC to the MAR. 2. The instruction held at that address is copied to the MDR. 3. The contents of the PC are incremented. 4. The contents of the MDR are copied to the CIR.</p>
37
New cards

Decode: Steps 5 - 7

5. The instruction held in the CIR is decoded. 6. It is split into operand and opcode. 7. Additional data, if required, is fetched from memory and passed to the accumulator.

38
New cards

Register Transfer Notation

A method of describing the transfer of data between registers in a CPU.

39
New cards

Fetch Execute Cycle Summary

1. Value stored in PC is placed in MAR. 2. PC is incremented. 3. Memory accessed for location held in MAR. 4. Contents of that location placed in MDR/MBR. 5. Contents of MDR/MBR placed in CIR. 6. Operation code held in CIR is decoded. 7. Address held in CIR is copied from CIR to MAR. 8. Contents of address held in MAR are copied to MDR/MBR/sent to accumulator.

<p>1. Value stored in PC is placed in MAR. 2. PC is incremented. 3. Memory accessed for location held in MAR. 4. Contents of that location placed in MDR/MBR. 5. Contents of MDR/MBR placed in CIR. 6. Operation code held in CIR is decoded. 7. Address held in CIR is copied from CIR to MAR. 8. Contents of address held in MAR are copied to MDR/MBR/sent to accumulator.</p>
40
New cards

Clock Pulse

Used to control stages of the fetch-execute cycle.

41
New cards

Effective Address

The address from which data is to be read or written, determined during the decode phase.

42
New cards

Operand

Holds either the address of the data to be used or the actual data to be operated on.

43
New cards

Indirect Address

An addressing mode where the address of the data is not given directly but is stored in another location.

44
New cards

Arithmetic Operation

Operations such as addition, subtraction, multiplication, and division that are performed by the ALU.