Lecture # 01 - 02
Lecture # 01 - 02
Lecture # 01 - 02
2
Classification of Digital Computers
• Used for Corporate & Government Organizations
M ainfra
me-
compute
•Used for Scientific & r 2 • Small
Research purpose. • Inexpensive
Super- Digital Micro-
• Bulky 1 3 • Microprocessor as its CPU
comput computer
• Complex comput • I/O Devices
er
Calculations. 4 Memory
er
Mini
comput
er 3
4
Central Processing Unit in late 1960’s :
5
Central Processing Unit In The Early 1970’s:
6
Definition of Microprocessor
7
Definition of Microprocessor (Cont’d)
9
Microprocessor
Data Bus: The data bus is used to transfer data between memory and processor or between
I/O device and processor. For example, an 8-bit processor will generally have an 8-bit data bus
and a 16-bit processor will have 16-bit data bus.
Control Bus: The control bus carry control signals, which consists of signals for selection of
memory or I/O device from the given address, direction of data transfer and synchronization
of data transfer in case of slow devices.
Almost all the microprocessors are based on the principle of store-program concept. In store-
program concept, programs or instructions are sequentially stored in the memory locations
that are to be executed.
Each microprocessor has a set of instructions, a list which is provided by the microprocessor
manufacturer. The instruction set of a microprocessor is provided in two forms: binary
machine code and mnemonics.
The set of instructions in the form of binary patterns is called a machine language
and it is difficult for us to understand.
Therefore, the binary patterns are given abbreviated names, called mnemonics,
which forms the assembly language.
• Application
• Architecture
• 4-bit microprocessor
• 8-bit microprocessor
• 16-bit microprocessor
• 32-bit microprocessor
• 64-bit microprocessor
Engr. Athar Ali, Lecturer CSE-MUET 18
Based on Application
RISC stands for Reduced Instruction Set Computer. It is designed to reduce the execution time by
simplifying the instruction set of the computer.
Using RISC processors, each instruction requires only one clock cycle to execute results in uniform
execution time. This reduces the efficiency as there are more lines of code, hence more RAM is
needed to store the instructions.
The compiler also has to work more to convert high-level language instructions into machine code.
Some of the RISC processors are −
Power PC: 601, 604, 615, 620
DEC Alpha: 210642, 211066, 21068, 21164
MIPS: TS (R10000) RISC Processor
PA-RISC: HP 7100LC
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.
Some of the CISC Processors are −
IBM 370/168
VAX 11/780
Intel 80486
Program:
An organized list of Instructions.
Programmable Device:
Device that performs different operations on Data on the
basis of given set of instructions called “programs”.
23
Terminologies :
Instruction Set:
◾ Specific group of operations.
◾ These define What microprocessor can do?
What Microprocessor Takes In:
The data on which microprocessor manipulates must
come from some input devices. i.e.
• keyboard 1
1
•
Terminologies
Binary Numbers:
◾ A Binary digit (Number) is called as a bit.
◾ Microprocessor can only understands Binary Numbers.
BIT
Binary Digit
25
Terminologies
Bit:
Smallest unit of memory
either 0
or 1
Nibble:
A Group of four bits is called 1 1 0 1 0
Nibble.
26
Terminologies :
Byte:
A Group of Eight bits is called 1
Byte. 1 0 1 0 1 0 1 0
Half Word:
1 Half Word = 2 bytes (8 x 2=16 bits).
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
27
Terminologies
Word:
Four bytes are combined to form one
word
1 Word = 4 bytes (8 x 4=32 bits).
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
28
Terminologies :
OPERATIONS
:
Arithmet Logic
ic O peratio
O peratio ns
ns
Microprocessor
performs TWO types •A N D
•Addition of operations •O R
• M ultiplicati
•X O R
on
• Shift Left
• Subtractio
• Shift Right
n
etc.
• Division
etc. 29
Terminologies
Memory (Storage):
Location where we place something that is not currently being used.
Memory is expressed in terms of NUMBER OF BYTES it holds.
It is measured in Kilos , Megas , Gigas.
31