The Logic of Compound Statements

Slides:



Advertisements
Similar presentations
Constructing a Truth Table
Advertisements

ENGIN112 L7: More Logic Functions September 17, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 7 More Logic Functions: NAND, NOR,
Programmable Logic Controllers.
Lecture 6 More Logic Functions: NAND, NOR, XOR and XNOR
(CSC 102) Discrete Structures Lecture 5.
Types of Logic Circuits
CSE 311: Foundations of Computing Fall 2013 Lecture 3: Logic and Boolean algebra.
Logical Systems Synthesis.
Chapter 2 Logic Circuits.
1 CS/COE0447 Computer Organization & Assembly Language Logic Design.
Boolean Algebra and Logic Gate
CS 151 Digital Systems Design Lecture 7 More Logic Functions: NAND, NOR, XOR.
Boolean Algebra Computer Science AND (today is Monday) AND (it is raining) (today is Monday) AND (it is not raining) (today is Friday) AND (it is.
1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.
Copyright © Cengage Learning. All rights reserved. CHAPTER 2 THE LOGIC OF COMPOUND STATEMENTS THE LOGIC OF COMPOUND STATEMENTS.
Digital Systems Presented by Prof Tim Johnson
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.
BUILDING COMPUTER CIRCUITS prepared by Burak Galip ASLAN September, 2006 BOOLEAN LOGIC AND GATES CONTROL CIRCUITS.
Logic gates & Boolean Algebra. Introduction Certain components (called logic elements) of the computer combine electric pulses using a set of rules. Electric.
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.
Logic Gates & Boolean Algebra Chin-Sung Lin Eleanor Roosevelt High School.
Computer Organization 1 Logic Gates and Adders. Propositions –Venn Diagrams.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
MATH 102 Contemporary Math S. Rook
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.
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.
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
+ CS 325: CS Hardware and Software Organization and Architecture Gates and Boolean Algebra Part 2.
Gates and Logic Dr John Cowell phones off (please)
Conditional Statements
Brief Introduction to Boolean Algebra We can use transistors to build AND, OR, NAND, NOR, and Invertors Manufacturing is simplified with NAND/NOR NAND/NOR.
How do I show that two compound propositions are logically equivalent?
Logical Form and Logical Equivalence Lecture 1 Section 1.1 Wed, Jan 12, 2005.
Simplifying Boolean Expressions. Boolean Operators (T/F) xyx AND y FFF FTF TFF TTT xyx OR y FFF FTT TFT TTT xyx XOR y FFF FTT TFT TTF xNOT x FT TF.
CEC 220 Digital Circuit Design Boolean Algebra I Wed, Sept 2 CEC 220 Digital Circuit Design Slide 1 of 13.
CEC 220 Digital Circuit Design Boolean Algebra Friday, January 17 CEC 220 Digital Circuit Design Slide 1 of 22.
5 - Digital Logic with Boolean Algebra
Chapter 4 Fundamentals of Computer Logic 1 Chapter 4: Fundamental of Computer Logic - IE337.
Logic Gates. A logic gate is an elementary building block of a digital circuit. Most logic gates have two inputs and one output. At any given moment,
Logic Design EE-2121 Manesh T. Digital Systems  Introduction  Binary Quantities and Variables  Logic Gates  Boolean Algebra  Combinational Logic.
Fundamental Logic Gates And, Or, Not. Logic Gates: The Basics Regulate the flow of electricity within circuits to perform desired functionalities Each.
رياضيات متقطعة لعلوم الحاسب MATH 226. Text books: (Discrete Mathematics and its applications) Kenneth H. Rosen, seventh Edition, 2012, McGraw- Hill.
Section 1.1. Propositions A proposition is a declarative sentence that is either true or false. Examples of propositions: a) The Moon is made of green.
Conditional Statements Lecture 2 Section 1.2 Fri, Jan 20, 2006.
Chapter 5 Boolean Algebra and Reduction Techniques 1.
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.
Truth Table to Statement Form
Morgan Kaufmann Publishers
Logic Gates and Boolean Algebra
Logic Gates.
CHAPTER 3 SETS AND BOOLEAN ALGEBRA
Dr. Clincy Professor of CS
Boolean Algebra Why study Boolean Algebra?
Dr. Clincy Professor of CS
Schematics 201 Lecture Topic: Electrical Symbols
JC Technology Logic Gates.
CS Chapter 3 (3A and ) Part 3 of 8
Logic Gates.
CS Chapter 3 (3A and ) – Part 2 of 5
Chapter 4 Gates and Circuits.
Digital Logic Circuits
Truth tables Mrs. Palmer.
Copyright © Cengage Learning. All rights reserved.
Digital Logic Design Basics Combinational Circuits Sequential Circuits.
Agenda Lecture Content: Combinatorial Circuits Boolean Algebras
SYEN 3330 Digital Systems Chapter 2 – Part 1 SYEN 3330 Digital Systems.
Presentation transcript:

The Logic of Compound Statements Chapter 1 The Logic of Compound Statements

Digital Logic Circuits Section 1.4 Digital Logic Circuits

Digital Circuits Electrical circuits can be fashioned to mimic logic tables. Types of switches: open closed Types of circuits: series parallel

Switching Table Switches in series closed/on => T open/off => F Q State closed on open off Series switch mimics an AND table P Q State T F

Switching Table Switches in parallel closed/on => T open/off => F P Q State closed on open off Series switch mimics an OR table P Q State T F

Basic Digital Logic Gates

Combinational Circuits Combinational circuits are composed of one or more basic gates where the output of the circuit is based on the input at that instant in time. Rules of Combinational Circuits Never combine two input wires. A single input wire can be split and used as input for two separate gates. An output wire can be used as input. No output of a gate can feedback into that gate. Sequential circuits are circuits that include feedback. Their output depends on previous input. These circuits are used to build circuits that can remember (memory circuits).

Example Trace the propagation of the inputs through the circuit. input: P=1 Q=0, output: R = 0 input: P=0, Q=1, R=1, output: S =0

Input-Output Table Input-output table is a truth table for a combinational circuit. It shows the output of the circuit given a set of inputs. Input Output P Q R X 1

Example P v Q (P v Q) ^ ~(P ^ Q) ~(P ^ Q) P ^ Q Input Output P Q R 1 1 This circuit is equivalent to XOR. That is it is 1 (TRUE) only when the inputs are opposite and 0 (FALSE) when the inputs have the same value.

Boolean A combinational circuit can be expressed as a Boolean expression. George Boolean was an English mathematician who founded symbolic logic. Boolean variable is a variable that has only two possible values (T/F, on/off, 1/0). Boolean expression is composed of Boolean variables and connectives (~, v, ^ )

Boolean Expression Circuits A Boolean expression can be converted to a combinational digital logic circuit by using the Boolean variables as inputs and matching the connectives (~, v, ^) with their gate equivalent (NOT, OR, AND). Example (~P ^ Q) v ~Q

Circuit from I/O Table A circuit can be constructed from any I/O table. A circuit constructed in this form will be composed of a set of AND gates connected by OR gates. R^S v ~R^S v R^~S

Example 1^1^1 v 1^0^1 v 1^0^0 P^Q^R v P^~Q^R v P^~Q^~R

Equivalent Circuits Two circuits are equivalent if there I/O tables are equivalent. As with logic expressions, digital circuits may be simplified through logic theorem 1.1.1, aka Boolean Algebra.

Example ((P ^ ~Q) V (P ^ Q)) ^ Q (P ^ (~Q V Q)) ^ Q (distributive) (P ^ (Q v ~Q)) ^ Q (commutative) (P ^ t) ^ Q (negation) P ^ Q (identity) Inspection of the I/O table reveals the simplified circuit.

NAND and NOR Gates NAND or NOR gates can be used to simplify a circuit as they are primitive gates, i.e. all gates can be built from them. (NOT, AND, OR, XOR, etc.)

NAND and NOR NAND NOR logic symbol is (Sheffer Stroke) | P|Q  ~(P ^ Q) NOR logic symbol is (Peirce Arrow)  PQ  ~(P v Q)

NAND (Sheffer Stroke) Example Show that the Sheffer Stroke (NAND) can be used to implement ~ (NOT) ~P  P | P ~P  ~(P ^ P) (idempotent)  P | P (definition of |)