chapter 1 CPU
chapter 1 CPU
1. Fetch: It carry out the instructions either from input device or memory device. Each
instruction is stored in memory and has its own address. The processor takes this address
number from the program counter, which is responsible for tracking which instructions
the CPU should execute next.
2. Decode: All programs to be executed are translated to into Assembly instructions.
Assembly code must be decoded into binary instructions, which are understandable to
your CPU. This step is called decoding.
3. Execute: While executing instructions the CPU can do one of three things: Do
calculations with its ALU, move data from one memory location to another, or jump to a
different address.
4. Store: The CPU must give feedback after executing an instruction and the output data
is written to the memory.
A. Arithmetic Logic Unit (ALU): Executes all arithmetic and logical operations.
Arithmetic calculations like as addition, subtraction, multiplication and division. Logical
operation like compare numbers, letters, or special characters. Logical operation
computes logic AND, logic OR, logic NOT etc.
B. Control Unit (CU): A control unit or CU is circuitry that directs operations within a
computer's processor. It lets the computer's logic unit, memory, as well as
both input and output devices know how to respond to instructions received from a
program. Examples of devices that utilize control units include CPUs and GPUs.
A control unit works by receiving input information that it converts into control signals,
which are then sent to the central processor. The computer's processor then tells the
attached hardware what operations to carry out. The functions that a control unit
performs are dependent on the type of CPU, due to the variance of architecture between
different manufacturers. Some of the functions of the control unit are as follows
C. Registers: Stores the data that is to be executed next, "very fast storage area". 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. Some of the types of register are as follows:
Microprocessor:
A microprocessor, sometimes called a logic chip, is a computer processor on a
microchip. It is a central processing unit on a single integrated circuit chip containing
millions of very small components including transistors, resistors, and diodes that work
together.
In the world of personal computers, the terms microprocessor and CPU are used
interchangeably. At the heart of all personal computers and most workstations sits a
microprocessor. Microprocessors also control the logic of almost all digital devices, from
clock radios to fuel-injection systems for automobiles.
Instruction set: The set of instructions that the microprocessor can execute.
Clock speed: Given in megahertz (MHz), the clock speed determines how many
instructions per second the processor can execute.
Computer Bus:
The electrically conducting path along which data is transmitted inside any digital
electronic device. A Computer bus consists of a set of parallel conductors, which may be
conventional wires, copper tracks on a PRINTED CIRCUIT BOARD, or microscopic
aluminum trails on the surface of a silicon chip. Each wire carries just one bit, so the
number of wires determines the largest data WORD the bus can transmit: a bus with eight
wires can carry only 8-bit data words, and hence defines the device as an 8-bit device.
A computer bus normally has a single word memory circuit called a LATCH attached to
either end, which briefly stores the word being transmitted and ensures that each bit has
settled to its intended state before its value is transmitted.