DOC PREVIEW
Berkeley COMPSCI 150 - Combinational logic

This preview shows page 1-2-3-4-29-30-31-32-59-60-61-62 out of 62 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 62 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 62 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 62 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 62 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 62 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 62 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 62 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 62 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 62 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 62 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 62 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 62 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 62 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Combinational logicPossible logic functions of two variablesCost of different logic functionsMinimal set of functionsAn algebraic structureBoolean algebraLogic functions and Boolean algebraAxioms and theorems of Boolean algebraAxioms and theorems of Boolean algebra (cont’d)Axioms and theorems of Boolean algebra (cont’)Slide 11Proving theorems (rewriting)Proving theorems (perfect induction)A simple exampleApply the theorems to simplify expressionsFrom Boolean expressions to logic gatesFrom Boolean expressions to logic gates (cont’d)Slide 18Waveform view of logic functionsChoosing different realizations of a functionWhich realization is best?Which is the best realization? (cont’d)Are all realizations equivalent?Implementing Boolean functionsCanonical formsSum-of-products canonical formsSum-of-products canonical form (cont’d)Product-of-sums canonical formProduct-of-sums canonical form (cont’d)S-o-P, P-o-S, and de Morgan’s theoremFour alternative two-level implementations of F = AB + CWaveforms for the four alternativesMapping between canonical formsIncompleteley specified functionsNotation for incompletely specified functionsSimplification of two-level combinational logicThe Uniting TheoremBoolean cubesMapping truth tables onto Boolean cubesThree variable exampleHigher dimensional cubesm-dimensional cubes in a n-dimensional Boolean spaceKarnaugh mapsKarnaugh maps (cont’d)Adjacencies in Karnaugh mapsKarnaugh map examplesMore Karnaugh map examplesKarnaugh map: 4-variable exampleKarnaugh maps: don’t caresKarnaugh maps: don’t cares (cont’d)Design example: two-bit comparatorDesign example: two-bit comparator (cont’d)Slide 53Design example: 2x2-bit multiplierDesign example: 2x2-bit multiplier (cont’d)Design example: BCD increment by 1Design example: BCD increment by 1 (cont’d)Definition of terms for two-level simplificationExamples to illustrate termsAlgorithm for two-level simplificationAlgorithm for two-level simplification (example)Combinational logic summaryCS 150 - Spring 2001 - Combinational Logic - 1Combinational logicLogic functions, truth tables, and switchesNOT, AND, OR, NAND, NOR, XOR, . . .Minimal setAxioms and theorems of Boolean algebraProofs by re-writingProofs by perfect inductionGate logicNetworks of Boolean functionsTime behaviorCanonical formsTwo-levelIncompletely specified functionsSimplificationBoolean cubes and Karnaugh mapsTwo-level simplificationCS 150 - Spring 2001 - Combinational Logic - 2X Y 16 possible functions (F0–F15)0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 10 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 11 0 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 11 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1XYFXYX nor Ynot (X or Y)X nand Ynot (X and Y)10not XX and YX or Ynot YX xor YX = YPossible logic functions of two variablesThere are 16 possible functions of 2 input variables:in general, there are 2**(2**n) functions of n inputsCS 150 - Spring 2001 - Combinational Logic - 3Cost of different logic functionsDifferent functions are easier or harder to implementEach has a cost associated with the number of switches needed0 (F0) and 1 (F15): require 0 switches, directly connect output to low/highX (F3) and Y (F5): require 0 switches, output is one of inputsX' (F12) and Y' (F10): require 2 switches for "inverter" or NOT-gateX nor Y (F4) and X nand Y (F14): require 4 switchesX or Y (F7) and X and Y (F1): require 6 switchesX = Y (F9) and X  Y (F6): require 16 switchesBecause NOT, NOR, and NAND are the cheapest they are the functions we implement the most in practiceCS 150 - Spring 2001 - Combinational Logic - 4X Y X nand Y0 0 11 1 0X Y X nor Y0 0 11 1 0X nand Y  not ( (not X) nor (not Y) ) X nor Y  not ( (not X) nand (not Y) )Minimal set of functionsCan we implement all logic functions from NOT, NOR, and NAND?For example, implementing X and Yis the same as implementing not (X nand Y)In fact, we can do it with only NOR or only NANDNOT is just a NAND or a NOR with both inputs tied togetherand NAND and NOR are "duals", i.e., easy to implement one using the otherBut lets not move too fast . . . lets look at the mathematical foundation of logicCS 150 - Spring 2001 - Combinational Logic - 5An algebraic structureAn algebraic structure consists ofa set of elements Bbinary operations { + , • }and a unary operation { ' }such that the following axioms hold:1. set B contains at least two elements, a, b, such that a  b2. closure: a + b is in B a • b is in B3. commutativity: a + b = b + a a • b = b • a4. associativity: a + (b + c) = (a + b) + c a • (b • c) = (a • b) • c5. identity: a + 0 = a a • 1 = a6. distributivity: a + (b • c) = (a + b) • (a + c) a • (b + c) = (a • b) + (a • c)7. complementarity: a + a' = 1 a • a' = 0CS 150 - Spring 2001 - Combinational Logic - 6Boolean algebraBoolean algebraB = {0, 1}+ is logical OR, • is logical AND' is logical NOTAll algebraic axioms holdCS 150 - Spring 2001 - Combinational Logic - 7X, Y are Boolean algebra variablesX Y X •KY0 0 00 1 01 0 01 1 1X Y X' Y' X •KY X' •KY' ( X •KY ) + ( X' •KY' )0 0 1 1 0 1 10 1 1 0 0 0 01 0 0 1 0 0 01 1 0 0 1 0 1( X •KY ) + ( X' •KY' )  X =KYX Y X' X' • Y0 0 1 00 1 1 11 0 0 01 1 0 0Boolean expression that is true when the variables X and Y have the same valueand false, otherwiseLogic functions and Boolean algebraAny logic function that can be expressed as a truth table can be written as an expression in Boolean algebra using the operators: ', +, and •CS 150 - Spring 2001 - Combinational Logic - 8Axioms and theorems of Boolean algebraIdentity1. X + 0 = X 1D. X • 1 = XNull2. X + 1 = 1 2D. X • 0 = 0Idempotency:3. X + X = X 3D. X • X = XInvolution:4. (X')' = XComplementarity:5. X + X' = 1 5D. X • X' = 0Commutativity:6. X + Y = Y + X 6D. X • Y = Y • XAssociativity:7. (X + Y) + Z = X + (Y + Z) 7D. (X • Y) • Z = X • (Y • Z)CS 150 - Spring 2001 - Combinational Logic - 9Axioms and theorems of Boolean algebra (cont’d)Distributivity:8. X • (Y + Z) = (X • Y) + (X • Z) 8D. X + (Y • Z) = (X + Y) • (X + Z)Uniting:9. X • Y + X • Y' = X 9D. (X + Y) • (X + Y') = XAbsorption:10. X + X • Y = X 10D. X • (X + Y) = X11. (X + Y') • Y = X • Y 11D. (X • Y') + Y = X + YFactoring:12. (X + Y) • (X' + Z) =


View Full Document

Berkeley COMPSCI 150 - Combinational logic

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 Combinational logic
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 Combinational logic 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 Combinational logic 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?