CSIS-110 Introduction to Computer Science

Slides:



Advertisements
Similar presentations
Chapter 4 Gates and Circuits.
Advertisements

Chapter 4 Gates and Circuits Nell Dale • John Lewis.
Chapter 4 Gates and Circuits.
Gates and Circuits Nell Dale & John Lewis (adaptation by Erin Chambers and Michael Goldwasser)
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Chapter 4 Gates and Circuits.
Chapter 4 Gates and Circuits.
9/19/06 Hofstra University – Overview of Computer Science, CSC005 1 Chapter 4 Gates and Circuits.
9/19/06 Hofstra University – Overview of Computer Science, CSC005 1 Chapter 4 Gates and Circuits.
Chapter 4 Logic Gates and Boolean Algebra. Introduction Logic gates are the actual physical implementations of the logical operators. These gates form.
Boolean Algebra and Logic Gates1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Gates CS105. Electrical Signals Transmission of data Any electrical signal has a level of voltage – Interpretation of 1s and 0s Generally speaking: –
Lecture 3. Boolean Algebra, 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.
Lecture 3. Error Detection and Correction, Logic Gates Prof. Sin-Min Lee Department of Computer Science 2x.
CPSC 171 Introduction to Computer Science Boolean Logic, Gates, & Circuits.
Chapter 4 Gates and Circuits. Integrated Circuits aka CHIPS What’s in this thing???? 4–2.
Chapter 4 Gates and Circuits.
Introduction to Computer Science David Goldschmidt, Ph.D. Computer Science The College of Saint Rose CIS September 6, 2007.
Lecture 17: Digital Design Today’s topic –Intro to Boolean functions Reminders –HW 4 due Wednesday 10/8/2014 (extended) –HW 5 due Wednesday 10/15/2014.
DeMorgan Theorem, Computer Simulation Exercises
Digital Logic. 4 Why is 32-bit or 64-bit significant in terms of speed, efficiency? 4 Difference between OR and XOR 4 What is a mux for? PLA 4 Two kinds.
Apr. 3, 2000Systems Architecture I1 Systems Architecture I (CS ) Lecture 3: Review of Digital Circuits and Logic Design Jeremy R. Johnson Mon. Apr.
Computer Science 210 Computer Organization Introduction to Boolean Algebra.
Boolean Algebra and Computer Logic Mathematical Structures for Computer Science Chapter 7.1 – 7.2 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Boolean.
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /05/2013 Lecture 4: Basics of Logic Design Instructor: Ashraf Yaseen DEPARTMENT OF MATH & COMPUTER.
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.
Steering Gates, Timing Diagrams & Combinational Logic Technician Series Steering 1.1 ©Paul Godin Created Jan 2014.
Logic Gates M. AL-Towaileb1. Introduction Boolean algebra is used to model the circuitry of electronic devices. Each input and each output of such a device.
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Yaohang Li.
Digital electronics 4–1 Gates and Circuits SANJAYBHAI RAJGURU COLLEGE OF ENGG.
L OGIC G ATES Computer Organization – week 3. W HAT ’ S ALU? 1. ALU stands for: Arithmetic Logic Unit 2. ALU is a digital circuit that performs Arithmetic.
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patternson and Hennessy Text.
Week 1: Introduction and Logic gates IT3002 – Computer Architecture
Computer Architecture & Operations I
Boolean Algebra & Logic Gates
Basics of Logic gates - Part 2
Basics of Logic gates - Part 1
Digital Logic.
Dr.Ahmed Bayoumi Dr.Shady Elmashad
Morgan Kaufmann Publishers
Eng. Mai Z. Alyazji October, 2016
Logic Gates and Boolean Algebra
Chapter 3 Notes – Part II Review Questions
Computer Science 210 Computer Organization
CSIS-110 Introduction to Computer Science
CHAPTER 2 Boolean Algebra
Boolean Algebra.
CHAPTER 3 SETS AND BOOLEAN ALGEBRA
Jeremy R. Johnson Wed. Sept. 29, 1999
Fundamentals & Ethics of Information Systems IS 201
Chapter 4 Gates and Circuits.
CS140 Lecture 02a: The Machinery of Computation: Circuits and Gates
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Computer Science 210 Computer Organization
Jeremy R. Johnson Anatole D. Ruslanov William M. Mongan
Boolean Algebra & Logic Circuits
Agenda – 2/12/18 Questions? Readings: CSI 4, P
Combinatorial Logic Circuit
Week 7: Gates and Circuits: PART II
CS Chapter 3 (3A and ) Part 3 of 8
Boolean Algebra.
Logic Gates.
Chapter 4 Gates and Circuits.
Laws & Rules of Boolean Algebra
Agenda Lecture Content: Combinatorial Circuits Boolean Algebras
Presentation transcript:

CSIS-110 Introduction to Computer Science Dr. Meg Fryling “Dr. Meg” Fall 2012 @SienaDrMeg #csis110

Lecture Nine Agenda Questions? Assignments CSI Chapter 5 - Gates and Circuits Homework 2 – Part I Lab 4

Assignments Readings: See course scheduled on syllabus Homework 2 The textbook readings are going to help you with homeworks AND labs Homework 2 Due Wednesday, October 10th at BEGINNING of class Coming to class late does NOT extend your due date/time Lab 3 Due at START of lab 4 Coming to lab late does NOT extend your due date/time

What do I like about this?

Chapter 5 Gates and Circuits

DeMorgan's Law 9/26/12 Worksheet - Question 1c Misspoke when I said (B OR C)' is the same as (B' OR C'). NOT TRUE! If you try a few examples you'll see it doesn't work! Should have said (B OR C)' is the same as (B' AND C'). This is known as DeMorgan's Law. It is also true that (B AND C)' is the same as (B' OR C')! See last slide from Wednesday’s lecture on properties of Boolean algebra. So the answer for 1c is (A’ AND B) OR (B OR C)’ (A’ AND B) OR (B’ AND C’) DeMorgan's Law I misspoke in class today when I said (B OR C)' is the same as (B' OR C'). If you try a few examples you'll see it doesn't work! I should have said (B OR C)' is the same as (B' AND C'). This is known as DeMorgan's Law. It is also true that (B AND C)' is the same as (B' OR C')! See last slide from today's lecture on properties of Boolean algebra.

Gates with More Inputs Gates can be designed to accept three or more input values A three-input AND gate, for example, produces an output of 1 only if all input values are 1 Figure 4.7 Various representations of a three-input AND gate

Constructing Gates Transistor is a device that acts either as a wire that conducts electricity or as a resistor that blocks the flow of electricity, depending on the voltage level of an input signal – It’s a switch!! It is made of a semiconductor material, which is neither a particularly good conductor of electricity, such as copper, nor a particularly good insulator, such as rubber

Circuits Combinational circuit The input values explicitly determine the output Sequential circuit The output is a function of the input values and the existing state of the circuit We describe the circuit operations using Boolean expressions Logic diagrams Truth tables Are you surprised?

Example 1 Consider the circuit diagram below: What is the corresponding Boolean expression? Homework 2: Part I – A

Example 1 - Truth Table Boolean Expression: (AB) + (A + B) What is the corresponding truth table? A B AB A+B (AB)+(A+B)

Example 1 - Truth Table Boolean Expression: (AB) + (A + B) A B AB A+B 1

Combinational Circuits Gates are combined into circuits by using the output of one gate as the input for another What is the Boolean expression for this circuit? What is the truth table for this circuit? (AB + AC ) Question 7

Truth Table Boolean expression is (AB + AC) A B C AB AC AB+AC

Combinational Circuits Three inputs require eight rows to describe all possible input combinations (2n, where n is the number of inputs) This same circuit using a Boolean expression is (AB + AC)

Example 2 Consider the following Boolean expression: A’B+(B+C)’ Draw a circuit diagram CSI – Chapter 5, Exercise 57 Homework 2: Part I – A

Example 2 - Circuit

Example 2 - Truth Table Boolean expression: A’B+(B+C)’ Draw the corresponding truth table A B C A’ A’B (B+C) (B+C)’ A’B+(B+C)’ 1

Example 2 - Truth Table A B C A’ A’B (B+C) (B+C)’ A’B+(B+C)’ 1

Now let’s go the other way Consider the following Boolean expression: A(B + C) What does the circuit look like? What does the truth table look like? Question 8

Circuit A(B + C)

Truth Table Boolean expression is (AB + AC) A B C B+C A(B+C)

Truth Table Compare this truth table with the previous question. Compare this truth table with the previous question. Notice anything?

Wow, it produces the same results! … do they both behave the same way? … if so, which is better?

Combinational Circuits We have therefore just demonstrated circuit equivalence That is, both circuits produce the exact same output for each input value combination Boolean algebra allows us to apply provable mathematical principles to help us design logical circuits A(B + C) = AB + BC (distributive law) so circuits must be equivalent

Properties of Boolean Algebra

Truth Table -> Circuit Design Sum-of-Products Algorithm Step 1. Start with a truth table Step 2. Identify rows with a 1 output, and make a product (AND) of the input variables Step 3. Negate each variable that is zero in its row Step 4: Create the Boolean expression by creating their sum (OR) Step 5. Produce the circuit diagram! Homework 2: Part I – D & E Homework 2: Part I – D & E

Sum-of-Products Algorithm Step 1. Start with a truth table Step 2. Identify rows with a 1 output, and make a product (AND) of the input variables A B output 1

Sum-of-Products Algorithm Step 3. Negate each variable that is zero in its row A B output 1 AB

Sum-of-Products Algorithm Step 4: Create the Boolean expression by creating their sum (OR) A B output 1 A’B’ A’B AB

Sum-of-Products Algorithm A’B’ + A’B + AB Step 5. Produce the corresponding circuit diagram!