Boolean Logic By: Arthur Brooks February 25, 2003 Think, Speak, and Write Computer Science.

Slides:



Advertisements
Similar presentations
Chapter 4 Gates and Circuits.
Advertisements

Logic Gates.
Logic Gates.
1 Lecture 20 Sequential Circuits: Latches. 2 Overview °Circuits require memory to store intermediate data °Sequential circuits use a periodic signal to.
Cosc 2150: Computer Organization Chapter 3: Boolean Algebra and Digital Logic.
Data Storage – Part 1 CS 1 Introduction to Computers and Computer Technology Rick Graziani Fall 2013.
Chapter 4 Gates and Circuits.
9/19/06 Hofstra University – Overview of Computer Science, CSC005 1 Chapter 4 Gates and Circuits.
Lecture 3. Boolean Algebra, Logic Gates
Propositional Calculus Math Foundations of Computer Science.
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.
Lecture 3. Boolean Algebra, Logic Gates Prof. Sin-Min Lee Department of Computer Science 2x.
Chapter 4 Gates and Circuits. 4–2 Chapter Goals Identify the basic gates and describe the behavior of each Describe how gates are implemented using transistors.
Chapter 4 Gates and Circuits.
CS231: Computer Architecture I Laxmikant Kale Fall 2004.
Computer Science 1000 Digital Circuits. Digital Information computers store and process information using binary as we’ve seen, binary affords us similar.
Module 3.  Binary logic consists of :  logic variables  designated by alphabet letters, e.g. A, B, C… x, y, z, etc.  have ONLY 2 possible values:
Test #1 rescheduled to next Tuesday, 09/20/05 The contents will cover chapter 1, 2, and part of Chapter 4. The contents will cover chapter 1, 2, and part.
Systems Architecture I1 Propositional Calculus Objective: To provide students with the concepts and techniques from propositional calculus so that they.
Chapter 4 Gates and Circuits.
OCR GCSE Computing © Hodder Education 2013 Slide 1 OCR GCSE Computing Chapter 2: Binary Logic.
XOR and XNOR Logic Gates. XOR Function Output Y is TRUE if input A OR input B are TRUE Exclusively, else it is FALSE. Logic Symbol  Description  Truth.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
SUPLEMENTARY CHAPTER 1: An Introduction to Digital Logic The Architecture of Computer Hardware and Systems Software: An Information Technology Approach.
1 Logic Gates. 2 Review of Boolean algebra Just like Boolean logic Variables can only be 1 or 0 Instead of true / false Instead of true / false.
1 The Chinese University of Hong Kong Faculty of Education Diploma in Education (Part-Time) Winter 1997 Educational Communications and Technology Assignment.
1 DIGITAL ELECTRONICS. 2 OVERVIEW –electronic circuits capable of carrying out logical (boolean) and arithmetic operations on information stored as binary.
Fall 2012: FCM 708 Foundation I Lecture 2 Prof. Shamik Sengupta
1 Boolean Algebra & Logic Gates. 2 Objectives Understand the relationship between Boolean logic and digital computer circuits. Learn how to design simple.
Digital Logic Computer Organization 1 © McQuain Logic Design Goal:to become literate in most common concepts and terminology of digital.
CSC 107 – Programming For Science. George Boole  Mathematician from English middle-class  Lived from 1815 – 1864  Started work at age 16 as a teaching.
IT253: Computer Organization Lecture 7: Logic and Gates: Digital Design Tonga Institute of Higher Education.
4. Computer Maths and Logic 4.2 Boolean Logic Logic Circuits.
Logic Design CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.
1 Ethics of Computing MONT 113G, Spring 2012 Session 5 Binary Addition.
Gates & Logic Computer Organization I 1 August 2009 © McQuain, Feng & Ribbens Logic Design Goal:to become literate in most common concepts.
CO5023 Latches, Flip-Flops and Decoders. Sequential Circuit What does this do? The OUTPUT of a sequential circuit is determined by the current output.
Digital Computers Logic Gates & Applications. Digital Computers Types of Material (Electric Conductivity) – Insulator Rubber / wood – Conductor Copper.
Appendix B: Digital Logic
The inverter performs the Boolean NOT operation. When the input is LOW, the output is HIGH; when the input is HIGH, the output is LOW. The Inverter AX.
1 Logic Gates CS 202, Spring 2008 Epp, sections 1.4 and 1.5.
WORKING PRINCIPLE OF DIGITAL LOGIC
4–1. BSCS 5 th Semester Introduction Logic diagram: a graphical representation of a circuit –Each type of gate is represented by a specific graphical.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
1 Review of Boolean algebra Just like Boolean logic Variables can only be 1 or 0 Instead of true / false Instead of true / false.
1 Review of Boolean algebra Not is a horizontal bar above the number –0 = 1 –1 = 0 Or is a plus –0+0 = 0 –0+1 = 1 –1+0 = 1 –1+1 = 1 And is multiplication.
SAM GIRLS COLLEGE, BHOPAL DEPARTMENT OF COMPUTER SCIENCE.
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.
Logic Gates Unit 16.
Logic gates.
The basis for digital electronics.
Unit 1 Logical operators.
Basics of Logic gates - Part 1
Digital gates and difinition
Digital Signals Digital Signals have two basic states:
Lecture 3 Boolean Algebra and Digital Logic Lecture Duration: 2 Hours
Chapter 4 Gates and Circuits.
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Fundamentals of Computer Systems
Digital Logic.
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.
GCSE Computer Science – Logic Gates & Boolean Expressions
Digital Logic.
Today You are Learning simple logic diagrams using the operations AND, OR and NOT truth tables combining Boolean operators using AND, OR and NOT.
XOR, XNOR, and Binary Adders
XOR Function Logic Symbol  Description  Truth Table 
Copyright © Cengage Learning. All rights reserved.
Component 1 – 2A, B, C Binary Logic
Presentation transcript:

Boolean Logic By: Arthur Brooks February 25, 2003 Think, Speak, and Write Computer Science

Overview What is Boolean Logic and how does it work? The components/terminology that make up Boolean logic. How does it effects our everyday lives?

Origin/Definition Developed by English mathematician and logistician George Boole in the 1840’s. The term “Boolean” refers to a system of logical thoughts. In computer operations, its used to describe electro- magnetically charged memory locations or circuit states that can either be 1or 0 (either true or false).

Simple Gates There are three basic gates used in Boolean logic: –The NOT Gate(“inverter”) - where the gate has 1 input and 1 output that produces the opposite of the input. –This diagram shows how A != Q. If you were to input say 1, than the output would be 0 as a result of the not operator. A Q Continued--

Simple Gates Continued- The AND gate performs a logical “and” operation on two inputs. The idea is if the 2 inputs are true than the output will be true, but if 1 or both inputs are not true than the output will be false. –On this diagram, if A is 1 AND B is 1, than Q will be 1, but if A is 0 AND B is 1 than Q will be 0 and so on so forth. –A B Q

Simple Gates Continued- The next gate is the OR gate. The theory is if the first input of a variable is true OR the second input is true as well, than the output will be true also. –The diagram shows for example if A is 1 OR B is 1, than Q will be 1 as well. –A B Q

More Gates The NOR/NAND gates –They’re basically combinations of the and and or gates with a not gate. The diagrams show how the two work: A B Q The NOR gate: The NAND gate: A B Q

More Gates Continued- The XOR and XNOR gates( the “exclusive or” and “exclusive nor” gates) are the final two gates discussed. In the XOR gate, the idea is if either A OR B are true, but Not both, than Q will be true. The XNOR gate is the exact opposite. The XOR gate: The XNOR gate: A B Q

Simple Adders Simple adders basically deals with creating circuits with binary addition using gates/operators. Single-bit adder- used when there’s a need to add single bits together to get an answer. –For example, the following are four logical sums: 0+0=0 0+1=1 1+0=1 1+1=10 For these equations you can form this logic table: A B Q CO => (Carry-out)

Simple Adders Continued- If you wanted to add two 8-bit bytes together, you would have to modularize the problem into reusable components, therefore creating only one component: a full binary adder. Full binary adder logic table CI A B Q CO

Simple Adders Continued- A Black Box is basically used to simplify a design and make it easier to draw say a 4- bit full adder. 

Flip Flops and Memory Deals with the process of saving memory Able to create memory with Boolean gates. Feedback is the concept that memory relies on. –When the output of a gate is fed back into the input. –The diagram shows the simplest possible feedback circuit using two inverters as shown:

Flip Flops and Memory continued- An illegal state is when two inputs go to 0 which has no value in the memory sense. When both inputs are switched from 0 to 1 simultaneously, then the circuit remembers what was previously presented on the inputs. A conditioning logic is usually added as a result of a an illegal state on the input side of the gate to prevent any more illegal states. When There are 2 inputs, say D and E, if E is equal to 1, then the output will follow D, But if E changes to 0, then Q will remember whatever was last seen on D. A circuit that behaves likes this is referred to as a Flip Flop. –The diagram shows this flip-flop and how it works: continued-

Flip-Flops and Memory con- tinued A very common form of flip-flop is the J-K flip-flop. It’s usually represented in a black box like the dia- Gram here:

Implementing Gates Able to implement Boolean circuits of subtraction, multiplication, division, etc. –Relays- the easiest way to understand the physical implementation of Boolean Logic. (the old way to implement) –Transistors etched onto silicon chips- Where transistors are incredibly fast and small and consume very little power compared to relays. –Difference Between Relays and Transistors- Relays are incredibly more easy to understand, and they can implement Boolean Logic very simply.

Implementing Gates Continued- Shows inverter(NOT gate) being implemented with a 6 volt battery. Shows how when you define a binary 1 to be 6 volts and a binary 0 to be 0 volts(which will be the ground). If you apply 0 volts to A, then the output will be 6 volts, yet if you apply 6 volts to A, then the output will be 0 volts.

Implementing Gates Continued- Shows an AND gate being implemented. Showing that if you apply 6 volts to A AND B, the output Q will have 6 volts. Otherwise, the output will be 0 volts. The OR gate is even simpler, just hook the two wires A and B together to get 6 volts.

How Boolean Logic Effects us We use Boolean Logic basically everyday and all the time to make decisions and how to think of a logical explanation for certain things. In Computers, Boolean Logic is used within everything that a computer does such as a check book, games, spell- check, and anything else you can think of. It is a great tool to have and to use,and It will always be apart of our daily lives. THE END