Patent ID: 8281316

Claim:
An event direction detector comprising: a processor which includes: an event detection part that includes a finite state machine part in a steady state and an event driven processing unit, distinguishes between an external event and an internal event, and detects an direction of an event, said finite state machine part and said event driven processing unit being combined via a shared variable internal to a block; an external event input terminal via which an external event is input; an external event output terminal via which the external event is output; a first operation function that acts as an intermediary of an input/output of the external event and that transfers an external event input to an external event output; an internal event input terminal via which an internal event is input; an internal event output terminal via which the internal event is output; a second operation function that acts as an intermediary of an input/output of the internal event and that transfers an internal event input to an internal event output; a third operation function that transfers the outputs to said finite state machine of the block; a first editing function that receives and edits the external event input terminal, via which the external event is input, and the external event output terminal via which the external event is output; a second editing function that receives and edits said first operation function; a third editing function that receives and edits the internal event input terminal, via which the internal event is input, and the internal event output terminal via which the internal event is output; a fourth editing function that receives and edits said second operation function; and a steady-state response processing unit, composed of a finite state machine, and an event driven processing unit; a shared unit that acts as an intermediary between said processing units; a fifth editing function that receives and edits operation specifications of said steady-state response processing unit, composed of a finite state machine, and said event driven processing unit; and a sixth editing function that receives and edits components of said shared unit that acts as an intermediary between said processing units.