Verification method and device of fan controller, equipment, medium and program product

By building fan models and simulation models in the verification environment, comparing the control signals and speeds of the fan controller, the problem of difficulty in detecting abnormalities of fan controllers in the existing technology is solved, and the accuracy of fan control and development efficiency are improved.

CN120044937AInactive Publication Date: 2025-05-27沐曦集成电路(南京)有限公司
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510536230.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-27
Publication Date
2025-05-27
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The prior art cannot effectively detect whether the fan controller is abnormal in advance, resulting in inaccurate fan control, inability to provide timely feedback and interaction, poor reusability, and is only used for user function verification.

Method used

By constructing a fan model and a fan control simulation model in the verification environment, the control signal and speed information output by the fan controller are obtained, and compared with the output of the simulation model, the verification results of the fan controller are determined.

Benefits of technology

It realizes accurate verification of the control function of the fan controller, can detect functional abnormalities in a timely manner, and improves the accuracy and development efficiency of fan control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120044937A_ABST
    Figure CN120044937A_ABST
Patent Text Reader

Abstract

The invention relates to a verification method and device of a fan controller, equipment, a medium and a program product. The method comprises the following steps: acquiring a first control signal output by a fan controller in an operation process based on a verification environment, and acquiring a second control signal generated by a fan control simulation model corresponding to the fan controller; acquiring a first rotating speed determined by the fan controller according to the fan operation information, and acquiring a second rotating speed determined by the fan control simulation model according to the second control signal; the first rotating speed is determined by the fan controller according to received fan operation information output by the fan model; and comparing the first control signal with the second control signal, comparing the first rotating speed with the second rotating speed, and determining a verification result of the fan controller according to a comparison result. By adopting the method, whether the control function of the fan controller is normal can be verified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of integrated circuit verification, and particularly to a verification method, device, equipment, medium and program product for a fan controller. Background Art

[0002] Currently, when a GPU chip (Graphics Processing Unit) is running, it consumes electrical energy and generates heat. When the GPU chip overheats, the GPU chip may automatically reduce its operating frequency to reduce heat generation, which may lead to a performance decline. If the GPU chip runs at a high temperature for a long time, it may also cause irreversible damage to the hardware of the GPU chip, resulting in losses. Therefore, currently, the fan controller in the GPU is used to control the fan outside the GPU chip to dissipate heat from the GPU chip during its operation.

[0003] In the modern integrated circuit front-end design process, verification has the same important status as design, and at the same time, the verification work occupies most of the entire development cycle. With the exponential growth of design complexity, the verification work has become a key bottleneck in chip design. Improving the reusability of the platform can effectively improve the development efficiency.

[0004] In the related art, for the verification work of the GPU, a GPU model is usually constructed based on the Verilog language or the SystemVerilog language, and this model is used to perform functional verification on the GPU. However, these models have the disadvantages of being unable to provide timely feedback, unable to interact, and poor reusability, and only perform user functional verification.

[0005] Generally speaking, in the related art, it is impossible to detect in advance whether the fan controller is abnormal. However, if the control function of the fan controller is abnormal and the control of the fan is inaccurate, it will lead to ineffective heat dissipation. Summary of the Invention

[0006] Based on this, in view of the above technical problems, it is necessary to provide a verification method, device, equipment, medium and program product for a fan controller that can verify whether the control function of the fan controller is normal.

[0007] In a first aspect, the present application provides a verification method for a fan controller. The method includes:

[0008] Based on a verification environment, obtain a first control signal output by the fan controller during operation, and obtain a second control signal generated by a fan control simulation model corresponding to the fan controller; the first control signal is used to be output to a fan model in the verification environment and control the operation of the fan model, and the second control signal can be used to control the operation of the fan model;

[0009] Obtain the first rotational speed determined by the fan controller based on the fan operation information, and obtain the second rotational speed determined by the fan control simulation model according to the second control signal; the first rotational speed is determined by the fan controller based on the fan operation information output by the received fan model.

[0010] Compare the first control signal and the second control signal, and compare the first rotational speed and the second rotational speed. According to the comparison results, determine the verification result of the fan controller.

[0011] In one embodiment, determining the verification result of the fan controller according to the comparison results includes: if it is determined that the first control signal and the second control signal are compared and are consistent, and it is determined that the first rotational speed and the second rotational speed are compared and are consistent, then determine that the verification result is that the fan controller functions normally; if it is determined that the first control signal and the second control signal are compared and are inconsistent, and / or, it is determined that the first rotational speed and the second rotational speed are compared and are inconsistent, then determine that the verification result is that the fan controller functions abnormally.

[0012] In one embodiment, the first control signal is a first PWM signal, and the second control signal is a second PWM signal; the comparing the first control signal and the second control signal includes: determining whether the level difference between the first high-level duty ratio of the first PWM signal and the second high-level duty ratio of the second PWM signal is less than a preset level difference threshold; if it is determined that the level difference is less than the preset level difference threshold, then determine that the first control signal and the second control signal are compared and are consistent; if it is determined that the level difference is not less than the preset level difference threshold, then determine that the first control signal and the second control signal are compared and are inconsistent; the comparing the first rotational speed and the second rotational speed includes: determining whether the rotational speed difference between the first rotational speed and the second rotational speed is less than a preset rotational speed difference threshold; if it is determined that the rotational speed difference is less than the preset rotational speed difference threshold, then determine that the first rotational speed and the second rotational speed are compared and are consistent; if it is determined that the rotational speed difference is not less than the preset rotational speed difference threshold, then determine that the first rotational speed and the second rotational speed are compared and are inconsistent.

[0013] In one embodiment, the process of the fan control simulation model in the verification environment determining the second rotational speed according to the second control signal includes: querying a preset rotational speed control correspondence table based on the second control signal; the preset rotational speed control correspondence table includes the correspondence relationships between multiple groups of standard control signals and standard rotational speeds; determining the standard rotational speed corresponding to the standard control signal that is the same as the second control signal as the second rotational speed.

[0014] In one embodiment, the method further includes: obtaining, by using an agent module in the verification environment, the fan operation information output by the fan model through the operation signal line; and transmitting, by using the agent module, the fan operation information to the fan controller through a first connection interface; wherein, data transmission between the fan controller and the verification environment is performed through the first connection interface.

[0015] In one embodiment, the method further includes: synchronously outputting, by using a register model in the verification environment, first configuration information to the fan controller and the fan control simulation model; the first configuration information is used to configure the fan controller to output the first control signal based on target configuration parameters and configure the fan control simulation model to output the second control signal based on the target configuration parameters.

[0016] In a second aspect, the present application further provides a verification device for a fan controller. The device includes:

[0017] A first obtaining module, configured to obtain, based on a verification environment, a first control signal output by the fan controller during operation, and obtain a second control signal generated by a fan control simulation model corresponding to the fan controller; the first control signal is used to be output to a fan model in the verification environment to control the operation of the fan model, and the second control signal can be used to control the operation of the fan model;

[0018] A second obtaining module, configured to obtain a first rotation speed determined by the fan controller according to fan operation information, and obtain a second rotation speed determined by the fan control simulation model according to the second control signal; the first rotation speed is determined by the fan controller according to the fan operation information output by the received fan model;

[0019] A comparison module, configured to compare the first control signal with the second control signal, and compare the first rotation speed with the second rotation speed, and determine a verification result of the fan controller according to the comparison result.

[0020] In one embodiment, the comparison module is specifically configured to: if it is determined that the first control signal is consistent with the second control signal in comparison, and it is determined that the first rotation speed is consistent with the second rotation speed in comparison, determine that the verification result is that the fan controller functions normally; if it is determined that the first control signal is inconsistent with the second control signal in comparison, and / or it is determined that the first rotation speed is inconsistent with the second rotation speed in comparison, determine that the verification result is that the fan controller functions abnormally.

[0021] In one embodiment, the first control signal is a first PWM signal, and the second control signal is a second PWM signal; the comparison module is specifically configured to: determine whether the level difference between the first high-level duty cycle of the first PWM signal and the second high-level duty cycle of the second PWM signal is less than a preset level difference threshold; if it is determined that the level difference is less than the preset level difference threshold, determine that the first control signal and the second control signal are in consistent comparison; if it is determined that the level difference is not less than the preset level difference threshold, determine that the first control signal and the second control signal are in inconsistent comparison; the comparison module is further specifically configured to: determine whether the rotational speed difference between the first rotational speed and the second rotational speed is less than a preset rotational speed difference threshold; if it is determined that the rotational speed difference is less than the preset rotational speed difference threshold, determine that the first rotational speed and the second rotational speed are in consistent comparison; if it is determined that the rotational speed difference is not less than the preset rotational speed difference threshold, determine that the first rotational speed and the second rotational speed are in inconsistent comparison.

[0022] In one embodiment, the second acquisition module is specifically configured to: query a preset rotational speed control correspondence table based on the second control signal; the preset rotational speed control correspondence table includes the correspondence relationships between multiple groups of standard control signals and standard rotational speeds; determine the standard rotational speed corresponding to the standard control signal that is the same as the second control signal as the second rotational speed.

[0023] In one embodiment, the device further includes a transmission module, configured to: use the proxy module in the verification environment to obtain the fan operation information output by the fan model through the operation signal line; use the proxy module to transmit the fan operation information to the fan controller through a first connection interface; wherein, the fan controller and the verification environment perform data transmission through the first connection interface.

[0024] In one embodiment, the device further includes a configuration module, configured to: use the register model in the verification environment to synchronously output first configuration information to the fan controller and the fan control simulation model; the first configuration information is used to configure the fan controller to output the first control signal based on target configuration parameters and configure the fan control simulation model to output the second control signal based on the target configuration parameters.

[0025] In a third aspect, the present application further provides a computer device, including a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the steps of the method described in any item of the first aspect above are implemented.

[0026] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method described in any item of the first aspect above are implemented.

[0027] Fifth aspect, the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of the method described in any one of the above first aspects are implemented.

[0028] The above verification method, device, equipment, medium and program product of the fan controller obtain the first control signal output by the fan controller during operation and the second control signal generated by the fan control simulation model corresponding to the fan controller based on the verification environment; wherein, the first control signal is used to be output to the fan model in the verification environment and control the operation of the fan model, and the second control signal can be used to control the operation of the fan model; moreover, the first rotation speed determined by the fan controller according to the fan operation information can be obtained, and the second rotation speed determined by the fan control simulation model according to the second control signal can be obtained; the first rotation speed is determined by the fan controller according to the fan operation information output by the received fan model; the first control signal and the second control signal are compared, and the first rotation speed and the second rotation speed are compared, and according to the comparison result, the verification result of the fan controller is determined. In this way, based on the verification method of the fan controller, based on the constructed fan control simulation model and fan model, it is possible to verify whether the control information output by the fan controller and the fan rotation speed determined by it are normal, and accurately verify whether the control function of the fan controller is normal, so as to adjust in time when the fan controller is abnormal, and avoid the situation that the control of the fan is inaccurate due to the abnormal function of the fan controller. Description of the Drawings

[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0030] Figure 1 It is a schematic flowchart of the verification method of the fan controller in an embodiment;

[0031] Figure 2 It is a schematic flowchart of the fan controller adjusting the first pulse signal in an embodiment;

[0032] Figure 3 It is a schematic flowchart of determining the second rotation speed in an embodiment;

[0033] Figure 4 It is a schematic flowchart of comparing the first control signal and the second control signal in an embodiment;

[0034] Figure 5Schematic diagram of the PWM signal comparison process in an embodiment;

[0035] Figure 6 Schematic diagram of the process for comparing the first rotational speed and the second rotational speed in an embodiment;

[0036] Figure 7 Schematic diagram of the rotational speed comparison process in an embodiment;

[0037] Figure 8 Schematic diagram of the verification environment in an embodiment;

[0038] Figure 9 Structural block diagram of the verification device for the fan controller in an embodiment;

[0039] Figure 10 Internal structure diagram of a computer device in an embodiment. Detailed implementation manners

[0040] To make the above objects, features, and advantages of the present application more apparent and understandable, the following will describe the detailed implementation manners of the present application in conjunction with the accompanying drawings. It should be understood that many specific details are set forth in the following description to fully understand the present application, but the present application can be implemented in many other ways different from those described herein. Those skilled in the art can make similar improvements without departing from the connotation of the present application. Therefore, the present application is not limited by the specific embodiments disclosed below.

[0041] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field to which this application belongs. The terms used in the specification of this application herein are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0042] It can be understood that "at least one" means one or more, and "a plurality" means two or more. "At least part of an element" means part or all of the element.

[0043] As used herein, the singular forms "a", "an", and "the" may also include the plural forms unless the context clearly indicates otherwise. It should also be understood that the terms "include / comprise" or "have" etc. specify the presence of the stated features, wholes, steps, operations, components, parts, or combinations thereof, but do not exclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts, or combinations thereof. At the same time, the term "and / or" used in this specification includes any and all combinations of the related listed items.

[0044] The fan controller in the GPU is used for GPU cooling. Currently, when the GPU is running, it consumes electrical energy and generates heat. When the GPU overheats, the GPU may automatically reduce its operating frequency to reduce heat generation, which can lead to a performance decline. If the GPU runs at a high temperature for a long time, it may also cause irreversible damage to the GPU hardware, resulting in losses. Therefore, the GPU cooling system based on fans is widely used.

[0045] In the modern integrated circuit front-end design process, verification has the same important status as design, and at the same time, the verification work occupies most of the entire development cycle. With the exponential growth of design complexity, the verification work has become the key bottleneck in chip design. Improving the reusability of the platform can effectively improve the development efficiency.

[0046] In related technologies, for the verification work of the GPU, usually a GPU model is built based on the Verilog language or the SystemVerilog language, and this model is used to perform functional verification on the GPU. However, these models have the disadvantages of being unable to provide timely feedback, unable to interact, and poor reusability, and are only used for functional verification.

[0047] Generally speaking, in related technologies, it is impossible to pre-detect whether the fan controller is abnormal.

[0048] In view of this, the embodiments of the present application provide a verification method for a fan controller, which can build a fan model in a verification environment, realize interaction with the fan controller in the GPU during the simulation stage, achieve the interaction and feedback between the fan model and the fan controller, and combine the fan control simulation model to perform functional verification on the fan controller.

[0049] It should be noted that the execution subject of the verification method for the fan controller provided by the embodiments of the present application can be a verification device for the fan controller, and this verification device for the fan controller can be implemented as a part or all of a computer device through software, hardware, or a combination of software and hardware. Among them, the computer device can be, but is not limited to, various personal computers, smart phones, laptop computers, tablet computers, or servers, and can be implemented by an independent server or a server cluster composed of multiple servers.

[0050] In one embodiment, as Figure 1 shown, a verification method for a fan controller is provided, including the following steps:

[0051] Step 101, based on the verification environment, obtain the first control signal output by the fan controller during operation, and, obtain the second control signal generated by the fan control simulation model corresponding to the fan controller.

[0052] The first control signal is used to be output to the fan model in the verification environment and control the operation of the fan model, and the second control signal can be used to control the operation of the fan model.

[0053] Among them, in the actual hardware, the fan controller is a digital logic device inside the GPU, and the hardware fan is outside the GPU during operation. The control signal generated by the fan controller is output to the fan device, and the fan device operates based on this and generates feedback, which is transmitted to the fan controller in the GPU. Therefore, the fan and the fan controller have an interactive relationship, which is a control with feedback rather than a one-way control.

[0054] For the convenience of verifying the fan controller, in the embodiments of the present application, a verification environment is constructed in the computer device, and a fan control simulation model and a fan model are deployed in the verification environment. The verification environment, the fan control simulation model, and the fan model can be implemented based on software algorithms. The verification environment can also be understood as a verification platform.

[0055] Among them, the fan control simulation model is a simulation model of the fan controller, which can implement the functions of the fan controller, and the fan model is a simulation model corresponding to the hardware fan device originally controlled by the fan controller.

[0056] The fan controller can be pre-connected to the verification environment to achieve the interaction between the two.

[0057] During the verification process, the fan controller outputs the first control signal. At this time, the verification environment can obtain the first control signal and transmit it to the fan model, so that the fan model can simulate the operation based on the first control signal. Optionally, the fan controller usually transmits the first control signal to the fan device through a control signal line. Therefore, the verification environment can obtain the first control signal from the control signal line.

[0058] In addition, the fan control simulation model also generates a second control signal, where the second control signal can be used to control the operation of the fan model. Here, the fan control simulation model is constructed by an algorithm and can be regarded as a standard reference model. In other words, the first control signal output by the fan controller is verified against the second control signal. Optionally, since the second control signal is a standard control signal, although it can be used to control the operation of the fan model, the second control signal can be not transmitted to the fan model to reduce the complexity of the verification process.

[0059] Optionally, the fan controller and the fan control simulation model can run simultaneously, so that the verification environment can obtain the first control signal and the second control signal at the same time.

[0060] Step 102: Obtain the first rotation speed determined by the fan controller based on the fan operation information, and obtain the second rotation speed determined by the fan control simulation model based on the second control signal.

[0061] The first rotation speed is determined by the fan controller based on the fan operation information output by the received fan model.

[0062] During the operation of the fan controller, it outputs a control signal to control the rotation of the hardware fan device. After the fan device rotates, it outputs feedback information to the fan controller, and this feedback is the fan operation information. Furthermore, the fan controller determines the current rotation speed of the fan device, and based on this rotation speed, it continues to output a new control signal to continue controlling the rotation of the hardware fan device, and so on in a cycle. Therefore, it is also crucial to detect whether the fan controller can accurately determine the rotation speed of the fan device. In addition, as a standard rotation speed reference, the fan control simulation model outputs the second rotation speed corresponding to the standard second control signal.

[0063] In the embodiment of the present application, the first rotation speed determined by the fan controller based on the fan operation information can be obtained, and the second rotation speed determined by the fan control simulation model can be obtained.

[0064] Optionally, as mentioned above, the fan controller and the fan control simulation model can run simultaneously, so that the verification environment can obtain the first rotation speed and the second rotation speed at the same time.

[0065] Step 103: Compare the first control signal with the second control signal, and compare the first rotation speed with the second rotation speed. According to the comparison results, determine the verification result of the fan controller.

[0066] Based on this, by obtaining and comparing the first control signal and the second control signal, it can be used to verify whether the control of the fan device by the fan controller is accurate, and by obtaining and comparing the first rotation speed and the second rotation speed, it can be verified whether the fan controller gives the correct fan rotation speed, so as to achieve a comprehensive detection and verification of the fan controller.

[0067] If the verification result of the fan controller is abnormal, the developer can adjust the fan controller in a timely manner.

[0068] The verification method of the above-mentioned fan controller obtains the first control signal output by the fan controller during operation and the second control signal generated by the fan control simulation model corresponding to the fan controller based on the verification environment; wherein, the first control signal is used to be output to the fan model in the verification environment and control the operation of the fan model, and the second control signal can be used to control the operation of the fan model. Moreover, the first rotational speed determined by the fan controller according to the fan operation information can be obtained, and the second rotational speed determined by the fan control simulation model according to the second control signal can be obtained; the first rotational speed is determined by the fan controller according to the fan operation information output by the received fan model. The first control signal and the second control signal are compared, and the first rotational speed and the second rotational speed are compared. According to the comparison results, the verification result of the fan controller is determined. In this way, based on this verification method of the fan controller, based on the constructed fan control simulation model and fan model, it is possible to verify whether the control information output by the fan controller and the fan rotational speed determined by it are normal, and accurately verify whether the control function of the fan controller is normal, so as to adjust in time when the fan controller is abnormal, and avoid the situation where the control of the fan is inaccurate due to the abnormal function of the fan controller.

[0069] In one embodiment, the method further includes: using the register model in the verification environment to synchronously output the first configuration information to the fan controller and the fan control simulation model; the first configuration information is used to configure the fan controller to output the first control signal based on the target configuration parameters and configure the fan control simulation model to output the second control signal based on the target configuration parameters.

[0070] The first configuration information is used to trigger the fan controller and the fan control simulation model, which can ensure that the configurations during their operations are consistent, thus guaranteeing the accuracy of the verification process.

[0071] The register model is deployed in the verification environment and writes the first configuration information.

[0072] Optionally, before outputting the first control signal and the second control signal, the register model can synchronously output the first configuration information to the fan controller and the fan control simulation model. For example, after the fan controller establishes a connection with the verification environment, the first configuration information can be output.

[0073] The first configuration information includes target configuration parameters. Optionally, the target configuration parameters may include multiple configuration parameters related to fan control. For example, it includes configuring when the fan controller and the fan control simulation model output the first control signal and the second control signal, and implementing the process of configuring the fan controller to output the first control signal based on the target configuration parameters and configuring the fan control simulation model to output the second control signal based on the target configuration parameters. For another example, the target configuration parameters include mode parameters. In this way, the fan controller can control the fan model to operate in the specified target operating mode. The target operating mode can be the RPM (Rotations Per Minute Mode) mode or the PWM (Pulse Width Modulation Mode) mode, etc. This is not a complete example here. In the RPM mode, the fan speed is controlled by changing the voltage. The higher the voltage, the faster the fan speed. The PWM mode uses pulse width modulation technology to control the fan speed. By adjusting the duty cycle of the pulse signal (i.e., the proportion of the high level in one cycle), the fan speed can be accurately controlled. For another example, according to different control requirements, the first control signal output by the fan controller each time may be different. In other words, the first control signal needs to be continuously updated according to the control requirements. Therefore, the target configuration parameters may also include signal adjustment parameters, such as signal adjustment step size and signal adjustment interval. In this way, the fan controller can adjust and update the first control signal according to the signal adjustment parameters. Exemplarily, according to the signal adjustment step size, increase the proportion of the high level in the first control signal (for example, increase the high level by one step size), or increase the interval for outputting the first control signal, etc. This is not a complete example here. It should be noted that the process of the fan control simulation model adjusting the signal based on the signal adjustment parameters is similar to that of the fan controller and will not be elaborated.

[0074] In the embodiments of the present application, by outputting the same configuration information to the fan controller and the fan control simulation model, it is ensured that both output control information based on the same configuration, thereby ensuring the accuracy of the verification and comparison results.

[0075] In one embodiment, the method further includes: using the proxy module in the verification environment to obtain the fan operation information output by the fan model through the operation signal line; using the proxy module to transmit the fan operation information to the fan controller through the first connection interface; wherein, the fan controller and the verification environment perform data transmission through the first connection interface.

[0076] Among them, a proxy module that can be implemented by software algorithms is deployed in the verification environment. In the actual hardware fan model, the fan operation information is output through the operation signal line (TACH signal line). Therefore, in the embodiments of the present application, the fan model also outputs the fan operation information through the operation signal line, and the proxy module can obtain the fan operation information from the operation signal line.

[0077] The verification environment and the fan controller are connected through a first connection interface. Optionally, the fan model is located in the driver of the verification environment, and the fan control simulation model, the driver, the fan model, etc. are all located in the proxy module. And the driver and the fan controller are connected through the first connection interface. In this way, the proxy module can control the fan operation information to be transmitted to the fan controller through the first connection interface.

[0078] Optionally, the proxy module can also control the first control signal output by the fan controller to be transmitted to the fan model through the first connection interface.

[0079] In the embodiments of the present application, the fan control simulation model, the driver, the fan model, etc. are all concentrated in the proxy module, and each module can interact in the proxy module to ensure that the interaction between each module is not interfered by other modules in the verification environment, and to ensure stable and effective signal transmission.

[0080] The process of determining the first rotation speed will be described below by way of example. Here, the first control signal is taken as the first PWM signal and the second control signal is taken as the second PWM signal as an example.

[0081] In one embodiment, after the first PWM signal generated by the fan controller is received by the fan model, the fan model will give corresponding fan operation information according to the PWM value of the first PWM signal. Optionally, the fan operation information can be the oscillation frequency of the fan operation. Exemplarily, the oscillation frequency increases as the high level of the first PWM signal becomes larger. After the fan controller receives the fan operation information through the first connection interface, there is a counter in the fan controller to count the high and low level widths of the fan operation information, and then obtain the fan rotation speed, that is, the first rotation speed.

[0082] Optionally, a rotation speed threshold (specified RPM value) is preset in the fan controller. Among them, if the determined first rotation speed is less than the rotation speed threshold, the fan controller increases the PWM high level by a given step length STEP, and vice versa, reduces the PWM high level until the first rotation speed fed back by the fan model is equal to the rotation speed threshold. Exemplarily, as Figure 2 shows a schematic flow chart of a fan controller adjusting the first pulse signal.

[0083] During the adjustment process of the entire first PWM signal, the verification platform will compare the first PWM signal and the second PWM signal in real time, and compare the first rotation speed and the second rotation speed.

[0084] The process of determining the second rotational speed will be described below.

[0085] In an alternative implementation, as Figure 3 shows a schematic flow chart for determining the second rotational speed. The process by which the fan control simulation model in the verification environment determines the second rotational speed includes:

[0086] Step 301: Query a preset rotational speed control correspondence table based on the second control signal.

[0087] Step 302: Determine the standard rotational speed corresponding to the standard control signal that is the same as the second control signal as the second rotational speed.

[0088] A preset rotational speed control correspondence table is deployed in the fan control simulation model, and the correspondence table includes multiple sets of correspondences between standard control signals and standard rotational speeds. Optionally, the multiple sets of correspondences between standard control signals and standard rotational speeds are determined in advance through standard experiments. In other words, it is possible to pre-determine what the standard rotational speed feedback by the fan should be when the fan controller outputs a certain standard control signal, thereby forming multiple sets of correspondences.

[0089] In this way, it is possible to enable the fan control simulation model to obtain the second rotational speed without sending the second control signal to the fan model, improving the efficiency of determining the second rotational speed and reducing the complexity of the verification process.

[0090] In another alternative implementation, the correspondence between the high-level duty cycle of the PWM signal and the fan rotational speed can be pre-determined to form a rotational speed calculation formula. A rotational speed calculation formula is deployed in the fan control simulation model, and substituting the high-level duty cycle in the second control signal into the rotational speed calculation formula can calculate the second rotational speed.

[0091] In yet another alternative implementation, based on the verification environment, the second control signal is transmitted to the fan model, and the fan control simulation model can obtain another fan operation information output by the fan model under the control of the second control signal, and determine the second rotational speed based on this.

[0092] In one embodiment, based on the comparison result, the verification result of the fan controller is determined, including: If it is determined that the first control signal and the second control signal are in agreement, and it is determined that the first rotational speed and the second rotational speed are in agreement, then it is determined that the verification result is that the fan controller functions normally. If it is determined that the first control signal and the second control signal are not in agreement, and / or it is determined that the first rotational speed and the second rotational speed are not in agreement, then it is determined that the verification result is that the fan controller functions abnormally.

[0093] In other words, if it is determined that either the comparison result of the first control signal and the second control signal is inconsistent with the comparison result of the first rotational speed and the second rotational speed, it is confirmed that the function of the fan controller is abnormal.

[0094] In the embodiments of the present application, based on this, a comprehensive and complete function verification of the fan controller can be achieved.

[0095] In one embodiment, as Figure 4 FIG. shows a schematic flow chart of comparing the first control signal and the second control signal. Among them, comparing the first control signal and the second control signal includes:

[0096] Step 401, determine whether the level difference between the first high-level duty cycle of the first PWM signal and the second high-level duty cycle of the second PWM signal is less than a preset level difference threshold.

[0097] Step 402, if it is determined that the level difference is less than the preset level difference threshold, it is determined that the first control signal and the second control signal are in consistent comparison; if it is determined that the level difference is not less than the preset level difference threshold, it is determined that the first control signal and the second control signal are in inconsistent comparison.

[0098] Here, the first control signal is the first PWM signal, and the second control signal is the second PWM signal.

[0099] Among them, after obtaining the first PWM signal in the verification environment, the pulse width of the first PWM signal can be calculated, that is, the duty cycle of the high level in the first PWM signal is determined to obtain the first high-level duty cycle. Similarly, the duty cycle of the high level in the second PWM signal can also be determined to obtain the second high-level duty cycle.

[0100] Optionally, the proxy module in the verification environment further includes a monitoring module (monitor) and a comparator (checker). The monitoring module can calculate the first high-level duty cycle of the first PWM signal and send the first high-level duty cycle to the comparator. The comparator also obtains the second high-level duty cycle output by the fan control simulation model and compares the two.

[0101] Exemplarily, calculate the level difference between the first high-level duty cycle and the second high-level duty cycle, and compare the level difference with the preset level difference threshold to determine the comparison result of the first control signal and the second control signal. It can be understood that if the level difference is less than the preset level difference threshold, it means that the gap between the first control signal and the second control signal is very small and within the error tolerance range, so it is considered that the two are in consistent comparison; otherwise, it means that the gap between the first control signal and the second control signal is relatively large.

[0102] Exemplarily, such as Figure 5The figure shows a schematic diagram of the PWM signal comparison process. After the register module configures the fan controller and the fan simulation control model, on the one hand, the fan controller outputs a first PWM signal. Then, the first PWM signal is obtained in the verification environment and the PWM pulse width is calculated to obtain the first high-level occupancy ratio, which is sent to the comparator. On the other hand, the fan simulation control model can output a second high-level duty cycle to the comparator, and the comparator compares the two to obtain the comparison result of the control signal.

[0103] In the embodiment of the present application, by comparing the high-level duty cycles, it can be determined whether the first PWM signal generated by the fan controller to be verified meets the expectations, and an effective comparison result can be simply obtained.

[0104] In one embodiment, as Figure 6 The figure shows a schematic diagram of a process for comparing a first rotational speed and a second rotational speed. Comparing the first rotational speed and the second rotational speed includes:

[0105] Step 601, determining whether the rotational speed difference between the first rotational speed and the second rotational speed is less than a preset rotational speed difference threshold.

[0106] Step 602, if it is determined that the rotational speed difference is less than the preset rotational speed difference threshold, it is determined that the first rotational speed and the second rotational speed are in agreement; if it is determined that the rotational speed difference is not less than the preset rotational speed difference threshold, it is determined that the first rotational speed and the second rotational speed are not in agreement.

[0107] Optionally, the verification environment can obtain the first rotational speed calculated by the fan controller and the second rotational speed output by the fan control simulation model, and use a comparator to compare the first rotational speed and the second rotational speed.

[0108] Exemplarily, calculate the rotational speed difference between the first rotational speed and the second rotational speed, and compare the rotational speed difference with the preset rotational speed difference threshold to determine the comparison result of the first rotational speed and the second rotational speed. It can be understood that if it is determined that the rotational speed difference is less than the preset rotational speed difference threshold, it means that the gap between the first rotational speed and the second rotational speed is very small and within the error tolerance range, so it is considered that the two are in agreement; on the contrary, it means that the gap between the first rotational speed and the second rotational speed is relatively large, which means that the fan controller cannot correctly calculate the rotational speed and the function is abnormal.

[0109] Exemplarily, such as Figure 7The figure shows a schematic diagram of the rotational speed comparison process. While the register model configures the fan controller under verification to generate the first PWM signal, the register model also configures the fan control simulation model. Therefore, the fan control simulation module will generate a second PWM signal. The fan model in the driver generates fan operation information after receiving the first PWM signal. After the fan controller receives the fan operation information, it uses a counter to count the high and low level widths of the fan operation information to obtain the first rotational speed, and transmits the first rotational speed to the comparator in the verification environment. The comparator also obtains the second rotational speed output by the fan control simulation model, and compares the two to determine whether the fan controller under verification gives the correct fan rotational speed.

[0110] It can be understood that the fan control simulation model and the fan model are standard, so this can be used to verify multiple fan controllers under verification respectively. Therefore, the fan control simulation model and the fan model in this verification environment have reusability, greatly improving the verification efficiency of batch fan controllers.

[0111] The verification environment will be described below.

[0112] In one embodiment, the verification environment is constructed based on the UVM verification platform. That is, the verification environment is constructed based on the UVM verification methodology of System Verilog. Verification engineers can utilize the object-oriented characteristics of SV to construct a functional verification environment with a standardized hierarchical structure. The UVM verification platform contains many components, including interface, driver, reference model, scoreboard, sequencer, etc.

[0113] Exemplarily, a fan control simulation model with the same function as the fan controller is constructed, a fan model is constructed, and the verification environment is constructed based on the UVM verification platform.

[0114] Connect the verification environment to the fan control simulation model and the fan controller, control the fan model to generate data to be verified, and determine whether the fan controller under verification meets the functional requirements by comparing the output results of the fan control simulation model and the fan controller. This verification environment is as Figure 8 shown and includes the following parts:

[0115] 1. (1) Design Under Test (DUT): The fan controller of the GPU. (2) The verification environment includes: checker, monitor, virtual interface, driver.

[0116] 2. The usage of each module is as follows:

[0117] (1) Virtual interface: Realize the connection between the verification environment and the fan controller. Through the virtual interface, the verification platform can obtain the PWM signal of the fan controller and the calculated rotational speed.

[0118] (2) Monitoring module: Monitor the PWM signal line of the fan controller, obtain the first PWM signal output by the fan controller, calculate the pulse width of the first PWM signal, and send the obtained data to the comparator.

[0119] (3) Driver: It contains a fan model. The comparator can forward the first PWM signal to the fan model. After the fan model obtains the first PWM signal, it will generate a corresponding oscillation frequency, output the oscillation frequency from the TACH signal line, and drive it to send the oscillation frequency to the fan controller.

[0120] (4) Comparator: It contains a fan control simulation model. The fan control simulation model shares an input with the fan controller. The output generated by the fan control simulation model is compared with the output generated by the fan controller in the comparator to determine whether the fan controller to be verified meets the functional requirements.

[0121] Exemplarily, the verification environment is constructed as follows:

[0122] Construct the first top-level hdl_top and the second top-level fan_top. The first top-level is used to instantiate the interface and the fan controller, generate the clock and reset signals, and pass the interface to the corresponding agent module agent. The second top-level is used to start the entire UVM verification platform by running the run_test task. That is, two top-levels are required in the embodiments of the present application. The first top-level is responsible for instantiating the interface and the fan controller, generating the clock and reset signals, and passing the virtual interface to the corresponding agent module; while the second top-level is responsible for starting the entire UVM verification platform by starting a task.

[0123] Construct the basic test case module fan_test_base; among them, the basic test case module is used to instantiate the test environment component fan_env and the test environment component parameter configuration module fan_env_config.

[0124] Construct the fan environment framework fan_env_base; the fan environment framework is responsible for instantiating and encapsulating the AXI agent AXIagent and the fan agent fan_agent; the fan agent contains a checker.

[0125] Construct a configuration enabling module fan_env_config; among them, the configuration enabling module is used to control the verification environment, includes multiple structure variables used as switches for components, and the configuration enabling module declares a sampling frequency, a PWM frequency, and a maximum rotation speed. That is to say, the basic test case module is mainly responsible for instantiating test environment components, the test environment component parameter configuration module, the fan parameter configuration module fan_agent_config, the register model, and the interrupt utility.

[0126] The register model is instantiated, reset, configured with a backdoor access path here, and passed to the test environment component parameter configuration module. This base class also declares a function for passing events sequencer (sequence generator) and the register model, used to pass the two events sequencer and the register model to the test event test sequence, facilitating the call by the event sequence. The fan environment framework is mainly responsible for instantiating and encapsulating the AXI agent, the fan agent, the adapter, and the register model. Connect the analysis interface (analysis port) of the AXI agent to the register model and connect the analysis interface of the fan agent to the scoreboard in the verification environment.

[0127] In some embodiments of the present application, a verification environment is constructed based on the UVM verification platform, including: The AXI agent is used to instantiate the AXI driver, the AXI monitor, the AXI sequencer, and connect the analysis interface, used to connect the virtual interface seq_item_port in the driver to the output interface seq_item_export in the event sequencer, and used to determine whether each component in the AXI agent is created and used by configuring the bus parameters with axi_agent_config.

[0128] The AXI agent is also used to perform operations related to the AXI protocol, including reading and writing registers, reading and writing memories, and monitoring the AXI bus to collect functional coverage.

[0129] The fan agent is used to instantiate the fan driver, the fan monitor, the fan sequencer, and connect the analysis interface, used to connect the analysis interface in the fan agent to the analysis interface in the monitoring module monitor; used to connect the connection interface seq_item_port in the driver to the output interface seq_item_export in the event sequencer. The fan agent is used for driving and monitoring the PWM and TACH signal lines, and the fan monitor sends the monitored data packets to the comparator for result judgment.

[0130] In other words, the AXI agent is mainly responsible for instantiating the connections of the axi driver, axi monitor, axi event, and the analysis interface analysis_port. It is responsible for connecting the analysis interface in the agent module to the analysis interface in the monitoring module, and connecting the interface seq_item_port in the driver to the interface seq_item_export in the event sequencer. By configuring the bus parameters, it can be determined whether each component in the AXI agent is created and used. For example, by configuring the value of UVM_ACTIVE, it can control whether to instantiate and connect the axi driver and axi event.

[0131] In the embodiments of the present application, for the existing models built based on Verilog language or SystemVerilog language, there are disadvantages such as inability to provide timely feedback, inability to interact, and poor reusability. A GPU fan model and verification platform with strong reusability, timely feedback, and interactivity based on UVM are provided. Specifically, through the TLM (transaction level modeling, communication method based on transactions) mechanism of UVM, the driver component realizes the interaction between the model and the verification platform, and the result comparison is completed through the scoreboard component of UVM to realize the verification of the GPU fan controller.

[0132] The constructed fan model can, during the simulation phase, give a TACH signal with a corresponding frequency through the duty cycle of PWM, enabling the fan control module to be verified to work properly, and can compare in real time whether the PWM output by the fan module to be verified meets the design requirements, with strong interactivity. The fan model can simulate different types of fans by setting the maximum rotational speed, and only corresponding configuration parameters need to be configured, with strong reusability.

[0133] In summary, the embodiments of the present application provide an interactive verification platform and verification method for a GPU fan controller based on UVM. Based on the UVM verification methodology, a fan model and a reference model of the fan controller are constructed, solving the disadvantages of the models built based on Verilog language or SystemVerilog language, such as inability to provide timely feedback, inability to interact, and poor reusability.

[0134] It should be understood that although the steps in the flowcharts involved in the above-described embodiments are shown in sequence according to the indications of the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this article, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-described embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or steps or stages in other steps.

[0135] Based on the same inventive concept, an embodiment of the present application also provides a verification device for a fan controller for implementing the verification method of the fan controller involved above. The implementation solution provided by this device to solve the problem is similar to the implementation solution described in the above method. Therefore, the specific limitations in one or more embodiments of the verification device for the fan controller provided below can refer to the limitations on the verification method of the fan controller in the above text, and will not be repeated here.

[0136] In one embodiment, as Figure 9 shown, a verification device for a fan controller is provided. The verification device 900 for the fan controller includes: a first acquisition module 901, a second acquisition module 902, and a comparison module 903, where:

[0137] The first acquisition module 901 is configured to acquire a first control signal output by the fan controller during operation based on a verification environment, and acquire a second control signal generated by a fan control simulation model corresponding to the fan controller; the first control signal is used to be output to a fan model in the verification environment and control the operation of the fan model, and the second control signal can be used to control the operation of the fan model;

[0138] The second acquisition module 902 is configured to acquire a first rotation speed determined by the fan controller according to fan operation information, and acquire a second rotation speed determined by the fan control simulation model according to the second control signal; the first rotation speed is determined by the fan controller according to the fan operation information output by the received fan model;

[0139] The comparison module 903 is configured to compare the first control signal with the second control signal, and compare the first rotation speed with the second rotation speed, and determine the verification result of the fan controller according to the comparison result.

[0140] In one embodiment, the comparison module 903 is specifically configured to: if it is determined that the first control signal and the second control signal are consistent in comparison, and it is determined that the first rotation speed and the second rotation speed are consistent in comparison, then determine that the verification result is that the fan controller functions normally; if it is determined that the first control signal and the second control signal are inconsistent in comparison, and / or it is determined that the first rotation speed and the second rotation speed are inconsistent in comparison, then determine that the verification result is that the fan controller functions abnormally.

[0141] In one embodiment, the first control signal is a first PWM signal, and the second control signal is a second PWM signal; the comparison module 903 is specifically configured to: determine whether the level difference between the first high-level duty ratio of the first PWM signal and the second high-level duty ratio of the second PWM signal is less than a preset level difference threshold; if it is determined that the level difference is less than the preset level difference threshold, then determine that the first control signal and the second control signal are consistent in comparison; if it is determined that the level difference is not less than the preset level difference threshold, then determine that the first control signal and the second control signal are inconsistent in comparison; the comparison module 903 is further specifically configured to: determine whether the rotation speed difference between the first rotation speed and the second rotation speed is less than a preset rotation speed difference threshold; if it is determined that the rotation speed difference is less than the preset rotation speed difference threshold, then determine that the first rotation speed and the second rotation speed are consistent in comparison; if it is determined that the rotation speed difference is not less than the preset rotation speed difference threshold, then determine that the first rotation speed and the second rotation speed are inconsistent in comparison.

[0142] In one embodiment, the second acquisition module 902 is specifically configured to: query a preset rotation speed control correspondence table based on the second control signal; the preset rotation speed control correspondence table includes multiple sets of correspondences between standard control signals and standard rotation speeds; determine the standard rotation speed corresponding to the standard control signal that is the same as the second control signal as the second rotation speed.

[0143] In one embodiment, the device further includes a transmission module, configured to: obtain the fan operation information output by the fan model through the operation signal line by using the proxy module in the verification environment; use the proxy module to transmit the fan operation information to the fan controller through the first connection interface; wherein, the fan controller and the verification environment perform data transmission through the first connection interface.

[0144] In one embodiment, the device further includes a configuration module, configured to: synchronously output first configuration information to the fan controller and the fan control simulation model by using the register model in the verification environment; the first configuration information is used to configure the fan controller to output a first control signal based on the target configuration parameters and configure the fan control simulation model to output a second control signal based on the target configuration parameters.

[0145] Each module in the verification device of the above fan controller can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above modules can be embedded in or independent of a processor in a computer device in the form of hardware, or stored in a memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0146] In one embodiment, a computer device is provided. The computer device can be a server, and its internal structure diagram can be as Figure 10 shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O), and a communication interface. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store verification data of the fan controller. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it implements a method for verifying a fan controller.

[0147] Those skilled in the art can understand that Figure 10 the structure shown in

[0148] is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have a different component layout.

[0149] In one embodiment, a computer device is further provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, the steps in the above method embodiments are implemented.

[0149] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0150] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0151] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in the present application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., without limitation.

[0152] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.

[0153] The above-described embodiments merely represent several implementation manners of the present application. The description thereof is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims

1. A fan controller verification method, characterized in that: The method comprises: Based on the verification environment, a first control signal output by the fan controller during operation is obtained, and a second control signal generated by a fan control simulation model corresponding to the fan controller is obtained; the first control signal is used to output to the fan model in the verification environment and control the operation of the fan model, and the second control signal can be used to control the operation of the fan model; Acquire a first speed determined by the fan controller according to the fan operation information, and acquire a second speed determined by the fan control simulation model according to the second control signal; the first speed is determined by the fan controller according to the fan operation information output by the received fan model; The first control signal is compared with the second control signal, and the first rotation speed is compared with the second rotation speed, and a verification result of the fan controller is determined according to the comparison result.

2. The method according to claim 1, characterized in that Determining the verification result of the fan controller according to the comparison result includes: If it is determined that the first control signal and the second control signal are consistent with each other, and if it is determined that the first rotation speed and the second rotation speed are consistent with each other, then it is determined that the verification result is that the fan controller functions normally; If it is determined that the first control signal is inconsistent with the second control signal, and / or if it is determined that the first rotational speed is inconsistent with the second rotational speed, then the verification result is determined to be that the fan controller is malfunctioning.

3. The method according to claim 2, characterized in that The first control signal is a first PWM signal, and the second control signal is a second PWM signal; and comparing the first control signal with the second control signal includes: determining whether a level difference between a first high-level duty cycle of the first PWM signal and a second high-level duty cycle of the second PWM signal is less than a preset level difference threshold; If it is determined that the level difference is less than the preset level difference threshold, it is determined that the first control signal and the second control signal are consistent with each other; if it is determined that the level difference is not less than the preset level difference threshold, it is determined that the first control signal and the second control signal are inconsistent with each other; The comparing the first rotational speed with the second rotational speed includes: determining whether a speed difference between the first speed and the second speed is less than a preset speed difference threshold; If it is determined that the speed difference is less than the preset speed difference threshold, it is determined that the first speed and the second speed are consistent; if it is determined that the speed difference is not less than the preset speed difference threshold, it is determined that the first speed and the second speed are inconsistent.

4. The method according to claim 1, characterized in that The process of determining the second speed according to the second control signal by the fan control simulation model in the verification environment includes: Based on the second control signal, query a preset speed control correspondence table; the preset speed control correspondence table includes a correspondence relationship between multiple sets of standard control signals and standard speeds; A standard rotation speed corresponding to a standard control signal that is the same as the second control signal is determined as the second rotation speed.

5. The method according to claim 1, characterized in that The method further comprises: Using the proxy module in the verification environment to obtain the fan operation information output by the fan model through the operation signal line; The proxy module is used to transmit the fan operation information to the fan controller through a first connection interface; wherein the fan controller and the verification environment perform data transmission through the first connection interface.

6. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: Using the register model in the verification environment, synchronously outputting first configuration information to the fan controller and the fan control simulation model; The first configuration information is used to configure the fan controller to output the first control signal based on target configuration parameters and to configure the fan control simulation model to output the second control signal based on the target configuration parameters.

7. A verification device for a fan controller, characterized in that: The device comprises: A first acquisition module is used to acquire a first control signal output by a fan controller during operation based on a verification environment, and to acquire a second control signal generated by a fan control simulation model corresponding to the fan controller; the first control signal is used to output to a fan model in the verification environment and control the operation of the fan model, and the second control signal can be used to control the operation of the fan model; a second acquisition module, configured to acquire a first rotational speed determined by the fan controller according to the fan operation information, and to acquire a second rotational speed determined by the fan control simulation model according to the second control signal; the first rotational speed is determined by the fan controller according to the fan operation information output by the received fan model; A comparison module is used to compare the first control signal with the second control signal, and to compare the first rotational speed with the second rotational speed, and to determine a verification result of the fan controller according to the comparison result.

8. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Fan control board testing system and method

    CN107966975A

  • System and method for testing a fan interface of a motherboard

    US20090150122A1

  • Systems and methods for fan typing and anomaly detection

    US20190390864A1