Agenda – 2/12/18 Questions? Readings: CSI 4, P

Slides:



Advertisements
Similar presentations
Chapter 4 Gates and Circuits.
Advertisements

Chapter 4 Gates and Circuits Nell Dale • John Lewis.
Chapter 4 Gates and Circuits.
Logic Gates.
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.
Functional Notation Addendum to Chapter 4. 2 Logic Notation Systems  We have seen three different, but equally powerful, notational methods for describing.
Chapter 2 Logic Circuits.
Boolean Algebra and Logic Gate
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.
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.
Quiz # 2 Chapters 4, 5, & 6.
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.
Chapter 4 Gates and Circuits. Integrated Circuits aka CHIPS What’s in this thing???? 4–2.
Chapter 4 Gates and Circuits.
1 Fundamentals of Computer Science Propositional Logic (Boolean Algebra)
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.
CPS120: Introduction to Computer Science
The Digital Logic Level
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.
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.
1 EENG 2710 Chapter 2 Algebraic Methods For The Analysis and Synthesis of Logic circuits.
Chapter-3: BOOLEAN ALGEBRA & LOGIC GATES Analysis and logical design.
BOOLEAN ALGEBRA LOGIC GATES. Introduction British mathematician George Boole( ) was successful in finding the link between logic and mathematics.
Digital electronics 4–1 Gates and Circuits SANJAYBHAI RAJGURU COLLEGE OF ENGG.
4–1. BSCS 5 th Semester Introduction Logic diagram: a graphical representation of a circuit –Each type of gate is represented by a specific graphical.
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.
4–1 Gates Let’s examine the processing of the following six types of gates NOT AND OR XOR NAND NOR Typically, logic diagrams are black and white, and the.
Week 1: Introduction and Logic gates IT3002 – Computer Architecture
Computer Architecture & Operations I
CSIS-110 Introduction to Computer Science
Basics of Logic gates - Part 2
Basics of Logic gates - Part 1
Dr.Ahmed Bayoumi Dr.Shady Elmashad
Chapter 3 - Binary Numbering System
Dr.Ahmed Bayoumi Dr.Shady Elmashad
Morgan Kaufmann Publishers
Logic Gates and Boolean Algebra
Computer Science 210 Computer Organization
CSIS-110 Introduction to Computer Science
Logic Gates.
Logic Gates Benchmark Companies Inc PO Box Aurora CO
KS4 Electricity – Electronic systems
KS4 Electricity – Electronic systems
Fundamentals & Ethics of Information Systems IS 201
Chapter 4 Gates and Circuits.
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Computer Science 210 Computer Organization
Schematics 201 Lecture Topic: Electrical Symbols
Logic Gates.
Week 7: Gates and Circuits: PART II
Logic Gates.
Logic Gates.
KS4 Electricity – Electronic systems
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.
Chapter 4 Gates and Circuits.
Truth tables Mrs. Palmer.
What are Logic Gates?.
Agenda Lecture Content: Combinatorial Circuits Boolean Algebras
Presentation transcript:

Agenda – 2/12/18 Questions? Readings: CSI 4, P 6.1-6.7 Finish Python notes from last class Gates and Circuits

CSI Chapter 4 Gates and Circuits

Computers and Electricity Gate A device that performs a basic operation on electrical signals Circuits Gates combined to perform more complicated tasks

Computers and Electricity How do we describe the behavior of gates and circuits? Boolean expressions Uses Boolean algebra, a mathematical notation for expressing two-valued logic Logic diagrams A graphical representation of a circuit; each gate has its own symbol Truth tables A table showing all possible input values and the associated output values

Gates Six types of gates NOT AND OR XOR NAND NOR Typically, logic diagrams are black and white with gates distinguished only by their shape We use color for clarity (and fun)

NOT Gate A NOT gate accepts one input signal (0 or 1) and returns the complementary (opposite) signal as output

AND Gate An AND gate accepts two input signals If both are 1, the output is 1; otherwise, the output is 0

OR Gate An OR gate accepts two input signals If both are 0, the output is 0; otherwise, the output is 1

XOR Gate An XOR gate accepts two input signals If both are the same, the output is 0; otherwise, the output is 1

XOR Gate Note the difference between the XOR gate and the OR gate; they differ only in one input situation When both input signals are 1, the OR gate produces a 1 and the XOR produces a 0 XOR is called the exclusive OR because its output is 1 if (and only if): either one input or the other is 1, excluding the case that they both are

NAND Gate The NAND (“NOT of AND”) gate accepts two input signals If both are 1, the output is 0; otherwise, the output is 1

NOR Gate The NOR (“NOT of OR”) gate accepts two inputs If both are 0, the output is 1; otherwise, the output is 0

Review of Gate Processing A NOT gate inverts its single input An AND gate produces 1 if both input values are 1 An OR gate produces 0 if both input values are 0 An XOR gate produces 0 if input values are the same

Gates with More Inputs Some gates can be generalized 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

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?

Combinational Circuits Gates are combined into circuits by using the output of one gate as the input for another This same circuit using a Boolean expression is AB + AC

Combinational Circuits Three inputs require eight rows to describe all possible input combinations

Combinational Circuits Consider the following Boolean expression A(B + C) Does this truth table look familiar? Compare it with previous table

Combinational Circuits Circuit equivalence Two circuits that produce the same output for identical input Boolean algebra Allows us to apply provable mathematical principles to help design circuits A(B + C) = AB + BC (distributive law) so circuits must be equivalent

Properties of Boolean Algebra

Circuit Construction Algorithm (Sum-of-Products Algorithm) How do we create a circuit given a description of the circuit’s desired behavior? Step 1: Truth table construction Create a column for each input and a column for the output Fill in all combinations of inputs on a separate line of the table (there will be 2n, where n is the number of inputs) Fill in the output for each combination Example: create an equality circuit Test 2 unsigned binary numbers Produce 1 if 2 numbers are equal, otherwise 0

Sum-of-Products Algorithm (cont’d) Step 2: Sub-expression construction (AND and NOT) Final all of the combinations in the table that have a true output For each, write a sub-expression anding together each column; for inputs that must be false, use not. A B Output 1  

Sum-of-Products Algorithm (cont’d) Step 3: Subexpression construction (OR) All of the sub-expressions created in Step 2 are or’d together.

Sum-of-Products Algorithm (cont’d) Step 4: Produce the circuit diagram.

Sum-of-Products Algorithm (cont’d) Try this: A B C Output 1

Sum-of-Products Algorithm (cont’d) Show the equivalent Boolean expression: And circuit: