Boolean Algebra and Logic Gate

Slides:



Advertisements
Similar presentations
Logic Gates.
Advertisements

CT455: Computer Organization Logic gate
Chapter 2 Logic Circuits.
Chapter 3 Boolean Algebra and Logic Gate (Part 2).
Relationship Between Basic Operation of Boolean and Basic Logic Gate The basic construction of a logical circuit is gates Gate is an electronic circuit.
Logic Gate Level Combinational Circuits, Part 1. Circuits Circuit: collection of devices physically connected by wires to form a network Net can be: –
1 Boolean Algebra & Logic Design. 2 Developed by George Boole in the 1850s Mathematical theory of logic. Shannon was the first to use Boolean Algebra.
Chapter 4 Logic Gates and Boolean Algebra. Introduction Logic gates are the actual physical implementations of the logical operators. These gates form.
Boolean Algebra Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2009.
Digital Logic Circuits – Chapter 1 Section 1-3, 1-2.
Module 3.  Binary logic consists of :  logic variables  designated by alphabet letters, e.g. A, B, C… x, y, z, etc.  have ONLY 2 possible values:
Logic gates & Boolean Algebra. Introduction Certain components (called logic elements) of the computer combine electric pulses using a set of rules. Electric.
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
Logic Design A Review. Binary numbers Binary numbers to decimal  Binary 2 decimal  Decimal 2 binary.
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /05/2013 Lecture 4: Basics of Logic Design Instructor: Ashraf Yaseen DEPARTMENT OF MATH & COMPUTER.
Logic Gates Shashidhara H S Dept. of ISE MSRIT. Basic Logic Design and Boolean Algebra GATES = basic digital building blocks which correspond to and perform.
Lecture 22: 11/19/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
Boolean Algebra & Logic Prepared by Dr P Marais (Modified by D Burford)
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
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.
Linear Algebra. Circuits The circuits in computers and other input devices have inputs, each of which is either a 0 or 1, the output is also 0s and 1s.
1 EG 32 Digital Electronics Thought for the day You learn from your mistakes..... So make as many as you can and you will eventually know everything.
1 EENG 2710 Chapter 2 Algebraic Methods For The Analysis and Synthesis of Logic circuits.
CHAPTER 1 SETS, FUNCTIONs, ELEMENTARY LOGIC & BOOLEAN ALGEBRAs
Lecture 4 Introduction to Boolean Algebra. Binary Operators In the following descriptions, we will let A and B be Boolean variables and define a set of.
Chapter-3: BOOLEAN ALGEBRA & LOGIC GATES Analysis and logical design.
Chapter 4 Fundamentals of Computer Logic 1 Chapter 4: Fundamental of Computer Logic - IE337.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
Appendix B: Digital Logic
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Yaohang Li.
BOOLEAN ALGEBRA LOGIC GATES. Introduction British mathematician George Boole( ) was successful in finding the link between logic and mathematics.
DIGITAL ELECTRONICS. Everything in digital world is based on binary system. Numerically it involves only two symbols 0 or 1. –0 = False = No –1 = True.
Chapter 5 Boolean Algebra and Reduction Techniques 1.
Logic Gates and Boolean Algebra Introduction to Logic II.
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.
The First lesson on Digital Logic Rachaen M. Huq1 Rachaen Huq. Dept. of EEE, BRACU.
Hoda Roodaki Boolean Algebra Hoda Roodaki
Logic gates.
Computer Architecture & Operations I
Computer Architecture & Operations I
Boolean Algebra & Logic Gates
Morgan Kaufmann Publishers
Eng. Mai Z. Alyazji October, 2016
Logic Gates and Boolean Algebra
Logic Gates.
De Morgan’s Theorem,.
Boolean Algebra.
Digital Technology.
Logic Gates and Boolean Algebra
CHAPTER 2 Boolean Algebra
Logic Gates.
Logic Gates Benchmark Companies Inc PO Box Aurora CO
TN 221: DIGITAL ELECTRONICS 1
KS4 Electricity – Electronic systems
KS4 Electricity – Electronic systems
Digital Signals Digital Signals have two basic states:
Dr. Clincy Professor of CS
CHAPTER 2 Boolean Algebra
Boolean Algebra & Logic Circuits
Agenda – 2/12/18 Questions? Readings: CSI 4, P
Logic Gates.
Boolean Logic Boolean Logic is considered to be the basic of digital electronics. We know that a computer’s most basic operation is based on digital electronics.
Chapter 2 Introduction to Logic Circuits
KS4 Electricity – Electronic systems
Chapter 4 Gates and Circuits.
Truth tables Mrs. Palmer.
BOOLEAN ALGEBRA.
Digital Logic Design Basics Combinational Circuits Sequential Circuits.
Dept. of Electrical and Computer Eng., NCTU
DIGITAL ELECTRONICS AND LOGIC GATES. ANALOG SIGNAL:- Analog signal is continuous time varying current or voltage signal.
Presentation transcript:

Boolean Algebra and Logic Gate Chapter 3 Boolean Algebra and Logic Gate

Basic Operations of Boolean Algebra Boolean algebra – used in electronic digital circuit design Introduced by George Boole in 1854 Algebra : uses variables (statements) and operations (relations) Boolean algebra : logic variable (TRUE (1) or FALSE (0)) and logical operations

Three basic logical operations: AND . dot OR + plus sign NOT ¯ overbar Example: A AND B = A.B A OR B = A + B NOT A = Ā These operations are used to combine operands to form logical expressions X or NOT (X) X.Y + Z or NOT (X AND Y) OR Z (X.Y) + (Y.Z) or (X AND NOT(Y)) OR (Y AND Z)

OR yields true if either or both of its operands are true AND yields true (binary value 1) if and only if both of its operands are true OR yields true if either or both of its operands are true NOT inverts the value of its operand, true to false NAND gives the true result if one or both of the operands are false NOR only gives the true value if and only if both operands are false XOR gives the true value if and only if only one operand is true P Q NOT P P AND Q P OR Q P XOR Q P NAND Q P NOR Q 1

Match the items on the right with the items on the left. a) Gives a 0 when both Input A and Input B are a 1. AND X-OR b) Gives a 1 if either Input A or Input B is a 1, but not both. OR NAND c) Gives a 1 if both Input A and Input B are 1 d) Gives a 1 if either Input A or Input B is a 1

Relationship Between Basic Operation of Boolean and Basic Logic Gate The basic construction of a logical circuit is gates Gate is an electronic circuit that emits an output signal as a result of a simple Boolean operation on its inputs Logical function is presented through the combination of gates The basic gates used in digital logic is the same as the basic Boolean algebra operations (e.g., AND, OR, NOT,…)

The package Truth Tables and Boolean Algebra set out the basic principles of logic. A B F 0 0 0 0 1 0 0 0 1 1 1 0 1 1 0 1 F Name Graphic Symbol Boolean Algebra Truth Table A B AND OR NOT NAND NOR F = A . B Or F = AB F = A + B _____   ____ _  F = A B F 0 1 1 0 the symbols, algebra signs and the truth table for the gates

Basic Theorems of Boolean Algebra 1. Identity Elements 2. Inverse Elements 1 . A = A A . A = 0 0 + A = A A + A = 1   3. Idempotent Laws 4. Boundess Laws A + A = A A + 1 = 1  A . A = A A . 0 = 0 5. Distributive Laws 6. Order Exchange Laws A . (B + C) = A.B + A.C A . B = B . A  A + (B . C) = (A+B) . (A+C) A + B = B + A 7. Absorption Laws 8. Associative Laws A + (A . B) = A A + (B + C) = (A + B) + C A . (A + B) = A A . (B . C) = (A . B) . C 9. Elimination Laws 10. De Morgan Theorem     A + (A . B) = A + B (A + B) = A . B     A . (A + B) = A . B (A . B) = A + B

Identity Elements : 1 . A = A

Boundess Laws : A . 0 = 0 A + 1 = 1

Relationship Between Boolean Function and Logic Circuit Boolean function  Q = AB + B = (NOT A AND B) OR B Logic circuit A A AB B B Q = AB + B

Relationship Between Boolean Function and Logic Circuit Boolean function  e.g. F = A . B + C + D  ((A AND B) OR (C NOR D)) or  ((A AND B) OR NOT (C OR D)) Any Boolean function can be implemented in electronic form as a network of gates called logic circuit A.B = AB A B F = AB + C + D C D C + D

G = A . (B + C + D) A G = A . (B + C + D) B B + C + D C D C + D

Try to work out the output of the combination. C = A.B A = 0, B = 0, C = ?, Q = ? C = 1, Q = 0 A = 1, B = 0, C = ?, Q = ? C = 1, Q = 0 C = 1, Q = 0 A = 0, B = 1, C = ?, Q = ? C = 0, Q = 1 A = 1, B = 1, C = ?, Q = ?

Truth Table

The Exclusive OR gate (XOR)                                      XOR  1 when A or B are 1 but not both For the XOR gate the truth table looks like this: A Output B A B OUTPUT 1

For the NAND gate the truth table looks like this: Output B For the NAND gate the truth table looks like this: A B OUTPUT 1

For the NOR gate the truth table looks like this: Output B For the NOR gate the truth table looks like this: A B OUTPUT 1

A B C Q 1 Truth Table A = 0, B = 0, C = 1, Q = 0 1

Truth Table A B Q 1

A B Q AB = AB + B Produce a truth table from the logic circuit A B A AB Q 0 0 1 0 0 0 1 1 1 1 1 0 0 0 0 1 1 0 0 1

p q r p . q q q + r  0     1       1       1 1       1       1 1       1 1       1 1 1      

Elimination Laws: A.(A + B) = A.B Proof using truth table. A B A A + B A.B A.(A + B) 0 0 1 1 0 0 0 1 1 1 0 0 1 0 0 0 0 0 1 1 0 1 1 1 Proof the Absorption Laws: A . (A + B) = A using truth table.