Network communication method, system, device, storage medium and program product
By performing multi-channel service data arbitration scheduling and Ethernet encapsulation at the PL end of the ZYNQ architecture, generating standard Ethernet frames and writing them to the PS end DDR, the problems of high development difficulty and poor stability of the existing ZYNQ architecture in high-speed data transmission are solved, and efficient and flexible multi-service concurrent transmission is achieved.
Patent Information
- Application Number
- CN202611698183.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-30
- Publication Date
- 2026-11-27
AI Technical Summary
Existing ZYNQ architecture communication solutions for high-speed data transmission scenarios suffer from high development difficulty, low flexibility, severe resource contention, and poor data transmission stability, especially when multiple services share a transmission channel, which can easily lead to data conflicts and loss.
The ZYNQ programmable logic (PL) implements multi-channel service data arbitration scheduling and Ethernet layered protocol encapsulation, generates standard Ethernet frames and writes them to the PS terminal DDR, triggers the PS terminal to parse the data and performs multi-service data splitting based on the UDP port through a hardware interrupt signal.
It simplifies the development process, reduces expansion costs, improves the stability and efficiency of multi-service concurrent transmission, reduces data loss and resource contention, and enhances the system's expansion flexibility and communication efficiency.
Smart Images

Figure CN123178342A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communications, and more particularly to a network communication method, system, device, storage medium, and program product. Background Technology
[0002] The Zynq-7000 All Programmable System on Chip (ZYNQ) integrates the Programmable Logic (PL) side and the Processing System (PS) side, and is widely used in high-speed data processing and flexible logic control scenarios.
[0003] Currently, the mainstream communication solution for high-speed data scenarios in the ZYNQ architecture is the Advanced Extensible Interface Central Direct Memory Access (AXICDMA) transmission method. This method is based on high-performance (HP) ports to realize reverse high-speed data read and write between the PS and PL ends, and can achieve gigabit-level bandwidth transmission.
[0004] However, this solution can only handle raw data transfer and requires the development of supporting adaptation logic at the upper layer, which is difficult to implement. The transmission link lacks versatility, and the underlying hardware and drivers need to be modified when adding new services, resulting in high expansion costs and low flexibility. Multiple services sharing the transmission channel are prone to resource contention, data conflicts and loss, and poor stability and performance of parallel transmission. Summary of the Invention
[0005] This application provides a network communication method, system, device, storage medium, and program product that can solve the problem of long business expansion development cycles and improve the efficiency of multi-service concurrent transmission and system expansion flexibility.
[0006] In a first aspect, this application provides a network communication method applied to a fully programmable system-on-a-chip (ZYNQ) architecture. The ZYNQ architecture includes a programmable logic (PL) terminal and a processing system (PS) terminal. The method includes: the PL terminal performing arbitration scheduling on multiple service data streams to obtain a combined service data stream; the PL terminal performing layered encapsulation of the service data streams through a network protocol stack to generate standard Ethernet frames; the PL terminal writing the standard Ethernet frames in reverse to the double data rate memory (DDR) of the PS terminal and sending a hardware interrupt signal to the PS terminal; the PS terminal receiving the hardware interrupt signal, parsing the standard Ethernet frames in the DDR, and obtaining multiple service data streams isolated according to the User Datagram Protocol (UDP) port.
[0007] In one possible implementation, arbitration scheduling is performed on multiple service data streams to obtain a combined service data stream. This includes: each of the multiple services sending a transmission request to the arbitration unit at the PL end; the arbitration unit responding to each transmission request, selecting a target service from the multiple services using a polling mechanism, and returning a channel enable signal to the target service; the target service, upon receiving the channel enable signal, transmitting the corresponding target service data through the physical transmission channel; the target service sending a transmission completion signal to the arbitration unit after the target service data transmission is completed; and the arbitration unit, upon receiving the transmission completion signal, releasing the resources of the physical transmission channel and outputting the service data stream through the physical transmission channel using a time-division multiplexing method.
[0008] In one possible implementation, the multiplexed services and the arbitration unit perform transmission interaction based on an arbitration stream; the arbitration stream includes a request signal, a channel enable signal, and a transmission completion signal; the multiplexed services send transmission requests to the arbitration unit at the PL end, including: the multiplexed services pull up the request signal and send the transmission request to the arbitration unit.
[0009] In one possible implementation, the arbitration stream is constructed based on a burst stream; the burst stream includes a synchronization clock signal, a frame start signal, a data valid signal, a frame end signal, and a data signal; wherein the data valid signal may be active between the frame start signal and the frame end signal.
[0010] In one possible implementation, the PS end uses the native driver of the ZYNQ chip to parse standard Ethernet frames; the PL end simulates the management timing of the external physical layer PHY chip from the unit through the serial management interface SMI to adapt to the register access requirements of the native driver of the ZYNQ chip.
[0011] In one possible implementation, the method further includes: receiving an instruction for creating a new service, allocating a separate new UDP port for the new service on the PL end, so that the PS end can obtain the service data corresponding to the new service through the new UDP port.
[0012] Secondly, this application provides a communication system based on the fully programmable system-on-a-chip (ZYNQ) architecture. The ZYNQ architecture includes a programmable logic (PL) terminal and a processing system (PS) terminal. The PL terminal integrates an arbitration and scheduling module, a hardware protocol stack module, a data transfer module, and a serial management interface (SMI) slave unit. The arbitration and scheduling module is used to output the combined service data stream corresponding to multiple service data streams. The hardware protocol stack module is connected to the arbitration and scheduling module and is used to encapsulate the service data streams and generate standard Ethernet frames. The data transfer module is connected to the hardware protocol stack module and is used to write the standard Ethernet frames into the double data rate memory (DDR) of the PS terminal and trigger a hardware interrupt. The SMI slave unit is used to manage the SMI timing of the virtual external physical layer (PHY) chip so that the native Ethernet driver of the PS terminal can complete register interaction. The PS terminal integrates a native Ethernet driver and a frame parsing and distribution module. The frame parsing and distribution module is used to respond to hardware interrupts, read standard Ethernet frames, and separate multiple service data streams according to the User Datagram Protocol (UDP) port.
[0013] In one possible implementation, the arbitration scheduling module includes an arbitration unit; the arbitration unit is equipped with polling scheduling logic to schedule multiple services in a time-division manner, and the arbitration unit uses a time-division multiplexing method to output service data streams through the same physical transmission channel; multiple services and the arbitration unit achieve handshake interaction through an arbitration stream, which includes a request signal, a channel enable signal, and a transmission completion signal.
[0014] In one possible implementation, the arbitration stream is constructed based on a burst stream, which includes a synchronization clock signal, a frame start signal, a data valid signal, a frame end signal, and a data signal; wherein the data valid signal may be active between the frame start signal and the frame end signal.
[0015] In one possible implementation, the arbitration scheduling module receives an instruction to create a new service, and allocates a new independent UDP port for the new service on the PL end, so that the PS end can obtain the service data corresponding to the new service through the new UDP port.
[0016] Thirdly, this application provides a communication device, including: a memory and a processor;
[0017] The memory stores instructions that the computer executes;
[0018] The processor executes computer execution instructions stored in memory, causing the processor to perform the methods described above.
[0019] Fourthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the method provided above.
[0020] Fifthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the method provided above.
[0021] The network communication method, system, device, storage medium, and program product provided in this application achieve the effects of reducing CPU processing pressure, shortening data transmission links, facilitating rapid service expansion, and improving the efficiency of concurrent transmission of multiple services by completing multi-channel service data arbitration and combining, Ethernet layering and encapsulation at the PL end of ZYNQ, and then directly writing the encapsulated Ethernet frames into the DDR of the PS end and triggering a hardware interrupt. After receiving the interrupt, the PS splits multiple services according to the UDP port. Attached Figure Description
[0022] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0023] Figure 1 A flowchart illustrating the network communication method provided in this application;
[0024] Figure 2 This application provides a timing diagram of burst data stream transmission.
[0025] Figure 3 A timing diagram of the arbitration data stream transmission provided for this application;
[0026] Figure 4 A schematic diagram of the layered architecture of the communication system based on the ZYNQ architecture provided for this application;
[0027] Figure 5 A schematic diagram of the overall hardware implementation of the ZYNQ architecture network communication system provided in this application;
[0028] Figure 6 A schematic diagram of the communication device provided in this application.
[0029] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0030] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application.
[0031] With the rapid development of embedded communication devices, high-speed data transmission scenarios based on the ZYNQ architecture are becoming increasingly popular. The ZYNQ architecture combines the high-speed parallel processing capabilities of the PL end with the flexible scheduling advantages of the PS end, and is widely used in scenarios involving concurrent acquisition of multiple services and network transmission.
[0032] Currently, the ZYNQ architecture generally adopts the AXI CDMA transmission scheme. This scheme implements Direct Memory Access (DMA) transfer logic on the PL side and relies on the HP port to realize reverse read and write operations of the PL side to the Double Data Rate (DDR) memory on the PS side. It can achieve gigabit-level high-speed data transmission and supports high-speed data transfer between DDR, Block Random Access Memory (BRAM), and First In First Out (FIFO) queues.
[0033] However, AXI CDMA can only realize the transfer and interaction of the underlying raw data stream. It does not integrate network protocol stack processing logic itself, cannot independently complete Ethernet layer encapsulation, packet regularization and other operations, and does not have a native multi-service isolation mechanism. All protocol adaptation and service differentiation work requires the additional development of supporting logic by upper-layer software, which is cumbersome and has a large overall workload.
[0034] Meanwhile, the hardware link of this transmission scheme is highly tied to business requirements, and the transmission link lacks versatility. Whenever a new business channel is added or the business transmission rules are changed, the underlying hardware logic needs to be modified, the AXI CDMA register configuration needs to be adjusted, and the upper-layer driver needs to be updated accordingly. This results in high expansion and implementation costs and poor overall flexibility.
[0035] In addition, when multiple services share the same AXI CDMA transmission channel for data interaction, resource contention such as bus resource preemption and read / write conflicts can easily occur, leading to abnormal problems such as message corruption and data loss.
[0036] In view of this, this application provides a network communication method, which implements multi-channel service data arbitration scheduling and Ethernet layered protocol encapsulation at the PL end of ZYNQ, directly generates standard Ethernet frames and writes them to the DDR of the PS end, and then the PS end responds to hardware interrupts and completes multi-service data splitting based on UDP ports.
[0037] In this way, the PL end integrates protocol processing logic, completes Ethernet encapsulation, and achieves multi-service isolation based on UDP ports. This eliminates the need for additional protocol adaptation and service differentiation logic development in upper-layer software, simplifying the development process and reducing workload. Furthermore, the hardware transmission link and business logic are decoupled, so adding new service channels or adjusting business rules does not require modification of the underlying hardware, AXI CDMA configuration, or upper-layer drivers, resulting in lower expansion costs and greater versatility and flexibility. Multi-service transmission channels are time-division multiplexed through arbitration scheduling, reducing bus resource contention and read / write conflicts, minimizing transmission anomalies such as message corruption and data loss, and effectively improving the stability of concurrent transmission of multiple services and overall communication efficiency.
[0038] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0039] Figure 1 This is a flowchart illustrating the network communication method provided in this application. The method is applied to ZYNQ, whose architecture includes a PL (Plug-in) and a PS (Power Supply) terminal, and includes the following steps:
[0040] S101 and PL terminals perform arbitration scheduling on multiple service data streams to obtain the combined service data stream.
[0041] The PL terminal is responsible for the access, scheduling, and protocol encapsulation of multiple service data streams, while the PS terminal is responsible for interrupt response, frame parsing, and upper-layer service distribution.
[0042] Multiple business data streams correspond to multiple concurrent business sources. The business sources can be data output from the acquisition channel, control feedback data, status reporting data, or result data after protocol parsing. Each business data stream enters the buffer unit through different input interfaces inside the PL.
[0043] In practice, each service input channel is configured with a FIFO, channel identifier, and length counter. The PL terminal periodically detects the service status information of each input channel and determines the current output service channel based on preset arbitration rules.
[0044] Arbitration scheduling is used to select, transmit in time-division, and allocate resources for multiple service data, so that multiple services can enter the unified output path in a determined order when sharing the same transmission link, forming a combined service data stream.
[0045] In one possible implementation, control-type services with high real-time requirements can be assigned a higher scheduling priority, while high-throughput acquisition-type services can be given a higher scheduling weight, thereby ensuring that critical services are output first while maintaining continuous transmission of each channel.
[0046] In one possible implementation, arbitration scheduling is performed on multiple service data streams to obtain a combined service data stream. This includes: each of the multiple services sending a transmission request to the arbitration unit at the PL end; the arbitration unit responding to each transmission request, selecting a target service from the multiple services using a polling mechanism, and returning a channel enable signal to the target service; the target service, upon receiving the channel enable signal, transmitting the corresponding target service data through the physical transmission channel; the target service sending a transmission completion signal to the arbitration unit after the target service data transmission is completed; and the arbitration unit, upon receiving the transmission completion signal, releasing the resources of the physical transmission channel and outputting the service data stream through the physical transmission channel using a time-division multiplexing method.
[0047] For example, the PL terminal can be configured with a request register, an enable register, a completion feedback register, and a channel control register. The arbitration unit samples the request status of each service through a state machine, and after detecting that at least one service has set the request flag, it determines the target service according to the order pointed to by the loop pointer.
[0048] After the target service is determined, the arbitration unit writes the corresponding enable bit into the enable register and drives the channel enable signal to be valid, so that the data transmission logic of the target service obtains the right to occupy the physical transmission channel. This right to occupy can be maintained until all data frames of the target service are sent. The data of the target service can be output to the shared link through the buffer queue, FIFO or direct bus interface. After completion, the service side sets the completion flag and feeds it back to the arbitration unit.
[0049] Upon receiving the completion flag, the arbitration unit clears the current channel occupancy status, updates the polling pointer, and switches to the next target service, so that each service sequentially occupies the same physical transmission channel to output service data streams in a time-division multiplexing manner.
[0050] In this way, multiple services can complete orderly arbitration and sequential transmission at the PL end. The combined service data stream can be continuously output by the shared physical transmission channel. The release of channel resources and the switching of the next service have clear completion feedback constraints, thereby maintaining a stable scheduling relationship for concurrent transmission of multiple services and facilitating unified encapsulation with the network protocol stack in the future.
[0051] In one possible implementation, the multiplexed services and the arbitration unit perform transmission interactions based on an arbitration stream; the arbitration stream includes a request signal, a channel enable signal, and a transmission completion signal; the multiplexed services send transmission requests to the arbitration unit at the PL end, including: the multiplexed services pull up the request signal and send the transmission request to the arbitration unit.
[0052] For example, each of the multiple service sides sets a request register or request trigger bit corresponding to a service. The request signal is formed by the bit set by the request trigger bit. Normally, it is kept at a low level. When there is data to be sent in the service buffer, the service logic pulls the corresponding request signal high and keeps it valid until the channel enable signal returned by the arbitration unit is received before the request is cancelled.
[0053] The arbitration unit can be configured with control logic based on polling mechanism, fixed priority or time slice allocation. After detecting that a certain request signal is valid, it outputs the corresponding channel enable signal, enabling the target service to output service data through the physical transmission channel during the authorized period. After the target service returns the transmission completion signal, it releases the channel resources and continues to arbitrate the next service.
[0054] The request signal, channel enable signal, and transmission completion signal can be implemented using a level holding method, where the level holding time corresponds to the valid window of the service data, so that the arbitration logic can accurately identify the status of each signal.
[0055] It should be noted that in practical applications, the arbitration unit can also be constructed using status registers and handshake mechanisms of different bit widths, and this application does not limit this.
[0056] Through the aforementioned arbitration flow interaction method, multiple services can complete requests, authorizations, and termination confirmations using unified control signals. The arbitration unit then schedules these services in an orderly manner and releases channel resources, thus forming a continuous and identifiable transmission control relationship. Because the request signal is sent in a high-level manner, the service request state remains stable before the arbitration response, enabling the arbitration unit to reliably capture pending transmission requests and complete channel allocation. Using this method, the transmission control boundaries of multiple services are clear, the arbitration response process can be clearly identified, and the multiplexing and scheduling of physical transmission channels is more stable.
[0057] In one possible implementation, the arbitration stream is constructed based on a burst stream; the burst stream includes a synchronization clock signal, a frame start signal, a data valid signal, a frame end signal, and a data signal; wherein the data valid signal can be active between the frame start signal and the frame end signal.
[0058] For example, the arbitration unit maps the request signal onto the data signal line of the burst stream, and after latching the frame start signal on the rising edge of the synchronization clock signal, it enters the data valid window; within the valid window, the data signal sequentially carries the request identifier of the target service, the channel enable information returned by the arbitration, and the transmission completion mark.
[0059] The frame start signal can be raised for one clock cycle by the arbitration unit when initiating an arbitration interaction, and then the data valid signal is set so that the data signal is continuously output within a predefined word width; when the last valid word is transmitted, the arbitration unit sets the frame end signal and cancels the data valid signal, thereby completing the termination of a frame burst stream.
[0060] The burst stream can be implemented using registers, counters, and synchronous flip-flops in the Field Programmable Gate Array (FPGA) logic. The frame header, frame tail, and valid indication are all encoded using control bits of fixed width, which facilitates stable sampling under timing constraints at the PL end.
[0061] like Figure 2 The diagram shows the timing sequence for burst data stream transmission. This sequence includes the synchronization clock (clk) signal, the start of frame (sof) signal, the data valid (valid) signal, the end of frame (eof) signal, and the data signal. The definitions and timing relationships of each signal are as follows:
[0062] clk signal: Data stream synchronization clock signal, which is the unified clock reference for all other signals and is used for timing synchronization of each signal.
[0063] Sof signal: Start of data stream frame flag signal, active high, lasts only a single clock cycle, used to identify the start position of a data stream frame transmission, normally kept low.
[0064] Valid signal: Data enable signal, used in conjunction with the data signal; this signal is only effective within the range of the sof and eof signals, and can be continuously high or intermittently high in segments, and the level transition interval must not overlap with the high level interval of the sof and eof signals.
[0065] The eof signal is a data stream end-of-frame marker signal. It is active high and must be pulled high again after the valid signal is pulled low. It is used to indicate that a complete data stream frame has been transmitted.
[0066] The data signal transmits a data stream with a bit width of 8 bits, using single-byte serial transmission. The data being transmitted is valid only when the valid signal is high and the timing is between sof and eof.
[0067] Timing coordination logic: clk is the global timing reference. First, sof is pulled high to mark the start of a single-cycle flag frame, and then valid is continuously set high to synchronously output valid data. After all data transmission is completed, valid is pulled low, and then eof is pulled high to mark the end of the single-cycle flag frame transmission, thus fully realizing the standardized burst transmission of a frame of service data.
[0068] Furthermore, such as Figure 3 The diagram shown is a timing sequence diagram of the arbitration data stream transmission. The arbitration stream adds three sets of interactive handshake signals to the burst stream. The signals in the burst stream are described above and will not be repeated here.
[0069] The timing coordination relationships of the newly added signals in the arbitration stream are as follows:
[0070] Arbitration Stream Request (req) signal: When there is a burst data stream to be output on the service side, this signal is pulled high to initiate a transmission request to the arbitration unit; after receiving the arbitration stream response enable (en) signal from the arbitration unit, the req signal can be pulled low and the corresponding data stream can be output.
[0071] en signal: After receiving the req request, the arbitration unit pulls the en signal high as a response; after the service end detects that en is valid, it starts data output. After the single-channel complete data stream is transmitted, the arbitration unit pulls the en signal low to release the transmission channel.
[0072] Transmission completion feedback (Done, done) signal: After all data transmission of a single service is completed, the service side pulls the done signal high to inform the arbitration unit that the current channel transmission is complete. After receiving the signal, the arbitration unit can switch to schedule the next service to be transmitted.
[0073] Overall timing logic: The business side first raises req to initiate an arbitration request, and the arbitration unit returns en in response; after receiving en, the business side outputs a burst data stream marked with sof, valid, and eof; after all data transmission is completed, valid and eof are lowered, and then done is raised to notify the arbitration unit to release the channel, thus completing the complete arbitration transmission process for a single service.
[0074] By adopting a burst-based arbitration flow organization method, the arbitration unit can continuously transmit request, authorization, and completion status under a unified clock drive. The valid data signal defines the effective carrying range, while the frame start and frame end signals define the transmission boundaries, thus ensuring that arbitration interaction has a clear frame structure and stable sampling timing. This method enables the orderly transmission of arbitration information and service data within the same burst structure, while maintaining clear signal boundaries and consistent state transitions during multi-channel service scheduling.
[0075] The S102 and PL terminals use the network protocol stack to perform layered encapsulation of the combined service data streams, generating standard Ethernet frames.
[0076] The network protocol stack is deployed in the PL-side logic and is used to perform protocol-level encapsulation of the combined business data stream, converting it into data frames that the PS-side can recognize according to standard network formats.
[0077] A network protocol stack includes at least a transport layer encapsulation unit, a network layer encapsulation unit, and a link layer encapsulation unit.
[0078] The transport layer encapsulation unit generates a UDP header based on the port mapping information corresponding to the input service, binding different services to different UDP ports; the network layer encapsulation unit generates an Internet Protocol (IP) header and writes the source IP address, destination IP address, total length, protocol type, and header check field; the link layer encapsulation unit generates an Ethernet header and writes the source Media Access Control (MAC) address, destination MAC address, and type field, while appending a Cyclic Redundancy Check (CRC) to the end of the frame, ultimately forming a standard Ethernet frame.
[0079] A standard Ethernet frame is a transmission unit encapsulated at the PL end, containing a complete service payload, protocol header, and checksum information. Its frame structure meets the reading requirements of the network driver or protocol parsing software at the PS end.
[0080] In practice, after receiving the combined service data stream, the PL end first looks up the corresponding UDP source port and destination port according to the service type, then adds the service payload length and the UDP header length to obtain the UDP length field, and performs checksum calculation on the pseudo header, UDP header and service payload.
[0081] Subsequently, the network layer encapsulation unit calculates the total IP length field based on the current service segment length, writes the version number, header length, identifier, fragmentation control, time to live, and protocol number into the IP header, and performs IP header checksum calculation.
[0082] The link layer encapsulation unit writes the destination MAC address, source MAC address, and Ethernet type field after the preamble and start-of-frame delimiter, then sequentially concatenates the IP header, UDP header, and service payload, and iteratively calculates the frame check sequence bit by bit or byte by CRC generation module.
[0083] During the encapsulation process, the header parameters of each layer are stored in the PL configuration space in a register-configurable manner. The configuration content includes MAC address, IP address, UDP port correspondence, maximum payload length, and initial CRC value.
[0084] If the length of the business data exceeds the single frame carrying length, the PL end will divide it into multiple independent UDP packets and complete the full encapsulation of each packet.
[0085] S103 and PL end write standard Ethernet frames in reverse to the DDR of PS end and send a hardware interrupt signal to PS end.
[0086] DDR is a shared storage area accessible from the PS side, used to cache standard Ethernet frames generated by the PL side.
[0087] Reverse write means that the data generation end is located at the PL end, while the storage target is located in the DDR space addressable by the PS end. After the PL end completes frame encapsulation, it is not sent through an external physical network port, but is directly written to DDR through on-chip high-speed interconnect.
[0088] In practice, after the standard Ethernet frame is generated, the PL initiates a write transfer to the PS's DDR via the on-chip interface. The DDR contains a storage area for caching standard Ethernet frames. After the standard Ethernet frame is written, the PL sends a hardware interrupt signal to the PS to notify it that a new standard Ethernet frame has been written to the designated DDR area, and the parsing process can begin.
[0089] In practice, after performing a DDR write, the PL terminal updates the status information corresponding to the written standard Ethernet frame and outputs a hardware interrupt signal upon confirming the completion of the write. This hardware interrupt signal can be sent to the interrupt controller in the ZYNQ architecture, enabling the PS terminal to read the complete frame content after responding to the interrupt.
[0090] The S104 and PS terminals receive hardware interrupt signals, parse standard Ethernet frames in the DDR, and obtain multi-channel service data isolated by UDP ports.
[0091] The PS (Power Switch) consists of a processor, operating system, device driver, and upper-layer socket processing module. After receiving a hardware interrupt signal from the PL (Power Plug) terminal, the PS terminal first enters the interrupt service routine to read the shared status register or DDR metadata area to determine the starting address, frame length, and number of newly added standard Ethernet frames in DDR. Then, it submits the frames to be processed to the driver bottom half or the kernel network receive queue.
[0092] Standard Ethernet frames are parsed sequentially according to the Ethernet header, IP header, and UDP header. UDP is used to implement service isolation, and the UDP port is a service identification field that establishes a distinguishable receiving entry point for different services.
[0093] In practice, the PS driver first verifies the frame length, Ethernet type, and CRC result, then parses the protocol number, source address, and destination address in the IP header, and reads the destination port number in the UDP header after confirming that the transport layer protocol is UDP.
[0094] Based on a pre-established port-service mapping table, different UDP ports correspond to different service receiving channels, different socket processes, or different user-mode service threads, thereby obtaining multi-channel service data isolated by UDP port.
[0095] In practice, the interrupt service routine on the PS side only completes interrupt confirmation, read / write pointer update, and receive task wake-up. The actual protocol parsing is executed in the driver task or kernel thread to shorten the interrupt occupancy time.
[0096] The driver reads standard Ethernet frames from the DDR ring buffer by frame offset, copies them to the kernel network buffer or submits them to the protocol stack via zero-copy mapping, and then sequentially performs Ethernet layer stripping, IP layer checksum verification, and UDP layer port identification.
[0097] For port distribution, the PS can maintain a port lookup table in the kernel. The lookup table entries contain at least the UDP port number, the target socket descriptor, the service processing callback, and the buffer queue. When a UDP port number is read, the driver writes the frame payload to the corresponding service buffer and wakes up the socket process bound to that port.
[0098] In this way, even if the acquisition service, control service and status reporting service reuse the same on-chip transmission link from the PL end to the PS end, they can be split into non-confusing processing paths at the PS end according to the UDP port.
[0099] In one possible implementation, the PS runs a Linux system and registers the standard Ethernet frames in the DDR as virtual network cards to receive data through the network driver. Then, the kernel UDP protocol stack delivers the packets of different ports to their respective sockets. In another implementation, the PS directly reads the DDR frame buffer by a dedicated user-space program and performs standard Ethernet, IP and UDP header parsing on its own, as long as the service data is distributed according to the UDP port.
[0100] In one possible implementation, the PS end uses the native driver of the ZYNQ chip to parse standard Ethernet frames; the PL end uses the Serial Management Interface (SMI) to simulate the management timing of the external physical layer (PHY) chip from the unit, in order to adapt to the register access requirements of the native driver of the ZYNQ chip.
[0101] After receiving a standard Ethernet frame written to DDR by the PL, the PS terminal calls the native driver of the ZYNQ chip to complete frame header recognition, protocol field parsing, and payload extraction, and then hands over the parsed service data to the socket interface or upper-layer service module for processing.
[0102] The SMI slave unit at the PL end organizes its response timing according to the management data clock (MDC) and management data input / output (MDIO) data line management protocols. During read operations, it returns the preset link status, negotiation parameters, or control register values. During write operations, it receives the target configuration issued by the driver and updates the internal state machine.
[0103] The SMI slave unit can be logically configured to have the same address response format, start / end bit timing, and tri-state switching mode as the actual external PHY chip, so that the native driver of the ZYNQ chip can complete management access without additional modifications.
[0104] In one specific implementation, the PL side can map the address number, link enable bit, and status readback bit of the SMI slave unit to the corresponding register space on the driver side. During driver access, read and write operations are initiated directly according to the PHY access procedure, and the SMI slave unit returns the corresponding response data accordingly. The timing generation logic used can be implemented based on the FPGA's internal clock division.
[0105] In this way, the PS end can directly rely on the existing ZYNQ chip's native driver to complete standard Ethernet frame parsing, while the PL end meets the driver's established interface requirements for register access by using an external physical layer PHY chip for timing simulation. This reduces the introduction of additional adaptation software and maintains a standardized and reusable driver interaction relationship between the PL and PS ends. With this architecture, the system can achieve frame parsing and link management coordination without changing the PS end's main driver framework, reducing the complexity of communication interface modifications and improving compatibility with the existing ZYNQ platform software stack.
[0106] In one possible implementation, the method further includes: receiving an instruction to create a new service, allocating a separate new UDP port for the new service on the PL end, so that the PS end can obtain the service data corresponding to the new service through the new UDP port.
[0107] The PS terminal or the upper control module sends an instruction to create a new service. After receiving the instruction, the PL terminal reads the currently available port resource pool and selects an unused UDP port number for the new service. The allocated UDP port number establishes a one-to-one correspondence with the service identifier of the service.
[0108] Subsequently, the PL end encapsulates the new service data into a standard Ethernet frame associated with the UDP port and writes the corresponding destination UDP port information into the frame header, so that the PS end can identify the service based on the port information when parsing the received data frame.
[0109] To facilitate port management, the PL terminal can also record new service identifiers, UDP port numbers, data types, and reception status in the internal port table. When a new service is deleted or deactivated, the corresponding port is released and the port resources are reclaimed. Using UDP ports as service isolation identifiers allows new services to access independently without altering existing transmission links and parsing logic.
[0110] In this method, the creation command triggers the PL end to complete port allocation and binding. Subsequently, the PL end outputs the corresponding service data frame according to the new UDP port. The PS end completes matching and data retrieval on the receiving side based on the port number, thereby distinguishing the data of the newly added service from the data of the existing service.
[0111] In this way, new services can directly access the existing communication system through independent UDP ports, which maintains the isolation between services and reduces the amount of modification to the underlying transmission structure and existing processing logic, making the configuration and adaptation process when expanding services simpler.
[0112] Therefore, the network communication method of this application performs arbitration scheduling on multiple service data streams through the PL end of the ZYNQ architecture to obtain a combined service data stream. Then, the PL end encapsulates the service data stream layer by layer through the network protocol stack to generate standard Ethernet frames. The PL end further writes the standard Ethernet frames in reverse to the DDR of the PS end and simultaneously sends a hardware interrupt signal. The PS end responds to the hardware interrupt, parses the standard Ethernet frames stored in the DDR, and finally obtains multiple service data streams isolated from each other based on UDP ports. This fully realizes the integrated embedded data transmission process of hardware-side front-end data processing and processor-side parsing and splitting. In this way, the protocol encapsulation and other data processing functions are implemented by the PL, eliminating the need for additional adaptation logic to be written in the upper-layer software, effectively simplifying the development process and reducing development difficulty. The underlying transmission channel is decoupled from the service logic, so there is no need to modify the hardware logic, register configuration, and driver code when adding or adjusting services, which significantly improves the versatility and scalability of the solution. At the same time, the arbitration mechanism reasonably schedules multiple data streams, reducing bus resource contention caused by concurrent transmission of multiple services, reducing message corruption and data loss problems, and greatly improving the stability of concurrent transmission of multiple streams.
[0113] This application provides a communication system based on the ZYNQ fully programmable system-on-a-chip architecture. The ZYNQ architecture includes a programmable logic (PL) terminal and a processing system (PS) terminal. The PL terminal integrates an arbitration and scheduling module, a hardware protocol stack module, a data transfer module, and a serial management interface (SMI) slave unit. The arbitration and scheduling module is used to output the combined service data stream corresponding to multiple service data streams. The hardware protocol stack module, connected to the arbitration and scheduling module, is used to encapsulate the service data stream and generate standard Ethernet frames. The data transfer module, connected to the hardware protocol stack module, is used to write the standard Ethernet frames into the double data rate memory (DDR) of the PS terminal and trigger a hardware interrupt. The SMI slave unit is used to manage the SMI timing of the virtual external physical layer (PHY) chip, enabling the native Ethernet driver of the PS terminal to complete register interaction. The PS terminal integrates a native Ethernet driver and a frame parsing and distribution module. The frame parsing and distribution module is used to respond to hardware interrupts, read standard Ethernet frames, and separate multiple service data streams according to the User Datagram Protocol (UDP) port.
[0114] By setting up an arbitration scheduling module at the PL end to combine multiple services, the data organization and transmission order control of concurrent services can be completed in advance, thereby reducing competition and boundary chaos when multiple channels are transmitted simultaneously.
[0115] The hardware protocol stack module directly encapsulates the combined service data stream into standard Ethernet frames, enabling data interaction between PL and PS to have a standardized message format, thereby facilitating the PS end to reuse native network processing capabilities.
[0116] The data transfer module writes standard Ethernet frames into DDR and triggers hardware interrupts, enabling large data transfer to be coordinated with frame arrival notifications, thus balancing transmission bandwidth and real-time response.
[0117] SMI virtualizes the PHY management timing from the unit, enabling the native Ethernet driver on the PS side to complete register interaction without relying on a real external PHY, thereby reducing the complexity of software and hardware adaptation.
[0118] The frame parsing and distribution module further separates multiple services based on UDP ports, enabling each service to maintain independent identification and flexible expansion capabilities under the same link, thereby improving system development efficiency and maintenance convenience.
[0119] In one possible implementation, the arbitration scheduling module includes an arbitration unit; the arbitration unit is equipped with polling scheduling logic to schedule multiple services in a time-division manner, and the arbitration unit uses a time-division multiplexing method to output service data streams through the same physical transmission channel; multiple services and the arbitration unit achieve handshake interaction through an arbitration stream, which includes a request signal, a channel enable signal, and a transmission completion signal.
[0120] The polling scheduling logic can check the request signals of each service in a predefined order. After detecting a valid request for a certain service, it outputs the corresponding channel enable signal, enabling the service to occupy the arbitration unit to complete the transmission in the current time slot. After the service output is completed, it releases the current channel according to the transmission completion signal and switches to the next service.
[0121] This allows multiple services to be transmitted in an orderly manner on the same physical transmission channel, reducing link conflicts and boundary confusion caused by concurrent direct connections; it also enables all services to access the arbitration unit through a unified handshake mechanism, making it easier to maintain consistent interface rules when services are added or removed, thereby reducing the complexity of logic expansion at the PL end and supporting processing at the PS end. Therefore, it can balance transmission real-time performance, service isolation, and system scalability.
[0122] In one possible implementation, the arbitration stream is constructed based on a burst stream, which includes a synchronization clock signal, a frame start signal, a data valid signal, a frame end signal, and a data signal; wherein the data valid signal can be active between the frame start signal and the frame end signal.
[0123] In one possible implementation, the arbitration scheduling module receives an instruction to create a new service, and allocates a new independent UDP port for the new service on the PL side, so that the PS side can obtain the service data corresponding to the new service through the new UDP port.
[0124] When a new acquisition channel, control channel, or status reporting channel is added during system operation, the arbitration scheduling module directly binds the new service to the new UDP port on the PL end according to the creation instruction, so that the new service has an independent port identifier and transmission exit from the moment it is established.
[0125] Thus, after receiving standard Ethernet frames and performing UDP parsing, the PS end can directly identify, extract, and distribute the corresponding service data by port without sharing the same identification rules with existing services, making the boundaries between multiple services clearer.
[0126] Furthermore, new services can complete the entire transmission process of arbitration combining, protocol encapsulation, data transfer and frame parsing based on the network communication methods mentioned above, without needing to modify the underlying data parsing framework of the PS end, thus reducing the development and debugging costs of service expansion.
[0127] In this way, when adding new services, there is no need to significantly change the original link organization method and existing service parsing process. Therefore, it can reduce the complexity of software and hardware co-adaptation, improve the system expansion flexibility, and enhance the service isolation, maintenance convenience and upgrade efficiency in concurrent transmission scenarios.
[0128] Figure 4 A schematic diagram of the layered architecture of the communication system based on the ZYNQ architecture provided in this application.
[0129] The upper-layer multi-channel service input section contains N parallel service data streams, including PL service 1, PL service 2, and up to PL service N, all of which are connected to the lower PL-end hardware processing unit.
[0130] The PL side includes: an arbitration scheduling module, a hardware protocol stack module, a data transfer module, and an SMI slave unit.
[0131] The arbitration scheduling module receives all multi-channel service data from the PL end, performs hardware arbitration scheduling operations, regularizes the timing of multi-channel parallel services, and outputs a single-channel ordered combined service data stream.
[0132] The hardware protocol stack module receives the combined service data stream output by the arbitration and scheduling module, completes MAC and IP layered encapsulation, generates standard Ethernet frames, and realizes standardized protocol encapsulation of service data.
[0133] The data transfer module interfaces with the hardware protocol stack module, receives the encapsulated standard Ethernet frames, writes the Ethernet frames in reverse to the PS-side DDR, and simultaneously sends a hardware interrupt signal to the PS-side to actively notify the PS-side that there are service frames to be parsed.
[0134] SMI simulates the MDC and MDIO management timing of the external PHY chip from the unit, adapting to the register interaction requirements of the native Ethernet driver on the PS side, so that the register configuration path between the PL and the PS Ethernet hardware can work normally.
[0135] After the PL end completes the arbitration and combining of multiple services, protocol encapsulation, data transfer and hardware timing adaptation, it transmits the processed standard Ethernet frames to the PS end.
[0136] The PS side includes: native Ethernet driver, Linux operating system, and frame parsing and distribution module.
[0137] The native Ethernet driver is used to receive hardware interrupt signals reported by the PL end, read standard Ethernet frames stored in DDR, and complete the underlying hardware data interaction.
[0138] The Linux operating system provides the runtime environment for Ethernet drivers and upper-layer frame parsing and distribution modules, and offers basic system scheduling capabilities.
[0139] The frame parsing and distribution module receives Ethernet frames transmitted by the native Ethernet driver, parses the UDP ports within the frames, and distinguishes each independent service data based on different UDP ports.
[0140] After being separated by the frame parsing and distribution module, the multiple service data are sent to the socket processes corresponding to service processing 1, service processing 2 and so on up to service processing N. Each socket process independently corresponds to one original PL service, realizing the isolation of each service data and independent service processing, and completing the entire network communication data flow.
[0141] Figure 5 A schematic diagram of the overall hardware implementation of the ZYNQ architecture network communication system provided in this application.
[0142] The PS clock and PS reset output signals respectively to generate two types of reset signals: control reset and service reset. At the same time, a 100M reference clock is provided to supply the bus logic. The phase-locked loop (PLL) receives external clock input and provides the working clock for the Ethernet hardware on the PL side.
[0143] The PS side is equipped with two sets of Advanced Extensible Interface Interconnect (AXI Interconnect) bus interconnect units. One set completes register configuration interaction through the lightweight Advanced Extensible Interface Lite (axi_lite) bus and connects to the upper-layer Ethernet driver of the Linux operating system through the General Purpose Output (GPO) port.
[0144] Another set of AXI Interconnects establishes a data path with the native Ethernet driver within the Linux operating system through the High Performance Output (HPO) port for the interactive transmission of large volumes of business data. Simultaneously, it interfaces with the Advanced Extensible Interface Central Direct Memory Access (AXI CDMA) unit via the standard Advanced Extensible Interface (AXI). This AXI CDMA can be understood as the hardware carrier of the data transport module mentioned above, responsible for writing the standard Ethernet frames generated at the PL end back to the PS end DDR, while also aggregating interrupt signals.
[0145] The AXI CDMA interconnects with the Gigabit / 2.5G AXI Ethernet hard core (Advanced Extensible Interface Ethernet 1G / 2.5G, AXI eth 1G / 2.5G), transmitting data (tx_data), enabling (tx_en), receiving data (rx_data), and valid (rx_dv) signals. The AXI eth 1G / 2.5G provides MDC and MDIO signals to an external SMI (Slave Unit) for managing the timing of a virtual external PHY chip, adapting to the PS-side native Ethernet driver register access requirements. The AXI eth 1G / 2.5G interfaces with the PL-side MAC layer hardware logic via the Transmit Gigabit Media Independent Interface (tx_gmii) and Receive Gigabit Media Independent Interface (rx_gmii), with cross-domain signal interaction implemented via the PS-PL bridge.
[0146] The interrupt aggregation logic includes a bit splicing module, which is used to aggregate hardware interrupt signals reported by the PL terminal and forward them to the native Ethernet driver in the Linux operating system. The native Ethernet driver, the Linux operating system, and the Ethernet application layer constitute the software processing link on the PS terminal.
[0147] The hardware logic of the PL end is divided into three layers from bottom to top: the transport layer, the network layer, and the MAC layer.
[0148] The transport layer includes multiple UDP sending units and UDP receiving units. UDP sending-01 to UDP sending-N correspond to multiple input service streams. The length of a single service stream ranges from 1 to 1472 bytes. Each service stream can independently receive parameter inputs and interrupt inputs. When a new service channel is added to the system, the arbitration scheduling module can allocate an independent UDP port.
[0149] All multi-channel UDP sending units in the transport layer are connected to the sending combiner arbitration module, which integrates an arbitration unit. The multi-channel services and the arbitration unit interact through an arbitration stream handshake. The arbitration stream includes the req signal, en signal, and done signal. The arbitration stream is built based on a burst stream, which includes the clk signal, sof signal, valid signal, eof signal, and data signal.
[0150] The arbitration unit uses a polling and time-sharing multiplexing mechanism to schedule multiple services and integrate parallel services to output a single-path ordered combined service data stream.
[0151] The combined service data stream output from the sending and combining arbitration module is fed into the Address Resolution Protocol (ARP) and Internet Control Message Protocol (ICMP). These two protocol stacks, together with the Ethernet Transmit (eth_tx) module, the Ethernet Receive (eth_rx) module, and the Frame Check Sequence (FCS) verification logic, constitute the hardware protocol stack module. The hardware protocol stack module completes the MAC layer and network layer layer encapsulation to generate standard Ethernet frames.
[0152] The encapsulated standard Ethernet frame is sent to the AXI eth 1G / 2.5G via the Gigabit Media Independent Interface (GMII) interface, and then transported to the PS-side DDR by the AXI CDMA. At the same time, a hardware interrupt signal is sent to the PS-side. After the PS-side native Ethernet driver responds to the interrupt, the frame parsing and distribution module reads the standard Ethernet frame, distinguishes multiple service data according to the UDP port, and obtains the isolated service data.
[0153] Figure 6 A schematic diagram of the communication device provided in this application. Figure 6 As shown, the communication device 60 provided in this embodiment includes at least one processor 601 and a memory 602. Optionally, the communication device 60 further includes a communication component 603. The processor 601, memory 602, and communication component 603 are connected via a bus 604.
[0154] In a specific implementation, at least one processor 601 executes computer execution instructions stored in memory 602, causing at least one processor 601 to perform the above-described method.
[0155] The specific implementation process of processor 601 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.
[0156] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.
[0157] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.
[0158] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.
[0159] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.
[0160] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.
[0161] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.
[0162] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.
[0163] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0164] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0165] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0166] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0167] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0168] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope.
Claims
1. A network communication method, characterized in that, Applied to the ZYNQ architecture of a fully programmable system-on-a-chip, the ZYNQ architecture includes a programmable logic (PL) terminal and a processing system (PS) terminal, the method includes: The PL terminal performs arbitration scheduling on multiple service data streams to obtain a combined service data stream. The PL terminal performs layered encapsulation of the service data stream through a network protocol stack to generate standard Ethernet frames. The PL end writes the standard Ethernet frame in reverse to the double data rate memory DDR of the PS end, and sends a hardware interrupt signal to the PS end; The PS terminal receives the hardware interrupt signal, parses the standard Ethernet frame in the DDR, and obtains multiple service data isolated according to the User Datagram Protocol (UDP) port.
2. The method according to claim 1, characterized in that, The arbitration scheduling of multiple service data streams to obtain a combined service data stream includes: Multiple services send transmission requests to the arbitration unit at the PL end respectively; The arbitration unit responds to each transmission request, selects a target service from the multiple services using a polling mechanism, and returns a channel enable signal to the target service. After receiving the channel enable signal, the target service will transmit the corresponding target service data through the physical transmission channel. The target service sends a transmission completion signal to the arbitration unit after the target service data transmission is completed; Upon receiving the transmission completion signal, the arbitration unit releases the resources of the physical transmission channel and outputs the service data stream through the physical transmission channel using a time-division multiplexing method.
3. The method according to claim 2, characterized in that, The multiple services and the arbitration unit perform transmission and interaction based on an arbitration stream; the arbitration stream includes a request signal, a channel enable signal, and a transmission completion signal. The multiple services respectively send transmission requests to the arbitration unit at the PL end, including: The multiple services raise the request signal and send the transmission request to the arbitration unit.
4. The method according to claim 3, characterized in that, The arbitration stream is constructed based on a burst stream; the burst stream includes a synchronization clock signal, a frame start signal, a data valid signal, a frame end signal, and a data signal; The data valid signal can be effective between the frame start signal and the frame end signal.
5. The method according to claim 1, characterized in that, The PS terminal uses the native driver of the ZYNQ chip to parse the standard Ethernet frame; The PL terminal simulates the management timing of the external physical layer PHY chip from the unit through the serial management interface SMI to adapt to the register access requirements of the native driver of the ZYNQ chip.
6. The method according to claim 1, characterized in that, The method further includes: receiving an instruction for creating a new service, allocating a new independent UDP port for the new service on the PL end, so that the PS end can obtain the service data corresponding to the new service through the new UDP port.
7. A communication system based on the fully programmable system-on-a-chip (ZYNQ) architecture, characterized in that, The ZYNQ architecture includes a programmable logic (PL) terminal and a processing system (PS) terminal. The PL terminal integrates an arbitration scheduling module, a hardware protocol stack module, a data transfer module, and a serial management interface (SMI) slave unit. The arbitration scheduling module is used to output the combined service data stream corresponding to multiple service data streams; The hardware protocol stack module is connected to the arbitration and scheduling module and is used to encapsulate the service data stream and generate standard Ethernet frames. The data transfer module is connected to the hardware protocol stack module and is used to write the standard Ethernet frame into the double data rate memory DDR of the PS end and trigger a hardware interrupt. The SMI slave unit is used to virtualize the SMI management timing of the external physical layer PHY chip, so that the PS end native Ethernet driver can complete register interaction; The PS terminal integrates native Ethernet driver and frame parsing and distribution module; The frame parsing and distribution module is used to respond to hardware interrupts, read the standard Ethernet frame, and separate multiple service data according to the User Datagram Protocol (UDP) port.
8. The communication system according to claim 7, characterized in that, The arbitration scheduling module includes an arbitration unit; The arbitration unit is equipped with polling scheduling logic to schedule multiple services in a time-division manner. The arbitration unit uses a time-division multiplexing method to output the service data stream through the same physical transmission channel. The multiple services and the arbitration unit communicate via a handshake through an arbitration stream, which includes a request signal, a channel enable signal, and a transmission completion signal.
9. The communication system according to claim 8, characterized in that, The arbitration stream is constructed based on a burst stream, which includes a synchronization clock signal, a frame start signal, a data valid signal, a frame end signal, and a data signal. The data valid signal can be effective between the frame start signal and the frame end signal.
10. The communication system according to any one of claims 7 to 9, characterized in that, The arbitration scheduling module receives an instruction to create a new service and allocates a new independent UDP port for the new service on the PL end, so that the PS end can obtain the service data corresponding to the new service through the new UDP port.
11. A communication device, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1-6.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-6.
13. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method described in any one of claims 1-6.
