1 / 17

COMPSCI 210 Semester 1 - 2015

This tutorial provides a review of Boolean algebra and examples of logic gates. It includes exercises to write truth tables for different expressions and circuits, as well as explanations of De Morgan's Theorem and memory concepts.

Download Presentation

COMPSCI 210 Semester 1 - 2015

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. COMPSCI 210Semester 1 - 2015 Tutorial 2: Logic Gates

  2. Review of Boolean algebra Example 1 . Write the truth table for : B+(BA)=F(AB)

  3. ___ • Exercise 1: write a “truth table” for: • a) (x+y+z)(xyz) • b) (XYZ) + (XY) (Z+Y) • c) PT(P+Z) _ _ _

  4. Basic logic gates • Not • And • Or • Nand • Nor • Xor

  5. NAND Gate X Z X Y Z 0 0 1 0 1 1 1 0 1 1 1 0 NOT-AND Y NAND W = X.Y Z = W = X.Y _ ____ X ____ W Z = X.Y nand(Z,X,Y) Z Y

  6. NOR Gate NOR NOT-OR W X X Z Z Y Y _______ _ _______ Z = (X + Y) nor(Z,X,Y) W = X + Y Z = W = (X + Y) X Y Z 0 0 1 0 1 0 1 0 0 1 1 0

  7. (x+y)y y Rosen, §10.3 question 1 • Find the output of the following circuit • Answer: (x+y)y x+y __

  8. ___ _ _ x y x y x y Rosen, §10.3 question 2 • Find the output of the following circuit • Answer: xy

  9. x+y x Rosen, §10.3 question 6 • Write the circuits for the following Boolean algebraic expressions • x+y __

  10. (x+y)x x+y Rosen, §10.3 question 6 • Write the circuits for the following Boolean algebraic expressions • (x+y)x _______ x+y

  11. Example • Draw the circuit diagram to implement the expression

  12. Create truth table for the following circuit:

  13. Exercise 2: Create truth table for the following circuit:

  14. Exercise 3: Draw the truth table for this decoder:

  15. Exercise 3 - Solution

  16. De Morgan’s Theorem • NOT all variables • Change . to +and +to . • NOT the result • -------------------------------------------- _______ _______ __ __ ______ __ __ __ __ __________ (X . Y) = (X + Y) = X + Y X . Y (X + Y) = __ __ X + Y =

  17. Memory • A flip-flop holds a single bit of memory • The bit “flip-flops” between the two NAND gates • In reality, flip-flops are a bit more complicated • Have 5 (or so) logic gates (transistors) per flip-flop • Consider a 1 Gb memory chip • 1 Gb = 8,589,934,592 bits of memory • That’s about 43 million transistors! • In reality, those transistors are split into 9 ICs of about 5 million transistors each

More Related