System and method for safely receiving and transmitting FC (Fiber Channel) data at high-speed port

By configuring the overflow water line and underflow water line in the FC communication system, which is divided into overflow area, underflow area and equalization area, and through the enable control of fifo, the problem of data transmission errors in traditional cross-clock domain design is solved. Secure data sending and receiving at high-speed ports is realized.

CN118535514AActive Publication Date: 2024-08-23NANJING QUANXIN CABLE TECH
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202410709636.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-08-23
Estimated Expiration
2044-06-03

AI Technical Summary

Technical Problem

In the FC communication topology, the traditional cross-clock domain design will cause data loss or data increase during long-term continuous sending and receiving work, resulting in valid data transmission errors.

Method used

A system for securely transmitting and receiving FC data at a high-speed port is designed. By configuring the overflow water line and underflow water line in the data storage area, it is divided into an overflow area, an underflow area and a balance area, and through the data volume and input of the fifo Precise control of the output enable signal ensures the correct transmission of valid data.

Benefits of technology

Through the above method, when there is a difference between the recovery clock and the logical clock, it is possible to ensure the safe transmission and reception of valid data, avoid data loss or abnormal transmission, and maintain the normal operation of the fifo.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535514A
    Figure CN118535514A
Patent Text Reader

Abstract

The invention provides a system and a method for safely receiving and transmitting FC (Fiber Channel) data at a high-speed port, and the system comprises the high-speed port which is used for receiving data, generating a high-speed port recovery clock, and transmitting the received data to a data receiving and transmitting module in a high-speed port recovery clock domain; the data transceiving module is used for converting the data into output data of a local logic clock domain; wherein the data receiving and transmitting module comprises a data storage area, a write-in control module and a read-out control module, the data storage area is composed of two clock domains, a high-speed port recovery clock is adopted in the write-in direction, and input data is high-speed port receiving data; and a local logic clock is adopted in the read-out direction and is used for controlling the data storage area to be output to a subsequent logic module. The data storage area is provided with an overflow area, an underflow area and a balance area, input and output enable of the fifo is accurately controlled through the data volume cached in the fifo and the data stream content of the current input and output fifo, and correct transmission of effective data and normal work of the fifo are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of FC network communication, and in particular to a system and method for safely sending and receiving FC data at a high-speed port, which can be applicable to an FC daughter card or an FC switch. 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 networks, arbitration ring communication networks, switched networks, etc., to achieve high-speed communication between node devices.

[0003] In the FC communication topology, node devices are usually configured with one or more Fibre Channel ports (FC ports) to access the FC network. In FC switches or FC daughter cards, high-speed ports are often used for data transmission and reception. To ensure normal data transmission and reception, the clock domain design usually used is:

[0004] Receiving direction: using the recovered clock of the high-speed port to receive data;

[0005] Sending direction: Use logical clock to send data.

[0006] The recovered clock comes from the frequency acquisition of the received data, which is related to the sending clock frequency of the data sender; the sending clock comes from the reference clock of this device. Because the recovered clock and the reference clock of this board have different sources, the problem of cross-clock domain needs to be considered at the high-speed port of the device.

[0007] In traditional system design, clock domain crossing is usually implemented in two ways: beating in the destination clock domain and using fifo for clock crossing. However, during the actual board test and verification process, we found that there is a slight difference in the frequency of the recovered clock in the receiving direction and the logical clock in the sending direction. When the traditional clock domain crossing solution is used, data loss or data increase may occur when the device is in long-term continuous transmission and reception. The reason is that in the traditional beating operation, when the device runs for a long time, as time accumulates, the slight difference in clock frequency will cause the destination clock domain clock to collect a beat of the source clock domain clock data, causing multiple sampling or missing sampling, resulting in errors; when the traditional fifo is used for cross-clock domain crossing, when the device runs for a long time, as time accumulates, the slight difference in clock frequency will cause the fifo to be empty or full, resulting in abnormal fifo read data. When the data anomaly occurs in the valid data interval, it will cause the valid data to be transmitted incorrectly. Summary of the invention

[0008] In view of the defects and shortcomings of the prior art, according to a first aspect of the present invention, a system for safely sending and receiving FC data at a high-speed port is provided, comprising:

[0009] A system for safely sending and receiving FC data at a high-speed port, characterized by comprising:

[0010] The high-speed port is configured to receive data and generate a high-speed port recovery clock, and transmit the received data to the data transceiver module in the high-speed port recovery clock domain;

[0011] The data transceiver module is configured to receive data transmitted by the high-speed port, convert it into output data in the logic clock domain of the board, and transmit it to the subsequent logic module;

[0012] The data transceiver module includes a data storage area, a write control module and a read control module:

[0013] The data storage area is composed of two clock domains: the write direction uses the high-speed port recovery clock to control the high-speed port to receive data and write it into the data storage area, and the input data is the high-speed port received data; the read direction uses the board logic clock to control the data storage area to be output to the subsequent logic module for use by the subsequent logic module;

[0014] The data storage area is configured with an upper overflow waterline and an underflow waterline, and the entire data storage area is divided into three parts according to the values ​​of the upper overflow waterline and the underflow waterline. The part exceeding the upper overflow waterline is the overflow area, the part below the underflow waterline is the underflow area, and the area between the upper overflow waterline and the underflow waterline is the balance area.

[0015] According to a second aspect of the present invention, a method for safely sending and receiving FC data at a high-speed port is provided, comprising the following steps:

[0016] Step 1: The high-speed port receives data sent by the opposite end based on the FC network, generates a high-speed port recovery clock, and transmits the received data to the write control module based on the high-speed port recovery clock;

[0017] Step 2: The amount of data in the data storage area is in the underflow area, the write enable signal of the write module is pulled high, and the data received by the high-speed port is continuously written into the data storage area; the read control module turns off the read enable, and the read control module outputs an IDLE signal to the subsequent logic processing module;

[0018] Step 3: The amount of data stored in the data storage area gradually increases with the increase of writing. When the data stored in the data storage area reaches the equilibrium area, the write enable signal of the write module is high, and the high-speed port receives data and continuously writes it into the data storage area; the read control module pulls up the read enable, and the read control module outputs the data in the data storage area to the subsequent logic processing module;

[0019] Step 4: As the working time increases, if the amount of data in the data storage area decreases to the underflow waterline, the read control module detects the read data in the data storage area. When the read data is in the valid data interval, the read enable signal of the data storage area is kept high, that is, the valid data value of the data storage area is continuously read; when the read data in the data storage area is IDLE, the read enable signal of the data storage area is pulled low, and the IDLE signal is output to the subsequent logic module at the same time, until the amount of data in the data storage area is restored to the balanced area, and then the read enable signal is pulled high;

[0020] If the amount of data in the data storage area increases to the overflow waterline, the write control module detects the output data of the high-speed port, and when the data received at the high-speed port is in the valid data interval, the write enable signal of the data storage area is kept high, that is, the valid data value is written to the data storage area; when the data received at the high-speed port is IDLE, the write enable signal of the data storage area is pulled down until the amount of data in the data storage area returns to the balanced area, and then the write enable signal is pulled high;

[0021] Repeat step 4 until the data transfer is completed.

[0022] According to a third aspect of the present invention, a method for safely sending and receiving FC data at a high-speed port is provided, comprising the following steps:

[0023] Step 1: The high-speed port receives data sent by the opposite end, generates a high-speed port recovery clock, and transmits the data to the write control module based on the high-speed port recovery clock;

[0024] Step 2: At this time, the amount of data in the data storage area is in the underflow area, the write control module write enable signal is pulled high, and the high-speed port receives data and continuously writes it into the data storage area; the read control module turns off the read enable, and the read module outputs an IDLE signal to the subsequent logic processing module;

[0025] Step 3: The amount of data in the data storage area gradually increases to the balanced area, the write control module write enable signal is high, and the high-speed port receives data and continuously writes it into the data storage area; the read control module pulls up the read enable, and the read control module outputs the data in the data storage area to the subsequent logic processing module;

[0026] Step 4: When the high-speed port recovery clock frequency is lower than the board logic clock frequency, that is, the data writing speed is lower than the data reading speed, as the working time increases, the amount of data in the data storage area gradually decreases to the underflow waterline, and the read control module detects the read data in the data storage area:

[0027] When the read data is in the valid data interval, the read enable signal of the data storage area is kept high, that is, the valid data value of the data storage area is continuously read;

[0028] When the read data of the data storage area is IDLE, the read enable signal of the data storage area is pulled low, and the IDLE signal is output to the subsequent logic module at the same time, until the data amount of the data storage area is restored to the balanced area, and then the read enable signal is pulled high;

[0029] Repeat step 4 until the data transfer is completed.

[0030] According to a fourth aspect of the present invention, a method for safely sending and receiving FC data at a high-speed port is provided, comprising the following steps:

[0031] Step 1: The high-speed port receives data sent by the opposite end, generates a high-speed port recovery clock, and transmits the data to the write control module based on the high-speed port recovery clock;

[0032] Step 2: At this time, the amount of data in the data storage area is in the underflow area, the write control module write enable signal is pulled high, and the high-speed port receives data and continuously writes it into the data storage area; the read control module turns off the read enable, and the read control module outputs an IDLE signal to the subsequent logic processing module;

[0033] Step 3: The amount of data in the data storage area gradually increases to the balanced area, the write control module write enable signal is high, and the high-speed port receives data and continuously writes it into the data storage area; the read control module pulls up the read enable, and the read control module outputs the data in the data storage area to the subsequent logic processing module;

[0034] Step 4: When the high-speed port recovery clock frequency is greater than the board logic clock frequency, that is, the data writing speed is higher than the data reading speed, as the working time increases, the amount of data in the data storage area gradually increases to the overflow waterline, and the write control module detects the high-speed port output data:

[0035] When the data received at the high-speed port is in the valid data interval, the write enable signal of the data storage area is kept high, that is, the valid data value is written to the data storage area;

[0036] When the data received at the high-speed port is IDLE, the write enable signal of the data storage area is pulled low until the amount of data in the data storage area is restored to the balanced area, and then the write enable signal is pulled high;

[0037] Repeat step 4 until the data transfer is completed.

[0038] According to a fifth aspect of the present invention, there is provided a method for safely sending and receiving FC data at a high-speed interface, comprising the following steps:

[0039] Step 1: The high-speed port receives data sent by the opposite end, generates a high-speed port recovery clock, and transmits the data to the write control module based on the high-speed port recovery clock;

[0040] Step 2: At this time, the amount of data in the data storage area is in the underflow area, the write control module write enable signal is pulled high, and the high-speed port receives data and continuously writes it into the data storage area; the read control module turns off the read enable, and the read control module outputs an IDLE signal to the subsequent logic processing module;

[0041] Step 3: The amount of data stored in the data storage area gradually increases to the balance area, the write control module write enable signal is pulled high, and the high-speed port receives data and continuously writes it into the data storage area; the read control module pulls high the read enable, and the read module outputs the data in the data storage area to the subsequent logic processing module;

[0042] Step 4: Since the high-speed port recovery clock frequency is equal to the logic clock frequency of this board, that is, the data writing speed is equal to the data reading speed, the data volume in the data storage area will be kept in the balanced area, and the read and write enables of the data storage area are pulled high at the same time until the data transmission is completed.

[0043] In combination with the above embodiments of the present invention, according to the system and method for safely transmitting and receiving FC data at a high-speed port proposed by the present invention, the traditional fifo design is optimized, the overflow waterline and the underflow waterline are designed, the overflow area, the underflow area and the equalization area are configured, and the input and output enable of the fifo are accurately controlled by the amount of data cached in the fifo and the data flow content currently input and output to the fifo, so as to ensure the correct transmission of valid data and the normal operation of the fifo. Through the board verification, long-term data transmission and reception when the recovery clock is different from the logic clock of the board can ensure the effective and safe transmission and reception of valid data.

[0044] 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.

[0045] 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

[0046] 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.

[0047] Figure 1 4 is a schematic diagram of the FC data flow structure according to an embodiment of the present invention.

[0048] Figure 2 is a schematic diagram of a system for securely sending and receiving FC data at a high-speed interface according to an embodiment of the present invention.

[0049] Figure 3 It is a schematic diagram of a data storage area in a system for securely sending and receiving FC data at a high-speed port according to an embodiment of the present invention. DETAILED DESCRIPTION

[0050] 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.

[0051] 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.

[0052] High-speed port safe transmission and reception of FC data system

[0053] Combination Figure 1 , 2 As shown in 3, a system for safely sending and receiving FC data at a high-speed port according to an embodiment of the present invention includes a high-speed port, a data sending and receiving module, and a subsequent logic module.

[0054] The high-speed port is configured to receive data and generate a high-speed port recovery clock, and transmit the received data to the data transceiver module in the high-speed port recovery clock domain.

[0055] The data transceiver module is configured to receive data transmitted by the high-speed port, convert it into output data in the logic clock domain of this board, and transmit it to the subsequent logic module.

[0056] Combination Figure 3 As shown, the data transceiver module includes a data storage area, a write control module and a read control module.

[0057] The data storage area is composed of two clock domains: the write direction uses the high-speed port recovery clock to control the high-speed port to receive data and write it into the data storage area, and the input data is the high-speed port received data; the read direction uses the logic clock of this board to control the output of the data storage area to the subsequent logic module for use by the subsequent logic module.

[0058] The data storage area is configured with an upper overflow waterline and an underflow waterline, and the entire data storage area is divided into three parts according to the values ​​of the upper overflow waterline and the underflow waterline. The part exceeding the upper overflow waterline is the overflow area, the part below the underflow waterline is the underflow area, and the area between the upper overflow waterline and the underflow waterline is the balance area.

[0059] As an optional embodiment, the overflow area, the underflow area and the equalization area are all configured to store at least one frame of FC data. The overflow watermark is set to the total storage amount of the data storage area minus 2148B, and the underflow watermark is set to 2148B, thereby dividing the overflow area and the underflow area. Furthermore, the storage amount between the overflow watermark and the underflow watermark is the equalization area.

[0060] Combination Figure 1The FC data stream structure in transmission is shown in FIG. According to the FC protocol, the FC data stream in transmission contains valid data and non-valid data.

[0061] Valid data refers to all data except IDLE primitive, including data frame, clock primitive, RRDY, OLS, NOS, LR, LRR and other signals;

[0062] Non-valid data is the IDLE primitive.

[0063] The FC protocol stipulates that the valid data frame length range is 36-2148B, and the data frames are separated by at least 6 primitive signals including IDLE.

[0064] Data read and write control

[0065] Combination Figure 2 , 3 As shown, the data transceiver module includes a data storage area, a write control module and a read control module.

[0066] The data storage area consists of two clock domains. The write direction uses the high-speed port recovery clock, and the input data is the high-speed port receiving data. The read direction uses the logic clock of this board, and the output data is passed to the subsequent logic module for use.

[0067] According to the upper overflow waterline and the lower overflow waterline values, the entire data storage area is divided into three parts. The part exceeding the upper overflow waterline is the overflow area, the part below the lower overflow waterline is the underflow area, and the area between the upper and lower overflow waterlines is the balance area.

[0068] In an embodiment of the present invention, considering that the maximum valid data frame length of the FC frame is 2148B, the overflow area, underflow area and balance area all need to be able to store at least one frame of data, so the effective storage capacity of the data storage area is set to be greater than or equal to 6444B (i.e. 2148B*3).

[0069] Overflow water line configuration:

[0070] Since the maximum valid data frame of the FC frame is 2148B, when the capacity of the data storage area is at the overflow waterline, if the input data is at the beginning of the valid data, in order to ensure the continuity of the valid data, the write control module will continue to pull up the write enable signal. In this extreme case, the design of the overflow waterline needs to ensure that the overflow area can store at least one frame of data. Therefore, in an embodiment of the present invention, the overflow waterline is designed to be the total storage capacity of the data storage area minus 2148B.

[0071] Overflow water line configuration:

[0072] Since the maximum valid data frame of the FC frame is 2148B, when the capacity of the data storage area is at the underflow waterline, if the read data of the data storage area is at the beginning of the valid data, in order to ensure the continuity of the valid data, the read control module will continue to pull up the read enable signal. In this extreme case, the design of the underflow waterline needs to ensure that the underflow area can store at least one frame of data. Therefore, in the embodiment of the present invention, the underflow waterline is designed to be 2148B.

[0073] Write Control

[0074] Combination Figure 2 , 3 In the example shown, the write control module is configured to control the high-speed port to receive data and write it into the data storage area in the high-speed port recovery clock domain, wherein:

[0075] When the amount of data in the data storage area is in the balanced area or the underflow area, the write enable signal of the data storage area is kept high, that is, data is continuously written to the data storage area;

[0076] When the data volume of the data storage area is in the overflow area, the non-valid data input from the high-speed port is discarded and not written into the data storage area until the data volume of the data storage area is restored to the balanced area, and then the data write enable of the data storage area is restored.

[0077] As an example, the specific operation of write control is as follows:

[0078] When the data volume of the data storage area is in the balance area or the underflow area, the write enable signal of the data storage area is kept high, that is, data is continuously written to the data storage area, and the written data includes valid data and invalid data received by the high-speed port.

[0079] When the amount of data in the data storage area is higher than the overflow waterline, that is, the amount of data is in the overflow area of ​​the data storage area, when the data received at the high-speed port is in the valid data interval, the write enable signal of the data storage area is kept high, that is, the valid data value is written to the data storage area; when the data received at the high-speed port is in the non-valid data interval, that is, when the data received at the high-speed port is the IDLE value, the write enable signal of the data storage area is pulled low, that is, the non-valid data IDLE value is not stored in the data storage area, until the amount of data in the data storage area is restored to the balance area.

[0080] Readout control

[0081] Combination Figure 3 The readout control module is configured to control the output of data in the data storage area to the subsequent logic module in the logic clock domain of the board, wherein:

[0082] When the amount of data in the data storage area is in the balanced area or the overflow area, the read enable signal of the data storage area is kept high, that is, the data stored in the data storage area is continuously output to the subsequent logic module;

[0083] When the amount of data in the data storage area is in the underflow area, when the data read out of the data storage area is in the non-valid data area, the read enable is pulled low, that is, the data in the data storage area is not read out, and the IDLE signal is output to the subsequent logic module until the amount of data in the data storage area is restored to the balance area, and then the data read enable of the data storage area is restored.

[0084] As an example, the specific operations are as follows:

[0085] When the data volume of the data storage area is in the balanced area or the overflow area, the read enable signal of the data storage area is kept high, that is, the data of the data storage area is continuously read out, and the read data includes valid data and invalid data.

[0086] When the amount of data in the data storage area is lower than the underflow waterline, that is, the amount of data is in the underflow area of ​​the data storage area, when the read data in the data storage area is in the valid data interval, the read enable signal of the data storage area is kept high, that is, the valid data value of the data storage area is continuously read; when the read data in the data storage area is in the non-valid data interval, that is, when the read data in the data storage area is the IDLE value, the read enable signal of the data storage area is pulled low, and the IDLE signal is output to the subsequent logic module at the same time until the amount of data in the data storage area is restored to the balance area.

[0087] Method for safely sending and receiving FC data at high-speed ports

[0088] Combination Figure 2 , 3 As shown, based on the system for safely sending and receiving FC data at a high-speed port in the above-mentioned embodiment, the method for safely sending and receiving FC data at a high-speed port includes the following steps:

[0089] Step 1: The high-speed port receives data sent by the opposite end based on the FC network, generates a high-speed port recovery clock, and transmits the received data to the write control module based on the high-speed port recovery clock;

[0090] Step 2: The amount of data in the data storage area is in the underflow area, the write enable signal of the write module is pulled high, and the data received by the high-speed port is continuously written into the data storage area; the read control module turns off the read enable, and the read control module outputs an IDLE signal to the subsequent logic processing module;

[0091] Step 3: The amount of data stored in the data storage area gradually increases with the increase of writing. When the data stored in the data storage area reaches the equilibrium area, the write enable signal of the write module is high, and the high-speed port receives data and continuously writes it into the data storage area; the read control module pulls up the read enable, and the read control module outputs the data in the data storage area to the subsequent logic processing module;

[0092] Step 4: As the working time increases, if the amount of data in the data storage area decreases to the underflow waterline, the read control module detects the read data in the data storage area. When the read data is in the valid data interval, the read enable signal of the data storage area is kept high, that is, the valid data value of the data storage area is continuously read; when the read data in the data storage area is IDLE, the read enable signal of the data storage area is pulled low, and the IDLE signal is output to the subsequent logic module at the same time, until the amount of data in the data storage area is restored to the balanced area, and then the read enable signal is pulled high;

[0093] If the amount of data in the data storage area increases to the overflow waterline, the write control module detects the output data of the high-speed port, and when the data received at the high-speed port is in the valid data interval, the write enable signal of the data storage area is kept high, that is, the valid data value is written to the data storage area; when the data received at the high-speed port is IDLE, the write enable signal of the data storage area is pulled down until the amount of data in the data storage area returns to the balanced area, and then the write enable signal is pulled high;

[0094] Repeat step 4 until the data transfer is completed.

[0095] Therefore, the high-speed port data security receiving and sending method according to the above scheme can be applicable to four situations: the high-speed port recovery clock frequency is less than the logic clock frequency of the board, the high-speed port recovery clock frequency is greater than the logic clock frequency of the board, the high-speed port recovery clock frequency is equal to the logic clock frequency of the board, and the high-speed port recovery clock frequency is unstable. The input and output enable of the fifo is precisely controlled by the amount of data cached in the fifo and the data flow content of the current input and output of the fifo, ensuring the correct transmission of valid data and the normal operation of the fifo, thereby realizing effective and safe data reception and sending.

[0096] When the high-speed port recovery clock frequency is lower than the board logic clock frequency, the above system works as follows:

[0097] Step 1: The high-speed port receives data sent by the opposite end, generates a high-speed port recovery clock, and transmits the data to the write control module based on the high-speed port recovery clock;

[0098] Step 2: At this time, the amount of data in the data storage area is in the underflow area, the write control module write enable signal is pulled high, and the high-speed port receives data and continuously writes it into the data storage area; the read control module turns off the read enable, and the read module outputs an IDLE signal to the subsequent logic processing module;

[0099] Step 3: The amount of data in the data storage area gradually increases to the balanced area, the write control module write enable signal is high, and the high-speed port receives data and continuously writes it into the data storage area; the read control module pulls up the read enable, and the read control module outputs the data in the data storage area to the subsequent logic processing module;

[0100] Step 4: When the high-speed port recovery clock frequency is lower than the board logic clock frequency, that is, the data writing speed is lower than the data reading speed, as the working time increases, the amount of data in the data storage area gradually decreases to the underflow waterline, and the read control module detects the read data in the data storage area:

[0101] When the read data is in the valid data interval, the read enable signal of the data storage area is kept high, that is, the valid data value of the data storage area is continuously read;

[0102] When the read data of the data storage area is IDLE, the read enable signal of the data storage area is pulled low, and the IDLE signal is output to the subsequent logic module at the same time, until the data amount of the data storage area is restored to the balanced area, and then the read enable signal is pulled high;

[0103] Repeat step 4 until the data transfer is completed.

[0104] When the high-speed port recovery clock frequency is greater than the board logic clock frequency, the above system works as follows:

[0105] Step 1: The high-speed port receives data sent by the opposite end, generates a high-speed port recovery clock, and transmits the data to the write control module based on the high-speed port recovery clock;

[0106] Step 2: At this time, the amount of data in the data storage area is in the underflow area, the write control module write enable signal is pulled high, and the high-speed port receives data and continuously writes it into the data storage area; the read control module turns off the read enable, and the read control module outputs an IDLE signal to the subsequent logic processing module;

[0107] Step 3: The amount of data in the data storage area gradually increases to the balanced area, the write control module write enable signal is high, and the high-speed port receives data and continuously writes it into the data storage area; the read control module pulls up the read enable, and the read control module outputs the data in the data storage area to the subsequent logic processing module;

[0108] Step 4: When the high-speed port recovery clock frequency is greater than the board logic clock frequency, that is, the data writing speed is higher than the data reading speed, as the working time increases, the amount of data in the data storage area gradually increases to the overflow waterline, and the write control module detects the high-speed port output data:

[0109] When the data received at the high-speed port is in the valid data interval, the write enable signal of the data storage area is kept high, that is, the valid data value is written to the data storage area;

[0110] When the data received at the high-speed port is IDLE, the write enable signal of the data storage area is pulled low until the amount of data in the data storage area is restored to the balanced area, and then the write enable signal is pulled high;

[0111] Repeat step 4 until the data transfer is completed.

[0112] When the high-speed port recovery clock frequency is equal to the board logic clock frequency, the above system works as follows:

[0113] Step 1: The high-speed port receives data sent by the opposite end, generates a high-speed port recovery clock, and transmits the data to the write control module based on the high-speed port recovery clock;

[0114] Step 2: At this time, the amount of data in the data storage area is in the underflow area, the write control module write enable signal is pulled high, and the high-speed port receives data and continuously writes it into the data storage area; the read control module turns off the read enable, and the read control module outputs an IDLE signal to the subsequent logic processing module;

[0115] Step 3: The amount of data stored in the data storage area gradually increases to the balance area, the write control module write enable signal is pulled high, and the high-speed port receives data and continuously writes it into the data storage area; the read control module pulls high the read enable, and the read module outputs the data in the data storage area to the subsequent logic processing module;

[0116] Step 4: Since the high-speed port recovery clock frequency is equal to the logic clock frequency of this board, that is, the data writing speed is equal to the data reading speed, the data volume in the data storage area will be kept in the balanced area, and the read and write enables of the data storage area are pulled high at the same time until the data transmission is completed.

[0117] When the high-speed port recovery clock frequency is unstable, the above system works as follows:

[0118] Step 1: The high-speed port receives data sent by the opposite end based on the FC network, generates a high-speed port recovery clock, and transmits the received data to the write control module based on the high-speed port recovery clock;

[0119] Step 2: The amount of data in the data storage area is in the underflow area, the write enable signal of the write module is pulled high, and the data received by the high-speed port is continuously written into the data storage area; the read control module turns off the read enable, and the read control module outputs an IDLE signal to the subsequent logic processing module;

[0120] Step 3: The amount of data stored in the data storage area gradually increases with the increase of writing. When the data stored in the data storage area reaches the equilibrium area, the write enable signal of the write module is high, and the high-speed port receives data and continuously writes it into the data storage area; the read control module pulls up the read enable, and the read control module outputs the data in the data storage area to the subsequent logic processing module;

[0121] Step 4: As the working time increases, if the amount of data in the data storage area decreases to the underflow waterline, the read control module detects the read data in the data storage area. When the read data is in the valid data interval, the read enable signal of the data storage area is kept high, that is, the valid data value of the data storage area is continuously read; when the read data in the data storage area is IDLE, the read enable signal of the data storage area is pulled low, and the IDLE signal is output to the subsequent logic module at the same time, until the amount of data in the data storage area is restored to the balanced area, and then the read enable signal is pulled high;

[0122] If the amount of data in the data storage area increases to the overflow waterline, the write control module detects the output data of the high-speed port, and when the data received at the high-speed port is in the valid data interval, the write enable signal of the data storage area is kept high, that is, the valid data value is written to the data storage area; when the data received at the high-speed port is IDLE, the write enable signal of the data storage area is pulled down until the amount of data in the data storage area returns to the balanced area, and then the write enable signal is pulled high;

[0123] Repeat step 4 until the data transfer is completed.

[0124] 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 system for safely sending and receiving FC data at a high-speed port, characterized in that: include: The high-speed port is configured to receive data and generate a high-speed port recovery clock, and transmit the received data to the data transceiver module in the high-speed port recovery clock domain; The data transceiver module is configured to receive data transmitted by the high-speed port, convert it into output data in the logic clock domain of the board, and transmit it to the subsequent logic module; The data transceiver module includes a data storage area, a write control module and a read control module: The data storage area is composed of two clock domains: the write direction uses the high-speed port recovery clock to control the high-speed port to receive data and write it into the data storage area, and the input data is the high-speed port received data; The readout direction uses the logic clock of this board to control the output of the data storage area to the subsequent logic module for use by the subsequent logic module; The data storage area is configured with an upper overflow waterline and an underflow waterline, and the entire data storage area is divided into three parts according to the values ​​of the upper overflow waterline and the underflow waterline. The part exceeding the upper overflow waterline is the overflow area, the part below the underflow waterline is the underflow area, and the area between the upper overflow waterline and the underflow waterline is the balance area.

2. The system for safely sending and receiving FC data at a high-speed port according to claim 1, characterized in that: The overflow area, the underflow area, and the equalization area are all configured to store at least one frame of FC data.

3. The system for safely sending and receiving FC data at a high-speed port according to claim 1, characterized in that: The overflow watermark is set to the total storage amount of the data storage area minus 2148B.

4. The system for safely sending and receiving FC data at a high-speed port according to claim 1, characterized in that: The underflow waterline is set to 2148B.

5. The system for safely sending and receiving FC data at a high-speed port according to claim 1, characterized in that: The write control module is configured to control the high-speed port to receive data and write it into the data storage area in the high-speed port recovery clock domain, wherein: When the amount of data in the data storage area is in the balanced area or the underflow area, the write enable signal of the data storage area is kept high, that is, data is continuously written to the data storage area; When the data volume of the data storage area is in the overflow area, the non-valid data input from the high-speed port is discarded and not written into the data storage area until the data volume of the data storage area is restored to the balanced area, and then the data write enable of the data storage area is restored.

6. The system for safely sending and receiving FC data at a high-speed port according to claim 1, characterized in that: The readout control module is configured to control the output of data in the data storage area to a subsequent logic module in the logic clock domain of the board, wherein: When the amount of data in the data storage area is in the balanced area or the overflow area, the read enable signal of the data storage area is kept high, that is, the data stored in the data storage area is continuously output to the subsequent logic module; When the amount of data in the data storage area is in the underflow area, when the data read out of the data storage area is in the non-valid data area, the read enable is pulled low, that is, the data in the data storage area is not read out, and the IDLE signal is output to the subsequent logic module until the amount of data in the data storage area is restored to the balance area, and then the data read enable of the data storage area is restored.

7. The method for securely sending and receiving FC data at a high-speed interface of a system for securely sending and receiving FC data at a high-speed interface according to any one of claims 1 to 6, characterized in that: The method comprises: Step 1: The high-speed port receives data sent by the opposite end based on the FC network, generates a high-speed port recovery clock, and transmits the received data to the write control module based on the high-speed port recovery clock; Step 2: The amount of data in the data storage area is in the underflow area, the write enable signal of the write module is pulled high, and the data received by the high-speed port is continuously written into the data storage area; the read control module turns off the read enable, and the read control module outputs an IDLE signal to the subsequent logic processing module; Step 3: The amount of data stored in the data storage area gradually increases with the increase of writing. When the data stored in the data storage area reaches the equilibrium area, the write enable signal of the write module is high, and the high-speed port receives data and continuously writes it into the data storage area; the read control module pulls up the read enable, and the read control module outputs the data in the data storage area to the subsequent logic processing module; Step 4: As the working time increases, if the amount of data in the data storage area decreases to the underflow waterline, the read control module detects the read data in the data storage area. When the read data is in the valid data interval, the read enable signal of the data storage area is kept high, that is, the valid data value of the data storage area is continuously read; when the read data in the data storage area is IDLE, the read enable signal of the data storage area is pulled low, and the IDLE signal is output to the subsequent logic module at the same time, until the amount of data in the data storage area is restored to the balanced area, and then the read enable signal is pulled high; If the amount of data in the data storage area increases to the overflow waterline, the write control module detects the output data of the high-speed port, and when the data received at the high-speed port is in the valid data interval, the write enable signal of the data storage area is kept high, that is, the valid data value is written to the data storage area; when the data received at the high-speed port is IDLE, the write enable signal of the data storage area is pulled down until the amount of data in the data storage area returns to the balanced area, and then the write enable signal is pulled high; Repeat step 4 until the data transfer is completed.

8. A method for securely transmitting and receiving FC data at a high-speed interface of a system for securely transmitting and receiving FC data at a high-speed interface according to any one of claims 1 to 6, characterized in that: The method comprises: Step 1: The high-speed port receives data sent by the opposite end, generates a high-speed port recovery clock, and transmits the data to the write control module based on the high-speed port recovery clock; Step 2: At this time, the amount of data in the data storage area is in the underflow area, the write control module write enable signal is pulled high, and the high-speed port receives data and continuously writes it into the data storage area; the read control module turns off the read enable, and the read module outputs an IDLE signal to the subsequent logic processing module; Step 3: The amount of data in the data storage area gradually increases to the balanced area, the write control module write enable signal is high, and the high-speed port receives data and continuously writes it into the data storage area; the read control module pulls up the read enable, and the read control module outputs the data in the data storage area to the subsequent logic processing module; Step 4: When the high-speed port recovery clock frequency is lower than the board logic clock frequency, that is, the data writing speed is lower than the data reading speed, as the working time increases, the amount of data in the data storage area gradually decreases to the underflow waterline, and the read control module detects the read data in the data storage area: When the read data is in the valid data interval, the read enable signal of the data storage area is kept high, that is, the valid data value of the data storage area is continuously read; When the read data of the data storage area is IDLE, the read enable signal of the data storage area is pulled low, and the IDLE signal is output to the subsequent logic module at the same time, until the data amount of the data storage area is restored to the balanced area, and then the read enable signal is pulled high; Repeat step 4 until the data transfer is completed.

9. A method for securely sending and receiving FC data at a high-speed interface of a system for securely sending and receiving FC data at a high-speed interface according to any one of claims 1 to 6, characterized in that: The method comprises: Step 1: The high-speed port receives data sent by the opposite end, generates a high-speed port recovery clock, and transmits the data to the write control module based on the high-speed port recovery clock; Step 2: At this time, the amount of data in the data storage area is in the underflow area, the write control module write enable signal is pulled high, and the high-speed port receives data and continuously writes it into the data storage area; the read control module turns off the read enable, and the read control module outputs an IDLE signal to the subsequent logic processing module; Step 3: The amount of data in the data storage area gradually increases to the balanced area, the write control module write enable signal is high, and the high-speed port receives data and continuously writes it into the data storage area; the read control module pulls up the read enable, and the read control module outputs the data in the data storage area to the subsequent logic processing module; Step 4: When the high-speed port recovery clock frequency is greater than the board logic clock frequency, that is, the data writing speed is higher than the data reading speed, as the working time increases, the amount of data in the data storage area gradually increases to the overflow waterline, and the write control module detects the high-speed port output data: When the data received at the high-speed port is in the valid data interval, the write enable signal of the data storage area is kept high, that is, the valid data value is written to the data storage area; When the data received at the high-speed port is IDLE, the write enable signal of the data storage area is pulled low until the amount of data in the data storage area is restored to the balanced area, and then the write enable signal is pulled high; Repeat step 4 until the data transfer is completed.

10. A method for safely sending and receiving FC data at a high-speed interface of a system for safely sending and receiving FC data at a high-speed interface according to any one of claims 1 to 6, characterized in that: The method comprises: Step 1: The high-speed port receives data sent by the opposite end, generates a high-speed port recovery clock, and transmits the data to the write control module based on the high-speed port recovery clock; Step 2: At this time, the amount of data in the data storage area is in the underflow area, the write control module write enable signal is pulled high, and the high-speed port receives data and continuously writes it into the data storage area; the read control module turns off the read enable, and the read control module outputs an IDLE signal to the subsequent logic processing module; Step 3: The amount of data stored in the data storage area gradually increases to the balance area, the write control module write enable signal is pulled high, and the high-speed port receives data and continuously writes it into the data storage area; the read control module pulls high the read enable, and the read module outputs the data in the data storage area to the subsequent logic processing module; Step 4: Since the high-speed port recovery clock frequency is equal to the logic clock frequency of this board, that is, the data writing speed is equal to the data reading speed, the data volume in the data storage area will be kept in the balanced area, and the read and write enables of the data storage area are pulled high at the same time until the data transmission is completed.

Citation Information

Patent Citations

  • Novel elastic buffer structure and SKP adding method

    CN106484631A

  • FC link elasticity buffer area circuit

    CN108462655A

  • External field guarantee and test platform for universal FC conversion interface module

    CN112486877A

  • FPGA-based interface conversion method for different rates

    CN113204505A

  • FC engine frame receiving cache management mechanism

    CN113507424A