Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Digital Logic Design (41-135) Chapter 5 Number Representation & Arithmetic Circuits Younglok Kim Dept. of Electrical Engineering Sogang University Spring.

Similar presentations


Presentation on theme: "1 Digital Logic Design (41-135) Chapter 5 Number Representation & Arithmetic Circuits Younglok Kim Dept. of Electrical Engineering Sogang University Spring."— Presentation transcript:

1 1 Digital Logic Design (41-135) Chapter 5 Number Representation & Arithmetic Circuits Younglok Kim Dept. of Electrical Engineering Sogang University Spring 2006

2 Digital Logic Design Ch.5 Number Representation & Arithmetic Circuits 2 Chapter Objectives Representation of numbers in computers Circuits used to perform arithmetic operations Performance issues in large circuits

3 Digital Logic Design Ch.5 Number Representation & Arithmetic Circuits 3 Numbers Unsigned: positive only Signed: positive & negative numbers Radix point: real numbers Positional number representation of decimal integer n decimal digits

4 Digital Logic Design Ch.5 Number Representation & Arithmetic Circuits 4 Binary Integers Decimal numbers Base-10, radix-10 numbers Binary numbers Base-2, radix-2 numbers Each binary digit is called “bit” Positional number representation of binary integer Least significant bit (LSB) Most significant bit (MSB)

5 Digital Logic Design Ch.5 Number Representation & Arithmetic Circuits 5 Conversion Decimal to Binary Quotient

6 Digital Logic Design Ch.5 Number Representation & Arithmetic Circuits 6 Octal & Hexadecimal Representations Octal numbers Radix-8 3 bits per octal number (10111011) 2 = (273) 8 (101011010111) 2 = (5327) 8 Hexadecimal Radix-16 4 bits per hex number (1010111100100101) 2 = (AF25) 16 (1101101000) 2 = (368) 16

7 Digital Logic Design Ch.5 Number Representation & Arithmetic Circuits 7 Half Adder of Unsigned Numbers (d) Graphical symbol (a) The four possible cases (b) Truth table (c) Circuit

8 Digital Logic Design Ch.5 Number Representation & Arithmetic Circuits 8 Example of Addition

9 Digital Logic Design Ch.5 Number Representation & Arithmetic Circuits 9 Full Adder 00011110 0 1 x i y i c i 1 1 1 1 s i x i y i c i  = 00011110 0 1 x i y i c i 1 111 c i1+ x i y i x i c i y i c i ++= (b) Karnaugh maps 0 0 0 1 0 1 1 1 c i1+ 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 c i x i y i (a) Truth table 0 1 1 0 1 0 0 1 s i c i x i y i s i c i1+

10 Digital Logic Design Ch.5 Number Representation & Arithmetic Circuits 10 Full Adder using Two Half Adders HA s c s c c i x i y i c i1+ s i c i x i y i c i1+ s i (a) Block diagram (b) Detailed diagram

11 Digital Logic Design Ch.5 Number Representation & Arithmetic Circuits 11 n-bit Ripple-Carry Adder FA x n –1 c n c n1” y n1– s n1– FA x 1 c 2 y 1 s 1 c 1 x 0 y 0 s 0 c 0 MSB positionLSB position

12 Digital Logic Design Ch.5 Number Representation & Arithmetic Circuits 12 Multiplication by 3 x 1 x 0 y 8 y 0 y 7 x 8 s 0 s 8 c 8 00 a 7 A: P 9 P 8 P 0 P3A= : (b) Efficient design a 0


Download ppt "1 Digital Logic Design (41-135) Chapter 5 Number Representation & Arithmetic Circuits Younglok Kim Dept. of Electrical Engineering Sogang University Spring."

Similar presentations


Ads by Google