Passnownow

Rated 4.8/5 by parents & students

Classwork Series and Exercises {Computer Science – SS2}: Central Processing Unit

Computer Science SS2 First Term

Week 5

Topic: Central Processing Unit

CPU is the hardware part of a computer that carries out the instruction of a computer program by performing the basic arithmetic, logical and input/output operations of the system. CPU is the brain of the computer where most operations, calculations and processes take place.

CPU

Two main components of a CPU

  1. The arithmetic logic unit (ALU) – it performs arithmetic and logical operation. ALU carries out arithmetic operations on integer (whole number) and real (with a decimal point) operands.
  2. The control unit (CU) – it extracts instruction from the computer memory, decodes and executes them and also transferring them to the ALU when necessary. The CU controls the fetching of instructions from the main memory and the subsequent execution of these instructions.

Control unit Functions

  1. The control unit directs the entire computer system to carry out stored program instructions.
  2. The control unit must communicate with both the arithmetic logic unit and main memory.
  3. The control unit uses the instruction contained in the Instruction Register to decide which circuits need to be activated.
  4. The control unit co-ordinates the activities of the other two units as well as all peripheral and auxiliary storage devices linked to the computer.
  5. The control unit instructs the arithmetic logic unit which arithmetic operations or logical operation is to be performed.
  6. The control unit is literally in control.

Functions of Arithmetic Logic Unit

  1. The arithmetic logic unit executes arithmetic and logical operations.
  2. Arithmetic operations include addition, subtraction, multiplication and division.
  3. Logical operations compare numbers, letters and special characters.
  4. Comparison operations test for three conditions:
  • equal-to condition in which two values are the same
  • less-than condition in which one value is smaller than the other
  • greater-than condition in which one value is larger than the other
  1. Relational operations (=, <, >) are used to describe the comparison operations used by the arithmetic logic unit.
  2. The arithmetic logic unit performs logic functions such as AND, OR and NOT

cpu ggg

For more class notes, visit: http://passnownow.com/classwork-support/

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top