Reduction of FSM power dissipation by FSM decomposition and clock gating