1.1 Structure & Function of the Processor

studied byStudied by 2 people
5.0(1)
Get a hint
Hint

What is the primary function of the CPU?

1 / 21

flashcard set

Earn XP

22 Terms

1

What is the primary function of the CPU?

The CPU is responsible for processing all data within the computer.

New cards
2

What are Registers?

Registers are temporary storage/memory locations in the CPU

  • used for a specific purpose e.g. Program Counter (PC) , Memory Data Register (MDR) , Memory Address Register (MAR) , Current Instruction Register (CIR) , Accumulator (ACC)

New cards
3

What are the main components of the CPU?

The main components include the Arithmetic and Logic Unit (ALU), Control Unit (CU), and various registers.

New cards
4

What does the Arithmetic Logic Unit do?

Performs any arithmetic calculations and logical operations or any logical comparistons (AND, OR , NOT, XOR)

New cards
5

The Arithmetic Logic Unit (ALU) is made up of several components, what are they and what do they do?

  • Arithmetic Circuit - Carries out arithmetic calculations (add, sub, div, multiply)

  • Logic Circuit - Carries out logical operations (AND, OR, XOR, NOT)

  • Registers - Additional registers to store data

  • Status Flags - Includes overflow flags (if value is too large for register) or could include a zero flag (to tell if the answer is zero easily)

  • Buses - Used to transport data around the ALU to other parts of the CPU

New cards
6

What is the fetch-decode-execute cycle?

It is the process that the CPU goes through repeatedly to process instructions, consisting of fetching, decoding, and executing instructions.

New cards
7

Explain the FDE cycle

Fetch

  • Program Counter (PC) is loaded with 0

  • Value of PC(0) is copied to Memory Address Register(MAR)

  • The data from that location in memory(0) is sent across the control bus to the Memory Data Register

  • PC is incremented to 1

Decode

  • The data is sent from the MDR to the Current Instruction Register(CIR) where it is split into opcode and operand

  • This is sent to the Control Unit(CU) to be decoded

Execute

  • Which registers are used here will depend on the instruction being executed

    • If a value is being inputted (INP) the ACC will store the value

    • If a value is being outputted (OUT) this will be the value currently in the ACC

    • If a value is loaded from RAM (LDA) this will be sent across the data bus from RAM (in the address location in the MAR) to the MDR

    • If a value is to be stored (STA) it will take the value from the ACC, send it to the MDR and then send it across the data bus to RAM (to the address location in the MAR)

    • If a value is being added to or subtracted from another value (ADD/SUB)

    • If the LMC code is to branch (BRA/BRZ/BRP) the comparison will take place in the ALU

New cards
8

What role does the Control Unit (CU) play in the CPU?

The CU decodes instructions and controls data movement within the CPU.

New cards
9

What is the purpose of the Accumulator?

The Accumulator is where the values are stored temporarily, either after they’ve been inputted or loaded, or after being calculated in the ALU

New cards
10

What is the purpose of the Program Counter (PC)?

The Program Counter stores the address in memory of the next instruction to be fetched.

New cards
11

What role does the Memory Address Register (MAR) play in the CPU?

The MAR is where addresses are stored, either for where the data is being sent in memory, or where it is being fetched from

New cards
12

What role does the Memory Data Register (MDR) play in the CPU?

The MDR is where addresses are stored, either before it is sent to memory, or after being fetched

New cards
13

What role does the Current Instruction Register (CIR) play in the CPU?

When an instruction is being fetched from memory it is located here before being split into opcode and operand, after this, it will be decoded

New cards
14

What is Pipelining?

Pipelining is the process of carrying out multiple instructions concurrently

  • Each instruction will be at a different stage of the fetch-decode-execute cycle

  • One instruction can be fetched while the previous one is being decoded and the one before is being executed

  • In the case of a branch, the pipeline is flushed

New cards
15

How does pipelining improve processor performance?

Pipelining allows multiple instructions to be processed concurrently, reducing latency and increasing execution speed.

New cards
16

What is the difference between Von Neumann and Harvard architecture?

Von Neumann architecture has unified memory for both instructions and data, whereas Harvard architecture has separate memory for instructions and data.

New cards
17

What are the three types of buses in a CPU?

The three types of buses are the Data bus, Address bus, and Control bus.

New cards
18

What does the Data Bus do?

Holds data being sent to or from the CPU (Read/Write operations)

New cards
19

What does the Address bus do?

Holds addresses being sent to or from the CPU and RAM (Read or Write Operations)

New cards
20

What does the Control Bus do?

Sends signals to determine whether the other buses are in read or write mode (sends signals operations)

New cards
21

How is CPU performance measured?

CPU performance is measured by clock speed, number of cores, and cache.

New cards
22

What does cache do in a CPU?

Cache stores frequently used data and instructions for faster retrieval compared to RAM.

New cards

Explore top notes

note Note
studied byStudied by 20 people
... ago
5.0(2)
note Note
studied byStudied by 9 people
... ago
5.0(1)
note Note
studied byStudied by 27 people
... ago
5.0(1)
note Note
studied byStudied by 17 people
... ago
5.0(1)
note Note
studied byStudied by 17 people
... ago
5.0(1)
note Note
studied byStudied by 48 people
... ago
4.5(2)
note Note
studied byStudied by 11 people
... ago
5.0(1)
note Note
studied byStudied by 585 people
... ago
4.0(5)

Explore top flashcards

flashcards Flashcard (60)
studied byStudied by 53 people
... ago
5.0(1)
flashcards Flashcard (26)
studied byStudied by 27 people
... ago
5.0(2)
flashcards Flashcard (150)
studied byStudied by 22 people
... ago
5.0(2)
flashcards Flashcard (57)
studied byStudied by 3 people
... ago
5.0(1)
flashcards Flashcard (46)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (37)
studied byStudied by 3 people
... ago
5.0(1)
flashcards Flashcard (163)
studied byStudied by 7 people
... ago
5.0(2)
flashcards Flashcard (30)
studied byStudied by 55 people
... ago
5.0(1)
robot