A Mil-1394b Data Transmission System Based on FPGA

By using FPGA in the Mil-1394b data transmission system to implement link layer and transaction layer functions, and perform data conversion of PCIE interface and asynchronous bus interface, the problems of complex architecture and insufficient compatibility of the existing system are solved, and high reliability is achieved , low-latency data transmission effect.

CN114201441BActive Publication Date: 2024-09-13SUZHOU CHANGFENG AVIATION ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111529579.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-14
Publication Date
2024-09-13
Estimated Expiration
2041-12-14

AI Technical Summary

Technical Problem

The existing Mil-1394b data transmission system has a complex architecture, high cost, and insufficient compatibility with external devices, making it difficult to meet the needs for high reliability, low latency, and certainty in high-security fields such as aerospace and aerospace.

Method used

FPGA is used to implement the link layer and transaction layer functions of the Mil-1394b bus, and data conversion is performed through the PCIE interface and asynchronous bus interface to simplify the hardware structure, reduce costs, and improve compatibility.

Benefits of technology

Realize link layer chip functions through FPGA logic, save hardware costs, improve compatibility, and achieve a highly reliable and deterministic data transmission system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114201441B
    Figure CN114201441B
Patent Text Reader

Abstract

The present application provides a Mil-1394b data transmission system based on FPGA, which belongs to the field of airborne system communication bus and application technology, and specifically includes a link layer module for sending and receiving data packets, reading and writing physical layer registers, and reporting status to the upper interface; a transaction layer module for receiving data from the link layer module and decoding or encoding, and receiving data sending requests and encoding from the application layer module; an application layer module for configuration table information maintenance and reading and writing message data; a node controller module for controlling the work of the node and providing a register configuration interface to the upper software; a PCIE interface adapter module, which is composed of an AXI interconnect module and a PCIE to AXI bus IP, and is used for conversion between PCIE interface data and Mil-1394b bus data to realize data communication with devices with PCIE interfaces. Through the processing scheme of the present application, the hardware integration is improved, the overall hardware cost is reduced, and the device compatibility is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of airborne system communication bus and application technology, and in particular to a Mil-1394b data transmission system based on FPGA. Background Art

[0002] IEEE1394 is a high-speed serial communication bus. After continuous optimization and development, two versions, IEEE1394a and IEEE1394b, have appeared. The maximum transmission rate supported by IEEE1394a is 400Mbps, while the theoretical maximum transmission rate of IEEE1394b is 3.2Gbps. In order to meet the needs of high reliability, low latency and determinism in high-security fields such as aviation and aerospace, the SAE organization has partially restricted and improved the IEEE1394b protocol to form the SAEAS5643 protocol, which is the full name of the 1394b bus interface for military and aircraft applications. The purpose is to standardize the methods and approaches of Mil-1394b in safety-critical tasks and critical applications in military and aircraft. As a new generation of airborne system-level high-speed bus, it can be used for interconnection between key airborne products and data interaction and information fusion between key subsystems, providing high-reliability, high-determinism and high-bandwidth system-level bus solutions for airborne safety-critical or mission-critical subsystems such as fighters, drones and bombers. Summary of the invention

[0003] In view of this, an embodiment of the present application provides a Mil-1394b data transmission system based on FPGA, which improves the compatibility of Mil-1394b with other devices, improves the integration of Mil-1394b communication cards, integrates data conversion between 1394b data and PCIE interface and asynchronous bus interface on FPGA, and integrates the link layer and transaction layer functions of the Mil-1394b bus inside the FPGA.

[0004] The embodiment of the present application provides a Mil-1394b data transmission system based on FPGA, wherein the FPGA structure in the system includes a link layer module, a transaction layer module, an application layer module, a node controller module and a PCIE interface adapter module.

[0005] The link layer module is used to send and receive data packets, read and write physical layer registers, and report status to the upper layer interface;

[0006] The transaction layer module is used to receive data from the link layer module and decode or encode it, and receive a data sending request and encode it from the application layer module;

[0007] The application layer module is used for configuration table information maintenance and message data reading and writing;

[0008] The node controller module is used to control the operation of the node and provide a register configuration interface to the upper layer software;

[0009] The PCIE interface transfer module is composed of an AXI interconnection module and a PCIE to AXI bus IP, and is used for converting PCIE interface data and Mil-1394b bus data to achieve data communication with a device with a PCIE interface.

[0010] According to a specific implementation of the embodiment of the present application, the link layer module includes a link layer request module, a physical layer status receiving module, a data receiving module, a data sending module, a 1394b data decoding module and a 1394b data encoding module.

[0011] The link layer request in the link layer request module includes a request to read and write a physical register and a request to apply for a serial bus authorization at the physical layer;

[0012] The physical layer status receiving module is used to send status transmission when the physical layer has status information to be transmitted to the link layer;

[0013] The 1394b data encoding module is used to receive a data transmission request from the transaction layer, generate a data packet according to the request, and notify the data transmission module to arbitrate the bus for data transmission;

[0014] The data sending module is used to send data packets;

[0015] The data receiving module is used to receive data packets when the physical layer detects that there is data to be sent on the serial bus;

[0016] The 1394b data decoding module is used to verify the data packet. If the verification is successful, the payload of the data packet is extracted and sent to the transaction layer module. If the verification is wrong, the error is reported to the node controller module.

[0017] According to a specific implementation method of an embodiment of the present application, the data packet is an STOF asynchronous stream data packet.

[0018] According to a specific implementation of the embodiment of the present application, the transaction layer module includes a STOF decoding module, an ASM decoding module and an ASM encoding module.

[0019] The STOF decoding module is used to receive the data of the link layer module and perform STOF decoding on it;

[0020] The ASM decoding module is used to receive data from the link layer module, and if the channel number is equal to the channel monitored by the current node, perform ASM decoding on the payload of the 1394b data packet, extract data from the packet header, payload and packet tail, report them to the application layer module, and perform vertical parity check;

[0021] The ASM encoding module is used to accept the message sending request of the application layer module, encode the data according to the ASM protocol and initiate a data sending request to the link layer module.

[0022] According to a specific implementation of the embodiment of the present application, the configuration table information of Mil-1394b is stored in an off-chip SPI flash chip.

[0023] According to a specific implementation method of an embodiment of the present application, the configuration table information maintenance includes: configuration table version information, the channel number monitored by this node; the rate at which this node sends data, the cycle time of STOF sending, the sending offset, receiving offset, and data pump offset of this node, the number, length, and message ID of messages received by this node, the number, length, message ID, and sending channel of messages sent by this node, and the configuration table CRC check word.

[0024] According to a specific implementation method of an embodiment of the present application, the application layer module includes a message data processing module, which is used to read and write message data. If a valid configuration table is read, the node control configures the data storage module, configures the message ID that this node needs to receive and the message ID that needs to be sent, and the storage address of each message in the data storage module.

[0025] According to a specific implementation of the embodiment of the present application, the node controller module includes a physical layer register acquisition module, a node status module, a remote node working status module, a register mapping module, an AXI-lite bus module and an asynchronous bus interface.

[0026] The physical layer register acquisition module is used to periodically read the information of the physical layer, and the upper layer software can directly operate the physical layer register by operating the relevant registers;

[0027] The node status module is used to record data transmission and reception and bus status, and store them in corresponding registers for upper-layer software to read;

[0028] The remote node working status module is used to start timing after receiving the STOF packet, send the corresponding enable to the application layer module when the node's sending, receiving or data pump offset is reached, and judge the error status of CC according to STOF, and enter the normal working mode when certain conditions are met.

[0029] According to a specific implementation method of an embodiment of the present application, the information recorded by the node status module includes: the number of STOF packets received, the number of messages sent, the number of messages received, the number of received message channel errors, message ID errors, CRC errors and VPC errors, and the number of bus resets.

[0030] According to a specific implementation manner of the embodiment of the present application, the physical layer register acquisition module periodically reads the physical layer information including: port connection status, port negotiation speed and node ID.

[0031] According to a specific implementation method of the embodiment of the present application,.

[0032] Beneficial Effects

[0033] At present, the architecture adopted by the existing Mil-1394b data transmission system is mostly FPGA+link layer chip+physical layer chip+1394 bus transformer, and the PCI or asynchronous bus is used between the external devices. The architecture adopted by the present invention is FPGA+physical layer chip+1394 bus transformer, in which the function of the link layer chip is implemented by FPGA logic, and PCIE and asynchronous bus are used between the external devices. Therefore, the beneficial effects of the present invention are as follows:

[0034] The functions of the link layer chip are realized through FPGA logic: a link layer chip is saved, the hardware integration is improved, the hardware size is reduced, and the overall hardware cost is reduced.

[0035] Integrated PCIE interface and asynchronous bus interface: PCIE interface is more widely used, improving the compatibility of equipment. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0037] Figure 1 It is a FPGA top-level design framework diagram of a Mil-1394b data transmission system based on FPGA according to an embodiment of the present invention;

[0038] Figure 2 is a block diagram of the FPGA structure of a Mil-1394b data transmission system based on FPGA according to an embodiment of the present invention;

[0039] Figure 3A block diagram of the FPGA structure of a link layer module of a Mil-1394b data transmission system based on FPGA according to an embodiment of the present invention;

[0040] Figure 4 A block diagram of the FPGA structure of a transaction layer module of a Mil-1394b data transmission system based on FPGA according to an embodiment of the present invention;

[0041] Figure 5 A block diagram of the FPGA structure of an application layer module of a Mil-1394b data transmission system based on FPGA according to an embodiment of the present invention;

[0042] Figure 6 The figure is a block diagram of the FPGA structure of a node controller module of a Mil-1394b data transmission system based on FPGA according to an embodiment of the present invention. DETAILED DESCRIPTION

[0043] The embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0044] The following describes the implementation methods of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The present application can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that, in the absence of conflict, the following embodiments and the features in the embodiments can be combined with each other. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work belong to the scope of protection of the present application.

[0045] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein can be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present application, it should be understood by those skilled in the art that an aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number of aspects described herein can be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein can be used to implement this device and / or practice this method.

[0046] It should also be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application. The drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0047] Additionally, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects described may be practiced without these specific details.

[0048] The embodiment of the present application provides a Mil-1394b data transmission system based on a PCIE interface. Figure 1-6 , the scheme of the present invention is elaborated in detail.

[0049] In this embodiment, the hardware part of the present invention is exemplified. The FPGA chip is selected from the JFM7K325T8-AS of the JFM7K series of Fudan Microelectronics, with 326080 internal logic units, 16020Kb of blockRAM resources, 250 HRIOs, 150 HPIOs, 8 pairs of GTX, and a maximum rate of 12.5Gb / s, which meets the design requirements. The FPGA communicates with the host using an asynchronous bus interface or a PCIE X1 interface, and the design implements a 1394b link layer data interface connected to an external PHY chip, completing the SAE AS5643 protocol transaction layer, link layer, configuration table operation, node control and other logical functions.

[0050] The system is powered by a 5V power supply. The design uses the HCE4644 chip of North Huachuang Technology Group Co., Ltd. and the SM74401 chip of Shenzhen Guowei Electronics Co., Ltd. to complete the power conversion function and generate the +1.0V, +1.8V, +3.3V, +1.95V, +1.2V, +1.0V_MGT and other working voltages required by the onboard circuit.

[0051] The system configuration table storage module uses FPGA external SPI FLASH to store configuration table information, and FLASH uses the SM25QH128M chip of Shenzhen Guowei Electronics Co., Ltd.

[0052] One end of the 1394b physical layer interface chip is connected to the link layer interface of the FPGA, and the other end leads to three 1394B PORT ports. The SM81BA3 chip of Shenzhen Guowei Electronics Co., Ltd. is selected.

[0053] The 1394b transceiver channel interface module (transformer) is mainly used for 1394b port signal conditioning and signal isolation to achieve long-distance and high-speed data transmission. The chip uses the MD1062E30 three-port chip from Shaanxi Changling Maitan Electronics Co., Ltd.

[0054] The FPGA logic part of the invention is described in detail below. Figure 1 , which is the FPGA top-level design framework diagram of the Mil-1394b data transmission system, mainly consists of Mil-1394b module, AXI bus cross-linking module, and PCIE to AXI bus IP. The AXI bus cross-linking module and PCIE to AXI bus IP are Xilinx official IP cores. The AXI bus cross-linking module and PCIE to AXI bus IP constitute a PCIE interface adapter module, which is used to convert between PCIE interface data and Mil-1394b bus data to realize data communication with devices with PCIE interface.

[0055] Specifically, refer to Figure 2 , the attached figure is a block diagram of the FPGA structure of the Mil-1394b bus protocol, which consists of a link layer module, a transaction layer module, an application layer module and a node controller module, such as Figure 1 As shown. The external interfaces of Mil-1394b IP are AXI-lite, AXI-Slave, SPI, link-phy interface and LBC asynchronous local bus. The link-phy interface is connected to the external 1394bphy chip to realize the 1394b communication function. The SPI interface is connected to the off-chip SPI FLASH to update and read the configuration table. When using the PCIE interface, AXI-lite is used to operate the registers of 1394b IP, and AXI-Slave is used to read and write 1394b asynchronous stream message data. When using the LBC asynchronous bus, the LBC interface is used to operate the registers and read and write asynchronous stream message data.

[0056] Reference Figure 3 The attached figure is a block diagram of the FPGA structure of the link layer module in the Mil-1394b bus protocol. According to the requirements of the AS5643 protocol, Mil-1394b does not use asynchronous packets and isochronous packets during transmission, which can simplify the link layer function. The interface to the upper layer includes packet sending, packet receiving, physical layer register reading and writing, and status reporting. It consists of several modules: link layer request, physical layer status reception, data packet reception, data packet transmission, 1394b data decoding, and 1394b data encoding.

[0057] Link layer request module, link layer request mainly includes read and write physical register request and physical layer serial bus authorization request. After the link layer request module accepts the physical register read and write request from the external module, it sends the corresponding serial instruction through the LREQ interface. After accepting the packet sending request from the external module, it initiates bus arbitration based on whether it is currently in the packet sending state. If it is not in the packet sending state, it sends the corresponding serial instruction through the LREQ interface. If it is in the packet sending state, it instructs the packet sending module through the MORE_INFO interface to drive CTL[1:0] to the hold state after the current data packet is sent, and initiates additional arbitration requests.

[0058] The physical layer status receiving module sends status transmission when the physical layer has status information to transmit to the link layer. The two status transmissions are bus status transmission and physical layer status transmission. The physical layer status transmission module sends the physical layer status through the PINT interface.

[0059] The data packet receiving module, when the physical layer detects that there is data to be sent on the serial bus, it drives CTL[0:1] to the sending state and drives the D[0:7] data line to all 1 to initialize a data packet reception (this initialization state is called data-on in the protocol). When the all-1 state is revoked, the physical layer drives the speed code on the data line to indicate the speed of the data packet being transmitted. The speed code is followed by the data packet data. When the physical layer starts to transmit a data packet, it will continue to transmit until the end of the packet. After the transmission is completed, the physical layer drives CTL[0:1] to the idle state.

[0060] In the data packet sending module, after the link layer initiates a bus request to the physical layer, the physical layer initiates arbitration to obtain control of the bus. If the arbitration is successful, the physical layer transfers the control of the link layer-physical layer interface to the link layer by driving CTL[0:1] to the authorized state and driving an additional clock cycle to the idle state. At this time, the link layer can drive CTL[0:1] to the idle state, the hold state, or the send state. If the physical layer does not detect the hold state or the send state within 8 clock cycles, the physical layer will regain control of the link layer-physical layer interface. If the data to be sent is not ready, the link layer drives CTL[0:1] to the hold state. When the link layer starts to send data, it drives CTL[0:1] to the send state and continues to send until the end of the packet. At the end of the packet, if the MORE_INFO indication of the link layer request module is received, CTL[0:1] is driven to the hold state, and D[0:7] is driven to the value of MORE_INFO, and an additional bus arbitration is initiated. Finally, the link layer drives CTL[0:1] to the idle state to release the link layer-physical layer interface.

[0061] 1394b decoding module, according to AS5643 protocol, Mil-1394b only uses asynchronous stream packets during transmission (STOF packets are a special type of asynchronous stream packets). Each node needs to receive data from at least two channels (STOF packets are generally fixed to 31 channels). 1394b first determines the channel field in the 1394b header. If it is the channel number monitored by this node or channel 31, CRC check is performed on the 1394 header. If the CRC check passes, the payload of the asynchronous stream data packet is extracted and sent to the transaction layer. If the final data CRC check fails, the error is reported to the node controller.

[0062] 1394b encoding module, the 1394b encoding module receives the data sending request from the transaction layer, the request includes the channel number to be sent to, the sending rate, and the data payload. The encoding module generates an asynchronous stream data packet according to the request and notifies the data sending module to arbitrate the bus for data sending.

[0063] Reference Figure 4 , the attached figure is a block diagram of the FPGA structure of the transaction layer module in the Mil-1394b bus protocol. The module receives the data of the link layer for STOF decoding or ASM encoding and receives the data sending request and ASM encoding of the application layer. It is divided into three modules: STOF decoding, ASM decoding and ASM encoding.

[0064] In the STOF decoding module, the Mil-1394b bus protocol stipulates that the STOF packet is used to achieve bus synchronization. The STOF packet is broadcast periodically by the CC node according to the system cycle. The default message channel number is channel 31. Each remote node can receive the STOF packet and complete the bus synchronization function. The STOF packet load also includes bus status words, system mode words, system time, aircraft time and other information, which are used to control the bus status and transmit instruction information. When receiving data with channel number 31 sent by the link layer, the STOF decoding module performs CRC check and vertical parity check (VPC) on the 1394 payload. If the STOF packet and the content of the STOF packet are received by reporting to the node controller.

[0065] In the ASM decoding module, Mil-1394b uses ASM (anonymous) in the upper layer to improve data integrity and network stability. The main information is the message ID. According to the configuration table, in the Mil-1394b network, each RN node needs to receive and send a certain number of messages regularly. Different messages are distinguished by message IDs. The ID and number of messages sent and received by each node are determined by the network configuration table. The data format of the ASM payload is first the health status word, which indicates the status of the message sending node, mainly including the packet error status, subsystem error status, node error status, STOF acquisition status and the connection status of the three ports of the node. The heartbeat word is generated by the sending node when sending a message. Each time new message data is sent, the heartbeat word is increased by 1. Therefore, if the heartbeat word of a specific message ID is not updated, the message needs to be discarded. The ASM packet tail format mainly contains three types of offset data and vertical parity check bits, including sending offset, receiving offset and data pump offset. The sending offset is how long the RN node sends a message to the CC node after receiving the STOF packet. The receiving offset is how long the CC sends a message to the RN node after receiving the STOF packet. The data pump offset is how long the RN node sends a message to the data pump channel after receiving the STOF packet. When the CC sends a message to the RN node, the ASM packet tail contains the offset of the destination RN node. When the RN node sends a message, the ASM packet tail contains the offset of the sending node. The ASM decoding module receives data from the link layer. If the channel number is equal to the channel monitored by the current node, the 1394b payload is ASM decoded, the data in the header, payload and tail are extracted and reported to the application layer, and a vertical parity check is performed.

[0066] In the ASM encoding module, the message sending request of the application layer is accepted, the data is encoded according to the ASM protocol, and a data sending request is initiated to the link layer.

[0067] Reference Figure 5 ,The attached figure is a FPGA structure block diagram of the application layer module in the Mil-1394b bus protocol. The application layer module mainly consists of two functions: configuration table maintenance and message data reading and writing.

[0068] For configuration table maintenance, the Mil-1394b configuration table information is stored in an off-chip SPI flash chip, which mainly includes the following information:

[0069] a) Configuration table version information;

[0070] b) The channel number that this node monitors;

[0071] c) The rate at which this node sends data;

[0072] d) STOF sending cycle time;

[0073] e) The node's send offset, receive offset, and data pump offset;

[0074] f) The number, length, and message ID of messages received by this node;

[0075] g) The number, length, message ID, and sending channel of messages sent by this node;

[0076] h) Configuration table CRC check word.

[0077] When powered on, the configuration table management module reads the configuration table information in the flash through the SPI interface. If the CRC check passes, the configuration table information is sent to the node controller module and the configuration table is marked as valid. During normal operation, the configuration table management module can also receive new configuration table data sent by the node controller module and update it through the SPI interface.

[0078] For message data storage, after power-on, if a valid configuration table is read, the node control will configure the data storage center module, configure the message ID that this node needs to receive, the message ID that needs to be sent, and the storage address of each message in bram. During operation, when a message with a valid ID is received, the data center module will determine whether the heartbeat word has been updated. If the heartbeat word is updated, the message will be stored in the corresponding address of bram, and the node controller will be notified that the message of the message ID has been updated. The node controller will also notify the data center module of the window for sending ordinary messages and data pump messages based on the offset received from STOF. At this time, the message data is read from the corresponding address of bram and sent.

[0079] Reference Figure 6 , attached Figure 6 This is the FPGA structure diagram of the node controller module in the Mil-1394b bus protocol. The node controller module controls the work of the node and provides a register configuration interface to the upper-level software. It consists of a physical layer register acquisition module, a node status module, an RN node work module, a register mapping module, AXI-lite and an asynchronous bus interface. Among them:

[0080] The physical layer register acquisition module periodically reads the physical layer information, such as port connection status, port negotiation speed, node ID, etc. The upper layer software can also directly operate the physical layer registers by operating the relevant registers.

[0081] Node status module, node status recording module mainly records data transmission and reception, bus status, and stores it in the corresponding register for upper-level software to read. The recorded information mainly includes:

[0082] a) Number of STOF packets received;

[0083] b) Number of messages sent;

[0084] c) Number of messages received;

[0085] d) Number of received message channel errors, message ID errors, CRC errors, and VPC errors;

[0086] e) Number of bus resets.

[0087] The RN node working module starts timing after receiving the STOF packet, and sends the corresponding enable to the application layer when the node's sending, receiving, and data pump offsets are reached. The error status of the CC is determined based on the STOF, and the normal working mode is entered only when all the following conditions are met:

[0088] Condition 1, the frame period of the STOF message is correct and confirmed by the remote node:

[0089] If an STOF message is received within 10ms±50μs to 105μs after the last STOF message, the STOF message cycle is considered correct regardless of whether the last STOF message is valid. If the STOF message does not meet the above conditions for a period of time, the remote node must consider the corresponding CC to be invalid, unless the CC is in power-on / initialization or self-test mode.

[0090] Condition 2: STOF message is valid:

[0091] If the STOF message cycle is considered correct by condition 1, the node then checks the validity of the message. If the data validity indicator (such as VPC) is correct, the message can be confirmed to be valid. If the above conditions are not met, the remote node must ignore this message from the CC to the remote node. If the STOF message is invalid for a period of time, the remote node must consider the corresponding CC to be invalid.

[0092] Condition 3, the STOF message indicates that the CC is in a legal operating mode and in a "good" state. Once the STOF message is deemed valid through conditions 1 and 2, the remote node must check the status of the CC. If the status indicates that the CC is invalid, the node must consider the CC invalid and ignore any messages from the CC. If any of the first three conditions is not met, the remote node must continue to send data to the CC at the appropriate time and ignore the invalid state of the CC. If the remote node cannot determine its own valid transmission time, it must stop sending.

[0093] Condition 4, the message from CC to the node is valid. If the STOF message passes condition 3 indicating that CC is in a normal state, the node should then check the validity of the received data message. A data message is valid when the heartbeat in the ASM message header is accumulated relative to the last received message and the data validity indicator (vertical parity check and health status word) correctly indicates that the message is valid.

[0094] The Mil-1394b data transmission system based on PCIE interface proposed in the present invention uses FPGA+1394b PHY architecture, and the hardware mainly includes FPGA module, FLASH module, power module, 1394b physical layer interface module, 1394b transceiver channel interface module, etc. FPGA is mainly used to realize the asynchronous bus interface and PCIE X1 interface with the host, realize the 1394b link layer data interface, and complete the logical functions such as SAE AS5643 protocol transaction layer, link layer, configuration table operation, node control, etc. The 1394b physical port design is realized through 1394b PHY chip and transformer. The hardware is mainly FPGA+1394b PHY architecture, plus 1394b transformer, and peripheral circuit of FPGA. The main work of the transmission system is concentrated on the FPGA design part. The FPGA logic design part is mainly divided into five modules: Mil-1394b link layer module, Mil-1394b transaction layer module, Mil-1394b application layer module, Mil-1394b node controller module, and PCIE interface adapter module.

[0095] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A Mil-1394b data transmission system based on FPGA, characterized in that: The FPGA structure in the system includes a link layer module, a transaction layer module, an application layer module, a node controller module and a PCIE interface adapter module. The link layer module is used to send and receive data packets, read and write physical layer registers, and report status to the upper layer interface; The transaction layer module is used to receive data from the link layer module and decode or encode it, and receive a data sending request and encode it from the application layer module; The application layer module is used for configuration table information maintenance and message data reading and writing; The node controller module is used to control the operation of the node and provide a register configuration interface to the upper layer software; The PCIE interface transfer module is composed of an AXI interconnection module and a PCIE to AXI bus IP, and is used for converting PCIE interface data and Mil-1394b bus data to achieve data communication with a device with a PCIE interface.

2. The Mil-1394b data transmission system based on FPGA according to claim 1, characterized in that: The link layer module includes a link layer request module, a physical layer status receiving module, a data receiving module, a data sending module, a 1394b data decoding module and a 1394b data encoding module. The link layer request in the link layer request module includes a request to read and write a physical register and a request to apply for a serial bus authorization at the physical layer; The physical layer status receiving module is used to send status transmission when the physical layer has status information to be transmitted to the link layer; The 1394b data encoding module is used to receive a data transmission request from the transaction layer, generate a data packet according to the data transmission request from the transaction layer, and notify the data transmission module to arbitrate the bus for data transmission; The data sending module is used to send data packets; The data receiving module is used to receive data packets when the physical layer detects that there is data to be sent on the serial bus; The 1394b data decoding module is used to verify the data packet. If the verification is successful, the payload of the data packet is extracted and sent to the transaction layer module. If the verification is wrong, the error is reported to the node controller module.

3. The FPGA-based Mil-1394b data transmission system according to claim 2, characterized in that: The data packet is a STOF asynchronous stream data packet.

4. The FPGA-based Mil-1394b data transmission system according to claim 3, characterized in that: The transaction layer module includes a STOF decoding module, an ASM decoding module and an ASM encoding module. The STOF decoding module is used to receive the data of the link layer module and perform STOF decoding on it; The ASM decoding module is used to receive data from the link layer module, and if the channel number is equal to the channel monitored by the current node, perform ASM decoding on the payload of the 1394b data packet, extract data from the packet header, payload and packet tail, report them to the application layer module, and perform vertical parity check; The ASM encoding module is used to accept the message sending request of the application layer module, encode the data according to the ASM protocol and initiate a data sending request to the link layer module.

5. The FPGA-based Mil-1394b data transmission system according to claim 1, characterized in that: The configuration table information of Mil-1394b is stored in an off-chip SPI flash chip.

6. The FPGA-based Mil-1394b data transmission system according to claim 5, characterized in that: The configuration table information maintenance includes: configuration table version information, channel number monitored by this node; rate at which this node sends data, cycle time of STOF sending, sending offset, receiving offset, data pump offset of this node, number, length, message ID of messages received by this node, number, length, message ID, sending channel of messages sent by this node, and configuration table CRC check word.

7. The FPGA-based Mil-1394b data transmission system according to claim 1, characterized in that: The application layer module includes a message data processing module, which is used for reading and writing message data. If a valid configuration table is read, the node control configures the data storage module to configure the message ID that the node needs to receive and the message ID that needs to be sent, as well as the storage address of each message in the data storage module.

8. The FPGA-based Mil-1394b data transmission system according to claim 1, characterized in that: The node controller module includes a physical layer register acquisition module, a node status module, a remote node working status module, a register mapping module, an AXI-lite bus module and an asynchronous bus interface. The physical layer register acquisition module is used to periodically read the information of the physical layer, and the upper layer software can directly operate the physical layer register by operating the relevant registers; The node status module is used to record data transmission and reception and bus status, and store them in corresponding registers for upper-layer software to read; The remote node working status module is used to start timing after receiving the STOF packet, send the corresponding enable to the application layer module when the node's sending, receiving or data pump offset is reached, and judge the error status of CC according to STOF, and enter the normal working mode when certain conditions are met.

9. The FPGA-based Mil-1394b data transmission system according to claim 8, characterized in that: The information recorded by the node status module includes: the number of STOF packets received, the number of messages sent, the number of messages received, the number of received message channel errors, message ID errors, CRC errors and VPC errors, and the number of bus resets.

10. The FPGA-based Mil-1394b data transmission system according to claim 8, characterized in that: The physical layer register acquisition module periodically reads physical layer information including: port connection status, port negotiation speed and node ID.