HCSE 213 What Is A Microprocessor
HCSE 213 What Is A Microprocessor
FEATURES OF A MICROPROCESSOR
Cost-effective − The microprocessor chips are available at low prices and results its
low cost.
Size − The microprocessor is of small size chip, hence is portable.
Low Power Consumption − Microprocessors are manufactured by using metaloxide
semiconductor technology, which has low power consumption.
Versatility − The microprocessors are versatile as we can use the same chip in a
number of applications by configuring the software program.
Reliability − The failure rate of an IC in microprocessors is very low, hence it is
reliable.
MICROPROCESSOR DESIGN
A microprocessor executes programs including the operating system and the
user applications. a program is a group of low level instructions that the
microprocessor executes in a sequence as it receives them.
When your computer is turned on, the microprocessor gets the first instruction
from the basic input/output system (BIOS). After that, either the BIOS, or the
operating system or an application program will drive the microprocessor,
giving it instructions to perform.
The microprocessor follows a specific sequence, that is, Fetch, Decode, and
then Execute.
Initially, the instructions are stored in the memory in a sequential order. The
microprocessor fetches those instructions from the memory, then decodes it
and executes those instructions till STOP instruction is reached. Later, it sends
the result in binary to the output port. Between these processes, the register
stores the temporarily data and ALU performs the computing functions.
The CPU architecture, in conjunction with CPU speed, determines how fast the
CPU executes instructions of various types.
The external design of the microprocessor, specifically its external interfaces,
determines how fast it communicates information back and forth with external
cache, main memory, the chipset, and other system components.
MICROPROCESSOR COMPONENTS
A microprocessor has 5 standard components which are:
1. execution unit
2. branch predictor
3. floating point unit
4. primary cache
5. bus interfaces
1. Execution unit
This the core of the CPU, its responsible for processing all the instructions.
2. Branch predictor
it attempts to guess where the program will jump to or branch to next, allowing the
fetch and decode unit to retrieve instructions and data in advance so that they will be
available when the CPU requests them.
3. Floating-point unit
The floating-point unit (FPU) is a specialised logic unit optimised to perform non-
integer calculations much faster than the general-purpose logic unit.
4. Primary cache
It is also called Level 1 or L1 cache, it is a small amount of very fast memory that
allows the CPU to retrieve data immediately, rather than waiting for slower main
memory to respond.
5. Bus interfaces
These are the pathways that connect the microprocessor to the memory and other
components. For example, modern microprocessors connect to the chipset
Northbridge via a dedicated bus called the front side bus (FSB) or host bus.
MICROPROCESSOR SPEED
The microprocessor clock coordinates all the CPU and memory operations by
periodically generating a time reference signal called a clock cycle or tick.
The clock frequency is specified in megahertz (MHz), which specifies millions
of ticks per second, or gigahertz (GHz), which specifies billions of ticks per
second.
Clock speed determines how fast instructions execute, that is, some instructions
require one tick, others multiple ticks, and some processors execute multiple
instructions during one tick.
The number of ticks per instruction varies according to microprocessor
architecture, its instruction set, and the specific instruction.
CATEGORIES OF MICROPROCESSORS
Microprocessors are classified into three categories which are
RISC (Reduced Instruction Set Computer) processors
CISC (Complex Instruction Set Computer) processors
Special processors
RISC CHARACTERISTICS
The major characteristics of a RISC processor are: -
It consists of simple instructions.
It supports various data-type formats.
It utilizes simple addressing modes and fixed length instructions for pipelining.
It supports register to use in any context.
One cycle execution time.
“LOAD” and “STORE” instructions are used to access the memory location.
It consists of larger number of registers.
It consists of less number of transistors
CISC (COMPLEX INSTRUCTION SET COMPUTER) PROCESSOR
It is designed to minimize the number of instructions per program, ignoring the
number of cycles per instruction, that is, the emphasis is on building complex
instructions directly into the hardware.
CISC is designed to decrease the memory cost because more storage is needed in
larger programs resulting in higher memory cost and to resolve this, the number of
instructions per program can be reduced by embedding the number of operations in a
single instruction.
The compiler has to do very little work to translate a high-level language into
assembly level language/machine code because the length of the code is relatively
short, so very little RAM is required to store the instructions.
CISC CHARACTERISTICS
Variety of addressing modes.
Larger number of instructions.
Variable length of instruction formats.
Several cycles may be required to execute one instruction.
Instruction-decoding logic is complex.
One instruction is required to support multiple addressing modes.
SPECIAL PROCESSORS
These are the processors which are designed for some special purposes, for example
coprocessor, Input/output processor, Transputer (Transistor Computer) and DSP (Digital
Signal Processor)
COPROCESSOR
A coprocessor is a specially designed microprocessor, which can handle its particular
function many times faster than the ordinary microprocessor, for example, the Maths
Coprocessor.
INPUT/OUTPUT PROCESSOR
It is a specially designed microprocessor with a local memory of its own, which is
used to control I/O devices with minimum CPU involvement, For example, DMA
(direct Memory Access) controller, Keyboard/mouse controller, Graphic display
controller and SCSI port controller.