1. A sequential logic circuit, comprising a logic memory means which stores a predetermined logic state; a preceding logic means which is supplied with an external input and a logic state stored in said logic memory means as inputs, for generating a new logic state by executing a logic calculation upon these inputs, and for rewriting the content of said logic memory means with said new logic state; a succeeding logic means which is supplied with said logic state stored in said logic memory means as an input for outputting a logic state obtained from a logic calculation with the input; and a function defining means which defines a logic calculation executed in said preceding logic means and/or said succeeding logic means depending on the desired function.