Multi-mode switch system
Through the multi-mode switching system, combined with manual and automatic control modes, flexible and independent control of the modules is achieved, solving the problem in the existing technology that module switch control is difficult to achieve high flexibility and convenience at the same time, and improving the module's operational convenience and stability.
Patent Information
- Application Number
- CN202511164567.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-20
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2045-08-20
AI Technical Summary
In the prior art, it is difficult to achieve high flexibility and convenience in the switch control of the module. The manual control mode is difficult to operate but highly flexible, while the automatic control mode is less flexible but simple to operate.
A multi-mode switch system is adopted, including an enable register, an on-mode selection register, an off-mode selection register, an on-mode configuration register and an off-mode configuration register. By receiving the target on- and off-modes, configuring the corresponding register values, and combining them with the enable identification value, independent control of the module is achieved, supporting the combination of manual and multiple automatic modes.
The flexibility and convenience of module switch control are improved. Users can flexibly choose manual or automatic mode, simplify the operation process, improve the stability of the module and optimize resource allocation.
Smart Images

Figure CN120653503A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of chip management, and in particular to a multi-mode switch system. Background Art
[0002] Currently, in chip management scenarios, it is necessary to control the opening and closing of modules in the chip, thereby reducing chip power consumption, rationally optimizing resource allocation, and improving chip stability and reliability.
[0003] However, in the prior art, the module's on / off control mode can generally be divided into manual control mode and automatic control mode. The manual control mode refers to the user or system administrator directly controlling the module in the GPU chip through specific software tools or instructions. The manual control mode is more flexible but more difficult to operate. The automatic control mode refers to the hardware logic inside the GPU chip or through the software driver, which automatically controls the module's on / off based on multiple factors such as the GPU's workload, temperature, and power consumption. The automatic control mode is easier to operate but less flexible.
[0004] Obviously, when using manual control mode or automatic control mode, it is difficult for the module's switch control to simultaneously represent high flexibility and convenience. Therefore, how to improve the flexibility and convenience of the module's switch control has become an urgent problem to be solved. Summary of the Invention
[0005] In view of the above technical problems, the technical solution adopted by the present invention is: A multi-mode switch system includes: a target module and a switch module corresponding to the target module, wherein the switch module includes an enable register, an on-mode selection register, an off-mode selection register, an on-mode configuration register, and an off-mode configuration register.
[0006] The switch module is used to receive a target on-mode and a target off-mode, and after receiving the target on-mode, configure the first configuration value corresponding to the target on-mode to the on-mode selection register, and after receiving the target off-mode, configure the second configuration value corresponding to the target off-mode to the off-mode selection register, the target on-mode belongs to an on-mode set, the target off-mode belongs to a off-mode set, the on-mode set includes at least a manual mode, a first automatic on-mode and a second automatic on-mode, and the off-mode set includes at least a manual mode, a first automatic off-mode, a second automatic off-mode and a third automatic off-mode.
[0007] The switch module is also used to configure the on-mode configuration register corresponding to the target on-mode when the target on-mode is the first automatic on-mode or the second automatic on-mode, and to configure the off-mode configuration register corresponding to the target off-mode when the target off-mode is the first automatic off-mode, the second automatic off-mode or the third automatic off-mode.
[0008] The switch module is further configured to receive an enable identification value and configure the enable identification value to the enable register.
[0009] The switch module is further configured to receive request information sent to the target module, where the request information includes a switch identifier, and the switch identifier is a first identifier value or a second identifier value.
[0010] The switch module is also used to set the on flag of the target module to a fifth preset value, set the off flag of the target module to a sixth preset value, and turn on the target module when the switch identifier contained in the received request information is a first identification value, the target start mode is a manual mode, and the enable identification value is a third identification value.
[0011] The switch module is also used to obtain the first state value corresponding to the target start-up mode when the switch identifier contained in the received request information is a first identification value and the target start-up mode is a first automatic start-up mode or a second automatic start-up mode. If the first state value corresponding to the target start-up mode and the configuration value in the start mode configuration register meet the first preset condition, the start flag bit of the target module is set to the fifth preset value, the close flag bit of the target module is set to the sixth preset value, and the target module is turned on.
[0012] The switch module is also used to set the on flag of the target module to a sixth preset value, set the off flag of the target module to a fifth preset value, and turn off the target module when the switch identifier contained in the received request information is a second identification value, the target shutdown mode is a manual mode, and the enable identification value is a fourth identification value.
[0013] The switch module is also used to obtain a second state value corresponding to the target shutdown mode when the switch identifier contained in the received request information is a second identification value and the target shutdown mode is the first automatic shutdown mode, the second automatic shutdown mode or the third automatic shutdown mode. If the state value corresponding to the target shutdown mode and the configuration value in the shutdown mode configuration register meet the second preset condition, the on flag bit of the target module is set to the sixth preset value, the off flag bit of the target module is set to the fifth preset value, and the target module is turned off.
[0014] The present invention has significant advantages over the prior art. By utilizing the above technical solution, the multi-mode switch system provided by the present invention can achieve considerable technological advancement and practicality, and has wide industrial application value. It has at least the following advantages: The present invention provides a multi-mode switch system, the system comprising: a target module and a switch module corresponding to the target module, wherein the switch module comprises an enable register, an on-mode selection register, an off-mode selection register, an on-mode configuration register, and an off-mode configuration register, the switch module being configured to receive a target on-mode and a target off-mode, and after receiving the target on-mode, configuring a first configuration value corresponding to the target on-mode to the on-mode selection register, and after receiving the target off-mode, configuring a second configuration value corresponding to the target off-mode to the off-mode selection register, the target on-mode belonging to an on-mode set, the target The target shutdown mode belongs to the shutdown mode set, the startup mode set includes at least a manual mode, a first automatic startup mode and a second automatic startup mode, the shutdown mode set includes at least a manual mode, a first automatic shutdown mode, a second automatic shutdown mode and a third automatic shutdown mode, the switch module is further used to configure the startup mode configuration register corresponding to the target startup mode when the target startup mode is the first automatic startup mode or the second automatic startup mode, and configure the shutdown mode configuration register corresponding to the target shutdown mode when the target shutdown mode is the first automatic shutdown mode, the second automatic shutdown mode or the third automatic shutdown mode, and the switch module is further used to receive an enable identification value, The enable identification value is configured to the enable register, and the switch module is further used to receive request information sent to the target module, the request information includes a switch identification, and the switch identification is a first identification value or a second identification value. The switch module is further used to set the on flag bit of the target module to a fifth preset value, set the off flag bit of the target module to a sixth preset value, and turn on the target module when the switch identification contained in the received request information is the first identification value, the target start mode is the manual mode, and the enable identification value is the third identification value. The switch module is also used to set the on flag bit of the target module to a fifth preset value, set the off flag bit of the target module to a sixth preset value, and turn on the target module when the switch identification contained in the received request information is the first identification value, and the target start mode is the first automatic start mode. mode or the second automatic start mode, obtaining the first state value corresponding to the target start mode, if the first state value corresponding to the target start mode and the configuration value in the start mode configuration register meet the first preset condition, setting the start flag bit of the target module to the fifth preset value, setting the close flag bit of the target module to the sixth preset value, and turning on the target module, the switch module is further used to, when the switch identifier included in the received request information is the second identification value, the target shutdown mode is the manual mode and the enable identification value is the fourth identification value, set the start flag bit of the target module to the sixth preset value, set the close flag bit of the target module to the fifth preset value, and turn off the target module,The switch module is further configured to, when the switch identifier included in the received request information is a second identifier value and the target shutdown mode is the first automatic shutdown mode, the second automatic shutdown mode, or the third automatic shutdown mode, obtain a second state value corresponding to the target shutdown mode; if the state value corresponding to the target shutdown mode and the configuration value in the shutdown mode configuration register meet a second preset condition, set the target module's on flag to a sixth preset value, set the target module's off flag to a fifth preset value, and shut down the target module.
[0015] It can be seen that the opening and closing of the target module are independently controlled, and manual mode or multiple automatic modes can be flexibly selected during independent control, which effectively improves the flexibility of module switch control. Only the register needs to be configured to achieve the combination of manual mode and automatic mode, which also improves the user's operation convenience, thereby improving the flexibility and convenience of module switch control. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0017] Figure 1 A schematic diagram of the architecture of a multi-mode switch system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0018] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making any creative efforts shall fall within the scope of protection of the present invention.
[0019] This embodiment provides a multi-mode switch system. Figure 1 , is a schematic diagram of the architecture of a multi-mode switch system provided in an embodiment of the present invention, the system comprising: a target module and a switch module corresponding to the target module, wherein the switch module comprises an enable register, an on-mode selection register, an off-mode selection register, an on-mode configuration register, and an off-mode configuration register; The switch module is configured to receive a target on-mode and a target off-mode, and after receiving the target on-mode, configure a first configuration value corresponding to the target on-mode to the on-mode selection register, and after receiving the target off-mode, configure a second configuration value corresponding to the target off-mode to the off-mode selection register, wherein the target on-mode belongs to an on-mode set, and the target off-mode belongs to an off-mode set, wherein the on-mode set includes at least a manual mode, a first automatic on-mode, and a second automatic on-mode, and the off-mode set includes at least a manual mode, a first automatic off-mode, a second automatic off-mode, and a third automatic off-mode; The switch module is further configured to, when the target on-mode is the first automatic on-mode or the second automatic on-mode, configure an on-mode configuration register corresponding to the target on-mode; and, when the target off-mode is the first automatic off-mode, the second automatic off-mode or the third automatic off-mode, configure a off-mode configuration register corresponding to the target off-mode; The switch module is further configured to receive an enable identification value and configure the enable identification value to the enable register; The switch module is further configured to receive request information sent to the target module, wherein the request information includes a switch identifier, and the switch identifier is a first identifier value or a second identifier value; The switch module is further configured to, when the switch identifier included in the received request information is a first identifier value, the target start mode is a manual mode, and the enable identifier value is a third identifier value, set the start flag of the target module to a fifth preset value, set the shutdown flag of the target module to a sixth preset value, and turn on the target module; The switch module is further configured to, when the switch identifier included in the received request information is a first identifier value and the target startup mode is a first automatic startup mode or a second automatic startup mode, obtain a first state value corresponding to the target startup mode; if the first state value corresponding to the target startup mode and the configuration value in the start mode configuration register meet a first preset condition, set the startup flag bit of the target module to a fifth preset value, set the shutdown flag bit of the target module to a sixth preset value, and start the target module; The switch module is further configured to, when the switch identifier included in the received request information is a second identifier value, the target shutdown mode is a manual mode, and the enable identifier value is a fourth identifier value, set the on flag bit of the target module to a sixth preset value, set the off flag bit of the target module to a fifth preset value, and shut down the target module; The switch module is also used to obtain a second state value corresponding to the target shutdown mode when the switch identifier contained in the received request information is a second identification value and the target shutdown mode is the first automatic shutdown mode, the second automatic shutdown mode or the third automatic shutdown mode. If the state value corresponding to the target shutdown mode and the configuration value in the shutdown mode configuration register meet the second preset condition, the on flag bit of the target module is set to the sixth preset value, the off flag bit of the target module is set to the fifth preset value, and the target module is turned off.
[0020] The enable register may be used to directly control the opening or closing of the target module. The enable register may serve as a power-on switch of the target module. In this embodiment, the enable register may serve as a switch for the manual mode.
[0021] The first configuration value of the on-mode selection register may be used to identify a target on-mode configured by the user, and the second configuration value of the off-mode selection register may be used to identify a target off-mode configured by the user.
[0022] Different target on modes may correspond to different on mode configuration registers, and different target off modes may correspond to different off mode configuration registers.
[0023] Specifically, when the switch identifier is a first identifier value, it indicates that the target module is requested to be turned on, and when the switch identifier is a second identifier value, it indicates that the target module is requested to be turned off. In this embodiment, the first identifier value may be 1, and the second identifier value may be 0.
[0024] According to the user's usage requirements for the target module, the initial enable identification value of the enable register can be a third identification value. The enable register is a power-on switch in this embodiment. When the enable identification value of the enable register is configured as the third identification value, the target module is powered on.
[0025] It should be noted that in manual mode, the user is required to manually configure the enable register. When the switch identifier included in the received request information is the first identifier value, the target enable mode is manual mode, and the enable identifier value is the third identifier value, it indicates that the target module needs to be manually enabled and the enable identifier value of the enable register has been configured to be the third identifier value. The target module can be enabled by directly setting the enable flag of the target module to the fifth preset value and the disable flag of the target module to the sixth preset value. In this embodiment, the third identifier value can be 1, the fifth preset value can be 1, and the sixth preset value can be 0.
[0026] When the switch identifier contained in the received request information is the first identifier value, the target startup mode is manual mode and the enable identifier value is the fourth identifier value, it means that although the target module needs to be manually turned on at this time, the user has not yet configured the enable identifier value of the enable register to be the third identifier value, the target module is not turned on, and the fourth identifier value can be 0.
[0027] Similarly, when the switch identifier contained in the received request information is the second identifier value, the target shutdown mode is manual mode and the enable identifier value is the fourth identifier value, it means that the target module needs to be manually shut down and the enable identifier value of the enable register has been configured to be the fourth identifier value. The on flag of the target module can be directly set to the sixth preset value, and the off flag of the target module can be set to the fifth preset value to shut down the target module.
[0028] When the switch identifier contained in the received request information is the second identifier value, the target shutdown mode is manual mode and the enable identifier value is the third identifier value, it means that although the target module needs to be manually shut down at this time, the user has not yet configured the enable identifier value of the enable register to be the fourth identifier value, and the target module will not be shut down.
[0029] In a specific embodiment, when the switch identifier included in the received request information is a first identifier value and the target startup mode is a first automatic startup mode, a cycle count value is obtained as the first state value corresponding to the target startup mode, where the cycle count value refers to a cycle statistical value from the cycle in which the request information is received to the current cycle; Accordingly, the configuration value in the start mode configuration register is the first cycle threshold; The first preset condition is that the cycle count value is equal to the first cycle threshold; If the first state value corresponding to the target startup mode and the configuration value in the start mode configuration register do not meet the first preset condition, the process returns to the step of obtaining the cycle count value as the first state value corresponding to the target startup mode.
[0030] The switch module includes a cycle counter, which can be used to start cycle counting after receiving request information including a switch identifier with a first identifier value, and obtain a corresponding cycle statistical value in the current cycle.
[0031] The first cycle threshold may be used to determine whether to automatically enable a target module, and the first cycle threshold may be configured by a user.
[0032] Specifically, if the first state value corresponding to the target start-up mode and the configuration value in the start mode configuration register do not meet the first preset condition, then return to execute the step of obtaining the cycle count value as the first state value corresponding to the target start-up mode. Since the current cycle changes when returning to execute the above steps, the cycle count value will also be updated accordingly until the cycle count value meets the first preset condition.
[0033] In a specific embodiment, when the switch identifier included in the received request information is a first identifier value and the target startup mode is the second automatic startup mode, a request count value is obtained as the first state value corresponding to the target startup mode, where the request count value refers to a statistical number of specific requests received between a period in which the request information is received and a current period; Accordingly, the configuration value in the start mode configuration register is a first request quantity threshold; The first preset condition is that the request count value is equal to the first request quantity threshold; If the first state value corresponding to the target startup mode and the configuration value in the start mode configuration register do not meet the first preset condition, the process returns to the step of obtaining the request count value as the first state value corresponding to the target startup mode.
[0034] Among them, the switch module includes a request counter, which can be used to start counting specific requests after receiving request information containing a switch identifier as a first identification value, and obtain the corresponding request statistics value in the current cycle. The specific request can refer to any user-specified request such as a read request, a write request, etc.
[0035] The first request quantity threshold may be used to determine whether to automatically enable the target module, and the first request quantity threshold may be configured by the user.
[0036] Specifically, if the first state value corresponding to the target start-up mode and the configuration value in the start mode configuration register do not meet the first preset condition, then return to execute the step of obtaining the request count value as the first state value corresponding to the target start-up mode. Since the current cycle changes when returning to execute the above steps, a new request may be received. When the new request is a specific request, the request count value will also be updated accordingly until the request count value meets the first preset condition.
[0037] In a specific embodiment, when the switch identifier included in the received request information is a second identifier value and the target shutdown mode is the first automatic shutdown mode, a cycle count value is obtained as the second state value corresponding to the target shutdown mode, where the cycle count value refers to a cycle statistical value from the cycle in which the request information is received to the current cycle; Accordingly, the configuration value in the shutdown mode configuration register is the second cycle threshold; The second preset condition is that the cycle count value is equal to the second cycle threshold; If the second state value corresponding to the target shutdown mode and the configuration value in the shutdown mode configuration register do not satisfy the second preset condition, the method returns to the step of obtaining the cycle count value as the second state value corresponding to the target shutdown mode.
[0038] The switch module includes a cycle counter, which can be used to start cycle counting after receiving request information including a switch identifier with a first identifier value, and obtain a corresponding cycle statistical value in the current cycle.
[0039] The second cycle threshold may be used to determine whether to automatically shut down the target module, and the second cycle threshold may be configured by a user.
[0040] Specifically, if the second state value corresponding to the target on mode and the configuration value in the off mode configuration register do not meet the second preset condition, then return to execute the step of obtaining the cycle count value as the second state value corresponding to the target off mode. Since the current cycle changes when returning to execute the above steps, the cycle count value will also be updated accordingly until the cycle count value meets the second preset condition.
[0041] In a specific embodiment, when the switch identifier included in the received request information is a second identifier value and the target shutdown mode is the second automatic shutdown mode, a request count value is obtained as the second state value corresponding to the target shutdown mode, where the request count value refers to a statistical number of specific requests received between a period in which the request information is received and a current period; Accordingly, the configuration value in the shutdown mode configuration register is a second request quantity threshold; The second preset condition is that the request count value is equal to the second request quantity threshold; If the second state value corresponding to the target shutdown mode and the configuration value in the shutdown mode configuration register do not meet the second preset condition, the process returns to the step of obtaining the request count value as the second state value corresponding to the target shutdown mode.
[0042] Among them, the switch module includes a request counter, which can be used to start counting specific requests after receiving request information containing a switch identifier as a first identification value, and obtain the corresponding request statistics value in the current cycle. The specific request can refer to any user-specified request such as a read request, a write request, etc.
[0043] The second request quantity threshold may be used to determine whether to automatically shut down the target module, and the second request quantity threshold may be configured by the user.
[0044] Specifically, if the second state value corresponding to the target shutdown mode and the configuration value in the shutdown mode configuration register do not meet the second preset condition, then return to execute the step of obtaining the request count value as the second state value corresponding to the target shutdown mode. Since the current cycle changes when returning to execute the above steps, a new request may be received. When the new request is a specific request, the request count value will also be updated accordingly until the request count value meets the second preset condition.
[0045] In a specific embodiment, when the switch identifier included in the received request information is the second identifier value and the target shutdown mode is the third automatic shutdown mode, the target module execution state is obtained as the second state value corresponding to the target shutdown mode, and the target module execution state includes an execution completed state and an incomplete execution state; Accordingly, the configuration value in the shutdown mode configuration register is in the execution completed state; The second preset condition is that the target module execution state is equal to the execution completion state; If the second state value corresponding to the target shutdown mode and the configuration value in the shutdown mode configuration register do not satisfy the second preset condition, the process returns to the step of obtaining the target module execution state as the second state value corresponding to the target shutdown mode.
[0046] The execution completion state may mean that the target module is in an idle state.
[0047] Specifically, if the second state value corresponding to the target shutdown mode and the configuration value in the shutdown mode configuration register do not meet the second preset condition, then return to execute the step of obtaining the target module execution state as the second state value corresponding to the target shutdown mode. Since the current cycle changes when returning to execute the above steps, the target module may be in the execution completion state in the current cycle, and the target module execution state will also be updated accordingly until the target module execution state meets the second preset condition.
[0048] In a specific embodiment, when the switch identifier included in the received request information is the second identification value and the target shutdown mode is the first automatic shutdown mode, the second automatic shutdown mode, or the third automatic shutdown mode, or when the switch identifier included in the received request information is the second identification value, the target shutdown mode is the manual mode, and the enable identification value is the fourth identification value, the on flag bit of the target module is obtained; If the on flag of the target module is the fifth preset value, performing the step of obtaining the second state value corresponding to the target off mode, and if the state value corresponding to the target off mode and the configuration value in the off mode configuration register meet the second preset condition, setting the on flag of the target module to the sixth preset value, setting the off flag of the target module to the fifth preset value, and shutting down the target module; Otherwise, the step of obtaining the second state value corresponding to the target shutdown mode is not performed. If the state value corresponding to the target shutdown mode and the configuration value in the shutdown mode configuration register meet the second preset condition, the start flag of the target module is set to the sixth preset value, the shutdown flag of the target module is set to the fifth preset value, and the target module is closed.
[0049] Among them, when triggering the closing of the target module, it is necessary to obtain the opening flag of the target module. When the opening flag is the fifth preset value, it means that the target module is in the opening state and can be closed normally. Otherwise, the operation of automatically closing the target module will not be triggered.
[0050] Specifically, when the switch identifier contained in the received request information is the second identification value and the target shutdown mode is the first automatic shutdown mode, the second automatic shutdown mode or the third automatic shutdown mode, the shutdown control of the target module is skipped and the step of obtaining the second state value corresponding to the target shutdown mode is returned.
[0051] When the switch identifier contained in the received request information is the second identifier value, the target shutdown mode is the manual mode and the enable identifier value is the fourth identifier value, then wait for the target module to be turned on, that is, wait for the turn-on flag of the target module to be the fifth preset value. After the turn-on flag of the target module is the fifth preset value, turn off the target module to avoid the target module from running idle.
[0052] It should be noted that since the enable identification value in the manual shutdown mode is the fourth identification value and the enable register is a power-on switch, if the user does not configure the enable identification value to the third identification value through the manual start mode, the target module cannot be turned on again, that is, after manually turning off the target module, the target module cannot be turned on through the automatic start mode.
[0053] In a specific implementation, when the switch module continuously receives the enable identification value of the third identification value, the switch module is restarted.
[0054] Among them, in order to avoid the situation where the switch cannot be triggered to turn on or off in the automatic opening mode or the automatic closing mode, for example, the request count value cannot meet the preset conditions, the user can continuously configure the enable identification value to be the third identification value one for restart, thereby avoiding the switch module from being stuck and further improving the flexibility of the module switch control.
[0055] It can be seen that the opening and closing of the target module are independently controlled, and manual mode or multiple automatic modes can be flexibly selected during independent control, which effectively improves the flexibility of module switch control. Only the register needs to be configured to achieve the combination of manual mode and automatic mode, which also improves the user's operation convenience, thereby improving the flexibility and convenience of module switch control.
[0056] Although some specific embodiments of the present invention have been described in detail by way of example, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present invention. It should also be understood by those skilled in the art that various modifications may be made to the embodiments without departing from the scope and spirit of the present invention. The scope of the present invention is defined by the appended claims.
Claims
1. A multi-mode switching system, characterized in that: The system includes: a target module and a switch module corresponding to the target module, wherein the switch module includes an enable register, an on-mode selection register, an off-mode selection register, an on-mode configuration register, and an off-mode configuration register; The switch module is configured to receive a target on-mode and a target off-mode, and after receiving the target on-mode, configure a first configuration value corresponding to the target on-mode to the on-mode selection register, and after receiving the target off-mode, configure a second configuration value corresponding to the target off-mode to the off-mode selection register, wherein the target on-mode belongs to an on-mode set, and the target off-mode belongs to an off-mode set, wherein the on-mode set includes at least a manual mode, a first automatic on-mode, and a second automatic on-mode, and the off-mode set includes at least a manual mode, a first automatic off-mode, a second automatic off-mode, and a third automatic off-mode; The switch module is further configured to, when the target on-mode is the first automatic on-mode or the second automatic on-mode, configure an on-mode configuration register corresponding to the target on-mode; and, when the target off-mode is the first automatic off-mode, the second automatic off-mode or the third automatic off-mode, configure a off-mode configuration register corresponding to the target off-mode; The switch module is further configured to receive an enable identification value and configure the enable identification value to the enable register; The switch module is further configured to receive request information sent to the target module, wherein the request information includes a switch identifier, and the switch identifier is a first identifier value or a second identifier value; The switch module is further configured to, when the switch identifier included in the received request information is a first identifier value, the target start mode is a manual mode, and the enable identifier value is a third identifier value, set the start flag of the target module to a fifth preset value, set the shutdown flag of the target module to a sixth preset value, and turn on the target module; The switch module is further configured to, when the switch identifier included in the received request information is a first identifier value and the target startup mode is a first automatic startup mode or a second automatic startup mode, obtain a first state value corresponding to the target startup mode; if the first state value corresponding to the target startup mode and the configuration value in the start mode configuration register meet a first preset condition, set the startup flag bit of the target module to a fifth preset value, set the shutdown flag bit of the target module to a sixth preset value, and start the target module; The switch module is further configured to, when the switch identifier included in the received request information is a second identifier value, the target shutdown mode is a manual mode, and the enable identifier value is a fourth identifier value, set the on flag bit of the target module to a sixth preset value, set the off flag bit of the target module to a fifth preset value, and shut down the target module; The switch module is also used to obtain a second state value corresponding to the target shutdown mode when the switch identifier contained in the received request information is a second identification value and the target shutdown mode is the first automatic shutdown mode, the second automatic shutdown mode or the third automatic shutdown mode. If the state value corresponding to the target shutdown mode and the configuration value in the shutdown mode configuration register meet the second preset condition, the on flag bit of the target module is set to the sixth preset value, the off flag bit of the target module is set to the fifth preset value, and the target module is turned off.
2. The switch system according to claim 1, characterized in that When the switch identifier included in the received request information is a first identifier value and the target startup mode is a first automatic startup mode, obtaining a cycle count value as a first state value corresponding to the target startup mode, where the cycle count value refers to a cycle statistical value from a cycle in which the request information is received to a current cycle; Accordingly, the configuration value in the start mode configuration register is the first cycle threshold; The first preset condition is that the cycle count value is equal to the first cycle threshold; If the first state value corresponding to the target startup mode and the configuration value in the start mode configuration register do not meet the first preset condition, the process returns to the step of obtaining the cycle count value as the first state value corresponding to the target startup mode.
3. The switch system according to claim 1, wherein: When the switch identifier included in the received request information is a first identifier value and the target startup mode is the second automatic startup mode, obtaining a request count value as a first state value corresponding to the target startup mode, where the request count value refers to a statistical number of specific requests received between a period in which the request information is received and a current period; Accordingly, the configuration value in the start mode configuration register is a first request quantity threshold; The first preset condition is that the request count value is equal to the first request quantity threshold; If the first state value corresponding to the target startup mode and the configuration value in the start mode configuration register do not meet the first preset condition, the process returns to the step of obtaining the request count value as the first state value corresponding to the target startup mode.
4. The switch system according to claim 1, wherein: When the switch identifier included in the received request information is a second identifier value and the target shutdown mode is the first automatic shutdown mode, obtaining a cycle count value as a second state value corresponding to the target shutdown mode, where the cycle count value refers to a cycle statistical value from the cycle in which the request information is received to the current cycle; Accordingly, the configuration value in the shutdown mode configuration register is the second cycle threshold; The second preset condition is that the cycle count value is equal to the second cycle threshold; If the second state value corresponding to the target shutdown mode and the configuration value in the shutdown mode configuration register do not satisfy the second preset condition, the method returns to the step of obtaining the cycle count value as the second state value corresponding to the target shutdown mode.
5. The switch system according to claim 1, wherein: When the switch identifier included in the received request information is a second identifier value and the target shutdown mode is the second automatic shutdown mode, obtaining a request count value as a second state value corresponding to the target shutdown mode, where the request count value refers to a statistical number of specific requests received between a period in which the request information is received and a current period; Accordingly, the configuration value in the shutdown mode configuration register is a second request quantity threshold; The second preset condition is that the request count value is equal to the second request quantity threshold; If the second state value corresponding to the target shutdown mode and the configuration value in the shutdown mode configuration register do not meet the second preset condition, the process returns to the step of obtaining the request count value as the second state value corresponding to the target shutdown mode.
6. The switch system according to claim 1, characterized in that When the switch identifier included in the received request information is the second identifier value and the target shutdown mode is the third automatic shutdown mode, obtaining the target module execution state as the second state value corresponding to the target shutdown mode, the target module execution state including an execution completed state and an execution not completed state; Accordingly, the configuration value in the shutdown mode configuration register is in the execution completed state; The second preset condition is that the target module execution state is equal to the execution completion state; If the second state value corresponding to the target shutdown mode and the configuration value in the shutdown mode configuration register do not satisfy the second preset condition, the process returns to the step of obtaining the target module execution state as the second state value corresponding to the target shutdown mode.
7. The switch system according to claim 1, characterized in that When the switch identifier included in the received request information is the second identification value and the target shutdown mode is the first automatic shutdown mode, the second automatic shutdown mode, or the third automatic shutdown mode, or when the switch identifier included in the received request information is the second identification value, the target shutdown mode is the manual mode, and the enable identification value is the fourth identification value, obtaining the on flag bit of the target module; If the on flag of the target module is the fifth preset value, performing the step of obtaining the second state value corresponding to the target off mode, and if the state value corresponding to the target off mode and the configuration value in the off mode configuration register meet the second preset condition, setting the on flag of the target module to the sixth preset value, setting the off flag of the target module to the fifth preset value, and shutting down the target module; Otherwise, the step of obtaining the second state value corresponding to the target shutdown mode is not performed. If the state value corresponding to the target shutdown mode and the configuration value in the shutdown mode configuration register meet the second preset condition, the start flag of the target module is set to the sixth preset value, the shutdown flag of the target module is set to the fifth preset value, and the target module is closed.
8. The switch system according to claim 1, wherein: When the switch module continuously receives the enable identification value of the third identification value, the switch module is restarted.
Citation Information
Patent Citations
Cell image synthesis using one or more neural networks
CN112102329A
Topology independent switching regulator circuit, switching mode driver and lighting device
CN118592090A
Universal chip acquisition system
CN119025386A
Configuration method of register and computer equipment
CN119201241A
Chip debugging method
CN120492241A