Field programmable gate array configuration method and device, server and medium

By detecting the configuration files to be updated and sending them to the target FPGA, the problem of automatic configuration and upgrading of FPGAs is solved, the user experience is improved, and network resource utilization is optimized, and the automated configuration management of FPGAs is realized.

CN119884022APending Publication Date: 2025-04-25SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510124962.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-26
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

The existing technology is difficult to realize automatic configuration upgrade of FPGAs, resulting in poor user experience, and FPGAs cannot be upgraded on site due to physical conditions.

Method used

By obtaining preset configuration flag information, detect whether there is a configuration file to be updated, and use a communication connection based on the target network association address to send the configuration file to the target FPGA to achieve its configuration update.

Benefits of technology

The automatic configuration and upgrade of FPGAs is realized, which improves the user experience. By binding the MAC address and IP address of the FPGA, it avoids duplicate IP address allocation and improves the efficiency of network resources utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119884022A_ABST
    Figure CN119884022A_ABST
Patent Text Reader

Abstract

The invention discloses a field programmable gate array configuration method and device, a server and a medium, and relates to the technical field of servers, the method is applied to the server, and the method comprises the following steps: obtaining preset configuration mark information; detecting whether a to-be-updated configuration file exists or not according to preset configuration mark information; if the to-be-updated configuration file exists, sending the to-be-updated configuration file to the target field programmable gate array by using communication connection established based on the target network cooperation address, so that the target field programmable gate array completes configuration updating by using the received to-be-updated configuration file; according to the method and the device, the new configuration file can be automatically detected by utilizing the recorded mark information of the configuration file of each configured FPGA, so that the related FPGA is subjected to configuration updating, the automatic configuration upgrading of the FPGA is realized, and the user experience is improved; and the MAC address of the FPGA is associated with the IP address, so that the dynamic allocation process of the IP address is reduced, and effective utilization of network resources is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of servers, and in particular to a configuration method, device, server and medium of a field programmable gate array. Background Art

[0002] As the scale of machine learning and web (page) services grows exponentially, FPGAs (Field-Programmable Gate Arrays) have been deployed on a large scale in data centers in recent years to provide both powerful computing power and sufficient flexibility. FPGAs are programmable logic devices. Compared with ASICs (application-specific integrated circuits), FPGAs have higher flexibility and reconfigurability and can be programmed and reprogrammed according to specific applications.

[0003] FPGA is programmable and can be programmed and reprogrammed according to different applications, so it can quickly adapt to market demands and technological changes. In the related art, the FPGA can establish a communication connection with the server of the management platform after hardware initialization, and use the configuration file obtained from the server for configuration to achieve automatic configuration. However, FPGA is reconfigurable, so the configuration of FPGA will need to be updated and upgraded in the future, and FPGA may not be upgraded on-site due to physical conditions; and the management platform in the related art will turn off the configuration function after sending the configuration file to the FPGA for configuration, and the automatic upgrade of FPGA cannot be achieved. Therefore, how to achieve automatic configuration and upgrade of FPGA and improve user experience is an urgent problem to be solved today. Summary of the invention

[0004] The purpose of the present invention is to provide a configuration method, device, server and computer-readable storage medium of a field programmable gate array to realize automatic configuration and upgrade of FPGA and improve user experience.

[0005] In order to solve the above technical problems, the present invention provides a method for configuring a field programmable gate array, which is applied to a server and includes:

[0006] Acquire preset configuration flag information; wherein the preset configuration flag information includes flag information of configuration files corresponding to each preset media access control address; the preset media access control address includes the media access control address of the configured field programmable gate array;

[0007] According to the preset configuration flag information, detecting whether there is a configuration file to be updated; wherein the configuration file to be updated is the configuration file that needs to be updated corresponding to the preset configuration flag information;

[0008] If the configuration file to be updated exists, the configuration file to be updated is sent to the target field programmable gate array using a communication connection established based on the target network association address, so that the target field programmable gate array completes the configuration update using the received configuration file to be updated; wherein the target network association address includes the network association address bound to the preset media access control address corresponding to the configuration file to be updated.

[0009] On the other hand, before obtaining the preset configuration flag information, the method further includes:

[0010] Obtaining a media access control address in a network association address application request sent by a current field programmable gate array through network broadcast; wherein the current field programmable gate array is any of the field programmable gate arrays;

[0011] detecting whether the media access control address of the current field programmable gate array is a recognized address;

[0012] If it is the identified address, a current network association address is allocated to the current field programmable gate array, and a communication connection is established with the current field programmable gate array through the current network association address.

[0013] On the other hand, allocating a current network association address to the current field programmable gate array includes:

[0014] Detecting whether the media access control address of the current field programmable gate array is the preset media access control address;

[0015] If it is the preset media access control address, assigning the network association address bound to the media access control address of the current field programmable gate array to the current field programmable gate array;

[0016] If it is not the preset media access control address, a network association address is allocated to the current field programmable gate array through a dynamic host configuration protocol, and the allocated network association address is bound to the media access control address of the current field programmable gate array.

[0017] On the other hand, after sending the configuration file to be updated to the target field programmable gate array by using the communication connection established based on the target network association address, the method further includes:

[0018] Obtaining configuration feedback information sent by the current target field programmable gate array through the current target network association address; wherein the current target field programmable gate array is any of the target field programmable gate arrays, and the current target network association address is the target network association address corresponding to the current target field programmable gate array;

[0019] When the configuration feedback information is configuration failure information, the corresponding configuration file to be updated is resent to the current target field programmable gate array using the communication connection established based on the current target network association address;

[0020] When the configuration feedback information is configuration success information, the preset configuration flag information corresponding to the current target field programmable gate array is updated to flag information of the corresponding configuration file to be updated.

[0021] On the other hand, after obtaining the configuration feedback information sent by the current target field programmable gate array through the current target network association address, it also includes:

[0022] Detecting whether the flag information of the configured file in the configuration feedback information is the same as the flag information of the corresponding configuration file to be updated;

[0023] If they are the same, determining that the configuration feedback information is configuration success information;

[0024] If they are not the same, it is determined that the configuration feedback information is configuration failure information.

[0025] On the other hand, before obtaining the preset configuration flag information, the method further includes:

[0026] After sending the configuration file corresponding to the current field programmable gate array to the current field programmable gate array by utilizing the communication connection established based on the current network association address, determining whether the initial configuration feedback information sent by the current field programmable gate array through the current network association address is received within a preset detection time; wherein the current field programmable gate array is any of the field programmable gate arrays, and the current network association address is the network association address bound to the media access control address of the current field programmable gate array;

[0027] If the initial configuration feedback information is received, then when the initial configuration feedback information is configuration failure information, the configuration file corresponding to the current field programmable gate array is resent to the current field programmable gate array using the communication connection established based on the current network association address;

[0028] When the initial configuration feedback information is configuration success information, recording the correspondence between the media access control address of the current field programmable gate array and the flag information of the configuration file corresponding to the current field programmable gate array;

[0029] If the initial configuration feedback information is not received, the media access control address of the current field programmable gate array is unbound from the current network association address.

[0030] On the other hand, before unbinding the media access control address of the current field programmable gate array from the current network association address, the method further includes:

[0031] Monitoring whether a broadcast message sent by the current field programmable gate array is received within a preset reconnection time; wherein the broadcast message includes a media access control address of the current field programmable gate array;

[0032] If the broadcast message is not received, the step of unbinding the media access control address of the current field programmable gate array from the current network association address is performed;

[0033] If the broadcast message is received, a current network association address is allocated to the current field programmable gate array.

[0034] The present invention also provides a field programmable gate array configuration device, which is applied to a server and includes:

[0035] An acquisition module, used for acquiring preset configuration flag information; wherein the preset configuration flag information includes flag information of configuration files corresponding to each preset media access control address; the preset media access control address includes a media access control address of a configured field programmable gate array;

[0036] A detection module, used to detect whether there is a configuration file to be updated according to the preset configuration flag information; wherein the configuration file to be updated is the configuration file that needs to be updated corresponding to the preset configuration flag information;

[0037] An upgrade module is used to send the configuration file to be updated to a target field programmable gate array by using a communication connection established based on a target network association address if the configuration file to be updated exists, so that the target field programmable gate array completes the configuration update by using the received configuration file to be updated; wherein the target network association address includes the network association address bound to the preset media access control address corresponding to the configuration file to be updated.

[0038] The present invention also provides a server, comprising:

[0039] Memory for storing computer programs;

[0040] A processor is used to implement the steps of the field programmable gate array configuration method as described above when executing the computer program.

[0041] In addition, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the field programmable gate array configuration method as described above are implemented.

[0042] A method for configuring a field programmable gate array provided by the present invention is applied to a server, and includes: obtaining preset configuration flag information; wherein the preset configuration flag information includes flag information of configuration files corresponding to each preset media access control address; the preset media access control address includes the media access control address of the configured field programmable gate array; according to the preset configuration flag information, detecting whether there is a configuration file to be updated; wherein the configuration file to be updated is a configuration file that needs to be updated corresponding to the preset configuration flag information; if there is a configuration file to be updated, using a communication connection established based on a target network association address, the configuration file to be updated is sent to a target field programmable gate array, so that the target field programmable gate array completes the configuration update using the received configuration file to be updated; wherein the target network association address includes the network association address bound to the preset media access control address corresponding to the configuration file to be updated.

[0043] It can be seen that the present invention can detect whether there is a configuration file to be updated according to the preset configuration flag information, and can automatically detect the new configuration file by using the flag information of the configuration files of each configured FPGA to update the configuration of the relevant FPGA, realize the automatic configuration upgrade of the FPGA, and improve the user experience; and the server associates the MAC address of the FPGA with the IP address, and when the connection with the FPGA is disconnected or reconnected, it does not need to allocate a new IP address for it, and the communication connection between the FPGA and the server can still be guaranteed, so as to realize the effective use of network resources. In addition, the present invention also provides a configuration device, a server and a computer-readable storage medium of a field programmable gate array, which also have the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0045] Figure 1 A flowchart of a method for configuring a field programmable gate array provided by an embodiment of the present invention;

[0046] Figure 2 A schematic flow chart of another method for configuring a field programmable gate array provided by an embodiment of the present invention;

[0047] Figure 3 A schematic diagram of a server and FPGA networking provided by an embodiment of the present invention;

[0048] Figure 4This is a schematic diagram of the control flow of the server when no feedback from the IP address is detected;

[0049] Figure 5 A schematic diagram of a process for establishing a communication connection between an FPGA and a server for the first time provided by an embodiment of the present invention;

[0050] Figure 6 A structural block diagram of a field programmable gate array configuration device provided by an embodiment of the present invention;

[0051] Figure 7 A schematic diagram of the structure of a server provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0053] Please refer to Figure 1 , Figure 1 A flowchart of a method for configuring a field programmable gate array provided by an embodiment of the present invention. The method is applied to a server and may include:

[0054] Step 101: Obtain preset configuration flag information; wherein the preset configuration flag information includes flag information of configuration files corresponding to each preset media access control address; the preset media access control address includes the media access control address of the configured field programmable gate array.

[0055] It can be understood that the preset configuration flag information in this embodiment can be the flag information of the configuration file configured by each configured FPGA (field programmable gate array) that is pre-set and recorded; in this implementation example, the correspondence between the MAC (Media Access Control Address) address (i.e., the preset media access control address) of each configured FPGA and the corresponding preset configuration flag information can be pre-stored.

[0056] Correspondingly, the server in this embodiment can be used to manage the management server for configuring the FPGA, such as a server running a corresponding management platform. The specific method for the server to obtain the preset configuration flag information in this step can be set by the designer according to the practical scenario and user needs. For example, the server can read the stored preset configuration flag information. For example, the server can read the preset configuration flag information at a preset time interval to automatically upgrade the configuration of the configured FPGA.

[0057] Step 102: Detect whether there is a configuration file to be updated according to the preset configuration flag information; wherein the configuration file to be updated is a configuration file that needs to be updated corresponding to the preset configuration flag information.

[0058] It should be noted that the server in this embodiment can detect whether there is a configuration file that can be updated and upgraded by the FPGA (i.e., the configuration file to be updated), such as the latest configuration file, based on each preset configuration flag information, so as to use the configuration file to be updated to update the configuration of the corresponding FPGA.

[0059] Correspondingly, the specific method for the server in this step to detect whether there is a configuration file to be updated based on the preset configuration flag information can be set by the designer according to practical scenarios and user needs. For example, it can be implemented in the same or similar manner as the upgrade file detection method in the related art, and this embodiment does not impose any restrictions on this.

[0060] Step 103: If there is a configuration file to be updated, the configuration file to be updated is sent to the target field programmable gate array using a communication connection established based on the target network association address, so that the target field programmable gate array completes the configuration update using the received configuration file to be updated; wherein the target network association address includes the network association address bound to the preset media access control address corresponding to the configuration file to be updated.

[0061] It can be understood that the target FPGA in this step can be an FPGA that needs to be configured and updated using the corresponding configuration file to be updated; the target network association address in this step can be the IP (network association) address bound to the MAC address (i.e., the preset media access control address) of the target FPGA.

[0062] Since the management platform in the related art allocates IP addresses through the Dynamic Host Configuration Protocol (DHCP) each time a communication connection is established with the FPGA, the management platform will dynamically allocate IP addresses to the FPGA connected to the network according to the number and needs of devices in the network. When the FPGA is disconnected, reconnected, or subsequently upgraded, it is likely that a new IP address will need to be allocated to it to ensure the effective use of network resources, which will cause the FPGA to be unable to establish a communication connection with the server, and the server needs to repeatedly allocate IP addresses, which will not only cause a waste of communication resources, but also may cause the FPGA to be unable to be configured and updated in time. In this embodiment, by binding the MAC address (i.e., the preset media access control address) of the configured FPGA to the IP address used by the FPGA during configuration, it is not necessary to repeatedly allocate IP addresses during subsequent configuration updates and reconnections, thereby avoiding the waste of communication resources and increasing the rate of FPGA configuration updates.

[0063] Correspondingly, in order to ensure the accuracy of the configuration update of the target FPGA, the server in this embodiment can also detect the configuration update result of the target FPGA, so that when the configuration update fails, the corresponding configuration file to be updated can be resent to the target FPGA where the configuration update failed. For example, after step 103, the server can obtain the configuration feedback information sent by the current target FPGA through the current target IP address; wherein the current target FPGA is any target FPGA, and the current target IP address is the target IP address corresponding to the current target FPGA; when the configuration feedback information is configuration failure information, the corresponding configuration file to be updated is resent to the current target FPGA using the communication connection established based on the current target IP address; when the configuration feedback information is configuration success information, the preset configuration flag information corresponding to the current target FPGA is updated to the flag information of the corresponding configuration file to be updated.

[0064] Correspondingly, after obtaining the configuration feedback information sent by the current target FPGA through the current target IP address, the method further includes: detecting whether the configuration file flag information in the configuration feedback information is the same as the flag information of the corresponding configuration file to be updated; if they are the same, determining that the configuration feedback information is configuration success information, and the preset configuration flag information corresponding to the current target FPGA can be updated to the flag information of the corresponding configuration file to be updated; if they are not the same, determining that the configuration feedback information is configuration failure information, and the corresponding configuration file to be updated can be resent to the current target FPGA using the communication connection established based on the current target IP address.

[0065] Among them, the above-mentioned process of obtaining the configuration feedback information sent by the current target FPGA through the current target IP address may include: judging whether the configuration feedback information sent by the current target FPGA through the current target IP address is received within a preset detection time; if the configuration feedback information is received, the above-mentioned corresponding processing may be performed; if the configuration feedback information is not received, the MAC address of the current target FPGA may be directly unbound from the current target IP address, or it may be monitored whether a broadcast message (such as an IP address application request) sent by the current target FPGA is received within a preset reconnection time; wherein the broadcast message includes the MAC address of the current FPGA; if the broadcast message is not received, the MAC address of the current target FPGA is unbound from the current target IP address; if the broadcast message is received, the current target IP address is allocated to the current target FPGA, so that the current target FPGA can reuse the current target IP address to establish a communication connection with the server and obtain the corresponding configuration file to be updated.

[0066] It should be noted that the method provided in this embodiment can also be a process in which the server establishes a communication connection with each FPGA; such as the process in which the server establishes a communication connection with the FPGA when the FPGA is initially configured, for example, before step 101, it can also include: obtaining the MAC address in the IP address application request sent by the current FPGA through network broadcast; detecting whether the MAC address of the current FPGA is a recognized address (such as a MAC address in a preset format); if it is a recognized address, assigning the current IP address to the current FPGA, and establishing a communication connection with the current FPGA through the current IP. Among them, the current FPGA can be any FPGA.

[0067] Correspondingly, since the MAC address of the FPGA during the configuration process or after the configuration is completed (i.e., the preset MAC address) is bound to the corresponding IP address in this embodiment, the above process of assigning the current IP address to the current FPGA may include detecting whether the MAC address of the current FPGA is the preset MAC address; if it is the preset MAC address, assigning the IP address bound to the MAC address of the current FPGA to the current FPGA; if it is not the preset MAC address, assigning an IP address to the current FPGA through the Dynamic Host Configuration Protocol (DHCP), and binding the assigned IP address to the MAC address of the current FPGA.

[0068] Correspondingly, the server can also use the communication connection established based on the current IP address to send the configuration file corresponding to the current FPGA to the current FPGA, so that the current FPGA can complete the configuration using the received configuration file. Similar to the above-mentioned configuration update result determination process, after the server uses the communication connection established based on the current IP address to send the configuration file corresponding to the current FPGA to the current FPGA, it determines whether the initial configuration feedback information sent by the current FPGA through the current IP address is received within the preset detection time; wherein the current FPGA is any FPGA, and the current IP address is the IP address bound to the MAC address of the current FPGA; if the initial configuration feedback information is received, then when the initial configuration feedback information is configuration failure information, the configuration file corresponding to the current FPGA is resent to the current FPGA using the communication connection established based on the current IP address; when the initial configuration feedback information is configuration success information, the corresponding relationship between the MAC address of the current FPGA and the flag information of the configuration file corresponding to the current FPGA is recorded; if the initial configuration feedback information is not received, the MAC address of the current FPGA is unbound from the current IP address.

[0069] In other embodiments, before unbinding the MAC address of the current FPGA from the current IP address when the initial configuration feedback information is not received, it is also possible to monitor whether a broadcast message sent by the current FPGA is received within a preset reconnection time; wherein the broadcast message includes the MAC address of the current FPGA; if the broadcast message is not received, the step of unbinding the MAC address of the current FPGA from the current IP address is performed; if the broadcast message is received, the current IP address is assigned to the current FPGA, so that the current FPGA can use the current IP address to re-establish a communication connection with the server.

[0070] For example, the process of configuring the FPGA for the first time on a server can be as follows: Figure 2 As shown, the server follows Figure 3After the FPGA board is installed and powered on in the networking plan shown, each FPGA can establish a communication connection based on the IP address with the server; the server sends the configuration file of each FPGA through the network according to the assigned IP address, and continuously monitors the feedback message (i.e., initial feedback information) of the IP address within the preset detection time after the configuration file is sent; the FPGA that receives the configuration file is configured and determines whether the configuration is successful. If successful, the configuration success information is fed back through the assigned IP address, and if unsuccessful, the configuration failure information is fed back through the IP address; if the server monitors the feedback message of the IP address within the preset detection time, when the feedback message is configuration failure information, the configuration file is resent to the FPGA, and when the feedback message is configuration success information, an association relationship is established between the MAC address and the flag information (i.e., the preset configuration flag information) of the sent configuration file, so as to detect whether there is the latest configuration file (i.e., the configuration file to be updated) through the flag information of the configuration file. When the server detects that the MAC address has the latest configuration file, the latest configuration file is sent to the corresponding FPGA through the IP address bound to the MAC address to complete the configuration update of the FPGA.

[0071] Correspondingly, if the server does not detect the feedback message of the IP address within the preset detection time, it can detect whether the communication connection between the server and the FPGA is disconnected, such as Figure 4 As shown, if a broadcast message containing the MAC address is received within the preset reconnection time, such as a DHCP DISCOVER broadcast message, it can be determined that the communication connection between the server and the FPGA is disconnected, and the corresponding IP address can be matched by the MAC address of the FPGA and assigned to the FPGA; if a broadcast message containing the MAC address is still not received within the preset reconnection time, the IP address bound to the MAC address can be released so that the IP address can be reallocated later.

[0072] Correspondingly, the process of establishing a communication connection between each FPGA and the server based on the IP address can be as follows: Figure 5 As shown, the FPGA sends a DHCP DISCOVER broadcast message to the server through the network, and the broadcast message may include a vendor identifier and the MAC address of the FPGA; the server compares the MAC address and vendor identifier in the broadcast with the pre-stored MAC address format and identifier respectively. If the requirements are met, the server can mark the MAC address as an identified address, and allocate an IP address to the FPGA, and establish a communication connection between the FPGA and the server; wherein the MAC address is bound to the IP address.

[0073] Furthermore, in order to improve the utilization rate of IP addresses, the server in this embodiment can also detect the usage of the IP addresses bound to each preset MAC address; when an idle IP address whose unused time reaches the preset unbinding time is detected, the idle IP address is unbound from the corresponding preset MAC address to avoid wasting IP address resources. In other embodiments, the server can also communicate with the corresponding FPGA through the idle IP address when an idle IP address whose unused time reaches the preset unbinding time is detected; if the FPGA cannot be communicated with through a certain idle IP address, it can be considered that there is a problem with the FPGA, and the idle IP address can be unbound from the corresponding preset MAC address, and the alarm information of the FPGA can be output.

[0074] In this embodiment, the embodiment of the present invention detects whether there is a configuration file to be updated according to preset configuration flag information, and can automatically detect a new configuration file by using the flag information of the configuration files of each configured FPGA to update the configuration of the relevant FPGA, thereby realizing automatic configuration upgrade of the FPGA and improving user experience; and the server associates the MAC address of the FPGA with the IP address. When the FPGA is disconnected or reconnected, a new IP address does not need to be allocated for it, and the communication connection between the FPGA and the server can still be guaranteed, thereby realizing effective utilization of network resources.

[0075] Corresponding to the above method embodiment, an embodiment of the present invention further provides a configuration device for a field programmable gate array. The configuration device for a field programmable gate array described below and the configuration method for a field programmable gate array described above can refer to each other.

[0076] Please refer to Figure 6 , Figure 6 This is a structural block diagram of a field programmable gate array configuration device provided by an embodiment of the present invention. The device is applied to a server and may include:

[0077] The acquisition module 10 is used to acquire preset configuration flag information; wherein the preset configuration flag information includes flag information of configuration files corresponding to each preset media access control address; the preset media access control address includes the media access control address of the configured field programmable gate array;

[0078] The detection module 20 is used to detect whether there is a configuration file to be updated according to the preset configuration flag information; wherein the configuration file to be updated is the configuration file that needs to be updated corresponding to the preset configuration flag information;

[0079] The upgrade module 30 is used to send the configuration file to be updated to the target field programmable gate array by using the communication connection established based on the target network association address if the configuration file to be updated exists, so that the target field programmable gate array completes the configuration update by using the received configuration file to be updated; wherein the target network association address includes the network association address bound to the preset media access control address corresponding to the configuration file to be updated.

[0080] In some embodiments, the apparatus may further include:

[0081] A broadcast acquisition module, used to acquire a media access control address in a network association address application request sent by a current field programmable gate array through network broadcast; wherein the current field programmable gate array is any field programmable gate array;

[0082] An address recognition module, used for detecting whether the media access control address of the current field programmable gate array is a recognized address;

[0083] The address allocation module is used to allocate a current network association address to the current field programmable gate array if it is an identified address, and establish a communication connection with the current field programmable gate array through the current network association address.

[0084] In some embodiments, the address allocation module may include:

[0085] An address detection submodule, used for detecting whether the media access control address of the current field programmable gate array is a preset media access control address;

[0086] A first allocation submodule, configured to allocate the network association address bound to the media access control address of the current field programmable gate array to the current field programmable gate array if the address is a preset media access control address;

[0087] The second allocation submodule is used to allocate a network association address to the current field programmable gate array through a dynamic host configuration protocol if it is not a preset media access control address, and bind the allocated network association address to the media access control address of the current field programmable gate array.

[0088] In some embodiments, the apparatus may further include:

[0089] A feedback acquisition module, used to acquire configuration feedback information sent by the current target field programmable gate array through the current target network association address; wherein the current target field programmable gate array is any target field programmable gate array, and the current target network association address is the target network association address corresponding to the current target field programmable gate array;

[0090] A file resending module, used for resending the corresponding configuration file to be updated to the current target field programmable gate array by using the communication connection established based on the current target network association address when the configuration feedback information is configuration failure information;

[0091] The flag update module is used to update the preset configuration flag information corresponding to the current target field programmable gate array to the flag information of the corresponding configuration file to be updated when the configuration feedback information is configuration success information.

[0092] In some embodiments, the apparatus may further include:

[0093] The feedback detection module is used to detect whether the configuration file flag information in the configuration feedback information is the same as the flag information of the corresponding configuration file to be updated; if the same, the configuration feedback information is determined to be configuration success information; if not the same, the configuration feedback information is determined to be configuration failure information.

[0094] In some embodiments, the apparatus may further include:

[0095] A configuration judgment module is used to judge whether the initial configuration feedback information sent by the current field programmable gate array through the current network association address is received within a preset detection time after the configuration file corresponding to the current field programmable gate array is sent to the current field programmable gate array by using the communication connection established based on the current network association address; wherein the current field programmable gate array is any field programmable gate array, and the current network association address is the network association address bound to the media access control address of the current field programmable gate array;

[0096] A resending module, for, if the initial configuration feedback information is received, resending the configuration file corresponding to the current field programmable gate array to the current field programmable gate array by using the communication connection established based on the current network association address when the initial configuration feedback information is configuration failure information;

[0097] A recording module, used for recording the correspondence between the media access control address of the current field programmable gate array and the flag information of the configuration file corresponding to the current field programmable gate array when the initial configuration feedback information is configuration success information;

[0098] The unbinding module is used to unbind the media access control address of the current field programmable gate array from the current network association address if the initial configuration feedback information is not received.

[0099] In some embodiments, the unbinding module may include:

[0100] A broadcast monitoring submodule, used to monitor whether a broadcast message sent by the current field programmable gate array is received within a preset reconnection time; wherein the broadcast message includes a media access control address of the current field programmable gate array;

[0101] An unbinding submodule, used for unbinding the media access control address of the current field programmable gate array from the current network association address if no broadcast message is received;

[0102] The reallocation submodule is used to allocate the current network association address to the current field programmable gate array if a broadcast message is received.

[0103] In this embodiment, the embodiment of the present invention detects whether there is a configuration file to be updated according to preset configuration flag information through the detection module 20, and can automatically detect new configuration files by using the flag information of the configuration files of each configured FPGA to update the configuration of the relevant FPGA, thereby realizing automatic configuration upgrade of the FPGA and improving user experience; and the server associates the MAC address of the FPGA with the IP address. When disconnected from or reconnected to the FPGA, there is no need to allocate a new IP address for it, and the communication connection between the FPGA and the server can still be guaranteed, thereby realizing effective utilization of network resources.

[0104] Corresponding to the above method embodiment, the embodiment of the present invention further provides a server. The server described below and the configuration method of the field programmable gate array described above can refer to each other.

[0105] Please refer to Figure 7 , Figure 7 A schematic diagram of the structure of a server provided by an embodiment of the present invention. The server may include:

[0106] A memory D1, for storing computer programs;

[0107] The processor D2 is used to implement the steps of the field programmable gate array configuration method provided in the above embodiment when executing a computer program.

[0108] Corresponding to the above method embodiment, the embodiment of the present invention further provides a computer program product. The computer program product described below and the field programmable gate array configuration method described above can refer to each other.

[0109] A computer program product includes a computer program / instruction, which implements the steps of the field programmable gate array configuration method provided in the above embodiment when executed by a processor.

[0110] Corresponding to the above method embodiment, an embodiment of the present invention further provides a computer-readable storage medium. The computer-readable storage medium described below and the field programmable gate array configuration method described above can be referred to each other.

[0111] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the method for configuring a field programmable gate array as provided in the above embodiment.

[0112] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the device, server, computer program product and computer-readable storage medium disclosed in the embodiment, since they correspond to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0113] The above is a detailed introduction to a configuration method, device, server and computer-readable storage medium of a field programmable gate array provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, the present invention can also be improved and modified in a number of ways, and these improvements and modifications also fall within the scope of protection of the present invention.

Claims

1. A method for configuring a field programmable gate array, characterized in that: Applicable to servers, including: Acquire preset configuration flag information; wherein the preset configuration flag information includes flag information of configuration files corresponding to each preset media access control address; the preset media access control address includes the media access control address of the configured field programmable gate array; According to the preset configuration flag information, detecting whether there is a configuration file to be updated; wherein the configuration file to be updated is the configuration file that needs to be updated corresponding to the preset configuration flag information; If the configuration file to be updated exists, the configuration file to be updated is sent to the target field programmable gate array using a communication connection established based on the target network association address, so that the target field programmable gate array completes the configuration update using the received configuration file to be updated; wherein the target network association address includes the network association address bound to the preset media access control address corresponding to the configuration file to be updated.

2. The method for configuring a field programmable gate array according to claim 1, wherein: Before obtaining the preset configuration flag information, the method further includes: Obtaining a media access control address in a network association address application request sent by a current field programmable gate array through network broadcast; wherein the current field programmable gate array is any of the field programmable gate arrays; detecting whether the media access control address of the current field programmable gate array is a recognized address; If it is the identified address, a current network association address is allocated to the current field programmable gate array, and a communication connection is established with the current field programmable gate array through the current network association address.

3. The method for configuring a field programmable gate array according to claim 2, wherein: The allocating a current network association address to the current field programmable gate array includes: Detecting whether the media access control address of the current field programmable gate array is the preset media access control address; If it is the preset media access control address, assigning the network association address bound to the media access control address of the current field programmable gate array to the current field programmable gate array; If it is not the preset media access control address, a network association address is allocated to the current field programmable gate array through a dynamic host configuration protocol, and the allocated network association address is bound to the media access control address of the current field programmable gate array.

4. The method for configuring a field programmable gate array according to claim 1, wherein: After the configuration file to be updated is sent to the target field programmable gate array by using the communication connection established based on the target network association address, the method further includes: Obtaining configuration feedback information sent by the current target field programmable gate array through the current target network association address; wherein the current target field programmable gate array is any of the target field programmable gate arrays, and the current target network association address is the target network association address corresponding to the current target field programmable gate array; When the configuration feedback information is configuration failure information, the corresponding configuration file to be updated is resent to the current target field programmable gate array using the communication connection established based on the current target network association address; When the configuration feedback information is configuration success information, the preset configuration flag information corresponding to the current target field programmable gate array is updated to flag information of the corresponding configuration file to be updated.

5. The method for configuring a field programmable gate array according to claim 4, characterized in that: After obtaining the configuration feedback information sent by the current target field programmable gate array through the current target network association address, the method further includes: Detecting whether the flag information of the configured file in the configuration feedback information is the same as the flag information of the corresponding configuration file to be updated; If they are the same, determining that the configuration feedback information is configuration success information; If they are not the same, it is determined that the configuration feedback information is configuration failure information.

6. The method for configuring a field programmable gate array according to claim 1, wherein: Before obtaining the preset configuration flag information, the method further includes: After sending the configuration file corresponding to the current field programmable gate array to the current field programmable gate array by utilizing the communication connection established based on the current network association address, determining whether the initial configuration feedback information sent by the current field programmable gate array through the current network association address is received within a preset detection time; wherein the current field programmable gate array is any of the field programmable gate arrays, and the current network association address is the network association address bound to the media access control address of the current field programmable gate array; If the initial configuration feedback information is received, then when the initial configuration feedback information is configuration failure information, the configuration file corresponding to the current field programmable gate array is resent to the current field programmable gate array using the communication connection established based on the current network association address; When the initial configuration feedback information is configuration success information, recording the correspondence between the media access control address of the current field programmable gate array and the flag information of the configuration file corresponding to the current field programmable gate array; If the initial configuration feedback information is not received, the media access control address of the current field programmable gate array is unbound from the current network association address.

7. The method for configuring a field programmable gate array according to claim 6, characterized in that: Before unbinding the media access control address of the current field programmable gate array from the current network association address, the method further includes: Monitoring whether a broadcast message sent by the current field programmable gate array is received within a preset reconnection time; wherein the broadcast message includes a media access control address of the current field programmable gate array; If the broadcast message is not received, the step of unbinding the media access control address of the current field programmable gate array from the current network association address is performed; If the broadcast message is received, a current network association address is allocated to the current field programmable gate array.

8. A configuration device for a field programmable gate array, characterized in that: Applicable to servers, including: An acquisition module, used for acquiring preset configuration flag information; wherein the preset configuration flag information includes flag information of configuration files corresponding to each preset media access control address; the preset media access control address includes a media access control address of a configured field programmable gate array; A detection module, used to detect whether there is a configuration file to be updated according to the preset configuration flag information; wherein the configuration file to be updated is the configuration file that needs to be updated corresponding to the preset configuration flag information; An upgrade module is used to send the configuration file to be updated to a target field programmable gate array by using a communication connection established based on a target network association address if the configuration file to be updated exists, so that the target field programmable gate array completes the configuration update by using the received configuration file to be updated; wherein the target network association address includes the network association address bound to the preset media access control address corresponding to the configuration file to be updated.

9. A server, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the method for configuring a field programmable gate array as claimed in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for configuring a field programmable gate array according to any one of claims 1 to 7 are implemented.