def check_moore(num_states, num_outputs):
    """Check whether the specified state machine is a moore machine.

    This method will raise an exception if there are more state outputs
    than the number of states.

    Parameters
    ----------
    num_states : int
        The number of bits used for states.
    num_outputs : int
        The number of state outputs.

    """
    if num_states < num_outputs:
        raise ValueError('Specified FSM is not Moore: ' +
            '{} states but {} outputs.'.format(num_states, num_outputs))
