Unit 1 Number System-1
Unit 1 Number System-1
Unit 1 Number System-1
UNIT – 1
Number System
Computer:
The word computer comes from the word “compute”, which means,
“to calculate”
Computer is an electronic device that can perform arithmetic and
logical operations at high speed
A computer is also called a data processor because it can store,
process, and retrieve data whenever desired
Data is raw material used as input and information is processed
data obtained as output of data processing
Architecture of Computer
4
system
Generation of Computers
5
Note:
SSI: Small Scale Integration
MSI: Medium Scale Integration
PDP: Programmable Data Processors
CDC: Control Data Corporation
Generations of Computers
9
Note:
VLSI: Very Large Scale Integration VAX: Virtual Address Extension
Generations of Computers
10
Note:
ULSI: Ultra Large Scale Integration MPI: Message Passing
RAID: Redundant Array of Independent Interface
Disks SGI: Silicon Graphics Inc.
Generation of Computers
11
1975 to 1989
1964 to 1975
1955 to 1964
1942 to 1955
Classification of Computer
13
1. According to Type
i. Digital Computer
A computer that performs calculations and
logical operations with quantities represented
as digits, usually in the binary number system
iii. Mainframes
A very large and expensive computers capable of
supporting hundreds, or even thousands, of users
simultaneously
Classification of Computer
16
v. Workstations
A terminal or desktop computer in a network
In this context, workstation is just a generic term for a
user's machine (client machine) in contrast to a
"server" or "mainframe"
Classification of Computer
17
3. According to Purpose
i. General Purpose
General purpose computers are
designed to perform a of
range tasks
e.g. Personal Computer
A storage device is any computing hardware that is used for storing and
extracting data
It can hold and store information both temporarily and permanently, and
can be internal or external to a computer, server or any similar computing
device
There are two main types of storage devices: Primary and Secondary
DRAM:
DRAM needs to be refreshed thousands of times per second
DRAM stores a bit of data using a transistor and capacitor pair,
which together comprise a memory cell
The capacitor holds a high or low charge (1 or 0, respectively), and
the transistor acts as a switch that lets the control circuitry on the
chip read the capacitor's state of charge or change it
As this form of memory is less expensive to produce than SRAM,
it is the predominant form of computer memory used in modern
computers.
SRAM:
SRAM does not need to be refreshed, which makes it faster, but it is
more expensive than DRAM
In SRAM, a bit of data is stored using the state of a flip-flop
This form of RAM is more expensive to produce, but is generally
faster and requires less power than DRAM and, in modern
computers, is often used as cache memory for the CPU
Read Only Memory (ROM)
27
A PROM is a memory chip on which data can be written onto only once. Once
a program is written onto a PROM chip, it remains there forever
Unlike RAM, PROM retains its contents when the computer is turned off
The difference between a PROM and a ROM is that a PROM is manufactured as
blank memory and programmed later with a special device called PROM
programmer or the PROM burner, whereas the ROM is programmed during
manufacturing process.
The process of programming a PROM is sometimes called burning a PROM
Magnetic Disks
Number System
34
Characteristics
Use symbols such as I for 1, II for 2, III for 3 etc
Each symbol represents the same value regardless of its position
in the number
The symbols are simply added to find out the value
of a
particular number
Difficulty
It is difficult to perform arithmetic with such a number system
Positional Number System
36
Characteristics
Use only a few symbols called digits
These symbols represent different values
depending on the position they occupy in the number
The value of each digit is determined by:
1. The digit itself
2. The position of the digit in the number
3. The base of the number system (Base = total number of digits in
the number system)
The maximum value of a single digit is always equal to one
less than the value of the base
Positional Number System
37
There are four Positional Number Systems: Binary ( )2, Decimal ( )10,
Octal ( )8 and Hexadecimal ( )16
Decimal 8 4 2 1
00 0 0 0 0
01 0 0 0 1
02 0 0 1 0
03 0 0 1 1
04 0 1 0 0
05 0 1 0 1
06 0 1 1 0
07 0 1 1 1
08 1 0 0 0
09 1 0 0 1
10 1 0 1 0
11 1 0 1 1
12 1 1 0 0
13 1 1 0 1
14 1 1 1 0
15 1 1 1 1
Binary Number System
38
Characteristics:
The maximum value of a single digit is 1 (one less than the value of
the base)
Characteristics:
The maximum value of a single digit is 9 (one less than the value of the
base)
Characteristics:
The maximum value of a single digit is 7 (one less than the value of the
base)
Since there are only 8 digits, 3 bits (23 = 8) are sufficient to represent
any octal number in binary
Hexadecimal Number System
41
Characteristics:
Has total 16 symbols or digits (0, 1, 2, 3, 4, 5, 6, 7,8, 9, A, B, C, D, E,
F). Hence its base = 16
The symbols A, B, C, D, E and F represent the decimal values 10, 11, 12,
13, 14 and 15 respectively
The maximum value of a single digit is 15 (one less than the value of the
base)
Since there are only 16 digits, 4 bits (24 = 16) are sufficient to
represent
any hexadecimal number in binary
Number System conversion Basic
Rules
42
Decimal to Binary
Here is an example of using repeated division to convert
1792 decimal to binary:
Decimal to Octal
Here is an example of using repeated division to convert
1792 decimal to octal:
Decimal to Hexadecimal
Here is an example of using repeated division to convert
1792 decimal to hexadecimal:
8 4 2 1
Hexadecimal is having the base of
0 0 0 0 0
( )16 Hence, think what should be the
1 0 0 0 1
power of 2 to get 16, so we need to do 2 0 0 1 0
24= 16 i. e. 2X2X2X2 = 16 3 0 0 1 1
Now create a reference table by 4 0 1 0 0
using: 4 columns & 16 rows: 5 0 1 0 1
6 0 1 1 0
16/2=8 7 0 1 1 1
8/2=4 8 1 0 0 0
4/2=2 9 1 0 0 1
2/2=1 A 1 0 1 0
B 1 0 1 1
C 1 1 0 0
D 1 1 0 1
E 1 1 1 0
F 1 1 1 1
Octal to Hexadecimal
54
Drop any leading zeros or pad with leading zeros to get groups
of four binary digits (bits):
Binary 011100101 = 1110 0101
Decimal 8 4 2 1
00 0 0 0 0
01 0 0 0 1
02 0 0 1 0
03 0 0 1 1
04 0 1 0 0
05 0 1 0 1
06 0 1 1 0
07 0 1 1 1
08 1 0 0 0
09 1 0 0 1
10 1 0 1 0
11 1 0 1 1
12 1 1 0 0
13 1 1 0 1
14 1 1 1 0
15 1 1 1 1
Hexadecimal to Octal
56
1's complement
The 1's complement of a number is found by changing all 1's to
0's and all 0's to 1’s.
Example of 1's Complement :
Complement of a number
66
2's complement
The 2's complement of binary number is obtained by adding 1 to
the Least Significant Bit (LSB) of 1's complement of the number.
2's complement = 1's complement + 1
2’s complement