An upgrading method, device and hardware logic device

CN116301999BActive Publication Date: 2026-09-22LENOVO BEIJING INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310328567.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2026-09-22
Estimated Expiration
2043-03-30

AI Technical Summary

Technical Problem

[0002]在一些应用场景下,需要在系统运行过程中对硬件逻辑器件进行升级,但是,如何对硬件逻辑器件进行升级而不影响系统运行成为问题

Benefits of technology

[0027]在本申请中,响应于升级指令,通过储能模块控制目标输入或输出接口处于高电平状态,以使得基于高电平状态控制待升级硬件逻辑器件处于目标状态,对待升级硬件逻辑器件进行升级,在目标状态下,待升级硬件逻辑器件的各输入或输出接口的输入或输出状态保持不变,使得系统基于待升级硬件逻辑器件的各输入或输出接口进行的控制保持不变,从而不影响系统运行。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116301999B_ABST
    Figure CN116301999B_ABST
Patent Text Reader

Abstract

The application provides an upgrading method, device and hardware logic device. The method comprises the following steps: in response to an upgrading instruction, controlling a target input or output interface to be in a high level state by an energy storage module, so as to control a hardware logic device to be upgraded to be in a target state based on the high level state, and upgrade the hardware logic device to be upgraded. In the target state, the input or output state of each input or output interface of the hardware logic device to be upgraded remains unchanged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to an upgrade method, apparatus and hardware logic device. Background Technology

[0002] In some application scenarios, it is necessary to upgrade hardware logic devices during system operation. However, how to upgrade hardware logic devices without affecting system operation becomes a problem. Summary of the Invention

[0003] This application provides the following technical solution:

[0004] This application provides an upgrade method, including:

[0005] In response to an upgrade command, the target input or output interface is controlled to be in a high-level state through the energy storage module, so that the hardware logic device to be upgraded is controlled to be in the target state based on the high-level state, and the hardware logic device to be upgraded is upgraded. In the target state, the input or output state of each input or output interface of the hardware logic device to be upgraded remains unchanged.

[0006] The method further includes:

[0007] Based on the upgrade duration of the hardware logic device to be upgraded, the discharge duration of the energy storage module is determined;

[0008] The energy storage module is configured based at least on its discharge duration.

[0009] The energy storage module is configured based on at least its discharge duration, including:

[0010] The energy storage module is configured based on the discharge duration of the energy storage module and the high-level decision threshold of the target input or output interface.

[0011] The energy storage module includes: a capacitor and at least one resistor, wherein the capacitor is connected to the input or output interface through the resistor;

[0012] Based on the discharge duration of the energy storage module and the high-level decision threshold of the target input or output interface, the energy storage module is configured, including:

[0013] Based on the discharge duration of the energy storage module and the high-level decision threshold of the target input or output interface, the capacitance value of the capacitor and the resistance value of the at least one resistor are set.

[0014] By measuring the voltage change during capacitor discharge, the actual discharge duration when the voltage change of the capacitor reaches the high-level decision threshold is determined.

[0015] If the actual discharge duration is determined to be not less than the upgrade duration, the actual discharge duration is used to replace the discharge duration. Then, the process returns to the steps of setting the capacitance value of the capacitor and the resistance value of the at least one resistor based on the discharge duration of the energy storage module and the high-level decision threshold of the target input or output interface.

[0016] The at least one resistor includes at least one first resistor and at least one second resistor, and the capacitor is connected to the target input or output interface through the at least one first resistor.

[0017] The method further includes:

[0018] Based on the usable discharge voltage of the capacitor and the maximum allowable current of the target input or output interface, it is determined that the maximum current of the at least one first resistor exceeds the maximum allowable current. The resistance values ​​of the at least one first resistor and the at least one second resistor are then adjusted so that the maximum current of the at least one first resistor does not exceed the maximum allowable current.

[0019] The method further includes:

[0020] In response to the detection of a target event, the target input or output interface is controlled to be in a high-level state, and the energy storage module is charged through the target input or output interface.

[0021] The detected target events include:

[0022] The update file in the hardware logic device to be used was detected to be in a refresh state.

[0023] This application also provides an upgrade device, comprising:

[0024] The control module, in response to the upgrade command, controls the target input or output interface to a high level state through the energy storage module, so that the hardware logic device to be upgraded is controlled to be in the target state based on the high level state, and the hardware logic device to be upgraded is upgraded. In the target state, the input or output state of each input or output interface of the hardware logic device to be upgraded remains unchanged.

[0025] A third aspect of this application provides a hardware logic device, which includes at least: a controller, an energy storage module, and multiple input or output interfaces;

[0026] The controller is configured to execute the upgrade method as described in any of the above.

[0027] In this application, in response to an upgrade command, the target input or output interface is controlled to be in a high-level state by the energy storage module, so that the hardware logic device to be upgraded is controlled to be in the target state based on the high-level state, and the hardware logic device to be upgraded is upgraded. In the target state, the input or output state of each input or output interface of the hardware logic device to be upgraded remains unchanged, so that the control of the system based on each input or output interface of the hardware logic device to be upgraded remains unchanged, thereby not affecting the operation of the system. Attached Figure Description

[0028] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0029] Figure 1 This is a schematic diagram of an implementation scenario of an upgrade method provided in Embodiment 1 of this application;

[0030] Figure 2 This is a schematic diagram of another implementation scenario of an upgrade method provided in Embodiment 1 of this application;

[0031] Figure 3 This is a schematic diagram of a refresh scenario for the hardware logic device to be upgraded provided in Embodiment 1 of this application;

[0032] Figure 4 This is a flowchart illustrating an upgrade method provided in Embodiment 2 of this application;

[0033] Figure 5 This is a flowchart illustrating an upgrade method provided in Embodiment 3 of this application;

[0034] Figure 6 This is a flowchart illustrating an upgrade method provided in Embodiment 4 of this application;

[0035] Figure 7 This is a schematic diagram of the structure of an energy storage module provided in Embodiment 5 of this application;

[0036] Figure 8 This is a flowchart illustrating an upgrade method provided in Embodiment 6 of this application;

[0037] Figure 9 This is a flowchart illustrating an upgrade method provided in Embodiment 7 of this application. Detailed Implementation

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

[0039] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0040] This application provides an upgrade method that can be applied to electronic devices. This application does not limit the type of electronic device to which it applies. (See also...) Figure 1 The illustrated upgrade method is a schematic diagram of an implementation scenario. In Embodiment 1 of this application, the method may include, but is not limited to, the following steps:

[0041] Step S101: In response to the upgrade command, the target input or output interface is controlled to be in a high-level state through the energy storage module, so that the hardware logic device to be upgraded is controlled to be in the target state based on the high-level state, and the hardware logic device to be upgraded is upgraded. In the target state, the input or output state of each input or output interface of the hardware logic device to be upgraded remains unchanged.

[0042] The target input or output interface can be one of the input or output interfaces of the hardware logic device to be upgraded.

[0043] In this embodiment, the energy storage module can be charged to put it in a charging state. When the energy storage settings meet the set conditions, the energy storage module can switch from the charging state to the discharging state.

[0044] Correspondingly, the target input or output interface is controlled to be in a high-level state by the energy storage module being in a discharging state.

[0045] The hardware logic device to be upgraded can load and start the upgrade file to obtain the status of the target input or output interface. If the status of the target input or output interface is high, the hardware logic device to be upgraded can be controlled to be in the target state.

[0046] The hardware logic devices to be upgraded may include, but are not limited to, those mounted on the backplane. For example, the hardware logic devices to be upgraded may include FPGAs (Field Programmable Gate Arrays) or CPLDs (Complex Programmable Logic Devices) on the backplane.

[0047] The energy storage module can be, but is not limited to, being mounted on the backplane. For example, if the hardware logic device to be upgraded is a CPLD, and the target input or output interface is one of the GPIOs (General Purpose Input / Output) of the CPLD, denoted as GPIOA, such as... Figure 1 As shown, the energy storage module on the backplane controls GPIOA to a high level, thereby controlling the CPLD to be in the target state based on the high level state, and upgrading the CPLD on the backplane. In the target state, the input or output states of each GPIO of the CPLD on the backplane remain unchanged. Each GPIO of the CPLD on the backplane includes GPIOA and other GPIOAs besides GPIOA.

[0048] Of course, the energy storage module doesn't necessarily need to be mounted on the backplane, as long as it can connect to the target input or output interface of the hardware logic device to be upgraded. If the hardware logic device to be upgraded is a CPLD, and the target input or output interface is the CPLD's GPIOA, such as... Figure 2 As shown, the energy storage module outside the backplane controls GPIOA to a high level, thereby controlling the CPLD to be in the target state based on the high level state, and upgrading the CPLD on the backplane. In the target state, the input or output states of each GPIO of the CPLD on the backplane remain unchanged. Each GPIO of the CPLD on the backplane includes GPIOA and other GPIOAs besides GPIOA.

[0049] It should be noted that, Figure 1 Option 2 is merely an example of upgrading the hardware logic device to be upgraded, and is not intended to limit the specific implementation of the upgrade method.

[0050] By controlling the target input or output interface to a high level through the energy storage module, the hardware logic device to be upgraded can be controlled to the target state based on the high level state, and the hardware logic device to be upgraded can be upgraded. Compared with controlling the input or output state of each input or output interface of the hardware logic device to be upgraded to remain unchanged through an external controller outside the backplane (such as a controller on the motherboard), the hardware modification of the backplane is smaller, which can reduce hardware costs.

[0051] For implementations where the hardware logic device to be upgraded is an FPGA or CPLD on the backplane, the upgrade command can be, but is not limited to, sent by a controller on the motherboard (e.g., a baseboard management controller).

[0052] In an implementation where the hardware logic device to be upgraded is located on a backplane, the upgrade file can be written to the memory of the hardware logic device to be upgraded by the controller on the motherboard via the I2C bus using a background refresh method. For example, Figure 3 As shown, the upgrade file to be used can be written to the CPLD's memory by the controller on the motherboard via the I2C bus in a background refresh mode.

[0053] In this embodiment, in response to the upgrade command, the energy storage module controls the target input or output interface to be in a high-level state, so that the hardware logic device to be upgraded is controlled to be in the target state based on the high-level state, and the hardware logic device to be upgraded is upgraded. In the target state, the input or output state of each input or output interface of the hardware logic device to be upgraded remains unchanged, so that the control of the system based on each input or output interface of the hardware logic device to be upgraded remains unchanged, thereby not affecting the operation of the system.

[0054] As another optional embodiment of this application, refer to Figure 4 This is a flowchart illustrating an upgrade method provided in Embodiment 2 of this application. This embodiment is mainly an extension of the upgrade method described in Embodiment 1 above. The method may include, but is not limited to, the following steps:

[0055] Step S201: Determine the discharge duration of the energy storage module based on the upgrade duration of the hardware logic device to be upgraded.

[0056] Within the upgrade timeframe of the hardware logic device to be upgraded, it can be guaranteed that the upgrade will be completed.

[0057] This step may include, but is not limited to:

[0058] S2011. The sum of the upgrade duration of the hardware logic device to be upgraded and the set duration threshold is determined as the discharge duration of the energy storage module.

[0059] Step S202: Configure the energy storage module based at least on the discharge duration of the energy storage module.

[0060] As the energy storage module discharges, the input voltage of the target input or output interface will decrease accordingly. Furthermore, the target input or output interface has a high-level decision threshold. If the input voltage of the target input or output interface does not decrease to the high-level decision threshold, the target input or output interface remains in a high-level state. Therefore, based on the discharge duration of the energy storage module, the module settings must ensure that the time required for the input voltage of the target input or output interface to change to the high-level decision threshold is at least not less than the upgrade duration of the hardware logic device to be upgraded, and the time required for the input voltage of the target input or output interface to change to zero is equal to the discharge duration of the energy storage module.

[0061] Step S203: In response to the upgrade command, the target input or output interface is controlled to be in a high-level state through the energy storage module, so that the hardware logic device to be upgraded is controlled to be in the target state based on the high-level state, and the hardware logic device to be upgraded is upgraded. In the target state, the input or output state of each input or output interface of the hardware logic device to be upgraded remains unchanged.

[0062] In this embodiment, the discharge duration of the energy storage module is determined based on the upgrade duration of the hardware logic device to be upgraded. The energy storage module is configured such that, during the discharge process, the duration for which the target input or output interface is in a high-level state is at least not less than the upgrade duration of the hardware logic device to be upgraded. Based on this, in response to the upgrade command, the energy storage module controls the target input or output interface to be in a high-level state. This ensures that the hardware logic device to be upgraded is controlled to be in the target state based on the high-level state, and the hardware logic device is upgraded. This guarantees that the input or output states of each input or output interface of the hardware logic device to be upgraded remain unchanged during the upgrade duration, meaning that the system operation is not affected throughout the entire upgrade process.

[0063] As another optional embodiment of this application, refer to Figure 5 This is a flowchart illustrating an upgrade method provided in Embodiment 3 of this application. This embodiment mainly refines step S202 in Embodiment 2 above, such as... Figure 5 As shown, step S202 may include, but is not limited to, the following steps:

[0064] Step S2021: Configure the energy storage module based on the discharge duration of the energy storage module and the high-level decision threshold of the target input or output interface.

[0065] Based on the discharge duration of the energy storage module and the high-level decision threshold of the target input or output interface, the energy storage module is configured such that the time required for the energy storage module to meet the high-level decision threshold of the target input or output interface is at least the discharge duration of the energy storage module.

[0066] The energy storage module ensures that the time required for the input voltage of the target input or output interface to reach a high-level decision threshold is at least the discharge time of the energy storage module. This guarantees that the time elapsed for the input voltage of the target input or output interface to reach a high-level decision threshold is not less than the upgrade time of the hardware logic device to be upgraded. Based on this, in response to the upgrade command, the energy storage module controls the target input or output interface to be in a high-level state, so that the hardware logic device to be upgraded is controlled to be in the target state based on the high-level state, and the hardware logic device to be upgraded is upgraded. This ensures that the input or output state of each input or output interface of the hardware logic device to be upgraded remains unchanged during the upgrade time of the hardware logic device to be upgraded, that is, the system operation is not affected during the entire upgrade process of the hardware logic device to be upgraded.

[0067] As another optional embodiment of this application, refer to Figure 6 This is a flowchart illustrating an upgrade method provided in Embodiment 4 of this application. In this embodiment, the energy storage module may include, but is not limited to, a capacitor and at least one resistor. The capacitor is connected to an input or output interface through the resistor, such as... Figure 6 As shown, step S2021 may include, but is not limited to, the following steps:

[0068] Step S20211: Based on the discharge duration of the energy storage module and the high-level decision threshold of the target input or output interface, set the capacitance value of the capacitor and the resistance value of at least one resistor.

[0069] Based on the discharge duration of the energy storage module and the high-level decision threshold of the target input or output interface, the capacitance value of the capacitor and the resistance value of at least one resistor are set such that the capacitor and at least one resistor satisfy the requirement that the time taken for the input voltage of the target input or output interface to change to the high-level decision threshold is at least the discharge duration of the energy storage module.

[0070] In this embodiment, step S20211 may include, but is not limited to:

[0071] S202111, Obtain the first change value corresponding to the input voltage of the target input or output interface.

[0072] In this embodiment, the first change value can be, but is not limited to, the difference between the usable discharge voltage of the energy storage module and the voltage corresponding to the end of the energy storage module's discharge. The voltage corresponding to the end of the energy storage module's discharge can be 0.

[0073] The usable discharge voltage of an energy storage module can be understood as the voltage obtained by the energy storage module when it is charged.

[0074] S202112. Based on the high-level decision threshold of the target input or output interface, determine the second change value corresponding to the input voltage of the target input or output interface, wherein the absolute value of the first change value is greater than the absolute value of the second change value.

[0075] The second change value can be the difference between the voltage corresponding to the end of the energy storage module's discharge and the high-level decision threshold.

[0076] S202113. Based on the first change value, the second change value, and the discharge duration of the energy storage module, set the capacitance value of the capacitor and the resistance value of at least one resistor.

[0077] Step S202113 may include, but is not limited to:

[0078] The capacitance value and the resistance value of at least one resistor are set using, but not limited to, the following relationships:

[0079] t = RC * ln[(V1 - V0) / (V1 - Vt)]

[0080] Where t is the discharge duration of the energy storage module, R is the resistance value of at least one resistor, C is the capacitance value, V1 represents the voltage corresponding to the end of the discharge of the energy storage module, V0 represents the usable discharge voltage of the energy storage module, Vt represents the high-level decision threshold, and ln is the ln function.

[0081] In this embodiment, the value of R or C can be obtained by substituting one of the set capacity value and the set resistance value, the voltage corresponding to the end of the energy storage module's discharge, the usable discharge voltage of the energy storage module, the high-level decision threshold, and the discharge duration of the energy storage module into the above formula. For example, if t is 1ms, V1 is 3.3V, V0 is 0V, Vt is 2V, and the set capacity value is 1uf, substituting t is 1ms, V1 is 3.3V, V0 is 0V, Vt is 2V, and the set capacity value is 1uf into the above formula, the value of R is found to be 2K ohms.

[0082] Step S20212: By measuring the voltage change during capacitor discharge, determine the actual discharge duration when the capacitor voltage change reaches the high-level decision threshold.

[0083] Specifically, the actual discharge time required to determine when the input voltage of the target input or output interface reaches the high-level decision threshold can be determined by measuring the change in the input voltage value of the target input or output interface as the capacitor discharges.

[0084] The actual discharge time used when the input voltage value of the target input or output interface changes to the high-level decision threshold is taken as the actual discharge time when the voltage value of the capacitor changes to the high-level decision threshold.

[0085] Step S20213: Determine that the actual discharge duration is not less than the upgrade duration, replace the discharge duration with the actual discharge duration, and return to step S20211.

[0086] If the actual discharge duration is determined to be no less than the upgrade duration, it means that the capacitor and at least one resistor can ensure that the target input or output interface remains at a high level within the upgrade duration. The actual discharge duration can be replaced with the discharge duration, and the process returns to step S20211 to adjust the capacitor and at least one resistor. The adjusted capacitor and at least one resistor can still ensure that the target input or output interface remains at a high level within the upgrade duration.

[0087] As another optional embodiment of this application, a specific implementation of an energy storage module provided in Embodiment 5 of this application is as follows:

[0088] In Example 4, at least one resistor may include, but is not limited to, at least one first resistor and at least one second resistor, and the capacitor is connected to the target input or output interface through at least one first resistor.

[0089] In this configuration, when the capacitor is in a discharging state, at least one first resistor and at least one second resistor are in series, and the capacitor discharges through at least one first resistor and at least one second resistor.

[0090] In this embodiment, at least one resistor includes a first resistor and a second resistor, and may be, but is not limited to, the implementation described in [reference 1]. Figure 7 ,like Figure 7 As shown, capacitor C1 is connected to the target input or output interface through the first resistor R1. When capacitor C1 is in the discharge state, capacitor C1 discharges through the first resistor R1 and the second resistor R2.

[0091] As another optional embodiment of this application, refer to Figure 8 This is a flowchart illustrating an upgrade method provided in Embodiment 6 of this application. This embodiment mainly corresponds to the energy storage module provided in Embodiment 5, and is an extension of Embodiment 4, such as... Figure 8 As shown, the method may include, but is not limited to, the following steps:

[0092] Step S301: Determine the discharge duration of the energy storage module based on the upgrade duration of the hardware logic device to be upgraded.

[0093] Step S302: Based on the discharge duration of the energy storage module and the high-level decision threshold of the target input or output interface, set the capacitance value of the capacitor, the resistance value of at least one first resistor and at least one second resistor.

[0094] Step S303: By measuring the change in voltage value during capacitor discharge, determine the actual discharge duration when the change in capacitor voltage value reaches the high-level decision threshold.

[0095] Step S304: Determine that the actual discharge duration is not less than the upgrade duration, replace the discharge duration with the actual discharge duration, and return to step S302.

[0096] For a detailed description of steps S302-S304, please refer to the relevant description of steps S20211-S20213 in Example 4, which will not be repeated here.

[0097] Step S305: Based on the usable discharge voltage of the capacitor and the maximum allowable current of the target input or output interface, determine that the maximum current of at least one first resistor exceeds the maximum allowable current, and adjust the resistance value of at least one first resistor and the resistance value of at least one second resistor so that the maximum current of at least one first resistor does not exceed the maximum allowable current.

[0098] In this embodiment, the usable discharge voltage of the capacitor can be divided by the resistance value of at least one first resistor to obtain the maximum current of at least one first resistor.

[0099] By comparing the maximum current of at least one first resistor with the maximum allowable current of the target input or output interface, it is determined that the maximum current of at least one first resistor exceeds the maximum allowable current. If the maximum current of at least one first resistor exceeds the maximum allowable current, the current flowing into the target input or output interface will be greater than the maximum allowable current. To avoid the current flowing into the target input or output interface from exceeding the maximum allowable current, the resistance values ​​of at least one first resistor and at least one second resistor can be adjusted so that the maximum current of at least one first resistor does not exceed the maximum allowable current.

[0100] Adjusting the resistance value of at least one first resistor and the resistance value of at least one second resistor may include, but is not limited to:

[0101] S3051. Divide the usable discharge voltage of the capacitor by the maximum allowable current to obtain the minimum resistance value of at least one first resistor.

[0102] S3052. Adjust the resistance value of at least one first resistor to be not less than the minimum resistance value, and obtain the adjusted resistance value of at least one first resistor.

[0103] S3053. The adjusted resistance value of at least one second resistor is obtained by subtracting the adjusted resistance value of at least one first resistor from the resistance value of at least one resistor obtained based on the discharge duration of the energy storage module and the high-level decision threshold of the target input or output interface.

[0104] For example, if the resistance value of at least one resistor is determined based on the discharge duration of the energy storage module and the high-level decision threshold of the target input or output interface, as in step S202113 of Example 4, the usable discharge voltage of the corresponding capacitor is 3.3V and the maximum allowable current is 10mA. Dividing 3.3V by 10mA yields a minimum resistance value of 330 ohms for at least one first resistor. The resistance value of at least one first resistor can be adjusted to 400 ohms. The difference between 2K ohms and 400 ohms, i.e., 1600 ohms, is taken as the adjusted resistance value of at least one second resistor.

[0105] Step S306: In response to the upgrade command, the target input or output interface is controlled to be in a high-level state through the energy storage module, so that the hardware logic device to be upgraded is controlled to be in the target state based on the high-level state, and the hardware logic device to be upgraded is upgraded. In the target state, the input or output state of each input or output interface of the hardware logic device to be upgraded remains unchanged.

[0106] In this embodiment, based on the usable discharge voltage of the capacitor and the maximum allowable current of the target input or output interface, it is determined that the maximum current of at least one first resistor exceeds the maximum allowable current. The resistance values ​​of at least one first resistor and at least one second resistor are adjusted so that the maximum current of at least one first resistor does not exceed the maximum allowable current. This can avoid damage to the target input or output interface and avoid affecting the use of the hardware logic device to be upgraded.

[0107] As another optional embodiment of this application, refer to Figure 9 This is a flowchart illustrating an upgrade method provided in Embodiment 7 of this application. This embodiment is mainly an extension of Embodiment 1, such as... Figure 9 As shown, the method may include, but is not limited to, the following steps:

[0108] Step S401: In response to the detection of a target event, control the target input or output interface to be in a high-level state, and charge the energy storage module through the target input or output interface.

[0109] The detected target event may include, but is not limited to: detecting that the upgrade file in the hardware logic device to be used is in a refresh state.

[0110] The upgrade file is used to upgrade the hardware logic devices to be used.

[0111] In this embodiment, the target input or output interface can be controlled to be in a high-level state, so that the power supply of the hardware logic device to be upgraded is connected to the energy storage module, and the power supply of the hardware logic device to be upgraded charges the energy storage module through the target input or output interface.

[0112] Of course, in this application, the method of charging the energy storage module is not limited to step S401. The energy storage module can also be charged by an external power source other than the hardware logic device to be upgraded.

[0113] Step S402: In response to the upgrade command, the target input or output interface is controlled to be in a high-level state through the energy storage module, so that the hardware logic device to be upgraded is controlled to be in the target state based on the high-level state, and the hardware logic device to be upgraded is upgraded. In the target state, the input or output state of each input or output interface of the hardware logic device to be upgraded remains unchanged.

[0114] For a detailed description of step S402, please refer to the relevant description of step S101 in Example 1, which will not be repeated here.

[0115] In this embodiment, in response to the detection of a target event, the target input or output interface is controlled to be in a high-level state, and the energy storage module is charged through the target input or output interface. This eliminates the need for an external power supply for charging, which can further reduce hardware costs.

[0116] The following section describes an upgrade device provided in this application. The upgrade device described below can be referred to in correspondence with the upgrade method described above.

[0117] Upgrade devices may include, but are not limited to:

[0118] The control module, in response to the upgrade command, controls the target input or output interface to a high level state through the energy storage module, so that the hardware logic device to be upgraded is controlled to the target state based on the high level state, and the hardware logic device to be upgraded is upgraded. In the target state, the input or output state of each input or output interface of the hardware logic device to be upgraded remains unchanged.

[0119] In this embodiment, the upgrade device may further include:

[0120] The determination module is used to determine the discharge duration of the energy storage module based on the upgrade duration of the hardware logic devices to be upgraded.

[0121] The configuration module is used to configure the energy storage module based at least on the discharge duration of the energy storage module.

[0122] In this embodiment, the setting module can specifically be used for:

[0123] The energy storage module is configured based on the discharge duration of the energy storage module and the high-level decision threshold of the target input or output interface.

[0124] In this embodiment, the energy storage module includes: a capacitor and at least one resistor, wherein the capacitor is connected to an input or output interface through the resistor;

[0125] Accordingly, the process of configuring the energy storage module based on the discharge duration of the energy storage module and the high-level decision threshold of the target input or output interface may specifically include:

[0126] Based on the discharge duration of the energy storage module and the high-level decision threshold of the target input or output interface, set the capacitance value of the capacitor and the resistance value of at least one resistor.

[0127] By measuring the voltage change during capacitor discharge, the actual discharge duration when the capacitor voltage change reaches the high-level decision threshold is determined.

[0128] Once it is determined that the actual discharge duration is not less than the upgrade duration, the actual discharge duration is replaced with the discharge duration. The process then returns to the steps of setting the capacitance value of the capacitor and the resistance value of at least one resistor based on the discharge duration of the energy storage module and the high-level decision threshold of the target input or output interface.

[0129] In this embodiment, at least one resistor includes at least one first resistor and at least one second resistor, and the capacitor is connected to the target input or output interface through at least one first resistor.

[0130] The settings module can also be used for:

[0131] Based on the usable discharge voltage of the capacitor and the maximum allowable current of the target input or output interface, it is determined that the maximum current of at least one first resistor exceeds the maximum allowable current. The resistance values ​​of at least one first resistor and at least one second resistor are adjusted such that the maximum current of at least one first resistor does not exceed the maximum allowable current.

[0132] The upgrade device may also include:

[0133] The charging module is used to control the target input or output interface to a high level in response to the detection of a target event, and to charge the energy storage module through the target input or output interface.

[0134] Detected target events can include:

[0135] The update file in the hardware logic device to be used was detected to be in a refresh state.

[0136] Corresponding to the above-described embodiment of the upgrade method provided in this application, this application also provides an embodiment of a hardware logic device.

[0137] The hardware logic device may include the following structure:

[0138] Controller, energy storage module and multiple input or output interfaces.

[0139] The controller is used to execute the upgrade method as described in any one of the embodiments 1-7.

[0140] It should be noted that each embodiment focuses on describing the differences from other embodiments, and the same or similar parts between the embodiments can be referred to accordingly. For the device embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiments.

[0141] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0142] For ease of description, the above devices are described in terms of function, divided into various modules. Of course, in implementing this application, the functions of each module can be implemented in one or more software and / or hardware.

[0143] As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments of this application.

[0144] The above provides a detailed description of an upgrade method, apparatus, and hardware logic device provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. An upgrade method, comprising: In response to an upgrade command, the energy storage module controls the target input or output interface of the hardware logic device to be upgraded to a high-level state, so that the hardware logic device to be upgraded is controlled to a target state based on the high-level state, and the hardware logic device to be upgraded is upgraded. In the target state, the input or output state of each input or output interface of the hardware logic device to be upgraded remains unchanged. The energy storage module includes a capacitor and at least one resistor, and the capacitor is connected to the target input or output interface through the resistor.

2. The method according to claim 1, further comprising: Based on the upgrade duration of the hardware logic device to be upgraded, the discharge duration of the energy storage module is determined; The energy storage module is configured based at least on its discharge duration.

3. The method according to claim 2, wherein the energy storage module is configured based at least on the discharge duration of the energy storage module, including: The energy storage module is configured based on the discharge duration of the energy storage module and the high-level decision threshold of the target input or output interface.

4. The method according to claim 3, Based on the discharge duration of the energy storage module and the high-level decision threshold of the target input or output interface, the energy storage module is configured, including: Based on the discharge duration of the energy storage module and the high-level decision threshold of the target input or output interface, the capacitance value of the capacitor and the resistance value of the at least one resistor are set. By measuring the voltage change during capacitor discharge, the actual discharge duration when the voltage change of the capacitor reaches the high-level decision threshold is determined. If the actual discharge duration is determined to be not less than the upgrade duration, the actual discharge duration is used to replace the discharge duration. Then, the process returns to the steps of setting the capacitance value of the capacitor and the resistance value of the at least one resistor based on the discharge duration of the energy storage module and the high-level decision threshold of the target input or output interface.

5. The method according to claim 4, wherein the at least one resistor comprises: At least one first resistor and at least one second resistor, wherein the capacitor is connected to the target input or output interface through the at least one first resistor.

6. The method according to claim 5, further comprising: Based on the usable discharge voltage of the capacitor and the maximum allowable current of the target input or output interface, it is determined that the maximum current of the at least one first resistor exceeds the maximum allowable current. The resistance values ​​of the at least one first resistor and the at least one second resistor are then adjusted so that the maximum current of the at least one first resistor does not exceed the maximum allowable current.

7. The method according to claim 1, further comprising: In response to the detection of a target event, the target input or output interface is controlled to be in a high-level state, and the energy storage module is charged through the target input or output interface.

8. The method according to claim 7, wherein detecting the target event includes: The upgrade file in the hardware logic device to be upgraded was detected to be in a refresh state.

9. An upgrading device, comprising: A control module, responding to an upgrade command, is used to control the target input or output interface of the hardware logic device to be upgraded to a high-level state via an energy storage module. This high-level state controls the hardware logic device to be upgraded to a target state, upgrading the device. In the target state, the input or output states of each input or output interface of the hardware logic device to be upgraded remain unchanged. The energy storage module includes a capacitor and at least one resistor, with the capacitor connected to the target input or output interface via the resistor.

10. A hardware logic device, comprising at least: Controller, energy storage module, and multiple input or output interfaces; The controller is configured to execute the upgrade method as described in any one of claims 1-8.

Citation Information

Patent Citations

  • Software upgrading method and device of instrument, instrument and storage medium

    CN111124452A

  • Firmware upgrading method and device, chip and computer storage medium

    CN115729573A