Digital Electronics: State machine

AI Thread Summary
The discussion revolves around analyzing a digital system with two flip-flops, leading to four states (00, 01, 10, 11) and an expected state transition table with eight rows. Participants are tasked with creating a transition table that includes inputs A, B, and Y, along with outputs for the next states of the flip-flops. Confusion arises regarding the behavior of JK flip-flops when both inputs are the same, and how to determine the next state outputs without knowing the current state. Additionally, there is a question about whether the circuit qualifies as a Mealy machine due to feedback from outputs to inputs. The conversation highlights the complexities of state machine design in digital electronics.
6021023
Messages
90
Reaction score
0

Homework Statement



(a) How many states does this system have?
(b) How many rows will there be in a state transition table?
(c) Provide the state transition table.
(d) Draw a state diagram of the system.
(e) Describe what the circuit does in words.

y2002p2q3.png


Homework Equations


The Attempt at a Solution



a) I think there are two flip flops (or are they switches?), so that means that there are four states: 00, 01, 10, and 11.

b) I think the state transition table will have 8 rows. These numbers will be at the beginning of each row:

000
001
010
011
100
101
110
111
 
Physics news on Phys.org
6021023 said:

Homework Statement



(a) How many states does this system have?
(b) How many rows will there be in a state transition table?
(c) Provide the state transition table.
(d) Draw a state diagram of the system.
(e) Describe what the circuit does in words.

y2002p2q3.png


Homework Equations





The Attempt at a Solution



a) I think there are two flip flops (or are they switches?), so that means that there are four states: 00, 01, 10, and 11.

b) I think the state transition table will have 8 rows. These numbers will be at the beginning of each row:

000
001
010
011
100
101
110
111

Good. Correct so far. Now make label those three columns as A, B and Y (the inputs to the logic), and make 2 more columns for the "Next X, Next Y" outputs of the FFs. Use the logic terms shown for the J&K inputs for the 2 FFs to calculate what the Next X and Next Y outputs will be for each row. That is your transition table. Then use that to answer the rest of the questions.

Show us what you end up with!
 
A B Y Next X Next Y
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1

I'm a little bit confused as to what to do after this. I see the equation AB'Y + A'BY' going into J and K. So that means that J and K will always be the same. Is that right?
 
6021023 said:
A B Y Next X Next Y
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1

I'm a little bit confused as to what to do after this. I see the equation AB'Y + A'BY' going into J and K. So that means that J and K will always be the same. Is that right?

Yes, from the diagram, it does appear that J and K for each FF are the same. What does a JK FF do when both inputs are the same?
 
When both J and K are 0, then there is no change in outputs.
When they are both 1, then the outputs are toggled.

A B Y Next X Next Y
0 0 0

I still get stuck at this part. I can tell that next Y is going to be 0, but I can't say what next X is, because the table doesn't tell me what X currently is.

Another question. Is the circuit a Mealy machine, since the output is going back into the input?
 
Thread 'Have I solved this structural engineering equation correctly?'
Hi all, I have a structural engineering book from 1979. I am trying to follow it as best as I can. I have come to a formula that calculates the rotations in radians at the rigid joint that requires an iterative procedure. This equation comes in the form of: $$ x_i = \frac {Q_ih_i + Q_{i+1}h_{i+1}}{4K} + \frac {C}{K}x_{i-1} + \frac {C}{K}x_{i+1} $$ Where: ## Q ## is the horizontal storey shear ## h ## is the storey height ## K = (6G_i + C_i + C_{i+1}) ## ## G = \frac {I_g}{h} ## ## C...

Similar threads

Back
Top