Application: Digital Logic Circuits Lecture 5 Section 1.4 Wed, Jan 24, 2007.

Slides:



Advertisements
Similar presentations
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, every.
Advertisements

1 Combinational Logic Design&Analysis. 2 Introduction We have learned all the prerequisite material: – Truth tables and Boolean expressions describe functions.
Disjunctive Normal Form CS 680: Formal Methods Jeremy Johnson.
ECE 301 – Digital Electronics Minterm and Maxterm Expansions and Incompletely Specified Functions (Lecture #6) The slides included herein were taken from.
ECE 331 – Digital System Design
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.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
EE1J2 – Discrete Maths Lecture 5
ECE 331 – Digital System Design Multi-level Logic Circuits and NAND-NAND and NOR-NOR Circuits (Lecture #8) The slides included herein were taken from the.
Copyright © Cengage Learning. All rights reserved. CHAPTER 2 THE LOGIC OF COMPOUND STATEMENTS THE LOGIC OF COMPOUND STATEMENTS.
Discrete Mathematics Carlos Aguilar Jose De Jesus Melendez
The Logic of Compound Statements
In a not gate, if the input is on(1) the output is off (0) and vice versa.
Digital Logic Lecture 08 By Amr Al-Awamry. Combinational Logic 1 A combinational circuit consists of an interconnection of logic gates. Combinational.
1 Introduction to Abstract Mathematics Applications : Digital Logic Circuits 2.4 and Number Systems 2.5 Instructor: Hayk Melikya
Copyright © Curt Hill Truth Tables A way to show Boolean Operations.
Chapter 3.5 Logic Circuits. How does Boolean algebra relate to computer circuits? Data is stored and manipulated in a computer as a binary number. Individual.
DeMorgan Theorem, Computer Simulation Exercises
ECE 331 – Digital System Design
Introduction Each logical element or condition must always have a logic value of either "0" or "1", we also need to have ways to combine different logical.
CS1502 Formal Methods in Computer Science
Apr. 3, 2000Systems Architecture I1 Systems Architecture I (CS ) Lecture 3: Review of Digital Circuits and Logic Design Jeremy R. Johnson Mon. Apr.
Digital Systems I EEC 180A Lecture 4 Bevan M. Baas.
Module 9.  Digital logic circuits can be categorized based on the nature of their inputs either: Combinational logic circuit It consists of logic gates.
Logical Form and Logical Equivalence Lecture 2 Section 1.1 Fri, Jan 19, 2007.
Project #9 Scarlitte Ponce Starlite Ponce Cristina Hernandez
LOGIC GATES.
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.
Module Code MA1032N: Logic Lecture for Week Autumn.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Circuit Design.
Chapter 1 Section 1.1Functions. Functions A Notation of Dependence ◦ What does that mean? Rule which takes certain values as inputs and assigns them exactly.
Combination of logic gates  Logic gates can be combined to produce more complex functions.  They can also be combined to substitute one type of gate.
Logic Gates. The Inverter The inverter (NOT circuit) performs the operation called inversion or complementation. Standard logic symbols: 1 1 input output.
Logical Form and Logical Equivalence Lecture 1 Section 1.1 Wed, Jan 12, 2005.
CHAPTER 1 SETS, FUNCTIONs, ELEMENTARY LOGIC & BOOLEAN ALGEBRAs
Boolean Functions x 2 x 3 x f mapping truth table.
Karnaugh Maps (K-Maps)
Digital Design Module 2 Decoder Amit Kumar AP SCSE, GU Greater Noida.
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.
CO5023 Building Circuits from Truth Tables. Build the following… Let’s say we want a circuit which acts as described by the following truth table: We.
Chapter 33 Basic Logic Gates. Objectives After completing this chapter, you will be able to: –Identify and explain the function of the basic logic gates.
Logic Gates and Boolean Algebra Introduction to Logic II.
ACOE161Digital Circuit Design1 Design Of Combinational Logic Circuits.
Truth Table to Statement Form
CS1022 Computer Programming & Principles
Application: Digital Logic Circuits
Logic Gates.
EI205 Lecture 5 Dianguang Ma Fall 2008.
KS4 Electricity – Electronic systems
KS4 Electricity – Electronic systems
Jeremy R. Johnson Wed. Sept. 29, 1999
Karnaugh Maps (K-Maps)
Computer Science 210 Computer Organization
Jeremy R. Johnson Anatole D. Ruslanov William M. Mongan
CSE 311 Foundations of Computing I
Instructor: Alexander Stoytchev
Combinatorial Logic Circuit
JC Technology Logic Gates.
Instructor: Alexander Stoytchev
Propositional Equivalences
KS4 Electricity – Electronic systems
ECB2212-Digital Electronics K-Map
Gates Type AND denoted by X.Y OR denoted by X + Y NOR denoted by X + Y
PROPOSITIONAL LOGIC - SYNTAX-
Binary Logic.
Section 3.7 Switching Circuits
Copyright © Cengage Learning. All rights reserved.
SYEN 3330 Digital Systems Chapter 2 – Part 1 SYEN 3330 Digital Systems.
Presentation transcript:

Application: Digital Logic Circuits Lecture 5 Section 1.4 Wed, Jan 24, 2007

Logic Gates Three basic logic gates AND-gate OR-gate NOT-gate Two other gates NAND-gate (NOT-AND) NOR-gate (NOT-OR)

AND-Gate Output is 1 if both inputs are 1. Output is 0 if either input is 0. pqOutput

OR-Gate Output is 1 if either input is 1. Output is 0 if both inputs are 0. pqOutput

NOT-Gate Output is 1 if input is 0. Output is 0 if input is 1. pOutput 10 01

NAND-Gate Output is 1 if either input is 0. Output is 0 if both inputs are 1. pqOutput

NOR-Gate Output is 1 if both inputs are 0. Output is 0 if either input is 1. pqOutput

Disjunctive Normal Form A logical expression is in disjunctive normal form if It is a disjunction of clauses. Each clause is a conjunction of variables and their negations. Each variable or its negation appears in each clause exactly once.

Examples: Disjunctive Normal Form p  q  (p  q)  (  p  q)  (  p   q). p  q  (p  q)  (  p   q). p | q  (p   q)  (  p  q)  (  p   q). p  q   p   q.

Output Tables An output table shows the output of the circuit for every possible combination of inputs. InputsOutput

Designing a Circuit Write an output table for the circuit. Write the expression in disjunctive normal form. Simplify the expression as much as possible. Write the circuit using AND-, OR-, and NOT-gates.

Example: Designing a Circuit Design a circuit for  (p  q). Inputs Output pq

Example: Designing a Circuit  (p  q) is equivalent to p   q. Draw the circuit using an AND-gate and a NOT-gate.

Example: Designing a Circuit Design a circuit for (p  q)  (q   r). Inputs Output pqr

Example: Designing a Circuit (p  q)  (q   r) is equivalent to (p  q   r)  (  p  q   r)  (  p   q  r). Does this simplify? In any case, we can draw a circuit, although it may not be optimal.

Example: Designing a Circuit Design a logic circuit for (p  q)  (  q   r)  r.

Conjunctive Normal Form A logical expression is in conjunctive normal form if It is a conjunction of clauses. Each clause is a disjunction of variables and their negations. Each variable or its negation appears in each clause exactly once.

Examples: Conjunctive Normal Form p  q   p  q. p  q  (p   q)  (  p  q). p | q   p   q. p  q  (p   q)  (  p  q)  (  p   q).

Conjunctive Normal Form To write an expression in CNF, Write the output table (truth table). Follow the procedure for writing the expression in DNF, except Reverse the rolls of 0 and 1 and  and .

Example: Using CNF Re-do the previous example (p  q)  (  q   r)  r. using the conjunctive normal form.

The Red Dot-Blue Dot Puzzle Three men apply for a job. They are equally well qualified, so the employer needs a way to choose one. He tells them “On the forehead of each of you I will put either a red dot or a blue dot.” “At least one of you will have a red dot.” “The first one who can tell me the color of the dot on his forehead gets the job.”

The Red Dot-Blue Dot Puzzle The employer proceeds to put a red dot on each man’s forehead. After a few moments, one of them says, “I have a red dot.” How did he know?