DOC PREVIEW
SJSU CS 147 - Logic and Computer Design

This preview shows page 1-2-3-4-5-6 out of 19 pages.

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

Unformatted text preview:

Logic and Computer DesignCombinational LogicWhat is Combinational Logic?Uses for Combinational LogicBinary AdderHow does it work?In realityTTL for NAND gateNMOS Implementation of NANDPositive vs. Negative LogicCombining Logical GatesSlide 12Metrics for Combinational LogicReduction of Combinational LogicImplicantsReducing Boolean ExpressionsUsing the Karnaugh MapAnalog for Product of SumsHomogeneity of Logical GatesLogic and Computer DesignSimon Petruc-NaumCS 147 – Dr. S.M. LeeCombinational LogicWhat is it?What is it used for?How is it Implemented?Logical GatesWhat is Combinational Logic?Computers make decisions based on a combination of inputs.A combinational Logic Unit takes Boolean data as input and produces Boolean data as output.Uses for Combinational LogicCombinational Logic Units can be used to perform many functionsConsider the binary adder functionBinary AdderSingle Digit adderHow does it work?Boolean functions are created by combining logical gates.Examples of logical gates are NOT, AND, OR, NAND, NOR, XOR…In realityLogical gates are mathematical abstractions. I reality they are implemented using Transistor-Transistor Logic (TTL), or Complementary Metal Oxide Semiconductors (CMOS).TTL for NAND gateIf both A and B have a voltage than current will flow to GND otherwise it will flow to Q.NMOS Implementation of NANDSimilar to CMOS, NMOS uses onlyN-type transistors.Again we can see that if eitherA or B has voltage, F will havea currentPositive vs. Negative LogicAssigning a logical 1 to a voltage is positive LogicAssigning a logical 1 to a lack of voltage is negative logicA B F0 0 00 1 01 0 01 1 1A B F1 1 11 0 10 1 10 0 0Positive Logic AND gateNegative Logic OR gateCombining Logical GatesSum of Product form (SOP) F=A’B’C+A’BC’+AB’C’+A’B’C’Each product term is a minterm because it contains one of each variable. Each minterm has a value of 1 for exactly 1 row in the truth table (and 0 for the others)Combining Logical GatesProduct of Sum form (POS) F=(A’+B’+C)(A’+B+C’)(A+B’+C’)(A’+B’+C’)Each sum term is a maxterm because it contains one of each variable. Each maxterm has a value of 0 for exactly 1 row in the truth table (and 1 for the others)Metrics for Combinational LogicGate Count: number of logic gates in the logical unit.Gate Input Count: total number of inputs of the combined gates.Circuit Depth: Maximum number of gates along a path from inputs to outputs. (e.g. 2 for as POS and SOP)Reduction of Combinational LogicReducing the complexity of combinational logic can save cost, and improve performance.ImplicantsA product term is an implicant of a Boolean function if the function takes the value of 1 whenever the product term equals 1.A prime implicant is an implicant that cannot have any fewer literals. (i.e. cannot be reduced)Essential prime implicants cover the output of a function that no other prime implicant can cover.Reducing Boolean ExpressionsDetermine all prime implicants.Select all essential prime implicants.For non-essential prime implicants, select those that include all remaining minterms with the least amount of overlap withother prime implicants.Using the Karnaugh MapPrime implicants are rectancular groupings of adjacent minterms. (there must be 2-to-the-n minterms in each grouping).Make the biggest possible groups to reduce the number of literals in each term.Avoid overlaps to reduce the total number of terms.Analog for Product of SumsImplicants are sum terms that have a value of 0 whenever the function has a value of 0.On the K-map, we place 0’s for the maxterms.We group the 0’s into essential and non-essential prime implicants just as we did with the SOP K-map.F=AB’C+A’BC’=(A+B’+C)(A’+B+C’)Homogeneity of Logical GatesNAND and NOR can be combined to form any Boolean function. (they are universal)Using all NAND or all NOR gates can simplify the production process for integrated circuits, and reduce costs.Converting a logical expression to all NAND or NOR gates can however, increase circuit


View Full Document

SJSU CS 147 - Logic and Computer Design

Documents in this Course
Cache

Cache

24 pages

Memory

Memory

54 pages

Memory

Memory

70 pages

Lecture 1

Lecture 1

53 pages

Cisc

Cisc

18 pages

Quiz 1

Quiz 1

4 pages

LECTURE 2

LECTURE 2

66 pages

RISC

RISC

40 pages

LECTURE 2

LECTURE 2

66 pages

Lecture 2

Lecture 2

67 pages

Lecture1

Lecture1

53 pages

Chapter 5

Chapter 5

14 pages

Memory

Memory

27 pages

Counters

Counters

62 pages

Load more
Download Logic and Computer Design
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 Logic and Computer Design 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 Logic and Computer Design 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?