Patent ID: 8299847

Claim:
A semiconductor device comprising: first and fourth power lines that are not power gated; second, third, fifth and sixth power lines that are power gated; a first logic circuit having an input node to receive an input signal and an output node to output an output signal, one power node on a high potential side and other power node on a low potential side, the one power node of the first logic circuit being connected to the third power line, and the other power node of the first logic circuit being connected to the fifth power line; a second logic circuit having an input node to receive an input signal and an output node to output an output signal, one power node on a high potential side and other power node on a low potential side, the one power node of the second logic circuit being connected to the second power line, and the other power node of the second logic circuit being connected to the sixth power line; and a control circuit that performs power gating control over the second, third, fifth and sixth power lines, respectively, wherein the control circuit controls, in a first state, an electric potential of the second and third power lines to a first potential of the first power line and controls an electric potential of the fifth and sixth power lines to a second potential of the fourth power line, the control circuit further controls, in a second state, an electric potential of the third power line to a third potential lower than the first potential, an electric potential of the second power line to a fourth potential lower than the third potential, an electric potential of the sixth power line to a fifth potential higher than the second potential, and an electric potential of the fifth power line to a sixth potential higher than the fifth potential, the first logic circuit outputs a signal having the third potential from the output node thereof in the second state, and the second logic circuit outputs a signal having the fifth potential from the output node thereof in the second state.