Central Processing Unit
Central Processing Unit
The central processing unit (CPU) is the unit which performs most of the processing inside a
computer. To control instructions and data flow to and from other parts of the computer, the
CPU relies heavily on a chipset, which is a group of microchips located on the motherboard.
To function properly, the CPU relies on the system clock, memory, secondary storage, and
data and address buses.
1. Controlling all other parts of the machine and sending timing signals.
2. Transferring data between memory and I/O devices
3. Fetching data and instructions from memory
4. Decoding instruction
5. Performing arithmetical and logical operations
6. Executing programs stored in memory
7. Performing communication among the I/O devices etc.
In some microprocessor architectures, the ALU is divided into the arithmetic unit
(AU) and the logic unit (LU).
Logical Operations: These include AND, OR, NOT, XOR, NOR, NAND, etc.
Bit-Shifting Operations: This pertains to shifting the positions of the bits by a certain
number of places to the right or left, which is considered a multiplication operation.
Arithmetic Operations: This refers to bit addition and subtraction. Although
multiplication and division are sometimes used, these operations are more expensive
to make. Addition can be used to substitute for multiplication and subtraction for
division.
Register Set
A processor register (CPU register) is one of a small set of data holding places that are
part of the computer processor.
A register may hold an instruction, a storage address, or any kind of data (such as a bit
sequence or individual characters). Some instructions specify registers as part of the
instruction. For example, an instruction may specify that the contents of two defined
registers be added together and then placed in a specified register.
Data Register.
Accumulator Register.
Memory Address Register.
Memory Buffer Register.
Program Counter.
Instruction Register.
Stack Control Register.
Flag Register.
I/O Address Register.
I/O Buffer Register.
Introduction to Bus
The system bus is a pathway composed of cables and connectors used to carry data
between a computer microprocessor and the main memory. The bus provides a
communication path for the data and control signals moving between the major
components of the computer system.
In short:
- The data lines provide a path for moving data between system modules.
-The data bus may consist of from 32 to hundreds of separate lines, the number of lines
being referred to as the width of the data bus.
- The bandwidth of a data bus is the number of bits it can transfer in a single operation,
called a bus cycle.
Address Bus
-unidirectional
The computer must be able to access every character of memory rapidly, so every
character has its own address number. The central processor specifies which addresses it
wants to read or write and the address bus carries this information to a memory controller
circuit, which locates and fetches the information.
Control bus
A control bus is a computer bus that is used by the CPU to communicate with devices that
are contained within the computer. This occurs through physical connections such as
cables or printed circuits. The CPU transmits a variety of control signals to components
and devices to transmit control signals to the CPU using the control bus. One of the main
objectives of a bus is to minimize the lines that are needed for communication. An
individual bus permits communication between devices using one data channel. The
control bus is bidirectional and assists the CPU in synchronizing control signals to
internal devices and external components. It is comprised of interrupt lines, byte enable
lines, read/write signals and status lines.