Understanding D Flip Flop Behavior: Clock Effects on NAND Gates

  • Thread starter Thread starter Jakes
  • Start date Start date
  • Tags Tags
    Flip flop
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 25K views
Jakes
Messages
7
Reaction score
0
d-flipflop_284-nand_1-not29.png


when D will be 0 then in the first input to the lower nand gate will be 1 and the first input to the upper nand gate will be 0 If clock (CLK) = 1 then in the upper Nand gate 0 NAND 1 will be 1
and in the lower nand gate 1 NAND 1 will be 0.
now In the Second upper NAND gate 1 will go as the first input and the second input will be Q Complement ... Now what will be this Q complement or Q' 0 or 1 .. and Why ??
 
Physics news on Phys.org
When CLK == 1, then the left upper NAND gate will output ~D and the left lower NAND gate will output D. Then the upper right NAND gate will output D to Q and the lower right NAND gate will output ~D to Q'. So when CLK == 1, Q == D, and Q' = ~D

After this, if CLK == 0, Q and Q' will not change regardless of D.

Note, if the initial state is CLK == 0, and Q == Q', then a race condition exists.
 
Last edited: