Combinational Logic 1.

Slides:



Advertisements
Similar presentations
Boolean Algebra and Logic Gates
Advertisements

Logical Systems Synthesis.
Logic Gate Level Part 2. Constructing Boolean expression from truth table First method: write nonparenthesized OR of ANDs Each AND is a 1 in the result.
Chapter 2 – Combinational Logic Circuits Part 1 – Gate Circuits and Boolean Equations Logic and Computer Design Fundamentals.
CS 151 Digital Systems Design Lecture 6 More Boolean Algebra A B.
1 COMP541 Combinational Logic Montek Singh Jan 16, 2007.
EECC341 - Shaaban #1 Lec # 5 Winter Switching Algebra: Principle of Duality Any theorem or identity in switching algebra remains true if.
Contemporary Logic Design Two-Level Logic © R.H. Katz Transparency No. 3-1 Chapter #2: Two-Level Combinational Logic Section 2.1, Logic Functions.
1 COMP541 Combinational Logic - II Montek Singh Aug 27, 2014.
Chapter 2: Combinatorial Logic Circuits Illustration Pg. 32 Logic Circuit Diagrams - Circuit Optimization -2,3,4 level maps 48 elements Optimized to 25.
Chapter 2: Boolean Algebra and Logic Functions
Binary Logic and Gates COE 202 Digital Logic Design Dr. Aiman El-Maleh
CHAPTER 2 Boolean Algebra
Logic Design CS221 1 st Term Boolean Algebra Cairo University Faculty of Computers and Information.
1 Why study Boolean Algebra? 4 It is highly desirable to find the simplest circuit implementation (logic) with the smallest number of gates or wires. We.
Chapter 2 Combinational Systems And / Or / Not. TRIAD PRINCIPLE: Combinational is about And / Or / Not combinations As well as equivalent functions. It.
1 Logic Gates Digital Computer Logic Kashif Bashir WWW:
IKI a-Boolean Algebra Bobby Nazief Semester-I The materials on these slides are adopted from those in CS231’s Lecture Notes at UIUC,
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.
Switching functions The postulates and sets of Boolean logic are presented in generic terms without the elements of K being specified In EE we need to.
Dr. Eng. Farag Elnagahy Office Phone: King ABDUL AZIZ University Faculty Of Computing and Information Technology CPCS 222.
Lecture 22: 11/19/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
ENG241 Digital Design Week #2 Combinational Logic Circuits.
1 BOOLEAN ALGEBRA Basic mathematics for the study of logic design is Boolean Algebra Basic laws of Boolean Algebra will be implemented as switching devices.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
Logic Circuits Lecture 3 By Amr Al-Awamry. Basic Definitions Binary Operators  AND z = x y = x yz=1 if x=1 AND y=1  OR z = x + y z=1 if x=1 OR y=1 
1 COMP541 Combinational Logic - II Montek Singh Jan 18, 2012.
Boolean Algebra & Logic Circuits Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
1 COMP541 Combinational Logic - 3 Montek Singh Jan 21, 2015.
ECE DIGITAL LOGIC LECTURE 8: BOOLEAN FUNCTIONS Assistant Prof. Fareena Saqib Florida Institute of Technology Spring 2016, 02/11/2016.
Lecture 5 More Boolean Algebra A B. Overview °Expressing Boolean functions °Relationships between algebraic equations, symbols, and truth tables °Simplification.
Mu.com.lec 9. Overview Gates, latches, memories and other logic components are used to design computer systems and their subsystems Good understanding.
CHAPTER 2 Boolean algebra and Logic gates
Boolean Algebra & Logic Gates
COMP541 Combinational Logic - 3
De Morgan’s Theorem,.
Chapter 2: Boolean Algebra and Logic Functions
COMP541 Combinational Logic - II
14:332:231 DIGITAL LOGIC DESIGN Boolean Algebra
Unit 2 Boolean Algebra.
ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2 Instructor: Andrew B. Kahng (lecture)
CS 105 Digital Logic Design
Gate Circuits and Boolean Equations
CHAPTER 2 Boolean Algebra
COMP541 Combinational Logic - 3
Computer Organization and Design Transistors & Logic - II
CHAPTER 2 Boolean Algebra This chapter in the book includes:
Overview Part 1 – Gate Circuits and Boolean Equations
Princess Sumaya University
Circuit analysis summary
TN 221: DIGITAL ELECTRONICS 1
ECE 331 – Digital System Design
Boolean Algebra Why study Boolean Algebra?
Boolean Algebra.
Boolean Algebra & Logic Circuits
Chapter 2 Boolean Algebra and Logic Gate
BASIC & COMBINATIONAL LOGIC CIRCUIT
Functions Computers take inputs and produce outputs, just like functions in math! Mathematical functions can be expressed in two ways: We can represent.
Digital Systems Design
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION Part (a)
COMP541 Combinational Logic - II
Chapter 2 Introduction to Logic Circuits
From now on: Combinatorial Circuits:
COMP541 Combinational Logic - II
COMP541 Combinational Logic - 3
Analysis of Logic Circuits Example 1
Circuit Simplification and
Presentation transcript:

Combinational Logic 1

Topics Basics of digital logic Basic functions Boolean algebra Gates to implement Boolean functions Identities and Simplification

Binary Logic Binary variables Basic Functions Can be 0 or 1 (T or F, low or high) Variables named with single letters in examples Use words when designing circuits Basic Functions AND OR NOT

AND Operator Symbol is dot Or no symbol Truth table -> Z = X · Y Or no symbol Z = XY Truth table -> Z is 1 only if Both X and Y are 1

OR Operator Symbol is + Truth table -> Z is 1 if either 1 Not addition Z = X + Y Truth table -> Z is 1 if either 1 Or both!

NOT Operator Unary Symbol is bar (or ’) Truth table -> Inversion Z = X’ Truth table -> Inversion

Gates Circuit diagrams are traditionally used to document circuits Remember that 0 and 1 are represented by voltages

AND Gate Timing Diagrams

OR Gate

Inverter

More Inputs Work same way What’s output?

Digital Circuit Representation: Schematic

Digital Circuit Representation: Boolean Algebra For now equations with operators AND, OR, and NOT Can evaluate terms, then final OR Alternate representations next

Digital Circuit Representation: Truth Table 2n rows where n # of variables

Functions Can get same truth table with different functions Usually want simplest function Fewest gates or using particular types of gates More on this later

Identities Use identities to manipulate functions On previous slide, I used distributive law to transform from to

Table of Identities

Duals Left and right columns are duals Replace AND with OR, 0s with 1s

Single Variable Identities

Commutative Order independent

Associative Independent of order in which we group So can also be written as and

Distributive Can substitute arbitrarily large algebraic expressions for the variables

DeMorgan’s Theorem Used a lot NOR equals invert AND NAND equals invert OR

Truth Tables for DeMorgan’s

Algebraic Manipulation Consider function

Simplify Function Apply Apply Apply

Fall 2005 Fewer Gates

Consensus Theorem The third term is redundant Can just drop Proof in book, but in summary For third term to be true, Y & Z both 1 Then one of the first two terms must be 1!

Complement of a Function Definition: 1s & 0s swapped in truth table

Truth Table of the Complement of a Function X Y Z F = X + Y’Z F’ 1

Algebraic Form for Complement Mechanical way to derive algebraic form for the complement of a function Take the dual Recall: Interchange AND & OR, and 1s & 0s Complement each literal (a literal is a variable complemented or not; e.g. x , x’ , y, y’ each is a literal)

Example: Algebraic form for the complement of a function F = X + Y’Z To get the complement F’ Take dual of right hand side X . (Y’ + Z) Complement each literal: X’ . (Y + Z’) F’ = X’ . (Y + Z’)

Mechanically Go From Truth Table to Function

From Truth Table to Function Consider a truth table Can implement F by taking OR of all terms that correspond to rows for which F is 1 “Standard Form” of the function

Standard Forms Not necessarily simplest F But it’s mechanical way to go from truth table to function Definitions: Product terms – AND  ĀBZ Sum terms – OR  X + Ā This is logical product and sum, not arithmetic

Definition: Minterm Product term in which all variables appear once (complemented or not) For the variables X, Y and Z example minterms : X’Y’Z’, X’Y’Z, X’YZ’, …., XYZ

Definition: Minterm (continued) Each minterm represents exactly one combination of the binary variables in a truth table.

Truth Tables of Minterms

Number of Minterms For n variables, there will be 2n minterms Minterms are labeled from minterm 0, to minterm 2n-1 m0 , m1 , m2 , … , m2n-2 , m2n-1 For n = 3, we have m0 , m1 , m2 , m3 , m4 , m5 , m6 , m7

Definition: Maxterm Sum term in which all variables appear once (complemented or not) For the variables X, Y and Z the maxterms are: X+Y+Z , X+Y+Z’ …. , X’+Y’+Z’

Definition: Maxterms (continued) mmmmmmmmmmmmmmmmmmmmmmmm mmmmmmmmmmmmmmmmmmm mmmmmmmmmmmmmmmmmmmm mmmmmmmmmmmmmmmmmmm,m xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ,mmmmmmmmmmmmmmmmmmmmmmm mmmmmmmmmmmmmmmmmmmmmmm Maxterm

Truth Tables of Maxterms

Minterm related to Maxterm Minterms and maxterms with same subscripts are complements Example

Standard Form of F: Sum of Minterms OR all of the minterms of truth table for which the function value is 1 F = m0 + m2 + m5 + m7

Complement of F Not surprisingly, just sum of the other minterms In this case F’ = m1 + m3 + m4 + m6

Product of Maxterms Recall that maxterm is true except for its own row So M1 is only false for 001

Product of Maxterms or F = m0 + m2 + m5 + m7 Remember: M1 is only false for 001 M3 is only false for 011 M4 is only false for 100 M6 is only false for 110 Can express F as AND of M1, M3, M4, M6 or

Recap Working (so far) with AND, OR, and NOT Algebraic identities Algebraic simplification Minterms and maxterms Can now synthesize function from truth table