The JK flip flop nand gate circuit that I built does not simulate

AI Thread Summary
The discussion centers around issues with simulating a JK flip-flop NAND gate circuit. Participants question the original poster about the specifics of the simulation problem, including the simulator used and the initial conditions set for the circuit. There are suggestions to ensure proper input signals and to check if the simulator can handle feedback paths. The conversation highlights the importance of defining initial states for accurate simulation results, as well as the need for additional components like power supplies and resistors. Overall, the lack of detailed information from the original poster limits the ability to provide effective troubleshooting advice.
NYAME EPHRAIM
Messages
10
Reaction score
1
Capture EEW.PNG
 

Attachments

  • Capture EEW.PNG
    Capture EEW.PNG
    3.3 KB · Views: 2,261
Engineering news on Phys.org
Circuit looks ok to me. What do you mean by "does not simulate"?
 
I don't know if this is the problem as it depends on your simulator but...

If you built this circuit and powered it up what would the output state be? Q=1,0 or indeterminate?
 
@NYAME EPHRAIM -- is this for a schoolwork question or schoolwork project?
 
berkeman said:
@NYAME EPHRAIM -- is this for a schoolwork question or schoolwork project?
project it does not
CWatters said:
I don't know if this is the problem as it depends on your simulator but...

If you built this circuit and powered it up what would the output state be? Q=1,0 or indeterminate?
it does not even simulate in the first please
 
CWatters said:
Circuit looks ok to me. What do you mean by "does not simulate"?
it does not work when i simulate it, i don't know if the nand gates i used are the current gates or they are specifications ?
 
NYAME EPHRAIM said:
project it does not

it does not even simulate in the first please
well when you power it up the output should be zero, one you change the stat ot any J or K, then one of the outputs will be high, the you can use the clock pulse to change the output state, as you apply the pulse the output state change one side becoming high and the other low!
 
Last edited by a moderator:
NYAME EPHRAIM said:
well when you power it up the output should be zero, one you change the stat ot any J or K, then one of the outputs will be high, the you can use the clock pulse to change the output state, as you apply the pulse the output state change one side becoming high and the other low!
What software are you using to simulate it? Does the software have a way you can label all of the node voltages? How do you define the 2 inputs at the left?

If you put a vitruial oscilloscope on the clock input, do you see the clock that you expect?
 
make sure you can drive the leds with ttl or your cmos output, you may need a buffer and current limiting resistors. I'd try driving all the input gates high (including the clock) first to test the circuit.

do they still use logic pulsers, tracers and breadboards or am I old fashioned?
 
  • Like
Likes CWatters
  • #10
NYAME EPHRAIM said:
it does not work when i simulate it...

What does it do?

Are you applying signals to the JK inputs or are they fixed at 00?
 
  • #11
NYAME EPHRAIM said:
well when you power it up the output should be zero, one...

Why?
 
  • #12
A JK flip-flop is considerably more complex:
74LS76.jpg
 

Attachments

  • 74LS76.jpg
    74LS76.jpg
    20.6 KB · Views: 2,025
  • #13
Svein said:
A JK flip-flop is considerably more complex:
Only if you want the "clear" and "set" inputs. As basic design the layout in post 1 should work. It https://www.electronics-tutorials.ws/sequential/seq_2.html, however.
 
  • Like
Likes CWatters
  • #14
NYAME EPHRAIM said:
it does not even simulate in the first please

Does this mean the tool can't solve for the dc operating point before doing the transient simulation?
Something like what spice might do.
The tool might not be able to deal with the feedback paths and you might be required to specify an initial condition at each gates output.
 
  • #15
Sadly the OP hasn't said what he means by it does not simulate. So its impossible to help him.
 
  • #16
It is probably a simple problem.
Have you set the clock frequency and turned on the clock ?

Have you built a simple RS flip flop and made it work ?
 
  • #17
Svein said:
A JK flip-flop is considerably more complex:
View attachment 225532
Probably because the OP's circuit doesn't have Set and Clear inputs. Either way, unless the simulator is told what the initial state is, it can't know. A question I asked in an interview: What is the output state of such a circuit. Answer: Don't care. Actually, don't KNOW. If the output can detonate a bomb, you very much do care. You don't care what the J & K inputs are until you clock it, and if the inputs cause it to toggle, you still don't know what the outputs are.
 
  • #18
That is an RS flip-flop.
Not a JK.
JK is based on RS but with much more lines.
You probably need to set initial output values in order to simulate, if the simulator supports it.
If R=1 and S=1, the result would be undetermined, and flipping between 0 and 1.
 
  • #19
I think we are wasting unless the OP comes back and provides more information.

The fact that the initial state is indeterminate has been pointed out about five times so far.
 
  • #20
I see no battery or power supply? There are no other parts, capacitors, resistors, diodes? What is the part number of the IC? Do google search for the part number you will find lots of circuit drawings online. Look up the part number is Cmos cookbook or TTL cookbook.
 
  • #21
gary350 said:
I see no battery or power supply? There are no other parts, capacitors, resistors, diodes?
That is because the schematic is a logic simulation only, not hardware.

@ NYAME EPHRAIM, what is the simulation package ?
Does anyone recognise the simulation package. Is EEW a clue ?

If you want to simulate logic with a free open source package look here ...
https://en.wikipedia.org/wiki/Logisim
https://sourceforge.net/projects/circuit/?source=directory
 
  • #22
Just a quick look - it seems to me that the OP circuit will oscillate when J=1, K=1 and Clock=1...
 
  • #23
The OP hasn't answered previous questions or contributed to this thread for 6 days.
 
  • #24
CWatters said:
The OP hasn't answered previous questions or contributed to this thread for 6 days.
Yes, and yet he just posted a new thread start in the schoolwork forums 30 minutes ago (which was deleted for several reasons). So it seems he may not be interested in this thread anymore for some reason... :headbang:
 
Back
Top