Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.

Slides:



Advertisements
Similar presentations
A-Level Computing#BristolMet Session Objectives#9 express numbers in binary, binary-coded decimal (BCD), octal and hexadecimal; describe and use two’s.
Advertisements

Princess Sumaya Univ. Computer Engineering Dept. د. بســام كحـالــه Dr. Bassam Kahhaleh.
Binary Systems1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
A digital system is a system that manipulates discrete elements of information represented internally in binary form. Digital computers –general purposes.
Chapter 1 Binary Systems 1-1. Digital Systems
Digital Fundamentals Floyd Chapter 2 Tenth Edition
CSCE 211: Digital Logic Design Chin-Tser Huang University of South Carolina.
VIT UNIVERSITY1 ECE 103 DIGITAL LOGIC DESIGN CHAPTER I NUMBER SYSTEMS AND CODES Reference: M. Morris Mano & Michael D. Ciletti, "Digital Design", Fourth.
Digital Fundamentals Floyd Chapter 2 Tenth Edition
ENGIN112 L3: More Number Systems September 8, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 3 More Number Systems.
WEL COME PRAVEEN M JIGAJINNI PGT (Computer Science) MCA, MSc[IT], MTech[IT],MPhil (Comp.Sci), PGDCA, ADCA, Dc. Sc. & Engg.
S. Barua – CPSC 240 CHAPTER 2 BITS, DATA TYPES, & OPERATIONS Topics to be covered are Number systems.
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Number System and Codes
FIGURES FOR CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
Chapter 3 Data Representation part2 Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2010.
Dr. Bernard Chen Ph.D. University of Central Arkansas
Digital Systems and Binary Numbers
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
EKT 121 / 4 ELEKTRONIK DIGIT 1 CHAPTER 1 : INTRODUCTION.
Chapter 6 Digital Arithmetic: Operations and Circuits ECE 221 Intro
#1 Lec # 2 Winter EECC341 - Shaaban Positional Number Systems A number system consists of an order set of symbols (digits) with relations.
1.11, 1.12, 1.13, 1.14, 1.18, 1.20, 1.23, 1.24, 1.25, 1.32, 1.33.
COMPSCI 210 Semester Tutorial 1
Yuh-Jzer JoungDigital Systems1 Number Systems decimal number : 7397=7× × × ×10 0 a 4 a 3 a 2 a 1 a 0. a -1 a -2 = a 4 ×10 4 +a 3 ×10.
Logic Design Dr. Yosry A. Azzam. Binary systems Chapter 1.
Number systems & Binary codes MODULE 1 Digital Logic Design Ch1-2 Outline of Chapter 1  1.1 Digital Systems  1.2 Binary Numbers  1.3 Number-base Conversions.
Computer Number Systems. d n-1 d n-2 d n d 2-m d 1-m d -m Conventional Radix Number r is the radixd i is a digit d i Є {0, 1, ….., r – 1 } -m ≤
CPS120: Introduction to Computer Science Computer Math: Converting to Decimal.
1 IT 231, CMPE 331 Digital Logic Design Week 2 Number systems and arithmetic.
AP Computer Science A – Healdsburg High School 1 Unit 1 - Binary Numbers - Hexadecimal Numbers.
CSCE 548 Integer Overflows Format String Problem.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
Data Representation in Computer Systems. 2 Signed Integer Representation The conversions we have so far presented have involved only positive numbers.
Digital Logic Lecture 3 Binary Arithmetic By Zyad Dwekat The Hashemite University Computer Engineering Department.
WEEK #2 NUMBER SYSTEMS, OPERATION & CODES (PART 1)
Digital Fundamentals Tenth Edition Floyd Chapter 2 © 2008 Pearson Education.
School of Computer and Communication Engineering, UniMAP Mohd ridzuan mohd nor DKT 122/3 - DIGITAL SYSTEM I Chapter.
Introduction * Binary numbers are represented with a separate sign bit along with the magnitude. * For example, in an 8-bit binary number, the MSB is.
School of Computer and Communication Engineering, UniMAP Mohd ridzuan mohd nor DKT 122/3 - DIGITAL SYSTEM I Chapter.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Chapter 1: Binary Systems
IT1004: Data Representation and Organization Negative number representation.
CPEN Digital Logic Design Binary Systems Spring 2004 C. Gerousis © Digital Design 3 rd Ed., Mano Prentice Hall.
Introduction to Digital Electronics Lecture 2: Number Systems.
ECE DIGITAL LOGIC LECTURE 3: DIGITAL COMPUTER AND NUMBER SYSTEMS Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/19/2016.
1 CS 151 : Digital Design Chapter 4: Arithmetic Functions and Circuits 4-3 : Binary Subtraction.
Digital Logic Design Lab 1,2 By Nora Alaqeel.
Lecture 1.2 (Chapter 1) Prepared by Dr. Lamiaa Elshenawy
Positional Number Systems In a general radix-r positional system, with fixed word width k, a number is represented by a string of k digits.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
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.
Chapter 6. Digital Arithmetic: Operations and Circuits
11001 / 101, / ) Perform subtraction on the given unsigned binary numbers using the 2's complement of the subtrahend. Where the result.
CPE 201 Digital Design Lecture 3: Digital Systems & Binary Numbers (3)
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Introduction To Computer Science
11001 / 101 , / ) Perform subtraction on the given unsigned binary numbers using the 2's complement of the subtrahend. Where the.
Digital Systems and Binary Numbers
CSE 102 Introduction to Computer Engineering
Unit 18: Computational Thinking
Digital Systems and Binary Numbers
Chapter 1 Number System RGGP, Narwana.
CPS120: Introduction to Computer Science
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Arithmetic Operation By: Asst Lec. Besma Nazar Nadhem
Presentation transcript:

Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章 (Chapter 58) 伏 者潛藏也 道紀章 (Chapter 14) 道無形象, 視之不可見者曰 夷

Fuw-Yi Yang2 Text Book: Digital Design 5th ed. Chapter 1 Problems 1.9 Express the following numbers in decimal: (a) ( ) = (b) (A6.5) 16 10* * *16 -1 = (c) (276.24) 8 2* * * * *8 -2 = … (d) (BABA.B) 16 11* * * * *16 -1 =… (e) ( ) =…

Fuw-Yi Yang3 Text Book: Digital Design 5th ed. Chapter 1 Problems 1.13 Do the following conversion problems: (a) Convert decimal to binary. (b) Calculate the binary equivalent of 1/3 out to eight places. Then convert from binary to decimal. How close is the result to 1/3? (c) Convert the binary result in (b) into hexadecimal. Then convert the result to decimal. Is the answer the same?

Fuw-Yi Yang4 Text Book: Digital Design 5th ed. Chapter 1 Problems Solution to 1.13 (a) Convert decimal to binary. Ans: IntegerRemainder FractionCoefficient

Fuw-Yi Yang5 Text Book: Digital Design 5th ed. Chapter 1 Problems FractionCoefficient

Fuw-Yi Yang6 Text Book: Digital Design 5th ed. Chapter 1 Problems Solution to 1.13 (b) Calculate the binary equivalent of 1/3 out to eight places. Then convert from binary to decimal. How close is the result to 1/3? Ans: (1/3) 10 = ( ) 2 Ans: ( ) 2 = = ( ) 10 Ans: (( ) / ( )) *100% = -0.39% How to make the result more close to the true value?

Fuw-Yi Yang7 Text Book: Digital Design 5th ed. Chapter 1 Problems Solution to 1.13 (c) Convert the binary result in (b) into hexadecimal. Then convert the result to decimal. Is the answer the same? Ans: ( ) 2 = (0.55) 16 = 5 * * = 5 * * = ( ) 10 Ans:The result is the same.

Fuw-Yi Yang8 Text Book: Digital Design 5th ed. Chapter 1 Problems 1.19 The following decimal numbers are shown in sign-magnitude form: +9,081 and Convert them to signed-10’s-complement form and perform the following operations (note that the sum is +10,035 and requires five digits and a sign). Definition and solution: next pages

Fuw-Yi Yang9 Text Book: Digital Design 5th ed. Chap Complements Diminished Radix Complement Given a number N in base r having n digits, the (r - 1)’s complement of N is defined as (r n - 1) - N. N = 9286, r = 10, n = 5 The 9’s complement of N is ( ) = Radix Complement Given a number N in base r having n digits, the r’s complement of N is defined as r n - N for N  0 and as 0 for N = 0. The 10’s complement of N is = 90714

Fuw-Yi Yang10 Text Book: Digital Design 5th ed. Chapter 1 Problems Sol (a)(+9081) + (+ 801) = = Signed bit = 0, answer = (+9881) (b) (9286) + (-954) = (009286) + (999046) = Signed bit = 0, answer = (+8332) (Discard the carry out of signed bit) Signed bit

Fuw-Yi Yang11 Text Book: Digital Design 5th ed. Chapter 1 Problems Sol (c) (-9081) + (+ 801) = = Signed bit = 1, answer is a negative Number represented in 10’s-complement form (991720), Or = -( ) = (d) (-9286) + (-954) = (990714) + (999046) = Signed bit = 1, answer is a negative number represented in 10 ’ s-complement form (989760), Or = -( ) = (Discard the carry out of signed bit) Signed bit

Fuw-Yi Yang12 Text Book: Digital Design 5th ed. Chapter 1 Problems Next page shows an implementation of adder-subtractor using 2 ’ s complement form (1 sign bit and 3-bit magnitude). No overflow can occur in the cases: (+ number) + (- number) and (- number) + (+ number) Overflow may occur in the cases: (+ number) + (+ number) and (- number) + (- number) (+5) + (+6) = (-5) + (-6) = Carry in the signed bit position, Carry out of signed bit position

Fuw-Yi Yang13 Text Book: Digital Design 4th Ed. Chap 4.5 Binary Adder-Subtractor Binary Adder Over flow occurs when either Carry in the signed bit position or Carry out of signed bit position but not both or none of them. Signed bit position

Fuw-Yi Yang14 Text Book: Digital Design 5th ed. Chapter 1 Problems 1.29 Decode the following ASCII code: D i g i t a l S y s t e m.