Here is an example: enter image description hereenter image description here

The periode of the this circuit is 9, and i want to build a digital circuit with only J-K flip flops.

Here is my argument, I can tell there is nine different states that leads to four possible combinations, for instance 0 results in 00 ... . In order to describe these nine states we need at least four bits, so we need four J-K flip flops to fully design the digital circuit.

There is also another argument, says, count the number of maximum occurrence, this would be the minimum number of logical ports that require to build the circuit. To clarify myself, here the 11 state comes four times and the rest each one or three times.

Are these two arguments equivalent? I had a very brief course on digital circuit at college, so i appreciate any reference to a reliable source if my question too general to be answered here.

  • \$\begingroup\$ What is happening with the other input(s) to this circuit? How do you know what its initial state will be? \$\endgroup\$ Aug 4 '18 at 16:54
  • \$\begingroup\$ @ElliotAlderson If you mean J's and K's port, i don't know it yet, the Q1 and Q2 are the outputs of the first two flip flops. I added a new photo. \$\endgroup\$ Aug 4 '18 at 17:35
  • \$\begingroup\$ The question cannot be answered if you don't know what the initial state of the flip-flops will be. Do you have a reset input? Any other inputs? Yes or no? \$\endgroup\$ Aug 4 '18 at 17:50
  • \$\begingroup\$ @ElliotAlderson No, nothing else. \$\endgroup\$ Aug 4 '18 at 18:10

You do need four flip-flops to build the machine, but not simply because there are nine states. If you make a table that shows Q1 and Q2, then add as many bits as are necessary to give each state a unique representation, the result will be four total bits.

However, without some kind of reset input the machine could wake up in one of the seven (\$2^4\$ possible states minus the 9 that are defined) unused states. Your problem definition doesn't suggest how we should deal with that possibility.

I don't understand your "another argument". I don't know what you mean by "ports".

  • \$\begingroup\$ The first paragraph solves my problem, just one more thing, there are four different states why we need four bits ? i mean i can assign 00, 01, 10, 11 to each state which in total twee bits. About the second argument, i don't understand it either, it's not coming from me. Thank you \$\endgroup\$ Aug 4 '18 at 20:33
  • 1
    \$\begingroup\$ There aren't just four states. There is the 11 state that comes right after the 01 state, then there is the 11 state after that, and so on. If you don't keep these states separate you won't know when to go to the 10 state. \$\endgroup\$ Aug 4 '18 at 20:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.