1

I am building a custom D flip flop in Logisim as a part of the project for my computer organization course and I am not allowed to use the built-in flip flops. When I designed this flip flop everything went well and every wire and connection was green and there was no error, however, when I reset the Simulation or try to use the circuit as a single component in another circuit, the problem shows up, and some of the internal wirings turn to red including outputs. Does anybody know a solution to overcome this problem? thanks in advance. Sorry for the bad English. Initial State

After resetting simulation

as a single component

winny
  • 14,707
  • 6
  • 46
  • 66
Milad5608
  • 23
  • 6

1 Answers1

0

You need to connect the clear input to the gates from which you get the outputs Q and Q'. When clear is pressed, Q = 0 and Q' = 1 for proper operation of the flip-flop.

An easier option would be to have a single output Q, and generate Q' from Q by connecting Q to a NOT gate.

Without clearing the flip-flop, the previous state would be unknown. In some situations, this unknownness of the previous state propagates to the following states, and the output remains unknown. Hence use a proper clear input to clear the flip-flop before testing other inputs.

Your problem is the same one described here:

Shashank V M
  • 2,321
  • 14
  • 50