SCO I: Algebra Logică 2 Combinational Logic Circuits

Slides:



Advertisements
Similar presentations
Digital Logic Design Gate-Level Minimization
Advertisements

Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 2 – Combinational.
Other Gate Types COE 202 Digital Logic Design Dr. Aiman El-Maleh
Exclusive-OR and Exclusive-NOR Gates
CS 121 Digital Logic Design
CS 121 Digital Logic Design
CS 121 Digital Logic Design
Combinational Logic Circuits Chapter 2 Mano and Kime.
ECE 3110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices XOR, Parity Circuits, Comparators.
Overview Part 3 – Additional Gates and Circuits 2-8 Other Gate Types
Module 8.  In Module 3, we have learned about Exclusive OR (XOR) gate.  Boolean Expression AB’ + A’B = Y also A  B = Y  Logic Gate  Truth table ABY.
Parity. 2 Datasheets TTL:  CMOS: 
Gate-Level Minimization. Digital Circuits The Map Method The complexity of the digital logic gates the complexity of the algebraic expression.
CHAPTER 3 Digital Logic Structures
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 4 Technology.
Lecture 3. Boolean Algebra, Logic Gates
Combinational Logic Circuits Chapter 2 Mano and Kime.
Additional Gates BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering.
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
Logic Design A Review. Binary numbers Binary numbers to decimal  Binary 2 decimal  Decimal 2 binary.
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 7 Transformations Factoring - finding a factored form from SOP or POS expression Decomposition.
CS 151: Introduction to Digital Design Chapter 2-9 Exclusive-OR Gates.
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
Exclusive OR Gate. Logically, the exclusive OR (XOR) operation can be seen as either of the following operations:exclusive OR (XOR) 1. A AND NOT B OR.
LOGIC CIRCUIT IMPLEMENTATION
Chapter 3 Gate-Level Minimization
Chapter 3 Gate-level Minimization. 3-7 NAND and NOR Implementation Digital circuits are frequently constructed with NAND or NOR gates rather than with.
COE 202: Digital Logic Design Combinational Logic Part 4
CS 1110 Digital Logic Design
CS 121 Digital Logic Design Gate-Level Minimization Chapter 3.
Ahmad Almulhem, KFUPM 2010 COE 202: Digital Logic Design Combinational Logic Part 4 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
Boolean Algebra & Logic Circuits Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
Chapter-3: BOOLEAN ALGEBRA & LOGIC GATES Analysis and logical design.
CS151 Introduction to Digital Design Chapter 2: Combinational Logic Circuits 2-9 Exclusive-OR Operator and Gates 1Created by: Ms.Amany AlSaleh.
Combinational Logic: Other Gate Types
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices XOR and parity check Circuits.
Combinational Logic Design
Mu.com.lec 9. Overview Gates, latches, memories and other logic components are used to design computer systems and their subsystems Good understanding.
1 Digital Systems Design Lecture 7 Transformations Factoring - finding a factored form from SOP or POS expression Decomposition - expression of a function.
CS2100 Computer Organisation
Eng. Mai Z. Alyazji October, 2016
Lecture 4 Nand, Nor Gates, CS147 Circuit Minimization and
Gate-Level Minimization
DIGITAL LOGIC CIRCUITS
CS2100 Computer Organisation
Introduction to Logic Gates
2-6 Exclusive-OR Operator and Gates
Overview Part 1 – Gate Circuits and Boolean Equations
PROPAGATION DELAY.
Exclusive OR Gate.
Princess Sumaya University
Combinational Circuits
DIGITAL LOGIC CIRCUITS
17-Nov-18 Logic Algebra 1 Combinational logic.
BASIC & COMBINATIONAL LOGIC CIRCUIT
Digital Logic & Design Dr. Waseem Ikram Lecture 13.
Digital Logic & Design Lecture 05
King Fahd University of Petroleum and Minerals
Logic Gates.
Digital Logic Design I Gate-Level Minimization
Logic Gates.
Overview Part 3 – Additional Gates and Circuits
Boolean Algebra Boolean Algebra
13 Digital Logic Circuits.
Gate Level Minimization
Overview Part 3 – Additional Gates and Circuits 2-8 Other Gate Types
Logic Gates.
Dr. Clincy Professor of CS
Logic Circuits I Lecture 3.
Circuit Simplification and
Presentation transcript:

SCO I: Algebra Logică 2 Combinational Logic Circuits 2-Dec-18 Logic Algebra 2 Combinational Logic Circuits

Contents New types of logic gates NAND and NOR gates XOR gate SCO I: Algebra Logică 2 Contents 2-Dec-18 New types of logic gates NAND and NOR gates NAND and NOR circuits 2 level implementations Multi-level implementations XOR gate Odd function Parity generating/checking 2-Dec-18

New logic gates We may build any logic combinational circuit with the basic gates AND, OR and NOT In practice, there are also used some other logic gates 2-Dec-18

BUFFER, NAND and NOR functions 2-Dec-18

XOR and XNOR functions XOR: “not-equal” gate XNOR: “equal” gate X F Y F = XY 1 XOR: “not-equal” gate X F Y X Y F = XY 1 XNOR: “equal” gate X F Y 2-Dec-18

NAND Logic Gate It is also known as the “universal gate” because any digital circuit may be implemented using only NAND gates. To prove this, it is sufficient to show that AND, OR and NOT gates can be implemented using only NAND gates. 2-Dec-18

NAND Use F = X X F = (X•X) X = X + X = X F = X•Y F = ((X•Y) •(X•Y)) Y 2-Dec-18

NAND Logic Circuits To determine the NAND implementation we must follows these steps: We find the sum-of-product form (DCF or DNF) DNF is an AND-OR circuit We transform the AND-OR circuit in a NAND circuit We use the following alternating gates: 2-Dec-18

AND-OR Emulation Using NAND Gates The initial for sum-of-products NAND implementation 2-Dec-18

AND-OR Emulation Using NAND Gates Checking: G = WXY + YZ G = ( (WXY)’ • (YZ)’ )’ = (WXY)’’ + (YZ)’’ = WXY + YZ 2-Dec-18

DNF using NAND gates AND-NOT NOT-OR Initial DNF Double negation and grouping Replacing the gates with NAND gates AND-NOT NOT-OR 2-Dec-18

NAND Implementation - Example F (X,Y,Z) = m(0,6) DNF for F is the following: F = X’Y’Z’ + XYZ’ We get AND-OR implementation for F. We transform AND-OR gates in NAND-NAND gates. 2-Dec-18

2 level implementation with NAND gates Example (cont.) 2 level implementation with NAND gates F = X’Y’Z’ + XYZ’ 2-Dec-18

Multiple level NAND circuits The steps for transforming a multiple level circuit: We are transforming all AND gates in NAND gates with AND-NOT symbols. We are transforming all OR gates in NAND gates with NOT-OR symbols. We are checking all the circles in the diagram. For every circle which is not negated by another circle on the same line, we insert a NOT gate or we complement the input. 2-Dec-18

Example Using NAND and NOT gates to implement the function: Z=E’F(AB+C’+D’)+GH AB AB+C’+D’ E’F(AB+C’+D’) E’F(AB+C’+D’)+GH 2-Dec-18

Another example 2-Dec-18

NOR Gate NOR gate – also an “universal gate” because we may implement any digital circuit using only NOR gates. 2-Dec-18

NOR Circuits To get a NOR implementation for a logic function we have to: Find the CNF form (product-of-sums) CNF is a OR-AND circuit Transform OR-AND in NOR circuits We may use the following symbols: 2-Dec-18

2 level implementation - Example F(X,Y,Z) = m(0,6) In DNF F’ is: F’ = m(1,2,3,4,5,7) = X’Y’Z + X’YZ’ + X’YZ + XY’Z’ + XY’Z + XYZ F’ = XY’ + X’Y + Z We are using the F’ complement to get F in CNF: F = (F’)' = (X'+Y)(X+Y')Z' We get the OR-AND implementation for F. We add circles and invertors to transform OR-AND implementation in a NOR-NOR implementation. 2-Dec-18

2 level implementation with NOR gates Example (cont.) 2 level implementation with NOR gates F = (F’)' = (X'+Y)(X+Y')Z' 2-Dec-18

Multiple level NOR circuits The steps for transforming a multiple level circuit: We are transforming all OR gates in NOR gates with OR-NOT symbols. We are transforming all OR gates in NOR gates with NOT-AND symbols. We are checking all the circles in the diagram. For every circle which is not negated by another one on the same line, we are inserting a NOT gate or we complement the input. 2-Dec-18

OR-Exclusive (XOR) XOR (denoted with ) : “not-equal” function XOR(X,Y) = X  Y = X’Y + XY’ Identities: X  0 = X X  1 = X’ X  X = 0 X  X’ = 1 Properties: X  Y = Y  X (X  Y)  W = X  ( Y  W) 2-Dec-18

We are using 5 gates (directly): XOR implementation XOR(a,b) = ab’ + a’b We are using 5 gates (directly): 2 invertors, 2 AND gates and one OR gate 2 invertors and 3 NAND gates Indirectly: 4 NAND gates 2-Dec-18

XOR circuit with 4 NAND gates 2-Dec-18

NOR-Exclusive (XNOR) XNOR: “Equality” function XNOR(a,b) = ab + a’b’ We may see that: XNOR(a,b) = ( XOR(a,b) )’ ( a  b )’ = ( a’b + ab’)’ = (a’b)’ •(ab’)’ = (a + b’) • (a’ +b) = ab + a’b’ a  b’ = ( a  b )’ = a’  b 2-Dec-18

Odd function xy = x’y + xy’ = m01 + m10 xyz = xy’z’ + x’yz’ + x’y’z +xyz = m100 + m010 + m001 + m111 xyzw = x’yzw + xy’zw + xyz’w + xyzw’ + x’y’z’w + x’yz’w’ + x’y’zw’ +xy’z’w’= m0111 + m1011 + m1101 + m1110 + m0001 + m0100 + m0010 + m1000 … ? We notice that any XOR with n inputs has the value of 1 for all the minterms with all indexes that contain an odd numbers of 1 in their binary representation The XOR function is also known as the “odd function” 2-Dec-18

Odd function (cont.) In the Karnaugh map the minterms are always at a distance of 2 from others (separated by a free cell) 2-Dec-18

Odd function (cont.) 2-Dec-18

Even function How can we implement an even function? By complementing XOR  XNOR 2-Dec-18

Parity generating and checking Parity functions (odd and even) can be used to implement circuits for parity checking in the case of the error detection and correction codes. We call a parity generator: a circuit which is generating a parity bit before transmitting the flow of bits. We call a parity checker: a circuit which checks the parity when the message is received. 2-Dec-18

Parity generator - Example P(X,Y,Z) must have the value of 1 for all input combinations which contain a odd number of 1’s. As a result, our function will be XOR (odd function) with 3 inputs: P = XYZ. 2-Dec-18

Parity checking - Example How can we implement a parity checker for the previous example? We may use a XOR circuit with 4 inputs (an odd function) Cor = XYZP  1 means transmission error or We may use a XNOR circuit with 4 inputs (an even function) Cor = (XYZP)’  1 means correct reception of the message 2-Dec-18

Application – logic decoders Logic decoders – essential for the control unit of the CPU and memories Inputs Outputs 2-Dec-18

Logic decoders (cont.) A decoder is selecting only one output at a moment function of the input. Example (the digital display): a b c d e f g a b c d e f g a b c d e f g a b c d e f g a b c d e f g a b c d e f g a b c d e f g a b c d e f g a b c d e f g a b c d e f g 2-Dec-18

Logic decoders (cont.) Inputs LEDs x y z t a b c d e f g 1 2-Dec-18

Logic decoders (cont.) a = x y z t + x y z t + x y z t b = x y z t + x y z t c = x y z t d = x y z t + x y z t + x y z t e = x y z t + x y z t + x y z t + x y z t f = x y z t + x y z t + x y z t + x y z t g = x y z t + x y z t + x y z t 2-Dec-18