Representing a logic device generally includes creating a model of a logic device, where the model represents a collection of variants of the logic device. If a standard, preset composition guideline is not appropriate for a particular subject to be photographed, a user may select from a plurality of additional composition guidelines stored in a memory portion of the camera phone. A state machine includes a counter going through a complete cycle in response to a non-integer number of global clock cycles.