Disclosure of Invention
Technical problem to be solved
The disclosure provides a PCIe data transmission device and method based on optical fiber, which can meet the transmission requirement of bandwidth more than ten million, can realize long-distance transmission, and also support the connection of a plurality of devices, and can flexibly configure the number of the connected devices and the link width of each connected device.
(II) technical scheme
The utility model provides a PCIe data transmission device based on optic fibre for reset signal and the data signal of through optic fibre with the mainboard send to one and more than PCIe equipment, including PCIe golden finger, PCIe exchange module, PCIe relay module and SFP + module, wherein: the PCIe golden finger is used for transmitting the data signal to the PCIe exchange module and transmitting the reset signal to the SFP + module; the PCIe switching module is used for distributing the data signal to the PCIe relay module; the PCIe relay module is used for performing pre-emphasis processing and de-emphasis processing on the data signals and sending the processed data signals to the SFP + module connected with the PCIe relay module; the SFP + module is used for sending the reset signal and the processed data signal to the PCIe equipment connected with the SFP + module through an optical fiber.
Optionally, the PCIe switch module includes one or more first ports and one or more second ports, where the first ports are connected to the PCIe golden finger, and the second ports are connected to the PCIe relay module.
Optionally, the motherboard generates a first clock signal, the PCIe data transmission device further includes a clock debounce module and a local clock module, the clock debounce module is configured to process the first clock signal and send the first clock signal to the first port, and the local clock module is configured to generate a second clock signal and send the second clock signal to the second port.
Optionally, the first port receives a data signal transmitted by the PCIe gold finger according to the first clock signal, and the second port receives a data signal distributed by the first port according to the second clock signal.
Optionally, the frequency of the second clock signal is between 100MHz-300ppm and 100MHz +300 ppm.
Optionally, the PCIe data transmission apparatus further includes a configuration file storage module, configured to store configuration information of the first port and the second port, and store configuration information of the first clock signal and the second clock signal, so that the PCIe switch module distributes the data signal to the PCIe relay module through the first port and the second port.
Optionally, the motherboard generates a first voltage, and the PCIe data transmission device further includes a power management module, configured to convert the first voltage into one or more preset voltages and provide the preset voltages to the PCIe switch module.
Optionally, the SFP + module includes RD +, RD-, TD +, TD-, and TDIS pins, the RD + and RD-are connected to the receive differential signal line of the optical fiber, the TD + and TD-are connected to the transmit differential signal line of the optical fiber, and the TDIS is connected to the reset signal line of the PCIe gold finger.
Optionally, the number of the PCIe relay modules is one or more, and each PCIe relay module is connected to one or more SFP + modules.
The present disclosure also provides a data transmission method of the PCIe data transmission apparatus based on an optical fiber, which is used to transmit a reset signal and a data signal to one or more PCIe devices through the optical fiber, and the method includes: s1, acquiring the reset signal and the data signal; s2, transmitting the reset signal to an SFP + module of the device; s3, transmitting the data signal to the first ports of the PCIe switching module of the device, wherein the number of the first ports is one or more; s4, the first port distributes the data signal to the second ports of the PCIe switching module, the number of the second ports is one or more; s5, the second port transmits the data signal to a PCIe relay module connected with the device; s6, the PCIe relay module performs pre-emphasis processing and de-emphasis processing on the data signal, and distributes the processed data signal to the SFP + module; s7, the SFP + module sends the reset signal and the processed data signal to the PCIe device through an optical fiber.
(III) advantageous effects
The PCIe data transmission device and method based on the optical fiber provided by the present disclosure have at least the following beneficial effects:
(1) based on a PCIe high-speed serial protocol, the data transmission is carried out by using optical fibers, the transmission requirement of bandwidth of over ten thousand megabits can be met, and the distorted signals are repaired by using a PCIe relay module, so that long-distance transmission can be realized;
(2) by utilizing the PCIe switching module, the connection of a plurality of devices can be supported, and the number of the devices and the link width of each device can be flexibly configured;
(3) based on a standard PCIe protocol, the PCIe protocol can be compatibly applied to all PCIe systems, and the universality is strong;
(4) the PCIe data transmission device is matched with a common computer only, so that the read-out speed of over ten million can be realized, and the cost is far lower than that of a read-out case and a read-out plug-in with the same transmission index.
Detailed Description
For the purpose of promoting a better understanding of the objects, aspects and advantages of the present disclosure, reference is made to the following detailed description taken in conjunction with the accompanying drawings.
A first embodiment of the present disclosure provides a PCIe data transmission apparatus (hereinafter referred to as a PCIe data transmission apparatus) based on an optical fiber, configured to transmit a reset signal and a data signal of a motherboard to one or more PCIe devices through the optical fiber. Fig. 1 shows an application scenario of the PCIe data transmission apparatus in the present disclosure. The computer motherboard refers to a commercial computer motherboard which is provided with a PCIe bus and a corresponding slot, wherein the slot width is x16, and the commercial computer motherboard also comprises parts such as a central processing unit, a memory and the like which are necessary for the operation of the computer. The PCIe data transmission device is a plug-in card with a PCIe gold finger connector, has a PCIe exchange function, and can expand PCIe through an optical fiber. The PCIe device refers to a device having a PCIe optical fiber interface, and is connected to the PCIe data transmission apparatus through an optical fiber. The PCIe data transmission device is connected to the computer mainboard through the PCIe golden finger to receive a reset signal, a data signal, a first clock signal and a first voltage of the computer mainboard, is connected to one or more PCIe devices through the optical fiber, and distributes the reset signal and the data signal to each PCIe device through the optical fiber.
Fig. 2 shows a block diagram of a PCIe data transmission apparatus in the present disclosure, and the PCIe data transmission apparatus is described in detail with reference to fig. 2 and fig. 3 to 5.
The PCIe data transmission device comprises a PCIe golden finger, a PCIe exchange module, a PCIe relay module, a Small Form-factor Pluggable transceiver (SFP +) module, a power management module, a clock debouncing module, a local clock module and a configuration file storage module.
The PCIe gold finger is used for receiving a reset signal, a data signal, a first clock signal and a first voltage of the computer mainboard, transmitting the reset signal to each SFP + module after receiving the signals, transmitting the data signal to the PCIe exchange module, transmitting the first clock signal to the clock debouncing module, and inputting the first voltage to the power management module.
The power management module converts the first voltage into one or more preset voltages and provides the preset voltages to the PCIe switching module, and the one or more preset voltages are other level power supplies required by the PCIe switching module.
The clock debounce module processes the received first clock signal to improve the quality of the first clock signal, and sends the processed first clock signal to a first port of the PCIe switching module. The local clock module is used for generating a second clock signal and sending the generated second clock signal to a second port of the PCIe switching module.
The PCIe switch module is configured to distribute the received data signal to the PCIe relay module, and specifically, the PCIe switch module includes one or more first ports (i.e., upstream ports) and one or more second ports (i.e., downstream ports), and the one or more downstream ports are connected to the PCIe relay module. The upstream port receives a data signal of a computer mainboard through the PCIe golden finger and receives and analyzes the data signal transmitted by the PCIe golden finger according to the first clock signal, the upstream port distributes the data signal to the downstream port according to the second clock signal, and the downstream port receives and analyzes the data signal distributed by the upstream port according to the second clock signal.
According to the PCIe specification, signals required by PCIe transmission comprise a reset signal, a data signal and a reference clock signal, under the condition of not using a spread spectrum clock, the reference clock signal only needs to meet the condition of 100MHz +/-300 ppm, and a transmitting end and a receiving end of the PCIe transmission do not need to use a same source clock, namely the reference clock signal is not required to be transmitted between a PCIe data transmission device and PCIe equipment, so that resources are saved, and the cost is reduced. Therefore, in this embodiment, the frequency of the second clock signal is set to be between 100MHz-300ppm and 100MHz +300 ppm.
In this embodiment, the PCIe switch chip with IDT corporation model number 89HPES24NT6AG2 is taken as an example to be the PCIe switch module, and the data link configuration of the PCIe switch module is described. The 89HPES24NT6AG2 chip supports the second generation PCIe specification, which provides 6 ports, 24 links, and 192Gbps switching capability, meeting the requirements of the present disclosure for PCIe switch modules.
Referring to fig. 4, the 89HPES24NT6AG2 chip provides 6 ports, port 0, port 2, port 4, port 6, port 8, and port 12, respectively, each port supporting 4 lanes. In this embodiment, port 0 and port 2 are bundled and configured as an upstream port, and are connected to a PCIe gold finger, so the upstream link width is x8 in total; further, the port 4, the port 6, the port 8, and the port 12 are individually configured as downstream ports, and there are four downstream ports in total, each of which has a link width of x4, and these four downstream ports are connected to the PCIe relay module, respectively. In this embodiment, for example, the PCIe relay chip DS80PCI402 is selected as the PCIe relay module, each downstream port is connected to a corresponding DS80PCI402 chip, and the DS80PCI402 chip is connected to the SFP + module.
The PCIe data transmission apparatus operating in the above data link configuration supports simultaneous connection of four downstream devices (and PCIe devices), each downstream device supports PCIe Gen2x4 at most, where Gen2 denotes a slot using PCIe2.0 specification, and x4 denotes a data bus width of the slot is 4. In addition, the data link may be configured in other ways, such as merging port 4 and port 6 into one downstream port of x8 width, merging port 8 and port 12 into one downstream port of x8 width, etc., in this case, two downstream devices are supported for simultaneous connection, each of which supports up to PCIe Gen2x 8. Therefore, the number of PCIe devices and the link width of each device which can be supported by the PCIe data transmission device can be flexibly configured, and the PCIe expansion application in the data acquisition system is enhanced.
The 89HPES24NT6AG2 chip needs to input two pairs of homologous differential clock signals of 0-0.7V as its global reference clock, the embodiment selects a clock chip with IDT corporation type ICS841484I as a local clock module, and two pairs of differential clock signal output pins of the ICS841484I chip need to be connected to two pairs of global clock input pins of the 89HPES24NT6AG2 chip. In addition, for example, the 9DB306 chip of IDT corporation is used as the clock debounce module, so that the quality of the first clock signal can be effectively improved, the input of the 9DB306 chip is connected to the PCIe finger to receive the first clock signal, and the output of the 9DB306 chip is connected to the upstream port of the 89HPES24NT6AG2 chip.
Referring to fig. 5, the PCIe clock on the computer motherboard is distributed to a Root Complex (RC) and PCIe slots, and the upstream port of the PCIe switch module uses a PCIe reference clock obtained through a PCIe golden finger in order to be compatible with the spread spectrum clock that may be used. The local clock chip ICS841484I on the PCIe switch module provides two pairs of 100MHz or 125MHz configurable clock signals connected to the global reference clock pin of the PCIe switch chip 89HPES24NT6AG 2. Inside the 89HPES24NT6AG2 chip, a global reference clock is distributed to each port, all but port 0 and port 2 using the global reference clock as the port's PCIe reference clock. Port 4, port 6, port 8, and port 12 correspond to device 0, device 1, device 2, and device 3, respectively. Devices 0-3 all use the clock signal provided by the device local clock chip as the PCIe reference clock.
The 89HPES24NT6AG2 chip also requires power supplies of three voltages, 1.0V, 2.5V and 3.3V, and the rest of the electronic components of the PCIe data transmission device require power supplies of 3.3V. Taking the first voltage as 12V as an example, the power management module uses two switching power supply sub-modules to convert the 12V power input by the PCIe gold finger into 1.0V and 3.3V respectively, and the power management module uses a linear power supply to convert the 3.3V power into a 2.5V power, thereby providing a complete power supply for the PCIe data transmission device.
The configuration file storage module is used for providing the PCIe switching module with the value of the configuration register required by the operation of the PCIe switching module, so that the PCIe switching module distributes the data signal to the PCIe relay module.
Taking the PCIe switch module as 89HPES24NT6AG2 chip as an example, the chip may read configuration information through SMBus bus, in this embodiment, 24LC512 chip of MicroChip company is selected as the configuration file storage module, and clock pins and data pins of the 24LC512 chip are connected to SMBus of 89HPES24NT6AG2 chip. The link configuration information of the 89HPES24NT6AG2 chip may be stored in the 24LC512 chip, and the PCIe switch module (i.e., the 89HPES24NT6AG2 chip) will automatically load the link configuration information to operate normally after the PCIe data transfer apparatus is powered on. In addition, information that each port uses a global reference clock or an externally input reference clock is also stored in the configuration memory chip 24LC 512. The capacity of the 24LC512 chip is 512K, and the configuration requirement of the 89HPES24NT6AG2 chip can be met.
The PCIe relay module is used for carrying out pre-emphasis processing and de-emphasis processing on the data signals, so that the aim of conditioning the PCIe data signals is fulfilled, and the PCIe data signals are ensured to be in a good form after being transmitted by long-distance optical fibers; the PCIe relay module also sends the processed data signals to the SFP + module connected with the PCIe relay module. It should be noted that the number of the PCIe relay modules is one or more, and the PCIe relay modules are connected to the downstream port of the PCIe switch module, and each PCIe relay module is connected to one or more SFP + modules.
PCIe data signal is through long distance optical fiber transmission back, and the signal of different frequencies produces the decay of different range, leads to signal distortion, consequently, uses PCIe relay module to restore the distortion signal in this disclosure, reaches long distance transmission's purpose for the device possesses the PCIe data transmission ability more than hundred meters.
In this embodiment, for example, a DS80PCI402 chip of TI corporation is used as a PCIe relay module for conditioning the optical fiber signal. Data signals from the 89HPES24NT6AG2 chip are processed by the DS80PCI402 chip and then transmitted to the SFP + module.
The SFP + module is a small-sized packaged pluggable optical fiber transceiver module, receives a reset signal through a PCIe gold finger, receives a data signal processed by a PCIe relay module, and sends the reset signal and the data signal to PCIe equipment connected with the PCIe relay module, wherein one PCIe equipment can be connected to one or more SFP + modules to expand the bus width of the SFP + module.
The PCIe data transmission device and the PCIe equipment are both provided with SFP + modules, and the SFP + modules of the PCIe data transmission device and the SFP + modules of the PCIe equipment are connected through optical fibers. Referring to fig. 3, the SFP + module of the PCIe data transmission apparatus at least includes RD +, RD-, TD +, TD-, and TDIS pins, the SFP + module of the PCIe device at least includes RD +, RD-, TD +, TD-, and LOS pins, the pair of RD + and RD-differential pins are connected to the receiving differential signal line of the PCIe data link (i.e., optical fiber), the pair of TD + and TD-differential pins are connected to the transmitting differential signal line of the PCIe data link, the TDIS pin of the SFP + module of the PCIe data transmission apparatus side is connected to the reset signal line of the PCIe gold finger, and the LOS pin of the SFP + module of the PCIe device side is connected to the reset pin of the PCIe device.
In this embodiment, for example, FTLF8528P3BxV module from FINISR corporation is selected as SFP + module, and for improving the integration, for example, 1-2007637-5 connector from TE corporation is selected as SFP + receptacle, and the connector is a two-layer structure, each layer can accommodate 2 SFPs +. The reset signal on the PCIe gold finger is connected to the DIS pin of the SFP + connector to fan out the reset signal.
It is understood that the present embodiment only exemplarily provides some chips, and each module may also select other chips having functions required by the module.
A second embodiment of the present disclosure provides a method for data transmission based on the PCIe data transmission apparatus in the first embodiment, where the method is used to transmit a reset signal and a data signal to one or more PCIe devices through an optical fiber, and the method includes the following operations:
s1, a reset signal and a data signal are acquired.
The PCIe data transmission device obtains the reset signal and the data signal from the computer motherboard through its PCIe gold finger, and further needs to obtain the first clock signal and the first voltage.
S2, transmitting the reset signal to the SFP + module of the device.
The PCIe golden finger transmits the reset signal to the SFP + module, and in addition, the PCIe golden finger also needs to input a first voltage into the power management module, so that the power management module converts the first voltage into a voltage required by the operation of one or more PCIe data transmission devices.
S3, transmitting the data signal to a first port of a PCIe switch module of the device, where the number of the first port is one or more.
The PCIe golden finger transmits the first clock signal to the clock debouncing module, and the clock debouncing module transmits the first clock signal to a first port of the PCIe exchange module after carrying out debouncing processing on the first clock signal.
The first port is an upstream port of the PCIe switching module, the PCIe gold finger transmits the data signal to the upstream port of the PCIe switching module, and the upstream port receives and analyzes the received data signal according to the processed first clock signal.
And S4, the first port distributes the data signal to the second ports of the PCIe switching module, and the number of the second ports is one or more.
When the local clock module in the device generates the second clock signal and sets the frequency of the second clock signal between 100MHz-300ppm and 100MHz +300ppm, the reference clock signal is not required to be considered to be transmitted between the PCIe data transmission device and the PCIe equipment, thereby reducing the cost.
The first port distributes the data signal to a second port of the PCIe switching module, the second port is a downstream port of the PCIe switching module, and the downstream port receives and analyzes the received data signal according to a second clock signal.
And S5, the second port transmits the data signal to a PCIe relay module connected with the device.
And S6, the PCIe relay module performs pre-emphasis processing and de-emphasis processing on the data signal and distributes the processed data signal to the SFP + module.
The PCIe relay module performs pre-emphasis processing and de-emphasis processing on the data signals, and ensures that the data signals are in a good state after being transmitted by long-distance optical fibers.
And S7, the SFP + module sends the reset signal and the processed data signal to the PCIe device through the optical fiber.
In summary, the PCIe data transmission apparatus and method based on optical fiber provided in the present disclosure implement PCIe long-distance optical fiber transmission, and specifically implement PCIe high-speed transmission exceeding one hundred meters, and have a multi-device switching function, and the switching manner can be flexibly configured, and can meet the high-speed long-distance data transmission requirement of a data acquisition system of high-energy physics and nuclear physics experiments for over ten thousands of megabytes, and the implementation manner is simple, the implementation cost is low, and the application prospect is wide.
The above-mentioned embodiments are intended to illustrate the objects, aspects and advantages of the present disclosure in further detail, and it should be understood that the above-mentioned embodiments are only illustrative of the present disclosure and are not intended to limit the present disclosure, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.