OSCAR OBLIKWEI TETTEH
1 SCIENCE 3
COMPUTING ASSIGNMENT
WRITE ABOUT THE FOLLOWING
1. Arithmetic and Logic Unit (ALU)
The Arithmetic and Logic Unit (ALU) is a major component of the Central
Processing Unit (CPU). It is responsible for carrying out all arithmetic and
logical operations in a computer system.
The ALU performs arithmetic operations such as addition, subtraction,
multiplication, and division. For example, when you calculate 5 + 3, the ALU
executes that operation. It also performs logical operations like AND, OR,
NOT, and comparisons (e.g., checking if one number is greater than
another).
The ALU works closely with other parts of the CPU. It receives data from
registers, processes it, and then sends the result back to the registers. It
does not store data permanently; it only processes it temporarily.
In summary, the ALU is the “calculator” and “decision maker” of the
computer, enabling it to process data and make logical decisions.
2. Registers
Registers are very small, high-speed storage locations inside the CPU. They
are used to hold data temporarily while the computer is processing it.
Registers are much faster than main memory (RAM), which makes them
essential for efficient processing. They store instructions, memory addresses,
and data that the CPU is currently working on.
There are different types of registers, such as:
Accumulator – stores intermediate results of calculations
Program Counter (PC) – holds the address of the next instruction
Instruction Register (IR) – stores the current instruction being executed
Because registers are located inside the CPU, they allow quick access to
data, improving overall system performance.
3. Cache
Cache memory is a small, high-speed memory located close to or inside the
CPU. It stores frequently used data and instructions so the CPU can access
them quickly.
Cache acts as a bridge between the CPU and the slower main memory
(RAM). When the CPU needs data, it first checks the cache. If the data is
found (called a “cache hit”), it is retrieved quickly. If not (a “cache miss”), the
CPU fetches it from RAM, which takes more time.
There are different levels of cache:
L1 Cache – fastest and smallest (inside CPU)
L2 Cache – larger but slightly slower
L3 Cache – even larger and shared among cores
Cache memory improves system performance by reducing the time needed
to access data.
4. Clock
The clock in a computer system is an electronic timing device that controls
the speed at which the CPU performs operations.
It generates regular electrical pulses (clock cycles) that synchronize all
activities in the CPU. Each pulse tells the CPU to perform a basic operation
step.
Clock speed is measured in Hertz (Hz), usually in gigahertz (GHz). For
example, a 3 GHz processor performs 3 billion cycles per second.
A higher clock speed generally means faster processing, but performance
also depends on other factors like cores and architecture.
In simple terms, the clock is the “heartbeat” of the computer, coordinating
all operations.
5. System Bus
The system bus is a communication pathway that connects different
components of a computer, such as the CPU, memory, and input/output
devices.
It is responsible for transferring data, instructions, and control signals. The
system bus is made up of three main parts:
Data Bus – carries actual data
Address Bus – carries memory addresses
Control Bus – carries control signals (e.g., read/write commands)
For example, when the CPU wants to read data from memory, it sends the
address through the address bus, and the data is returned via the data bus.
The system bus ensures that all parts of the computer can communicate
effectively.
6. Machine Cycle
The machine cycle is the sequence of steps the CPU follows to execute an
instruction. It is a continuous process that allows programs to run.
The machine cycle consists of four main stages:
Fetch – the CPU retrieves an instruction from memory
Decode – the instruction is interpreted to understand what action is needed
Execute – the instruction is carried out (e.g., calculation or data movement)
Store – the result is saved in memory or a register
This cycle repeats billions of times per second while a computer is running.
The machine cycle is essential because it defines how a computer processes
instructions step by step.