Lecture_1_Number_System
Lecture_1_Number_System
System Sem-1
Architecture
By :Goutam Sanyal
Why
1. Introduction
Logic gates, boolean algebra, combinational circuits, circuit
simplification, flip-flops and sequential circuits, decoders,
multiplexers, registers, counters and memory units.
2. Data Representation and Basic Computer Arithmetic
Number systems, complements, fixed and floating point
representation, character representation, addition, subtraction,
magnitude comparison, multiplication and division algorithms
for integers
Syllabus (Contd..)
5. Memory Organization
Cache memory, Associative memory, mapping.
6. Input-Output Organization
Input / Output: External Devices, I/O Modules, Programmed I/O,
Interrupt-Driven I/O, Direct Memory Access, I/O Channels.
Books
• Text Book
Computer fundamental By Floyd and Jain
M. Mano, Computer System Architecture, Pearson Education 1992
• Reference Books:
A. J. Dos Reis, Assembly Language and Computer Architecture using
C++ and JAVA,Course Technology, 2004
W. Stallings, Computer Organization and Architecture Designing for
Performance, 8 Edition, Prentice Hall of India,2009
M.M. Mano , Digital Design, Pearson Education Asia,2013
B Ram , Computer Organization, Eighth edition,
Number Systems
Types Of Numbers
• Natural Numbers
– The number 0 and any number obtained by
repeatedly adding a count of 1 to 0
• Negative Numbers
– A value less than 0
• Integer
– A natural number, the negative of a natural number,
and 0.
– So an integer number system is a system for
‘counting’ things in a simple systematic way
Exponent Review
– 21 = 2
– 22 = 2 x 2 =4
– 23 = 2 x 2 x 2 = 8
• 1 / x2 = x -2
Decimal Numbering System
Position weights 24 23 22 21 20
digits 1 0 1 1
Binary Numbering System
• How is a positive integer represented in binary?
• Let’s analyze the binary number 110:
110 = (1 x 22) + (1 x 21) + (0 x 20)
= (1 x 4) + (1 x 2) + (0 x 1)
Position weights 22 21 20
Number digits 1 1 0
0 x20 = 0 +
1 x21 = 2 +
1 x 22 = 4
6
positional powers of 2: 2 4 23 2 2 21 20
decimal positional value: 16 8 4 2 1
binary number: 1 0 1 1 1
16 + 4 + 2 + 1 = 2310
Decimal to Binary Conversion
2 ) 56 Rem:
2 ) 28 0
2 ) 14 0
2) 7 0
2) 3 1
2) 1 1
0 1
Decimal to Binary Conversion
21 26 25 24 23 22 21 20
- 16 64 32 16 8 4 2 1
5 1 0 1 0 1
- 4
1
- 1 Answer: 2110 = 101012
0
Decimal to Binary Conversion
Example 2: 5610
56 26 | 25 24 23 22 21 20
- 32 64| 32 16 8 4 2 1
24 |1 1 1 0 0 0
- 16
8
- 8 Answer: 5610 = 1110002
0
Thank You