CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION

Slides:



Advertisements
Similar presentations
Chapter 1 Binary Systems 1-1. Digital Systems
Advertisements

Digital Fundamentals Floyd Chapter 2 Tenth Edition
CSCE 211: Digital Logic Design Chin-Tser Huang University of South Carolina.
ECE 331 – Digital System Design
ECE 301 – Digital Electronics Number Systems and Conversion, Binary Arithmetic, and Representation of Negative Numbers (Lecture #10) The slides included.
DIGITAL SYSTEMS TCE1111 Representation and Arithmetic Operations with Signed Numbers Week 6 and 7 (Lecture 1 of 2)
Information Representation and Number Systems BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering.
FIGURES FOR CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
1 Lecture 2: Number Systems Binary numbers Base conversion Arithmetic Number systems  Sign and magnitude  Ones-complement  Twos-complement Binary-coded.
Simple Data Type Representation and conversion of numbers
ES 244: Digital Logic Design Chapter 1 Chapter 1: Introduction Uchechukwu Ofoegbu Temple University.
Data Representation – Binary Numbers
EKT 121 / 4 ELEKTRONIK DIGIT 1 CHAPTER 1 : INTRODUCTION.
Chapter 7 Arithmetic Operations and Circuits Binary Arithmetic Addition –When the sum exceeds 1, carry a 1 over to the next-more-significant column.
Binary Arithmetic & Data representation
ECEN2102 Digital Logic Design Lecture 1 Numbers Systems Abdullah Said Alkalbani University of Buraimi.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION.
1 Digital Convergence! Smart Phone: IT + Telecommunication + Consumer Electronics + Entertainment Analog vs Digital system Ex: Watch, LP vs CD, Camera.
مدار منطقي مظفر بگ محمدي Course Structure & Grading Homework: 25% Midterm: 30% Final:50% There is 5% extra! ( =105!) Textbook:
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
ECE 331 – Digital System Design
Chapter 1: Digital Computers and Information Illustration at beginning of each Chapter Base 10 Binary Base 2 Octal Base 8 Hex bas
WEEK #2 NUMBER SYSTEMS, OPERATION & CODES (PART 1)
CEC 220 Digital Circuit Design Number Systems & Conversions Friday, January 9 CEC 220 Digital Circuit Design Slide 1 of 16.
Digital Fundamentals Tenth Edition Floyd Chapter 2 © 2008 Pearson Education.
CEC 220 Digital Circuit Design Binary Arithmetic & Negative Numbers Monday, January 13 CEC 220 Digital Circuit Design Slide 1 of 14.
School of Computer and Communication Engineering, UniMAP Mohd ridzuan mohd nor DKT 122/3 - DIGITAL SYSTEM I Chapter.
CEC 220 Digital Circuit Design Binary Arithmetic & Negative Numbers Fri, Aug 28 CEC 220 Digital Circuit Design Slide 1 of 14.
CPEN Digital Logic Design Binary Systems Spring 2004 C. Gerousis © Digital Design 3 rd Ed., Mano Prentice Hall.
CEC 220 Digital Circuit Design Number Systems & Conversions Wednesday, Aug 26 CEC 220 Digital Circuit Design Slide 1 of 16.
CSC 331: DIGITAL LOGIC DESIGN COURSE LECTURER: E. Y. BAAGYERE. CONTACT: LECTURE TIME: 15:40 – 17:45 hrs. VENUE: SP-LAB.
ECE 2110: Introduction to Digital Systems
©2010 Cengage Learning SLIDES FOR CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION Click the mouse to move to the next page. Use the ESC key to exit.
Number Systems. The position of each digit in a weighted number system is assigned a weight based on the base or radix of the system. The radix of decimal.
Dr. ClincyLecture 2 Slide 1 CS Chapter 2 (1 of 5) Dr. Clincy Professor of CS Note: Do not study chapter 2’s appendix (the topics will be covered.
Introduction to signals The signals are broadly classified into two categories: 1. Analog Signals. 2. Digital signals.
Unit I From Fundamentals of Logic Design by Roth and Kinney.
Chapter 1 Introduction Digital Systems Digital systems: computation, data processing, control, communication, measurement - Reliable, Integration.
Unit 1 Introduction Number Systems and Conversion.
Chapter 1 Digital Systems and Binary Numbers
Cosc 2150: Computer Organization
Computer Science 210 Computer Organization
Lecture 1: Introduction and Numbers
디지털 로직 및 CAD 실습 Fundamentals of Logic Design (6e) Charles H. Roth, Jr.
Digital Logic and Computer Organization
Integer Real Numbers Character Boolean Memory Address CPU Data Types
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
CHAPTER 1 : INTRODUCTION
Introduction The term digital is derived from the way computers perform operation, by counting digits. Application of digital technology: television, communication.
CSE 102 Introduction to Computer Engineering
Chapter 3 Data Representation
Number Systems.
IT 0213: INTRODUCTION TO COMPUTER ARCHITECTURE
University of Gujrat Department of Computer Science
Principles & Applications
BEE1244 Digital System and Electronics BEE1244 Digital System and Electronic Chapter 2 Number Systems.
MMNSS COLLEGE,KOTTIYAM DEPARTMENT OF PHYSICS
Digital Electronics & Logic Design
Data Representation in Computer Systems
Numbering System TODAY AND TOMORROW 11th Edition
Computer Science 210 Computer Organization
Digital Systems and Binary Numbers
Chapter 2: Number Systems
2’s Complement form 1’s complement form 2’s complement form
CPS120: Introduction to Computer Science
Number Systems Rayat Shikshan Sanstha’s
Number Systems Rayat Shikshan Sanstha’s
Binary to Decimal Conversion
ECE 331 – Digital System Design
Chapter 1 Introduction.
Presentation transcript:

CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION This chapter in the book includes: Objectives Study Guide 1.1 Digital Systems and Switching Circuits 1.2 Number Systems and Conversion 1.3 Binary Arithmetic 1.4 Representation of Negative Numbers 1.5 Binary Codes

Objectives Topics introduced in this chapter: Difference between Analog and Digital System Difference between Combinational and Sequential Circuits Binary number and digital systems Number systems and Conversion Add, Subtract, Multiply, Divide Positive Binary Numbers 1’s Complement, 2’s Complement for Negative binary number BCD code, 6-3-1-1 code, excess-3 code

1.1 Digital Systems and Switching Circuits Digital systems: computation, data processing, control, communication, measurement - Reliable, Integration Analog – Continuous - Natural Phenomena (Pressure, Temperature, Speed…) - Difficulty in realizing, processing using electronics Digital – Discrete - Binary Digit  Signal Processing as Bit unit - Easy in realizing, processing using electronics - High performance due to Integrated Circuit Technology

Good things in Binary Number Binary Digit? Binary:- Two values(0, 1) - Each digit is called as a “bit” Good things in Binary Number - Number representation with only two values (0,1) - Can be implemented with simple electronics devices (ex: Voltage High(1), Low(0) Switch On (1) Off(0)…)

Switching Circuit Combinational Circuit : outputs depend on only present inputs, not on past inputs Sequential Circuit: - outputs depend on both present inputs and past inputs - have “memory” function

1.2 Number Systems and Conversion Decimal: Binary: Radix(Base): Example: Hexa-Decimal:

1.2 Number Systems and Conversion Conversion of Decimal to Base-R

1.2 Number Systems and Conversion Example: Decimal to Binary Conversion 53 2 26 13 6 3 1 rem. = 1 = a0 rem. = 0 = a1 rem. = 1 = a2 rem. = 0 = a3 rem. = 1 = a4 rem. = 1 = a5

1.2 Number Systems and Conversion Conversion of a decimal fraction to Base-R Example:

1.2 Number Systems and Conversion Example: Convert 0.7 to binary Process starts repeating here because .4 was previously obtained

1.2 Number Systems and Conversion Example: Convert 231.3 to base-7 45 7 6 rem.6 rem.3

1.2 Number Systems and Conversion Conversion of Binary to Octal, Hexa-decimal (101011010111 )2 = ( )8, octal (10111011)2 (1010111100100101)2 = ( )16, Hexadecimal (1101101000)2 = ( )16, Hexadecimal

1.3 Binary Arithmetic Addition and carry 1 to the next column carries Example:

1.3 Binary Arithmetic Subtraction and borrow 1 from the next column Example: (indicates a borrow From the 3rd column) borrows

1.3 Binary Arithmetic Subtraction Example with Decimal column 2 note borrow from column 1 note borrow from column 2

1.3 Binary Arithmetic Multiplication Multiply: 13 x11(10) multiplicand multiplier first partial product second partial product sum of first two partial products third partial product sum after adding third partial product fourth partial product final product (sum after adding fourth partial prodoct) 11000011 1111 ) 1001011 ( 01111 0000 1101

1.3 Binary Arithmetic Division The quotient is 1101 with a remainder of 10.

1.4 Representation of Negative Numbers – 1 1 Magnitude MSB (a) Unsigned number b b b b n – 1 n – 2 1 Magnitude Sign 0 denotes + MSB 1 denotes – (b) Signed number

1.4 Representation of Negative Numbers 2’s complement representation for Negative Numbers 1111 1110 1101 1100 1011 1010 1001 1000 - -0 -1 -2 -3 -4 -5 -6 -7 -8 0000 0001 0010 0011 0100 0101 0110 0111 +0 +1 +2 +3 +4 +5 +6 +7 1’s complement 2’s complement N* Sign and magnitude Negative integers -N Positive integers (all systems) +N N

1.4 Representation of Negative Numbers 1’s complement representation for Negative Numbers Example: == 2’s complement: 1’s complement + ‘1’

1.4 Representation of Negative Number Addition of 2’s complement Numbers (correct answer) Case 1 Case 2 wrong answer because of overflow (+11 requires 5 bits including sign) Case 3 (correct answer) Case 4 correct answer when the carry from the sign bit is ignored (this is not an overflow)

1.4 Representation of Negative Numbers Addition of 2’s complement Numbers Case 5 correct answer when the last carry is ignored (this is not an overflow) Case 6 wrong answer because of overflow (-11 requires 5 bits including sign)

1.4 Representation of Negative Numbers Addition of 1’s complement Numbers Case 3 (correct answer) Case 4 (end-around carry) (correct answer, no overflow) Case 5 (end-around carry) (correct answer, no overflow)

1.4 Representation of Negative Numbers Addition of 1’s complement Numbers Case 6 (end-around carry) (wrong answer because of overflow)

1.4 Representation of Negative Numbers Addition of 1’s complement Numbers (end-around carry) Addition of 2’s complement Numbers (discard last carry)

1.5 Binary Codes Decimal Digit 8-4-2-1 Code (BCD) 6-3-1-1 Excees-3 2-out-of-5 Gray Another Gray 1 2 3 4 5 6 7 8 9 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1011 1100 1010 00011 00101 00110 01001 01010 01100 10001 10010 10100 11000 1110 1101

1.5 Binary Codes 6-3-1-1 Code: ASCII Code 1010011 1110100 1100001 1110010 1110100 S t a r t

가중치 코드와 자보수 코드 가중치 코드 자보수 코드 각 비트가 weight를 가지는 코드 Ex. BCD 코드, 2421 코드 십진수에서 보수와 2진수로 변환했을 때의 코드가 모두 보수가 되는 코드. 2421 코드 Ex. 7 -> 2, 0111 -> 1000

ASCII 코드 3비트 : zone 비트, 4비트 : digit 비트 011 zone : 숫자 지역 0 : 0110000 : 30 -> 48 100 zone : 대문자 지역 A : 1000001 : 41 -> 65 110 zone : 소문자 지역 a : 1100001 : 61 -> 97