In: Computer Science
A clocked sequential circuit has three states, A, B, and C, and one input X. As long as the input X is '1', the circuit alternates between the states A and C. If the input X becomes '0' (either in state A or C), the circuit goes to the state B and remain in state B as long as X continues to be '0'. The circuit returns to state A if the input becomes '0' once again and from then on repeats its behavior. Assume that the state assignments are A = 00, B = 01, and C = 10. Answer the following. (1) Draw the state diagram of the circuit. (2) Design the circuit using D-flipflops. *
Givan Three States - State A , State B , State C
One input - X
(1)State Diagram:
Explanation:As long as the input X is '1', the circuit alternates between the states A and C indicates that for input value X=1 circuit will be altered between A and C.If X=0 them it goes to State B and will be in State B as X continuos to be X=0 So a self loop is drawn for input value X=0.The circuit returns to state A if the input becomes '0' once again and from then on repeats its behavior indicates that repeats for X=0.
(2) Design the circuit using D-flipflops.
Explanation:Dp=X , So Dp is taking input from X , Internal clock (CLK) is taking input from External clock (CLK) , a AND gate is taking inputs and producing outputs.the final outputs are P and Q.
As shown in the table If P=0 and Q=0 it will be in state A , If P=0 and Q=1 it will be in state B , if P=1 and Q=0 it will be in state C.
P | Q | State |
0 | 0 | A |
0 | 1 | B |
1 | 0 | C |