Node equipment fpga configuration file online upgrading method based on fiber channel network
By using two flashes in the Flash network for online upgrade of the FPGA configuration file, the problem of network interruption caused by online upgrade of node equipment in the prior art is solved, and the Fibre Channel network nodes are realized without affecting data stream transmission. Multiple nodes of the equipment are upgraded online simultaneously, improving the upgrade efficiency and the integrity of communication data.
Patent Information
- Application Number
- CN202410938061.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2044-07-12
AI Technical Summary
The existing Fibre Channel network node equipment online upgrade method can easily lead to network interruption or affect normal data stream transmission during the update process, and the traditional method cannot achieve online upgrade of multiple nodes at the same time, which is inefficient in upgrading.
Two flash (configured flash and program flash) are used to store the default configuration file and program version respectively. The source-to-destination FPGA configuration file is upgraded online through the FC switching network, and the request and reply mechanism is used without affecting the transmission and reception of the data flow. Update the configuration file and load the updated configuration file on the next power-on.
It realizes the online upgrade of FPGA configuration files for Fibre Channel network node devices without interrupting normal data streaming, supports multiple nodes to upgrade simultaneously, improving the upgrade efficiency and integrity of communication data.
Smart Images

Figure CN119030871A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of fiber channel network technology, in particular to the configuration upgrade technology of node equipment, and in particular to an online upgrade method for FPGA configuration files of node equipment based on fiber channel network. Background Art
[0002] FC (Fibre Channel, abbreviated as FC, or Fiber Channel) network is a network communication standard proposed by the American Industrial Standards Institute (ANSI) in 1988. It aims to solve the problem of high-speed data communication within the airborne data bus in the context of aerospace and other applications. FC network is a standard-based network structure with dual advantages of channels and networks, allowing the current mainstream channel standards and network protocols to run on the same physical interface. The huge data throughput makes it possible to achieve large-scale data transmission between different systems, and any topology can be established with the same device to meet different connection characteristics, such as point-to-point communication network, arbitration ring communication network, switching network, etc., to achieve high-speed communication between node devices.
[0003] In the FC communication topology, the node device is usually equipped with one or more Fibre Channel ports (FC ports). The node device is connected to the host through the PCIE interface, and communicates with the host to send and receive messages, such as sending service messages to the host, receiving the host's configuration information for the node device (FPGA, DDR storage, optical signal processing, etc.), and connecting the host to the FC switching network through the FC port.
[0004] The FPGA in the fc network node device is usually based on SRAM programming. When the system loses power, all programming information is lost. The non-volatile device FLASH is generally used to store the FPGA configuration file. After the system is powered on, the configuration file is loaded into the FPGA chip, so that the FPGA program can be started normally. Taking the 7 series FPGA as an example, referring to the Xilinx manual (ug470_7Series_Config.pdf), the 7 series FPGA has MultiBoot and FallBack mechanisms, that is: after the device is powered on, the configuration program starts from the FLASH base address. Configuring the corresponding parameters in the boot area can trigger the MultiBoot mechanism, and the FPGA configuration file can be loaded from the specified jump address. This version of the bitstream file is called the update version; if the loading fails, the FallBack mechanism is triggered to return to the base address to load another FPGA configuration file. This version of the bitstream file is called the golden version.
[0005] With the continuous development of network and big data technology, the amount of data in the network is growing exponentially. As a new type of high-speed data transmission network, the network based on the FC protocol is often used in data centers and wide area networks. Its advantages are high bandwidth, low latency, and high reliability. However, with the continuous development of technology, network requirements are constantly evolving, and flexible configuration online upgrade methods have become an important issue. Traditional online upgrade methods may cause network interruption or service unavailability. Therefore, how to upgrade and update network device nodes without affecting the normal communication of the network and the normal operation of each node in the network is a problem that needs to be solved in the current FC communication field.
[0006] The prior art attempts to perform remote upgrades through a host computer or online upgrades through a network. For example, in a full-network remote upgrade method based on an FC switching network, a host computer is used for remote updates, and a FC firmware update device (including a host computer, an FPGA chip, and an optoelectronic transceiver) is used to update the node devices in the FC switching network. The administrator can use the host computer to uniformly manage and upgrade the devices in the entire network. For another example, in a secure online upgrade method for FPGA configuration files in a Fibre Channel network node device, an online upgrade method for a Fibre Channel network node device is proposed, in which a double verification method is used to ensure that a usable complete version exists in the flash, and a multi-configuration online function is used to ensure the flexibility of the system.
[0007] Both of the above methods can realize online upgrade of node FPGA devices to a certain extent. The whole network remote upgrade method based on FC switching network can improve management efficiency by controlling remote upgrade through host computer. However, its update method requires the device to suspend operation during online upgrade, which will cause network interruption, especially when updating key equipment, which will have a great impact on business. In the method of secure online upgrade of FPGA configuration file in fiber channel network node device, the FPGA of the node device cannot be stopped during the upgrade process, which will interrupt the normal data flow transmission of the device and affect the normal operation of the device. At the same time, the upgrade efficiency is low. Each upgrade can only send data through the host computer and write it into a sub-card through the PCIE port, which cannot realize the simultaneous online upgrade of multiple nodes in the network. Summary of the invention
[0008] In view of the defects and shortcomings of the prior art, according to the first aspect of the present invention, a method for online upgrading of FPGA configuration files of node devices based on a fiber channel network is proposed, comprising the following steps:
[0009] Two flashes of the configuration node device are respectively a configuration flash and a program flash. The configuration flash is used to store the register default configuration file read by the logic after power-on initialization, and the program flash is used to store the program version loaded after the FPGA is powered on;
[0010] In an FC switching network, when a flash configuration file of a destination end connected to an FC switch is updated through a source end connected to an FC switch, an online upgrade process of the FPGA configuration file is initiated between the source end and the destination end, and the online upgrade process does not suspend or interrupt normal data flow transmission and reception;
[0011] Among them, the source end is configured to send fc data frames to one or more destination ends at the same time, and based on the response of requests and responses between the two, the configuration flash and program flash of one or more destination ends are upgraded online at the same time, and after the upgrade is completed, the destination end that completes the online upgrade of the configuration file will load the updated updata version configuration file after the next power-on.
[0012] As an optional implementation, the configuration flash and the program flash are both configured with different storage areas, respectively storing the golden version configuration file and the update version configuration file, the golden version configuration file is the default version file at power-on initialization, and the update version configuration file is the version file for online upgrade;
[0013] Among them, when no online upgrade occurs, the storage area corresponding to the update version configuration file in the configuration flash and program flash is empty; and when the FPGA configuration file is upgraded online to at least one or more destination ends through the source end, the online upgraded configuration file version is only written to the storage area of the update version configuration file.
[0014] As an optional implementation manner, the request and response between the two refers to the request and response between the source end and the destination end, including:
[0015] Start application, representing the source end's request for flash update, corresponding to the start application els frame;
[0016] Start response, which represents the destination's response to the start request, and corresponds to the start response els frame;
[0017] Run application, which means the source end starts writing data, corresponding to the run application els frame;
[0018] Run response, which represents the destination's response to the run request, corresponds to the run response els frame;
[0019] Stop application, representing the flash update stop request, corresponding to stop applying for els frame;
[0020] Stop response, indicating that the flash update stops responding, corresponding to the stop response els frame.
[0021] As an optional implementation, the source end and the destination end start the online upgrade process of the FPGA configuration file, including:
[0022] The source sends an ELS data frame to start updating, writes the source ID and destination ID in the FC frame header, writes the data content that matches the start application field in the ELS frame header, sends it out through the FC module at the source, and sends it to the destination through the FC switch according to the destination ID;
[0023] The destination receives the data frame through the fc module, and parses the frame content through its rx_top module. After the parsing is completed, it forms a start response els frame according to the actual local status of the destination, and packages it into a protocol frame that complies with the fc protocol through the tx_top module. It is sent out through the fc module of the destination and sent to the source through the fc switch;
[0024] If the source end parses the content of the start response els frame and finds that it can operate the destination end flash, the source end further sends an operation request els frame to the destination end, indicating that the source end starts to write data; the destination end receives the data frame and parses the frame content in the rx_top module, writes all the updated data into the destination end flash, and after completing the operation, forms an operation response els frame, which is packaged into a protocol frame that complies with the fc protocol through the tx_top module, sent out through the destination end fc module, and sent to the source end through the fc switch;
[0025] Among them, when the source end cannot continue to update the flash configuration file or all the update data is written, the source end sends a stop application ELS frame to the destination end, indicating an update stop request; the destination end receives the data frame and parses the frame content in the rx_top module, then sends a stop response ELS frame, indicating an update stop response, which is packaged into a protocol frame that complies with the FC protocol through the tx_top module, sent out through the FC module of the destination end, and sent to the source end through the FC switch.
[0026] As an optional implementation, when the source end needs to write to the flash in multiple times, the process of applying and responding will be repeated in a loop.
[0027] As an optional implementation, the fc frame header defines the frame type, source ID, and destination ID information.
[0028] As an optional implementation, the els frame header defines the following field attributes:
[0029] The role field indicates whether the master port comes from the host computer or the node device on the network.
[0030] Action field, indicating whether this frame is a request or a response;
[0031] The offset field indicates how many 4B data the current frame contains;
[0032] Verification field, where the user defines the password and performs a policy operation with the target end's password. The operation will continue only if the passwords match.
[0033] The function id field defines six different functional services, namely, start application, start response, run application, run response, stop application and stop response;
[0034] The four attribute fields represent different contents defined according to the six different functional services.
[0035] As an optional implementation, the relationship between the function id field and the four attribute fields is defined as follows:
[0036] a) Start application, which represents the source end's request for flash update, where the configuration length represents the total length of data in the flash to be updated, and the configuration mode represents whether the update is to select configuration flash or program flash;
[0037] b) Startup response, which represents the target end's response to the startup request. It defines one more status field than the startup request, which represents the status of the currently selected flash, that is, whether data has been written and the location where the write pointer last stopped;
[0038] c) Run application, which means the source starts writing data. The end flag field indicates whether this frame is the last frame to be written. After writing this frame of data, all updated data will be sent. The data length field indicates the effective updated data length in the current frame. The command field indicates whether the current operation is to write data or read data. When the operation is to read data, the data field will become a status field, indicating the read pointer, that is, the address in the read falsh. The data field represents the updated data.
[0039] d) Operation response, which represents the destination end's response to the operation request, in which the meanings of the end flag field, data length field, and command field are the same as those in the operation request; the data / status field represents the data read or the location pointed to by the pointer after the write is completed;
[0040] e) Stop application, which represents the update stop request initiated by the source end, where the cumulative length field represents the cumulative sum of the length of data that has been written to the flash up to the current time, and the checksum field represents the checksum of all the data that has been written;
[0041] f) Stop response, representing the update stop response sent by the destination end, where the cumulative length field and the check field have the same meaning as the fields in the stop request, and the status field represents the location where the current write flash pointer stays.
[0042] As an optional implementation manner, the online upgrade process further includes at least one of the following operations:
[0043] Upgrade suspension;
[0044] Read data at any location and verify the flash configuration file;
[0045] Write the updated data to any location to update the flash configuration file.
[0046] It should be understood that all combinations of the aforementioned concepts and the additional concepts described in more detail below can be considered as part of the inventive subject matter of the present disclosure as long as such concepts are not mutually inconsistent. In addition, all combinations of the claimed subject matter are considered as part of the inventive subject matter of the present disclosure.
[0047] The foregoing and other aspects, embodiments and features of the present invention can be more fully understood from the following description in conjunction with the accompanying drawings. Other additional aspects of the present invention, such as the features and / or beneficial effects of the exemplary embodiments, will be apparent from the following description or learned from the practice of the specific embodiments according to the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] The accompanying drawings are not intended to be drawn to scale. In the accompanying drawings, each identical or nearly identical component shown in each figure may be represented by the same reference numeral. For clarity, not every component is labeled in each figure. Embodiments of various aspects of the present invention will now be described by way of example and with reference to the accompanying drawings.
[0049] Figure 1 It is a system schematic diagram of upgrading the FPGA configuration file of the FC node device according to an embodiment of the present invention.
[0050] Figure 2 It is a connection topology diagram of FC switching network node devices according to an embodiment of the present invention.
[0051] Figure 3 4 is a diagram of the structure of an fc frame header according to an embodiment of the present invention.
[0052] Figure 4 1 is a diagram of the structure of an els frame header according to an embodiment of the present invention.
[0053] Figure 5 is a frame structure diagram of an interactive frame according to an embodiment of the present invention. DETAILED DESCRIPTION
[0054] In order to better understand the technical content of the present invention, specific embodiments are given and described as follows in conjunction with the accompanying drawings.
[0055] Various aspects of the present invention are described in this disclosure with reference to the accompanying drawings, in which many illustrative embodiments are shown. The embodiments of the present disclosure are not necessarily intended to include all aspects of the present invention. It should be understood that the various concepts and embodiments introduced above, as well as those described in more detail below, can be implemented in any of many ways, because the concepts and embodiments disclosed by the present invention are not limited to any implementation. In addition, some aspects disclosed by the present invention can be used alone or in any appropriate combination with other aspects disclosed by the present invention.
[0056] Combination Figure 1 to Figure 5 The example shown, according to the method for online upgrading of node device FPGA configuration files based on a fiber channel network proposed by the present invention, comprises the following steps:
[0057] The two flashes of the configuration node device are configuration flash and program flash. The configuration flash is used to store the default configuration file of the registers read by the logic after power-on initialization, and the program flash is used to store the program version loaded after the FPGA is powered on.
[0058] In an FC switching network, when a flash configuration file of a destination end connected to an FC switch is updated through a source end connected to an FC switch, an online upgrade process of the FPGA configuration file is initiated between the source end and the destination end, and the online upgrade process does not suspend or interrupt normal data flow transmission and reception;
[0059] Among them, the source end is configured to send fc data frames to one or more destination ends at the same time. Based on the response of requests and responses between the two, the configuration flash and program flash of one or more destination ends are upgraded online at the same time. After the upgrade is completed, the destination end that completes the online upgrade of the configuration file will load the updated updata version configuration file after the next power-on.
[0060] As an optional implementation, multiple source ends connected to the FC switch are configured to perform online upgrades of FPGA configuration files to a single destination end connected to the FC switch respectively, and only after one of the source ends completes the upgrade of the single destination end, another source end is allowed to start operation.
[0061] As an optional implementation, two versions are provided in both flashes for use as backup.
[0062] Among them, different storage areas are configured in the configuration flash and the program flash, respectively storing the golden version configuration file and the update version configuration file. The golden version configuration file is the default version file at power-on initialization, and the update version configuration file is the version file for online upgrade.
[0063] Among them, when no online upgrade occurs, the storage area corresponding to the update version configuration file in the configuration flash and program flash is empty; and when the FPGA configuration file is upgraded online to at least one or more destination ends through the source end, the online upgraded configuration file version is only written to the storage area of the update version configuration file.
[0064] As an optional implementation, the aforementioned request and response between the two refers to the request and response between the source end and the destination end, including:
[0065] Start application, representing the source end's request for flash update, corresponding to the start application els frame;
[0066] Start response, which represents the destination's response to the start request, and corresponds to the start response els frame;
[0067] Run application, which means the source end starts writing data, corresponding to the run application els frame;
[0068] Run response, which represents the destination's response to the run request, corresponds to the run response els frame;
[0069] Stop application, representing the flash update stop request, corresponding to stop applying for els frame;
[0070] Stop response, indicating that the flash update stops responding, corresponding to the stop response els frame.
[0071] As an optional implementation, the source end and the destination end start the online upgrade process of the FPGA configuration file, including:
[0072] The source sends an ELS data frame to start updating, writes the source ID and destination ID in the FC frame header, writes the data content that matches the start application field in the ELS frame header, sends it out through the FC module at the source, and sends it to the destination through the FC switch according to the destination ID;
[0073] The destination receives the data frame through the fc module, and parses the frame content through its rx_top module. After the parsing is completed, it forms a start response els frame according to the actual local status of the destination, and packages it into a protocol frame that complies with the fc protocol through the tx_top module. It is sent out through the fc module of the destination and sent to the source through the fc switch;
[0074] If the source end parses the content of the start response els frame and finds that it can operate the destination end flash, the source end further sends an operation request els frame to the destination end, indicating that the source end starts to write data; the destination end receives the data frame and parses the frame content in the rx_top module, writes all the updated data into the destination end flash, and after completing the operation, forms an operation response els frame, which is packaged into a protocol frame that complies with the fc protocol through the tx_top module, sent out through the destination end fc module, and sent to the source end through the fc switch;
[0075] Among them, when the source end cannot continue to update the flash configuration file or all the update data is written, the source end sends a stop application ELS frame to the destination end, indicating an update stop request; the destination end receives the data frame and parses the frame content in the rx_top module, then sends a stop response ELS frame, indicating an update stop response, which is packaged into a protocol frame that complies with the FC protocol through the tx_top module, sent out through the FC module of the destination end, and sent to the source end through the FC switch.
[0076] As an optional implementation, when the source end needs to write to the flash in multiple times, the process of applying and responding will be repeated in a loop.
[0077] As an optional implementation, combining Figure 3 As shown, the fc frame header defines the frame type, source ID, and destination ID information.
[0078] As an optional implementation, combining Figure 4 As shown, the ELS frame header defines the following field attributes:
[0079] The role field indicates whether the master port comes from the host computer or the node device on the network.
[0080] Action field, indicating whether this frame is a request or a response;
[0081] The offset field indicates how many 4B data the current frame contains;
[0082] Verification field, where the user defines the password and performs a policy operation with the target end's password. The operation will continue only if the passwords match.
[0083] The function id field defines six different functional services, namely, start application, start response, run application, run response, stop application and stop response;
[0084] The four attribute fields represent different contents defined according to the six different functional services.
[0085] Combination Figure 3 , 4 As shown in Figure 5, the relationship between the function id field and the four attribute fields is defined as follows:
[0086] a) Start application, which represents the source end's request for flash update, where the configuration length represents the total length of data in the flash to be updated, and the configuration mode represents whether the update is to select configuration flash or program flash;
[0087] b) Startup response, which represents the target end's response to the startup request. It defines one more status field than the startup request, which represents the status of the currently selected flash, that is, whether data has been written and the location where the write pointer last stopped;
[0088] c) Run application, which means the source starts writing data. The end flag field indicates whether this frame is the last frame to be written. After writing this frame of data, all updated data will be sent. The data length field indicates the effective updated data length in the current frame. The command field indicates whether the current operation is to write data or read data. When the operation is to read data, the data field will become a status field, indicating the read pointer, that is, the address in the read falsh. The data field represents the updated data.
[0089] d) Operation response, which represents the destination end's response to the operation request, in which the meanings of the end flag field, data length field, and command field are the same as those in the operation request; the data / status field represents the data read or the location pointed to by the pointer after the write is completed;
[0090] e) Stop application, which represents the update stop request initiated by the source end, where the cumulative length field represents the cumulative sum of the length of data that has been written to the flash up to the current time, and the checksum field represents the checksum of all the data that has been written;
[0091] f) Stop response, representing the update stop response sent by the destination end, where the cumulative length field and the check field have the same meaning as the fields in the stop request, and the status field represents the location where the current write flash pointer stays.
[0092] As an optional implementation manner, the online upgrade process further includes at least one of the following operations:
[0093] Upgrade suspension;
[0094] Read data at any location and verify the flash configuration file;
[0095] Write the updated data to any location to update the flash configuration file.
[0096] Therefore, the online FPGA configuration file upgrade method proposed by the present invention supports upgrade pause, reading any position for verification, and writing any position for update. Compared with the traditional method, it can realize that the data frame of online upgrade will not affect the normal data flow transmission and reception, and the upgrade process is more flexible, which is conducive to controlling the progress of the upgrade and the update completion status and verification, and ensuring the integrity of the upgrade.
[0097] In combination with the implementation of the above aspects, the online upgrade method of the node device FPGA configuration file based on the fiber channel network proposed by the present invention can realize the online upgrade of the flash configuration file of one or more destinations by the source end in the FC network at the same time when the configuration file stored in the flash of the FPGA is upgraded online, and support the upgrade of the flash configuration file of a single destination end by multiple source ends at the same time, and the upgraded data frame will not affect the normal data flow transmission and reception, improve the efficiency and integrity of FC data communication, and complete the synchronous online upgrade of the flash configuration file at the same time. When the online upgrade is completed, the source end will send a message to the host computer to notify that the online upgrade has been completed, and the updata version file will be loaded at the next power-on.
[0098] In some embodiments, the method proposed by the present invention supports both online upgrades of two flashes by the source end in the FC switching network and online upgrades of two flashes by the host computer based on the definition of the ELS frame and the request / response of the source end and the destination end. The process of updating the flash configuration file by the host computer Host is basically the same as the network update method. The difference is that when the host computer updates the flash configuration file, the ELS frame is directly sent by the host computer Host, parsed by the tx_top module in the FPGA chip, and then written into the configuration flash or the program flash accordingly to implement the configuration file update.
[0099] Although the present invention has been disclosed as above with preferred embodiments, it is not intended to limit the present invention. A person with ordinary knowledge in the technical field to which the present invention belongs may make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be determined by the definition of the claims.
Claims
1. A method for online upgrading of FPGA configuration files of node devices based on a fiber channel network, characterized in that: The following steps are involved: Two flashes of the configuration node device are respectively a configuration flash and a program flash. The configuration flash is used to store the register default configuration file read by the logic after power-on initialization, and the program flash is used to store the program version loaded after the FPGA is powered on; In an FC switching network, when a flash configuration file of a destination end connected to an FC switch is updated through a source end connected to an FC switch, an online upgrade process of the FPGA configuration file is initiated between the source end and the destination end, and the online upgrade process does not suspend or interrupt normal data flow transmission and reception; Among them, the source end is configured to send fc data frames to one or more destination ends at the same time, and based on the response of requests and responses between the two, the configuration flash and program flash of one or more destination ends are upgraded online at the same time, and after the upgrade is completed, the destination end that completes the online upgrade of the configuration file will load the updated updata version configuration file after the next power-on.
2. The method for online upgrading of node device FPGA configuration files based on fiber channel network according to claim 1, characterized in that: The multiple source ends connected to the FC switch are configured to perform online upgrade of the FPGA configuration file to a single destination end connected to the FC switch respectively, and only after one of the source ends completes the upgrade of the single destination end, the other source end is allowed to start the operation.
3. The method for online upgrading of node device FPGA configuration files based on fiber channel network according to claim 1, characterized in that: The configuration flash and program flash are both configured with different storage areas, which respectively store the golden version configuration file and the update version configuration file. The golden version configuration file is the default version file at power-on initialization, and the update version configuration file is the version file for online upgrade; Among them, when no online upgrade occurs, the storage area corresponding to the update version configuration file in the configuration flash and program flash is empty; and when the FPGA configuration file is upgraded online to at least one or more destination ends through the source end, the online upgraded configuration file version is only written to the storage area of the update version configuration file.
4. The method for online upgrading of node device FPGA configuration files based on fiber channel network according to claim 1, characterized in that: The request and response between the two refers to the request and response between the source end and the destination end, including: Start application, representing the source end's request for flash update, corresponding to the start application els frame; Start response, which represents the destination's response to the start request, and corresponds to the start response els frame; Run application, which means the source end starts writing data, corresponding to the run application els frame; Run response, which represents the destination's response to the run request, corresponds to the run response els frame; Stop application, representing the flash update stop request, corresponding to stop applying for els frame; Stop response, indicating that the flash update stops responding, corresponding to the stop response els frame.
5. The method for online upgrading of node device FPGA configuration files based on a fiber channel network according to any one of claims 1 to 4, characterized in that: The fpga configuration file online upgrade process is started between the source end and the destination end, including: The source sends an ELS data frame to start updating, writes the source ID and destination ID in the FC frame header, writes the data content that matches the start application field in the ELS frame header, sends it out through the FC module at the source, and sends it to the destination through the FC switch according to the destination ID; The destination receives the data frame through the fc module, and parses the frame content through its rx_top module. After the parsing is completed, it forms a start response els frame according to the actual local status of the destination, and packages it into a protocol frame that complies with the fc protocol through the tx_top module. It is sent out through the fc module of the destination and sent to the source through the fc switch; If the source end parses the content of the start response els frame and finds that it can operate the destination end flash, the source end further sends an operation request els frame to the destination end, indicating that the source end starts to write data; the destination end receives the data frame and parses the frame content in the rx_top module, writes all the updated data into the destination end flash, and after completing the operation, forms an operation response els frame, which is packaged into a protocol frame that complies with the fc protocol through the tx_top module, sent out through the destination end fc module, and sent to the source end through the fc switch; Among them, when the source end cannot continue to update the flash configuration file or all the update data is written, the source end sends a stop application ELS frame to the destination end, indicating an update stop request; the destination end receives the data frame and parses the frame content in the rx_top module, then sends a stop response ELS frame, indicating an update stop response, which is packaged into a protocol frame that complies with the FC protocol through the tx_top module, sent out through the FC module of the destination end, and sent to the source end through the FC switch.
6. The method for online upgrading of node device FPGA configuration files based on fiber channel network according to claim 5, characterized in that: When the source needs to write to the flash multiple times continuously, the process of applying and responding will be repeated in a loop.
7. The method for online upgrading of node device FPGA configuration files based on fiber channel network according to claim 5, characterized in that: The fc frame header defines the frame type, source id, and destination id information.
8. The method for online upgrading of node device FPGA configuration files based on fiber channel network according to claim 5, characterized in that: The els frame header defines the following attributes: The role field indicates whether the master port comes from the host computer or the node device on the network. Action field, indicating whether this frame is a request or a response; The offset field indicates how many 4B data the current frame contains; Verification field, where the user defines the password and performs a policy operation with the target end's password. The operation will continue only if the passwords match. The function id field defines six different functional services, namely, start application, start response, run application, run response, stop application, and stop response; The four attribute fields represent different contents defined according to the six different functional services.
9. The method for online upgrading of node device FPGA configuration files based on fiber channel network according to claim 8, characterized in that: The relationship between the function id field and the four attribute fields is defined as follows: a) Start application, which represents the source end's request for flash update, where the configuration length represents the total length of data in the flash to be updated, and the configuration mode represents whether the update is to select configuration flash or program flash; b) Startup response, which represents the target end's response to the startup request. It defines one more status field than the startup request, which represents the status of the currently selected flash, that is, whether data has been written and the location where the write pointer last stopped; c) Run application, which means the source starts writing data. The end flag field indicates whether this frame is the last frame to be written. After writing this frame of data, all update data will be sent. The data length field indicates the effective update data length in the current frame. The command field indicates whether the current operation is to write data or read data. When the operation is to read data, the data field will become a status field, indicating the read pointer, that is, the address in the read falsh. The data field represents the updated data; d) Operation response, which represents the destination end's response to the operation request, in which the meanings of the end flag field, data length field, and command field are the same as those in the operation request; the data / status field represents the data read or the location pointed to by the pointer after the write is completed; e) Stop application, which represents the update stop request initiated by the source end, where the cumulative length field represents the cumulative sum of the length of data that has been written to the flash up to the current time, and the checksum field represents the checksum of all the data that has been written; f) Stop response, representing the update stop response sent by the destination end, where the cumulative length field and the check field have the same meaning as the fields in the stop request, and the status field represents the location where the current write flash pointer stays.
10. The method for online upgrading of node device FPGA configuration files based on fiber channel network according to claim 5, characterized in that: During the upgrade process, at least one of the following operations is performed: Upgrade suspension; Read data at any location and verify the flash configuration file; Write the updated data to any location to update the flash configuration file.
Citation Information
Patent Citations
DSP and FPGA online upgrading method for embedded system
CN105373407A
FPGA (Field Programmable Gate Array) online upgrading method
CN115408035A
Safe online upgrading method for FPGA (Field Programmable Gate Array) configuration file in fiber channel network node equipment
CN116501354A
Soft processor-based image signal source and method for processing image signal
WO2016188344A1
Cited By
Configuration data online upgrading method and system for ANRIC818 digital video card
CN119248330A
Method and system for online upgrading of configuration data of ARINC818 digital video card
CN119248330B
