1 / 12

Lab 8 . D-type Flip-Flop

Lab 8 . D-type Flip-Flop. Presenter: Chun-Hsien Ko Contributors: Chung-Ting Jiang and Lin-Kai Chiu. Sequential Logic Circuits Status ( Memory ) and Timing (Clock) How to Save the Status? Latch, e.g., SR Latch Flip-Flop, e.g., D-FF (D-type Flip-Flop) LAB: IC : 7400 (NAND) x 2 、 LED x 1.

traceyj
Télécharger la présentation

Lab 8 . D-type Flip-Flop

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. Lab 8. D-type Flip-Flop Presenter: Chun-Hsien Ko Contributors: Chung-Ting Jiang and Lin-Kai Chiu Dept. of Electrical and Computer Eng., NCTU

  2. Sequential Logic Circuits • Status (Memory) and Timing (Clock) • How to Save the Status? • Latch, e.g., SR Latch • Flip-Flop, e.g., D-FF (D-type Flip-Flop) • LAB: • IC:7400 (NAND) x 2、LED x 1 Dept. of Electrical and Computer Eng., NCTU

  3. Two Types of Logic Circuits • Combinational logic circuits • depends only on current inputs • E.g., A + B = C • Sequential logic circuits • depends on past and current inputs • E.g., A[n]=A[n-1]+B Memory and Clock!! Dept. of Electrical and Computer Eng., NCTU

  4. SR Latch • Steady state results • Feedback from output 0 1 0 1 R R R R 1 Q Q Q Q 0 1 Q’ Q’ Q’ Q’ S S S S 0 Q 1 Q’ 1 Dept. of Electrical and Computer Eng., NCTU

  5. SR Latch • Steady state results • Feedback from output (2) (1) 1 0 1 (3) 1 0 0 (4) 1 (4) 0 R R R R 1 Q Q Q Q 0 1 (3) (1) A NAND 1 = A’ 1 Q’ Q’ 1 Q’ Q’ S S S S (2) 0 (4) (1) 1/0 0/1 Q 1 (3) (2) 0/1 1/0 Q’ 1 Dept. of Electrical and Computer Eng., NCTU

  6. Timing: Clock Input • When to set and reset • How to synchronize devices with memory • Positive (rising) edge triggered • Negative (falling) edge triggered time Dept. of Electrical and Computer Eng., NCTU

  7. Flip Flops • Using clock input to determine the status changing • Different types of Flip-Flop • SR (Set and Reset) • D (Input = Output), T (Input != Output) • JK (When S=0, R=0, Q=Q’) • Trigger type • Rising(positive)-edge • Falling(negative)-edge Dept. of Electrical and Computer Eng., NCTU

  8. LAB 8: Implement a D-FF with NAND gates • Goal: D-type positive edge triggered Flip-Flop • IC: 7400 (NAND) x 2、LED x 1 Dept. of Electrical and Computer Eng., NCTU

  9. CLK: 0->1, S = D, R = D’; otherwise, R=1, S=1 1 R 2 5 Q Clock 6 Q’ 3 S SR Latch 4 D Dept. of Electrical and Computer Eng., NCTU

  10. Clock: 0->1 Clock = 1, D: X->X’ Clock = 0 X X->X X X’ 1 1->X’ R R R 0->1 1 0 Clock Clock 1->X Clock X 1 S S S X’ X’->1 X’ X X X->X’ D D D S, R will not change with D S = X, R = X’ ⟹ Set the latch as X S, R = 1 ⟹ Hold Dept. of Electrical and Computer Eng., NCTU

  11. How to implement 3-input NAND gate? 1 R 2 5 Q Clock 6 Q’ 3 3 S 4 D How to realize 3-inputs NANDs with 2-inputs NANDs? Dept. of Electrical and Computer Eng., NCTU

  12. You can connect output of 555 to a buffer • Oscillator would be more stable • E.g., connect output of 555 to an inverter or AND output of 555 with signal 1 + - 555 Calculator (Website) Dept. of Electrical and Computer Eng., NCTU

More Related