©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.

Slides:



Advertisements
Similar presentations
ECE 331 – Digital System Design
Advertisements

Binary Arithmetic Binary addition Binary subtraction
Number Systems & Operations
CHAPTER 2 Number Systems, Operations, and Codes
Kavita Hatwal Fall The decimal system, also called the base 10 number system is based on ten numbers: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9. All the numbers.
Level ISA3: Information Representation
CSCE 211: Digital Logic Design Chin-Tser Huang University of South Carolina.
Chapter Chapter Goals Know the different types of numbers Describe positional notation.
ECE 301 – Digital Electronics Course Introduction, Number Systems, Conversion between Bases, and Basic Binary Arithmetic (Lecture #1)
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)
Chapter 02 Binary Values and Number Systems Nell Dale & John Lewis.
Number System and Codes
FIGURES FOR CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
©2008 The McGraw-Hill Companies, Inc. All rights reserved. Digital Electronics Principles & Applications Seventh Edition Chapter 10 Arithmetic Circuits.
Data Representation in Computers. Data Representation in Computers/Session 3 / 2 of 33 Number systems  The additive approach – Number earlier consisted.
©2004 Brooks/Cole FIGURES FOR CHAPTER 18 CIRCUITS FOR ARITHMETIC OPERATIONS Click the mouse to move to the next page. Use the ESC key to exit this chapter.
1.6 Signed Binary Numbers.
ACOE1611 Data Representation and Numbering Systems Dr. Costas Kyriacou and Dr. Konstantinos Tatas.
©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.
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.
#1 Lec # 2 Winter EECC341 - Shaaban Positional Number Systems A number system consists of an order set of symbols (digits) with relations.
Binary Arithmetic & Data representation
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION.
Number Systems. Why binary numbers? Digital systems process information in binary form. That is using 0s and 1s (LOW and HIGH, 0v and 5v). Digital designer.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
Engineering 1040: Mechanisms & Electric Circuits Spring 2014 Number Systems.
Chapter 2 Binary Values and Number Systems. 2 2 Natural Numbers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645,
ECE 331 – Digital System Design
Chapter 2: The Logic of Compound Statements 2.5 Application: Number Systems and Circuits for Addition 1 Counting in binary is just like counting in decimal.
1 Week 2: Binary, Octal and Hexadecimal Numbers READING: Chapter 2.
Number systems, Operations, and Codes
Positional Notation 642 in base 10 positional notation is:
Chapter 2 Number Systems: Decimal, Binary, and Hex.
AEEE2031 Data Representation and Numbering Systems.
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.
Introduction To Number Systems Binary System M. AL-Towaileb1.
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.
Chapter 2 Binary Values and Number Systems Chapter Goals Distinguish among categories of numbers Describe positional notation Convert numbers in.
CPEN Digital Logic Design Binary Systems Spring 2004 C. Gerousis © Digital Design 3 rd Ed., Mano Prentice Hall.
CSC 331: DIGITAL LOGIC DESIGN COURSE LECTURER: E. Y. BAAGYERE. CONTACT: LECTURE TIME: 15:40 – 17:45 hrs. VENUE: SP-LAB.
Lecture No. 4 Computer Logic Design. Negative Number Representation 3 Options –Sign-magnitude –One’s Complement –Two’s Complement  used in computers.
©2010 Cengage Learning SLIDES FOR CHAPTER 4 APPLICATIONS OF BOOLEAN ALGEBRA MINTERM AND MAXTERM EXPANSIONS Click the mouse to move to the next page. Use.
CHAPTER 3 BINARY NUMBER SYSTEM. Computers are electronic machines which operate using binary logic. These devices use two different values to represent.
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.
Binary Values. Numbers Natural Numbers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645, 32 Negative Numbers.
Unit I From Fundamentals of Logic Design by Roth and Kinney.
Unit 1 Introduction Number Systems and Conversion.
Introduction To Number Systems
CHAPTER 18 Circuits for Arithmetic Operations
디지털 로직 및 CAD 실습 Fundamentals of Logic Design (6e) Charles H. Roth, Jr.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
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.
COMPUTING FUNDAMENTALS
Chapter 3 Data Representation
Number Systems.
IT 0213: INTRODUCTION TO COMPUTER ARCHITECTURE
Principles & Applications
ECE 301 – Digital Electronics
Binary to Decimal Conversion
CHAPTER 18 Circuits for Arithmetic Operations
Introduction To Number Systems
Presentation transcript:

©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 this chapter. This chapter in the book includes: Objectives Study Guide 1.1Digital Systems and Switching Circuits 1.2Number Systems and Conversion 1.3Binary Arithmetic 1.4Representation of Negative Numbers 1.5Binary Codes Problems

©2010 Cengage Learning Figure 1-1: Switching circuit

©2010 Cengage Learning Decimal Notation = 9x x x x x10 -2 Binary = 1x x x x x x2 -2 = / / 4 =

©2010 Cengage Learning EXAMPLE: Convert to binary. Conversion (a)

©2010 Cengage Learning Conversion (b) EXAMPLE:Convert to binary.

©2010 Cengage Learning Conversion (c) EXAMPLE: Convert to binary.

©2010 Cengage Learning Conversion (d) EXAMPLE: Convert to base 7.

©2010 Cengage Learning Equation (1-1) Conversion from binary to hexadecimal (and conversely) can be done by inspection because each hexadecimal digit corresponds to exactly four binary digits (bits). Binary  Hexadecimal Conversion

©2010 Cengage Learning Addition Add and in binary.

©2010 Cengage Learning Subtraction (a) The subtraction table for binary numbers is 0 – 0 = 0 0 – 1 = 1and borrow 1 from the next column 1 – 0 = 1 1 – 1 = 0 Borrowing 1 from a column is equivalent to subtracting 1 from that column.

©2010 Cengage Learning Subtraction (b) EXAMPLES OF BINARY SUBTRACTION:

©2010 Cengage Learning Subtraction (c) A detailed analysis of the borrowing process for this example, indicating first a borrow of 1 from column 1 and then a borrow of 1 from column 2, is as follows:

©2010 Cengage Learning Multiplication (a) The multiplication table for binary numbers is 0 x 0 = 0 0 x 1 = 0 1 x 0 = 0 1 x 1 = 1

©2010 Cengage Learning Multiplication (b) The following example illustrates multiplication of by in binary:

©2010 Cengage Learning Multiplication (c) When doing binary multiplication, a common way to avoid carries greater than 1 is to add in the partial products one at a time as illustrated by the following example: 1111multiplicand 1101multiplier 11111st partial product nd partial product (01111)sum of first two partial products rd partial product ( )sum after adding 3rd partial product th partial product final product (sum after adding 4th partial product)

©2010 Cengage Learning Binary Division Binary division is similar to decimal division, except it is much easier because the only two possible quotient digits are 0 and 1. We start division by comparing the divisor with the upper bits of the dividend. If we cannot subtract without getting a negative result, we move one place to the right and try again. If we can subtract, we place a 1 for the quotient above the number we subtracted from and append the next dividend bit to the end of the difference and repeat this process with this modified difference until we run out of bits in the dividend.

©2010 Cengage Learning Binary Division The following example illustrates division of by in binary:

©2010 Cengage Learning 3 Systems for representing negative numbers in binary Sign & Magnitude: Most significant bit is the sign Ex: – 5 10 = ’s Complement: = (2 n – 1) - N Ex: – 5 10 = (2 4 – 1) – 5 = 16 – 1 – 5 = = ’s Complement: N* = 2 n - N Ex: – 5 10 = 2 4 – 5 = 16 – 5 = = Section 1.4 (p. 16)

©2010 Cengage Learning Table 1-1: Signed Binary Integers (word length n = 4)

©2010 Cengage Learning 2’s Complement Addition (a)

©2010 Cengage Learning 2’s Complement Addition (b)

©2010 Cengage Learning 2’s Complement Addition (c)

©2010 Cengage Learning 1’s Complement Addition (b)

©2010 Cengage Learning 1’s Complement Addition (c)

©2010 Cengage Learning 1’s Complement Addition (d)

©2010 Cengage Learning 2’s Complement Addition (d)

©2010 Cengage Learning Binary Codes Although most large computers work internally with binary numbers, the input-output equipment generally uses decimal numbers. Because most logic circuits only accept two-valued signals, the decimal numbers must be coded in terms of binary signals. In the simplest form of binary code, each decimal digit is replaced by its binary equivalent. For example, is represented by: Section 1.5 (p. 21)

©2010 Cengage Learning Table 1–2. Binary Codes for Decimal Digits

©2010 Cengage Learning Table 1-3 ASCII code (incomplete)