Global counter save and restore
AssigneeQUALCOMM Incorporated
InventorsPrashanth Kumar Kakkireni, Naveen Kumar Narala, Amod Phadke, Arun Gothekar, Anirudh Ghayal
Life of this patent
Estimating the term…
Abstract
A global count or reference time in a computing device may be maintained during a sleep state in which the global counter is powered off. The global count from the global counter may be saved in a register when the sleep state is entered. When the sleep state is exited, the global count in the register may be restored in the global counter.
Claims12
A method for maintaining a global count during a sleep state in a computing device, comprising:
- receiving, by control circuitry, an indication of entry into the sleep state;
- storing, by the control circuitry, a value from a global counter in a register in response to the indication of the entry into the sleep state, wherein during the sleep state the global counter is unpowered;
- wherein the control circuitry and the register are included in a system-on-a-chip (SoC);
- supplying the register with power during the sleep state;
- receiving, by the control circuitry, an indication of exit from the sleep state;
- storing, by the control circuitry, the value from the register in the global counter in response to the indication of the exit from the sleep state;
- wherein the control circuitry includes deep-sleep global counter control circuitry,
- converting, by the deep-sleep global counter control circuitry, the value from a binary format into a Gray Code format before storing the value in the register;
- converting, by the deep-sleep global counter control circuitry, the value from the Gray Code format into the binary format before storing the value in the global counter;
- capturing, by the deep-sleep global counter control circuitry, the value from the register in response to a restoration of power and exit from the sleep state;
- converting, by the deep-sleep global counter control circuitry, the value in the register from the Gray Code format into the binary format after the restoration of power and exit from the sleep state;
- disabling, by the deep-sleep global counter control circuitry, the global counter after the restoration of power and exit from the sleep state;
- loading, by the deep-sleep global counter control circuitry, the value in the binary format into the global counter;
- and
- enable the global counter to continue counting from a loaded value.
A system for maintaining a global count during a sleep state in a computing device, comprising:
- a register and control circuitry being included in a system-on-a-chip (SoC);
- the control circuitry being configured to:
- receive an indication of entry into the sleep state;
- store a value from a global counter in the register in response to the indication of the entry into the sleep state, wherein during the sleep state the global counter is unpowered and the register is supplied with power during the sleep state;
- receive an indication of exit from the sleep state;
- store the value from the register in the global counter in response to the indication of the exit from the sleep state;
- wherein the control circuitry includes deep-sleep global counter control circuitry configured to:
- convert the value from a binary format into a Gray Code format before the value is stored in the register;
- convert the value from the Gray Code format into the binary format before the value is stored in the global counter;
- capture the value from the register in response to the indication of the exit from the sleep state;
- convert the captured value from the Gray Code format into the binary format after exit from the sleep state;
- disable the global counter after exit from the sleep state;
- load the value in the binary format into the global counter;
- and
- enable the global counter to continue counting from a loaded value.
A system-on-a-chip (SoC), comprising:
- at least one processor;
- a global counter;
- a register;
- global counter control circuitry;
- and
- a plurality of power domains, including a first power domain supplying the global counter and a second power domain supplying the register, wherein during a sleep state the first power domain is off and the second power domain is on;
- wherein the global counter control circuitry is configured to:
- receive an indication of entry into the sleep state;
- store a value from the global counter in the register in response to the indication of the entry into the sleep state;
- receive an indication of exit from the sleep state;
- store the value from the register in the global counter in response to the indication of the exit from the sleep state;
- wherein the global counter control circuitry includes deep-sleep global counter control circuitry configured to:
- convert the value from a binary format into a Gray Code format before the value is stored in the register;
- convert the value from the Gray Code format into the binary format before the value is stored in the global counter;
- wherein the deep-sleep global counter control circuitry is configured to be supplied by the first power domain and further configured to:
- capture the value from the register in response to a restoration of power to the first power domain;
- convert a captured value from the Gray Code format into the binary format after the restoration of power to the first power domain;
- disable the global counter after the restoration of power to the first power domain;
- load the value in the binary format into the global counter;
- and
- enable the global counter to continue counting from a loaded value.
Dependencies are inferred from the claim text.