James Tam Basic Logical Operations (Fascinating) In this section you will learn some basic logical operations and how to evaluate expressions Image from.

Slides:



Advertisements
Similar presentations
Truth Tables and Logic Gates. What are Logic Gates? Logic gates are components used in making logic circuits. Each gate has one or more inputs and produces.
Advertisements

DAT2343 Basic Logic Gates © Alan T. Pinck / Algonquin College; 2003.
Logic Gates.
Computer Science 210 Computer Organization Introduction to Logic Circuits.
Basic Logic Gate Sayed Mahbub Hasan Amiri Dhaka Residential Model College.
1 Computer Programming Boolean Logic Copyright © Texas Education Agency, 2013.
Logic You will learn three common logical operations that will be applied in much of the course (spreadsheets, databases, web searches and both programming.
Basic Logical Operations (fascinating)
Basic Logical Operations (Fascinating)
Module 7 Hardware. Introduction Switches are the basic blocks of computer hardware. We build increasingly complex hardware from these simple switches.
James Tam Basic Logical Operations (Fascinating) In this section you will learn some basic logical operations and how to evaluate expressions Image from.
James Tam Basic Logical Operations (Fascinating) In this section you will learn what are the basic logical operations and how to evaluate different logical.
James Tam AND OR NOT NAND NOR XOR Basic logic operations (fascinating)
James Tam Basic Logical Operations (Fascinating) In this section you will learn what are the basic logical operations and how to evaluate different expressions.
In a not gate, if the input is on(1) the output is off (0) and vice versa.
Logic You will learn three common logical operations that will be applied in much of the course (spreadsheets, databases, web searches and both programming.
Logic Gate A logic gate is an electronic circuit which makes logic decisions. It has one output and one or more inputs. The output signal appears only.
3. DIGITAL ELECTRONICS..
AND, OR and NOT. The AND gate needs to be both on, So number wise both 1. So then you will get a 1 as you can see in the last image on the right, If 1.
Computer Science 101 The Boolean System. George Boole British mathematician ( ) Boolean algebra –Logic –Set theory –Circuits –Conditions in if.
CS1Q Computer Systems Lecture 5 Simon Gay. Lecture 5CS1Q Computer Systems - Simon Gay2 Where we are Global computing: the Internet Networks and distributed.
CPSC 171 Introduction to Computer Science Boolean Logic, Gates, & Circuits.
James Tam Number systems and logic What is the decimal based number system How does the binary number system work Converting between decimal and binary.
Introduction to Digital Logic and Circuits EE 101, Fall 2015 University of Kentucky.
 In studying digital integrated circuits, one must start with the simplest group of circuit, the SSIs or Small Scale Integrated Circuits. Since these.
Digital Systems I EEC 180A Lecture 4 Bevan M. Baas.
Logic Disjunction A disjunction is a compound statement formed by combining two simple sentences using the word “OR”. A disjunction is true when at.
1 Week 2: Variables and Assignment Statements READING: 1.4 – 1.6 EECS Introduction to Computing for the Physical Sciences.
Islamic University Of Gaza, Nael Aburas Data Storage Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas
CSCI-100 Introduction to Computing Hardware Design Part I.
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.
Linear Algebra. Circuits The circuits in computers and other input devices have inputs, each of which is either a 0 or 1, the output is also 0s and 1s.
1 Ethics of Computing MONT 113G, Spring 2012 Session 1 Digital Circuits, binary Numbers Course webpage:
Chapter-3: BOOLEAN ALGEBRA & LOGIC GATES Analysis and logical design.
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,
Boolean and Sequential Logic Last week – Basic Gates AND OR NOT NOR XOR NAND.
AND Gate Inputs Output Input A (Switch) Input B (Switch) Output Y (Lamp) 0 (Open) 0 (OFF) A B Lamp.
Circuit Synthesis A logic function can be represented in several different forms:  Truth table representation  Boolean equation  Circuit schematic 
© 2016 AQA. Created by Teachit for AQA Boolean logic Lesson 3.
CS 111 – Aug. 27 Section 1.1 –Binary data and operations –Logic gates –Flip-flop –A binary shorthand: hexadecimal Commitment for next day: –Please read.
Logic gates.
Unit 1 Logical operators.
GCSE OCR Computing A451 Binary logic Computing hardware 6.
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.
Logic You will learn three common logical operations that will be applied in much of the course (spreadsheets, databases, web searches and both programming.
Component 1 Logical operators.
Everything is a number Everything in a computer memory and on storages is a number. Number  Number Characters  Number by ASCII code Sounds  Number.
Logic Gates.
Computer Science 210 Computer Organization
Logic You will learn three common logical operations that will be applied in much of the course (spreadsheets, databases, web searches and both programming.
Logic Gates.
Logic Gates Benchmark Companies Inc PO Box Aurora CO
CSCI-100 Introduction to Computing
Chapter 2.3 Binary Logic.
Basic Logical Operations (Fascinating)
Digital Signals Digital Signals have two basic states:
Computer Science 210 Computer Organization
Teaching Computing to GCSE
Logic You will learn three common logical operations that will be applied in much of the course (spreadsheets, databases, web searches and both programming.
Thursday, 22 November 2018 Logic Gates
Boolean Operations 1 and 1 = 1.
3.4 Computer systems Boolean logic Lesson 2.
Logic You will learn three common logical operations that will be applied in much of the course (spreadsheets, databases, web searches and both programming.
Logic Gates.
Gates Type AND denoted by X.Y OR denoted by X + Y NOR denoted by X + Y
GCSE Computer Science – Logic Gates & Boolean Expressions
Binary Logic.
Objectives Construct truth tables for the following logic gates:
Truth tables Mrs. Palmer.
Topics discussed in this section:
Presentation transcript:

James Tam Basic Logical Operations (Fascinating) In this section you will learn some basic logical operations and how to evaluate expressions Image from Star Trek © Paramount

James Tam Logic Refers to statements that are true or false: = = 4 The number 5 lol! Logic operations pertinent to this course -AND -OR -NOT

James Tam Logic Applied In Software The use of logic is common in some computer programs

James Tam Logical AND Search for all documents that contain the name ‘Bruce’ AND the name ‘Lee’ Pages must have both words to show up as a search result

James Tam Logical AND Truth table XYX AND Y False TrueFalse TrueFalse True

James Tam Three Input AND Truth table XYZX AND Y AND Z False TrueFalse TrueFalse True False TrueFalse TrueFalseTrueFalse True False True

James Tam Evaluating Logical AND Expressions True AND True AND True False AND True AND True True AND True AND True AND True True AND True AND True AND False False AND True AND False AND True AND True AND False AND False AND True AND True

James Tam Hardware Representation Of AND (“AND Gate”) Wire 1Wire 2Output Off OnOff OnOff On AND gate Wire 1 Wire 2 Output wire

James Tam Tracing Hardware Circuits: AND On Off Final output?

James Tam Logical OR Search for all documents that contain the name ‘Bruce’ OR the name ‘Lee’ Pages can have either word and show up as a search result

James Tam Logical OR Truth table XYX OR Y False True FalseTrue

James Tam Three Input OR Truth table XYZX OR Y OR Z False True FalseTrueFalseTrue FalseTrue False True FalseTrue FalseTrue

James Tam Evaluating Logical OR Expressions True OR True OR True False OR True OR True False OR False OR False OR True False OR False OR False OR False False OR True OR False OR True or True OR False OR False OR True OR True

James Tam Hardware Representation Of OR (“OR Gate”) Wire 1Wire 2Output Off On OffOn OR gate Wire 1 Wire 2 Output wire

James Tam Tracing Hardware Circuits: OR Final output? On Off On Off

James Tam Logical NOT Search for all documents that contain the name ‘James Tam’ NOT including those from the University of Calgary (“ucalgary”)

James Tam Logical NOT Truth table XNot X FalseTrue False

James Tam Hardware Representation Of NOT (“NOT Gate”) Input wireOutput wire OffOn Off NOT gate Input wire Output wire

James Tam Evaluating More Complex Expressions Expressions inside brackets get evaluated first -True AND (False OR True) Evaluate NOT before AND, OR -NOT True OR False Otherwise evaluate logical expressions left to right. -True OR False AND False OR True

James Tam Evaluating More Complex Expressions True OR True AND True NOT (False OR True) OR True (False AND False) OR (False AND True) False OR (False OR True) AND False NOT NOT NOT NOT True NOT NOT NOT NOT False NOT NOT NOT False

James Tam Tracing A More Complex Combined Circuit Final output? Off On Off

James Tam Reasons For Learning About Logic Software perspective: -Logic is used in database (e.g., web) searches Hardware perspective – The computer is built using logic circuits

James Tam You Should Now Know The different types of logical operations that a computer may perform: -AND -OR -NOT The role of logic when using software How logic gates form an important part in the hardware of computers How to trace the output or outcome of logical expressions and logic circuits