A method for operating an integrated circuit with self-test circuit, said integrated circuit comprising at least one logic circuit, at least one input storage element for storing work data, at least one output storage element, at least one input test storage element for storing test data and at least one output test storage element, wherein the logic circuit is selectively connected to the output storage element and to the output test storage element on the output side of the logic circuit, the method comprising:
- connecting the logic circuit selectively to the input storage element on an input side of the logic circuit,
- providing work data to the logic circuit by means of the input storage element,
- feeding the work data processed by the logic circuit to the output storage element, and
- processing the data from the logic circuit in the output storage element;
- or
- connecting the logic circuit selectively to the input test storage element on the input side of the logic circuit,
- providing test data to the logic circuit by means of the input test storage element,
- feeding the work data processed by the logic circuit to the output test storage element and to the output storage element;
- and
- ignoring the data from the logic circuit in the output storage element.