0% found this document useful (0 votes)
71 views17 pages

Digital Logic Design: Introduction To Arithmetic Operations

This document provides an introduction to digital logic design and arithmetic operations, including: 1. Explanations of addition, subtraction, multiplication, and binary coded decimal addition. 2. Descriptions of ones' complement and twos' complement representations for binary subtraction. 3. Examples of adding and subtracting binary numbers and performing binary multiplication. 4. An overview of binary coded decimal, including how to convert decimal numbers to BCD and perform BCD addition.

Uploaded by

No One
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views17 pages

Digital Logic Design: Introduction To Arithmetic Operations

This document provides an introduction to digital logic design and arithmetic operations, including: 1. Explanations of addition, subtraction, multiplication, and binary coded decimal addition. 2. Descriptions of ones' complement and twos' complement representations for binary subtraction. 3. Examples of adding and subtracting binary numbers and performing binary multiplication. 4. An overview of binary coded decimal, including how to convert decimal numbers to BCD and perform BCD addition.

Uploaded by

No One
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 17

Digital Logic Design

Introduction to Arithmetic Operations

Lecture # 1_B

Chapter 1 1
ARITHMETIC OPERATIONS

1. Addition
2. Subtraction
3. Multiplication
4. BCD Addition

Chapter 1 2
One’s Complement

Chapter 1 3
Two’s Complement

Chapter 1 4
Chapter 1 5
Addition of Two Binary Numbers

Chapter 1 6
Subtraction of Two Binary Numbers

Chapter 1 7
Binary Subtraction using 2’s complement

(1001)2 – (1100)2 9-12


1001
= -3

1100

2’s Complement
0111
1100

1 0011

Chapter 1 8
Multiplication of Two Binary Numbers

Chapter 1 9
Binary Coded Decimal (BCD)

• The BCD code is the 8,4,2,1 code.


• 8, 4, 2, and 1 are weights
• BCD is a weighted code
• This code is the simplest, most intuitive binary code for
decimal digits and uses the same powers of 2 as a binary
number, but only encodes the first ten values from 0 to 9.
• Example: 1001 (9) = 1000 (8) + 0001 (1)

Chapter 1 10
Warning: Conversion or Coding?
• Do NOT mix up conversion of a decimal number to a binary number
with coding a decimal number with a BINARY CODE. 

• 1310 = 11012 (This is conversion) 


13  0001 | 0011 (This is coding)

Chapter 1 11
Binary Coded Decimal (BCD)

Chapter 1 12
Decimal to Binary Coded Decimal (BCD)

Chapter 1 13
Binary Coded Decimal (BCD) to Decimal

Chapter 1 14
BCD Arithmetic
 Given a BCD code, we use binary arithmetic to add the digits:

8 1000 Eight

+5 +0101 Plus 5

13 1101 is 13 (> 9)
 Note that the result is MORE THAN 9, so must be represented by two digits!

 To correct the digit, subtract 10 by adding 6 modulo 16.

8 1000 Eight

+5 +0101 Plus 5

13 1101 is 13 (> 9)

+0110 so add 6

carry = 0001 0011 Final answer (two digits)

Chapter 1 15
Example

Chapter 1 16
Chapter 1 17

You might also like