160 likes | 257 Views
Input. Combinational Logic. Output. Excitation Vectors. States. Memory. RS Latch Q+ = S + R’ Q. Two Problems: R=S= 1 Not allowed, Data is transparent. Q. D. CLK. The D Latch. Q + = D. Problem: Level sensitive. JK Latch : Universal, Level sensitive,
E N D
Input Combinational Logic Output Excitation Vectors States Memory
RS Latch Q+ = S + R’ Q Two Problems: R=S= 1 Not allowed, Data is transparent
Q D CLK The D Latch Q+ = D Problem: Level sensitive
JK Latch : Universal, Level sensitive, Timing Constraints due to feed back.
Master Slave Flip Flop Edge sensitive,Set up and Hold time
Master Slave Flip Flop Edge sensitive,-Falling Edge Set Up and Hold Time constraints Path to setup data Master Slave Q Q Q D D D D D Latch Latch Q C C C Path to hold data D C Q
Edge triggered Flip Flop: Set up and Hold time Constraints
Edge Triggered, D Flip Flop, With Reset NAND1 S Q NAND2 NAND5 clk R NAND3 NAND6 D NAND4 reset Active Low
Edge Triggered, D Flip Flop When CLK=0 NAND1 S 1 0 Q NAND2 NAND5 Clk=0 0 R 1 NAND3 NAND6 D NAND4 reset Active Low
NAND1 S Q NAND2 NAND5 clk R NAND3 NAND6 D NAND4 reset When CLK changes from 0 to 1 Case1, D=0: tsetup= t4, thold=t3 Path for hold Path for set up
NAND1 S Q NAND2 NAND5 clk R NAND3 NAND6 D NAND4 reset When CLK changes from 0 to 1 Case2, D=1 tsetup=t4 + t1 thold= t2 Path to set up Path to hold
NAND1 S Q NAND2 NAND5 clk R NAND3 NAND6 D NAND4 reset When CLK changes from 0 to 1 Case1, D=0: tsetup= t4, thold=t3 Case2, D=1 tsetup=t4 + t1 thold= t2
J T T Q K CLK CLK Q T-Flip Flop Q+ = JQ’ + K’Q J=K=T Q+ =TQ’ + T’ Q T=1 Q+ = Q’ T=0 Q+ = Q
Q D D T Q T CLK CLK CLK Q T-Flip Flop Q+ = JQ’ + K’Q J=K=T Q+ =TQ’ + T’ Q T=1 Q+ = Q’ T=0 Q+ = Q