This Utility Patent Application claims priority to German Patent Application No. DE 10 2004 004808.8, filed on Jan. 30, 2004, which is incorporated herein by reference.
The present invention relates to methods for saving and setting a circuit state or operating state of a microelectronic circuit that comprises at least one scan chain for testing the circuit and also appropriate devices.
In the case of a circuit in CMOS technology, in particular, disconnection of at least one part of the circuit is an effective measure for reducing the power consumption of the circuit if certain circuit parts are not needed since leakage currents of transistors can thereby be avoided. One disconnection problem is restoring or setting the operating state of the circuit. In addition to reapplying supply voltages, storage elements (registers) of the disconnected circuit have to be initialized during switching-on. In this connection, it is not sufficient in many cases to initialize all the registers of the circuit with zero since in these cases the registers have to be written with the values that were stored before the disconnection.
In the example illustrated in
A further possibility for disconnecting at least one section of the circuit section 2 without having to save the operating state prior to the disconnection and to set it again after switching on again consists, according to the prior art, in distributing an additional supply voltage within the circuit section 2 and connecting all the registers A1-C8 thereto. In this case there is the disadvantage that, on the one hand, the entire circuit section 2 cannot be disconnected and, on the other hand, an additional wiring is needed for the additional supply voltage.
For these and other reasons, there is a need for the present invention.
One embodiment of the present invention provides a method for saving a circuit state of a microelectronic circuit including at least one scan chain for testing the circuit. In this connection, the method uses the at least one scan chain to save the circuit state in such a way that contents of the at least one scan chain are shifted into at least one memory.
The accompanying drawings are included to provide a further understanding of the present invention and are incorporated in and constitute a part of this specification. The drawings illustrate the embodiments of the present invention and together with the description serve to explain the principles of the invention. Other embodiments of the present invention and many of the intended advantages of the present invention will be readily appreciated as they become better understood by reference to the following detailed description. The elements of the drawings are not necessarily to scale relative to each other. Like reference numerals designate corresponding similar parts.
In the following Detailed Description, reference is made to the accompanying drawings, which form a part hereof, and in which is shown by way of illustration specific embodiments in which the invention may be practiced. In this regard, directional terminology, such as “top,” “bottom,” “front,” “back,” “leading,” “trailing,” etc., is used with reference to the orientation of the Figure(s) being described. Because components of embodiments of the present invention can be positioned in a number of different orientations, the directional terminology is used for purposes of illustration and is in no way limiting. It is to be understood that other embodiments may be utilized and structural or logical changes may be made without departing from the scope of the present invention. The following detailed description, therefore, is not to be taken in a limiting sense, and the scope of the present invention is defined by the appended claims.
One embodiment of the invention provides a method and associated device for saving or setting an operating state of a microelectronic circuit. By using a scan chain to save the circuit state, which scan chain is otherwise used only for testing the circuit and is superfluous or troublesome during a non-test phase of the circuit according to the prior art, the circuit state of the circuit can be saved without the circuit having to be expanded in any way, as is necessary to save the circuit state according to the prior art.
In this connection, in one embodiment of the method, the contents of the at least one scan chain can be shifted into the at least one memory as soon as it is detected that a control signal has a predetermined value. In addition, a confirmation signal can be set to a predetermined value as soon as shifting of the contents of the at least one scan chain into the at least one memory is started.
The method for saving the circuit state can be started with the aid of the control signal, the confirmation signal indicating that the circuit state is currently being saved.
Furthermore, in one embodiment a clock signal will be fed to the at least one memory and the at least one scan chain until the contents of the at least one scan chain have been shifted into the at least one memory. In this connection, the circuit is additionally brought with the aid of a test initiating signal of the circuit to a state in which it is possible to shift out the contents of the at least one scan chain by means of a shift operation of the scan chain.
The method thereby performs all the necessary steps to shift a circuit state stored in one or more scan chains out of said one or said more scan chains into one or more memories.
One embodiment of the present invention also provides a method for setting a circuit state of a microelectronic circuit that comprises at least one scan chain for testing the circuit. In this connection, the at least one scan chain for setting the circuit state is used in such a way that contents of at least one memory are shifted into the at least one scan chain.
Since one or more scan chains are used to set the circuit state, which scan chains are already a component of the circuit, but are used according to the prior art exclusively for testing the circuit, the circuit does not need, according to one embodiment of the invention, to be expanded to set the circuit state, as is necessary according to the prior art.
According to one embodiment of the invention, the contents of the at least one memory are shifted into the at least one scan chain as soon as it is detected that a control signal has a predetermined value. Additionally, a confirmation signal can be set to a predetermined value as soon as the contents of the at least one memory have been shifted into the at least one scan chain.
As a result, the method for setting the circuit state can be started with the aid of the control signal, the confirmation signal indicating that the circuit state is being set.
In one embodiment, the contents of the at least one memory are shifted into the at least one scan chain by a clock signal being fed to the at least one memory and the at least one scan chain until the contents of the at least one memory have been shifted into the at least one scan chain. During said shift operation, the circuit is brought, with the aid of a test initiation signal, to a state in which it is possible to shift in the contents of the at least one scan chain by means of a shift operation of the scan chain.
One embodiment of the method consequently controls all the steps necessary to set, with the aid of the at least one scan chain, any desired circuit state that has previously been written into the at least one memory.
The method for setting the circuit state may also be used, for example, to reconfigure the circuit or to change its configuration.
With one embodiment of the present invention, a method is also provided for saving and restoring a circuit state of a microelectronic circuit that comprises at least one scan chain for testing the circuit. In this connection, said method is based on the previously disclosed method for saving a circuit state and on the likewise previously disclosed method for setting a circuit state.
To save and restore the circuit state of the circuit, said method uses one or more scan chains that, according to the prior art, are used exclusively for testing the circuit. Thus, one embodiment of the method does not require an expansion (for example additional wiring or additional components) of the circuit. With the aid of said method, it is possible to save a circuit state of a circuit or of a circuit section that is to be disconnected to save energy prior to disconnecting the circuit and to set the saved circuit state again after the supply voltage of the circuit is switched on again. As a result, after the supply voltage has been switched on again, the circuit is capable of continuing, without problems, an operation that it had begun prior to the disconnection.
One embodiment of the present invention likewise provides a device for saving a circuit state of a microelectronic circuit that comprises at least one scan chain for testing the circuit. In this connection, one embodiment of the device is designed in such a way that it activates the at least one scan chain and at least one memory to save the circuit state in such a way that contents of the at least one scan chain are shifted into the at least one memory.
The device can be designed in such a way that it disconnects a supply voltage for the circuit as soon as it has shifted the contents of the at least one scan chain into the at least one memory by means of the at least one scan chain and by means of the at least one memory.
Since one embodiment of the device itself disconnects the supply voltage of the circuit after it has saved the circuit state of the circuit, a master control device that would like to disconnect the circuit only has to activate the device accordingly. Since the supply voltage of the circuit can, in addition, only be disconnected after the circuit state of the circuit has been shifted into the at least one memory, it is advantageous in one embodiment that the device disconnects the supply voltage since the device best has knowledge about when the circuit state of the circuit has been completely shifted into the at least one memory.
According to one embodiment of the invention, the at least one memory may be at least one shift register.
Since the at least one scan chain is one or more shift registers, it is advantageous in one embodiment, for synchronization reasons, if the at least one memory into which the contents of the at least one scan chain are shifted is/are also one or more shift registers.
According to one embodiment of the invention, the device, together with the circuit, may belong to a master microelectronic circuit, in which case the circuit may belong to an area of the master microelectronic circuit in which the supply voltage can be disconnected. In one case, the device then belongs to an area of the master microelectronic circuit in which the supply voltage cannot be disconnected at least during a time at which the supply voltage of the circuit is disconnected. In addition, the device may then comprise at least one memory.
Since one embodiment of the device together with the at least one memory is a component of the master microelectronic circuit to which the disconnectable circuit also belongs, the circuit can be disconnected within the master microelectronic circuit without the circuit state of the circuit being lost since the master microelectronic circuit is, owing to the device according to one embodiment of the invention, capable of saving the circuit state of the circuit autarkically in the at least one memory that belongs to the device and, consequently, to the master microelectronic circuit.
Furthermore, one embodiment of the present invention comprises a device for setting a circuit state of a microelectronic circuit that comprises at least one scan chain for testing the circuit. In this connection, the device is designed in such a way that it activates the at least one scan chain and at least one memory to set the circuit state in such a way that contents of the at least one memory are shifted into the at least one scan chain.
According to one embodiment of the invention, the device may be designed in such a way that it switches on a supply voltage for the circuit before it shifts the contents of the at least one scan chain by means of the at least one scan chain and by means of the at least one memory.
Since one embodiment of the device itself switches on the supply voltage of the circuit before it sets the circuit state of the circuit, a master control device that would like to put the disconnected circuit into operation again advantageously only has to activate the device accordingly. Since, in addition, the shifting into the at least one scan chain can only be started if the supply voltage is applied everywhere in the circuit, it is advantageous that one embodiment of the device itself switches on the supply voltage of the circuit since the device is thereby very well capable of estimating when the supply voltage is applied for all the components of the circuit.
One embodiment of the device together with the circuit belongs to a master microelectronic circuit, the circuit belonging to an area of the master microelectronic circuit, in which area the supply voltage can be disconnected. On the other hand, one embodiment of the device should belong to an area of the master microelectronic circuit, in which area the supply voltage can at least not be disconnected if the supply voltage of the circuit is disconnected. Additionally, the at least one memory may belong to the device.
This ensures that the master microelectronic circuit can switch on the supply voltage of the circuit autarkically by means of the device and can then bring the circuit to a circuit state again by means of the device, which circuit state is preselected by loading the at least one memory that is likewise a component of the device and, consequently, of the master microelectronic circuit.
Furthermore, one embodiment of the present invention provides a device for saving and restoring a circuit state of a microelectronic circuit that comprises at least one scan chain for testing the circuit. In this connection, the device is designed both to save a circuit state in accordance with the previously described device and to set a circuit state in accordance with the likewise previously described device.
In this connection, one embodiment of the device together with the circuit may belong to a master microelectronic circuit, the circuit belonging to an area of the master microelectronic circuit, in which area the supply voltage can be disconnected. On the other hand, one embodiment of the device should belong to an area of the master microelectronic circuit, in which area the supply voltage can at least not be disconnected if the supply voltage of the circuit is disconnected.
Such a master microelectronic circuit is autarkically capable of rescuing the circuit state of the circuit at almost any desired instant in time by means of the device according to the invention and then switching off the supply voltage of the circuit by means of the device in order thereby to save energy. As soon as the master electronic circuit detects that the operation of the circuit has to be continued, the supply voltage of the circuit is switched on again with the aid of the device and the previously rescued circuit state is then set again by means of the device.
One embodiment of the device may, however, also be used to reconfigure or to change the configuration of the circuit. Disconnecting or switching the supply voltage on then lapses. The circuit state set in the case of reconfiguration may be a circuit state that has been rescued beforehand by means of the device. It may, however, also be a circuit state generated elsewhere (for example, with the aid of circuit design tools) that the circuit has never assumed before.
One embodiment of the present invention is suitable in the case of CMOS circuits for disconnecting a certain circuit section temporarily for energy saving measures in order to switch it on again later if it is needed again. Of course, the invention is not restricted to CMOS technologies but can be used in a circuit of any technology in which all the registers that are needed to set a circuit state of the circuit are incorporated in one or more scan chains.
Steps that are taken before the supply voltage of the circuit 2 is disconnected are now described below. First, the device 1 sets a test initiation signal 11 of the circuit 2 to a predetermined value. As a result, the circuit 2 is brought to a state such that the scan chain 14 can be operated like a shift register. Additionally, the device 1 ensures that a clock signal (not shown) of the circuit 2 remains active (number of clock cycles necessary for saving=number of registers A1-C8 in the scan chain 14=24) until all the registers A1-C8 incorporated in the scan chain 14 have shifted their values into the shift register 3 via a scan-chain output terminal 13 of the circuit 2, which terminal is connected to an input of the shift register 3. The clock signal then deactivates the device 1, resets the test initiation signal 11 and disconnects the supply voltage of the circuit 2.
It may be noted that the device 1 is capable of operation only if the shift register 3 assigned to it comprises at least as many 1-bit memory locations as there are registers A1-C8 incorporated in the scan chain 14.
The steps that switch the supply voltage of the circuit 2 on again and to set a previously saved circuit state or another circuit state defined by the content of the shift register 3 is now described. First the device 1 switches on the supply voltage of the circuit 2. Just as in the case of saving the circuit state, the device 1 then brings the circuit 2 by means of the test initiation signal 11 to a state such that the scan chain 14 can be operated like a shift register. Additionally, the device 1 ensures that the clock signal of the circuit 2 is activated so that all 24 registers A1-C8 incorporated in the scan chain 14 can be set according to the content of 24 1-bit register cells s1-s24 of the shift register 3 via a scan-chain input terminal 13 of the circuit 2 that is connected to an output of the shift register 3. After 24 clock cycles, the device 1 resets the test initiation signal 11, as a result of which the circuit 2 is again capable of normal operation.
The mode of operation during saving or setting a circuit state of the device 1 essentially corresponds to the mode of operation of the device 1 from
The circuit example illustrated in
If the bit corresponding to the control signal 21 in the status register 31 is set to the value 0, the device 1, on the one hand, sets the confirmation signal 22 to the value 0 and, on the other hand, sets the test initiation signal 11 to the value 1, which brings the circuit 2 to a state in which the scan chains 14a-c of the circuit 2 can be operated like shift registers. Additionally, the device 1 conveys a clock set to it by means of a clock signal 16 to the memory 3 by means of a clock signal 17, it interrupting this conveyance and also a conveyance via a clock signal 15 to the circuit 2 after a number of clock cycles that is sufficient in order to shift the content of the registers A1-C8 of the circuit 2 to the shift registers 3a-c by means of the scan chains 14a-c. The device 1 then disconnects the supply voltage of the circuit 2, the time variation of the disconnection being shown at reference symbol 18′. Said disconnection may be brought about, for example, by disabling a large FET transistor (not shown).
In order to resume the operation of the circuit 2, the bit corresponding to the control signal 31 in the status register 31 is set to the value 1. The device 1 then switches on the supply voltage of the circuit 2 again. After a time interval that is sufficient for all the components of the circuit 2 to be ready for operation, the device 1 conveys the clock fed to it by means of the clock signal 16 to the circuit 2 by means of the clock signal 15 and to the shift registers 3a-c by means of the clock signal 17. Since the test initiation signal 11 is still at the value 1, the circuit continues to be in a state in which the scan chains 14a-c function as shift registers. As a result, the content of the shift registers 3a-c is shifted into the scan chains 14a-c by conveying the clock to the shift registers 3a-c and the circuit 2, which switches on the previously saved circuit state again. After a number of clock cycles that corresponds to the longest scan chain (number of registers in the scan chain) of the circuit 2, the device 1 interrupts the conveyance of the clock to the shift register 3 by means of the clock signal 17. Simultaneously, the device 1 resets the test initiation signal to the value 0, which brings the circuit 2 to the normal operating state in which the scan chains no longer operate as shift registers. In addition, simultaneously therewith, the corresponding bit of the status register 31 is set to the value 1 by means of the confirmation signal 22, which indicates that the circuit 2 is operating normally again.
Although specific embodiments have been illustrated and described herein, it will be appreciated by those of ordinary skill in the art that a variety of alternate and/or equivalent implementations may be substituted for the specific embodiments shown and described without departing from the scope of the present invention. This application is intended to cover any adaptations or variations of the specific embodiments discussed herein. Therefore, it is intended that this invention be limited only by the claims and the equivalents thereof.
Number | Date | Country | Kind |
---|---|---|---|
10 2004 004808.8 | Jan 2004 | DE | national |