Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也

Slides:



Advertisements
Similar presentations
Fuw-Yi Yang1 演算法概論 Introduction to Algorithms Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker:
Advertisements

Binary Systems1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Addition of two binary numbers = = = = 39.
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Exercise 2.5 If each number is represented with 5 bits, 7 = in all three systems -7 = (1's complement) = (signed magnitude) = (2's.
Fuw-Yi Yang1 Public Key Cryptography 公開金鑰密碼 Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker:
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Chapter 3 Data Representation part2 Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2010.
Computer Organization & Programming Chapter2 Number Representation and Logic Operations.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
Fuw-Yi Yang1 演算法概論 Introduction to Algorithms Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker:
Mohammad Amin Kuhail M.Sc. (York, UK) University of Palestine Faculty of Engineering and Urban planning Software Engineering Department Digital Logic Design.
Fuw-Yi Yang1 Textbook: Introduction to Cryptography 2nd ed. By J.A. Buchmann Chap 13 Other Systems Department of Computer Science and Information Engineering,
Positional Number Systems
Chapter 3 Complements Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2009.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
Digital Integrated Circuit Design Laboratory Department of Computer Science and Information EngineeringNational Cheng Kung University LAB - 02 陳培殷 國立成功大學.
Digital Logic Lecture 3 Binary Arithmetic By Zyad Dwekat The Hashemite University Computer Engineering Department.
IT1004: Data Representation and Organization Negative number representation.
ECE DIGITAL LOGIC LECTURE 3: DIGITAL COMPUTER AND NUMBER SYSTEMS Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/19/2016.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 8 Dr. Shi Dept. of Electrical and Computer Engineering.
1 CS 151 : Digital Design Chapter 4: Arithmetic Functions and Circuits 4-3 : Binary Subtraction.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
11001 / 101, / ) Perform subtraction on the given unsigned binary numbers using the 2's complement of the subtrahend. Where the result.
DIGITAL Logic DESIGN Digital system and binary numbers Lecturer: Ms. Farwah Ahmad.
Negative Number Sign-Magnitude: left-most bit as the sign bit –16 bits –Example: 4-bit numbers is given by is given by ’s complement:
CPE 201 Digital Design Lecture 3: Digital Systems & Binary Numbers (3)
Department of Computer Science Georgia State University
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Addition and Subtraction
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Negative Numbers and Subtraction
Digital Logic and Computer Organization
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
11001 / 101 , / ) Perform subtraction on the given unsigned binary numbers using the 2's complement of the subtrahend. Where the.
Textbook: Introduction to Cryptography 2nd ed. By J.A. Buchmann
Textbook: Introduction to Cryptography 2nd ed. By J.A. Buchmann
Digital Systems and Binary Numbers
CSE 102 Introduction to Computer Engineering
Textbook: Introduction to Cryptography 2nd ed. By J.A. Buchmann
CHAPTER 4: Representing Integer Data
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Reference: Moris Mano 4th Edition Chapter 4
Binary Addition & Subtraction
演算法概論 Introduction to Algorithms
Data Representation Data Types Complements Fixed Point Representation
COMPLEMENTS Complements are used in digital computers for simplifying the subtraction operations and for logical manipulation. There are two types of complements.
Subtraction The arithmetic we did so far was limited to unsigned (positive) integers. Today we’ll consider negative numbers and subtraction. The main problem.
EE207: Digital Systems I, Semester I 2003/2004
Data Representation – Chapter 3
1.6) Storing Integer:.
Digital Systems Section 12 Binary Adders. Digital Systems Section 12 Binary Adders.
Unit 18: Computational Thinking
Digital Systems and Binary Numbers
Overview Part 1 – Design Procedure Part 2 – Combinational Logic
Converting from Base b to Base c
CPS120: Introduction to Computer Science
演算法概論 Introduction to Algorithms
Arithmetic Operation By: Asst Lec. Besma Nazar Nadhem
GCSE COMPUTER SCIENCE Topic 3 - Data 3.2 Signed Integers.
Chapter3 Fixed Point Representation
Chapter 1 (Part c) Digital Systems and Binary Numbers
1.6) Storing Integer: 1.7) storing fraction:
Presentation transcript:

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

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

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

Text Book: Digital Design 4th Ed. Chapter 1 Problems Sol. 1-19 (+9286) + (+ 801) = 009286 + 000801 = Sign bit = 0 , answer = (+10087) (b) (-9286) + (801) = (990714) + (000801) = Sign bit = 1 , answer is a negative number represented in 10’s-complement form (991515), or= -(100000 - 991515) = -8485 009286 + 000801 010087 Sign bit 990714 +000801 991515 Fuw-Yi Yang

Text Book: Digital Design 4th 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) = 0 1 0 1 + 0 1 1 0 1 0 1 1 1 0 1 1 + 1 0 1 0 1 0 1 0 1 Carry in the sign bit position, Carry out of sign bit position Fuw-Yi Yang

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