EECC341 - Shaaban #1 Lec # 3 Winter 2001 12-6-2001 Binary Multiplication Multiplication is achieved by adding a list of shifted multiplicands according.

Slides:



Advertisements
Similar presentations
EECC250 - Shaaban #1 lec #14 Winter Binary Coded Decimal (BCD) Arithmetic Binary Coded Decimal (BCD) is a way to store decimal numbers.
Advertisements

Binary Addition Rules Adding Binary Numbers = = 1
ENGIN112 L4: Number Codes and Registers ENGIN 112 Intro to Electrical and Computer Engineering Lecture 4 Number Codes and Registers.
CHAPTER 2 Number Systems, Operations, and Codes
Digital Fundamentals Floyd Chapter 2 Tenth Edition
1 Information Representation (level ISA-3) Signed numbers and bit-level operations.
CS 151 Digital Systems Design Lecture 4 Number Codes and Registers.
Number Systems Standard positional representation of numbers:
2-1 Computer Organization Part Fixed Point Numbers Using only two digits of precision for signed base 10 numbers, the range (interval between lowest.
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
DIGITAL SYSTEMS TCE1111 Representation and Arithmetic Operations with Signed Numbers Week 6 and 7 (Lecture 1 of 2)
MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 1 Overflow Signed binary is in fixed range -2 n-1  2 n-1 If the answer for addition/subtraction more than the.
1.6 Signed Binary Numbers.
Digital Logic Chapter 2 Number Conversions Digital Systems by Tocci.
Number Systems and Codes
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Lecture 6 Topics Character codes Error Detection and Correction
1 Arithmetic and Logical Operations - Part II. Unsigned Numbers Addition in unsigned numbers is the same regardless of the base. Given a pair of bit sequences.
Data Representation – Binary Numbers
ECE 4110– Sequential Logic Design
Digital Systems and Logic Design
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.
Chapter 3 Data Representation
Binary Arithmetic & Data representation
EX_01.1/46 Numeric Systems. EX_01.2/46 Overview Numeric systems – general, Binary numbers, Octal numbers, Hexadecimal system, Data units, ASCII code,
Morgan Kaufmann Publishers
1 Digital Systems and Binary Numbers EE 208 – Logic Design Chapter 1 Sohaib Majzoub.
Lec 3: Data Representation Computer Organization & Assembly Language Programming.
Digital Logic Design Lecture 3 Complements, Number Codes and Registers.
Number Systems Decimal (Base 10) –10 digits (0,1,2,3,4,5,6,7,8,9) Binary (Base 2) –2 digits (0,1) Digits are often called bits (binary digits) Hexadecimal.
Integer Conversion Between Decimal and Binary Bases Conversion of decimal to binary more complicated Task accomplished by –Repeated division of decimal.
Number Systems and Codes. CS2100 Number Systems and Codes 2 NUMBER SYSTEMS & CODES Information Representations Number Systems Base Conversion Negative.
ECE 301 – Digital Electronics Unsigned and Signed Numbers, Binary Arithmetic of Signed Numbers, and Binary Codes (Lecture #2)
Summer 2012ETE Digital Electronics1 Binary Arithmetic of Signed Binary Numbers.
ECE 3110: Introduction to Digital Systems unsigned Multiplication/Division codes.
Number Systems Decimal (Base 10) –10 digits (0,1,2,3,4,5,6,7,8,9) Binary (Base 2) –2 digits (0,1) Digits are often called bits (binary digits) Hexadecimal.
ECE 2110: Introduction to Digital Systems Signed Addition/Subtraction.
EEL 3801C EEL 3801 Part I Computing Basics. EEL 3801C Data Representation Digital computers are binary in nature. They operate only on 0’s and 1’s. Everything.
ECE 331 – Digital System Design Representation and Binary Arithmetic of Negative Numbers and Binary Codes (Lecture #10) The slides included herein were.
Ch 2. Number Systems and Codes 2.2 Octal and Hexadecimal Numbers 10 ~ 15 : Alphabet.
Computer Math CPS120 Introduction to Computer Science Lecture 4.
Ahmad Almulhem, KFUPM 2009 COE 202: Digital Logic Design Number Systems Part 4 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
Introduction to Microprocessors Chapter 2. Decimal or Base 10 Numbers  Have ten different digits (0-9)  It is a weighted number system. Each position.
Signed Binary Numbers Arithmetic Subtraction – In 2’s-complement form: Example: 1.Take the 2’s complement of the subtrahend (including the sign bit) and.
Digital Fundamentals Tenth Edition Floyd Chapter 2 © 2008 Pearson Education.
NUMBER SYSTEMS AND CODES. CS Digital LogicNumber Systems and Codes2 Outline Number systems –Number notations –Arithmetic –Base conversions –Signed.
CCE Department – Faculty of engineering - Islamic University of Lebanon Chapter 6 Binary Arithmetic.
Module –I Codes: Weighted and non-weighted codes
©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.
ECE DIGITAL LOGIC LECTURE 4: BINARY CODES Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/26/2016.
Digital Logic & Design Adil Waheed Lecture 03. Range of Binary Numbers Processors can handle 64-bit unsigned binary values. Maximum unsigned decimal number.
Chapter 1 Representing Data in a Computer. 1.1 Binary and Hexadecimal Numbers.
Nguyen Le CS147.  2.4 Signed Integer Representation  – Signed Magnitude  – Complement Systems  – Unsigned Versus Signed Numbers.
Computer Math CPS120 Introduction to Computer Science Lecture 7.
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.
N 3-1 Data Types  Binary information is stored in memory or processor registers  Registers contain either data or control information l Data are numbers.
More Binary Arithmetic - Multiplication
ECE 2110: Introduction to Digital Systems
Chapter 2 Data Types and Representations
Introduction to Chapter 2
Chapter 3 Data Representation
Chapter 1 Number Systems, Number Representations, and Codes
BEE1244 Digital System and Electronics BEE1244 Digital System and Electronic Chapter 2 Number Systems.
Digital Logic & Design Lecture 03.
Computer Organization and Design
2’s Complement form 1’s complement form 2’s complement form
ECE 331 – Digital System Design
Presentation transcript:

EECC341 - Shaaban #1 Lec # 3 Winter Binary Multiplication Multiplication is achieved by adding a list of shifted multiplicands according to the digits of the multiplier. Ex. (unsigned) multiplicand (4 bits) X 13 X multiplier (4 bits) ______ Product (8 bits)

EECC341 - Shaaban #2 Lec # 3 Winter Binary Multiplication (continued) Instead of listing all shifted multiplicands and then adding, we can add each shifted multiplicand to a partial product. The previous un-signed example becomes: multiplicand x 13 x 1101 multiplier partial product 1011 shifted multiplicand partial product 0000 shifted multiplicand partial product 1011 shifted multiplicand partial product 1011 shifted multiplicand product

EECC341 - Shaaban #3 Lec # 3 Winter Two’s-complement Multiplication A sequence of of two’s-complement additions of shifted multiplicands except for last step where the shifted multiplicand corresponding to MSB must be negated. Before adding a shifted multiplicand to the partial product, an additional bit is added to the left of the partial product using sign extension. Ex: multiplicand x - 3 x 1101 multiplier partial product shifted multiplicand partial product shifted multiplicand partial product shifted multiplicand partial product shifted and negated multiplicand product Added bit using sign extension

EECC341 - Shaaban #4 Lec # 3 Winter Binary Division Shift and subtract Example: quotient dividend shifted divisor reduced dividend shifted divisor reduced dividend 0000 shifted divisor reduced dividend 1011 shifted divisor reduced dividend 1011 shifted divisor 1000 remainder

EECC341 - Shaaban #5 Lec # 3 Winter Binary Codes Groups of binary bits are often organized in specific ways or binary codes to: –Represent decimal numbers or alphabetic characters: Binary Coded Decimal (BCD). American Standard Code for Information Interchange (ASCII) –Detect errors: Even parity code. Odd parity code. –Correct errors: CRC Codes. –Aid in transmission and storage of digital information.

EECC341 - Shaaban #6 Lec # 3 Winter Binary Coded Decimal (BCD) Binary Coded Decimal (BCD) is a way to store decimal numbers in binary. This number representation uses 4 bits to store each digit from 0 to 9. For example: = in BCD BCD wastes storage space since 4 bits are used to store 10 combinations rather than the maximum possible 16. BCD is often used in business applications and calculators.

EECC341 - Shaaban #7 Lec # 3 Winter BCD Addition Addition of BCD digits is similar to adding 4-bit unsigned binary numbers except a correction must be made if a result exceeds 1001 by adding 6 to the digit Correction add Example: 1 4

EECC341 - Shaaban #8 Lec # 3 Winter Alphanumeric Binary Codes: ASCII Seven bit codes are used to represent all upper and lower case letters, numbers, punctuation and control characters

EECC341 - Shaaban #9 Lec # 3 Winter Error Detection Binary Codes Errors can occur during data transmission. They should be detected, so that re-transmission can be requested. –Example: For single-bit error: 0010 can be erroneously transmitted as 0011, or 0000, or 0110, or For single-error detection, one additional bit is needed:  Even parity code:  additional bit with value to make total number of ‘1’s even.  Odd parity code: additional bit with value to make total number of ‘1’s odd. Odd Parity bits