Boolean Algebra Learning Objectives Learn that Boolean algebra produces a result that equals TRUE or FALSE Learn how truth tables are used to represent.

Slides:



Advertisements
Similar presentations
Logic Gates.
Advertisements

Logic Gates.
Programmable Logic Controllers.
Boolean Algebra Module M4.1 Section 5.1. Boolean Algebra and Logic Equations Switching Algebra Theorems Venn Diagrams.
Chapter 4 Logic Gates and Boolean Algebra. Introduction Logic gates are the actual physical implementations of the logical operators. These gates form.
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.
3. DIGITAL ELECTRONICS..
22C:19 Discrete Math Boolean Algebra & Digital Logic Fall 2010 Sukumar Ghosh.
Digital Systems Presented by Prof Tim Johnson
1 Fundamentals of Computer Science Propositional Logic (Boolean Algebra)
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.
Discrete Mathematics and Its Applications.  The English mathematician George Boole ( ) sought to give symbolic form to Aristotle's system of.
Boolean Algebra. Boolean algebra (or Boolean logic) is a logical calculus of truth values, developed by George Boole in the late 1830s. It created a notation.
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.
Week 6: Gates and Circuits: PART I READING: Chapter 4.
A-Level Computing#BristolMet Session Objectives#6 MUST understand and produce simple logic diagrams using the operations NOT, AND and OR SHOULD explain.
IT253: Computer Organization Lecture 7: Logic and Gates: Digital Design Tonga Institute of Higher Education.
Lecture 4 Nand, Nor Gates, CS147 Circuit Minimization and
Laws of Boolean Algebra Commutative Law Associative Law Distributive Law Identity Law De Morgan's Theorem.
WORKING PRINCIPLE OF DIGITAL LOGIC
Binary Logic Derrington KCL CPD/SKE Binary We’ve seen how data of all different sorts and kinds can be represented as binary bits… 0s and 1s 1 is.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
Digital Logic. Boolean Algebra to Logic Gates Logic circuits are built from components called logic gates. The logic gates correspond to Boolean operations.
LOGIC GATES. INTRODUCTION TO LOGIC GATES Boolean functions may be practically implemented by using electronic gates. The following points are important.
Logic Gates Learning Objectives Learn that there is a one-to-one relationship between logic gates and Boolean expressions Learn how logic gates are combined.
Hoda Roodaki Boolean Algebra Hoda Roodaki
Boolean Algebra & Logic Gates
Basics of Logic gates - Part 1
Digital Logic.
Truth Table to Statement Form
Morgan Kaufmann Publishers
Computer Code.
Chapter 11 (Part 1): Boolean Algebra
Computer Science 210 Computer Organization
Lecture 4 Nand, Nor Gates, CS147 Circuit Minimization and
Questions Describe the following gates
Boolean Algebra & De Morgan's Theorems
Logic Gates and Boolean Algebra
Logic Gates.
Logic Gates Benchmark Companies Inc PO Box Aurora CO
CHAPTER 3 SETS AND BOOLEAN ALGEBRA
Component 1 – 2A, B, C Binary Logic
Digital Signals Digital Signals have two basic states:
Jeremy R. Johnson Wed. Sept. 29, 1999
Practice #Digital Logic Mr. Burleson
Computer Science 210 Computer Organization
Jeremy R. Johnson Anatole D. Ruslanov William M. Mongan
Dr. Clincy Professor of CS
Boolean Algebra Digital Electronics
Computer Science 210 Computer Organization
Dr. Clincy Professor of CS
Fundamentals of Computer Systems
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.
Logic Gates.
De Morgan’s laws presentation
GCSE Computer Science – Logic Gates & Boolean Expressions
Lab Instructors will overview the MSP430
ECE 352 Digital System Fundamentals
Truth tables Mrs. Palmer.
Introductory Concepts
Copyright © Cengage Learning. All rights reserved.
Boolean Algebra and Gate Networks
What are Logic Gates?.
Lecture 4 – Binary Logic and Logic Gates
DIGITAL ELECTRONICS AND LOGIC GATES. ANALOG SIGNAL:- Analog signal is continuous time varying current or voltage signal.
Presentation transcript:

Boolean Algebra Learning Objectives Learn that Boolean algebra produces a result that equals TRUE or FALSE Learn how truth tables are used to represent Boolean expressions Learn how to use the AND, OR and NOT operators on their own or grouped together. Learn how to use NAND, NOR and XOR operators Learn how to simplify Boolean expresssions Learn how De Morgan’s Law allows Boolean expressions to be created using only NAND or NOR operators.

Boolean Algebra Computers work essentially on logical instructions. One way of demonstrating this is with Boolean Algebra and visually with Logic gates. A shorthand notation for a system of logic originally set forth by Aristotle and developed by George Boole (Boolean) is considering a set of statements either true or false. It is raining today A statement True False Possible Outcomes If the statement is represented by the variable X then you can say XMeaning TrueIt is raining today FalseIt is not raining today XMeaning 1It is raining today 0It is not raining today or

Boolean Algebra This is Boolean algebra – the concept of whether something is true or false. Since the introduction of digital electronics and computers which works with binary – a state of 0s and 1s – Boolean Algebra has now become very useful. Boolean Algebra can be represented in Truth Tables. Take this electronic diagram

Boolean Algebra Let transfer that diagram into a truth table. SwitchLamp OpenOff ClosedOn Switch Closed Lamp False True Switch Closed Lamp OR Function The above was just stating that if this state is true then this happens. Now we are going to say if this is true OR this is true then this happens. Consider the following diagram. In programming terms this would be something like: IF (num1 20) ….

Boolean Algebra XYLamp Open Off OpenClosedOn ClosedOpenOn Closed On XYLamp

Boolean Algebra This can be written in equation form X + Y = Q Where Q is a true setting for Lamp on. The + here means OR and not addition like in normal arithmetic. A truth table for the above will be the same as previous except that you replace the Lamp with Q. XYQ This can be shown in a black box diagram as: OR X Y Q

Boolean Algebra AND Function Consider the following diagram In this diagram both X and Y need to on or true for the lamp to be on. This is like saying that your fridge needs to be switched on and the door open for the light to come on. The equation syntax for this is to use a dot. So if Q is the lamp again. X.Y = Q And the truth table would look like this – In Programming terms: IF (num1 > 10 && num1 < 20) … XYQ

Boolean Algebra NOT Function The not function can be stated as such: If a State P was true then R is false and vice versa. This can be put in a truth table like so: From this we can state the P = NOT R – or the opposite of what R is. The syntax for this in equation form is this: _ P = R(note the _ over the R) Programming terms: IF (!valid) …. PR 01 10

Boolean Algebra Combinations of AND and OR You can use more complex Boolean algebra expressions by combining AND and ORs together. Consider the following diagram The notation for this can be written as: Q = (X AND Y) OR (X AND Z) or alternatively be written as: Q = X.Y + X.Z or Q = X.(Y + Z) Create a truth table for the above diagram.

Boolean Algebra NAND Function This is a combination of a NOT and an AND The notation would be something like this A. B Can you draw a truth table for a NAND Function

Boolean Algebra NOR Function This is a combination of a NOT and a OR The notation would be something like this A + B Can you draw a truth table for a NOR Function

Boolean Algebra XOR Function This function is true only if one value is true and not both. The notation would be something like this A B Can you draw a truth table for a NOR Function

Boolean Algebra Simplifying Boolean Expressions Some complex Boolean expressions can be simplified. This will enable circuitry to also be simplified in a computer. For instance Draw a truth table for the expression: (A. B) + A What do you think this can be simplified to? Task Use truth tables to show that the laws on table on page 251 are indeed the case. Put your answer in Specification Journal 19.

Boolean Algebra De Morgans Law This law is another way of simplifying Boolean equasions. 1)In a single expression invert all the ANDs to ORs and vice versa 2)Invert the whole expression – from NOT to normal and vice versa 3)Rule 1 – NOT (A AND B) is the same as (NOT A) OR (NOT B) 4)Rule 2 – NOT (A OR B) is the same as (NOT A) AND (NOT B) WORKING EXAMPLE

Boolean Algebra De Morgans Law Task Answer Question 4 on page 255 of the Text Book.