Www.company.com Module Code MA1032N: Logic Lecture for Week 2 2012-2013 Autumn.

Slides:



Advertisements
Similar presentations
Logic Gates.
Advertisements

CSE 311: Foundations of Computing Fall 2013 Lecture 3: Logic and Boolean algebra.
Propositional Equivalences. L32 Agenda Tautologies Logical Equivalences.
Boolean Algebra and Logic Gate
Relationship Between Basic Operation of Boolean and Basic Logic Gate The basic construction of a logical circuit is gates Gate is an electronic circuit.
1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.
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.
Boolean Algebra and Truth Table The mathematics associated with binary number system (or logic) is call Boolean: –“0” and “1”, or “False” and “True” –Calculation.
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 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.
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.
Discrete Math – Logic Unit
Lecture 3. Boolean Algebra, Logic Gates Prof. Sin-Min Lee Department of Computer Science 2x.
Copyright © Curt Hill Truth Tables A way to show Boolean Operations.
Lecture 17: Digital Design Today’s topic –Intro to Boolean functions Reminders –HW 4 due Wednesday 10/8/2014 (extended) –HW 5 due Wednesday 10/15/2014.
Chapter 1 The Logic of Compound Statements. Section 1.1 Logical Form and Logical Equivalence.
1 The Chinese University of Hong Kong Faculty of Education Diploma in Education (Part-Time) Winter 1997 Educational Communications and Technology Assignment.
The Digital Logic Level
Logical Form and Logical Equivalence Lecture 2 Section 1.1 Fri, Jan 19, 2007.
Boolean Algebra and Computer Logic Mathematical Structures for Computer Science Chapter 7.1 – 7.2 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Boolean.
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.
Week 6: Gates and Circuits: PART I READING: Chapter 4.
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
ACOE1611 Combinational Logic Circuits Reference: M. Mano, C. Kime, “Logic and Computer Design Fundamentals”, Chapter 2.
CH51 Chapter 5 Combinational Logic By Taweesak Reungpeerakul.
ITEC 352 Lecture 3 Low level components(2). Low-level components Review Electricity Transistors Gates Really simple circuit.
Logical Form and Logical Equivalence Lecture 1 Section 1.1 Wed, Jan 12, 2005.
5 - Digital Logic with Boolean Algebra
Module 7.  In Module 3 we have learned about NAND gate – it is a combination of AND operation followed by NOT operation  Symbol A. B = Y  Logic Gate.
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.
Thinking Mathematically Logic 3.4 Truth Tables for the Conditional and Biconditional.
August 2003 CIS102/LECTURE 9/FKS 1 Mathematics for Computing Lecture 9 LOGIC Chapter 3.
1 Ch.3 Logic Gates and Boolean Algebra – Part 1
Logic Gates and Boolean Algebra Introduction to Logic II.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
Module Code MA0003NI: Computing mathematics Lecture for Week Autumn.
Logic gates.
Boolean Algebra & Logic Gates
Basics of Logic gates - Part 1
Digital Logic.
Morgan Kaufmann Publishers
Department of Preparatory Year, Umm Al Qura University
Logic Gates and Boolean Algebra
Chapter 3 Notes – Part II Review Questions
DISCRETE MATHEMATICS CHAPTER I.
Logic Gates.
Logic Gates Benchmark Companies Inc PO Box Aurora CO
(CSC 102) Discrete Structures Lecture 2.
Chapter 2.3 Binary Logic.
Digital Logic.
Boolean Algebra.
Boolean Expressions Lecture No. 10.
Dr. Clincy Professor of CS
Propositional Equivalences
Agenda – 2/12/18 Questions? Readings: CSI 4, P
BASIC & COMBINATIONAL LOGIC CIRCUIT
Week 7: Gates and Circuits: PART II
CS Chapter 3 (3A and ) Part 3 of 8
Logic Gates.
Boolean Algebra.
CS Chapter 3 (3A and ) – Part 2 of 5
Chapter 4 Gates and Circuits.
Truth tables Mrs. Palmer.
BOOLEAN ALGEBRA.
Digital Logic Design Basics Combinational Circuits Sequential Circuits.
Chapter 3 – Describing Logic Circuits
Presentation transcript:

Module Code MA1032N: Logic Lecture for Week Autumn

Agenda Week 2 Lecture coverage: –Logical Equivalence, –Tautology, –Contradiction, –Boolean Algebra and –Logical Gates –Logical Circuits

Chapter 1 LOGICAL EQUIVALENCE Two compound propositions P(p, q, r, … ) and Q(p, q, r, … ) are said to be logically equivalent (or simply equivalent) if the last column of their truth tables are identical. We write P ≡ Q in this case.

Example p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r) For simplicity we construct their truth tables in a single diagram. pqr (q ∨ r)p ∧ (q ∨ r)(p ∧ q)(p ∧ r)(p ∧ q) ∨ (p ∧ r) TTTTTTTT TTFTTTFT TFTTTFTT TFFFFFFF FTTTFFFF FTFTFFFF FFTTFFFF FFFFFFFF

A proposition P(p, q, r, … ) is called a tautology if every entry in the last column of its truth table is T. We represent any tautology by TRUE. Tautology

Tautology (cont.) Consider the proposition (p ∨ q) ∨ ¬(p ∧ q). pq (p ∨ q)(p ∧ q)¬(p ∧ q)(p ∨ q) ∨ ¬(p ∧ q) TTTTFT TFTFTT FTTFTT FFFFTT Here, every entry in the last column is T. This means the proposition evaluates to true for all possible combinations of Truth values of its component propositions. Hence, the above proposition is Tautology.

Contradiction A proposition P(p, q, r, … ) is called a contradiction if every entry in the last column of its truth table is F. We represent any contradiction by FALSE.

Contradiction (cont.) Consider the proposition (p ∧ q) ∧ ¬(p ∧ q). pq (p ∧ q)¬(p ∧ q)(p ∧ q) ∧ ¬(p ∧ q) TTTFF TFFTF FTFTF FFFTF Here, every entry in the last column is F. This means the proposition evaluates to false for all possible combinations of Truth values of its component propositions. Hence, the above proposition is Contradiction.

Properties The following four properties of TRUE and FALSE will complete the link between the algebra of sets and the algebra of propositions. For any proposition p: (i) p ∨ FALSE ≡ p (ii) p ∧ TRUE ≡ p (iii) p ∨ ¬p ≡ TRUE (iv) p ∧ ¬p ≡ FALSE. These are easily proved using truth tables.

Five Basic Laws

Six more laws: For all propositions p and q

Example Prove Idempotent law, p ∨ p ≡p

Example

Example Q.Show that [( p → q) ᴧ ( q → r)] → ( p → r) is a tautology.

Logic Gates A logic gate is a simple digital circuit that corresponds to one of the logical connectives. Transistors are combined together to form logic gates

Logic Gates NOT gate AND gate OR gate NAND gate NOR gate

P TF FT NOT P NOT-GATE P NOT P INPUT NOT P OUTPUT Truth Table

OR-GATE OUTPUT INPUTS p q p v q Truth Table OR-GATE p q p v q 1 0 1

Truth Table AND-GATE OUTPUT p ᴧ q INPUTS p q pq p ᴧ q AND-GATE

p q A NAND B Symbol p q A NAND B AB NAND-GATE Truth Table

Truth Table A B A NOR B A B AB NOR-GATE

Logic Circuits Gates can be combined together in various ways to make circuits with output from one gate serving as input (or part of the input) to another. Such circuits are called logic circuits. Example: Labeling the circuit diagram Note: The labeling is always carried out from left to right (i.e. from input through to output).

Logic Circuits (Cont.) There are two input signals to the circuit. If these are labeled A and B they are initially inputs to the AND gate. This transforms them to the output A · B which is then input to the NOT gate. The final output from the circuit is therefore

Logic Circuits (Cont.) Example

Logic Circuits (Cont.) Example

Logic Circuits (Cont.) Example

Logic Circuits (Cont.) Questions…… A. Construct the logic circuit and write the truth table for the following Boolean expressions. 1.Z = A.B + B.C 2.Z = A.B + A’.B’ 3.Z = A.B’.C + A’.B.C + A.B.C’ B. Construct the logic circuit for the following expressions.