Field programmable gate array scheduling system and method, electronic equipment and storage medium
By introducing a signal gating circuit into the field programmable gate array scheduling system, it is compatible with active and passive update modes without increasing the occupation of control circuit pin resources, solving the problems of low update efficiency and poor stability, and improving Improve system reliability and update reliability.
Patent Information
- Application Number
- CN202410971908.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-10-15
AI Technical Summary
Field programmable gate arrays have limitations when updating in products such as edge servers. In particular, when the flash memory is abnormal, the system may not start, and the passive update efficiency is low and consumes a lot of control circuit pin resources.
A field programmable gate array scheduling system including a signal strobe circuit is designed. The signal strobe circuit selectively turns on the path, allowing the control circuit to be updated in active or passive update mode, reducing the impact on the control circuit pins. occupancy, and supports compatible active and passive update modes via multiple lanes and communication rates.
It achieves compatibility with active and passive update modes without increasing the occupation of control circuit pin resources, improves the update reliability of field programmable gate arrays and the stability of the system, and ensures that normal updates can still occur when the flash memory is abnormal. and start.
Smart Images

Figure CN118779284A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of field programmable gate arrays, and in particular to a field programmable gate array scheduling system, a field programmable gate array scheduling method, an electronic device, and a computer-readable storage medium. Background Art
[0002] In the design of products such as edge servers, field programmable gate arrays are usually configured in active update mode, that is, field programmable gate arrays are usually connected to external flash memories, etc., to actively obtain update files from the external flash memories, and a communication path is provided between the control circuit and the field programmable gate array. In this case, it is easy for the field programmable gate array to have high limitations in updating, and when the flash memory is abnormal or fails, it may cause the field programmable gate array to fail to start, affecting the stability and reliability of the field programmable gate array scheduling system and even the electronic equipment. In addition, if the field programmable gate array is updated in passive update mode, there are problems such as low update efficiency and occupying more control circuit pin resources. Summary of the invention
[0003] Based on this, it is necessary to provide a field programmable gate array scheduling system, a field programmable gate array scheduling method, an electronic device and a computer-readable storage medium to address the above-mentioned technical problems, which can reduce the occupation of control circuit pin resources while being compatible with the field programmable gate array active update mode and passive update mode.
[0004] On the one hand, a field programmable gate array scheduling system is provided, which includes: a field programmable gate array, a control circuit, a flash memory and a signal selection circuit; the control circuit is used to generate an update signal; the flash memory is connected to the field programmable gate array and is used to store an update file of the field programmable gate array; the signal selection circuit is connected to the control circuit, the flash memory and the field programmable gate array, and is used to selectively conduct a path between it and the field programmable gate array after receiving the update signal, so as to allow the control circuit to control the update of the field programmable gate array through the signal selection circuit, or to enable the field programmable gate array to obtain the update file in the flash memory for updating.
[0005] In one embodiment of the present application, there is a first path between the signal gating circuit and the control circuit; there is a second path between the signal gating circuit and the flash memory; there is a third path between the signal gating circuit and the field programmable gate array; the control circuit is used to send a version confirmation signal to the flash memory through the first path and the second path, and in response to confirming that the flash memory stores the update file of the target version, sends a permission update signal to the field programmable gate array through the first path and the third path; the field programmable gate array is used to access the flash memory to load the update file of the target version after receiving the permission update signal.
[0006] In one embodiment of the present application, an update path is provided between the field programmable gate array and the flash memory, the update path connects the second path and the third path and is provided with a switch circuit; when the control circuit sends a version confirmation signal, the control switch circuit is opened to disconnect the update path; the switch circuit is closed to allow the field programmable gate array to load the update file through the update path.
[0007] In one embodiment of the present application, there is also a fourth path between the signal gating circuit and the field programmable gate array; the control circuit and the field programmable gate array perform serial communication through the first path and the fourth path; wherein the communication rate supported by the third path is higher than the communication rate supported by the fourth path; the field programmable gate array scheduling system also includes a first selection circuit, the first selection circuit includes at least one selector; the first selection circuit is arranged in the third path, and is used to receive a mode indication signal sent by the control circuit through the signal gating circuit, and switch the link based on the mode indication signal.
[0008] In one embodiment of the present application, in response to the control circuit determining that the current version does not match the target version, an update file signal is sent to the flash memory through the first path and the second path to update the update file in the flash memory; wherein the current version is the version of the update file stored in the flash memory.
[0009] In one embodiment of the present application, there is a first path between the signal gating circuit and the control circuit; there is a second path between the signal gating circuit and the flash memory; there are a third path and a fourth path between the signal gating circuit and the field programmable gate array; wherein the communication rate supported by the third path is higher than the communication rate supported by the fourth path; the field programmable gate array is used to send an update exception signal to the signal gating circuit through the fourth communication when the update file in the flash memory fails to be obtained; the signal gating circuit is used to feed back the update exception signal to the control circuit through the first path after receiving the update exception signal; the control circuit is used to count the cumulative number of times the update exception signal is obtained in the current update after obtaining the update exception signal, and When the accumulated number of times reaches the threshold number of times, a passive update signal is sent to the signal gating circuit through the first path; the signal gating circuit is used to gating the third path between it and the field programmable gate array after receiving the passive update signal; the control circuit updates the field programmable gate array through the first path and the third path; the field programmable gate array is used to be updated through passive loading of the control circuit and started when the passive loading is completed; the control circuit is used to send a communication indication signal to the signal gating circuit after the field programmable gate array is started, so that the signal gating circuit gating the fourth path between it and the field programmable gate array, so that the control circuit and the field programmable gate array can communicate serially through the first path and the fourth path.
[0010] In one embodiment of the present application, the field programmable gate array scheduling system also includes a second selection circuit, which includes multiple selectors; the second selection circuit is connected to the control circuit and the field programmable gate array, and is used to output different indication signals to the field programmable gate array when the control circuit controls the field programmable gate array to be in a passive update mode, so as to make the field programmable gate array enter different passive sub-modes.
[0011] On the other hand, a field programmable gate array scheduling method applied to a field programmable gate array scheduling system as in any of the above embodiments is provided, the field programmable gate array scheduling method comprising: obtaining a field programmable gate array update instruction; and adaptively controlling the field programmable gate array to update in an active update mode or a passive update mode.
[0012] On the other hand, an electronic device is provided. The electronic device includes a device body and a field programmable gate array scheduling system as described in any of the above embodiments and arranged in the device body.
[0013] On the other hand, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the field programmable gate array scheduling method in any of the above embodiments is implemented.
[0014] The above-mentioned field programmable gate array scheduling system, field programmable gate array scheduling method, electronic device and computer-readable storage medium are provided with a signal gating circuit to reduce the pins occupied by the control circuit connected to other circuits / modules, thereby facilitating saving the pin resources of the control circuit. In addition, the various control signals output by the control circuit can be forwarded through the signal gating circuit. The signal gating circuit can selectively conduct the path between it and the field programmable gate array to enable the field programmable gate array to load the update file from the flash memory for active update; or, enable the control circuit to control the update of the field programmable gate array through the conducted path to perform passive update of the field programmable gate array, thereby realizing active update mode and passive update mode compatible with the field programmable gate array. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 It is a structural diagram of an embodiment of a field programmable gate array scheduling system of the present application;
[0016] Figure 2 It is a structural schematic diagram of another embodiment of the field programmable gate array scheduling system of the present application;
[0017] Figure 3 It is a structural schematic diagram of another embodiment of the field programmable gate array scheduling system of the present application;
[0018] Figure 4 It is a structural schematic diagram of an embodiment of the electronic device of the present application;
[0019] Figure 5 It is a flowchart of an embodiment of a field programmable gate array scheduling method of the present application;
[0020] Figure 6 It is a flowchart of another embodiment of the field programmable gate array scheduling method of the present application;
[0021] Figure 7 It is a structural diagram of an embodiment of a computer device of the present application. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0023] In order to solve the technical problem of poor stability of field programmable gate array scheduling systems and even electronic devices existing in related technologies, the present application provides a field programmable gate array scheduling system, a field programmable gate array scheduling method, an electronic device and a computer-readable storage medium. The field programmable gate array scheduling system includes: a field programmable gate array, a control circuit, a flash memory and a signal gating circuit; the control circuit is used to generate an update signal; the flash memory is connected to the field programmable gate array and is used to store the update file of the field programmable gate array; the signal gating circuit is connected to the control circuit, the flash memory and the field programmable gate array, and is used to selectively conduct the path between it and the field programmable gate array after receiving the update signal, so as to allow the control circuit to control the update of the field programmable gate array through the signal gating circuit, or to allow the field programmable gate array to obtain the update file in the flash memory for update. The specific structure and working principle of the present application are described in detail below.
[0024] See also Figure 1 , Figure 1 It is a structural diagram of an embodiment of a field programmable gate array scheduling system of the present application.
[0025] In one embodiment, the field programmable gate array scheduling system includes a field programmable gate array 11 , a control circuit 12 , a flash memory 13 and a signal gating circuit 14 .
[0026] The control circuit 12 is used to generate an update signal.
[0027] The flash memory 13 is connected to the field programmable gate array 11 and is used to store update files of the field programmable gate array 11 .
[0028] The signal gating circuit 14 is connected to the control circuit 12, the flash memory 13 and the field programmable gate array 11. After receiving the update signal, the signal gating circuit 14 can selectively conduct the path between it and the field programmable gate array 11 to allow the control circuit 12 to control the field programmable gate array 11 to update through the signal gating circuit 14, or to allow the field programmable gate array 11 to obtain the update file in the flash memory 13 for updating.
[0029] The control circuit 12 sends an update signal to the signal gating circuit 14, and the signal gating circuit 14 receives the update signal. Optionally, the control circuit 12 can be a controller such as a CPU (Central Processing Unit), an MCU (Microcontroller Unit), a CPLD (Complex Programmable Logic Device), or any chip or module that can meet the control signal and data required for the field programmable gate array 11 to update / configure.
[0030] When the control circuit 12 instructs the FPGA 11 to update in the active update mode through the update signal, the signal selection circuit 14 does not conduct the path between it and the FPGA 11, so that the FPGA 11 can autonomously load the update file from the flash memory 13 for active update.
[0031] When the control circuit 12 instructs the field programmable gate array 11 to update in the passive update mode through the update signal, the signal selection circuit 14 turns on the path between it and the field programmable gate array 11, and the control circuit 12 can control the update of the field programmable gate array 11 through the turned-on path to perform a passive update of the field programmable gate array 11.
[0032] It can be seen that in this embodiment, a signal gating circuit 14 and a flash memory 13 are added, so that during the scheduling process of the field programmable gate array 11, the control circuit 12 is connected to the signal gating circuit 14, reducing the pins occupied by the control circuit 12 connected to other circuits / modules, thereby helping to save the pin resources of the control circuit 12. In addition, the various control signals output by the control circuit 12 can be forwarded through the signal gating circuit 14. The signal gating circuit 14 can selectively conduct the path between it and the field programmable gate array 11. With such a design, this embodiment can be compatible with the active update mode and the passive update mode of the field programmable gate array 11, can improve the reliability of the update of the field programmable gate array 11, is conducive to ensuring the reliable update of the field programmable gate array 11, and can further improve the reliability of the field programmable gate array scheduling system and electronic equipment.
[0033] See also Figure 2 as well as Figure 3 , Figure 2 is a structural diagram of another embodiment of the field programmable gate array scheduling system of the present application, Figure 3 It is a structural diagram of another embodiment of the field programmable gate array scheduling system of the present application.
[0034] In one embodiment, the signal gating circuit 14 may have multiple sets of paths connected to other modules / circuits.
[0035] Specifically, there is a first path T1 between the signal selection circuit 14 and the control circuit 12. Figure 3 As shown in the example, the first path T1 includes a circuit connecting the signal selection circuit 14 with the CS (chip select) pin, CLK (clock) pin, MOSI (master output slave input) pin, and MISO (master input slave output) pin of the control circuit 12. In this embodiment, the control circuit 12 acts as a master, and other modules such as the field programmable gate array 11 act as slaves.
[0036] There is a second path T2 between the signal selection circuit 14 and the flash memory 13. Figure 3 As shown in the example, the second path T2 includes a circuit in which the signal selection circuit 14 is connected to the CS (chip select) pin, the CLK (clock) pin, the D0 (data) pin and the D1 (data) pin of the flash memory 13.
[0037] There is a third path T3 between the signal gating circuit 14 and the field programmable gate array 11. Figure 3 As shown in the example, the third path T3 includes a circuit connecting the signal selection circuit 14 with the FCS (dedicated chip select) pin, CCLK (dedicated clock) pin, D00 (dedicated configuration input) pin and D01_DIN (multi-function) pin of the field programmable gate array 11.
[0038] Furthermore, a fourth path T4 may be provided between the signal gating circuit 14 and the field programmable gate array 11, and the fourth path T4 is used to implement serial communication between the control circuit 12 and the field programmable gate array 11. Figure 3 As shown in the example, the fourth path T4 includes a circuit connecting the signal selection circuit 14 and the CS1 (chip select) pin, CLK1 (clock) pin, MOSI1 (master output slave input) pin, and MISO1 (master input slave output) pin of the field programmable gate array 11.
[0039] In other words, the control circuit 12 and the field programmable gate array 11 communicate serially through the first path T1 and the fourth path T4. The control circuit 12 can send communication information to the signal gating circuit 14 through the first path T1, and the signal gating information forwards the communication information to the field programmable gate array 11 through the fourth path T4, so as to reduce the pin resources occupied by the control circuit 12, so as to realize the control circuit 12 scheduling the field programmable gate array 11 and communicating with the field programmable gate array 11, thereby facilitating the release of the pin resources of the control circuit 12 to realize other functions of the electronic device.
[0040] The path between the field programmable gate array 11 and the flash memory 13 can be considered as an update path UD. Further, the ratio of the communication rate supported by the update path UD / third path T3 to the communication rate supported by the fourth path T4 is at least 4. In other words, the communication rate of the field programmable gate array 11 when actively updating can be at least four times that of other serial communications.
[0041] For example, the update path UD and the third path T3 may support a QSPI (Quad SPI, 6-wire SPI) protocol, and the fourth communication may support a SPI (Serial Peripheral Interface, serial peripheral interface) protocol.
[0042] Among them, the communication rate supported by the update path UD and the third path T3 is higher than the communication rate supported by the fourth path T4, and the field programmable gate array 11 can use an active interface (such as a QSPI interface) to access the flash memory 13 to read the update file through the QSPI protocol to improve the communication rate of the field programmable gate array 11 during the active update process. As such, in this embodiment, the update rate of the field programmable gate array 11 can be improved by reasonably planning the communication protocol and the communication rate, and it is also beneficial to reduce the waste of communication resources in ordinary serial communication, and further improve the rationality of the scheduling of the field programmable gate array 11 in this embodiment.
[0043] Specifically, the control circuit 12 sends a version confirmation signal to the flash memory 13 through the first path T1 and the second path T2.
[0044] That is, the control circuit 12 sends a version confirmation signal to the signal selection circuit 14 through the first path T1, the signal selection circuit 14 receives the version confirmation signal and forwards it to the flash memory 13, and can feedback the current version through the second path T2, the signal selection circuit 14 and the first path T1. Among them, the current version is the version of the updated file stored in the flash memory 13 during the stage of checking the updated file in the flash memory 13. Alternatively, it can be considered that the control circuit 12 can read the current version through the first path T1, the signal selection circuit 14 and the second path T2, which is not limited here.
[0045] In this way, the control circuit 12 can verify the current version of the update file stored in the flash memory 13, determine whether the update file stored in the flash memory 13 is the target version to be updated, and adaptively determine whether it is necessary to update the update file in the flash memory 13. In other words, in this embodiment, the update file version used in the active update mode can be confirmed in advance, reducing the risk of erroneous update, which is conducive to improving the efficiency and reliability of the field programmable gate array 11 update.
[0046] In response to the control circuit 12 determining that the current version does not match the target version, it can be considered that the update file stored in the flash memory 13 is not the target version update file to be updated, and the update file in the flash memory 13 can be updated. Specifically, the control circuit 12 can send an update file signal to the flash memory 13 through the first path T1 and the second path T2 to update the update file in the flash memory 13. The update is performed through the relatively high-speed path between the flash memory 13 and the field programmable gate array 11, which is conducive to improving the update efficiency of the field programmable gate array 11.
[0047] In response to confirming that the flash memory 13 stores the update file of the target version, the control circuit 12 may send a permission update signal to the field programmable gate array 11 through the first path T1 and the third path T3. The field programmable gate array 11 is configured to access the flash memory 13 to load the update file of the target version after receiving the permission update signal, so as to realize the active update of the field programmable gate array 11.
[0048] Optionally, an update path UD is provided between the FPGA 11 and the flash memory 13, the update path UD is connected to the second path T2 and the third path T3 and is provided with a switch circuit 15. Figure 3 As shown in the example, the switch circuit 15 includes a first switch element SW0, a second switch element SW1, a third switch element SW2 and a fourth switch element SW3. In an alternative embodiment, the function of the switch circuit 15 can also be realized by one switch module or multiple switch modules, which is not limited here.
[0049] When the control circuit 12 sends the version confirmation signal, the control switch circuit 15 is turned off to disconnect the update path UD; that is, the first switch element SW0, the second switch element SW1, the third switch element SW2 and the fourth switch element SW3 are controlled to be turned off.
[0050] In response to completing the update of the update file in the flash memory 13 or determining that the current version matches the target version, the switch circuit 15 is controlled to close, that is, the first switch SW0, the second switch SW1, the third switch SW2 and the fourth switch SW3 are controlled to close, so as to allow the field programmable gate array 11 to load the update file through the update path UD, thereby facilitating the reliability of the current version confirmation process, reducing the risk of signal mistransmission or misidentification, and improving the reliability of the result of confirming the current version, thereby improving the reliability of the scheduling of the field programmable gate array 11.
[0051] Please continue reading Figure 2 as well as Figure 3In one embodiment, the field programmable gate array scheduling system further includes a first selection circuit 16, and the first selection circuit 16 includes at least one selector. The first selection circuit 16 is provided in the third path T3, and is used to receive the mode indication signal sent by the control circuit 12 through the signal selection circuit 14, and switch the link based on the mode indication signal.
[0052] Specifically, when the field programmable gate array 11 is in the active update mode, the first selection circuit 16 can select link 1 (ie Figure 3 When the field programmable gate array 11 is in the passive update mode, the first selection circuit 16 can select link 2 (ie, Figure 3 The first selection circuit 16 may include a first selector MUX0 and a second selector MUX1, and the first selector MUX0 and the second selector MUX1 may be multiplexers.
[0053] Furthermore, the FPGA scheduling system further includes a second selection circuit 17, which includes a plurality of selectors; the second selection circuit 17 is connected to the control circuit 12 and the FPGA 11, and the control circuit 12 can indicate the working mode to the FPGA 11 through the second selection circuit 17, that is, to indicate that the FPGA 11 works in the active update mode or the passive update mode. At the same time, when the control circuit 12 controls the FPGA 11 to be in the passive update mode, different indication signals are output to the FPGA 11 to make the FPGA 11 enter different passive sub-modes, and appropriate redundant selectors are provided to adapt to passive sub-modes that may appear in the future, thereby improving the inclusiveness of the FPGA scheduling system in this embodiment.
[0054] like Figure 3 As shown in the example, the second selection circuit 17 may include three selectors to support multiple passive update modes.
[0055] For example, the passive sub-mode of the passive update mode may include the Slave Serial mode and the SelectMAP (x8 / x16 / x32) mode, where Slave Serial refers to a two-wire serial port protocol; SelectMAP refers to a parallel interface, where x8 can send 8-bit data in parallel, x16 can send 16-bit data in parallel, and x32 can send 32-bit data in parallel.
[0056] Please continue reading Figure 2 as well as Figure 3In one embodiment, the field programmable gate array 11 is used to send an update abnormality signal to the signal gating circuit 14 through the fourth communication when the acquisition of the update file in the flash memory 13 fails.
[0057] The signal gating circuit 14 is used for feeding back the update abnormality signal to the control circuit 12 through the first path T1 after receiving the update abnormality signal.
[0058] The control circuit 12 is used to count the cumulative number of times the update abnormality signal is obtained in the current update after obtaining the update abnormality signal. When the cumulative number reaches the threshold number, the passive update signal is sent to the signal gating circuit 14 through the first path T1. For example, the threshold number can be once, twice, three times, five times, eight times, ten times, etc., which is not limited here.
[0059] The signal gating circuit 14 is used to gating the third path T3 between itself and the field programmable gate array 11 after receiving the passive update signal.
[0060] The control circuit 12 updates the field programmable gate array 11 through the first path T1 and the third path T3.
[0061] The field programmable gate array 11 is used to be updated by passive loading through the control circuit 12 and is started when the passive loading is completed.
[0062] The control circuit 12 is used to send a communication instruction signal to the signal selection circuit 14 after the field programmable gate array 11 is started, so that the signal selection circuit 14 selects the fourth path T4 between it and the field programmable gate array 11, so that the control circuit 12 and the field programmable gate array 11 can communicate serially through the first path T1 and the fourth path T4.
[0063] In an alternative embodiment, the control circuit 12 determines that the current version of the update file in the flash memory 13 does not match the target version, and the control circuit 12 sends a first switching signal to the signal gating circuit 14. The signal gating circuit 14 is made to gating the third path T3 between it and the field programmable gate array 11, controlling the first selection circuit 16 to switch to link 2, and controlling the second selection circuit 17 to switch to the passive update mode of the field programmable gate array 11. In this way, the field programmable gate array 11 is placed in the passive update mode, and the control circuit 12 controls the field programmable gate array 11 to be updated. In response to the control circuit 12 / field programmable gate array 11 determining that the update loading of the field programmable gate array 11 is completed, the system starts. The control circuit 12 sends a second switching signal to the signal gating circuit 14. In response to receiving the second switching signal, the signal gating signal selects the fourth path T4 between the signal gating circuit 14 and the field programmable gate array 11 for subsequent serial communication between the control circuit 12 and the field programmable gate array 11.
[0064] In summary, the present application can help overcome the limitation that online upgrade cannot be achieved during active update, can also help overcome the problem of low reliability during active update, and can alleviate the problem of tight control circuit pin resources.
[0065] In layman's terms, the working principle of this case is explained by taking the field programmable gate array as FPGA (Field Programmable Gate Array), the control circuit as CPU, and the flash memory as FLASH (flash memory) as an example.
[0066] This application can complete the online upgrade for the FPGA configuration file in FLASH through the SPI interface of the CPU or other processors. When the system starts, the CPU or other processor accesses FLASH to determine whether the FPGA configuration file needs to be updated. If an update is required, the online upgrade is completed through the SPI interface, and then the FPGA accesses FLASH through SPI x4 to complete the active loading, and the system startup is completed. In the use scenarios of edge products such as energy and communications, high requirements are usually placed on the reliability of the equipment, and they are usually accompanied by poor use environment conditions. If there is only an active update mode, when FLASH fails, it is easy for the FPGA to fail to start normally and cause the system to crash. Therefore, in this application, when the FLASH loading failure is detected, the FPGA can be switched to the passive update mode by switching MUX, and the passive loading of the FPGA can be completed using the CPU or other processors, which is conducive to ensuring that the system can still work normally when the FLASH fails. In addition, considering the SPI interface of the CPU or other processor, it is usually only used when the FLASH is upgraded online or the FPGA is passively recorded. When the FPGA is started, the SPI of the CPU or other processor is in an idle state. In order to improve pin utilization in this application, a signal switching module is added between the CPU or other processor and the FPGA through the layout of hardware design, and the SPI1 used by the FPGA for communication is also connected to this module. By controlling the selection of the module channel, the multiplexing function of the CPU or other processor SPI is achieved, which is also beneficial to reduce the hardware design cost.
[0067] Each module in the above-mentioned field programmable gate array scheduling system can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0068] See also Figure 4 , Figure 4It is a structural schematic diagram of an embodiment of the electronic device of the present application.
[0069] The electronic device includes a field programmable gate array scheduling system 10 and a device body 20 .
[0070] The field programmable gate array scheduling system 10 may be as described in any of the above embodiments. For example, the field programmable gate array scheduling system 10 may include a field programmable gate array, a control circuit, a flash memory, and a signal gating circuit.
[0071] The device body 20 is a collection of basic components and parts that realize the functions of the electronic device. Taking the electronic device as a server as an example, the device body 20 may include a housing, a central controller, a memory, a chipset, an I / O (Input / Output) device, a storage device, a peripheral device, a voltage regulator, a power supply, and a cooling system, etc., which will not be described in detail here.
[0072] The control circuit of the field programmable gate array scheduling system 10 may be a central controller of the device body 20 or other independent control circuits / modules, which are not limited here.
[0073] See also Figure 5 , Figure 5 It is a flow chart of an embodiment of the field programmable gate array scheduling method of the present application. It should be noted that the field programmable gate array scheduling method in this embodiment is applied to the field programmable gate array scheduling system in any of the above embodiments.
[0074] S101: Obtain a field programmable gate array update instruction.
[0075] S102: Adaptively control the field programmable gate array to update in an active update mode or a passive update mode.
[0076] It can be seen that the present embodiment is compatible with the active update mode and the passive update mode of the field programmable gate array, and adaptively controls the update mode of the field programmable gate array to increase the possibility of updating the field programmable gate array, thereby improving the reliability of the field programmable gate array update, which is beneficial to ensuring the reliable update of the field programmable gate array, and further improving the reliability of the field programmable gate array scheduling system and electronic equipment.
[0077] See also Figure 6 , Figure 6 It is a flowchart of another embodiment of the field programmable gate array scheduling method of the present application. It should be noted that this embodiment describes one specific implementation method of updating the field programmable gate array, and does not strictly limit the field programmable gate array scheduling system and the field programmable gate array scheduling method of the present application.
[0078] S201: The system is powered on.
[0079] In this embodiment, the system may refer to a field programmable gate array scheduling system, or may refer to a system of electronic devices equipped with a field programmable gate array, which is not limited here.
[0080] S202: Determine whether power-on is completed.
[0081] In this embodiment, when it is determined that the system has completed powering on, step S203 is executed; when it is determined that the system has not completed powering on, step S202 is executed.
[0082] S203: The control circuit enables the field programmable gate array.
[0083] S204: the switch circuit is disconnected; the first selection circuit enables link 1; the second selection circuit enables the field programmable gate array active update mode.
[0084] In this embodiment, link 1 can be Figure 3 L1 is shown as an example in .
[0085] S205: The control circuit accesses the flash memory.
[0086] S206: Determine whether it is necessary to update the update file in the flash memory.
[0087] In this embodiment, when it is determined that the update file in the flash memory needs to be updated, step S207 is executed; when it is determined that the update file in the flash memory does not need to be updated, step S208 is executed.
[0088] The control circuit can identify the version of the update file currently stored in the flash memory, determine whether the current version matches the target version to be updated, and determine whether the update file in the flash memory needs to be updated.
[0089] S207: Update the update file in the flash memory.
[0090] In this embodiment, the update file of the target version is written into the flash memory, so that the field programmable gate array can be reliably updated to the target version when being updated.
[0091] S208: The processor selects the fourth path; the switch circuit is closed.
[0092] S209: Determine whether the field programmable gate array loads the update file stored in the flash memory successfully.
[0093] In this embodiment, when it is determined that the FPGA loads the update file stored in the flash memory successfully, step S213 is executed; when it is determined that the FPGA loads the update file stored in the flash memory unsuccessfully, step S210 is executed.
[0094] S210: Determine whether there have been three cumulative failures.
[0095] In this embodiment, when it is determined that the cumulative failure is three times, step S211 is executed; when it is determined that the cumulative failure is not three times (ie, less than three times), step S209 is executed.
[0096] It should be noted that, in this embodiment, the threshold number of times is explained as three times. In alternative embodiments, the threshold number of times can also be one, two, five, eight, ten times, etc. This embodiment does not strictly limit the specific number of times of the threshold number.
[0097] S211: The control circuit enables the third path; the first selection circuit enables link 2; and the second selection circuit enables the field programmable gate array passive update mode.
[0098] In this embodiment, link 1 can be Figure 3 L2 shown as an example in .
[0099] S212: Determine whether the field programmable gate array is passively updated.
[0100] In this embodiment, when it is determined that the passive update of the field programmable gate array is completed, step S213 is executed; when it is determined that the passive update of the field programmable gate array is not completed, step S212 is executed.
[0101] S213: System startup is completed.
[0102] For the specific definition of the field programmable gate array scheduling method, please refer to the definition of the field programmable gate array scheduling system above, which will not be repeated here.
[0103] It should be understood that although Figure 5-Figure 6 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 5-Figure 6 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0104] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the steps of the field programmable gate array scheduling method described above are implemented, which will not be described in detail here.
[0105] See also Figure 7 , Figure 7 It is a structural diagram of an embodiment of a computer device of the present application.
[0106] In one embodiment, the computer device may be a server, and its internal structure diagram may be as follows: Figure 7 As shown in the example.
[0107] The computer device includes a processor, a memory, a network interface and a database connected through a system bus. 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 data. The network 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, a field programmable gate array scheduling method is implemented.
[0108] Those skilled in the art will understand that Figure 7 The structure shown as an example is merely a block diagram of a portion of the structure related to the present application solution, and does not constitute a limitation on the computer device to which the present application solution is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0109] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0110] S101: Obtain a field programmable gate array update instruction.
[0111] S102: Adaptively control the field programmable gate array to update in an active update mode or a passive update mode.
[0112] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0113] S101: Obtain a field programmable gate array update instruction.
[0114] S102: Adaptively control the field programmable gate array to update in an active update mode or a passive update mode.
[0115] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and 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-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0116] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, 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, they should be considered to be within the scope of this specification.
[0117] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application.
Claims
1. A field programmable gate array scheduling system, characterized in that: The field programmable gate array scheduling system comprises: a field programmable gate array; A control circuit for generating an update signal; A flash memory is connected to the field programmable gate array and is used to store an update file of the field programmable gate array; a signal selection circuit is connected to the control circuit, the flash memory and the field programmable gate array and is used to selectively conduct a path between the control circuit and the field programmable gate array after receiving the update signal, so as to allow the control circuit to control the update of the field programmable gate array through the signal selection circuit, or to enable the field programmable gate array to obtain the update file in the flash memory for updating.
2. The field programmable gate array scheduling system according to claim 1, characterized in that: There is a first path between the signal gating circuit and the control circuit; there is a second path between the signal gating circuit and the flash memory; there is a third path between the signal gating circuit and the field programmable gate array; The control circuit is used to send a version confirmation signal to the flash memory through the first path and the second path, and in response to confirming that the flash memory stores the update file of the target version, send a permission update signal to the field programmable gate array through the first path and the third path; The field programmable gate array is used to access the flash memory to load the update file of the target version after receiving the permission update signal.
3. The field programmable gate array scheduling system according to claim 2, characterized in that: An update path is provided between the field programmable gate array and the flash memory, the update path is connected to the second path and the third path and is provided with a switch circuit; When the control circuit sends the version confirmation signal, the switch circuit is controlled to be opened to disconnect the update path; the switch circuit is closed to allow the field programmable gate array to load the update file through the update path.
4. The field programmable gate array scheduling system according to claim 2, characterized in that: There is also a fourth path between the signal gating circuit and the field programmable gate array; the control circuit and the field programmable gate array perform serial communication through the first path and the fourth path; wherein the communication rate supported by the third path is higher than the communication rate supported by the fourth path; The field programmable gate array scheduling system also includes a first selection circuit, which includes at least one selector; the first selection circuit is arranged in the third path, and is used to receive a mode indication signal sent by the control circuit through the signal selection circuit, and switch the link based on the mode indication signal.
5. The field programmable gate array scheduling system according to claim 2, characterized in that: In response to the control circuit determining that the current version does not match the target version, sending an update file signal to the flash memory through the first path and the second path to update the update file in the flash memory; The current version is a version of the update file stored in the flash memory.
6. The field programmable gate array scheduling system according to claim 1, characterized in that: There is a first path between the signal gating circuit and the control circuit; there is a second path between the signal gating circuit and the flash memory; There is a third path and a fourth path between the signal gating circuit and the field programmable gate array; wherein the communication rate supported by the third path is higher than the communication rate supported by the fourth path; The field programmable gate array is used to send an update abnormality signal to the signal gating circuit through the fourth communication when the update file in the flash memory fails to be obtained; The signal gating circuit is used for feeding back the update abnormality signal to the control circuit through the first path after receiving the update abnormality signal; The control circuit is used for, after acquiring the update abnormality signal, counting the cumulative number of times the update abnormality signal is acquired in the current update, and sending a passive update signal to the signal gating circuit through the first path when the cumulative number reaches a threshold number; The signal gating circuit is used for gating the third path between the signal gating circuit and the field programmable gate array after receiving the passive update signal; The control circuit updates the field programmable gate array through the first path and the third path; the field programmable gate array is used to be updated through passive loading of the control circuit and is started when the passive loading is completed; The control circuit is used to send a communication indication signal to the signal selection circuit after the field programmable gate array is started, so that the signal selection circuit selects the fourth path between it and the field programmable gate array, so that the control circuit and the field programmable gate array can communicate serially through the first path and the fourth path.
7. The field programmable gate array scheduling system according to claim 6, characterized in that: The field programmable gate array scheduling system also includes a second selection circuit, which includes multiple selectors; the second selection circuit is connected to the control circuit and the field programmable gate array, and is used to output different indication signals to the field programmable gate array when the control circuit controls the field programmable gate array to be in a passive update mode, so as to make the field programmable gate array enter different passive sub-modes.
8. A field programmable gate array scheduling method applied to the field programmable gate array scheduling system according to any one of claims 1 to 7, characterized in that: The scheduling method comprises: Get field programmable gate array update instructions; Adaptively control the field programmable gate array to be updated in active update mode or passive update mode.
9. An electronic device, characterized in that: The electronic device comprises: A device body and a field programmable gate array scheduling system as described in any one of claims 1 to 7 arranged on the device body.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the field programmable gate array scheduling method described in claim 8 is implemented.
Citation Information
Cited By
Flash memory access interface, flash memory module, and electronic device
TWI921116B
