Example of Digital Problem  To build a logic circuit of an Alarm System at the office (with one door and one window) that will ring if the door or window.

Slides:



Advertisements
Similar presentations
Chapter 3 Logic Gates and Boolean Algebra – Part 1
Advertisements

Logic Gates.
Lecture 6 More Logic Functions: NAND, NOR, XOR and XNOR
Combinational Logic Circuits Chapter 2 Mano and Kime.
ECE 2373 Modern Digital System Design Exam 2. ECE 2372 Exam 2 Thursday March 5 You may use two 8 ½” x 11” pages of information, front and back, write.
Boolean Algebra and Logic Gate
Microprocessors vs. Custom Digital Circuits
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 COMP541 Combinational Logic Montek Singh Jan 16, 2007.
How to build a digital gate. CMOS NAND Gate Several realization of NOT 1. This is how a NOT operation is often represented schematically. 2. Sometimes.
Logic Gates.
4/11/03 Minute Paper How does MS window work? Like how do we have the screen on the computer. Is it just a bunch of Binary #’s representing colors? When.
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.
Boolean Algebra. Introduction 1854: Logical algebra was published by George Boole  known today as “Boolean Algebra” 1854: Logical algebra was published.
ENGG 1203 Tutorial Combinational Logic (I) 1 Feb Learning Objectives
CHAPTER 2 Boolean Algebra
Logic gates & Boolean Algebra. Introduction Certain components (called logic elements) of the computer combine electric pulses using a set of rules. Electric.
1 The Chinese University of Hong Kong Faculty of Education Diploma in Education (Part-Time) Winter 1997 Educational Communications and Technology Assignment.
Digital Systems: Boolean Algebra and Logic Gates
Logic Gates Logic gates are electronic digital circuit perform logic functions. Commonly expected logic functions are already having the corresponding.
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.
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.
PRASAD A. PAWASKAR SPN. NO DETE 2 SEMESTER lec1-11.
Logic Gates and Boolean Algebra Wen-Hung Liao, Ph.D. 11/2/2001.
Using De’Morgan’s On of the most useful principles in boolean algebra is De’Morgan’s Theorem, which allows one to switch between ANDs and NORs and ORs.
Floyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd Chapter 5 © 2008 Pearson Education.
Laws of Boolean Algebra Commutative Law Associative Law Distributive Law Identity Law De Morgan's Theorem.
Chapter 4 Fundamentals of Computer Logic 1 Chapter 4: Fundamental of Computer Logic - IE337.
Karnaugh Maps (K-Maps)
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
CEC 220 Digital Circuit Design SOP and POS forms Friday, January 23 CEC 220 Digital Circuit Design Slide 1 of 17.
BOOLEAN ALGEBRA LOGIC GATES. Introduction British mathematician George Boole( ) was successful in finding the link between logic and mathematics.
CEC 220 Digital Circuit Design SOP and POS forms Friday, Sept 11 CEC 220 Digital Circuit Design Slide 1 of 17.
Chapter 5 Boolean Algebra and Reduction Techniques 1.
WORKING PRINCIPLE OF DIGITAL LOGIC
Logic Gates and Boolean Algebra Introduction to Logic II.
The First lesson on Digital Logic Rachaen M. Huq1 Rachaen Huq. Dept. of EEE, BRACU.
Boolean Algebra & Logic Gates
Combinational Circuits Part 1
Chapter 11 (Part 1): Boolean Algebra
De Morgan’s Theorem,.
Boolean Algebra & De Morgan's Theorems
CHAPTER 2 Boolean Algebra
Logic Gates.
EI205 Lecture 5 Dianguang Ma Fall 2008.
CHAPTER 1 : INTRODUCTION
Digital Logic.
Boolean Algebra.
CHAPTER 3 SETS AND BOOLEAN ALGEBRA
TN 221: DIGITAL ELECTRONICS 1
KS4 Electricity – Electronic systems
KS4 Electricity – Electronic systems
Karnaugh Maps (K-Maps)
BASIC & COMBINATIONAL LOGIC CIRCUIT
Combinational Logic Design Process
Circuits, Truth Tables & Boolean Algebra
Logic Gates.
Boolean Algebra.
KS4 Electricity – Electronic systems
13 Digital Logic Circuits.
University of Maryland Baltimore County Department of Computer Science and Electrical Engineering   CMPE 212 Laboratory (Discussion 4) Hasib Hasan
Logic Gates By Dr.Mazin Alzewary
Circuits, Truth Tables & Boolean Algebra
Truth tables Mrs. Palmer.
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Combinational Logic Circuit
Boolean Algebra and Gate Networks
Principles & Applications
Boolean Algebra.
Presentation transcript:

Example of Digital Problem  To build a logic circuit of an Alarm System at the office (with one door and one window) that will ring if the door or window is/are opened after working hours.  Followings are the steps that are to be taken to build a logical circuit. 1.Problem Determination -- Determine the problem that has to be solved -- A logical circuit that will trigger the emergency bell if door or window is/are opened outside office hours has to be built 2. Conceptualization - Obtain the relevant logical variable and make a logical table and also a truth table. Obtain the logical expression from the truth table

The related variables are : TimeT = 0 (work time)T = 1 (not work time) Doors D = 0 (closed)D = 1 (opened) Windows W = 0 (closed)W = 1 (opened) Whether Bell B will ring (1) or will not ring (0) depends on all three logical variables (depending on the condition or problem given)

Logic Table INPUT VARIABLESOUTPUT Time Door Window Bell Work closed Doesn’t ring Work closed openedDoesn’t ring Work opened closedDoesn’t ring Work opened Doesn’t ring Not Work closed Doesn’t ring Not Work closed openedWill Ring Not Work opened closedWill Ring Not Work opened Will Ring

Truth Table (based on logical variable and function above) INPUTSOUTPUT T D W B

B is the output or the function that we have to find. The B function or expression can be obtained through many was based on the truth table above. One of the methods is by using a Karnaugh map. Below is the Karnaugh Map for the Truth Table above WD T TD TW From the Karnaugh Map above, B = TW + TD The expression B above can be further summarized using theorem or the laws in Boolean algebra B = TW + TD = T(W + D) (from the Law of Distribution)

D W T (W + D) T(W + D) From the expression obtained, the logical circuit for B= T(W + D) is as follow :

Building logical circuits using only NAND or only NOR gates Most components in computers are built using only either the NAND or the NOR. This can further simplify the construction of such circuits (i.e. do not need to use various gates in a logic circuit) To build a circuit that only uses NAND or NOR gates, firstly the expression for the circuit has to be changed into an expression that only has either the NAND or NOR operations. To change it, the De Morgan and Involution Theorems are used.

The Involution Theorem is as follow: Example: Take the B expression B = T(W + D) as an example. 1. Using only the NAND gate To get an expression that only uses the NAND gate, eliminate the OR operation in the expression by using the Involution Theorem and De Morgan theorem. A = A

Example : B = T.(W + D) = T.(W + D)Involution Theorem = T. (W. D)De Morgan theorem = T. (W. D)Involution Theorem Hence, the logic circuit for B that only uses the NAND gate can be drawn as follow:

T W D

2. Using only the NOR gate To get an expression that only uses the NOR gate, eliminate the AND operation in the expression by using the Involution Theorem and the De Morgan Theorem. Example: B = T.(W + D) = T. (W + D)Involution Theorem = T + (W + D)De Morgan theorem

It is found that the expression produced no longer has the AND operation and all the OR operation has the complement sign or NOT symbol (or the NOR operation). Hence, the logic circuit for L that only uses the NOR gate can be drawn as follow: T W D

Circuits from NAND and NOR gates Buying separate AND, OR gates etc. is wasteful These gates can be made of NAND or NOR gates NAND gates are particularly cheap Sometimes there can be redundancy, so circuits can be simplified