D75P 34R - HNC Computer Architecture Week 8 More Boolean Logic © C Nyssen/Aberdeen College 2004 All images © Focus Clipart, used with permission except.

Slides:



Advertisements
Similar presentations
Logic Gates.
Advertisements

Digital logic gates.
Logic Gates.
CT455: Computer Organization Logic gate
Programmable Logic Controllers.
Computer Systems – Logic Gates Introduce the basic logic gates Introduce truth tables Introduce Boolean algebra (dont panic!) Examples of combining gates.
Logic Gates.
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.

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:
LOGIC GATES Logic generally has only 2 states, ON or OFF, represented by 1 or 0. Logic gates react to inputs in certain ways. Symbol for AND gate INPUT.
Binary Numbers.
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.
TODAY YOU ARE LEARNING to explain why data is represented in computer systems in binary form 2. to understand and produce simple logic diagrams.
Today’s Agenda 1.Research Paper –Rough draft due Mon, Feb. 11 –Peer edit session on Wed, Feb. 13 –Final version due Wed, Feb. 20 –Oral presentation Tues,
EE2420 – Digital Logic Summer II 2013 Hassan Salamy Ingram School of Engineering Texas State University Set 4: Other Gates.
Basic Logic Operations and Standard Logic Gates (Lecture #1) ECE 331 – Digital System Design.
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.
Chapter 33 Basic Logic Gates. 2 Objectives –After completing this chapter, the student should be able to: Identify and explain the function of the basic.
D75P 34R - HNC Computer Architecture Week 6 Boolean Logic © C Nyssen/Aberdeen College 2004 All images © C Nyssen /Aberdeen College unless otherwise stated.
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
Logic Gates. The Inverter The inverter (NOT circuit) performs the operation called inversion or complementation. Standard logic symbols: 1 1 input output.
Boolean and Sequential Logic Last week – Basic Gates AND OR NOT NOR XOR NAND.
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.
Logic Gates and Boolean Algebra Introduction to Logic II.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
Logic gates.
Unit 1 Logical operators.
Activity 1 5 minutes Grab a whiteboard and pen, come to the front and work out the Truth Table for the following circuit: R A B C Q.
Basics of Logic gates - Part 1
Component 1 Logical operators.
Eng. Mai Z. Alyazji October, 2016
LOGIc gates Lesson Objectives: George Boole, ( )
Logic Gates.
Logic What is logic? Logic is the name given to an electronic component which will monitor a number of inputs and give an output depending on them Input.
ECE 331 – Digital System Design
Logic Gates.
Logic Gates Benchmark Companies Inc PO Box Aurora CO
LOGIc gates Objectives: George Boole, ( )
Basic Logical Operations (Fascinating)
Digital Signals Digital Signals have two basic states:
Basic Digital Logic Basic Gates
Agenda – 2/12/18 Questions? Readings: CSI 4, P
3.4 Computer systems Boolean logic Lesson 2.
Universal gates.
Digital Logic & Design Lecture 05
For OCR GCSE Computing Unit 1 - Theory
Logic Gates.
Boolean Algebra.
Logic Gates.
Digital Logic.
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.
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.
Logic Gates.
Binary Logic.
Chapter 4 Gates and Circuits.
Chapter 2 Gates.
Objectives Construct truth tables for the following logic gates:
XOR Function Logic Symbol  Description  Truth Table 
Truth tables Mrs. Palmer.
Department of Electronics
Digital Logic Design Basics Combinational Circuits Sequential Circuits.
Eng. Ahmed M Bader El-Din October, 2018
Introduction to Logic diagrams and truth tables
Introduction to Logic diagrams and truth tables
What are Logic Gates?.
Programming Techniques :: Logic & Truth Tables
Agenda Lecture Content: Combinatorial Circuits Boolean Algebras
Presentation transcript:

D75P 34R - HNC Computer Architecture Week 8 More Boolean Logic © C Nyssen/Aberdeen College 2004 All images © Focus Clipart, used with permission except Racecar, burglar, wedding © Microsoft Prepared 24/11/04

We looked already at Boolean Logic, which is of great importance to how computers manipulate data. Boolean logic is essentially very simple. You may have already used Boolean Search Expressions when using Internet Search Engines. When used in constructing a search expression, it can be very useful in specifying exactly what information you want.

When using AND in this search expression, results retrieved will contain both dog and cat information. The results will not include those documents containing only dog or cat information. In the diagram the documents retrieved by using this search expression are contained within the green area. Boolean 'AND' This is expressed as ‘dogs AND cats' in a search.

A scientist wishes to test the old adage “fighting like cat and dog”. To do this, he needs to find some people to interview who keep both cats and dogs. People who don’t have a pet at all, or have only a cat or only a dog, are useless for the purposes of his experiments.

We can show the logic in a diagram like this… Cat owner? Dog owner? Possible experimental subject? Cat? Dog?Suitable subject? Remember the Truth Table for an AND gate works like this…

Such a search will not merely retrieve documents containing only dog information or only cat information. In the diagram the documents retrieved by using this search expression are contained within all the coloured areas. Boolean ‘OR' This is expressed as ‘dogs OR cats' in a search. All the results retrieved will contain either dog information, or cat information, or dog-and-cat information together.

An insurance company have introduced a new policy for Pet Owners. They have purchased a mailing list with information about peoples households; now they want to send a mail shot to potential customers. The insurance company needs to target those people who have a cat, or a dog, or both, but there is no point sending a mailshot to people who don’t keep a pet at all.

We can show the logic in a diagram like this… Cat owner? Dog owner? Try and sell a policy? Cat? Dog?Hard Sell? Remember the Truth Table for an OR gate works like this…

When using NOT in this search expression, results will contain only dogs. The NOT operator will exclude cats completely and thus any dog-and-cat information will be excluded also. In this diagram the dog related information is contained within the blue area. Boolean ‘NOT’ This is expressed as ‘dogs NOT cats' in a search.

Pat is a Postman delivering mail to peoples houses......but unfortunately he just does not get along with dogs! So he only visits homes that have no dogs in residence…

We can show the logic in a diagram like this… Dog in residence?Deliver mail? Dog present? Deliver mail? Remember the Truth Table for a NOT gate works like this…

Boolean ‘XOR’ This is expressed as ‘dogs XOR cats' in a search. It must include one, or the other, but not both, and not none!

A Vet’s surgery have to send out annual reminders for all cats and dogs to come in for their booster shots. They need to go through all their patient’s files and send out letters to all the dog owners and all the cat owners… …but not the owners of canaries, goldfish or hamsters…. … and owners with dogs AND cats would already have been counted!

We can show the logic in a diagram like this… Cat owner? Send reminder? Remember the Truth Table for an XOR gate works like this… Dog owner? Reminder? Dog? Cat?

Try to draw the Logic Circuit for the following scenario. To ride the go-karts at the fairground, you have to be 16 or over, OR be 12 or over AND accompanied by a responsible adult ? Adult present? => 16? Allowed on the go- karts?

12-15? Adult present? => 16? Allowed on the go- karts? Complete the Truth Table.

A burglar alarm will go off if it has been set, AND the door is opened without the correct code number, OR someone breaks the infra-red beam by climbing in the window. Break beam? Open door without code? Alarm set? Alarm goes off?

Break beam? Open door without code? Alarm set? Alarm goes off? Complete the Truth Table.

To be legally married in Scotland, both parties must be 16 or over, not already married, and of different sexes. Person #2 married? Person #1 married? Person #2 => 16? Person #1 => 16? Person #1 is a man? Person #2 is a man? Marriage is legal?

There are many different ways to depict the circuit for this scenario. This is just one of them! Person 1 man? Person 2 man? Person 1 =>16? Person 2 =>16? Person 1 married? Person 2 Married? Outcome? Complete the Truth Table.

Your exam question will typically consist of a pair of binary numbers, and you will be asked to perform logical operations with them AND OR XOR NAND NOR XNOR

Another one? AND OR XOR NAND NOR XNOR

Summary  NOT (inverter) reverses any input.  AND requires ALL inputs to be TRUE for a TRUE output.  OR requires only ONE input to be TRUE for a TRUE output.  XOR requires differences in the inputs for a TRUE output.  NAND is equivalent to an AND immediately followed by a NOT.  NOR is equivalent to an OR immediately followed by a NOT.  XNOR is equivalent to an XOR immediately followed by a NOT.