Computer Systems 1 Fundamentals of Computing

Slides:



Advertisements
Similar presentations
Logic Gates.
Advertisements

Logic Gates.
CT455: Computer Organization Logic gate
Computer Science 210 Computer Organization Introduction to Logic Circuits.
Programmable Logic Controllers.
Computer Systems – Logic Gates Introduce the basic logic gates Introduce truth tables Introduce Boolean algebra (dont panic!) Examples of combining gates.
IEEE’s Hands on Practical Electronics (HOPE) Lesson 9: CMOS, Digital Logic.
Boolean Algebra and Logic Gate
Logic Gates Circuits to manipulate 0’s and 1’s. 0’s and 1’s used for numbers Also to make decisions within the computer. In that context, 1 corresponds.
GK-12 Student designed project (AP physics) Digital logic and Boolean algebra exercise. IC logic gates brought from Stevens were used in making simple.
3. DIGITAL ELECTRONICS..
Logical Circuit Design Week 5: Combinational Logic Circuits Mentor Hamiti, MSc Office ,
Computer Science 101 The Boolean System. George Boole British mathematician ( ) Boolean algebra –Logic –Set theory –Circuits –Conditions in if.
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.
Fall 2012: FCM 708 Foundation I Lecture 2 Prof. Shamik Sengupta
Computer Science 210 Computer Organization Introduction to Boolean Algebra.
EE2420 – Digital Logic Summer II 2013 Hassan Salamy Ingram School of Engineering Texas State University Set 4: Other 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.
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.
A-Level Computing#BristolMet Session Objectives#6 MUST understand and produce simple logic diagrams using the operations NOT, AND and OR SHOULD explain.
1 EG 32 Digital Electronics Thought for the day You learn from your mistakes..... So make as many as you can and you will eventually know everything.
COMPUTER ARCHITECTURE TRUTH TABLES AND LOGIC GATES.
Chapter-3: BOOLEAN ALGEBRA & LOGIC GATES Analysis and logical design.
Chapter 4 Fundamentals of Computer Logic 1 Chapter 4: Fundamental of Computer Logic - IE337.
ECE 171 Digital Circuits Chapter 4 Boolean Algebra Herbert G. Mayer, PSU Status 2/1/2016 Copied with Permission from prof. Mark PSU ECE.
Appendix B: Digital Logic
Logic Simplification-Using Boolean Laws Logic Design Laboratory EE 2121 Lectures By Manesh T EE2121-In Charge
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.
Mu.com.lec 9. Overview Gates, latches, memories and other logic components are used to design computer systems and their subsystems Good understanding.
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.
Boolean Algebra & Logic Gates
CPS120 Introduction to Computer Science
Unit 1 Logical operators.
Lecture 4 Topics Boolean Algebra Huntington’s Postulates Truth Tables
Morgan Kaufmann Publishers
Department of Preparatory Year, Umm Al Qura University
Eng. Mai Z. Alyazji October, 2016
Computer Science 210 Computer Organization
Digital Technology.
Logic Gates and Boolean Algebra
Logic Gates.
Logic Gates Benchmark Companies Inc PO Box Aurora CO
Digital Logic.
CHAPTER 3 SETS AND BOOLEAN ALGEBRA
Digital Signals Digital Signals have two basic states:
Basic Digital Logic Basic Gates
Computer Science 210 Computer Organization
Boolean Algebra & Logic Circuits
Lecture 4 Topics Boolean Algebra Huntington’s Postulates Truth Tables
Logic Gates.
Computer Science 210 Computer Organization
Dr. Clincy Professor of CS
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.
Gates Type AND denoted by X.Y OR denoted by X + Y NOR denoted by X + Y
GCSE Computer Science – Logic Gates & Boolean Expressions
Logic Gates.
Chapter 4 Gates and Circuits.
Truth tables Mrs. Palmer.
Boolean Algebra and Gate Networks
Eng. Ahmed M Bader El-Din October, 2018
Agenda Lecture Content: Combinatorial Circuits Boolean Algebras
Presentation transcript:

Computer Systems 1 Fundamentals of Computing Computer Logic

CS1: Week 18 What’s Logic? Truth Tables Simple Logic Gates Simple Logic Circuits Other Logic Gates Other Logic Circuits Computer Systems 1 (2004-2005)

What’s Logic? “The grand aim of all science is to cover the greatest number of empirical facts by logical deduction from the smallest number of hypotheses or axioms.” Albert Einstein (1879 - 1955) “Against logic there is no armor like ignorance.” Laurence J. Peter (1919 - 1988) “A page of history is worth a pound of logic.” Oliver Wendell Holmes Jr. (1841 - 1935) “Logic is like the sword--those who appeal to it shall perish by it.” Samuel Butler (1835 - 1902) “Somebody who thinks logically is a nice contrast to the real world.” The Law of Thumb “Insanity is often the logic of an accurate mind overtaxed.” Oliver Wendell Holmes (1809 - 1894) Computer Systems 1 (2004-2005)

It’s Logical, Captain... Logic is concerned with conditions Conditions are either achieved or not achieved There are two states used within logic: True False This could also be thought on as: ON and OFF 1 and 0 YES and NO Computer Systems 1 (2004-2005)

It’s Logical, Captain... Logic is used in a variety of situations, most importantly: Real life situations Inside the computer To perform logical and arithmetic functions Real life logical situations: There’s a buzzer in your car that sounds when the headlights are on and the door is open The fire alarm installed in your home will go off if it senses heat or smoke If I’m not tired then I will go to the pub tonight Computer Systems 1 (2004-2005)

Logic Gates Each logic gate has it’s own features: Symbol Boolean Algebraic Expression Truth Table Gates can be used to build logic circuits Nothing to do with Bill GATES Even more thankfully, nothing to do with Gareth GATES Each gate has a number of inputs and outputs Usually multiple inputs and ONE output Circuits can be created to perform situation testing and produce and output Computer Systems 1 (2004-2005)

Truth Tables Truth tables are used to represent the functionality of a logic gate or circuit Truth tables are constructed by analysing all possible combinations of values that can be sent to a logic gate or circuit All possible outputs are then calculated Truth tables allow us to show the functionality of a logic gate or circuit We can also derive expressions and simplify complex circuits by analysing the truth tables More on that next week Computer Systems 1 (2004-2005)

Boolean Algebra Named after George Boole English Mathematician Provides a method to express functions and transforms using logical variables Commonly letters of the alphabet A, B, D, X, Y, Z, etc. E.g.- X + Y = Z Logic gates and circuits work on the principles of Boolean logic In the computer TRUE or FALSE is represented by a high or low voltage 1 or 0 Computer Systems 1 (2004-2005)

AND Gate Two or more inputs All inputs must be true to produce a true output E.g.- A AND B must be true All other combinations between inputs result in a false output Boolean expression for AND gate with 2 inputs (X AND Y): X•Y Computer Systems 1 (2004-2005)

OR Gate Two or more inputs At least one input must be true to produce a true output E.g.- A OR B must be true Both inputs being true result in a true output Boolean expression for OR gate with 2 inputs (X OR Y): X+Y Computer Systems 1 (2004-2005)

NOT Gate Usually only one input The value of the input is inverted TRUE becomes FALSE FALSE becomes TRUE E.g.- A is NOT true/false Boolean expression for OR gate with 1 input (X): X Sometimes ~X Computer Systems 1 (2004-2005)

Simple Logic Circuits Circuits comprise of one or more logic gates Gates are joined together Usually the process flow moves left to right Truth tables can be constructed for circuits Helped by deriving Boolean algebra expressions for gates and the output of the circuit Circuits are used to construct useful logical processes The computer (CPU) is a complex logic circuit Computer Systems 1 (2004-2005)

Simple Logic Circuits What’s the truth table? E.g.- Computer Systems 1 (2004-2005)

Simple Logic Circuits What’s the truth table? E.g.- OUTPUT= A+B + A•B Computer Systems 1 (2004-2005)

NAND Gate NAND Two or more inputs NOT AND Two or more inputs If all inputs are true then output is false (0) All other combinations between inputs result in a true output Boolean expression for NAND gate with 2 inputs (X NAND Y): X•Y Computer Systems 1 (2004-2005)

NOR Gate NOR Two or more inputs NOT OR Two or more inputs At least one input must be true to produce a false (0) output If both inputs are false then output becomes true Boolean expression for NOR gate with 2 inputs (X NOR Y): X+Y Computer Systems 1 (2004-2005)

XOR Gate XOR Two or more inputs Exclusive OR Sometimes EOR Two or more inputs Inputs must be different to produce a true output Both inputs being true or false result in a false output Boolean expression for XOR gate with 2 inputs (X XOR Y): X•Y + X•Y Computer Systems 1 (2004-2005)

XNOR Gate XNOR Two or more inputs Exclusive NOR Two or more inputs One input must be true to produce a false output and both inputs must be different Both inputs being true or false result in a true output Boolean expression for XNOR gate with 2 inputs (X XNOR Y): X•Y + X•Y Computer Systems 1 (2004-2005)

Other Logic Circuits Simplify last circuit using NOR gate Becomes: Computer Systems 1 (2004-2005)

Other Logic Circuits E.g.- OUTPUT= X•Y + (Y•Z + Y•Z) X Y Z Computer Systems 1 (2004-2005)

Other Logic Circuits X Y Z E.g.- Computer Systems 1 (2004-2005)

Do you know anything now? What’s Logic? Conditions Truth Tables Simple Logic Gates AND OR NOT Simple Logic Circuits Other Logic Gates NAND NOR XOR XNOR Other Logic Circuits Computer Systems 1 (2004-2005)