Boolean Algebra Combinational-Circuit Analysis We analyze a combinational logic circuit by obtaining a formal description of its logic function. Once.

Slides:



Advertisements
Similar presentations
Switching circuits Composed of switching elements called “gates” that implement logical blocks or switching expressions Positive logic convention (active.
Advertisements

Logic Gates.
Sistemas Digitais I LESI - 2º ano Lesson 4 - Combinational Systems Principles U NIVERSIDADE DO M INHO E SCOLA DE E NGENHARIA Prof. João Miguel Fernandes.
Introduction to Logic Circuits
Boolean Algebra and Combinational Logic
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.
Computer Logic and Digital Design Chapter 2 Henry Hexmoor AND logic
EE365 Boolean algebra Combinational-circuit analysis.
CS 151 Digital Systems Design Lecture 6 More Boolean Algebra A B.
1 EE 365 Combinational-Circuit Synthesis. 2 Combinational-Circuit Analysis Combinational circuits -- outputs depend only on current inputs (not on history).
EECC341 - Shaaban #1 Lec # 5 Winter Switching Algebra: Principle of Duality Any theorem or identity in switching algebra remains true if.
EE365 Adv. Digital Circuit Design Clarkson University Lecture #2 Boolean Laws and Methods.
 We can use an algebraic description of the circuit ’ s functional behavior in the analysis of a larger system that includes the circuit.  We can determine.
Example: Given a 4-bit input combination N=N 3 N 2 N 1 N 0, this function produces a 1 output for N=1,2,3,5,7,11,13, and 0 otherwise.  According to the.
Chapter 4 Logic Gates and Boolean Algebra. Introduction Logic gates are the actual physical implementations of the logical operators. These gates form.
1 EECC341 - Shaaban #1 Lec # 6 Winter Combinational Circuit Analysis Example Given this logic circuit we can : Find corresponding logic.
Modified from John Wakerly Lecture #2 and #3 CMOS gates at the transistor level Boolean algebra Combinational-circuit analysis.
2.7 NAND and NOR logic networks
Boolean Algebra Boolean algebra Boolean algebra, like any other deductive mathematical system, may be defined with –a set of elements, –a set of operators,
KU College of Engineering Elec 204: Digital Systems Design
Digital Logic ENEL 111. Digital systems A digital system is a system whose inputs and outputs fall within a discrete, finite set of values Two main types.
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.
ECE 331 – Digital System Design
 Seattle Pacific University EE Logic System DesignSOP-POS-1 The Connection: Truth Tables to Functions abcF abcF
1 Representation of Logic Circuits EE 208 – Logic Design Chapter 2 Sohaib Majzoub.
1 Digital Logic Design Week 5 Simplifying logic expressions.
ECE 331 – Digital System Design NAND and NOR Circuits, Multi-level Logic Circuits, and Multiple-output Logic Circuits (Lecture #9) The slides included.
1 EE121 John Wakerly Lecture #4 Combinational-Circuit Synthesis ABEL.
Combinational Logic 1.
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 ENGR 254 Lecture DeMorgan Symbol Equivalence.
ACOE1611 Combinational Logic Circuits Reference: M. Mano, C. Kime, “Logic and Computer Design Fundamentals”, Chapter 2.
Circuit Minimization. It is often uneconomical to realize a logic directly from the first logic expression that pops into your head. Canonical sum and.
Chapter 2 Two- Level Combinational Logic. Chapter Overview Logic Functions and Switches Not, AND, OR, NAND, NOR, XOR, XNOR Gate Logic Laws and Theorems.
June 2005Computer Architecture, Background and MotivationSlide 1 Part I Background and Motivation.
NAND-NAND and NOR-NOR Circuits and Even and Odd Logic Functions
ETE 204 – Digital Electronics
ECE 3110: Introduction to Digital Systems Combinational-Circuit Synthesis.
ECE 3110: Introduction to Digital Systems
Implementation of SOP/POS Expressions
ENGIN112 L6: More Boolean Algebra September 15, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 6 More Boolean Algebra A B.
NAND-NAND and NOR-NOR Circuits and Even and Odd Logic Functions ECE 301 – Digital Electronics.
CHAPTER 1 SETS, FUNCTIONs, ELEMENTARY LOGIC & BOOLEAN ALGEBRAs
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
ECE 3110: Introduction to Digital Systems Chapter #4 Review.
Digital Design: Principles and Practices Chapter 4 Combinational Logic Design Principles.
CEC 220 Digital Circuit Design SOP and POS forms Friday, January 23 CEC 220 Digital Circuit Design Slide 1 of 17.
BOOLEAN ALGEBRA LOGIC GATES. Introduction British mathematician George Boole( ) was successful in finding the link between logic and mathematics.
ECE 2110: Introduction to Digital Systems
CEC 220 Digital Circuit Design SOP and POS forms Friday, Sept 11 CEC 220 Digital Circuit Design Slide 1 of 17.
Boolean or, Switching Algebra. Switching Algebra The two-valued Boolean algebra is also called “Switching algebra” by engineers and computer scientists.
©2008 The McGraw-Hill Companies, Inc. All rights reserved. Digital Electronics Principles & Applications Seventh Edition Chapter 4 Using Logic Gates Roger.
Circuits, Truth Tables & Boolean Algebra. Expressions Can describe circuits in terms of Boolean expression.
Digital Systems Design 1 Signal Expressions Multiply out: F = ((X + Y)  Z) + (X  Y  Z) = (X  Z) + (Y  Z) + (X  Y  Z)
ECE 2110: Introduction to Digital Systems
Logic Gates and Boolean Algebra
Combinational Logic Circuits
ECE 2110: Introduction to Digital Systems
CSC205 Jeffrey N. Denenberg Lecture #5
ECE 2110: Introduction to Digital Systems
ECE 3110: Introduction to Digital Systems
Logic Gates.
Logic Gates Benchmark Companies Inc PO Box Aurora CO
Computer Organization and Design Transistors & Logic - II
CHAPTER 3 SETS AND BOOLEAN ALGEBRA
ECE 331 – Digital System Design
Modified from John Wakerly Lecture #2 and #3
CSE 370 – Winter Combinational Implementation - 1
Logic Gates.
Presentation transcript:

Boolean Algebra

Combinational-Circuit Analysis We analyze a combinational logic circuit by obtaining a formal description of its logic function. Once we have a description of the logic function: we can determine the behaviour of the circuit for various input combinations. We can manipulate the algebraic description to suggest different circuit structure. We can convert to sum-of-products expression for PLDs. We can use to analyze a larger system that includes it.

Combinational analysis There are a number of ways to obtain a formal description of the circuit’s function.

Obtaining truth table Produce output from different input combinations ( 2 n ).

Signal expressions Multiply out: F = ((X + Y’). Z) + (X’. Y. Z’) = (X. Z) + (Y’. Z) + (X’. Y. Z’)

New circuit, same function

“Add out” logic function Circuit:

Boolean function as a sum of minterms: Any Boolean function can be expressed as a canonical sum. The canonical sum of a logic function is a sum of the minterms corresponding to truth-table rows for which the function produces a 1 output F =  x,y,z (0,1,2,5,7) = X’.Y’.Z’ + X’.Y’.Z + X’.Y.Z’ + X.Y’.Z + X.Y.Z

Boolean function as a pruduct of maxterms: Any Boolean function can be expressed as a canonical pruduct. The canonical pruduct of a logic function is a pruduct of the maxterms corresponding to truth-table rows for which the function produces a 0 output F =  x,y,z (0,3,4,6) = (X+Y+Z). (X+Y’+Z’). (X’+Y+Z). (X’+Y’+Z)

Shortcut: Symbol substitution

Different circuit, same function

Another example

Circuit Descriptions and Designs What is the starting point for designing combinational logic circuit? Usually, we are given a word description of a problem occasionally, the description is a list of input combinations (ON, OFF), the verbal equivalent of a truth table or the canonical sum or product.

Combinational-Circuit Analysis Combinational circuits -- outputs depend only on current inputs (not on history). Kinds of combinational analysis: –exhaustive (truth table) –algebraic (expressions) –simulation / test bench Write functional description using schematic editor Write functional description in HDL Define test conditions / test vecors, including corner cases Compare circuit output with functional description (or known- good realization) Repeat for “random” test vectors

Example, 4-bit prime number detector Given a 4-bit input combination N = N 3 N 2 N 1 N 0, this function produces a 1 output for N = 1, 2, 3, 5, 7, 11, 13 and 0 otherwise. A logic function described in this way can be designed directly from the canonical sum or product expression i = AB CDEF F =  N 3 N 2 N 1 N 0 (1, 2, 3, 5, 7, 11, 13) = N’ 3 N’ 2 N’ 1 N 0 + N’ 3 N’ 2 N 1 N’ 0 + N’ 3 N’ 2 N 1 N 0 + …

Design from truth table Truth table --> canonical sum (sum of minterms) Example: prime-number detector –4-bit input, N 3 N 2 N 1 N 0 row N 3 N 2 N 1 N 0 F F =   (1,2,3,5,7,11,13)

Minterm list --> canonical sum

Algebraic simplification Theorem T8, Reduce number of gates and gate inputs

Reduced circuit

Combinational-Circuit Design Sometimes you can write an equation or equations directly using “logic” (the kind in your brain). Example (alarm circuit): Corresponding circuit:

Simple Example Sometimes you can write an equation or equations directly using “logic” (the kind in your brain). Example (alarm circuit): Door Open = 1, Key Left = 1 WARNING = DOOR. KEY C = A. B Corresponding circuit:

Circuit Descriptions and Designs The alarm output is 1 if the PANIC input is 1, or if the ENABLE input is 1, the EXITING input is 0, and the house is not secure; the house is secure if the WINDOW, DOOR, and GARAGE inputs are all 1. ALARM = PANIC + ENABLE. EXITING’. SECURE’ SECURE = WINDOW. DOOR. GARAGE ALARM = PANIC + ENABLE. EXITING’. (WINDOW. DOOR. GARAGE)’

Alarm Circuit

Modified Alarm Function “Multiply out”: ALARM = PANIC + ENABLE. EXITING’. (WINDOW. DOOR. GARAGE)’ ALARM = PANIC + ENABLE. EXITING’. (WINDOW’ + DOOR’ + GARAGE’) ALARM = PANIC + ENABLE. EXITING’. WINDOW’ + ENABLE. EXITING’. DOOR’ + ENABLE. EXITING’. GARAGE’

Alarm-circuit transformation Sum-of-products form –Useful for programmable logic devices (PLDs)

Circuit transformation The design methods that we have described so far use AND, OR, and NOT gates. We might like to use NAND and NOR gates, too because - they are faster than ANDs and ORs in most technologies. But we develop a logic expression from normal logic (ANDs and ORs) and then we translate it into other forms using NAND and NOR gates. –An AND-OR (sum-of-products) circuit may be converted to a NAND-NAND circuit, and –a OR-AND (product-of- sums) circuit may be converted to a NOR-NOR circuit.

Sum-of-products form AND-OR NAND-NAND

Product-of-sums form OR-AND NOR-NOR P-of-S preferred in CMOS, TTL (NAND-NAND)