DATA RETENTION CIRCUIT AND METHOD
20230208406 · 2023-06-29
Inventors
Cpc classification
Y02D10/00
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
International classification
Abstract
A data retention circuit is provided in the invention. The data retention circuit includes a master latch circuit, a slave latch circuit, and a control circuit. The control circuit is coupled to the master latch circuit and the slave latch circuit and receives a clock signal from a clock circuit and a power management signal from a power management unit (PMU). In a normal operation mode, the control circuit transmits the clock signal to the master latch circuit and the slave latch circuit. In sleep mode, power to the master latch circuit is switched off and the control circuit transmits the power management signal to the slave latch circuit.
Claims
1. A data retention circuit, comprising: a master latch circuit; a slave latch circuit; and a control circuit, coupled to the master latch circuit and the slave latch circuit and receiving a clock signal from a clock circuit and a power management signal from a power management unit (PMU); wherein in a normal operation mode, the control circuit transmits the clock signal to the master latch circuit and the slave latch circuit, and wherein in a sleep mode, power to the master latch circuit is switched off and the control circuit transmits the power management signal to the slave latch circuit.
2. The data retention circuit of claim 1, wherein the master latch circuit and the clock circuit are configured in a power ON/OFF domain.
3. The data retention circuit of claim 1, wherein the slave latch circuit is configured in a retention domain.
4. The data retention circuit of claim 1, wherein the control circuit comprises a first sub-circuit and a second sub-circuit, wherein the first sub-circuit is configured to control the second sub-circuit.
5. The data retention circuit of claim 4, wherein when an input signal of the first sub-circuit is at a first level, the second sub-circuit transmits the clock signal to the master latch circuit and the slave latch circuit, and when the input signal of the first sub-circuit is at a second level, the second sub-circuit transmits the power management signal to the slave latch circuit.
6. A data retention method, applied to a data retention circuit, wherein the data retention circuit comprises a master latch circuit, a slave latch circuit, and a control circuit, and wherein the control circuit receives a clock signal from a clock circuit and a power management signal from a power management unit (PMU), comprising: in a normal operation mode, transmitting, by the control circuit, the clock signal to the master latch circuit and the slave latch circuit; and in a sleep mode, switching off a power to the master latch circuit and transmitting, by the control circuit, the power management signal to the slave latch circuit.
7. The data retention method of claim 6, wherein the master latch circuit and the clock circuit are configured in a power ON/OFF domain.
8. The data retention method of claim 6, wherein the slave latch circuit is configured in a retention domain.
9. The data retention method of claim 6, wherein the control circuit comprises a first sub-circuit and a second sub-circuit, wherein the first sub-circuit is configured to control the second sub-circuit.
10. The data retention method of claim 9, further comprising: when an input signal of the first sub-circuit is at a first level, transmitting, by the second sub-circuit, the clock signal to the master latch circuit and the slave latch circuit; and when the input signal of the first sub-circuit is at a second level, transmitting, by the second sub-circuit, the power management signal to the slave latch circuit.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The invention will become more fully understood by referring to the following detailed description with reference to the accompanying drawings, wherein:
[0013]
[0014]
[0015]
DETAILED DESCRIPTION OF THE INVENTION
[0016] The following description is of the best-contemplated mode of carrying out the invention. This description is made for the purpose of illustrating the general principles of the invention and should not be taken in a limiting sense. The scope of the invention is best determined by reference to the appended claims.
[0017]
[0018] According to the embodiments of the invention, the data retention circuit 110 may be a state retention flip-flop.
[0019] As shown in
[0020] According to an embodiment of the invention, the control circuit 112 may receive the clock signal from the clock circuit 120 and the power management signal from the PMU 130. In the embodiment, when the power gating system 100 is in the normal operation mode, the control circuit 112 may transmit the clock signal to the master latch circuit 111 and the slave latch circuit 113. In addition, when the power gating system 100 is in the sleep mode, the control circuit 112 may transmit the power management signal generated by the PMU 130 to the slave latch circuit 113. That is to say, in the embodiments of the invention, when the power gating system 100 is in the sleep mode, the operation of the slave latch circuit 113 is unrelated to the clock signal generated by the clock circuit 120. Therefore, the power management signal generated by the PMU 130 is a general signal. Therefore, compared to the clock signal, the power management signal has lower time requirement. Therefore, when the power gating system 100 is in the sleep mode, the leakage current for the power management signal used in the power gating system 100 may be lower than leakage current for the clock signal used in the power gating system 100.
[0021] According to an embodiment of the invention, the power management signal generated by the PMU 130 may be transmitted to the control circuit 112 through a buffer chain to maintain the completeness of the power management signal and avoid the attenuation of the power management signal in the long transmission path.
[0022] Because the clock signal received by the control circuit 112 from the clock circuit 120 is from the power ON/OFF domain A1, the voltage level of the clock signal may be random and unknown. Therefore, according to an embodiment of the invention, the control circuit may have an isolation cell function to avoid the wrong operations caused by the error signals and the large current caused by the short-circuit current.
[0023]
[0024] When the power gating system 100 is in the normal operation mode, the input signal (i.e. the first power management signal SLP) of the first sub-circuit 210 may be a first level (e.g. low level), the first inverse-power management signal SLPb may be a second level (e.g. high level) and the second power management signal RETN may not affect the operation of the control circuit 112. That is to say, in the normal operation mode, the output the control signal LAT and the inverse control signal LATb outputted to the master latch circuit 111 and the slave latch circuit 113 by the second sub-circuit 220 may generated based on the clock signal CLK (i.e. in the normal operation mode, the control signal LAT and the inverse control signal LATb are the clock signals). The master latch circuit 111 and the slave latch circuit 113 may maintain normal operations based on the control signal LAT and the inverse control signal LATb.
[0025] When the power gating system 100 is in the sleep mode, the input signal (i.e. the first power management signal SLP) of the first sub-circuit 210 may be the second level (e.g. high level), the first inverse-power management signal SLPb may be the first level (e.g. low level) and the clock signal CLK may not affect the operation of the control circuit 112. That is to say, in the sleep mode, the output the control signal LAT and the inverse control signal LATb outputted to the slave latch circuit 113 by the second sub-circuit 220 may generated based on the second power management signal RETN (i.e. in the sleep mode, the control signal LAT and the inverse control signal LATb are the power management signals). The slave latch circuit 113 may reserve the data based on the control signal LAT and the inverse control signal LATb. It should be noted that the circuit diagram shown in
[0026]
[0027] In step S320, when the power gating system 100 is in the sleep operation mode, the power of the master latch circuit is switched off and the control circuit of the data retention circuit 110 transmits the power management signal from the power management unit 130 of the power gating system 100 to the slave latch circuit of the data retention circuit 110 to reserve the data.
[0028] According to an embodiment of the invention, in the data retention method, the master latch circuit of the data retention circuit 110 and the clock circuit 120 of the power gating system 100 are configured in the power ON/OFF domain of the power gating system 100.
[0029] According to an embodiment of the invention, in the data retention method, the slave latch circuit of the data retention circuit 110 and the power management unit 130 of the power gating system 100 are configured in the retention domain of the power gating system 100.
[0030] According to an embodiment of the invention, in the data retention method, the data retention circuit 110 may comprise a first sub-circuit and a second sub-circuit, wherein the first sub-circuit is configured to control the second sub-circuit. When an input signal of the first sub-circuit is at a first level, the second sub-circuit will transmit the clock signal to the master latch circuit and the slave latch circuit of the data retention circuit 110. When the input signal of the first sub-circuit is at a second level, the second sub-circuit will transmit the power management signal to the slave latch circuit of the data retention circuit 110.
[0031] According to the data retention method provided in the invention, when the power gating system is in the sleep mode, the clock signal generated by the clock circuit of the power gating system may not affect the operation of the slave latch circuit of the data retention circuit. Therefore, the clock circuit of the power gating system can be configured in the power ON/OFF domain to reduce the leakage current of the power gating system in the sleep mode.
[0032] Use of ordinal terms such as “first”, “second”, “third”, etc., in the disclosure and claims is for description. It does not by itself connote any order or relationship.
[0033] The steps of the method described in connection with the aspects disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module (e.g., including executable instructions and related data) and other data may reside in a data memory such as RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, a hard disk, a removable disk, a CD-ROM, or any other form of computer-readable storage medium known in the art. A sample storage medium may be coupled to a machine such as, for example, a computer/processor (which may be referred to herein, for convenience, as a “processor”) such that the processor can read information (e.g., code) from and write information to the storage medium. A sample storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in user equipment. Alternatively, the processor and the storage medium may reside as discrete components in user equipment. Moreover, in some aspects any suitable computer-program product may comprise a computer-readable medium comprising codes relating to one or more of the aspects of the disclosure. In some aspects a computer program product may comprise packaging materials.
[0034] The above paragraphs describe many aspects. Obviously, the teaching of the invention can be accomplished by many methods, and any specific configurations or functions in the disclosed embodiments only present a representative condition. Those who are skilled in this technology will understand that all of the disclosed aspects in the invention can be applied independently or be incorporated.
[0035] While the invention has been described by way of example and in terms of preferred embodiment, it should be understood that the invention is not limited thereto. Those who are skilled in this technology can still make various alterations and modifications without departing from the scope and spirit of this invention. Therefore, the scope of the present invention shall be defined and protected by the following claims and their equivalents.