XOR Operator A short digression… … to introduce another Boolean operation: exclusive- OR (XOR) ABA + B 000 011 101 110 XOR.

Slides:



Advertisements
Similar presentations
Logic Gates.
Advertisements

ECE 238L Computer Logic Design Spring 2010
Chapter 2 Logic Circuits.
Boolean Algebra and Reduction Techniques
Chapter 3 Boolean Algebra and Logic Gate (Part 2).
Relationship Between Basic Operation of Boolean and Basic Logic Gate The basic construction of a logical circuit is gates Gate is an electronic circuit.
Lecture 14 Today we will Learn how to implement mathematical logical functions using logic gate circuitry, using Sum-of-products formulation NAND-NAND.

Computer Engineering (Logic Circuits) (Karnaugh Map)
Introduction Gate-level minimization refers to the design task of finding an optimal gate-level implementation of Boolean functions describing a digital.
بهينه سازي با نقشة کارنو Karnaugh Map. 2  Method of graphically representing the truth table that helps visualize adjacencies 2-variable K-map 3-variable.
Lecture 3. Boolean Algebra, Logic Gates
PHY 201 (Blum)1 Karnaugh Maps References: Chapters 4 and 5 in Digital Principles (Tokheim) Chapter 3 in Introduction to Digital Systems (Palmer and Perlman)
Digital Logic Circuits – Chapter 1 Section 1-3, 1-2.
1 COMBINATIONAL LOGIC One or more digital signal inputs One or more digital signal outputs Outputs are only functions of current input values (ideal) plus.
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
Boolean Algebra and Digital Circuits
Department of Computer Engineering
F = ∑m(1,4,5,6,7) F = A’B’C+ (AB’C’+AB’C) + (ABC’+ABC) Use X’ + X = 1.
Chapter 10 (Part 2): Boolean Algebra  Logic Gates (10.3) (cont.)  Minimization of Circuits (10.4)
1 Digital Logic Design Week 5 Simplifying logic expressions.
Karnaugh Maps References:
Module 9.  Digital logic circuits can be categorized based on the nature of their inputs either: Combinational logic circuit It consists of logic gates.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. Circuit Optimization Logic and Computer Design Fundamentals.
Why? What’s Boolean algebra used for? –“The purpose of Boolean algebra is to facilitate the analysis and design of digital circuits.” Express a truth table.
XOR Operator A short digression… … to introduce another Boolean operation: exclusive- OR (XOR) ABA + B XOR.
Chapter 3 Gate-Level Minimization
Chapter 4 Combinational Logic Design Principles. Overview Objectives -Define combinational logic circuit -Analysis of logic circuits (to describe what.
Gate-Level Minimization
CHAPTER 3: PRINCIPLES OF COMBINATIONAL LOGIC
Minimisation ENEL111. Minimisation Last Lecture  Sum of products  Boolean algebra This Lecture  Karnaugh maps  Some more examples of algebra and truth.
Lecture 4 Nand, Nor Gates, CS147 Circuit Minimization and
LOGIC GATES & BOOLEAN ALGEBRA
ECE 301 – Digital Electronics Basic Logic Operations, Boolean Expressions, and Boolean Algebra (Lecture #3)
CS1Q Computer Systems Lecture 7
February 2, 2004CS 2311 Karnaugh maps Last time we saw applications of Boolean logic to circuit design. – The basic Boolean operations are AND, OR and.
Computer Arithmetic, K-maps Prof. Sin-Min Lee Department of Computer Science.
Karnaugh Maps (K-Maps)
Computer Systems 1 Fundamentals of Computing Simplifying Boolean Expressions.
CS231 Boolean Algebra1 Summary so far So far: – A bunch of Boolean algebra trickery for simplifying expressions and circuits – The algebra guarantees us.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
Boolean Algebra and Reduction Techniques
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
Boolean Algebra & Logic Circuits Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
CMPUT Computer Organization and Architecture II1 CMPUT329 - Fall 2002 Topic2: DeMorgan Laws José Nelson Amaral.
Announcements Project components starting to arrive No assignment due this week – assignment 7 will be posted on Thursday. Final exam date. Let’s leave.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
 Seattle Pacific University EE Logic System DesignKMaps-1 Two-Level Simplification All Boolean expressions can be represented in two- level forms.
Karnaugh Map (K-Map) By Dr. M. Khamis Mrs. Dua’a Al Sinari.
CMPUT Computer Organization and Architecture II1 CMPUT329 - Fall 2003 Topic 4: Cost of Logic Circuits and Karnaugh Maps José Nelson Amaral.
ECE DIGITAL LOGIC LECTURE 8: BOOLEAN FUNCTIONS Assistant Prof. Fareena Saqib Florida Institute of Technology Spring 2016, 02/11/2016.
BOOLEAN ALGEBRA LOGIC GATES. Introduction British mathematician George Boole( ) was successful in finding the link between logic and mathematics.
Function Simplification. Outline  Function Simplification  Algebraic Simplification  Half Adder  Introduction to K-maps  Venn Diagrams.
1 CS 352 Introduction to Logic Design Lecture 1 Ahmed Ezzat Number Systems and Boolean Algebra, Ch-1 + Ch-2.
CSE 260 BRAC University.
K-maps and Decoders Prof. Sin-Min Lee Department of Computer Science.
1 CS 352 Introduction to Logic Design Lecture 2 Ahmed Ezzat Boolean Algebra and Its Applications Ch-3 + Ch-4.
CS231 Boolean Algebra1 Circuit analysis summary After finding the circuit inputs and outputs, you can come up with either an expression or a truth table.
Assembly Lab1 - Review.
Lecture 4 Nand, Nor Gates, CS147 Circuit Minimization and
CS 105 Digital Logic Design
Circuit analysis summary
Boolean Algebra.
BASIC & COMBINATIONAL LOGIC CIRCUIT
Combinatorial Logic Circuit
13 Digital Logic Circuits.
From now on: Combinatorial Circuits:
Circuit Simplification and
Presentation transcript:

XOR Operator A short digression… … to introduce another Boolean operation: exclusive- OR (XOR) ABA + B XOR

XOR Operator Also referred to as an “odd” function since it returns a 1 only when an odd number of 1’s are input ABCA+B+C

Simplification Using the axioms to “prove” that a simplified version of a circuit is equivalent to the complex version takes a special kind of person… –…of which I’m not one Fortunately, there’s another way…

Karnaugh Maps Also known as K-Map Recall that an expression can be written in the form F(A,B,C) = Σ(0,2,4,5,6) Which means the functional value is 1 at binary input patterns 0, 2, 4, 5, 6 and 0 at all other input patterns –What does the truth table look like?

K-Maps F(A,B,C) = Σ(0,2,4,5,6) is called a “sum of minterms” representation The expression for such a representation is F(A,B,C) = A’B’C’ + A’BC’ + AB’C’ + AB’C + ABC’ We could simplify this via the axioms, right? (assuming we were that special kind of person) It’s painful!!!

K-Maps A K-Map is a grid (map) where each square corresponds to a minterm AB CD A B A A BC Note the ordering here is Gray code, not binary

K-Maps Notice how neighboring squares (minterms) differ by a single bit…this is the key to the whole thing –Consider minterms 1 and 3 1: A’B’C 3: A’BC –If we were to OR these together (A’B’C + A’BC) would simplify to A’C via the axioms

K-Maps Great, now what do we do with them? Place 1’s on the squares that correspond to minterms in the truth table Place 0’s on all other squares Group adjacent 1’s into the largest group whose size is a power of 2

K-Maps Notes: –Adjacencies wrap top-to-bottom and left-to- right –1’s can be part of more than one group –When you are grouping adjacent squares you’re essentially applying axiom 4 (x + x’ = 1) so the variable that is being “spanned” can be removed from the minterm

Simplification via Axioms (aka Proofs) Here’s a little insight that no one ever taught me F(x, y, z) = xy’z + x’y’z + x’yz Notice how the middle term shares two elements with each of the others Using association, distribution, and inverse: F(x, y, z) = y’z + x’yz One more application of distribution F(x, y, z) = z(y’ + x’y) We could have arrived at a similar solution by grouping the 2 nd two terms

Simplification via Axioms (aka Proofs) But, can we do better? Notice that we use the minterm x’y’z in two groupings What does that mean in terms of an axiomatic proof? x yz F(x, y, z) = y’z + x’z = z(x’ + y’)

Simplification via Axioms (aka Proofs) It means exactly this… F(x, y, z) = xy’z + x’y’z + x’yz F(x, y, z) = xy’z + x’y’z + x’y’z + x’yz …by idempotence over OR Now we can form two associative groupings and arrive at the same answer that the Karnaugh Map gave us

Karnaugh Maps What is the truth-table? What is the expression in sum-of-minterms form? What is the simplified expression? What is the (schematic) logic gate implementation? AB CD

Sum-of-Products This is what we previously called the “sum-of-minterms” Form the largest power-of-two groupings of 1’s on the K-map Create the schematic

Product-Of-Sums Instead of forming large adjacent groups of 1’s (on the K-map), form large adjacent groups of 0’s –What does this mean in terms of the original expression/truth-table? –It means you have simplified F’, instead of F –To “fix” what you’ve done you need only negate the final result them apply De Morgan’s theorem

Example – Sum-of-Products F(A,B,C,D) = Σ(0,1,2,5,8,9,10) Form the truth-table Form the K-map Simplify the K-map using sum-of- products Formulate the boolean expression Draw the schematic diagram

Example – Sum-of-Products B’ D’ C’ A’ D F

Example – Product-of-Sums F(A,B,C,D) = Σ(0,1,2,5,8,9,10) Form the truth-table Form the K-map Simplify the K-map using product-of- sums Formulate the boolean expression Negate, apply De Morgan’s Draw the schematic diagram

Example – Product-of-Sums B’ D A’ C’ D’ F

So What? As it turns out, the sum-of-products can be easily implemented with NAND gates Similarly, the product-of-sums can be easily implemented with NOR gates This may greatly simplify the design thus saving us money!

NAND/NOR Implementations B’ D A’ C’ D’ B’ D’ C’ A’ D

Combinational Circuits Definition: A connected arrangement of logic gates with a set of inputs and outputs Specifically, they have no memory! Basically, it’s the stuff we’ve been working on so far

Combinational Circuit Design Design a Half-Adder –A combinational circuit that adds 2 bits Input 1 is call the “Augend” Input 2 is called the “Addend” Output 1 is called the “Sum” Output 2 is called the “Carry” Augend Addend Sum Carry Half-Adder

Combinational Circuit Design Design a Full-Adder –A combinational circuit that adds 3 bits Input 1 is call the “Augend” Input 2 is called the “Addend” Input 3 is call the “Carry-in” Output 1 is called the “Sum” Output 2 is called the “Carry-out” Augend Addend Sum Carry-out Full-Adder Carry-in

Homework Pages 37, 38: 1-8, 1-9, 1-10, 1-12, 1-13 Due Thursday (next lecture)