Computer system with deep sleep mode

By using a power controller and a wake-up circuit in a multi-processor computer system to allocate processing tasks and wake up the processor in deep sleep mode, the problem of insufficient event processing reactivity and energy consumption is solved, and fast event processing and energy consumption reduction are achieved.

CN118575152APending Publication Date: 2024-08-30STMICROELECTRONICS (GRENOBLE 2) SAS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380018226.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-01-24
Filing Date
2023-01-18
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

In multi-processor computer systems, the processor is not powered in deep sleep mode, resulting in insufficient event processing responsiveness, and unnecessary energy consumption is generated when waking up the main processor to assist the processor in processing events, limiting the autonomy of the system. and energy consumption reduction.

Method used

A computer system is designed, including at least two processors, a power controller and a wake-up circuit. The power controller detects events in deep sleep mode and allocates processing tasks to appropriate processors according to the allocation of configuration registers. The wake-up circuit When an event is detected, deep sleep mode is disabled and the corresponding processor is activated to handle the event.

Benefits of technology

It achieves rapid processing of detected events in deep sleep mode, reduces system energy consumption, and remains effective in real-time applications, increasing autonomy and avoiding unnecessary energy consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118575152A
    Figure CN118575152A
Patent Text Reader

Abstract

According to one aspect, the invention provides a computer system comprising: at least two processors (P1, P2), the computer system (SYS) having a deep sleep mode in which the processors are not powered; a power controller (PCTRL) configured to detect different types of events that need to be processed by the at least two processors (P1, P2) when the computer system is in a deep sleep mode; a configuration register (WCFG) allowing each processing of the detected event to be allocated to a different processor according to the type of the detected event; a wake-up circuit (WKUC) configured to disable the deep sleep mode after an event is detected by the power supply controller (PCTRL), the wake-up circuit (WKUC) configured to activate the power supply of the processors (P1, P2) to which the processing of the detected event has been assigned according to the shown configuration register, the processors (P1, P2) being then configured to process the detected event.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Embodiments and implementations relate to computer systems, and more particularly to systems on a chip, including multiple processors and having a deep sleep mode in which the processors are not powered.

[0002] Some computer systems are multiprocessors. These computer systems include multiple processors. These processors can be integrated into the same integrated circuit, such as into a microcontroller. Each processor can include one or more cores. The processor can be used to serve different tasks / applications dedicated to it. Specifically, in a dual-processor computer system, a first processor (referred to as a main processor) can be used to execute a non-real-time operating system, and a second processor (regarded as an auxiliary processor) can be used to execute a real-time operating system. The main processor and the auxiliary processor are each configured to process tasks dedicated to them. Specifically, the computer system can detect events to be processed by the main processor or the auxiliary processor. The auxiliary processor allows the main processor to get rid of certain tasks that need to be processed quickly. Then, the main processor runs as a master, and the auxiliary processor runs as a slave.

[0003] In addition, a multi-processor computer system can be configured to have different power supply modes. Specifically, such a computer system can include a normal operating mode and a deep sleep mode as power supply modes. The normal operating mode makes it possible to power each processor so that it can perform the tasks assigned to it. The deep sleep mode makes it possible to stop powering most of the components of the computer system. Specifically, when the processor has no tasks to perform, the deep sleep mode makes it possible to stop powering all processors, for example, also stop powering the memory and stop powering the logic circuits of the computer system. Therefore, when the processor is not used, this deep sleep mode makes it possible to reduce the energy consumption of the computer system. More specifically, this deep sleep mode makes it possible to consume less energy than a low consumption mode, in which the power supply of the computer system is maintained and only the clock generator of the computer system is deactivated.

[0004] The computer system is configured to be able to disable the deep sleep mode based on the detection of events that require the use of one of the processors for processing. For example, these events can be interrupt requests (IRQs).

[0005] Specifically, the detection of an event makes it possible to wake up a main processor for executing a non-real-time operating system. Once woken up, the main processor is configured to initialize the computer system, in particular with respect to security and clocks. Then, once the computer system is initialized, the main processor is configured to handle the event when the handling of such an event is assigned to it, or to wake up an auxiliary processor assigned to handle the event.

[0006] Therefore, the processing of an event assigned to the auxiliary processor first requires waking up the main processor, allowing the computer system to be initialized before the auxiliary processor can process the event dedicated to it. At that time, the processing of the event dedicated to the auxiliary processor may not be sufficiently reactive for real-time applications. Therefore, the user may tend to avoid using the deep sleep mode to allow real-time processing of events by the auxiliary processor. The fact that the deep sleep mode is not used does not reduce the energy consumption of the computer system, which may have limited autonomy.

[0007] In addition, the main processor usually consumes a lot of energy relative to the auxiliary processor. Therefore, the fact that the main processor is woken up first so that the auxiliary processor can handle the event assigned to it causes unnecessary energy consumption.

[0008] Therefore, it is necessary to provide a computer system so that detected events can be quickly processed when the computer system is in a deep sleep mode.

[0009] According to one aspect, a computer system is provided, comprising:

[0010] - at least two processors, the computer system having a deep sleep mode in which the processors are not powered,

[0011] - a power controller configured to detect different types of events that need to be processed by the at least two processors when the computer system is in a deep sleep mode,

[0012] - a configuration register configured to assign the processing of each event detected by the power controller to different processors depending on the type of event detected,

[0013] - A wake-up circuit configured to disable the deep sleep mode after an event is detected by the power controller, the wake-up circuit configured to activate the power supply of the processor when the deep sleep mode is disabled, the processing of the detected event has been assigned to the processor according to the configuration register, and the processor is then configured to process the detected event.

[0014] Thus, in such a computer system, each processor can be woken up directly after being placed in deep sleep mode, as long as the processing of the detected event is assigned to this processor. Such a computer system makes it possible to process detected events more quickly when the computer system is in deep sleep mode. Thus, such a computer system is suitable for using deep sleep mode while remaining effective within the scope of real-time applications. By using deep sleep mode, the computer system can reduce its energy consumption. In this way, an autonomous computer system (that is to say, powered by a battery) can increase its autonomy.

[0015] In an advantageous embodiment, the configuration register is configured to define that the processor wakes up first when events whose processing is assigned to different processors are detected simultaneously.

[0016] Preferably, the processor awakened by the wake-up circuit when the deep sleep mode is disabled is configured to initialize the computer system.

[0017] Advantageously, the processor awakened by the wake-up circuit when the deep sleep mode is disabled is configured to authorize activation of power to each of the other processors after initialization of the computer system.

[0018] In an advantageous embodiment, the computer system is a microcontroller.

[0019] According to another aspect, a management method for disabling a deep sleep mode of a computer system is proposed, the computer system comprising at least two processors that are not powered during the deep sleep mode, the method comprising:

[0020] - detecting at least one event of a certain type that needs to be processed by at least one of the at least two processors while the computer system is in the deep sleep mode, then - assigning processing of each detected event to a different processor depending on the type of the detected event, then

[0021] - When the deep sleep mode is disabled, power to a processor to which processing of a detected event has been assigned is activated, and the detected event is then processed by the processor.

[0022] In an advantageous embodiment, the method further comprises, in case of simultaneous detection of events whose processing is assigned to different processors, reading from said different processors a configuration indicating the processor to be woken up first when the deep sleep mode is disabled.

[0023] Preferably, the processor awakened when the deep sleep mode is disabled initializes the computer system.

[0024] Advantageously, the processor awakened when the deep sleep mode is disabled authorizes activation of power to each other processor after initializing the computer system.

[0025] Other advantages and features of the present invention will become apparent upon examination of the detailed description of non-limiting embodiments and examples and the accompanying drawings, in which:

[0026] [ Figure 1 ]

[0027] [ Figure 2 ]

[0028] [ Figure 3 ]

[0029] [ Figure 4 ]

[0030] [ Figure 5 ] schematically illustrates embodiments and implementations of the present invention.

[0031] Figure 1 An embodiment of a computer system SYS is illustrated. The computer system SYS may be a microcontroller.

[0032] The computer system SYS includes two power domains AOD and COD. The first domain (referred to as the power control domain AOD) is configured to be continuously powered. The second domain (referred to as the computing domain COD) is configured to be powered or not powered according to the required power mode. Specifically, the computer system includes a deep sleep mode. This deep sleep mode is a power mode that makes it possible to stop the power supply of the second domain (referred to as the computing domain COD) while maintaining the power supply of the power control domain AOD. This deep sleep mode makes it possible to reduce the energy consumption of the computer system SYS. Specifically, the deep sleep mode makes it possible to stop powering most of the components of the computer system SYS. Therefore, for example, the deep sleep mode also makes it possible to stop powering the memory (not shown) and stop powering the logic circuits (not shown) of the computer system SYS.

[0033] The computing domain COD includes two processors P1 and P2. Therefore, the computer system SYS is a multi-processor system. The processor P1 can run at a frequency different from the frequency of the processor P2. Each processor P1, P2 can include one or more cores. The processor is used to serve different tasks / applications dedicated to it. Specifically, the first processor P1 can be configured to execute a non-real-time operating system. Then, the first processor P1 is the main processor. The second processor P2 can be configured to execute a real-time operating system. Then, the second processor P2 is an auxiliary processor.

[0034] Here, the computation domain COD comprises only two processors. However, it is also possible to provide a computation domain COD comprising more than two processors.

[0035] When the computer system SYS is configured to be in its deep sleep mode, the processors P1 and P2 are not powered. When they are not powered, the processors P1 and P2 are said to be dormant. When the computer system SYS is disabled from the deep sleep mode and the processors P1 and P2 are powered again, the processors P1 and P2 are said to be awake.

[0036] The processors P1 and P2 are configured to process events EVT that can be detected by the computer system SYS. These events can be of several types. For example, an event can be a signal from a sensor connected to the computer system or a signal corresponding to the detection of a computer attack on the computer system.

[0037] Specifically, the power control domain AOD includes a power controller PCTRL. The power of the power controller PCTRL is continuously maintained, especially when the computer system is configured to be in a deep sleep mode.

[0038] The power controller PCTRL is configured to detect an event EVT that needs to be processed by the processor P1 or the processor P2.

[0039] The power control domain AOD includes a configuration register WCFG allowing the processors P1 or P2 to be assigned to handle different types of events that can be detected. For example, the processing of signals coming from sensors connected to the computer system can be assigned to the auxiliary processor P2, and the processing of signals corresponding to a detected computer attack can be assigned to the main processor P1.

[0040] When the computer system is configured to be in deep sleep mode, the configuration register WFCG can also define which processor P1 or P2 is woken up first in the case of simultaneous detection of multiple events whose processing is assigned to different processors P1 and P2. Thus, when the deep sleep mode is disabled, only one processor is woken up first.

[0041] The computation domain COD also includes a reset and clock controller RCC. The power controller PCTRL and the configuration register WCFG are connected to the reset and clock controller RCC of the computation domain COD.

[0042] The reset and clock controller RCC includes a wake-up circuit WKUC configured to disable the deep sleep mode. The wake-up circuit WKUC is configured to control the wake-up of the processors P1 and P2 when the power controller PCTRL detects an event whose processing has been assigned to the processors P1 and P2. The wake-up of the processors P1 and P2 makes it possible for the processors P1 and P2 to perform the processing of the detected event.

[0043] Specifically, the power controller PCTRL is configured to pass different signals to the reset and clock controller RCC. More specifically, the power controller PCTRL is configured to pass the signal VRDY to the reset and clock controller RCC.

[0044] The power controller PCTRL is also configured to transmit signals P1E and P2E to the wake-up circuit WKUC. When the power controller PCTRL detects an event that needs to be processed by the processor P1, the signal P1E is generated. Thus, the signal P1E makes it possible to indicate to the wake-up circuit WKUC that the processor P1 should be woken up so that the latter can process the detected event. When the power controller PCTRL detects an event that needs to be processed by the processor P2, the signal P2E is generated. Thus, the signal P1E makes it possible to indicate to the wake-up circuit WKUC that the processor P1 should be woken up so that the latter can process the detected event.

[0045] The wake-up circuit WKUC is configured to transmit a signal P1BE to the processor P1 when it receives a signal P1E generated by the power controller PCTRL. This signal P1BE makes it possible to indicate to the processor P1 that an event that needs to be processed has been detected. The processor P1 is then configured to process the detected event. Specifically, if the processor P1 is first awakened when the deep sleep mode is disabled, the processor P1 is configured to first initialize the computer system SYS. When the processor P1 is the first processor awakened when the deep sleep mode is disabled, the processor P1 is configured to transmit the signal P1BA once the computer system SYS is initialized.

[0046] The wake-up circuit WKUC is also configured to transmit a signal P2BE to the processor P2 when it receives a signal P2E generated by the power controller PCTRL. This signal P2BE makes it possible to indicate to the processor P2 that an event that requires its processing has been detected. The processor P2 is then configured to process the detected event. Specifically, if the processor P2 is first awakened when the deep sleep mode is disabled, the processor P2 is configured to first initialize the computer system SYS. When the processor P2 is the first processor awakened when the deep sleep mode is disabled, the processor P2 is configured to transmit the signal P2BA once the computer system SYS is initialized.

[0047] In this computer system SYS, each processor P1, P2 can be directly awakened after being placed in deep sleep mode, as long as the processing of the detected event is assigned to the processor P1, P2. This computer system makes it possible to process detected events more quickly when the computer system SYS is in deep sleep mode. Therefore, this computer system SYS remains effective for real-time applications while being suitable for using the deep sleep mode. By using the deep sleep mode, the computer system SYS can reduce its energy consumption. In this way, the autonomous computer system can increase its autonomy. In addition, in this computer system SYS, when the power controller PCTRL detects an event whose processing is assigned to the auxiliary processor P2, the computer system SYS does not need to first activate the main processor P1 unnecessarily, because the auxiliary processor itself is responsible for initializing the computer system SYS. Therefore, when the deep sleep mode is disabled, the auxiliary processor becomes the host processor, and the main processor becomes the slave processor. Therefore, the auxiliary processor P2 is woken up first, so that energy consumption can be reduced when the deep sleep mode is disabled.

[0048] Figure 2 The diagram shows the process for Figure 1 The method for processing an event implemented by a computer system. At the beginning of this method, the computer system is configured to be in a deep sleep mode, in which processors P1 and P2 are not powered. In other words, processors P1 and P2 are in a dormant state when the method for processing an event begins.

[0049] In step 20, the power controller detects at least one event. The power controller may detect only one event or multiple simultaneous events. The power controller then determines the type of each detected event. For each detected event, the power controller then uses the configuration register to find out which processor is configured to handle this event. If the processing of the detected event is assigned to processor P1, the power controller issues a signal P1E. If the processing of the detected event is assigned to processor P2, the power controller issues a signal P2E. The power controller turns the power of the computing domain COD back on and then issues a signal VRDY to alert the reset and clock controller RCC that the computer system can disable the deep sleep mode.

[0050] In step 21 , the wake-up circuit receives a signal P1E and / or a signal P2E.

[0051] If the wake-up circuit receives both the signal P1E and the signal P2E at the same time in step 21, the wake-up circuit goes to step 22, where the wake-up circuit determines which processor to wake up first according to the configuration stored in the configuration register. If the configuration register indicates that the processor P1 should be woken up first when a simultaneous event is detected, the wake-up circuit generates a signal P1BE to wake up the processor P1. If the configuration register indicates that the processor P2 should be woken up first when a simultaneous event is detected, the wake-up circuit generates a signal P2BE to wake up the processor P2.

[0052] In step 21, if the wake-up circuit receives only one signal P1E or P2E, the wake-up circuit goes to step 25, where the wake-up circuit wakes up the processor to which the processing of the signal P1E or P2E has been assigned. Specifically, if the wake-up circuit has received the signal P1E, the wake-up circuit wakes up the processor P1 by generating a signal P1BE. If the wake-up circuit has received the signal P2E, the wake-up circuit wakes up the processor P2 by generating a signal P2BE.

[0053] Subsequently, in step 23 or 26, the processor awakened by the wake-up circuit WKUC initializes the computer system. For example, if the wake-up circuit WKUC has awakened the processor P1 by issuing a signal P1BE, the processor P1, once awakened, initializes the computer system SYS. If the wake-up circuit WKUC has awakened the processor P2 by issuing a signal P2BE, the processor P2, once awakened, initializes the computer system SYS. Once the computer system has been initialized, the awakened processor P1 or P2 will issue a signal P1BA or P2BA to indicate to the wake-up circuit WKUC that the computer system SYS has been initialized, and then process the received event.

[0054] If multiple events have been detected simultaneously in step 20, once the signal P1BA or P2BA has been received by the wake-up circuit, the wake-up circuit WKUC can then wake up the processor still in the dormant state in step 24. The awakening of this processor then makes it possible to process events that have not yet been processed.

[0055] If only one event is detected in step 20, if the clock controller subsequently detects a new event, once the signal P1BA or P2BA has been received by the wake-up circuit, the wake-up circuit WKUC can wake up the processor still in the dormant state in step 27. Such a wake-up of the processor then makes it possible to process the most recently received event.

[0056] Figure 3A first example of an implementation of the method is illustrated. At the beginning of this example, the computer system SYS is in a deep sleep mode. Therefore, the processors P1 and P2 are not powered (state NPWR). Subsequently, at time T1, the power controller PCTRL detects a first event, the processing of which is assigned to the processor P2. The power controller PCTRL then generates a signal P2E. The detection of the first event causes the activation of the power supply of the computing domain COD. The power controller PCTRL then passes a signal VRDY to the reset and clock controller RCC at time T2 to indicate to the latter that the processor P2 can be woken up. The wake-up circuit WKUC then generates a signal P2BE to wake up the processor P2 by powering it so that the latter can process the detected first event. The signal P2BE is maintained until the signal P2E ends at time T3. Once the signal P2BE is received, the processor P2 initializes the computer system SYS. The processor P2 then processes the detected event (state R). Once the event has been processed, the processor P2 can be sent back to sleep again (state S). Once the computer system SYS is initialized at time T5, the processor P2 transmits the signal P2BA. When the computer system SYS has not been initialized by the processor P2, the processor P1 cannot be awakened (state HBT). Specifically, here, the power controller PCTRL detects a second event that needs to be processed by the processor P1, thereby generating a signal P1E at time T4. Therefore, the signal P1E is transmitted to the wake-up circuit WKUC before the processor P2 sends the signal P2BA, and therefore before the initialization of the computer system SYS ends. The wake-up circuit WKUC waits for the transmission of the signal P2BA to generate a signal P1BE at time T6, allowing the processor P1 to be powered so that it can start processing the second event (state R). The signal P1BE is maintained until the signal P1E ends at time T7.

[0057] Figure 4A second example of implementation of the method is illustrated. At the beginning of this example, the computer system SYS is in a deep sleep mode. Therefore, the processors P1 and P2 are not powered (state NPWR). Subsequently, at time T1, the power controller PCTRL detects a first event, the processing of which is assigned to the processor P2. The power controller PCTRL then generates a signal P2E. The detection of the first event causes the activation of the power supply of the computing domain COD. The power controller PCTRL then passes the signal VRDY to the reset and clock controller RCC at time T2 to indicate to the latter that the processor P2 can be woken up. Therefore, the wake-up circuit WKUC generates a signal P2BE to wake up the processor P2 by powering it so that the latter can process the detected first event. The signal P2BE is maintained until the signal P2E ends at time T4. Once the signal P2BE is received, the processor P2 initializes the computer system SYS. The processor P2 then processes the detected event (state R). Once the event has been processed, the processor P2 can be sent back to sleep again (state S). Once the computer system SYS is initialized at time T3, the processor P2 is configured to pass the signal P2BA. The authorization wake-up circuit WKUC then generates the signal P1BE at time T5. Despite this, the power controller PCTRL has not yet detected an event that needs to be processed by the processor P1. Therefore, the processor P1 is still waiting to detect such an event and is therefore not powered during this period (state WFBEN). At time T6, the power controller PCTRL detects a second event that needs to be processed by the processor P1. Since the signal P1BE has been generated by the wake-up circuit WKUC, the processor P1 can be powered to process the event (state R). The signal P1BE is maintained until the signal P1E ends at time T7.

[0058] Figure 5A third example of an embodiment of the method is illustrated, in which two events are detected simultaneously. Specifically, at the beginning of this example, the computer system SYS is in a deep sleep mode. Therefore, processors P1 and P2 are not powered (state NPWR). Subsequently, at time T1, the power controller PCTRL detects a first event whose processing is assigned to processor P1, and then detects a second event whose processing is assigned to processor P2 at time T2. The detection of these two events is considered to occur simultaneously. Then, the power controller PCTRL generates a signal P2E, and then generates a signal P2E. The detection of the first event causes the activation of the power supply of the computing domain COD. Then, the power controller PCTRL passes the signal VRDY to the reset and clock controller RCC at time T3. Then, the wake-up circuit is configured to determine which processor to wake up first based on the information stored in the configuration register. Here, the configuration register WCFG indicates that the processor P1 is the processor to be executed first when the power controller detects two events that need to be processed by different processors. Therefore, the wake-up circuit WKUC generates a signal P1BE at time T3 to wake up the processor P1 by powering the processor P1 so that the latter can initialize the computer system SYS and then process the detected first event (state R). Once the computer system SYS is initialized at time T4, the processor P1 is configured to transmit the signal P1BA. When the computer system SYS has not been initialized by the processor P1, the processor P2 cannot be awakened (state HBT). The wake-up circuit WKUC waits for the transmission of the signal P1BA to generate a signal P2BE at time T4, allowing the processor P2 to be powered so that it can start processing the second event (state R). The signal P1BE is maintained until the signal P1E ends at time T5. The signal P2BE is maintained until the signal P2E ends at time T6.

Claims

1. A computer system comprising: at least two processors (P1, P2), the computer system (SYS) having a deep sleep mode in which the processors are not powered, a power controller (PCTRL) configured to detect different types of events when the computer system is in a deep sleep mode, the different types of events need to be processed by the at least two processors (P1, P2), a configuration register (WCFG) configured to assign said processing of each event detected by said power controller (PCTRL) to different processors according to the type of event detected, A wake-up circuit (WKUC) is configured to disable the deep sleep mode after an event is detected by the power controller (PCTRL), and the wake-up circuit (WKUC) is configured to activate the power of the processor (P1, P2) that has been assigned to handle the detected event according to the configuration register when disabling the deep sleep mode, and this processor (P1, P2) is then configured to handle the detected event.

2. The system according to claim 1, wherein the configuration register (WCFG) is configured to define that the processor wakes up first when: events are detected simultaneously, the processing of which is assigned to different processors.

3. The system according to any one of claims 1 or 2, wherein the processor (P1, P2) awakened by the wake-up circuit when the deep sleep mode is disabled is configured to initialize the computer system (SYS).

4. The system according to claim 3, wherein the processor (P1, P2) awakened by the wake-up circuit when the deep sleep mode is disabled is configured to: authorize activation of power to each other processor after initializing the computer system.

5. The system according to any one of claims 1 to 4, wherein the computer system is a microcontroller.

6. A management method for disabling a deep sleep mode of a computer system (SYS), the computer system (SYS) comprising at least two processors (P1, P2), the at least two processors (P1, P2) being not powered during the deep sleep mode, the method comprising: detecting at least one event of a certain type that needs to be processed by at least one of the at least two processors (P1, P2) while the computer system is in the deep sleep mode, and then assigning the processing of each detected event to different said processors according to said type of the detected event, and then When the deep sleep mode is disabled, the power supply of the processor (P1, P2) that has been assigned to process the detected event is activated, and then the detected event is processed by this processor (P1, P2).

7. The method according to claim 6 also includes reading a configuration indicating the processor to be awakened first among the different processors (P1, P2) when the deep sleep mode is disabled in the following situation: an event is detected simultaneously, and processing of the event is assigned to the different processors (P1, P2).

8. The system according to any one of claims 6 or 7, wherein the processor (P1, P2) awakened when the deep sleep mode is disabled is configured to initialize the computer system (SYS).

9. The system according to claim 8, wherein the processor (P1, P2) awakened when the deep sleep mode is disabled authorizes activation of the power supply of each other processor after initializing the computer system (SYS).