The present application claims a priority on convention based on Japanese Patent Application No. 2009-135085 filed on Jun. 4, 2009. The disclosure thereof is incorporated herein by reference.
The present invention relates to a semiconductor integrated circuit, and a method of saving and recovering an internal state of the semiconductor integrated circuit.
In recent years, a semiconductor integrated circuit having a low consumption power mode such as a standby mode and a resume function is highlighted. Usually, when a power supply is stopped in a semiconductor integrated circuit, an internal state thereof is erased, excluding a nonvolatile memory. In order to restart an operation of the circuit from a state immediately before the power supply is stopped when the power supply is restarted, the internal state of flip-flops needs to be held.
A patent literature 1 discloses a technique of saving and recovering internal state of a semiconductor integrated circuit in and from a backup memory using a scan path. After the internal state is saved in the backup memory, the power supply is stopped. After the power supply is restarted, the internal state is read from the backup memory and set in a flip-flop circuit to recover the internal state.
Also, the internal state can be retained by a retention flip-flop circuit. Various methods are available for realizing the retention flip-flop circuit. For example, a retention flip-flop may be configured from a main section and a holding section. The main section requiring a high-speed operation is provided with a flip-flop including a transistor with a low threshold voltage. The holding section is provided with a flip-flop including a transistor with a high threshold voltage. Though the flip-flop in the main section has the low threshold voltage, so that the flip-flop can operate at a high speed, the flip-flop has a large leakage current. Though the flip-flop of the holding section is slow in operation, a leakage current is small. The flip-flop of the holding section is provided in the vicinity of the flip-flop of the main section. Therefore, the interconnections for the retention flip-flop are likely complicated.
Immediately before the power supply is stopped, the flip-flops of the holding section take therein data outputted from the flip-flops of the main section. While the power supply is blocked off, a circuit portion except for the flip-flops of the holding section stops the operation and the flip-flops of the holding section hold the data in a small leakage current. When the power supply is restarted, the data are outputted from the flip-flops of the holding section to the flip-flops of the main section. Thus, the data of the semiconductor integrated circuit are promptly recovered, and the semiconductor integrated circuit can restart the operation from a state immediately before the power supply is stopped.
Regards to a retention flip-flop, a technique disclosed in a patent literature 2 is known. In this technique, the retention flip-flop includes input and output nodes and two latches of a master latch and a slave latch. The latches include circuit component that are connected to the input and output nodes in serial. A first latch of the two latches holds the state of the flip-flop in a period of a power control mode when a power is disconnected from a second latch of the two latches.
When the retention flip-flop is used, a time period for restarting the operation can be shortened. However, since each of the main section and the holding section is provided with a flip-flop, the circuit area increases. Also, when the data is held in the flip-flop of the holding section, a backup power needs to be supplied. In addition, a little leakage current flows through the retention flip-flop when the flip-flop of the holding section holds the data.
In an aspect of the present invention, a semiconductor integrated circuit includes: a first circuit; and a second circuit configured to control supply of a first power to the first circuit. The first circuit includes: a third circuit comprising a group of flip-flops, whose internal state is erased in response to stop of the supply of the first power; and a fourth circuit in which an internal state of the fourth circuit is saved in retention flip-flops before the supply of the first power is stopped and recovered from the retention flip-flops in response to restart of the supply of the first power.
In another aspect of the present invention, a method of saving and recovering an internal state is provided in a semiconductor integrated circuit includes a first circuit; and a second circuit configured to control supply of a first power to the first circuit. The method is achieved by issuing an save instruction from the second circuit to the first circuit upon entering a standby state; by saving data held by a main section in a holding section in each of retention flip-flops of the first circuit in response to the save instruction; by stopping supply of the first power by the second circuit; by erasing data stored in flip-flops and data stored in the main sections of the retention flip-flops in the first circuit in response to the stop of the supply of the first power; by restarting the supply of the first power by the second circuit in response to a recovery instruction; by recovering the data saved in the holding section of each of the retention flip-flops in the main section thereof; and by restarting an operation from a state immediately before the standby state.
In still another aspect of the present invention, a designing method is provided for a semiconductor integrated circuit which includes a first circuit; and a second circuit configured to control supply of a first power to the first circuit, wherein the first circuit includes: a third circuit configured to store internal states of the third circuit in a group of flip-flops, data held by which are erased in response to a stop of the supply of the first power; and a fourth circuit configured to store internal states of the fourth circuit in a group of retention flip-flops which data are saved before the supply of the first power is stopped and recovered in response to restart of the supply of the first power. The method is achieved by setting all of flip-flops contained in a design layer of the third circuit to be flip-flops whose data are erased in response to stop of the supply of the first power; and by setting all of flip-flops contained in a design layer of the fourth circuit to the retention flip-flops.
According to the present invention, it is possible to reduce a leakage current while holding an internal state thereof. Also, the circuit area can be made small, and interconnection workability can be improved.
The above and other objects, advantages and features of the present invention will be more apparent from the following description of certain embodiments taken in conjunction with the accompanying drawings, in which:
Hereinafter, a semiconductor integrated circuit according to the present invention will be described in detail with reference to the attached drawings.
At this time, when a retention flip-flop RFF mentioned above is used as a flip-flop included in the power supply limited circuit 120, a backup power BPW must be supplied to a holding section of the retention flip-flop. Therefore, as shown in
As described above, when the retention flip-flops are used and the power supply limited circuit 120 is in the standby state, the common control circuit 110 blocks the supply of the main power MPW to the power supply limited circuit 120 so as to reduce a leakage current in the power supply limited circuit 120. According to the present invention, the leakage current in the power supply limited circuit 120 can be further reduced. That is, the retention flip-flops are not used but normal flip-flops are used as flip-flops of circuits having no relation to an ordinary operation such as a testing circuit and a debug circuit built in the power supply limited circuit 120. As shown in
The configuration thereof will be described in more details with reference to
When the power supply limited circuit 120 enters the standby state, the CPU executes an instruction to output a standby indication signal SB. When the power supply limited circuit 120 enters the standby state, the backup control circuit 112 instructs the power supply limited circuit 120 to store the internal states held in main sections 150A of the retention flip-flops 150 into holding sections 150B (
The RFF circuit 124 holds the internal states of the retention flip-flops 150. Therefore, the RFF circuit 124 is supplied with the backup power BPW and the main power MPW and controlled by the power supply control circuit 114.
The NFF circuit 122 includes a circuit used for testing and debugging a circuit and does not contribute the ordinary operation of the power supply limited circuit 120. However, the NFF circuit 122 is located in the vicinity of the RFF circuit 124 used in the ordinary operation due to a condition of a delay time and so on at a time of testing or debugging the circuit. Therefore, the NFF circuit 122 is provided in the power supply limited circuit 120 together with the RFF circuit 124. The NFF circuit 122 holds the internal states of the normal flip-flops 140 that are operated at a high speed. Accordingly, the main power MPW is supplied to the NFF circuit 122, and the leakage current in the NFF circuit 122 is reduced to be zero when the supply of the main power MPW is stopped.
In this way, the number of retention flip-flops to which the backup power BPW is supplied can be decreased to reduce the consumed power in the standby state. Further, since the normal flip-flop 140 has no holding section, the circuit area thereof is smaller than that of the retention flip-flop 150. Therefore, the area of the power supply limited circuit 120 can be reduced by decreasing the number of retention flip-flops 150. Moreover, the normal flip-flop 140 does not require an interconnection for the backup power BPW, and an interconnection easiness can be improved. In particular, since the testing circuit and the debugging circuit which are severe in a delay time are located in the vicinity of the retention flip-flops 150 for use in the ordinary operation, there can be obtained a remarkable effect of decrease in the interconnections.
Next, a holding operation at the time of shift to the standby state and a recovering operation at the time of restart of the operation from the standby state in the semiconductor integrated circuit 100 will be described.
When the power supply limited circuit 120 has no process to be executed and enters the standby state, an instruction is executed to activate the standby instruction signal SB (H), as shown in
The recovery operation is started when the startup request signal RQ is activated to the high level (H) in response to an external operation or through startup by a timer in
A reset signal NRST generated by the logic circuit 126 is supplied to each of the flip-flops NFF 140 in the NFF circuit 122. The reset signal NRST is a logical OR of a reset signal RSTB and the retention control signal NRT supplied to the power supply limited circuit 120. That is, the reset signal RSTB and the retention control signal NRT are signals having an active low level and when at least one of them is active (L), the reset signal NRST is active (L). Since the retention control signal NRT is active (L) immediately before the ordinary operation is restarted, each flip-flop is reset to an initial state at the time of restarting the operation and then the operation is started.
In this way, the main power MPW supplied to the power supply limited circuit 120 is blocked off and the leakage current is reduced. At this time, since the power supply to the all flip-flops 140 included in the NFF circuit 122 is stopped, there is no problem even if the power supply to be applied to a combinational circuit 162 and a buffer circuit 146 included in the NFF circuit 122 is blocked off (
Therefore, as shown in
In the above description, the NFF circuit 122 is reset before restarting the operation, since the internal states of the NFF circuit 122 become undefined at the time of restart of the supply of the main power MPW. However, as shown in
Although the retention control signal NRT is used as a signal for controlling the mask circuit for a brief explanation, another signal may be used. Further, as described above, by blocking off the signal to prevent the RFF circuit 124 from receiving influence of the NFF circuit 122, the power supply to the NFF circuit 122 may be blocked off at the time of ordinary operation.
As described above, according to the present invention, the flip-flops included in the power supply limited circuit 120 are classified into two groups: one is a group of first (retention) flip-flops and the other is a group of second (non-retention) flip-flops. The first flip-flops hold data indicative of the internal states, and the second flip-flops do not hold the data indicative of the internal states. The first flip-flops are flip-flops included in a circuit operable in an ordinary operation (original functioning operation) and are implemented by mapping of the retention flip-flops (RFF). The second flip-flops are flip-flops included in a circuit such as a debugging circuit and a testing circuit that does not influence on the ordinary function even if it does not operate, and are realized by mapping of the normal flip-flops (NFF).
In the non-retention flip-flops (NFF), since the held data is undefined after the restart of the power supply so that a malfunction could be caused, a circuit is added to suppress or control propagation of the undefined data from the non-retention flip-flops. This circuit is realized by a method of providing a mask circuit in a path from the non-retention flip-flops (NFF) to the RFF circuit 124 including the retention flip-flops (RFF) to block off the undefined signals, or a method of providing a reset circuit to reset only the non-retention flip-flops (NFF) after the restart of the power supply.
The mask circuit is preferably inserted to only a path through which a signal influencing the RFF circuit 124 flows. Also, in order to reduce leakage current in the NFF circuit 122 at the time of the supply of power, the power supply to the NFF circuit 122 may be blocked off in the ordinary operation. In this case, it is preferable that power supply structures of the RFF circuit 124 and the NFF circuit 122 are separated from each other and barrier gates are inserted in all of the paths between the RFF circuit 124 and the NFF circuit 122.
When a circuit using the retention flip-flops and a circuit using the normal flip-flops are classified based on the function, the circuit for realizing an original function is provided with the retention flip-flops, and the testing circuit and the debugging circuit are provided with normal flip-flops. When a circuit is hierarchically designed, the designing layers are different at the time of designing the circuit between the circuit for realizing the original function and the testing and debugging circuits. Therefore, if the normal flip-flops or the retention flip-flops are used for every circuit depending on the designing layer, the circuit division can be performed.
As described above, since the flip-flops mapped to the retention flip-flops can be limited to flip-flops realizing the ordinary function and the testing circuit and the debugging circuit can be excluded, the number of retention flip-flops can be reduced. Therefore, the circuit area of the flip-flops can be made smaller and the leakage current can be suppressed. Further, the interconnection easiness can be improved. Although the retention flip-flop is described as a type of a circuit requiring a backup power as shown in
Although the present invention has been described above in connection with several embodiments thereof, it would be apparent to those skilled in the art that those embodiments are provided solely for illustrating the present invention, and should not be relied upon to construe the appended claims in a limiting sense.
Number | Date | Country | Kind |
---|---|---|---|
2009-135085 | Jun 2009 | JP | national |