SR flip flop design in Ltspice

Status
Not open for further replies.

rahul.6sept

Full Member level 5
Joined
Nov 17, 2006
Messages
243
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,298
Location
Guwahati, India
Activity points
2,889
Hi,
I'm trying to design a clocked SR flip-flop in Ltspice with a pulsed voltage source. I set the time step 100 ms. When I run it gives an error "Time step too small". I increased the time step but it does not solve the issue. Please advice me a solution to it. Attached herewith my circuit.
 

Attachments

  • SR Flip Flop.rar
    613 bytes · Views: 361

What are you calling a "clocked SR"? Those don't really go together. A JK FF is sorta like that. A SR FF is asynchronous.

100ms is pretty large for low voltage logic (and about anything else) as a.timestep.

Bistable logic wants an initialization. The "R" state asserted at DC maybe. But by im0osing a clock you may defeat any reset unless an async reset path is added.
 

Wrong circuit. A2 and A4 have inverting feedback. What do you try to achieve?


--- Updated ---

Guess you want to model a gated SR latch:



Problem is that it needs an initial condition for the output latch, also it doesn't handle the input condition S=1 and R=1 which causes an undefined output in real hardware.
--- Updated ---

You can overcome the RS latch race condition by introducing a small asymmetry, e.g. adding a pF load capacitance to one of the outputs.
--- Updated ---

 

Attachments

  • sr_ff1.zip
    1,007 bytes · Views: 313
  • sr_ff2.zip
    1 KB · Views: 288
Last edited:

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…