BCD Adder. Lecture 21 1

Similar documents
4:Combinational logic circuits. 3 July

UNIT-IV Combinational Logic

TABLE 3-2 Truth Table for Code Converter Example

Combinational Logic. Rab Nawaz Khan Jadoon DCS. Lecturer COMSATS Lahore Pakistan. Department of Computer Science

MSI Design Examples. Designing a circuit that adds three 4-bit numbers

Serial Addition. Lecture 29 1

LOGIC DIAGRAM: HALF ADDER TRUTH TABLE: A B CARRY SUM. 2012/ODD/III/ECE/DE/LM Page No. 1

University of Technology

LIST OF EXPERIMENTS. KCTCET/ /Odd/3rd/ETE/CSE/LM

SRV ENGINEERING COLLEGE SEMBODAI RUKMANI VARATHARAJAN ENGINEERING COLLEGE SEMBODAI

Combinational Logic Circuits. Combinational Logic

First Name: Last Name: Lab Cover Page. Teaching Assistant to whom you are submitting

Digital Logic and Design (Course Code: EE222) Lecture 14: Combinational Contd.. Decoders/Encoders

Combinational Circuits DC-IV (Part I) Notes

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Sciences. Homework #9 Solution

Experiment # 4. Binary Addition & Subtraction. Eng. Waleed Y. Mousa

Logic Circuit Design

Lab 2: Combinational Circuits Design

Gates and Circuits 1

UNIT-2: BOOLEAN EXPRESSIONS AND COMBINATIONAL LOGIC CIRCUITS

Module 4: Design and Analysis of Combinational Circuits 1. Module-4. Design and Analysis of Combinational Circuits

DIGITAL ELECTRONICS QUESTION BANK

Digital Electronics 8. Multiplexer & Demultiplexer

Number system: the system used to count discrete units is called number. Decimal system: the number system that contains 10 distinguished

CS302 Digital Logic Design Solved Objective Midterm Papers For Preparation of Midterm Exam

COMBINATIONAL CIRCUIT


2 Building Blocks. There is often the need to compare two binary values.

Logic Design I (17.341) Fall Lecture Outline

Odd-Prime Number Detector The table of minterms is represented. Table 13.1

Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates

Arithmetic Circuits. (Part II) Randy H. Katz University of California, Berkeley. Fall Overview BCD Circuits. Combinational Multiplier Circuit

Encoders. Lecture 23 5

Asst. Prof. Thavatchai Tayjasanant, PhD. Power System Research Lab 12 th Floor, Building 4 Tel: (02)

Lecture 2: Data Representation

EECS150 - Digital Design Lecture 23 - Arithmetic and Logic Circuits Part 4. Outline

DESIGN OF BINARY MULTIPLIER USING ADDERS

Binary Addition. Boolean Algebra & Logic Gates. Recap from Monday. CSC 103 September 12, Binary numbers ( 1.1.1) How Computers Work

Introduction. BME208 Logic Circuits Yalçın İŞLER

Structural VHDL Implementation of Wallace Multiplier

PIPELINED VEDIC MULTIPLIER

Design of QSD Multiplier Using VHDL

DIGITAL DESIGN WITH SM CHARTS

COMBINATIONAL LOGIC CIRCUIT First Class. Dr. AMMAR ABDUL-HAMED KHADER

= (2 3 ) = c LAMC Beginners Circle September 29, Oleg Gleizer. Warm-up

Computer Architecture: Part II. First Semester 2013 Department of Computer Science Faculty of Science Chiang Mai University

Chapter 1: Digital logic

Adder (electronics) - Wikipedia, the free encyclopedia

Navy Electricity and Electronics Training Series

CHAPTER 1 INTRODUCTION

Digital Integrated CircuitDesign

Keywords , IJARCSSE All Rights Reserved Page Lecturer, EN Dept., DBACER,

Digital. Design. R. Ananda Natarajan B C D

Implementing Multipliers with Actel FPGAs

Spec. Instructor: Center

Unit 3. Logic Design

DESIGN OF HIGH SPEED 32 BIT UNSIGNED MULTIPLIER USING CLAA AND CSLA

Chapter 3 Describing Logic Circuits Dr. Xu

LOGIC GATES AND LOGIC CIRCUITS A logic gate is an elementary building block of a Digital Circuit. Most logic gates have two inputs and one output.

Topics. FPGA Design EECE 277. Combinational Logic Blocks. From Last Time. Multiplication. Dr. William H. Robinson February 25, 2005

COMPUTER ARCHITECTURE AND ORGANIZATION

EE292: Fundamentals of ECE

Lecture 2. Digital Basics

Multiplier and Accumulator Using Csla

CHAPTER 5 DESIGN OF COMBINATIONAL LOGIC CIRCUITS IN QCA

Function Table of an Odd-Parity Generator Circuit

(CSC-3501) Lecture 6 (31 Jan 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

Chapter 1 Binary Systems

DELD MODEL ANSWER DEC 2018

Multi-Valued Majority Logic Circuits Using Spin Waves

Experiment # 3 Combinational Circuits (I) Binary Addition and Subtraction

Logic diagram: a graphical representation of a circuit

DIGITAL CIRCUITS AND SYSTEMS ASSIGNMENTS 1 SOLUTIONS

DIGITAL LOGIC CIRCUITS

Gates and and Circuits

Approximate Hybrid Equivalent Circuits. Again, the impedance looking into the output terminals is infinite so that. conductance is zero.

JDT LOW POWER FIR FILTER ARCHITECTURE USING ACCUMULATOR BASED RADIX-2 MULTIPLIER

Implementing Multipliers

Practical Workbook Logic Design & Switching Theory

UC Berkeley CS61C : Machine Structures

Synthesis and Simulation of Floating Point Multipliers Dr. P. N. Jain 1, Dr. A.J. Patil 2, M. Y. Thakre 3

Digital Systems Principles and Applications TWELFTH EDITION. 3-3 OR Operation With OR Gates. 3-4 AND Operations with AND gates

EXPERIMENT NO 1 TRUTH TABLE (1)

DESIGN OF EFFICIENT MULTIPLIER USING ADAPTIVE HOLD LOGIC

This Figure here illustrates the operation for a 2-input OR gate for all four possible input combinations.

Digital Electronics. Functions of Combinational Logic

Homework Problem Set: Combinational Devices & ASM Charts. Answer all questions on this sheet. You may attach additional pages if necessary.

UC Berkeley CS61C : Machine Structures

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 1 Logistics

AREA AND POWER EFFICIENT CARRY SELECT ADDER USING BRENT KUNG ARCHITECTURE

Abstract. 1. Introduction. Department of Electronics and Communication Engineering Coimbatore Institute of Engineering and Technology

UC Berkeley CS61C : Machine Structures

In this lecture: Lecture 3: Basic Logic Gates & Boolean Expressions

International Journal of Scientific & Engineering Research Volume 3, Issue 12, December ISSN

Government of Karnataka Department of Technical Education Board of Technical Examinations, Bengaluru

Department of Electronics and Communication Engineering

International Journal of Engineering Research-Online A Peer Reviewed International Journal Articles available online

Digital Applications (CETT 1415) Credit: 4 semester credit hours (3 hours lecture, 4 hours lab) Prerequisite: CETT 1403 & CETT 1405

DESIGN OF LOW POWER MULTIPLIERS

;UsetJand : Llto Record the truth. LAB EXERCISE 6.1 Binary Adders. Materials. Procedure

Transcription:

BCD Adder -BCD adder A 4-bit binary adder that is capable of adding two 4-bit words having a BCD (binary-coded decimal) format. The result of the addition is a BCD-format 4-bit output word, representing the decimal sum of the addend and augend, and a carry that is generated if this sum exceeds a decimal value of 9. Decimal addition is thus possible using these devices. -Since each input digit does not exceed 9, the output sum cannot be greater than 9 + 9 + 1 = 19, the 1 in the sum being an input carry. -Suppose we apply two BCD digits to a four-bit binary adder. The adder will form the sum in binary and produce a result that ranges from 0 through 19. These binary numbers are listed in the next table Lecture 21 1

-K is the carry, and the subscripts under the letter Z represent the weights 8, 4, 2, and 1 that can be assigned to the four bits in the BCD code. -The columns under the binary sum list the binary value that appears in the outputs of the four-bit binary adder. Lecture 21 2

-The output sum of two decimal digits must be represented in BCD and should appear in the form listed in the columns under BCD Sum. -The problem is to find a rule by which the binary sum is converted to the correct BCD digit representation of the number in the BCD sum. Lecture 21 3

-In examining the contents of the table, it becomes apparent that when the binary sum is equal to or less than 1001, the corresponding BCD number is identical, and therefore no conversion is needed. However, when the binary sum is greater than 1001, we obtain an invalid BCD representation. Lecture 21 4

-The addition of binary 6 (0110) to the binary sum converts it to the correct BCD representation and also produces an output carry as required. -The logic circuit that detects the necessary correction can be derived from the entries in the table. It is obvious that a correction is needed when the binary sum has an output carry K=1 Lecture 21 5

-The other six combinations from 1010 through 1111 that need a correction have a 1 in position Z 8. To distinguish them from binary 1000 and 1001, which also have a 1 in position Z 8,we specify further that either Z 4 or Z 2 must have a 1. Lecture 21 6

-The condition for a correction and an output carry can be expressed by the Boolean function C = K + Z 8 Z 4 + Z 8 Z 2 When C = 1, it is necessary to add 0110 to the binary sum and provide an output carry for the next stage. Lecture 21 7

-A BCD adder that adds two BCD digits and produces a sum digit in BCD is shown in the figure. The two decimal digits, together with the input carry, are first added in the top fourbit adder to produce the binary sum. -When the output carry is equal to 0, nothing is added to the binary sum. When it is equal to 1, binary 0110 is added to the binary sum through the bottom four-bit adder. Lecture 21 8

The output carry generated from the bottom adder can be ignored, since it supplies information already available at the output carry terminal. A decimal parallel adder that adds n decimal digits needs n BCD adder stages. The output carry from one stage must be connected to the input carry of the next higher order stage. Lecture 21 9

Binary Multiplier -Multiplication of binary numbers is performed in the same way as multiplication of decimal numbers. The multiplicand is multiplied by each bit of the multiplier, starting from the least significant bit. Each such multiplication forms a partial product. Successive partial products are shifted one position to the left. The final product is obtained from the sum of the partial products. -To see how a binary multiplier can be implemented with a combinational circuit, consider the multiplication of two 2-bit numbers as shown in the next figure. Lecture 21 10

Therefore, the partial product can be implemented with AND gates as shown in the diagram. The second partial product is formed by multiplying B 1 B 0 by A 1 and shifting one position to the left. The two partial products are added with two half-adder (HA) circuits. Usually, there are more bits in the partial products and it is necessary to use full adders to produce the sum of the partial products. The multiplicand bits are B 1 and B 0, the multiplier bits are A 1 and A 0, and the product is C 3 C 2 C 1 C 0. The first partial product is formed by multiplying B 1 B 0 by A 0. The multiplication of two bits such as A 0 and B 0 produces a 1 if both bits are 1; otherwise, it produces a 0. This is identical to an AND operation. Lecture 21 11

Note that the least significant bit of the product does not have to go through an adder, since it is formed by the output of the first AND gate. Lecture 21 12

A combinational circuit binary multiplier with more bits can be constructed in a similar fashion. A bit of the multiplier is ANDed with each bit of the multiplicand in as many levels as there are bits in the multiplier. The binary output in each level of AND gates is added with the partial product of the previous level to form a new partial product. The last level produces the product. For J multiplier bits and K multiplicand bits, we need (J K) AND gates and (J 1) K -bit adders to produce a product of (J + K) bits. Lecture 21 13

As a second example, consider a multiplier circuit that multiplies a binary number represented by four bits by a number represented by three bits. Let the multiplicand be represented by B 3 B 2 B 1 B 0 and the multiplier by A 2 A 1 A 0. Since K = 4 and J = 3, we need 12 AND gates and two 4-bit adders to produce a product of seven bits. The logic diagram of the multiplier is shown in the figure to the left. Lecture 21 14