Digital Logic Design (CSNB163)

Slides:



Advertisements
Similar presentations
ADDER, HALF ADDER & FULL ADDER
Advertisements

Combinational Circuits. Analysis Diagram Designing Combinational Circuits In general we have to do following steps: 1. Problem description 2. Input/output.
التصميم المنطقي Second Course
Lecture #9 EGR 277 – Digital Logic
DPSD This PPT Credits to : Ms. Elakya - AP / ECE.
CSE-221 Digital Logic Design (DLD)
08/07/041 CSE-221 Digital Logic Design (DLD) Lecture-8:
Section 10.3 Logic Gates.
Combinational Logic1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Combinational circuits
Part 2: DESIGN CIRCUIT. LOGIC CIRCUIT DESIGN x y z F F = x + y’z x y z F Truth Table Boolean Function.
Logic Gates Circuits to manipulate 0’s and 1’s. 0’s and 1’s used for numbers Also to make decisions within the computer. In that context, 1 corresponds.
©2008 The McGraw-Hill Companies, Inc. All rights reserved. Digital Electronics Principles & Applications Seventh Edition Chapter 10 Arithmetic Circuits.
CS 105 Digital Logic Design
Digital Logic Lecture 08 By Amr Al-Awamry. Combinational Logic 1 A combinational circuit consists of an interconnection of logic gates. Combinational.
Adders and Multipliers Review. ARITHMETIC CIRCUITS Is a combinational circuit that performs arithmetic operations, e.g. –Addition –Subtraction –Multiplication.
CPSC 171 Introduction to Computer Science Boolean Logic, Gates, & Circuits.
Binary Addition CSC 103 September 17, 2007.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
ADDERS Half Adders Recall that the basic rules of binary addition are as indicated below in Table 2-9. A circuit known as the half-adder carries out these.
1 Chapter 4 Combinational Logic Logic circuits for digital systems may be combinational or sequential. A combinational circuit consists of input variables,
Computer Organization 1 Logic Gates and Adders. Propositions –Venn Diagrams.
1 Adders & Subtractors Adders –An adder is a combinational logic circuit that performs the addition of 2 binary numbers (A & B) to generate the sum (S)
Module 9.  Digital logic circuits can be categorized based on the nature of their inputs either: Combinational logic circuit It consists of logic gates.
Lecture 9 Topics: –Combinational circuits Basic concepts Examples of typical combinational circuits –Half-adder –Full-adder –Ripple-Carry adder –Decoder.
Computer Science 101 Circuit Design - Examples. Sum of Products Algorithm Identify each row of the output that has a 1. Identify each row of the output.
1 Tutorial: ITI1100 Dewan Tanvir Ahmed SITE, UofO.
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
4. Computer Maths and Logic 4.2 Boolean Logic Logic Circuits.
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 8 Arithmetic.
Universal college of engineering & technology. .By Harsh Patel)
1 Ethics of Computing MONT 113G, Spring 2012 Session 5 Binary Addition.
Logic and computers 2/6/12. Binary Arithmetic /6/ Only two digits: the bits 0 and 1 (Think: 0 = F, 1.
Combinational Circuits
CS 105 DIGITAL LOGIC DESIGN Chapter 4 Combinational Logic 1.
1 Chapter 4 Combinational Logic Logic circuits for digital systems may be combinational or sequential. A combinational circuit consists of input variables,
Combinational Circuits
COMBINATIONAL LOGIC.
Module 11.  In Module 9, we have been introduced to the concept of combinational logic circuits through the examples of binary adders.  Meanwhile, in.
Digital Design Lecture 8 Combinatorial Logic (Continued)
ECE DIGITAL LOGIC LECTURE 15: COMBINATIONAL CIRCUITS Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2015, 10/20/2015.
Simple ALU  Half adder  Full adder  Constructing 4 bits adder  ALU does several operations  General ALU structure  Timing diagram of adder  Overflow.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
Logic Design (CE1111 ) Lecture 4 (Chapter 4) Combinational Logic Prepared by Dr. Lamiaa Elshenawy 1.
Gunjeet Kaur Dronacharya Group of Institutions. Binary Adder-Subtractor A combinational circuit that performs the addition of two bits is called a half.
Chapter 12. Chapter Summary Boolean Functions Representing Boolean Functions Logic Gates Minimization of Circuits (not currently included in overheads)
Multiplication
Combinational Circuits
Part 4 Combinational Logic.
Combinational Logic Logic circuits for digital systems may be combinational or sequential. A combinational circuit consists of input variables, logic gates,
Multiplication
Combinational Circuit Design
Combinational Circuits
Computer Architecture CST 250
Principles & Applications
Summary Half-Adder Basic rules of binary addition are performed by a half adder, which has two binary inputs (A and B) and two binary outputs (Carry out.
Magnitude Comparator A magnitude comparator is a combinational circuit that compares two numbers, A and B, and then determines their relative magnitudes.
Chapter 4 Combinational Logic
Week 7: Gates and Circuits: PART II
EE207: Digital Systems I, Semester I 2003/2004
Ch 4. Combinational logic
Number Systems and Circuits for Addition
Logic Gates.
Reading: Study Chapter (including Booth coding)
Chapter 10.3 and 10.4: Combinatorial Circuits
Montek Singh Mon, Mar 28, 2011 Lecture 11
XOR Function Logic Symbol  Description  Truth Table 
Adder Circuits By: Asst Lec. Basma Nazar
Unit IV Adders Subtractors Flip Flops Counters Multiplexes and De multiplexes. Integrated circuits-Op. amp – Characteristics Inverting amplifier - Non-inverting.
Presentation transcript:

Digital Logic Design (CSNB163) Module 10

Recapss.. Combinational Logic Circuit In the previous module, we have been introduced to the concept of combinational logic circuits through the examples of binary adders: Half adder: HA adds two binary inputs (i.e. A0 and B0) and produces two binary outputs (i.e. Sum and Cout) Full adder: FA adds three binary inputs (i.e. A0, B0 and Cin) and produces two binary outputs (i.e. Sum and Cout) In this module, we shall learn about two more examples of combinational logic circuits: Binary multiplier Magnitude comparator

Binary Multiplier A binary multiplier performs the multiplication of two binary numbers (multiplicand & multiplier) whereby: The multiplicand is multiplied by each bit of the multiplier starting from the least significant bit. Each multiplication forms a partial product and successive partial products are shifted one position to the left. The final product is obtained from the sum of the partial products.

2-bit by 2 bit Binary Multiplier B1 B0 Multiplicand × A1 A0 Multiplier B1A0 B0A0 Partial products + B1A1 B0A1 C3 C2 C1 C0 Final product E.g. The multiplication of all partial products, say B0A0 will only be 1 if both A0 and B0 are both 1, otherwise partial product B0A0 will be 0 (i.e. similar to AND operation). C1 can be obtained by using half adder (HA1) that adds B1A0 with B0A0. C2 can be obtained by using half adder (HA2) that adds the output carry of HA1 with B1A1 – whereas C3 is the output carry of HA2.

2-bit by 2 bit Binary Multiplier (cont.) Circuit diagram for a 2-bit by 2-bit binary multiplier:

J-bit by K-Bit Binary Multiplier Usually, there are more bits in the partial products and it is necessary to use full adders to produce the sum of the partial product. A combinational circuit binary multiplier with more bits can be constructed in a similar fashion. For J multiplier and K multiplicand bits, (J x K) AND gates and (J - 1) K-bit adders are needed to produce a product of J + K bits.

J-bit by K-Bit Binary Multiplier (cont.) E.g. Circuit diagram for a 4-bit by 3 bit multiplier: 4 bits multiplicand (B3B2B1B0) , K = 4 3 bits multiplier (A2A1A0)., J= 3

Magnitude Comparator A magnitude comparator is a combinational circuit that compares 2 binary numbers (A, B) and determines their relative magnitudes. The outcome of the comparison is specified by three binary variables that indicate whether: A > B (requires test for magnitude comparison) A = B (requires test for equality) A < B (requires test for magnitude comparison) For the following illustrations, we use the example of comparing two binary numbers with 4 bits each A = A3A2A1A0 B = B3B2B1B0

Magnitude Comparator – Test for Equality To determine if A=B: All bits of the 2 numbers are equal, A3 = B3, A2 = B2, A1 = B1, A0 = B0. The equality of each bit can be expressed logically with an exclusive-NOR function as; Recaps… xi = 1 only if both Ai and Bi equal to 1 or both Ai and Bi equal to 0. For equality to exist across all bits, all xi variables must be equal to 1 such that: - hence, the use of AND function. xi = AiBi +A’iB’i for i = 0,1,2,3 (A = B) = x3 x2 x1 x0

Magnitude Comparator – Test for Magnitude Comparison To determine whether A >B or A < B: The relative magnitude of pairs of digits starting from the most significant position is compared. If the 2 digits of a pair are equal, proceed next to compare the next lower significant pair of digits until a pair of unequal digit is reached. The sequential comparison can be expressed logically by the two Boolean expression: If A = 1 and B = 0, then A > B. Else if A = 0 and B = 1, then A < B. ( A >B ) = A3B’3 + x3A2B’2 + x3x2A1B’1 + x3x2 x1A0B’0 ( B >A ) = A’3B3 + x3A’2B2 + x3x2A’1B1 + x3x2 x1A’0B0

Magnitude Comparator (cont.) The circuit diagram for a 4 bit magnitude comparator:

Digital Logic Design (CSNB163) End of Module 10