Logic Circuits Situations to explain states What is a logic Gate

Slides:



Advertisements
Similar presentations
Date of Birth Design Problem
Advertisements

Boolean Algebra Variables: only 2 values (0,1)
Logic Gate Objects This document contains various images created by Andrew C. M. Rodger, 4 October Tools used:LibreOffice Impress 3 Microsoft Powerpoint.
Lab 8 : Multiplexer and Demultiplexer Systems:
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.
Lab02 :Logic Gate Fundamentals:
Introduction to Computer Engineering ECE/CS 252, Fall 2010 Prof. Mikko Lipasti Department of Electrical and Computer Engineering University of Wisconsin.
Digital Systems: Logic Gates and Boolean Algebra Wen-Hung Liao, Ph.D.
ENGIN112 L7: More Logic Functions September 17, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 7 More Logic Functions: NAND, NOR,
Digital logic gates.
Department of Computer and Information Science, School of Science, IUPUI CSCI 240 Digital Logic.
Lecture 6 More Logic Functions: NAND, NOR, XOR and XNOR
CS 151 Digital Systems Design Lecture 5 Boolean Algebra.
CHAPTER 2 LOGIC GATES.
Logic Gates.
Logic Gates Some Most All Learning Objective
GCSE Computing#BristolMet Session Objectives#5 MUST explain why data is represented in computer systems in binary SHOULD understand and produce simple.
©2010 Akula LLC, Jeremy R. Hertzberg, BS CMPE Computer Technology Transistor to computer gates
ELECTROVATE Anurag Dwivedi Nikhil Gupta Rudra Pratap Suman.
Logic Gates & Circuits. AND Gate Input AInput BOutput X AND Logic Gate AND Truth Table X = A. B AND Boolean Expression.
Module 3 Combinational and Sequential Logic Circuit By: Cesar Mendoza.
Lesson Objectives Understand and produce simple logic diagrams using the operation NOT, AND and OR Produce a truth table from a given logic diagram.
Digital Logic Circuits
topics Logic gates Gates types Universal gates
Computer Logic & Logic Gates Justin Champion. IITCT Contents Introduction to Logic Look at the different Logic Gates Summary.
EMS1EP Lecture 2 Electronic Circuits Dr. Robert Ross.
CS 121 Digital Logic Design
CS1104 – Computer Organization
Min terms and logic expression
Sahar Mosleh PageCalifornia State University San Marcos 1 Introductory Concepts This section of the course introduces the concept of digital circuits and.
08/07/041 CSE-221 Digital Logic Design (DLD) Lecture-8:
Section 10.3 Logic Gates.
In a not gate, if the input is on(1) the output is off (0) and vice versa.
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.
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.
Boolean math is the cornerstone of digital communications, whether you are talking computers, PLC, or Cisco Routers on the Internet. ©Emil Decker, 2009.
Computer Science 1000 Digital Circuits. Digital Information computers store and process information using binary as we’ve seen, binary affords us similar.
Think about the following expression If the number entered is greater than 15 but less than 25 or the number is 100 and the letter chosen is after p but.
CS1Q Computer Systems Lecture 8
Digital Electronics Truth tables for several gates Aberdeen Grammar School.
Week 6: Gates and Circuits: PART I READING: Chapter 4.
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.
CS1Q Computer Systems Lecture 8
AND Gate Inputs Output Input A (Switch) Input B (Switch) Output Y (Lamp) 0 (Open) 0 (OFF) A B Lamp.
CO5023 Building Circuits from Truth Tables. Build the following… Let’s say we want a circuit which acts as described by the following truth table: We.
Activity 1 Grab a whiteboard and pen, come to the front and work out the Truth Table for the following circuit: 5 minutes R A B C Q.
Digital electronics 4–1 Gates and Circuits SANJAYBHAI RAJGURU COLLEGE OF ENGG.
 A transistor is the basic building block of electronic components.  The average computer may have millions of them within its circuits.  Essentially,
Author : Khairi LOGIC GATES Logic gate Input Output  Logic gates are electronic switches with one or more input but only one output ogic gates are commonly.
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.
Logic Gates and Truth Tables
Logic Gates Binary Day 3 PEOPLE 2016.
Component 1 Logical operators.
Logic Gates.
Logic Gates Practical Objective: to develop an understanding of logic circuits and truth tables.
CSCI-100 Introduction to Computing
Chapter 2.3 Binary Logic.
Component 1 – 2A, B, C Binary Logic
KS4 Electricity – Electronic systems
KS4 Electricity – Electronic systems
For OCR GCSE Computing Unit 1 - Theory
JC Technology Logic Gates.
KS4 Electricity – Electronic systems
GCSE Computer Science – Logic Gates & Boolean Expressions
Binary Logic.
Lecture 5 Binary Operation Boolean Logic. Binary Operations Addition Subtraction Multiplication Division.
SYEN 3330 Digital Systems Chapter 2 – Part 1 SYEN 3330 Digital Systems.
Presentation transcript:

Logic Circuits Situations to explain states What is a logic Gate What is a Truth Table The three different gates Building Truth Tables

Situation Lets say your friends have asked you to go to the cinema with them but your mum will only allow you to go if you have finished your homework and cleared up your room. In this situation we have the following states Homework done or homework not done Room cleared up and room not cleared up We know that the states will effect the output of going to the cinema or not

POSSIBLE OUTPUTS INPUTS DONE NOT DONE

Example Taking the example of above; lets say you’ve done your homework but you have not cleared up your room… what would the output be? DONE NOT DONE OUTPUT INPUTS

States So from the above example we could see that the states effect the output that we will receive. As we already know a computer can only understand binary which is 1s (on) and 0s (off) Hence logic gates are used to be able to conduct similar situations

What is a Logic Gate Logic gates are found in our computers They are electronic devices used to control the flow of data When data passes through a logic gate it changes its state, this change depends on the input Many logic gates could be joined together to form a logic circuit, the function of this circuit is more complicated than a single logic gate

A Single Logic Gate A single logic gate has the following attributes 1 or 2 inputs (if many gates are joined you could have more inputs ) 1 single output 1 input and 1 output 2 inputs and 1 output

What is a Truth Table A Truth Table is basically the table that shows all the possible inputs and the outputs of the logic gate If we take the example of the cinema once again we would have the following table Homework Cleared Up Cinema Not Done No Done Yes

Truth Tables As we know computers will not understand the truth table on the previous page… why is this? A truth table from an actual computerised logic gate would look like the following Homework Cleared Up Cinema 1

Comparing the two Truth Tables Homework Cleared Up Cinema Not Done No Done Yes Homework Cleared Up Cinema 1

Three Logic Gates We will now learn about three different logic gates We will be learning The symbol used The number of inputs Their truth tables The different outputs

The NOT Gate The symbol for the NOT gate is the following; The NOT gate can only have ONE input and ONE output A X

The NOT Gate Since computers only understand 1s and 0s there could be only two (21) possible inputs and outputs for this gate The truth table shows this Input Output A X 1

Outputs The NOT gate basically outputs the opposite of its inputs Hence if the input is 1 the output would be 0

Example A good example is a switch as it can either be on or off hence it can only have one input 1 1 1 1

The OR Gate The symbol for the OR gate is the following; The OR gate can only have TWO inputs and ONE output A X B

The OR Gate Since computers only understand 1s and 0s there could be four (22) possible inputs and outputs for this gate The truth table shows this Input Output A B X 1

Outputs The OR gate only gives an output of 1 if at least one of its inputs is 1 So if both inputs are 0 the output would be 0 but if both inputs are 1 the output would be 1

Example

The AND Gate The symbol for the AND gate is the following; The AND gate can only have TWO inputs and ONE output A X B

The OR Gate Since computers only understand 1s and 0s there could be four (22) possible inputs and outputs for this gate The truth table shows this Input Output A B X 1

Outputs The AND gate only gives an output of 1 if both inputs are 1 So if an inputs 1 and the other input is 0 the output would be 0 but if both inputs are 1 the output would be 1

Example

Building a Truth Table Lets say we want to draw a truth table from the following logic circuit A B C

Step 1 Label all the possible outputs in the logic circuit. In this case we have 3 inputs and there are 3 logic gates. Each logic gate’s output must be labeled; D F E

Step 2 Determine the possible number of combinations. In this case it’s 23=8. So all the labels (both inputs and outputs are listed down with 8 spaces underneath each label). A B C D A AND B E NOT C F D OR E

Step 3 Fill in the possible combinations underneath the original inputs. Always start from the last input (C) with alternate 0s and 1s A B C D A AND B E NOT C F D OR E 1

Step 4 The last step is to work the resulting gates A B C D A AND B E NOT C F D OR E 1