Docsity

Signaling and Circuit Design of D and RS Latches, D Flip-Flops - Prof. Bruce Robert Childe, Study notes of Computer Science

Toggle sidebar
bg1
1
CS/CoE1541: Intro. to Computer Architecture University of Pittsburgh
State Elements
RS latch
R,S control mode (reset, set, storage)
Q,Q’ track R and S
R=1, S=1 invalid
D latch
C controls mode (0=latched, 1=transparent)
D is data input (“copied” during transparent)
Signal value triggered: Q,Q’ track D when C=1
Guarantees R=1,S=1 can not be done
D flip-flop (falling or negative edge triggered)
Two cascaded D latches
C=1 means 1st latch transparent, 2nd latched
C=0 means 1st latch latched, 2nd transparent
Output changes on falling edge (C: 1=>0)
D flip-flop (rising or positive edge triggered)
Same as falling edge triggered
Output changes on rising edge (C: 0=>1)
CS/CoE1541: Intro. to Computer Architecture University of Pittsburgh
Signaling Behavior
RS latch behavior Q goes low R=1,S=0
Storage mode
Q goes high R=0,S=1
pf3
pf4
pf5

Partial preview of the text

Download Signaling and Circuit Design of D and RS Latches, D Flip-Flops - Prof. Bruce Robert Childe and more Study notes Computer Science in PDF only on Docsity!

CS/CoE1541: Intro. to Computer Architecture (^) University of Pittsburgh

State Elements

RS latch R,S control mode (reset, set, storage) Q,Q’ track R and S R=1, S=1 invalid D latch C controls mode (0=latched, 1=transparent) D is data input (“copied” during transparent) Signal value triggered: Q,Q’ track D when C= Guarantees R=1,S=1 can not be done D flip-flop (falling or negative edge triggered) Two cascaded D latches C=1 means 1st^ latch transparent, 2nd^ latched C=0 means 1st^ latch latched, 2nd^ transparent Output changes on falling edge (C: 1=>0) D flip-flop (rising or positive edge triggered) Same as falling edge triggered Output changes on rising edge (C: 0=>1) CS/CoE1541: Intro. to Computer Architecture (^) University of Pittsburgh

Signaling Behavior

RS latch behavior (^) Q goes low R=1,S= Storage mode Q goes high R=0,S=

CS/CoE1541: Intro. to Computer Architecture (^) University of Pittsburgh

Signaling Behavior

D latch behavior Q goes C=1, D= Q tracked D when C= Q went low C=1,D= Q stays low b/c C= CS/CoE1541: Intro. to Computer Architecture (^) University of Pittsburgh

Signaling Behavior

D flip-flop (falling edge triggered) no change b/c not falling edge tracks D at time of falling edge no change b/c not a falling edge

CS/CoE1541: Intro. to Computer Architecture (^) University of Pittsburgh

Example circuits and clocking

CS/CoE1541: Intro. to Computer Architecture (^) University of Pittsburgh 59

Example circuits and clocking

 Is there any difference in the delay with this one?

 In fact, sequential logic often looks like this….

CS/CoE1541: Intro. to Computer Architecture (^) University of Pittsburgh 60

Example circuits and clocking

 Now, suppose we want to build a 4-bit counter?

  • Counter increments by 1 for a clock pulse (falling edge event)
  • 4 1-bit adders
  • 4 1-bit D flip-flops

 What’s the circuit?

 How often to “pulse” the clock (increment counter)?

CS/CoE1541: Intro. to Computer Architecture (^) University of Pittsburgh

Example circuits and clocking

Recall: The flip-flops are edge triggered -- assuming falling edge (negative) How often can an edge event happen? No more frequent than the maximum propagation delay Let’s compute the delay -- assume 2ns for latch to stabilize and 4ns for adder

CS/CoE1541: Intro. to Computer Architecture (^) University of Pittsburgh 64

Example circuits and clocking

Can we build a counter with just flip-flops?

What’s the maximum clock pulse rate?