DOC PREVIEW
Berkeley COMPSCI 150 - Lecture Notes

This preview shows page 1 out of 4 pages.

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

Unformatted text preview:

CS150 Week 5, lecture 2 Covers:1) Glitches2) Solutions to glitch problems3) Converting to NAND4) Counters1) GlitchesGlitch: uninvited pulse at output.Hazard – circuit with potential for glitchesSimple examples: A Should always be 1, but could glitch to 0: Static 1 hazard. F A __ A F Glitch!!! A Should always be 0, but could glitch to 1: Static 0 hazardFHow does a hazard look on a K-map? _F = AB + ACIn SOP form: 1-1 correspondence between implicant (circled groups on K-map) and AND gates. The “job” of each AND gate is to represent a piece of the ON set. “Most” implicants/AND gates output 0 Moving inside the circle:i) No change on inputs to implicantii) No change on outputs In the ON set, worry about glitching to 0. In the OFF set, worry about glitching to 1.AF 00 01 11 10 0 1 ABC0 0 1 01 1 1 011AFBCAF2) Solutions to glitch problemsSOP: _F = AB + AC + BCPOS: _F = ( A + C )( A + B )( B + C )3) Converting to NAND Say you had a circuit like this: And someone told you to implement it with only NAND gates. What should you do? Answer:Replace with and bubble push…AF1BCAFBC 00 01 11 10 0 1 ABC0 0 1 01 1 1 0AF0CBAFBC 00 01 11 10 0 1 ABC0 0 1 01 1 1 0Now this circuit can be built with just inverters and NAND gates. (You can also build inverters from NAND gates and completely convert the circuit to a NAND circuit. NAND: )SOP AND/OR to NAND/NAND (as above) andPOS OR/AND to NOR/NOR:DON’T USE RULES. Understand bubble pushing.4) CountersOffset and limit counters covered in first lecture of week 5.The truth table for a binary counter: PS NS2 1 0 2 1 00 0 0 0 0 10 0 1 0 1 00 1 0 0 1 10 1 1 1 0 01 0 0 1 0 11 0 1 1 1 01 1 0 1 1 11 1 1 0 0 0 00 01 11 10 0 1 PS2PS1PS00 0 1 10 1 0 1NS2 00 01 11 10 0 1 PS2PS1PS00 1 1 01 0 0 1NS1 00 01 11 10 0 1 PS2PS1PS01 1 1 10 0 0 0NS0 ___NS0 = PS0 ___ ___NS1 = PS1 PS0 + PS1 PS0 = PS1 PS0 ___ ___ ___NS2 = PS2 PS0 + PS2 PS1 + PS2 PS1 PS0NSLogicD2 Q2D1 Q1D0 Q0PS2PS1PS0Do you need the midterm review


View Full Document

Berkeley COMPSCI 150 - Lecture Notes

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 Notes
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 Notes 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 Notes 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?