1 / 45

Review: ALU, Latches, and Flip Flops

Review: ALU, Latches, and Flip Flops. CS 231 Review October 12, 2007. Slides adapted from Sangkyum Kim. Announcements. HW 5 is released Due at 5:00pm on 10/15/2007 (Mon) Contains one LogicWorks problem Grades through HW4 Should be in Mallard Today (10/12)

tayten
Download Presentation

Review: ALU, Latches, and Flip Flops

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. Review: ALU, Latches, and Flip Flops CS 231 Review October 12, 2007 Slides adapted from Sangkyum Kim

  2. Announcements • HW 5 is released • Due at 5:00pm on 10/15/2007 (Mon) • Contains one LogicWorks problem • Grades through HW4 • Should be in Mallard • Today (10/12) • Deadline to drop semester course

  3. Agenda • ALU • Latches • Flip-Flops

  4. ALU Motivation Basic 4-bit adder: S = A + B + CI Adder-subtractor: G = X + Ywhen Sub= 0 G = X – Y when Sub = 1

  5. ALU Motivation

  6. Table of arithmetic functions

  7. Mapping the table to an adder

  8. Building the input logic Ai = S2Yi’ + S1Yi

  9. Primitive gate implementation Ai = S2Yi’ + S1Yi

  10. Quiz10 Q3

  11. Quiz10 Q3

  12. Agenda • ALU • Latches • Flip-Flops

  13. Basic Latches SR Latch S’R’ Latch

  14. Advanced Latches SR Latch with a control input D Latch

  15. Latches Gate delay = 1 ns

  16. Latches

  17. Latches

  18. Latches

  19. Latches

  20. Latches

  21. Latches

  22. Latches

  23. Latches

  24. Latches

  25. Latches

  26. Latches

  27. Latches

  28. Latches

  29. Latches

  30. Latches

  31. Latches

  32. Latches

  33. Latches

  34. Agenda • ALU • Latches • Flip-Flops

  35. Flip Flops and Characteristic Tables Q(t+1) = D Q(t+1) = K’Q(t) + JQ’(t) Q(t+1) = T’Q(t) + TQ’(t) = T  Q(t)

  36. Example Implement a JK flip-flop using a D flip-flop and primitive gates.

  37. Example Implement a JK flip-flop using a D flip-flop and primitive gates.

  38. Example Implement a JK flip-flop using a D flip-flop and primitive gates.

  39. Example Implement a JK flip-flop using a D flip-flop and primitive gates.

  40. Example Implement a JK flip-flop using a D flip-flop and primitive gates.

  41. Example Implement a JK flip-flop using a D flip-flop and primitive gates.

  42. Example Implement a JK flip-flop using a D flip-flop and primitive gates.

  43. Example Implement a JK flip-flop using a D flip-flop and primitive gates. K 0 1 0 0 1 1 0 1 J Q

  44. Example Implement a JK flip-flop using a D flip-flop and primitive gates. K 0 1 0 0 1 1 0 1 J Q D = Q K’ + Q’ J

  45. Example Implement a JK flip-flop using a D flip-flop and primitive gates. K 0 1 0 0 1 1 0 1 J Q D = Q K’ + Q’ J

More Related