DOC PREVIEW
Berkeley COMPSCI 150 - Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits)

This preview shows page 1-2-3 out of 10 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 10 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 10 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 10 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 10 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

1Fall 2002 EECS150 – Lec4-bool1Page 1, 9/5 9amEECS150 - Digital DesignLecture 4 - Boolean Algebra I(Representations of Combinational Logic Circuits)September 5, 2002John WawrzynekFall 2002 EECS150 – Lec4-bool1Page 2, 9/5 9amOutline• Review of three representations for combinational logic:– truth tables, – graphical (logic gates), and – algebraic equations• Relationship among the three• Adder example• Formal description of Boolean algebra• Laws of Boolean algebra2Fall 2002 EECS150 – Lec4-bool1Page 3, 9/5 9amCombinational Logic (CL) Definedyi=fi(x0 , . . . . , xn-1), where x, y are {0,1}. Y is a function of only X. • If we change X, Y will change immediately (well almost!). • There is an implementation dependent delay from X to Y. Fall 2002 EECS150 – Lec4-bool1Page 4, 9/5 9amCL Block Example #1Truth Table Description:Boolean Equation:y0= (x0AND not(x1)) OR (not(x0) AND x1)y0= x0x1' + x0'x1Gate Representation:x0 x1y0 0 00001 1111 1How would we prove that all three representations are equivalent?3Fall 2002 EECS150 – Lec4-bool1Page 5, 9/5 9amBoolean Algebra/Logic Circuits• Why are they called “logic circuits”? • Logic: The study of the principles of reasoning.• The 19th Century Mathematician, George Boole, developed a math. system (algebra) involving logic, Boolean Algebra. • His variables took on TRUE, FALSE• Later Claude Shannon (father of information theory) showed (in his Master’s thesis!) how to map Boolean Algebra to digital circuits:• Primitive functions of Boolean Algebra:Fall 2002 EECS150 – Lec4-bool1Page 6, 9/5 9amRelationship Among RepresentationsTruth Table BooleanExpression gaterepresentation (schematic)??uniquenotuniquenotunique[convenient for manipulation][close toimplementaton]* Theorem: Any Boolean function that can be expressed as a truth table can be written as an expression in Boolean Algebra using AND, OR, NOT.How do we convert from one to the other?4Fall 2002 EECS150 – Lec4-bool1Page 7, 9/5 9amNotes on Example #1• The example is the standard function called exclusive-or (XOR,EXOR) • Has a standard algebraic symbol:• And a standard gate symbol:x0 x1y0 0 00001 1111 1Fall 2002 EECS150 – Lec4-bool1Page 8, 9/5 9amCL Block Example #2• 4-bit adder:R = A + B, c is carry out• Truth Table Representation:In general: 2nrows for n inputs. Is there a more efficient (compact) way to specify this function? 256 rows!5Fall 2002 EECS150 – Lec4-bool1Page 9, 9/5 9am4-bit Adder Example• Motivate the adder circuit design by hand addition:• Add a0 and b0 as follows:• Add a1 and b1 as follows:carry to next stager = a XOR b c = a AND b = abr = a XOR b XOR cico = ab + aci + bciFall 2002 EECS150 – Lec4-bool1Page 10, 9/5 9am4-bit Adder Example• In general:ri=aiXOR biXOR cincout=aicin+aibi+bicin=cin(ai+ bi) + aibi• Now, the 4-bit adder:“Full adder cell”“ripple” adder6Fall 2002 EECS150 – Lec4-bool1Page 11, 9/5 9am4-bit Adder Example• Graphical Representation of FA-cellri=aiXOR biXOR cincout=aicin+aibi+ bicin• Alternative Implementation (with 2-input gates):ri= (aiXOR bi) XOR cincout= cin(ai+ bi) + aibiFall 2002 EECS150 – Lec4-bool1Page 12, 9/5 9amBoolean AlgebraDefined as:{}{}.0 ,1 :Complement .6.)( ),()()( :laws veDistributi 5..1 ,0 in 1 ,0 :Identities .4. , :laws eCommunitiv 3..in ,in ,in ,in :Closure 2..such that elements least twoat contains 1.:hold axioms following thesuch that , operation unary ,, operatorsbinary , elements ofSet =′•=′+•+•=+•+•+=•+=•=+•=•+=+′•+≠′•+aaaacabacbacabacbaaaaaBabbaabbaBaBbaBbaBa,bbaa,bBB7Fall 2002 EECS150 – Lec4-bool1Page 13, 9/5 9amLogic FunctionsDo the axioms hold?– Ex: communitive law: 0+1 = 1+0?Algebra.Boolean valida is NOT AND, OR, },1,0{=′=•=+=B00 001 110 111 100 001 010 011 10 11 0Fall 2002 EECS150 – Lec4-bool1Page 14, 9/5 9am• Theorem: Any Boolean function that can be expressed as a truth table can be expressed using NAND and NOR.– Proof sketch:– How would you show that either NAND or NOR is sufficient?Other logic functions of 2 variables (x,y)x y f0 f100 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 101 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 110 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 111 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 10 AND X Y + ORNORXNORNAND1Look at NOR and NAND:= NOT= AND= OR8Fall 2002 EECS150 – Lec4-bool1Page 15, 9/5 9amLaws of Boolean AlgebraDuality: A dual of a Boolean expression is derived by interchanging OR and AND operations, and 0s and 1s (literals are left unchanged).)},,0,1,,...,,({)},,1,0,,...,,({2121+•=•+nDnxxxFxxxFAny law that is true for an expression is also true for its dual.Operations with 0 and 1:1. x + 0 = x x * 1 = x2. x + 1 = 1 x * 0 = 0Idempotent Law:3. x + x = x x x = xInvolution Law:4. (x’)’ = xLaws of Complementarity:5. x + x’ = 1 x x’ = 0Commutative Law:6. x + y = y + x x y = y xFall 2002 EECS150 – Lec4-bool1Page 16, 9/5 9amLaws of Boolean Algebra (cont.)Associative Laws:(x + y) + z = x + (y + z) x y z = x (y z)Distributive Laws:x (y + z) = (x y) + (x z) x +(y z) = (x + y)(x + z)“Simplification” Theorems:x y + x y’ = x (x + y) (x + y’) = xx + x y = x x (x + y) = xDeMorgan’s Law:(x + y + z + …)’ = x’y’z’ (x y z …)’ = x’ + y’ +z’Theorem for Multiplying and Factoring:(x + y) (x’ + z) = x z + x’ yConsensus Theorem:x y + y z + x’ z = (x + y) (y + z) (x’ + z)x y + x’ z = (x + y) (x’ + z)9Fall 2002 EECS150 – Lec4-bool1Page 17, 9/5 9amProving Theorems via axioms of Boolean AlgebraEx: prove the theorem: x y + x y’ = xx y + x y’ = x (y + y’) distributive lawx (y + y’) = x (1) complementary lawx (1) = x identityEx: prove the theorem: x + x y = x x + x y = x 1 + x y identityx 1 + x y = x (1 + y) distributive lawx (1 + y) = x (1) identityx (1) = x identityFall 2002 EECS150 – Lec4-bool1Page 18, 9/5 9amDeMorgan’s Law* DeMorgan’s Law can be used to convert AND/OR expressions to OR/AND expressions:Example: z = a’b’c + a’bc + ab’c + abc’z’ = a’b’c’ + a’b’c + ab’c’ + abcx y x' y' (x + y)' x'y'0 0 1 1 1 10 1 1 0 0 01 0 0 1 0 01 1 0 0 0 0 x y x' y' (x y)'


View Full Document

Berkeley COMPSCI 150 - Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits)

Documents in this Course
Lab 2

Lab 2

9 pages

Debugging

Debugging

28 pages

Lab 1

Lab 1

15 pages

Memory

Memory

13 pages

Lecture 7

Lecture 7

11 pages

SPDIF

SPDIF

18 pages

Memory

Memory

27 pages

Exam III

Exam III

15 pages

Quiz

Quiz

6 pages

Problem

Problem

3 pages

Memory

Memory

26 pages

Lab 1

Lab 1

9 pages

Memory

Memory

5 pages

Load more
Download Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits)
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits) and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits) 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?