1. An integrated circuit, comprising: a logic circuit including one or more logic gates; and a control circuit controlling the logic of the logic circuit, the control circuit comprising one or more control elements, said one or more control elements comprising at least one programmable resistance element and/or at least one threshold switching element, wherein at least one of the logic gates comprises a configuration input, and wherein the control element is connected to the configuration input of the at least one logic gate so as to control the logic state of the at least one logic gate.