Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

D Flip Flop Question (not working?)

jdwoodall
Participant

D Flip Flop Question (not working?)

jdwoodall
Participant
Participant

I have a simple divide by 2 circuit.   I have built this same circuit 100's of times.   Using the ngspice library D-FF, both Q and Q-Not are high.  I have set R & S to both 1 and zero with no change.  Both outputs are always high.  Something seems very broking.  Any ideas?  Thanks in advance.

 

Circtui Capture.JPG

0 Likes
Reply
Accepted solutions (1)
577 Views
1 Reply
Reply (1)

cacklestein
Autodesk
Autodesk
Accepted solution

The DFF starts in an indeterminate state. You need to toggle set or reset (but not both simultaneously) at startup to move the DFF into a particular state before proceeding. They are both positive logic. So one way to get this to work is to hold the SET line continually low, and to perform an initial toggle of the RESET signal.

Initial reset of DFFInitial reset of DFF



First Name Last Name or First Name.Last Initial
Public Facing Job Title
0 Likes