Boolean Algebra and Logic Gates

Slides:



Advertisements
Similar presentations
Boolean Algebra and Logic Gates
Advertisements

Boolean Algebra and Logic Gates
Boolean Algebra and Logic Gates
Chapter 2 Logic Circuits.
Gate-Level Minimization
Gate-Level Minimization. Digital Circuits The Map Method The complexity of the digital logic gates the complexity of the algebraic expression.
CS 151 Digital Systems Design Lecture 6 More Boolean Algebra A B.
Boolean Algebra and Logic Gates
1 Chapter 2 Boolean Algebra and Logic Gates The most common postulates ( 假設 ; 基本條件 ) used to formulate various algebraic structures are: 1. Closure ( 封閉性.
Contemporary Logic Design Two-Level Logic © R.H. Katz Transparency No. 3-1 Chapter #2: Two-Level Combinational Logic Section 2.1, Logic Functions.
28/06/041 CSE-221 Digital Logic Design (DLD) Lecture-5: Canonical and Standard forms and Integrated Circuites.
Chapter Two Boolean Algebra and Logic Gate
Chapter 2: Boolean Algebra and Logic Functions
Mantıksal Tasarım – BBM231 M. Önder Efe
Chapter 2 Boolean Algebra and Logic Gates
2-6 Other Logic Operations For two variables one can achieve sixteen operations Only eight are useful for computers Boolean algebra built on AND, OR and.
1 Why study Boolean Algebra? 4 It is highly desirable to find the simplest circuit implementation (logic) with the smallest number of gates or wires. We.
Boolean Algebra and Logic Gates CE 40 B 18 June 2003.
1 Logic Gates Digital Computer Logic Kashif Bashir WWW:
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
Chapter 2 Boolean Algebra and Logic Gates 授課教師 : 張傳育 博士 (Chuan-Yu Chang Ph.D.) Tel: (05) ext.
1 Representation of Logic Circuits EE 208 – Logic Design Chapter 2 Sohaib Majzoub.
Gate-Level Minimization Chapter 3. Digital Circuits The Map Method The complexity of the digital logic gates the complexity of the algebraic expression.
Chapter 2. Outlines 2.1 Introduction 2.2 Basic Definitions 2.3 Axiomatic Definition of Boolean Algebra 2.4 Basic thermos and proprieties of Boolean Algebra.
Logic Design Dr. Yosry A. Azzam.
Chapter 2: Boolean Algebra and Logic Gates. F 1 = XY’ + X’Z XYZX’Y’XY’X’ZF1F
Logic and Sequential Circuit Design (EC – 201). Textbook Digital Logic and Computer Design by M. Morris Mano (Jan 2000 )
Switching Theory and Logic Design
Digital System Ch2-1 Chapter 2 Boolean Algebra and Logic Gates Ping-Liang Lai ( 賴秉樑 ) Digital System 數位系統.
Chapter 2 Two- Level Combinational Logic. Chapter Overview Logic Functions and Switches Not, AND, OR, NAND, NOR, XOR, XNOR Gate Logic Laws and Theorems.
Chap 2. Combinational Logic Circuits. Chap Binary Logic and Gates l 디지털 회로 (Digital circuits) o hardware components that manipulate binary information.
LOGIC GATES & BOOLEAN ALGEBRA
1 Boolean Algebra  Digital circuits Digital circuits  Boolean Algebra Boolean Algebra  Two-Valued Boolean Algebra Two-Valued Boolean Algebra  Boolean.
1 Logic Gates and Circuits  Logic Gates Logic Gates  The Inverter The Inverter  The AND Gate The AND Gate  The OR Gate The OR Gate  The NAND Gate.
Ahmad Almulhem, KFUPM 2010 COE 202: Digital Logic Design Combinational Logic Part 2 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
ENGIN112 L6: More Boolean Algebra September 15, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 6 More Boolean Algebra A B.
A. Abhari CPS2131 Chapter 2: Boolean Algebra and Logic Gates Topics in this Chapter: Boolean Algebra Boolean Functions Boolean Function Simplification.
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
2. Boolean Algebra and Logic Gates
Binary Logic and Gates Boolean Algebra Canonical and Standard Forms Chapter 2: Boolean Algebra and Logic Gates.
D IGITAL L OGIC D ESIGN I B OOLEAN A LGEBRA AND L OGIC G ATE 1.
Module 5.  In Module 3, you have learned the concept of Boolean Algebra which consists of binary variables and binary operator.  A binary variable x,
Boolean Algebra and Logic Gates
Chapter 2: Basic Definitions BB inary Operators ●A●AND z = x y = x yz=1 if x=1 AND y=1 ●O●OR z = x + yz=1 if x=1 OR y=1 ●N●NOT z = x = x’ z=1 if x=0.
Lecture 18: Boolean Algebra Boolean Functions. w = Chris is allowed to watch television x = Chris's homework is finished y = it is a school night z =
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 4 Dr. Shi Dept. of Electrical and Computer Engineering.
ECE DIGITAL LOGIC LECTURE 8: BOOLEAN FUNCTIONS Assistant Prof. Fareena Saqib Florida Institute of Technology Spring 2016, 02/11/2016.
EE345 - Micro-Controllers Boolean Algebra and Logic Gates Prof. Ahmad Abu-El-Haija.
Logic Design (CE1111 ) Lecture 2 (Chapter 2) Prepared by Dr. Lamiaa Elshenawy 1.
Lecture 5 More Boolean Algebra A B. Overview °Expressing Boolean functions °Relationships between algebraic equations, symbols, and truth tables °Simplification.
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.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
CHAPTER 2 Boolean algebra and Logic gates
Table 2.1 Postulates and Theorems of Boolean Algebra
Chapter 2: Boolean Algebra and Logic Functions
CS 105 Digital Logic Design
Princess Sumaya University
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Boolean Algebra Why study Boolean Algebra?
17-Nov-18 Logic Algebra 1 Combinational logic.
Boolean Algebra.
INTRODUCTION TO LOGIC DESIGN Chapter 2 Boolean Algebra and Logic Gates
Lecture 14: Boolean Algebra
Chapter 2 Boolean Algebra and Logic Gate
2. Boolean Algebra and Logic Gates
Digital Logic Design I Gate-Level Minimization
Chapter 2 Introduction to Logic Circuits
Table 2.1 Postulates and Theorems of Boolean Algebra
Digital Logic Chapter-2
Digital Logic Chapter-2
Presentation transcript:

Boolean Algebra and Logic Gates Chapter 2 Boolean Algebra and Logic Gates

Boolean Algebra (E.V. Huntington, 1904) A set of elements B and two binary operators + and ‧ Closure w.r.t. the operator + (‧) x, y Î B ' x+y ÎB An identity element w.r.t. + (‧) 0+x = x+0 = x 1‧x = x‧1= x Commutative w.r.t. + (‧) x+y = y+x x‧y = y‧x

" x Î B, $ x' Î B (complement of x) ' x+x'=1 and x‧x'=0 ‧ is distributive over +: x‧(y+z)=(x‧y)+(x‧z) + is distributive over‧: x+(y‧z)=(x+y)‧(x+z) " x Î B, $ x' Î B (complement of x) ' x+x'=1 and x‧x'=0 $ at least two elements x, y Î B ' x ≠ y Note the associative law can be derived (by truth table) no additive and multiplicative inverses Complement in 5. is not available in ordinary algebra

Two-valued Boolean Algebra The rules of operations Closure The identity elements (1) +: 0 (2)‧: 1

The commutative laws The distributive laws

Has two distinct elements 1 and 0, with 0 ≠ 1 Note Complement x+x'=1: 0+0'=0+1=1; 1+1'=1+0=1 x‧x'=0: 0‧0'=0‧1=0; 1‧1'=1‧0=0 Has two distinct elements 1 and 0, with 0 ≠ 1 Note a set of two elements + : OR operation; ‧ : AND operation a complement operator: NOT operation Binary logic is a two-valued Boolean algebra

Basic Theorems and Properties Duality the binary operators are interchanged; AND  OR the identity elements are interchanged; 1  0

Theorem 1(a): x+x = x Theorem 1(b): x x = x x+x = (x+x) 1 by postulate: 2(b) = (x+x) (x+x') 5(a) = x+xx' 4(b) = x+0 5(b) = x 2(a) Theorem 1(b): x x = x xx = x x + 0 = xx + xx' = x (x + x') = x 1 = x

Theorem 2 Theorem 3: (x')' = x x + 1 = 1 (x + 1) = (x + x')(x + 1) = x + x' 1 = x + x' = 1 x 0 = 0 by duality Theorem 3: (x')' = x Postulate 5 defines the complement of x, x + x' = 1 and x x' = 0 The complement of x' is x is also (x')‘ (x')‘=x since complement is unique

Theorem 6 By means of truth table x + xy = x 1 + xy = x (1 +y) = x 1 = x x (x + y) = x by duality By means of truth table

DeMorgan's Theorems (x+y)' = x' y' (x y)' = x' + y'

Operator Precedence parentheses NOT AND OR examples x y' + z

Boolean Functions A Boolean function Examples binary variables binary operators OR and AND unary operator NOT parentheses Examples F1= x y z' F2 = x + y'z F3 = x' y' z + x' y z + x y' F4 = x y' + x' z

Two Boolean expressions may specify the same function The truth table of 2n entries Two Boolean expressions may specify the same function F3 = F4

Implementation with logic gates F4 is more economical

Algebraic Manipulation To minimize Boolean expressions literal: a primed or unprimed variable (an input to a gate) term: an implementation with a gate The minimization of the number of literals and the number of terms => a circuit with less equipment It is a hard problem (no specific rules to follow) x(x'+y) = xx' + xy = 0+ xy = xy x+x'y = (x+x')(x+y) = 1 (x+y) = x+y (x+y)(x+y') = x+xy+xy'+yy' = x(1+y+y') = x

x'y'z + x'yz + xy' = x'z(y'+y) + xy' = x'z + xy' xy + x'z + yz = xy + x'z + yz(x+x') = xy + x'z + yzx + yzx' = xy(1+z) + x'z(1+y) = xy +x'z (x+y)(x'+z)(y+z) = (x+y)(x'+z) by duality from the previous result

Complement of a Function an interchange of 0's for 1's and 1's for 0's in the value of F by DeMorgan's theorem (A+B+C)' = (A+X)' let B+C = X = A'X' by DeMorgan's = A'(B+C)' = A'(B'C') by DeMorgan's = A'B'C' associative generalizations (A+B+C+ ... +F)' = A'B'C' ... F' (ABC ... F)' = A'+ B'+C'+ ... +F'

(x'yz' + x'y'z)' = (x'yz')' (x‘y'z)' = (x+y'+z) (x+y+z') [x(y'z'+yz)]' = x' + ( y'z'+yz)' = x' + (y'z')' (yz)' = x' + (y+z) (y'+z') A simpler procedure take the dual of the function and complement each literal x'yz' + x'y'z => (x'+y+z') (x'+y'+z) (the dual) => (x+y'+z)(x+y+z')

Canonical and Standard Forms Minterms and Maxterms A minterm: an AND term consists of all literals in their normal form or in their complement form For example, two binary variables x and y, xy, xy', x'y, x'y' It is also called a standard product n variables can be combined to form 2n minterms A maxterm: an OR term It is also call a standard sum 2n maxterms

each maxterm is the complement of its corresponding minterm, and vice versa

An Boolean function can be expressed by a truth table sum of minterms f1 = x'y'z + xy'z' + xyz = m1 + m4 +m7 f2 = x'yz+ xy'z + xyz'+xyz = m3 + m5 +m6 + m7

The complement of a Boolean function the minterms that produce a 0 f1' = m0 + m2 +m3 + m5 + m6 = x'y'z'+x'yz'+x'yz+xy'z+xyz' f1 = (f1')' = (x+y+z)(x+y'+z) (x+y'+z') (x'+y+z')(x'+y'+z) = M0 M2 M3 M5 M6 Any Boolean function can be expressed as a sum of minterms a product of maxterms canonical form

Sum of minterms F = A+B'C = A (B+B') + B'C = AB +AB' + B'C = AB(C+C') + AB'(C+C') + (A+A')B'C =ABC+ABC'+AB'C+AB'C'+A'B'C F = A'B'C +AB'C' +AB'C+ABC'+ ABC = m1 + m4 +m5 + m6 + m7 F(A,B,C) = S(1, 4, 5, 6, 7) or, built the truth table first

Product of maxterms x + yz = (x + y)(x + z) = (x+y+zz')(x+z+yy') =(x+y+z)(x+y+z’)(x+y'+z) F = xy + x'z = (xy + x') (xy +z) = (x+x')(y+x')(x+z)(y+z) = (x'+y)(x+z)(y+z) x'+y = x' + y + zz' = (x'+y+z)(x'+y+z') F = (x+y+z)(x+y'+z)(x'+y+z)(x'+y+z') = M0M2M4M5 F(x,y,z) = P(0,2,4,5)

Conversion between Canonical Forms F(A,B,C) = S(1,4,5,6,7) F'(A,B,C) = S(0,2,3) By DeMorgan's theorem F(A,B,C) = P(0,2,3) mj' = Mj sum of minterms = product of maxterms interchange the symbols S and P and list those numbers missing from the original form S of 1's P of 0's

Example F = xy + xz F(x, y, z) = S(1, 3, 6, 7) F(x, y, z) = P (0, 2, 4, 6)

Standard Forms Canonical forms are seldom used sum of products F1 = y' + zy+ x'yz' product of sums F2 = x(y'+z)(x'+y+z'+w) F3 = A'B'CD+ABC'D'

Two-level implementation Multi-level implementation

Other Logic Operations 2n rows in the truth table of n binary variables 22n functions for n binary variables 16 functions of two binary variables All the new symbols except for the exclusive-OR symbol are not in common use by digital designers

Digital Logic Gates Boolean expression: AND, OR and NOT operations Constructing gates of other logic operations the feasibility and economy the possibility of extending gate's inputs the basic properties of the binary operations the ability of the gate to implement Boolean functions

Consider the 16 functions two are equal to a constant four are repeated twice inhibition and implication are not commutative or associative the other eight: complement, transfer, AND, OR, NAND, NOR, XOR, and equivalence are used as standard gates complement: inverter transfer: buffer (increasing drive strength) equivalence: XNOR

Figure 2.5 Digital logic gates

Figure 2.5 Digital logic gates (continued)

Extension to multiple inputs A gate can be extended to multiple inputs if its binary operation is commutative and associative AND and OR are commutative and associative (x+y)+z = x+(y+z) = x+y+z (x y)z = x(y z) = x y z

NAND and NOR are commutative but not associative => they are not extendable

Multiple NOR = a complement of OR gate Multiple NAND = a complement of AND The cascaded NAND operations = sum of products The cascaded NOR operations = product of sums

The XOR and XNOR gates are commutative and associative Multiple-input XOR gates are uncommon? XOR is an odd function: it is equal to 1 if the inputs variables have an odd number of 1's

Positive and Negative Logic two signal values <=> two logic values positive logic: H=1; L=0 negative logic: H=0; L=1 Consider a TTL gate a positive logic NAND gate a negative logic OR gate the positive logic is used in this book

Integrated Circuits An IC (a chip) Examples: SSI: < 10 gates MSI: 10 ~ 100 gates LSI: 100 ~ xk gates VLSI: > xk gates small size (compact size) low cost low power consumption high reliability high speed

Digital logic families: circuit technology TTL: transistor-transistor logic (dying?) ECL: emitter-coupled logic (high speed, high power consumption) MOS: metal-oxide semiconductor (NMOS, high density) CMOS: complementary MOS (low power) BiCMOS: high speed, high density

The characteristics of digital logic families Fan-out: the number of standard loads that the ouput of a typical gate can drive Power dissipation Propagation delay: the average transition delay time for the signal to propagate from input to output Noise margin: the minimum of external noise voltage that caused an undesirable change in the circuit output

CAD – Computer-Aided Design Millions of transistors Computer-based representation and aid Automatic the design process Design entry Schematic capture HDL – Hardware Description Language Verilog, VHDL Simulation Physical realization ASIC, FPGA, PLD