Truth Table to Statement Form

Slides:



Advertisements
Similar presentations
Logic Gates.
Advertisements

Programmable Logic Controllers.
Digital Electronics Lecture 2 Logic Gates. Lecture 2 outline Announcement:
(CSC 102) Discrete Structures Lecture 5.
Digital Circuits. Review – Getting the truth table The first step in designing a digital circuit usually is to get the truth table. That is, for every.
08/07/041 CSE-221 Digital Logic Design (DLD) Lecture-8:
Discrete Structures Chapter 1 Part B Fundamentals of Logic Nurul Amelina Nasharuddin Multimedia Department 1.
Logic Gate Level Combinational Circuits, Part 1. Circuits Circuit: collection of devices physically connected by wires to form a network Net can be: –
Chapter 4 Logic Gates and Boolean Algebra. Introduction Logic gates are the actual physical implementations of the logical operators. These gates form.
Copyright © Cengage Learning. All rights reserved. CHAPTER 2 THE LOGIC OF COMPOUND STATEMENTS THE LOGIC OF COMPOUND STATEMENTS.
The Logic of Compound Statements
In this module you will learn: What the various logic gates do. How to represent logic gates on a circuit diagram. The truth tables for the logic gates.
Logic Circuits In today’s lesson we will look at: the symbols for NOT, AND, OR and EOR using truth tables to represent logic circuits two new operators.
Digital Systems Presented by Prof Tim Johnson
1 Introduction to Abstract Mathematics Applications : Digital Logic Circuits 2.4 and Number Systems 2.5 Instructor: Hayk Melikya
XOR and XNOR Logic Gates. XOR Function Output Y is TRUE if input A OR input B are TRUE Exclusively, else it is FALSE. Logic Symbol  Description  Truth.
Logic gates & Boolean Algebra. Introduction Certain components (called logic elements) of the computer combine electric pulses using a set of rules. Electric.
Logic Gates How Boolean logic is implemented. Transistors used as switches to implement Boolean logic: ANDOR Logic with Transistors.
DeMorgan Theorem, Computer Simulation Exercises
Apr. 3, 2000Systems Architecture I1 Systems Architecture I (CS ) Lecture 3: Review of Digital Circuits and Logic Design Jeremy R. Johnson Mon. Apr.
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 3.7 Switching Circuits.
Boolean Algebra and Computer Logic Mathematical Structures for Computer Science Chapter 7.1 – 7.2 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Boolean.
Discrete Mathematics and Its Applications.  The English mathematician George Boole ( ) sought to give symbolic form to Aristotle's system of.
4. Electrons and electronics 4.5 Digital electronics.
Lecture 22: 11/19/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
Application: Digital Logic Circuits Lecture 5 Section 1.4 Wed, Jan 24, 2007.
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Circuit Design.
IT253: Computer Organization Lecture 7: Logic and Gates: Digital Design Tonga Institute of Higher Education.
1 EENG 2710 Chapter 2 Algebraic Methods For The Analysis and Synthesis of Logic circuits.
Chapter 4 Fundamentals of Computer Logic 1 Chapter 4: Fundamental of Computer Logic - IE337.
Logic Gates and Boolean Algebra Introduction to Logic II.
Boolean Algebra and Computer Logic Mathematical Structures for Computer Science Chapter 7 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Boolean Logic.
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 GATES. INTRODUCTION TO LOGIC GATES Boolean functions may be practically implemented by using electronic gates. The following points are important.
Universal Gate – NOR Universal Gate - NOR Digital Electronics
Digital Logic.
Universal Gate – NAND Universal Gate - NAND Digital Electronics
Application: Digital Logic Circuits
Logic Gates and Boolean Algebra
Universal Gate – NAND Universal Gate - NAND Digital Electronics
Digital Fundamentals Floyd Chapter 3 Tenth Edition
Logic Gates.
Logic Gates Benchmark Companies Inc PO Box Aurora CO
Chapter 2.3 Binary Logic.
KS4 Electricity – Electronic systems
KS4 Electricity – Electronic systems
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.
Universal Gate – NAND Universal Gate - NAND Digital Electronics
Copyright © Cengage Learning. All rights reserved.
Universal Gate – NOR Universal Gate - NOR Digital Electronics
Computer Science 210 Computer Organization
Agenda – 2/12/18 Questions? Readings: CSI 4, P
Applications of Propositional Logic
Schematics 201 Lecture Topic: Electrical Symbols
Universal Gate – NAND Universal Gate - NAND Digital Electronics
JC Technology Logic Gates.
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.
KS4 Electricity – Electronic systems
Universal Gate – NOR Universal Gate - NOR Digital Electronics
GCSE Computer Science – Logic Gates & Boolean Expressions
Chapter 10.3 and 10.4: Combinatorial Circuits
Binary Logic.
Section 3.7 Switching Circuits
XOR Function Logic Symbol  Description  Truth Table 
Truth tables Mrs. Palmer.
Copyright © Cengage Learning. All rights reserved.
Digital Circuits.
Boolean Algebra By: Asst Lec. Besma Nazar Nadhem
Presentation transcript:

Truth Table to Statement Form p q r ? T F Disjunctive Normal Form (DNF) or sum-of-products form (pqr)  (p~qr)  (p~q~r) Conjunctive Normal Form (CNF) or product-of-sums form (~p~qr)  (p~q~r)  (p~qr)  (pq~r)  (pqr)

Application: Digital Logic Circuits More complicated circuits correspond to more complicated logical expressions. Electrical engineers continue to use the language of logic when they refer to values of signals produced by an electronic switch as being “true” (1) or “false” (0). The symbols 0 and 1 are called bits, short for binary digits.

Gates An efficient method for designing more complicated circuits is to build them by connecting less complicated black box circuits. Three such circuits are NOT-, AND-, and OR-gates.

Circuits v.s. Logic R ≡ ~P  Q Input signals: P = 0 and Q = 1

Circuits v.s. Logic A dot indicates a soldering of two wires. Wires that cross without a dot are assumed not to touch. P  Q (P  Q)  ~ (P  Q) P  Q ~ (P  Q)

The Boolean Expression Corresponding to a Circuit In logic, variables such as p, q and r represent statements, and a statement can have one of only two truth values: T(true) or F(false). A statement form is an expression, such as p ∧ (∼q ∨ r), composed of statement variables and logical connectives. Any variable, such as a statement variable or an input signal, that can take one of only two values is called a Boolean variable. An expression composed of Boolean variables and the connectives ∼, ∧, and ∨ is called a Boolean expression.

Black Boxes and Gates Focuses attention on the relation between the input and the output signals. The operation is completely specified by constructing an input/output table that lists all possible input signals together with their corresponding output signals.

Black Boxes S ≡ (PQR)  (P~QR)  (P~Q~R) S ≡ (~P~QR)  (P~Q~R)  (P~QR)  (PQ~R)  (PQR) p q r ? T F

Example 5 – Solution cont’d Then draw the diagram for (P  Q  R)  (P  ~Q  R)  (P  ~Q  ~R)

Simplifying Combinational Circuits Consider the two combinational circuits shown below. (a) (b)

Example 6 – Solution Circuit (a): ((P ∧ ∼Q) ∨ (P ∧ Q)) ∧ Q Circuit (b): P ∧ Q

NAND and NOR Gates Another way to simplify a circuit is to find an equivalent circuit that uses the fewest different kinds of logic gates. Two gates not previously introduced are particularly useful for this: NAND-gates and NOR-gates. NAND-gate: acts like an AND-gate followed by a NOT-gate; represented by a Sheffer stroke “|”. NOR-gate: acts like an OR-gate followed by a NOT-gate; represented by a Peirce arrow “↓”.

NAND and NOR Gates

NAND and NOR Gates It can be shown that any Boolean expression is equivalent to one written entirely with Sheffer strokes or entirely with Peirce arrows. Thus any digital logic circuit is equivalent to one that uses only NAND-gates or only NOR-gates.

Example 7 – Rewriting Expressions Using the Sheffer Stroke Use logical equivalences to show that

Example 7 – Rewriting Expressions Using the Sheffer Stroke Use logical equivalences to show that Use logical equivalences to show that PQ ≡ (P|Q)|(P|Q) NAND ( | ) is functionally complete.

Summary of Logical Equivalences A number of logical equivalences are summarized in Theorem 2.1.1 for future reference.

Summary of Rules of Inference Table 2.3.1 summarizes some of the most important rules of inference.             Valid Argument Forms Table 2.3.1