For the sequential machine in the circuit diagram:a) Determine Boolean expressions for next state logic and output logic from the circuit. That is, express D1, D0 and F as logic expressions in terms of Q1, Q0 and X.b) Fill in the state table, given below.present state(output) next state q2 q1 q0 q2 q1 q00 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1c) Draw a state transition diagram for this sequential machine and timing diagram with CLK, Zo, Z1, and d) From the timing diagram, what the function of this sequential circuit.