1. A logic system for implementing a state machine, wherein the state machine comprises a plurality of states, and wherein each of the plurality of states has one or more possible next states which may be reached by a single state transition, the logic system comprising: a control unit configured to produce configuration signals; and a plurality of configurable logic blocks (CLBs) coupled to the control unit, wherein each of the plurality of CLBs is configurable to perform one or more selected logic functions in response to the configuration signals; wherein when the state machine is in a given state: one of the plurality of CLBs is "active", wherein the active CLB is coupled to receive a plurality of input signals and performs one or more logic functions associated with the state in order to produce a plurality of output signals; and the control unit provides configuration signals to a number of the remaining CLBs equal to the number of possible next states in order to configure each of the number of the remaining CLBs to perform one or more logic functions associated with one of the one or more possible next states.