Types of Logic Circuits

Slides:



Advertisements
Similar presentations
Boolean Algebra and Logic Gates
Advertisements

Presented by: Ms. Maria Estrellita D. Hechanova, ECE
Sistemas Digitais I LESI - 2º ano Lesson 3 - Boolean Algebra U NIVERSIDADE DO M INHO E SCOLA DE E NGENHARIA Prof. João Miguel Fernandes
Lecture 5 EGRE 254 1/28/09. 2 Boolean algebra a.k.a. “switching algebra” –deals with Boolean values -- 0, 1 Positive-logic convention –analog voltages.
Logical Systems Synthesis.
ECE 2110: Introduction to Digital Systems Combinational Logic Design Principles.
Chapter 2 Logic Circuits.
EECC341 - Shaaban #1 Lec # 13 Winter Sequential Logic Circuits Unlike combinational logic circuits, the output of sequential logic circuits.
Lecture 2 Dr Richard Reilly Dept. of Electronic & Electrical Engineering Room 153, Engineering Building To insert your company logo on this slide From.
Computer Logic and Digital Design Chapter 2 Henry Hexmoor AND logic
1 COMP541 Combinational Logic Montek Singh Jan 16, 2007.
EECC341 - Shaaban #1 Lec # 5 Winter Switching Algebra: Principle of Duality Any theorem or identity in switching algebra remains true if.
1 Section 10.1 Boolean Functions. 2 Computers & Boolean Algebra Circuits in computers have inputs whose values are either 0 or 1 Mathematician George.
 Analysis and Synthesis:  Analysis start with a logic diagram and proceed to a formal description of the function performed by that circuit, such as.
1 COMP541 Combinational Logic - II Montek Singh Aug 27, 2014.
1 EECC341 - Shaaban #1 Lec # 6 Winter Combinational Circuit Analysis Example Given this logic circuit we can : Find corresponding logic.
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.
Chapter 2: Boolean Algebra and Logic Functions
Digital Computer Design Fundamental
CHAPTER 2 Boolean Algebra
Boolean Algebra – I. Outline  Introduction  Digital circuits  Boolean Algebra  Two-Valued Boolean Algebra  Boolean Algebra Postulates  Precedence.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Digital Systems: Boolean Algebra and Logic Gates
1 Boolean Algebra & Logic Gates. 2 Objectives Understand the relationship between Boolean logic and digital computer circuits. Learn how to design simple.
Ch 4. Combinational Logic Design Principles Combinational Logic Circuit –Outputs depend only on its current inputs –No feedback loop Sequential Logic Circuit.
Combinational Logic 1.
Boolean Algebra 1854, George Boole created a two valued algebraic system which is now called Boolean algebra. 1938, Claude Shannon adapted Boolean algebra.
Module 4.  Boolean Algebra is used to simplify the design of digital logic circuits.  The design simplification are based on: Postulates of Boolean.
Lecture 22: 11/19/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
LOGIC GATES AND CIRCUITS Digital systems are said to be constructed by using logic gates. These gates are the AND, OR, NOT, NAND, NOR, EXOR and EXNOR gates.
Chapter 2 Two- Level Combinational Logic. Chapter Overview Logic Functions and Switches Not, AND, OR, NAND, NOR, XOR, XNOR Gate Logic Laws and Theorems.
1 Boolean Algebra  Digital circuits Digital circuits  Boolean Algebra Boolean Algebra  Two-Valued Boolean Algebra Two-Valued Boolean Algebra  Boolean.
--- outputs logical functions of inputs --- new outputs appear shortly after changed inputs (propagation delay) --- no feedback loops --- no clock Sequential.
1 EENG 2710 Chapter 2 Algebraic Methods For The Analysis and Synthesis of Logic circuits.
Lecture 4 Boolean Algebra. Logical Statements °A proposition that may or may not be true: Today is Monday Today is Sunday It is raining °Compound Statements.
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
Logic Circuits Lecture 3 By Amr Al-Awamry. Basic Definitions Binary Operators  AND z = x y = x yz=1 if x=1 AND y=1  OR z = x + y z=1 if x=1 OR y=1 
ECE 3110: Introduction to Digital Systems Chapter #4 Review.
Boolean Algebra and Logic Gates
CS151 Introduction to Digital Design Chapter 5: Sequential Circuits 5-1 : Sequential Circuit Definition 5-2: Latches 1Created by: Ms.Amany AlSaleh.
ECE 2110: Introduction to Digital Systems
CSE 461. Binary Logic Binary logic consists of binary variables and logical operations. Variables are designated by letters such as A, B, C, x, y, z etc.
4–1. BSCS 5 th Semester Introduction Logic diagram: a graphical representation of a circuit –Each type of gate is represented by a specific graphical.
CHAPTER 2 Boolean algebra and Logic gates
Chapter 12. Chapter Summary Boolean Functions Representing Boolean Functions Logic Gates Minimization of Circuits (not currently included in overheads)
Chapter 2: Boolean Algebra and Logic Functions
Boolean Algebra.
Digital Technology.
COMP541 Combinational Logic - II
14:332:231 DIGITAL LOGIC DESIGN Boolean Algebra
ECE 2110: Introduction to Digital Systems
Unit 2 Boolean Algebra.
ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2 Instructor: Andrew B. Kahng (lecture)
Logic Gates and Boolean Algebra
CS 105 Digital Logic Design
ECE 3110: Introduction to Digital Systems
CHAPTER 2 Boolean Algebra
CHAPTER 2 Boolean Algebra This chapter in the book includes:
Overview Part 1 – Gate Circuits and Boolean Equations
CHAPTER 3 SETS AND BOOLEAN ALGEBRA
CHAPTER 2 Boolean Algebra
Modified from John Wakerly Lecture #2 and #3
CSE 370 – Winter Combinational Logic - 1
Chapter 2 Introduction to Logic Circuits
COMS 361 Computer Organization
EE121 John Wakerly Lecture #3
Logic Circuits I Lecture 3.
COMP541 Combinational Logic - II
Design of Digital Circuits Lab 1 Supplement: Drawing Basic Circuits
Introductory Concepts
Presentation transcript:

Types of Logic Circuits Combinational logic circuits: Outputs depend only on its current inputs. A combinational circuit may contain an arbitrary number of logic gates and inverters but no feedback loops. A feedback loop is a connection from the output of one gate to propagate back into the input of that same gate The function of a combinational circuit represented by a logic diagram is formally described using logic expressions and truth tables. Sequential logic circuits: Outputs depend not only on the current inputs but also on the past sequences of inputs. Sequential logic circuits contain combinational logic in addition to memory elements formed with feedback loops. The behavior of sequential circuits is formally described with state transition tables and diagrams.

Combinational outputs Sequential Circuits The general structure of a sequential Circuit: Combinational logic + Memory Elements Combinational logic Memory elements Combinational outputs Memory outputs External inputs Memory element: a device that can remember value indefinitely, or change value on command from its inputs. Examples: latches and flip-flops

Memory Element Example: S-R (Set-Reset) Latch The output Q represents the state of the latch When Q is HIGH, the latch is in SET state. When Q is LOW, the latch is in RESET state R S Q Q' Characteristics or function table S-R latch using NOR gates

Combinational Circuit Analysis: Start with a logic diagram of the circuit. Proceed to a formal description of the function of the circuit using truth tables or logic expressions. Combinational Circuit Synthesis: May start with an informal (possibly verbal) description of the function performed. A formal description of the circuit function in terms of a truth table or logic expression. The logic expression is manipulated using Boolean (or switching) algebra and optimized to minimize the number of gates needed, or to use specific type of gates. A logic diagram is generated based on the resulting logic expression.

Boolean or Switching Algebra Set of Elements: {0,1} Set of Operations: { . , + , ’ } AND (logical multiplication, .), OR (logical addition, + ) , NOT Symbolic variables such as X used to represent the condition of a logic signal (0 or 1, low or high, on or off). Switching Algebra Axioms (or postulates): Minimal set basic definitions (A1-A5, A1’-A5’) that are assumed to be true and completely define switching algebra. All other switching algebra theorems (T1-T15) can be proven using these axioms as a starting point. x x’ 1 x x' x x+y y x.y x y NOT OR AND

Switching Algebra Axioms First two axioms state that a variable X can only take on only one of two values: (A1) X = 0 if X ¹ 1 (A1’) X = 1 if X ¹ 0 Not Axioms, formally define X’ (X prime or NOT X): (A2) If X = 0, then X’ = 1 (A2’) if X = 1, then, X’ = 0 Note: Above axioms are stated in pairs with only difference being the interchange of the symbols 0 and 1.

Three More Switching Algebra Axioms The following three Boolean Algebra axioms state and formally define the AND, OR operations: (A3) 0 . 0 = 0 (A3’) 1 + 1 = 1 (A4) 1 . 1 = 1 (A4’) 0 + 0 = 0 (A5) 0 . 1 = 1 .0 = 0 (A5’) 1 + 0 = 0 + 1 = 1 Axioms A1-A5, A1’-A5’ completely define switching algebra.

Switching Algebra: Single-Variables Theorems Switching-algebra theorems are statements known to be always true (proven using axioms) that allow us to manipulate algebraic logic expressions to allow for simpler analysis. (e.g . X + 0 = X allow us to replace every X +0 with X) The Theorems: (T1-T5, T1’-T5’) (T1) X + 0 = X (T1’) X . 1 = X (Identities) (T2) X + 1 = 1 (T2’) X . 0 = 0 (Null elements) (T3) X + X = X (T3’) X . X = X (Idempotency) (T4) (X’)’ = X (Involution) (T5) X + X’ = 1 (T5’) X . X’ = 0 (Complements)

Perfect Induction Most theorems in switching algebra are simple to prove using perfect induction: Since a switching variable can only take the values 0 and 1 we can prove a theorem involving a single variable X by proving it true for X = 0 and X =1 Example: To prove (T1) X + 0 = X [X = 0] 0 + 0 = 0 true according to axiom A4’ [X = 1] 1 + 0 = 1 true according to axiom A5’

Switching Algebra: Two- and Three-Variable Theorems (Commutativity) (T6) X + Y = Y + X (T6’) X . Y = Y . X (Associativity) (T7) (X + Y) + Z = X + (Y + Z) (T7’) (X . Y) . Z = X . (Y . Z) T6-T7, T6’ -T7’ are similar to commutative and associative laws for addition and multiplication of integers and reals.

Two- and Three-Variable Theorems (Continued) (Distributivity) (T8) X . Y + X . Z = X . (Y + Z) (T8’) (X + Y) . (X + Z) = X + Y . Z T8 allows to multiply-out an expression to get sum-of-products form (distribute logical multiplication over logical addition): For example: V . (W + X) . (Y + Z) = V .W . Y + V. W. Z + V. X . Y + V. X . Z sum-of-products form T8’ allows to add-out an expression to get a product-of-sums form (distribute logical addition over logical multiplication): (V . W . X) + (Y . Z ) = (V + Y) . (V + Z) . (W + Y) . (W + Z) . (X + Y) . (X + Z) product-of-sums form

Theorem Proof using Truth Table Can use truth table to prove T8 by perfect induction. i.e Prove that: X . Y + X . Z = X . (Y + Z) (i) Construct truth table for both sides of above equality. x y z y + z x.(y + z) x.y x.z x.y + 1 (ii) Check that from truth table check that that X . Y + X . Z = X . (Y + Z) This is satisfied because output column values for X . Y + X . Z and output column values for X . (Y + Z) are equal for all cases.

Two- and Three-Variable Theorems (Continued) (Covering) (T9) X + X . Y = X (T9’) X . (X + Y) = X (Combining) (T10) X . Y + X . Y’ = X (T10’) (X + Y) . (X + Y’) = X T9-T10 used in the minimization of logic functions.

Two- and Three-Variable Theorems (Continued) (Consensus) (T11) X . Y + X’. Z + Y . Z = X . Y + X’ . Z (T11’) (X + Y) . ( X’ + Z) . (Y + Z) = (X + Y) . (X’ + Z) In T11 the term Y. Z is called the consensus of the term X . Y and the term X’ . Z: If Y . Z = 1, then either X . Y or X’ . Z must also be 1. Thus the term Y . Z is redundant and may be dropped.

n-Variable Theorems (Generalized idempotency) (T12) X + X + . . . + X = X (T12’) X . X . . . . . X = X (DeMorgan’s theorems) (T13) (X1 . X2 . . . . . Xn)’ = X1’ + X2’ + . . . + Xn’ (T13’) (X1 + X2 + . . . + Xn)’ = X1’ . X2’ . . . . . Xn’ (T13), (T13’) are probably the most commonly used theorems of switching algebra.

Examples Using DeMorgan’s theorems Example: Equivalence of NAND Gate: A two-input NAND Gate has the output expression Z = (X . Y)’ using (T13) Z = (X . Y)’ = (X’ + Y’) The function of a NAND gate can be achieved with an OR gate with an inverter at each input. Example: Equivalence of NOR Gate A two-input NOR Gate has the output expression Z=(X+Y)’ using (T13’) Z = (X + Y)’ = X’ . Y’ The function of a NOR gate can be achieved with an AND gate with an inverter at each input.

n-Variable Theorems (Continued) (Generalized DeMorgran’s theorem) (T14) [F(X1, X2, . . ., Xn, +, .)]’ = F(X1’, X2’, . . ., Xn’, . , +) States that given any n-variable logic expression its complement can be found by swapping + and . and complementing all variables. Example: F(W,X,Y,Z) = (W’.X) + ( X.Y) + (W.(X’ + Z’)) = ((W)’ . X) + (X. Y) + (W.((X)’ + (Z)’)) [F(W,X,Y,Z)]’ = ((W’)’ + X’) .(X’ + Y’).(W’ + ((X’)’.(Z’)’)) Using T4, (X’)’ = X simplifies it to: [F(W,X,Y,Z)]’ = (W + X’) . (X’ + Y’) . (W’ + (X . Z))