Design an Moore FSM for an 8-interval stoplight system where thered light is ON (yellow and green lights are OFF) for 4 intervals,then yellow light is ON (red and green lights are OFF) for 1interval and then green light is ON (red and yellow lights are OFF)for 3 intervals. After the green light has been ON for threeintervals, we go back to the red light being ON for 4 intervals.Use binary encoding for states and use JK FFs for storing thestate. You have report the state machine (using 8 states), statetable, Boolean expression and a gate-level diagram (FFs +combinational logic).