Computer science Unit 1 (Main characteristics of a processor)

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/25

encourage image

There's no tags or description

Looks like no tags are added yet.

26 Terms

1
New cards

What is the Central Processing Unit (CPU)

The CPU fetches, decodes, and executes program instructions, handling everything from basic math to running operating system and apps

2
New cards

Where is the CPU installed?

It is installed in a socket on the motherboard; the main circuit that connects all components of a computer.

3
New cards

What are four features of the CPU?

The CPU:

  1. Performs mathematical calculations

  2. Runs applications and games

  3. Manages I/O operations

  4. Stores and receives data during processing


4
New cards

What are the FIVE components of a CPU?

  1. ALU (Arithmetic control unit)

  2. CU ( Control Unit)

  3. Registers

  4. Cache

  5. Clock


5
New cards

What is the ALU?

This is a component of the CPU that handles arithmetic and logical tasks

6
New cards

What are the components of the ALU?

  1. Accumulator (ACC)

  2. Arithmetic and logic circuit

  3. programmable flags


7
New cards

What is the Accumulator (ACC)?

This is an 8-bit register inside the ALU used to store the intermediate and final values of arithmetic and logical operations.

8
New cards

What are Flags (Status Flags)?

These are 1-bit memory cells that indicate the outcome of the last arithmetic or logical operations. These flags tell the CPU whether the result was a zero, negative , overflow or carry.

9
New cards

What is The Control Unit (CU)?

The CU manages all of the computer’s hardware operations. It fetches program instructions from RAM, decodes it and sends electrical signals to tell the relevant hardware components (ALU, registers, I/O registers etc) what to do.

10
New cards

What are Registers?

These are high-speed memory units that enable quick access to data frequently used by the CPU. It also plays a role in data manipulation, memory addressing and tracking processor status.

11
New cards

What are the FIVE types of CPU registers?

  1. Accumulator

  2. Memory Address Register (MAR)

  3. Memory Data Register (MDR)

  4. Memory Buffer Register (MBR)

  5. Current Instruction Register (CIR)


12
New cards

What is The Memory Address Register (MAR)?

A dedicated register in the CPU that holds the exact memory address that the CPU want to read or write to.

13
New cards

Memory Data Registers (MDR)?

The MDR holds the actual program or instruction that is either being fetched from RAM or waiting to be written into RAM. (It and Memory Buffer register are used interchangeably)

14
New cards

Current Instruction Register CIR / instruction Register (IR)

This register temporarily stores instructions that have just been fetched from memory.

15
New cards

What is an Instruction format?

This represents how instructions are stored in memory

16
New cards

What are the FOUR types of instruction formats?

zero-address instruction

one-address instruction

two- address instruction

three-address instruction

17
New cards

Why are Instruction formats needed?

They are needed because the computer does not understand high-level languages, thus compilers or assemblers are required to translate to machine language.


NB: The instruction is divided into a group of bits called a field

18
New cards
<p>What is the Opcode, operand and addressing mode?</p>

What is the Opcode, operand and addressing mode?

Opcode- This field specifies the operation to be performed by the CPU


Operands- These fields contain the data or addresses to data on which the operation acts


Addressing mode- This specifies how to interpret or locate the operand, such as direct, indirect, or immediate addressing.

19
New cards

What is direct addressing ? (Addressing Mode)

The address of the operand is given in the instructions

20
New cards

Indirect Addressing (Addressing mode)

The instruction specifies a register, which contains the address of the operand.

21
New cards

Immediate addressing (Addressing mode)

The operand value is directly embedded into the instructions rather than being stored in a separate register or memory location.

22
New cards
<p>What are Zero-Address instructions?</p>

What are Zero-Address instructions?

This design relies on a stack-based architecture, where operands are automatically popped from the top of a stack, processed by the CPU, and the result is pushed back onto the stack.

<p>This design relies on a <strong>stack-based architecture</strong>, where operands are automatically popped from the top of a stack, processed by the CPU, and the result is pushed back onto the stack.</p>
23
New cards

One- Address Instructions

These instructions consists of a single opcode or an address that gives a value and the operation to be carried out (E.g ADD X). Then the CPU executes the instruction using the operand value and the value stored in the Accumulator.

The result is then stored in the ACC

NB: the CPU always assumes there is a value in the accumulator


24
New cards

Two-Address Instructions

These instructions specify two operands or addresses. The CPU operates on the contents of both operands and the result is then stored in one of the specified operands.

25
New cards

Three-Address Instructions

Three-address instructions are a computer instruction format where all three operands—two sources and one destination—are explicitly specified within a single instruction.

Two operands are used for the operation and the result is stored in the third (R1=R2+R3)

26
New cards