A multi-mode switching system

By designing a multi-mode switching system, including a target module and a switching module, the problem of simultaneously achieving high flexibility and convenience in modular switching control is solved, thereby improving the flexibility and convenience of modular switching control.

CN120653503BActive Publication Date: 2025-11-07沐曦集成电路(南京)有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511164567.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-08-20
Publication Date
2025-11-07
Estimated Expiration
2045-08-20

AI Technical Summary

Technical Problem

In existing technologies, it is difficult to achieve both high flexibility and convenience in the switching control of modules. Manual control mode is difficult to operate but highly flexible, while automatic control mode is simple to operate but lacks flexibility.

Method used

Design a multi-mode switching system, including a target module and a switching module. The switching 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. By receiving the target mode and the enable flag value, it can flexibly select manual and automatic modes to independently control the on and off of the module.

Benefits of technology

It improves the flexibility and convenience of module switch control, realizes the combination of manual and automatic modes, and simplifies user operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120653503B_ABST
    Figure CN120653503B_ABST
Patent Text Reader

Abstract

The application relates to the chip verification technical field, in particular to a multi-mode switch system, which independently controls the opening and closing of a target module, can flexibly select a manual mode or various automatic modes during independent control, effectively improves the flexibility of module switch control, and only needs to configure a register to realize the combination of the manual mode and the automatic mode, improves user operation convenience, and thus improves the flexibility and convenience of module switch control.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of chip management, in particular to a multi-mode switching system. BACKGROUND

[0002] At present, in the chip management scenario, the opening and closing of the modules in the chip need to be controlled, so as to reduce the power consumption of the chip, reasonably optimize the resource allocation, and improve the stability and reliability of the chip.

[0003] However, in the prior art, the switching control mode of the module can be generally divided into a manual control mode and an automatic control mode, the manual control mode refers to that a user or a system administrator directly controls the opening and closing of the modules in the GPU chip through a specific software tool or instruction, the manual control mode has strong flexibility but high operation difficulty, and the automatic control mode refers to that the hardware logic inside the GPU chip or through a software driver automatically controls the opening and closing of the modules according to the working load, temperature, power consumption and various factors of the GPU, and the automatic control mode has low operation difficulty but poor flexibility.

[0004] Obviously, in the case of using the manual control mode or the automatic control mode, the switching control of the module is difficult to simultaneously represent high flexibility and convenience, therefore, how to improve the flexibility and convenience of the module switching control has become a problem to be solved. SUMMARY

[0005] In view of the above technical problems, the technical scheme adopted by the present application is as follows:

[0006] A multi-mode switching system, the system comprises: a target module and a switching module corresponding to the target module, wherein the switching module comprises an enable register, an opening mode selection register, a closing mode selection register, an opening mode configuration register and a closing mode configuration register.

[0007] The switching module is configured to receive a target opening mode and a target closing mode, and after receiving the target opening mode, configure a first configuration value corresponding to the target opening mode to the opening mode selection register, and after receiving the target closing mode, configure a second configuration value corresponding to the target closing mode to the closing mode selection register, the target opening mode belongs to an opening mode set, and the target closing mode belongs to a closing mode set, the opening mode set at least comprises a manual mode, a first automatic opening mode and a second automatic opening mode, and the closing mode set at least comprises a manual mode, a first automatic closing mode, a second automatic closing mode and a third automatic closing mode.

[0008] The switch module is further configured to configure an opening mode configuration register corresponding to the target opening mode when the target opening mode is the first automatic opening mode or the second automatic opening mode, and configure a closing mode configuration register corresponding to the target closing mode when the target closing mode is the first automatic closing mode, the second automatic closing mode or the third automatic closing mode.

[0009] The switch module is further configured to receive an enabling identification value and configure the enabling identification value to the enabling register.

[0010] The switch module is further configured to receive request information sent to the target module, wherein the request information comprises a switch identification, and the switch identification is a first identification value or a second identification value.

[0011] The switch module is further configured to, when the switch identification contained in the received request information is the first identification value, the target opening mode is the manual mode and the enabling identification value is a third identification value, set an opening flag bit of the target module to a fifth preset value, set a closing flag bit of the target module to a sixth preset value, and open the target module.

[0012] The switch module is further configured to, when the switch identification contained in the received request information is the first identification value, the target opening mode is the first automatic opening mode or the second automatic opening mode, obtain a first state value corresponding to the target opening mode, and if the first state value corresponding to the target opening mode and a configuration value in the opening mode configuration register satisfy a first preset condition, set the opening flag bit of the target module to the fifth preset value, set the closing flag bit of the target module to the sixth preset value, and open the target module.

[0013] The switch module is further configured to, when the switch identification contained in the received request information is the second identification value, the target closing mode is the manual mode and the enabling identification value is a fourth identification value, set the opening flag bit of the target module to the sixth preset value, set the closing flag bit of the target module to the fifth preset value, and close the target module.

[0014] The switch module is further configured to, when the switch identification contained in the received request information is the second identification value, the target closing mode is the first automatic closing mode, the second automatic closing mode or the third automatic closing mode, obtain a second state value corresponding to the target closing mode, and if the state value corresponding to the target closing mode and a configuration value in the closing mode configuration register satisfy a second preset condition, set the opening flag bit of the target module to the sixth preset value, set the closing flag bit of the target module to the fifth preset value, and close the target module.

[0015] Compared with the prior art, the application has obvious beneficial effects, and at least has the following beneficial effects:

[0016] The application provides a multi-mode switch system, which comprises a target module and a switch module corresponding to the target module, wherein the switch module comprises an enabling register, an opening mode selection register, a closing mode selection register, an opening mode configuration register and a closing mode configuration register, the switch module is used for receiving a target opening mode and a target closing mode, and after receiving the target opening mode, configuring a first configuration value corresponding to the target opening mode to the opening mode selection register, and after receiving the target closing mode, configuring a second configuration value corresponding to the target closing mode to the closing mode selection register, the target opening mode belongs to an opening mode set, the target closing mode belongs to a closing mode set, the opening mode set at least comprises a manual mode, a first automatic opening mode and a second automatic opening mode, the closing mode set at least comprises a manual mode, a first automatic closing mode, a second automatic closing mode and a third automatic closing mode, the switch module is further used for configuring an opening mode configuration register corresponding to the target opening mode when the target opening mode is the first automatic opening mode or the second automatic opening mode, and configuring a closing mode configuration register corresponding to the target closing mode when the target closing mode is the first automatic closing mode, the second automatic closing mode or the third automatic closing mode, the switch module is further used for receiving an enabling identification value and configuring the enabling identification value to the enabling register, the switch module is further used for receiving request information sent to the target module, the request information comprises a switch identification, the switch identification is a first identification value or a second identification value, the switch module is further used for setting an opening flag bit of the target module to a fifth preset value, setting a closing flag bit of the target module to a sixth preset value and opening the target module when the switch identification contained in the received request information is the first identification value, the target opening mode is the manual mode and the enabling identification value is a third identification value, the switch module is further used for acquiring a first state value corresponding to the target opening mode when the switch identification contained in the received request information is the first identification value, the target opening mode is the first automatic opening mode or the second automatic opening mode, and the first state value corresponding to the target opening mode and the configuration value in the opening mode configuration register satisfy a first preset condition, setting the opening flag bit of the target module to the fifth preset value, setting the closing flag bit of the target module to the sixth preset value and opening the target module, and the switch module is further used for setting the opening flag bit of the target module to the sixth preset value, setting the closing flag bit of the target module to the fifth preset value and closing the target module when the switch identification contained in the received request information is the second identification value, the target closing mode is the manual mode and the enabling identification value is a fourth identification value.The switch module is further configured to: when the switch identification contained in the received request information is a second identification value, and the target closing mode is a first automatic closing mode, a second automatic closing mode, or a third automatic closing mode, acquire a second state value corresponding to the target closing mode; if the state value corresponding to the target closing mode and a configuration value in the closing mode configuration register satisfy a second preset condition, set an opening flag bit of the target module to a sixth preset value, set a closing flag bit of the target module to a fifth preset value, and close the target module.

[0017] It can be known that the opening and closing of the target module are independently controlled respectively, and the manual mode or the multiple automatic modes can be flexibly selected in the independent control, the flexibility of the module switch control is effectively improved, the combination of the manual mode and the automatic mode can be realized only by configuring the register, the user operation convenience is also improved, and therefore the flexibility and the convenience of the module switch control are improved. BRIEF DESCRIPTION OF DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative effort.

[0019] Figure 1 An architecture schematic diagram of a multi-mode switch system is provided for the embodiments of the present application. DETAILED DESCRIPTION

[0020] The technical solutions in the embodiments of the present application will be clearly and completely described with reference to the drawings of the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative effort are within the protection scope of the present application.

[0021] The embodiments of the present application provide a multi-mode switch system, referring to Figure 1 An architecture schematic diagram of a multi-mode switch system is provided for the embodiments of the present application. The system comprises a target module and a switch module corresponding to the target module. The switch module comprises an enabling register, an opening mode selection register, a closing mode selection register, an opening mode configuration register, and a closing mode configuration register.

[0022] The switch module is configured to receive a target opening mode and a target closing mode, and after receiving the target opening mode, configure a first configuration value corresponding to the target opening mode to the opening mode selection register, and after receiving the target closing mode, configure a second configuration value corresponding to the target closing mode to the closing mode selection register, the target opening mode belongs to an opening mode set, the target closing mode belongs to a closing mode set, the opening mode set at least includes a manual mode, a first automatic opening mode and a second automatic opening mode, and the closing mode set at least includes a manual mode, a first automatic closing mode, a second automatic closing mode and a third automatic closing mode;

[0023] The switch module is further configured to, when the target opening mode is the first automatic opening mode or the second automatic opening mode, configure an opening mode configuration register corresponding to the target opening mode, and when the target closing mode is the first automatic closing mode, the second automatic closing mode or the third automatic closing mode, configure a closing mode configuration register corresponding to the target closing mode.

[0024] The switch module is further configured to receive an enabling identification value and configure the enabling identification value to the enabling register.

[0025] The switch module is further configured to receive request information sent to the target module, the request information including a switch identification, the switch identification being a first identification value or a second identification value.

[0026] The switch module is further configured to, when the switch identification included in the received request information is the first identification value, the target opening mode is the manual mode and the enabling identification value is a third identification value, set an opening flag bit of the target module to a fifth preset value, set a closing flag bit of the target module to a sixth preset value, and open the target module.

[0027] The switch module is further configured to, when the switch identification included in the received request information is the first identification value, the target opening mode is the first automatic opening mode or the second automatic opening mode, obtain a first state value corresponding to the target opening mode, and if the first state value corresponding to the target opening mode and a configuration value in the opening mode configuration register satisfy a first preset condition, set the opening flag bit of the target module to the fifth preset value, set the closing flag bit of the target module to the sixth preset value, and open the target module.

[0028] The switch module is further configured to set an opening flag bit of the target module to a sixth preset value, set a closing flag bit of the target module to a fifth preset value, and close the target module when the switch identification contained in the received request information is a second identification value, the target closing mode is a manual mode, and the enable identification value is a fourth identification value.

[0029] The switch module is further configured to obtain a second state value corresponding to the target closing mode when the switch identification contained in the received request information is the second identification value, the target closing mode is a first automatic closing mode, a second automatic closing mode, or a third automatic closing mode, and set the opening flag bit of the target module to the sixth preset value, set the closing flag bit of the target module to the fifth preset value, and close the target module if the state value corresponding to the target closing mode and a configuration value in a closing mode configuration register satisfy a second preset condition.

[0030] The enable register can be used to directly control the opening or closing of the target module, and the enable register can be used as a power-on switch of the target module. In this embodiment, the enable register can be used as a switch in the manual mode.

[0031] The first configuration value of the opening mode selection register can be used to identify the target opening mode configured by the user, and the second configuration value of the closing mode selection register can be used to identify the target closing mode configured by the user.

[0032] Different target opening modes can correspond to different opening mode configuration registers respectively, and different target closing modes can correspond to different closing mode configuration registers respectively.

[0033] Specifically, the switch identification is a first identification value when the target module is requested to be opened, and the switch identification is a second identification value when the target module is requested to be closed. In this embodiment, the first identification value can be 1, and the second identification value can be 0.

[0034] According to the use requirement of the user 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 to be the third identification value, the target module is powered on.

[0035] It should be noted that in the manual mode, the user needs to manually configure the enable register. When the switch identification contained in the received request information is the first identification value, the target opening mode is the manual mode, and the enable identification value is the third identification value, it indicates that the target module needs to be manually opened and the enable identification value of the configured enable register is the third identification value. The opening flag bit of the target module can be directly set to the fifth preset value, the closing flag bit of the target module is set to the sixth preset value, and the target module is opened. In this embodiment, the third identification value can be 1, the fifth preset value can be 1, and the sixth preset value can be 0.

[0036] When the switch identification contained in the received request information is the first identification value, the target opening mode is the manual mode, and the enable identification value is the fourth identification value, it indicates that although the target module needs to be manually opened, the user has not configured the enable identification value of the enable register to be the third identification value, and the opening of the target module is not performed. The fourth identification value can be 0.

[0037] Similarly, when the switch identification contained in the received request information is the second identification value, the target closing mode is the manual mode, and the enable identification value is the fourth identification value, it indicates that the target module needs to be manually closed and the enable identification value of the configured enable register is the fourth identification value. The opening flag bit of the target module can be directly set to the sixth preset value, the closing flag bit of the target module is set to the fifth preset value, and the target module is closed.

[0038] When the switch identification contained in the received request information is the second identification value, the target closing mode is the manual mode, and the enable identification value is the third identification value, it indicates that although the target module needs to be manually closed, the user has not configured the enable identification value of the enable register to be the fourth identification value, and the closing of the target module is not performed.

[0039] In a specific implementation, when the switch identification contained in the received request information is the first identification value and the target opening mode is the first automatic opening mode, a period count value is obtained as the first state value corresponding to the target opening mode. The period count value refers to a period statistical value from a period when the request information is received to a current period.

[0040] Correspondingly, the configuration value in the start mode configuration register is a first period threshold value;

[0041] The first preset condition is that the period count value is equal to the first period threshold value.

[0042] If the first state value corresponding to the target opening mode and the configuration value in the start mode configuration register do not satisfy the first preset condition, a step of obtaining a period count value as the first state value corresponding to the target opening mode is executed.

[0043] The period counter in the switch module can be used to start period counting and obtain a corresponding period statistical value in the current period after receiving the request information containing the switch identifier as the first identifier value.

[0044] The first period threshold value can be used to determine whether to automatically open the target module, and the first period threshold value can be configured by a user.

[0045] Specifically, if the first state value corresponding to the target opening mode and the configuration value in the start mode configuration register do not satisfy the first preset condition, a step of obtaining a period count value as the first state value corresponding to the target opening mode is executed. Since the current period changes when the above step is executed, the period count value is also updated accordingly until the period count value satisfies the first preset condition.

[0046] In a specific embodiment, when the switch identifier contained in the received request information is the first identifier value and the target opening mode is the second automatic opening mode, a request count value is obtained as the first state value corresponding to the target opening mode, the request count value being a statistical quantity of specific requests received between a period when the request information is received and a current period.

[0047] Correspondingly, the configuration value in the start mode configuration register is a first request quantity threshold value.

[0048] The first preset condition is that the request count value is equal to the first request quantity threshold value.

[0049] If the first state value corresponding to the target opening mode and the configuration value in the start mode configuration register do not satisfy the first preset condition, a step of obtaining a request count value as the first state value corresponding to the target opening mode is executed.

[0050] The request counter in the switch module can be used to start specific request counting and obtain a corresponding request statistical value in the current period after receiving the request information containing the switch identifier as the first identifier value. The specific request can be any user-specified request such as a read request or a write request.

[0051] The first request quantity threshold value can be used to determine whether to automatically open the target module, and the first request quantity threshold value can be configured by a user.

[0052] Specifically, if the first state value corresponding to the target opening mode and the configuration value in the start mode configuration register do not satisfy the first preset condition, the step of obtaining the request count value as the first state value corresponding to the target opening mode is executed again. Since the current period changes when the above step is executed again, a new request can be received. When the new request is a specific request, the request count value is also updated accordingly until the request count value satisfies the first preset condition.

[0053] In a specific embodiment, when the switch identifier contained in the received request information is the second identifier value and the target closing mode is the first automatic closing mode, a period count value is obtained as the second state value corresponding to the target closing mode, where the period count value refers to a period statistical value from the period when the request information is received to the current period.

[0054] Correspondingly, the configuration value in the closing mode configuration register is a second period threshold value.

[0055] The second preset condition is that the period count value is equal to the second period threshold value.

[0056] If the second state value corresponding to the target closing mode and the configuration value in the closing mode configuration register do not satisfy the second preset condition, the step of obtaining the period count value as the second state value corresponding to the target closing mode is executed again.

[0057] The switch module contains a period counter, which can be used to start period counting and obtain a corresponding period statistical value in the current period after receiving the request information containing the switch identifier as the first identifier value.

[0058] The second period threshold value can be used to determine whether to automatically close the target module, and the second period threshold value can be configured by a user.

[0059] Specifically, if the second state value corresponding to the target opening mode and the configuration value in the closing mode configuration register do not satisfy the second preset condition, the step of obtaining the period count value as the second state value corresponding to the target closing mode is executed again. Since the current period changes when the above step is executed again, the period count value is also updated accordingly until the period count value satisfies the second preset condition.

[0060] In a specific embodiment, when the switch identifier contained in the received request information is the second identifier value and the target closing mode is the second automatic closing mode, a request count value is obtained as the second state value corresponding to the target closing mode, where the request count value refers to a statistical number of specific requests received between the period when the request information is received and the current period.

[0061] Correspondingly, the configuration value in the closing mode configuration register is a second request quantity threshold value;

[0062] The second preset condition is that the request count value is equal to the second request quantity threshold value.

[0063] If the second state value corresponding to the target closing mode and the configuration value in the closing mode configuration register do not satisfy the second preset condition, the step of obtaining the request count value as the second state value corresponding to the target closing mode is executed.

[0064] The switch module includes a request counter, which can be used to start specific request counting to obtain a corresponding request statistical value in the current period after receiving request information including a switch identifier as a first identifier value. The specific request can be a read request, a write request, or any user-specified request.

[0065] The second request quantity threshold value can be used to determine whether to automatically close the target module, and the second request quantity threshold value can be configured by a user.

[0066] Specifically, if the second state value corresponding to the target closing mode and the configuration value in the closing mode configuration register do not satisfy the second preset condition, the step of obtaining the request count value as the second state value corresponding to the target closing mode is executed. Since the current period changes when the above step is executed, a new request can be received. When the new request is a specific request, the request count value is also updated accordingly until the request count value satisfies the second preset condition.

[0067] In a specific embodiment, when the switch identifier included in the received request information is a second identifier value and the target closing mode is a third automatic closing mode, a target module execution state is obtained as the second state value corresponding to the target closing mode. The target module execution state includes a completed execution state and an uncompleted execution state.

[0068] Correspondingly, the configuration value in the closing mode configuration register is the completed execution state.

[0069] The second preset condition is that the target module execution state is equal to the completed execution state.

[0070] If the second state value corresponding to the target closing mode and the configuration value in the closing mode configuration register do not satisfy the second preset condition, the step of obtaining the target module execution state as the second state value corresponding to the target closing mode is executed.

[0071] The completed execution state can mean that the target module is in an idle state.

[0072] Specifically, if the second state value corresponding to the target closing mode and the configuration value in the closing mode configuration register do not satisfy the second preset condition, the step of obtaining the second state value corresponding to the target closing mode is executed again. Since the current period is changed when the step is executed again, the target module may be in an execution completed state at the current period, and the target module execution state is updated accordingly until the target module execution state satisfies the second preset condition.

[0073] In a specific embodiment, when the switch identifier included in the received request information is the second identifier value, the target closing mode is the first automatic closing mode, the second automatic closing mode, or the third automatic closing mode, or when the switch identifier included in the received request information is the second identifier value, the target closing mode is the manual mode, and the enable identifier value is the fourth identifier value, the start flag bit of the target module is obtained.

[0074] If the start flag bit of the target module is the fifth preset value, the step of obtaining the second state value corresponding to the target closing mode is executed. If the state value corresponding to the target closing mode and the configuration value in the closing mode configuration register satisfy the second preset condition, the start flag bit of the target module is set to the sixth preset value, the stop flag bit of the target module is set to the fifth preset value, and the target module is closed.

[0075] Otherwise, the step of obtaining the second state value corresponding to the target closing mode is not executed. If the state value corresponding to the target closing mode and the configuration value in the closing mode configuration register satisfy the second preset condition, the start flag bit of the target module is set to the sixth preset value, the stop flag bit of the target module is set to the fifth preset value, and the target module is closed.

[0076] Wherein, when triggering the closing of the target module, the start flag bit of the target module needs to be obtained. When the start flag bit is the fifth preset value, it indicates that the target module is in an open state and can be normally closed. Otherwise, the operation of automatically closing the target module is not triggered.

[0077] Specifically, when the switch identifier included in the received request information is the second identifier value, the target closing mode is the first automatic closing mode, the second automatic closing mode, or the third automatic closing mode, the closing control of the target module is skipped this time, and the step of obtaining the second state value corresponding to the target closing mode is executed again.

[0078] When the switch identification contained in the received request information is the second identification value, the target closing mode is the manual mode, and the enable identification value is the fourth identification value, then the opening of the target module is waited, that is, the opening flag bit of the target module is the fifth preset value, and after the opening flag bit of the target module is the fifth preset value, the target module is closed, so as to avoid the case that the target module is running empty.

[0079] It should be noted that since the enable identification value is the fourth identification value in the manual closing mode, and the enable register is the power-on switch, if the user does not configure the enable identification value to the third identification value through the manual opening mode, the target module cannot be opened again, that is, after the target module is closed manually, the target module cannot be opened through the automatic opening mode.

[0080] In a specific embodiment, when the switch module continuously receives the enable identification value which is the third identification value, the switch module is restarted.

[0081] In order to avoid the case that the opening or closing cannot be triggered in the automatic opening mode or the automatic closing mode, for example, the request count value cannot meet the preset condition, the user can continuously configure the enable identification value to the third identification value to restart, so as to avoid the card of the switch module, and further improve the flexibility of the module switch control.

[0082] It can be known that the opening and closing of the target module are controlled independently, and the manual mode or the multiple automatic modes can be flexibly selected in the independent control, the flexibility of the module switch control is effectively improved, and the combination of the manual mode and the automatic mode can be realized only by configuring the register, the user operation convenience is improved, and the flexibility and the convenience of the module switch control are improved.

[0083] Although some specific embodiments of the present application have been described in detail by examples, those skilled in the art should understand that the above examples are only for illustration, but not for limiting the scope of the present application. Those skilled in the art should also understand that various modifications can be made to the embodiments without departing from the scope and spirit of the present application. The scope disclosed by the present application is defined by the appended claims.

Claims

1. A multi-mode switching system, characterized by, The system comprises a target module and a switch module corresponding to the target module, wherein the switch module comprises an enable register, an open mode selection register, a close mode selection register, an open mode configuration register and a close mode configuration register; The switch module is configured to receive a target open mode and a target close mode, and after receiving the target open mode, configure a first configuration value corresponding to the target open mode to the open mode selection register, and after receiving the target close mode, configure a second configuration value corresponding to the target close mode to the close mode selection register, wherein the target open mode belongs to an open mode set, the target close mode belongs to a close mode set, the open mode set at least comprises a manual mode, a first automatic open mode and a second automatic open mode, the close mode set at least comprises a manual mode, a first automatic close mode, a second automatic close mode and a third automatic close mode, the first configuration value is used to identify the target open mode configured by a user, and the second configuration value is used to identify the target close mode configured by the user; The switch module is further configured to configure an open mode configuration register corresponding to the target open mode when the target open mode is the first automatic open mode or the second automatic open mode, and configure a close mode configuration register corresponding to the target close mode when the target close mode is the first automatic close mode, the second automatic close mode or the third automatic close 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 comprises a switch identification, and the switch identification is a first identification value or a second identification value, wherein when the switch identification is the first identification value, it indicates that the target module is requested to be opened, and when the switch identification is the second identification value, it indicates that the target module is requested to be closed; The switch module is further configured to, when the switch identification contained in the received request information is the first identification value, the target open mode is the manual mode and the enable identification value is a third identification value, set an open flag bit of the target module to a fifth preset value, set a close flag bit of the target module to a sixth preset value, and open the target module, wherein when the enable identification value is configured to be the third identification value, it indicates that the target module is powered on, the fifth preset value is 1, and the sixth preset value is 0. The switch module is further configured to: when the switch identifier contained in the received request information is a first identifier value, the target opening mode is a first automatic opening mode or a second automatic opening mode, acquire a first state value corresponding to the target opening mode, and if the first state value corresponding to the target opening mode and a configuration value in a start mode configuration register satisfy a first preset condition, set an opening flag bit of the target module to a fifth preset value, set a closing flag bit of the target module to a sixth preset value, and open the target module, wherein the first automatic opening mode is configured to determine a period count value as the first state value corresponding to the target opening mode, and correspondingly, the first preset condition is that the period count value is equal to the configuration value in the start mode configuration register; the second automatic opening mode is configured to determine a request count value as the first state value corresponding to the target opening mode, and correspondingly, the first preset condition is that the request count value is equal to the configuration value in the start mode configuration register; The switch module is further configured to: when the switch identifier contained in the received request information is a second identifier value, the target closing mode is a manual mode, and the enable identifier value is a fourth identifier value, set the opening flag bit of the target module to the sixth preset value, set the closing flag bit of the target module to the fifth preset value, and close the target module, wherein when the enable identifier value is the fourth identifier value, it indicates that the target module is not powered on; The switch module is further configured to: when the switch identifier contained in the received request information is the second identifier value, the target closing mode is a first automatic closing mode, a second automatic closing mode or a third automatic closing mode, acquire a second state value corresponding to the target closing mode, and if the second state value corresponding to the target closing mode and a configuration value in a closing mode configuration register satisfy a second preset condition, set the opening flag bit of the target module to the sixth preset value, set the closing flag bit of the target module to the fifth preset value, and close the target module, wherein the first automatic closing mode is configured to determine a period count value as the second state value corresponding to the target closing mode, and correspondingly, the second preset condition is that the period count value is equal to the configuration value in the closing mode configuration register; the second automatic closing mode is configured to determine a request count value as the second state value corresponding to the target closing mode, and correspondingly, the second preset condition is that the request count value is equal to the configuration value in the closing mode configuration register; and the third automatic closing mode is configured to determine a target module execution state as the second state value corresponding to the target closing mode, and correspondingly, the second preset condition is that the target module execution state is equal to the configuration value in the closing mode configuration register.

2. The switching system of claim 1, wherein When the switch identifier contained in the received request information is the first identifier value, and the target opening mode is the first automatic opening mode, a period count value is acquired as the first state value corresponding to the target opening mode, the period count value being a period statistical value from a period when the request information is received to a current period; Correspondingly, the configuration value in the start mode configuration register is a first period threshold value; Correspondingly, the configuration value in the start mode configuration register is a first period threshold value; The first preset condition is that the cycle count value is equal to the first cycle threshold value. If the first state value corresponding to the target opening mode and the configuration value in the start mode configuration register do not satisfy the first preset condition, the step of obtaining the cycle count value as the first state value corresponding to the target opening mode is executed.

3. The switching system of claim 1, wherein When the switch identifier contained in the received request information is the first identifier value and the target opening mode is the second automatic opening mode, a request count value is obtained as the first state value corresponding to the target opening mode, the request count value being a statistical quantity of user-specified requests received between a cycle when the request information is received and a current cycle; Correspondingly, the configuration value in the start mode configuration register is a first request quantity threshold value; The first preset condition is that the request count value is equal to the first request quantity threshold value; If the first state value corresponding to the target opening mode and the configuration value in the start mode configuration register do not satisfy the first preset condition, the step of obtaining the request count value as the first state value corresponding to the target opening mode is executed.

4. The switching system of claim 1, wherein When the switch identifier contained in the received request information is the second identifier value and the target closing mode is the first automatic closing mode, a cycle count value is obtained as the second state value corresponding to the target closing mode, the cycle count value being a cycle statistical value from a cycle when the request information is received to a current cycle; Correspondingly, the configuration value in the closing mode configuration register is a second cycle threshold value; The second preset condition is that the cycle count value is equal to the second cycle threshold value; If the second state value corresponding to the target closing mode and the configuration value in the closing mode configuration register do not satisfy the second preset condition, the step of obtaining the cycle count value as the second state value corresponding to the target closing mode is executed.

5. The switching system of claim 1, wherein When the switch identifier contained in the received request information is the second identifier value and the target closing mode is the second automatic closing mode, a request count value is obtained as the second state value corresponding to the target closing mode, the request count value being a statistical quantity of user-specified requests received between a cycle when the request information is received and a current cycle; Correspondingly, the configuration value in the closing mode configuration register is a second request quantity threshold value; The second preset condition is that the request count value is equal to the second request quantity threshold value; If the second state value corresponding to the target closing mode and the configuration value in the closing mode configuration register do not satisfy the second preset condition, the step of obtaining the request count value as the second state value corresponding to the target closing mode is executed.

6. The switching system of claim 1, wherein When the switch identifier contained in the received request information is the second identifier value and the target closing mode is the third automatic closing mode, a target module execution state is obtained as the second state value corresponding to the target closing mode, the target module execution state including a completed execution state and an uncompleted execution state; Correspondingly, the configuration value in the closing mode configuration register is the completed execution state; The second preset condition is that the target module execution state is equal to the completed execution state; If the second state value corresponding to the target closing mode and the configuration value in the closing mode configuration register do not satisfy the second preset condition, the step of obtaining the target module execution state as the second state value corresponding to the target closing mode is returned to be executed.

7. The switching system of claim 1, wherein When the switch identifier contained in the received request information is the second identifier value, the target closing mode is the first automatic closing mode, the second automatic closing mode or the third automatic closing mode, or when the switch identifier contained in the received request information is the second identifier value, the target closing mode is the manual mode and the enable identifier value is the fourth identifier value, the opening flag bit of the target module is obtained; If the opening flag bit of the target module is the fifth preset value, the step of obtaining the second state value corresponding to the target closing mode is executed, and if the state value corresponding to the target closing mode and the configuration value in the closing mode configuration register satisfy the second preset condition, the opening flag bit of the target module is set to the sixth preset value, the closing flag bit of the target module is set to the fifth preset value, and the target module is closed. Otherwise, the step of obtaining the second state value corresponding to the target closing mode is not executed, and if the state value corresponding to the target closing mode and the configuration value in the closing mode configuration register satisfy the second preset condition, the opening flag bit of the target module is set to the sixth preset value, the closing flag bit of the target module is set to the fifth preset value, and the target module is closed.

8. The switching system of claim 1, wherein, When the switch module continuously receives the enable identifier value which is the third identifier value, the switch module is restarted.

Citation Information

Patent Citations

  • Cell image synthesis using one or more neural networks

    CN112102329A

  • Universal chip acquisition system

    CN119025386A