Assembly line operation processing system and processing method thereof

By introducing read nodes, sampling decision nodes, calculation feedback nodes and write nodes into the pipeline operation processing system, feedback logic is implemented, which solves the problem that existing technology cannot adapt to feedback logic and real-time processing requirements, and improves the data processing efficiency and performance of the system. Latency performance.

CN118550858APending Publication Date: 2024-08-27BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310191067.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-24
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

The existing open-loop pipeline operation and processing system cannot adapt to the closed-loop system with feedback logic and real-time processing requirements, and cannot achieve effective processing and real-time calculation of dynamic data.

Method used

A pipeline operation processing system is designed, including a read node, a sampling decision node, a calculation feedback node, and a write node. Feedback is provided through the calculation feedback node, and the feedback node is judged through the sampling decision node to implement feedback logic and meet the requirements of the closed-loop system. need.

Benefits of technology

It realizes efficient data processing and real-time calculation of closed-loop systems, avoids data accumulation, and ensures low latency and reliability of event-sensitive network data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550858A
    Figure CN118550858A
Patent Text Reader

Abstract

The invention discloses a pipeline operation processing system and method, and the system comprises a plurality of nodes which are in communication connection in sequence, the nodes at least comprise a reading node, a sampling judgment node, a calculation feedback node, a writing node and a memory, and the input end of the reading node is in communication connection with the input end of an external input end; the output end is in communication connection with the input end of the memory; the input end of the sampling judgment node is in communication connection with the output end of the reading node and the output end of the memory, and the output end is in communication connection with the input end of the calculation feedback node; the output end of the calculation feedback node is in communication connection with the input end of the writing node, and the output end is in communication connection with the feedback input end of the reading node and the feedback input end of the sampling judgment node; and the output end of the writing node is in communication connection with the input end of the memory and the external output end. According to the pipeline operation processing system, feedback logic is realized, the requirements of a closed-loop system are met, and a flow implementation operation processing system with the feedback logic is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field related to digital circuits, and in particular to a pipeline operation processing system and a processing method thereof. Background Art

[0002] For Field Programmable Gate Array (FPGA) / Application Specific Integrated Circuit (ASIC) digital circuits, pipeline design can greatly improve computing efficiency and increase the data throughput of the system.

[0003] However, the existing pipeline operation processing systems are all open-loop pipeline operation processing systems, which output a read address to the memory through the first node, then obtain memory data about the read address from the memory through the second node, and then process the data through the third node, and write the processed data to the same address through the fourth node. Therefore, the address cannot be changed during the entire process, otherwise errors are prone to occur. Therefore, the application scenarios of the existing pipeline operation processing system are only applicable to table item queries for static data, or memory reading and writing with open-loop control. For closed-loop systems with feedback logic and real-time processing requirements, it is impossible to implement them using the existing open-loop pipeline operation processing system. Summary of the invention

[0004] Based on this, it is necessary to provide a pipeline operation processing system and a processing method thereof to address the technical problem that the pipeline operation processing system in the prior art cannot adapt to the needs of a closed-loop system with feedback logic and real-time processing requirements.

[0005] The present invention provides a pipeline operation processing system, comprising: a plurality of nodes connected in sequence for communication, wherein the nodes at least include a read node, a sampling decision node, a calculation feedback node, a write node and a memory,

[0006] The input end of the read node is communicatively connected to the input end of the external input end, and the output end is communicatively connected to the input end of the memory;

[0007] The input end of the sampling decision node is communicatively connected to the output end of the read node and the output end of the memory, and the output end is communicatively connected to the input end of the calculation feedback node;

[0008] The output end of the calculation feedback node is communicatively connected to the input end of the write node, and the output end is communicatively connected to the feedback input end of the read node and the feedback input end of the sampling decision node;

[0009] The output end of the write node is communicatively connected with the input end of the memory and the external output end.

[0010] Furthermore, the external input terminal includes a valid bit input terminal and an address input terminal, and the read node, the sampling decision node, and the calculation feedback node all include an address register and a first valid bit register.

[0011] The input end of the address register of the read node is communicatively connected to the address input end, the output end of the address register of the read node is communicatively connected to the input end of the memory, the input end of the first valid bit register of the read node is communicatively connected to the valid bit input end, and the output end of the first valid bit register of the read node is communicatively connected to the input end of the memory;

[0012] The input end of the address register of the sampling decision node is communicatively connected to the output end of the address register of the read node, the output end of the address register of the sampling decision node is communicatively connected to the input end of the address register of the calculation feedback node, the input end of the first valid bit register of the sampling decision node is communicatively connected to the output end of the first valid bit register of the read node, and the output end of the first valid bit register of the sampling decision node is communicatively connected to the input end of the first valid bit register of the calculation feedback node;

[0013] The output end of the address register of the calculation feedback node is also communicatively connected to the input end of the memory.

[0014] Furthermore, the read node further includes a second valid bit register, a feedback data register, a first feedback logic circuit and a second feedback logic circuit, and the sampling decision node further includes a second valid bit register and a feedback data register, wherein:

[0015] The first valid bit register and the address register of the read node are respectively connected to the first input end of the first feedback logic circuit of the read node in communication, the second valid bit register and the feedback data register of the read node are respectively connected to the second input end of the first feedback logic circuit of the read node in communication, and the output end of the first feedback logic circuit of the read node is respectively connected to the second valid bit register and the feedback data register of the sampling decision node in communication;

[0016] The valid bit input terminal and the address input terminal are respectively connected to the first input terminal of the second feedback logic circuit of the read node, and the output terminal of the second feedback logic circuit of the read node is respectively connected to the second valid bit register and feedback data register of the read node.

[0017] Furthermore, the sampling decision node further includes a first feedback logic circuit and a decision logic circuit, and the calculation feedback node further includes an output data register, wherein:

[0018] The first valid bit register and the address register of the sampling decision node are respectively communicatively connected to the first input end of the first feedback logic circuit of the sampling decision node, the second valid bit register and the feedback data register of the sampling decision node are respectively communicatively connected to the second input end of the first feedback logic circuit of the sampling decision node, the output end of the first feedback logic circuit of the sampling decision node is communicatively connected to the second input end of the decision logic circuit, the first input end of the decision logic circuit is communicatively connected to the output end of the memory, the first valid bit register and the address register of the sampling decision node are respectively communicatively connected to the third input end of the decision logic circuit, and the output end of the decision logic circuit is respectively communicatively connected to the address register, the first valid bit register and the output data register of the calculation feedback node.

[0019] Further, the external output terminal includes a valid bit output terminal and a data output terminal, the calculation feedback node also includes a calculation logic circuit, and the write node includes a first valid bit register and an output data register, wherein:

[0020] The address register, the first valid bit register and the output data register of the calculation feedback node are respectively connected to the input end of the calculation logic circuit in communication, the first output end of the calculation logic circuit is respectively connected to the feedback input end of the first feedback logic circuit of the read node, the feedback input end of the second feedback logic circuit of the read node and the feedback input end of the first feedback logic circuit of the sampling decision node in communication, and outputs the calculation result valid bit, the calculation result address and the calculation result data, and the second output end of the calculation logic circuit is respectively connected to the input end of the first valid bit register of the write node, the input end of the output data register of the write node and the input end of the memory in communication;

[0021] The output end of the first valid bit register of the write node is communicatively connected to the valid bit output end, and the output end of the output data register of the write node is communicatively connected to the data output end and the input end of the memory respectively.

[0022] Furthermore, the node also includes a read waiting node, and a first output end of the read node is communicatively connected to a first input end of the sampling decision node through one or more read waiting nodes.

[0023] The present invention provides a processing method of the pipeline operation processing system as described above, comprising:

[0024] In each clock cycle:

[0025] The read node receives address information from an external input terminal, receives calculation result data from the calculation feedback node, outputs a read address to the memory according to the received address information, and transmits the address information and the calculation result data to the next node;

[0026] The sampling decision node receives memory data about the read address from the memory, receives the calculation result data and the calculation result address from the calculation feedback node, compares the calculation result address with the address information, selects the calculation result data received by the calculation feedback node, the calculation result data transmitted by the previous node, or the memory data as the decision data based on the comparison result, outputs the decision data to the calculation feedback node and transmits the address information;

[0027] After performing logic calculation on the received decision data, the calculation feedback node outputs the calculation result data and transmits the address information to the write node, and feeds back the calculation result data and the calculation result address to the read node and the sampling decision node;

[0028] The write node writes the calculation result data into the memory according to the address information, and outputs the calculation result data.

[0029] Furthermore, the calculation feedback node also feeds back the calculation result valid bit to the read node and the sampling decision node, the address information includes address data and valid bit data, the read node and the sampling decision node both include a first feedback logic circuit, an address register, a first valid bit register, a second valid bit register, and a feedback data register, and in each clock cycle, the first feedback logic circuit executes:

[0030] If the calculation result valid bit received by the first feedback logic circuit from the calculation feedback node is consistent with the data of the first valid bit register received by the first input terminal of the first feedback logic circuit and is set, and if the calculation result address received by the first feedback logic circuit from the calculation feedback node is consistent with the data of the address register received by the first input terminal of the first feedback logic circuit, then the feedback valid bit output by the output terminal of the first feedback logic circuit is the calculation result valid bit received by the feedback input terminal of the first feedback logic circuit, and the feedback data output by the output terminal of the first feedback logic circuit is the calculation result data received by the feedback input terminal of the first feedback logic circuit;

[0031] Otherwise, the feedback valid bit outputted by the output end of the first feedback logic circuit is the data of the second valid bit register received by the second input end of the first feedback logic circuit, and the feedback data outputted by the output end of the first feedback logic circuit is the data of the feedback data register received by the second input end of the first feedback logic circuit.

[0032] Furthermore, the sampling decision node further includes a decision logic circuit, and the calculation feedback node further includes an address register, a first valid bit register, and an output data register. In each clock cycle, the decision logic circuit executes:

[0033] The output end of the decision logic circuit outputs the data of the address register received by the third input end of the decision logic circuit to the address register of the calculation feedback node, outputs the data of the first valid bit register received by the third input end of the decision logic circuit to the first valid bit register of the calculation feedback node, and:

[0034] If the feedback received at the second input terminal of the decision logic circuit is set to a valid position, the output terminal of the decision logic circuit outputs the feedback data received at the second input terminal of the decision logic circuit to the output data register of the calculation feedback node; otherwise

[0035] The output end of the decision logic circuit outputs the memory data of the memory received by the first input end of the decision logic circuit to the output data register of the calculation feedback node.

[0036] Furthermore, the computation feedback node further includes a computation logic circuit, and in each clock cycle, the computation logic circuit executes:

[0037] If the data of the first valid bit register received by the input end of the calculation logic circuit is set, a preset logic operation is performed on the data of the output data register received by the input end of the calculation logic circuit to obtain calculation result data, and the calculation result data is output from the output end of the calculation logic circuit.

[0038] Furthermore, the external input terminal includes a valid bit input terminal and an address input terminal, and the read node further includes a second feedback logic circuit. In each clock cycle, the second feedback logic circuit executes:

[0039] If the calculation result valid bit received at the feedback input terminal of the second feedback logic circuit is consistent with the data of the valid bit input terminal received at the first input terminal of the second feedback logic circuit, and if the calculation result address received at the feedback input terminal of the second feedback logic circuit is consistent with the data of the address input terminal received at the first input terminal of the second feedback logic circuit, then the feedback valid bit outputted by the output terminal of the second feedback logic circuit is the calculation result valid bit received at the feedback input terminal of the second feedback logic circuit, and the feedback data outputted by the output terminal of the second feedback logic circuit is the calculation result data received at the feedback input terminal of the second feedback logic circuit.

[0040] The pipeline operation processing system of the present invention sets a read node, a sampling decision node, a calculation feedback node and a write node in multiple communication connected nodes to realize pipeline operation. At the same time, feedback is given through the calculation feedback node, and the feedback node is judged through the sampling decision node, so as to realize feedback logic, meet the closed-loop system requirements, and realize a flow operation processing system with feedback logic. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 A system principle diagram of a pipeline operation processing system according to an embodiment of the present invention;

[0042] Figure 2 A system principle diagram of a pipeline operation processing system according to another embodiment of the present invention;

[0043] Figure 3 It is an internal principle diagram of a pipeline operation processing system according to another embodiment of the present invention;

[0044] Figure 4 A schematic diagram of a data processing example of a pipeline operation processing system according to an embodiment of the present invention;

[0045] Figure 5 The present invention is a workflow diagram of a processing method of a pipeline operation processing system as described in any one of claims 1 to 6.

[0046] Marking Description

[0047] 1-read node; 2-sampling decision node; 3-calculation feedback node; 4-write node; 5-memory; 6-external input terminal; 61-valid bit input terminal; 62-address input terminal; 7-external output terminal; 71-valid bit output terminal; 72-data output terminal; 8-read wait node; 81-first read wait node; 82-second read wait node; 9-address register; 10-first valid bit register; 11-second valid bit register; 12-feedback data register; 13-first feedback logic circuit; 14-second feedback logic circuit; 15-decision logic circuit; 16-output data register; 17-calculation logic circuit; 10-first valid bit register. DETAILED DESCRIPTION

[0048] The specific embodiments of the present invention are further described below in conjunction with the accompanying drawings. The same components are represented by the same reference numerals. It should be noted that the words "front", "rear", "left", "right", "upper" and "lower" used in the following description refer to directions in the accompanying drawings, and the words "inner" and "outer" refer to directions toward or away from the geometric center of a specific component, respectively.

[0049] For Field Programmable Gate Array (FPGA) / Application Specific Integrated Circuit (ASIC) digital circuits, pipeline design can greatly improve computing efficiency and increase the data throughput of the system.

[0050] For example, in the 802.1CB protocol, the sequence number elimination or sequence number encoding function is implemented using the memory (Random Access Memory, AM) architecture. Both require dynamic reading and writing of data in memory for related operations, and in order to prevent cache data congestion under the limit bandwidth of the switch, the switch is required to have a high real-time computing rate. At this time, pipeline operation processing can avoid data accumulation, thereby ensuring the low latency requirements of event-sensitive network data transmission, for example. However, considering the dynamic changes of data in memory, feedback logic needs to be introduced to implement pipeline operation processing. By performing data matching and updating functions on each node, the data participating in the calculation in the pipeline operation queue will not expire.

[0051] However, the existing pipeline operation processing systems are all open-loop pipeline operation processing systems, so the application scenarios of the existing pipeline operation processing systems are only applicable to table query of static data, or memory reading and writing of open-loop control, etc. For closed-loop systems with feedback logic and real-time processing requirements, it is impossible to use the existing open-loop pipeline operation processing systems.

[0052] In order to solve the above technical problems, the present invention provides a pipeline operation processing system.

[0053] like Figure 1 The figure shows a pipeline operation processing system according to an embodiment of the present invention, comprising: a plurality of nodes connected in sequence for communication, wherein the nodes at least include a read node 1, a sampling decision node 2, a calculation feedback node 3, a write node 4 and a memory 5,

[0054] The input end of the read node 1 is communicatively connected to the input end of the external input end 6, and the output end is communicatively connected to the input end of the memory 5;

[0055] The input end of the sampling decision node 2 is communicatively connected to the output end of the read node 1 and the output end of the memory 5, and the output end is communicatively connected to the input end of the calculation feedback node 3;

[0056] The output end of the calculation feedback node 3 is communicatively connected to the input end of the write node 4, and the output end is communicatively connected to the feedback input end of the read node 1 and the feedback input end of the sampling decision node 2;

[0057] The output end of the write node 4 is communicatively connected with the input end of the memory 5 and the external output end 7 .

[0058] Specifically, the input end of the read node 1 is communicatively connected to the external input end 6, the first output end of the read node 1 is communicatively connected to the first input end of the sampling decision node 2, the second output end of the read node 1 is communicatively connected to the memory 5, the second input end of the sampling decision node 2 is communicatively connected to the memory 5, the output end of the sampling decision node 2 is communicatively connected to the input end of the calculation feedback node 3, the first output end of the calculation feedback node 3 is communicatively connected to the input end of the write node 4, the second output end of the calculation feedback node 3 is communicatively connected to the feedback ends of the read node 1 and the sampling decision node 2 respectively, the first output end of the write node 4 is communicatively connected to the external output end 7, and the second output end of the write node 4 is communicatively connected to the memory 5.

[0059] Among them, the read node 1, the sampling decision node 2, the calculation feedback node 3 and the write node 4 are sequentially connected in communication, and the entire data processing flow needs to be processed serially in multiple clock cycles, feedback matching processing is performed at the read node 1 and the sampling decision node 2, and feedback data is generated at the calculation feedback node 3. Due to the use of pipeline operation, each node executes the corresponding logic operation of the node in each clock cycle.

[0060] Where, in each clock cycle:

[0061] The read node 1 receives address information from the external input terminal 6, receives calculation result data from the calculation feedback node 3, outputs a read address to the memory 5 according to the received address information, and transmits the address information and the calculation result data to the next node;

[0062] The sampling decision node 2 receives memory data about the read address from the memory 5, calculates result data and a calculation result address from the calculation feedback node 3, compares the calculation result address with the address information, and based on the comparison result, selects the calculation result data received by the calculation feedback node 3, the calculation result data transmitted by the previous node, or the memory data as the decision data, and outputs the decision data and transmits the address information to the calculation feedback node 3;

[0063] After performing logic calculation on the received decision data, the calculation feedback node 3 outputs the calculation result data and transmits the address information to the write node 4, and feeds back the calculation result data and the calculation result address to the read node 1 and the sampling decision node 2;

[0064] The write node 4 writes the calculation result data into the memory 5 according to the address information, and outputs the calculation result data.

[0065] In some embodiments, the address information includes address data and valid bit data, and the decision data is one of the calculation result data of the feedback data received by the sampling decision node 2 from the calculation feedback node 3, the calculation result data of the feedback data transmitted by the previous node, or the memory data.

[0066] In some embodiments, the calculation result data is a value obtained after the calculation feedback node 3 performs a logic calculation on the received decision data, and the calculation result address is the address information received by the calculation feedback node 3 when performing a logic calculation on the received decision data.

[0067] Specifically, after receiving the judgment data, the calculation feedback node 3 performs corresponding logic calculation on the judgment data to generate new calculation result data. The logic calculation of the calculation feedback node 3 is set according to actual needs. For example, the logic calculation can be set to increase a fixed number. For example, for the operation processing of the sequence number, the logic calculation of the calculation feedback node 3 is an addition calculation. That is, the judgment data is added by one to obtain the calculation result data.

[0068] The specific processing flow is as follows:

[0069] ① The read node 1 reads the memory, receives the address information from the external input terminal 6, and outputs the read address to the memory 5 according to the received address information, where the read address is the address data in the address information;

[0070] ② After the clock cycle delay, the memory data output of the address data location in memory 5 is valid and is received by sampling decision node 2;

[0071] ③ Complete arbitration of the received memory data and feedback data at the sampling decision beat, and output the decision data and transfer address information to the calculation feedback node 3 according to the arbitration result;

[0072] ④ The calculation feedback node 3 performs logical calculations, generates iterative calculation result data and provides effective feedback forward;

[0073] ⑤ Write node 4 writes the calculation result data to the memory to complete the update of the corresponding address data.

[0074] The read node 1 is connected to the external input terminal 6 in communication, and the external module outputs the read address of the required read data to the read node 1 through the external input terminal 6. The read node 1 is connected to the memory 5 in communication, and adopts the existing communication connection mode of reading the memory, outputs the read address to the memory 5, and transmits the address information to the next node. In the next clock cycle, the next node, such as the sampling decision node 2, latches the address information.

[0075] For part of the memory 5, it only needs to input the read address to complete the memory 5 reading, and the external input terminal 6 can only provide the read address. For another part of the memory 5, it is necessary to input the read address and the read enable signal to complete the reading, and the external input terminal 6 provides the read address and the valid bit. The valid bit is set to indicate the read enable, and the valid bit is reset to not read. The set bit can be set to 1, and the reset bit can be set to 0.

[0076] In one embodiment, read node 1 generates a valid read address and a read enable.

[0077] The memory data is the data stored in the read address of the memory 5 and returned by the memory 5 after receiving the read address output by the read node 1 .

[0078] After outputting the read address and / or read enable to the memory 5, the memory 5 cannot return data immediately, but needs to be delayed by one or more clock cycles before outputting the memory data of the read address in the memory 5. Therefore, this embodiment adopts pipeline operation, and receives the memory data output by the memory 5 in the sampling decision node 2.

[0079] The communication connection mode between the memory 5 and the sampling decision node 2 adopts the existing communication connection mode for reading the memory 5 to receive the data output by the memory 5 .

[0080] The sampling decision node 2 arbitrates the data read from the memory 5 to obtain an arbitration result, and outputs the decision data and transmits the address information to the calculation feedback node 3. The calculation feedback node 3 latches the decision data and address information in the next clock cycle.

[0081] The corresponding logic calculation is performed by the calculation feedback node 3.

[0082] The calculation result data and address information calculated by the calculation feedback node 3 will be transmitted to the write node 4, and the write node 4 will latch the calculation result data in the next clock cycle. At the same time, the calculation feedback node 3 outputs the calculation result data and the calculation result address to the read node 1 and the sampling decision node 2. The read node 1 transmits the calculation result data while transmitting the address information. The sampling decision node 2 compares the calculation result address received from the calculation feedback node 3 with the address information, and selects one of the calculation result data received by the calculation feedback node 3, the calculation result data transmitted by the previous node, or the memory data as the decision data according to the comparison result.

[0083] The write node 4 writes the latched calculation result data to the memory 5, and outputs the calculation result data to the external output terminal 7. The external output terminal 7 is connected to the external module, and returns the calculation result data to the external module that requests to read the memory 5. The write node 4 is connected to the memory 5 in communication, and writes data to the memory 5 using the existing memory writing method.

[0084] In one embodiment, the pipeline operation processing system is applied to a data flow architecture of 802.1CB sequence number recovery and sequence number generation.

[0085] The pipeline operation processing system of this embodiment can be effectively adapted to, but not limited to, a high-bandwidth Ethernet environment based on smart cars.

[0086] The pipeline operation processing system of the present invention sets a read node, a sampling decision node, a calculation feedback node and a write node in multiple communication connected nodes to realize pipeline operation. At the same time, feedback is given through the calculation feedback node, and the feedback node is judged through the sampling decision node, so as to realize feedback logic, meet the closed-loop system requirements, and realize a flow operation processing system with feedback logic.

[0087] like Figures 2 to 3 As shown, in another embodiment of the present invention, a pipeline operation processing system includes: a plurality of nodes connected in sequence for communication, a plurality of nodes connected in sequence for communication, the nodes at least include a read node 1, a sampling decision node 2, a calculation feedback node 3, a write node 4 and a memory 5,

[0088] The input end of the read node 1 is communicatively connected to the input end of the external input end 6, and the output end is communicatively connected to the input end of the memory 5;

[0089] The input end of the sampling decision node 2 is communicatively connected to the output end of the read node 1 and the output end of the memory 5, and the output end is communicatively connected to the input end of the calculation feedback node 3;

[0090] The output end of the calculation feedback node 3 is communicatively connected to the input end of the write node 4, and the output end is communicatively connected to the feedback input end of the read node 1 and the feedback input end of the sampling decision node 2;

[0091] The output end of the write node 4 is communicatively connected with the input end of the memory 5 and the external output end 7;

[0092] The external input terminal 6 includes a valid bit input terminal 61 and an address input terminal 62, the read node 1, the sampling decision node 2, and the calculation feedback node 3 all include an address register and a first valid bit register.

[0093] The input end of the address register of the read node 1 is communicatively connected to the address input end 62, the output end of the address register of the read node 1 is communicatively connected to the input end of the memory 5, the input end of the first valid bit register of the read node 1 is communicatively connected to the valid bit input end 61, and the output end of the first valid bit register of the read node 1 is communicatively connected to the input end of the memory 5;

[0094] The input end of the address register of the sampling decision node 2 is communicatively connected to the output end of the address register of the read node 1, the output end of the address register of the sampling decision node 2 is communicatively connected to the input end of the address register of the calculation feedback node 3, the input end of the first valid bit register of the sampling decision node 2 is communicatively connected to the output end of the first valid bit register of the read node 1, and the output end of the first valid bit register of the sampling decision node 2 is communicatively connected to the input end of the first valid bit register of the calculation feedback node 3;

[0095] The output end of the address register of the calculation feedback node 3 is also communicatively connected to the input end of the memory 5;

[0096] The external output terminal 7 includes a valid bit output terminal 71 and a data output terminal 72, the read node 1 also includes a second valid bit register 11, a feedback data register 12, a first feedback logic circuit 13 and a second feedback logic circuit 14, the sampling decision node 2 also includes a second valid bit register 11, a feedback data register 12, a first feedback logic circuit 13 and a decision logic circuit 15, the calculation feedback node 3 also includes an output data register 16 and a calculation logic circuit 17, and the write node 4 also includes a first valid bit register 10 and an output data register 16, wherein:

[0097] The first valid bit register 10 and the address register 9 of the read node 1 are respectively connected to the first input end of the first feedback logic circuit 13 of the read node 1 through communication, the second valid bit register 11 and the feedback data register 12 of the read node 1 are respectively connected to the second input end of the first feedback logic circuit 13 of the read node 1 through communication, and the output end of the first feedback logic circuit 13 of the read node 1 is respectively connected to the second valid bit register 11 and the feedback data register 12 of the sampling decision node 2 through communication;

[0098] The valid bit input terminal 61 and the address input terminal 62 are respectively connected to the first input terminal of the second feedback logic circuit 14 of the read node 1, and the output terminal of the second feedback logic circuit 14 of the read node 1 is respectively connected to the second valid bit register 11 and the feedback data register 12 of the read node 1;

[0099] The first valid bit register 10 and the address register 9 of the sampling decision node 2 are respectively connected to the first input end of the first feedback logic circuit 13 of the sampling decision node 2 in communication, the second valid bit register 11 and the feedback data register 12 of the sampling decision node 2 are respectively connected to the second input end of the first feedback logic circuit 13 of the sampling decision node 2 in communication, the output end of the first feedback logic circuit 13 of the sampling decision node 2 is connected to the second input end of the decision logic circuit 15 in communication, the first input end of the decision logic circuit 15 is connected to the output end of the memory 5 in communication, the first valid bit register 10 and the address register 9 of the sampling decision node 2 are respectively connected to the third input end of the decision logic circuit 15 in communication, and the output end of the decision logic circuit 15 is respectively connected to the address register 9, the first valid bit register 10 and the output data register 16 of the calculation feedback node 3 in communication;

[0100] The address register 9, the first valid bit register 10 and the output data register 16 of the calculation feedback node 3 are respectively connected to the input end of the calculation logic circuit 17 in communication, and the first output end of the calculation logic circuit 17 is respectively connected to the feedback input end of the first feedback logic circuit 13 of the read node 1, the feedback input end of the second feedback logic circuit 14 of the read node 1 and the feedback input end of the first feedback logic circuit 13 of the sampling decision node 2 to output the calculation result valid bit, the calculation result address and the calculation result data. The second output end of the calculation logic circuit 17 is respectively connected to the input end of the first valid bit register 10, the input end of the output data register 16 and the input end of the memory 5 in communication, and the second output end of the calculation logic circuit 17 outputs the calculation result valid bit to the input end of the first valid bit register 10, outputs the calculation result address to the memory 5 and outputs the calculation result data to the input end of the output data register 16;

[0101] The output end of the first valid bit register 10 is communicatively connected to the valid bit output end 71 , and the output end of the output data register 16 is communicatively connected to the data output end 72 and the memory 5 , respectively.

[0102] In one embodiment, the node further includes a read waiting node 8, the first output end of the read node 1 is communicatively connected to the first input end of the sampling decision node 2 through one or more read waiting nodes 8, and each read waiting node 8 transmits the address information to the next node in each clock cycle;

[0103] The external input terminal 6 includes a valid bit input terminal 61 and an address input terminal 62, and the read node 1, the sampling decision node 2, the calculation feedback node 3, and the read waiting node 8 all include an address register 9 and a first valid bit register 10;

[0104] The input end of the address register 9 of the read node 1 is communicatively connected to the address input end 62, the output end of the address register 9 of the read node 1 is communicatively connected to the input end of the address register 9 of the read wait node 8 and the memory respectively, the input end of the first valid bit register 10 of the read node 1 is communicatively connected to the valid bit input end 61, and the output end of the first valid bit register 10 of the read node 1 is communicatively connected to the input end of the first valid bit register 10 of the read wait node 8;

[0105] The output end of the address register 9 of the read waiting node 8 is communicatively connected to the input end of the address register 9 of the sampling decision node 2, and the output end of the first valid bit register 10 of the read waiting node 8 is communicatively connected to the input end of the first valid bit register 10 of the sampling decision node 2;

[0106] The output end of the address register 9 of the sampling decision node 2 is communicatively connected to the input end of the address register 9 of the calculation feedback node 3, and the output end of the address register 9 of the calculation feedback node 3 is communicatively connected to the memory;

[0107] The output end of the first valid bit register 10 of the sampling decision node 2 is communicatively connected with the input end of the first valid bit register 10 of the calculation feedback node 3;

[0108] The external output terminal 7 includes a valid bit output terminal 71 and a data output terminal 72, the read node 1 also includes a second valid bit register 11, a feedback data register 12, a first feedback logic circuit 13 and a second feedback logic circuit 14, the read wait node 8 also includes a second valid bit register 11, a feedback data register 12 and a first feedback logic circuit 13, the sampling decision node 2 also includes a second valid bit register 11, a feedback data register 12, a first feedback logic circuit 13 and a decision logic circuit 15, the calculation feedback node 3 also includes an output data register 16 and a calculation logic circuit 17, and the write node 4 also includes a first valid bit register 10 and an output data register 16, wherein:

[0109] The first valid bit register 10 and the address register 9 of the read node 1 are respectively connected to the first input end of the first feedback logic circuit 13 of the read node 1 through communication, the second valid bit register 11 and the feedback data register 12 of the read node 1 are respectively connected to the second input end of the first feedback logic circuit 13 of the read node 1 through communication, and the output end of the first feedback logic circuit 13 of the read node 1 is respectively connected to the second valid bit register 11 and the feedback data register 12 of the read wait node 8 through communication;

[0110] The valid bit input terminal 61 and the address input terminal 62 are respectively connected to the first input terminal of the second feedback logic circuit 14 of the read node 1, and the output terminal of the second feedback logic circuit 14 of the read node 1 is respectively connected to the second valid bit register 11 and the feedback data register 12 of the read node 1;

[0111] The first valid bit register 10 and the address register 9 of the read wait node 8 are respectively connected to the first input end of the first feedback logic circuit 13 of the read wait node 8 for communication, and the output end of the first feedback logic circuit 13 of the read wait node 8 is respectively connected to the second valid bit register 11 and the feedback data register 12 of the sampling decision node 2 for communication;

[0112] The first valid bit register 10 and the address register 9 of the sampling decision node 2 are respectively connected to the first input end of the first feedback logic circuit 13 of the sampling decision node 2 in communication, the second valid bit register 11 and the feedback data register 12 of the sampling decision node 2 are respectively connected to the second input end of the first feedback logic circuit 13 of the sampling decision node 2 in communication, the output end of the first feedback logic circuit 13 of the sampling decision node 2 is connected to the second input end of the decision logic circuit 15 in communication, the first input end of the decision logic circuit 15 is connected to the memory 5 in communication, the first valid bit register 10 and the address register 9 of the sampling decision node 2 are respectively connected to the third input end of the decision logic circuit 15 in communication, and the output end of the decision logic circuit 15 is respectively connected to the address register 9, the first valid bit register 10 and the output data register 16 of the calculation feedback node 3 in communication;

[0113] The address register 9, the first valid bit register 10 and the output data register 16 of the calculation feedback node 3 are respectively connected to the input end of the calculation logic circuit 17 in communication, and the first output end of the calculation logic circuit 17 is respectively connected to the feedback input end of the first feedback logic circuit 13 of the read node 1, the feedback input end of the second feedback logic circuit 14 of the read node 1, the feedback input end of the first feedback logic circuit 13 of the read wait node 8 and the feedback input end of the first feedback logic circuit 13 of the sampling decision node 2 to output the calculation result valid bit, the calculation result address and the calculation result data, and the second output end of the calculation logic circuit 17 is respectively connected to the input end of the first valid bit register 10, the input end of the output data register 16 and the memory 5 in communication, and the second output end of the calculation logic circuit 17 outputs the calculation result valid bit to the input end of the first valid bit register 10, outputs the calculation result address to the memory 5 and outputs the calculation result data to the input end of the output data register 16;

[0114] The output end of the first valid bit register 10 is communicatively connected to the valid bit output end 71 , and the output end of the output data register 16 is communicatively connected to the data output end 72 and the memory 5 , respectively.

[0115] The logic of each logic circuit is as follows:

[0116] The first feedback logic circuit 13:

[0117] If the calculation result valid bit received by the feedback input terminal of the first feedback logic circuit 13 is consistent with the data of the first valid bit register 10 received by the first input terminal of the first feedback logic circuit 13 and is set, and if the calculation result address received by the feedback input terminal of the first feedback logic circuit 13 is consistent with the data of the address register 9 received by the first input terminal of the first feedback logic circuit 13, then the feedback valid bit output by the output terminal of the first feedback logic circuit 13 is the calculation result valid bit received by the feedback input terminal of the first feedback logic circuit 13, and the feedback data output by the output terminal of the first feedback logic circuit 13 is the calculation result data received by the feedback input terminal of the first feedback logic circuit 13;

[0118] Otherwise, the feedback valid bit outputted by the output end of the first feedback logic circuit 13 is the data of the second valid bit register 11 received by the second input end of the first feedback logic circuit 13 , and the feedback data outputted by the output end of the first feedback logic circuit 13 is the data of the feedback data register 12 received by the second input end of the first feedback logic circuit 13 .

[0119] The decision logic circuit 15:

[0120] The output end of the decision logic circuit 15 outputs the data of the address register 9 received by the third input end of the decision logic circuit 15 to the address register 9 of the calculation feedback node 3, and outputs the data of the first valid bit register 10 received by the third input end of the decision logic circuit 15 to the first valid bit register 10 of the calculation feedback node 3, and:

[0121] If the feedback received at the second input end of the decision logic circuit 15 is in a valid position, the output end of the decision logic circuit 15 outputs the feedback data received at the second input end of the decision logic circuit 15 to the output data register 16 of the calculation feedback node 3; otherwise

[0122] The output end of the decision logic circuit 15 outputs the data of the memory 5 received by the first input end of the decision logic circuit 15 to the output data register 16 of the calculation feedback node 3 .

[0123] The calculation logic circuit 17:

[0124] If the data of the first valid bit register 10 received at the input end of the calculation logic circuit 17 is set, a preset logic operation is performed on the data of the output data register 16 received at the input end of the calculation logic circuit 17 to obtain calculation result data, which is output from the output end of the calculation logic circuit 17.

[0125] The second feedback logic circuit 14:

[0126] If the calculation result valid bit received at the feedback input terminal of the second feedback logic circuit 14 is consistent with the data of the valid bit input terminal 61 received at the first input terminal of the second feedback logic circuit 14, and if the calculation result address received at the feedback input terminal of the second feedback logic circuit 14 is consistent with the data of the address input terminal 62 received at the first input terminal of the second feedback logic circuit 14, then the feedback valid bit outputted by the output terminal of the second feedback logic circuit 14 is the calculation result valid bit received at the feedback input terminal of the second feedback logic circuit 14, and the feedback data outputted by the output terminal of the second feedback logic circuit 14 is the calculation result data received at the feedback input terminal of the second feedback logic circuit 14.

[0127] Specifically, according to the clock requirement for reading the memory, the read node 1 and the sampling decision node 2 can be directly connected or connected through one or more read wait nodes 8. For example, after reading the memory, if the memory data can be obtained after one clock, the read node 1 and the sampling decision node 2 are directly connected in communication. If the memory data can be obtained after two clocks, the read node 1 and the sampling decision node 2 are directly connected in communication through one read wait node 8. If the memory data can be obtained after three clocks, the read node 1 and the sampling decision node 2 are connected in communication through two consecutive read wait nodes 8.

[0128] like Figure 2 As shown, pipeline operation feedback occurs in all nodes before the calculation feedback node 3. Figure 2 The solid line frame is a register for storing pipeline operation data, and the dotted line frame is a combinational logic operation circuit. The latest changed data is generated at the calculation feedback node. Each combinational logic operation circuit uses a field programmable gate array (FPGA) / application specific integrated circuit (ASIC) digital circuit to implement the corresponding logic. Each register includes an address register 9 for latching an address, a first valid bit register 10 and a second valid bit register 11 for latching a valid bit, a feedback data register 12 for latching data, and an output data register 16.

[0129] The first feedback logic circuit 13 of each feedback node matches the data received at the feedback input terminal with the data received at the first input terminal: if the valid bit of the calculation result received at the feedback input terminal of the first feedback logic circuit 13 is consistent with the data of the first valid bit register 10 received at the first input terminal of the first feedback logic circuit 13 and is set, and if the address of the calculation result received at the feedback input terminal of the first feedback logic circuit 13 is consistent with the data of the address register 9 received at the first input terminal of the first feedback logic circuit 13, that is, the feedback data and the input terminal data are both valid and the processed RAM address is the same, then it is determined that the feedback data is valid, the feedback flag is set and the current feedback data is latched, and the output terminal of the first feedback logic circuit 13 is output. The feedback valid bit outputted from the output end of the first feedback logic circuit 13 is the calculation result valid bit received by the feedback input end of the first feedback logic circuit 13, and the feedback data outputted from the output end of the first feedback logic circuit 13 is the calculation result data received by the feedback input end of the first feedback logic circuit 13; if the feedback data and the input end data are not valid at the same time, or the processed RAM addresses are different when they are valid at the same time, the feedback flag and data of the previous stage are latched, and the feedback valid bit outputted from the output end of the first feedback logic circuit 13 is the data of the second valid bit register 11 received by the second input end of the first feedback logic circuit 13, and the feedback data outputted from the output end of the first feedback logic circuit 13 is the data of the feedback data register 12 received by the second input end of the first feedback logic circuit 13.

[0130] After the pipeline operation reaches the sampling decision node 2, the decision logic circuit 15 will arbitrate the valid data based on the current feedback data, the historical feedback data transmitted by the previous node, and the memory data of memory 5. The priority of arbitration data selection is: current feedback data>historical feedback data>memory data of memory 5.

[0131] Specifically, the sampling decision node 2 compares the feedback data and address information received from the calculation feedback node 3. Through the logic operation of the first feedback logic circuit 13 of the sampling decision node 2, the current feedback data is compared with the address information. According to the comparison result, the first feedback logic circuit 13 selects to output the current feedback data or the historical feedback data transmitted by the previous node. The specific comparison method is:

[0132] If the effective bit of the calculation result of the feedback data and the effective bit data of the address information are both effective, and the address of the calculation result of the feedback data is the same as the address data of the address information, the feedback data is determined to be effective, and the first feedback logic circuit 13 outputs the feedback data received from the calculation feedback node 3;

[0133] If the valid bit of the calculation result of the feedback data and the valid bit data of the address information are not valid at the same time, or if the calculation result address of the processed feedback data and the address data of the address information are different when they are valid at the same time, the first feedback logic circuit 13 outputs the feedback data of the previous node.

[0134] The feedback data received from the calculation feedback node 3 is the current feedback data, and the feedback data transmitted by the previous node is the historical feedback data.

[0135] Then, the decision logic circuit 15 decides to output feedback data or memory data according to the valid bit data in the current feedback data or the historical feedback data output by the first feedback logic circuit 13 .

[0136] Specifically, the output end of the decision logic circuit 15 outputs the data of the address register 9 received by the third input end of the decision logic circuit 15 to the address register 9 of the calculation feedback node 3, and outputs the data of the first valid bit register 10 received by the third input end of the decision logic circuit 15 to the first valid bit register 10 of the calculation feedback node 3, and:

[0137] If the feedback received at the second input terminal of the decision logic circuit 15 is set to a valid position, the output terminal of the decision logic circuit 15 outputs the feedback data received at the second input terminal of the decision logic circuit 15 to the output data register 16 of the calculation feedback node 3; otherwise

[0138] The output end of the decision logic circuit 15 outputs the data of the memory 5 received by the first input end of the decision logic circuit 15 to the output data register 16 of the calculation feedback node 3 .

[0139] Since the second input end of the decision logic circuit 15 is connected to the output end of the first feedback logic circuit 13, the logic judgment of the first feedback logic circuit 13 has compared the current feedback result received by the feedback interface of the first feedback logic circuit 13 with the historical feedback result received by the second input end of the first feedback logic circuit 13 to obtain the judgment result. Therefore, the second input end of the decision logic circuit 15 receives the judgment of the first feedback logic circuit 13 on the current feedback result and the historical feedback result. If the feedback received by the second input end of the decision logic circuit 15 is in the valid position, that is, the output of the first feedback logic circuit 13 is valid, then the output of the decision logic circuit 15 preferentially selects to output the feedback data received by the second input end of the decision logic circuit 15 to the output data register 16 of the calculation feedback node 3, otherwise, the output end of the decision logic circuit 15 outputs the data of the memory 5 received by the first input end of the decision logic circuit 15 to the output data register 16 of the calculation feedback node 3.

[0140] The calculation feedback node 3 performs logical operations based on the data arbitrated by the sampling decision node 2, generates valid data and feeds it back to the upstream node, and outputs the processed data to the write node 4, which writes back to the memory 5 and generates output from the external output terminal 7, and the pipeline operation is repeated over and over again.

[0141] The second feedback logic circuit 14 is only provided at the read node 1 . The second feedback logic circuit 14 matches the data received at the feedback input end with the data received at the first input end: if the calculation result valid bit received at the feedback input end of the second feedback logic circuit 14 is consistent with the data of the first valid bit register 10 received at the first input end of the second feedback logic circuit 14 and is set, and if the calculation result address received at the feedback input end of the second feedback logic circuit 14 is consistent with the data of the address register 9 received at the first input end of the second feedback logic circuit 14, that is, the feedback data and the input end data are valid at the same time and the processed RAM address is the same, then it is determined that the feedback data is valid, the feedback flag is set and the current feedback data is latched, the feedback valid bit outputted at the output end of the second feedback logic circuit 14 is the calculation result valid bit received at the feedback input end of the second feedback logic circuit 14, and the feedback data outputted at the output end of the second feedback logic circuit 14 is the calculation result data received at the feedback input end of the second feedback logic circuit 14; if the feedback data and the input end data are not valid at the same time, or the processed RAM addresses are different when they are valid at the same time, then the output is 0, the feedback valid bit outputted at the output end of the second feedback logic circuit 14 is 0, and the feedback data outputted at the output end of the second feedback logic circuit 14 is 0.

[0142] Among them, each register latches data when the clock cycle starts, and the output of each logic circuit changes immediately after the register data changes. Therefore, each logic circuit performs logical operations and outputs results within the clock cycle, and the changes in the results are latched into the connected register in the next clock cycle.

[0143] As an example, Figure 4 As shown, the first read waiting node 81 and the read waiting node 82 are set between the read node 1 and the sampling decision node 2, and the valid processing flag is input at time 1, time 4 and time 5 respectively. The read addresses input three times are all A0, and the initial data in the memory 5 is D0. At this time, taking the 802.1CB sequence number generation function as an example, the calculation method of the calculation feedback node 3 is data increment processing, and the data feedback and output are completed at time 6, time 9 and time 10 respectively. The data output after cumulative calculation are D1, D2 and D3 respectively. Among them, Figure 4 The dotted box is the memory data of memory 5.

[0144] Specifically:

[0145] Time 1: Read node 1 receives input from the input terminal, the first valid bit register 10 is set to 1, the address register 9 is A0, and the first valid bit registers 10 of the remaining nodes are reset to 0, and the address registers 9 are 0. At the same time, there is no feedback at this time, so the second valid bit registers 11 of all nodes are reset to 0, and the feedback data registers 12 are 0.

[0146] Time 2: Read node 1 does not receive input, so the first valid bit register 10 is reset to 0, the address register 9 is 0, and the beat flows to the first read wait node 81. The first valid bit register 10 of the first read wait node 81 is set to 1, and the address register 9 is A0. The first valid bit registers 10 of the remaining nodes are reset to 0, and the address registers 9 are 0. At the same time, there is no feedback at this time, so the second valid bit register 11 is reset to 0, and the feedback data register 12 is 0.

[0147] Time 3: Read node 1 does not receive input, so the first valid bit register 10 is reset to 0, address register 9 is 0, and the beat flows to the second read wait node 82, then the first valid bit register 10 of the second read wait node 82 is set to 1, address register 9 is A0, and the first valid bit register 10 of the remaining nodes is reset to 0, and address register 9 is 0. At the same time, there is no feedback at this time, so the second valid bit register 11 is reset to 0, and the feedback data register 12 is 0.

[0148] Time 4: Read node 1 receives input from the input terminal, the first valid bit register 10 is set to 1, the address register 9 is A0, and the beat flows to sampling decision node 2. The first valid bit register 10 of sampling decision node 2 is set to 1, the address register 9 is A0, and the first valid bit registers 10 of the remaining nodes are reset to 0, and the address register 9 is 0. At this time, the memory data D0 of memory 5 is output to sampling decision node 2. Since there is no feedback at this time, the decision logic circuit 15 of sampling decision node 2 outputs the memory data D0. At the same time, there is no feedback at this time, so the second valid bit register 11 is reset to 0, and the feedback data register 12 is 0.

[0149] Time 5: Read node 1 receives input from the input terminal, the first valid bit register 10 is set to 1, the address register 9 is A0, one beat flows to the calculation feedback node 3, the first valid bit register 10 of the calculation feedback node 3 is set to 1, the address register 9 is A0, another beat flows to the first read wait node 81, the first valid bit register 10 of the first read wait node 81 is set to 1, the address register 9 is A0, the first valid bit register 10 of the remaining nodes is reset to 0, and the address register 9 is 0. At this time, the decision logic circuit 15 outputs data D0 and latches it into the output data register 16 of the calculation feedback node 3. The calculation logic circuit 17 of the calculation feedback node 3 performs a logical operation and outputs data D1, but the feedback is not latched into the register at this time, so the second valid bit register 11 is reset to 0, and the feedback data register 12 is 0.

[0150] Time 6: Read node 1 does not receive input, then the first valid bit register 10 is reset to 0, the address register 9 is 0, and the beats flow to the first read waiting node 81, the second read waiting node 82 and the write node 4 respectively, then the first valid bit register 10 of the first read waiting node 81 and the second read waiting node 82 is set to 1, the address register 9 is A0, the first valid bit register 10 of the write node 4 is set to 1, and the first valid bit register 10 of the remaining nodes is reset to 0, and the address register 9 is 0. At the same time, the first feedback logic circuit 13 of each node and the second feedback logic circuit 14 of the read node judge the output of the calculation logic circuit 17. Since only the first valid bit register 10 of the first read waiting node 81 and the second read waiting node 82 is set to 1, and the address register 9 is A0, only the second valid bit register 11 of the first read waiting node 81 and the second read waiting node 82 is set to 1, and the feedback data register 12 is D1, and the remaining second valid bit registers 11 are reset to 0, and the feedback data registers 12 are 0. In addition, the output data D1 of the calculation logic circuit 17 is latched to the output data register 16 of the write node 4. The data D1 of the first valid bit register 10 of the write node 4 and the output data register 16 are output to the external module, and the data D1 is written into the memory 5 at the same time.

[0151] Time 7: Read node 1 does not receive input, then the first valid bit register 10 is reset to 0, address register 9 is 0, and the beat flows to the second read waiting node 82 and sampling decision node 2 respectively, then the first valid bit register 10 of the second read waiting node 82 and sampling decision node 2 is set to 1, address register 9 is A0, and the first valid bit register 10 of the remaining nodes is reset to 0, and the address register 9 is 0. At the same time, there is no feedback at this time, because only the first valid bit register 10 of the second read waiting node 82 and sampling decision node 2 is set to 1 at this time, so only the second valid bit register 11 of the second read waiting node 82 and sampling decision node 2 is set to 1, and the feedback data register 12 is D1, and the remaining second valid bit registers 11 are reset to 0, and the feedback data register 12 is 0. The data of the output data register 16 is cleared.

[0152] Since the second valid bit register 11 of the sampling decision node 2 is set to 1 at this time, the feedback data register 12 is D1, and therefore the output of the decision logic circuit 15 is D1.

[0153] Time 8: Reading node 1 does not receive input, then the first valid bit register 10 is reset to 0, address register 9 is 0, and the beat flows to sampling decision node 2 and calculation feedback node 3 respectively, then the first valid bit register 10 of sampling decision node 2 and calculation feedback node 3 is set to 1, address register 9 is A0, and the first valid bit register 10 of other nodes is reset to 0, address register 9 is 0. At the same time, at this time, the decision logic circuit 15 outputs data D1 and latches it into the output data register 16 of the calculation feedback node 3. The calculation logic circuit 17 of the calculation feedback node 3 performs a logical operation and outputs data D2, but the output data D2 is not latched into the feedback data register 12 of each node. And only the first valid bit register 10 of the sampling decision node 2 and the calculation feedback node 3 is set to 1, and the address register 9 is A0, so only the second valid bit register 11 of the sampling decision node 2 is set to 1, and the feedback data register 12 is D1. However, since the output of the logic circuit is immediate at this time, the output data of the first feedback logic circuit 13 of the sampling decision node 2 is D2 and is valid, so the output of the decision logic circuit 15 is D2, but it is not latched into the output data register 16 of the calculation feedback node 3.

[0154] Time 9: Read node 1 does not receive input, so the first valid bit register 10 is reset to 0, address register 9 is 0, and the beat flows to calculation feedback node 3 and write node 4 respectively, then the first valid bit register 10 of calculation feedback node 3 and write node 4 is set to 1, the address register 9 of calculation feedback node 3 is A0, and the first valid bit register 10 of other nodes is reset to 0, and the address register 9 is 0. At the same time, at this time, the output data D2 of the decision logic circuit 15 is latched into the output data register 16 of the calculation feedback node 3. The output data D2 of the calculation logic circuit 17 is latched into the output data register 16 of the write node 4. The calculation logic circuit 17 of the calculation feedback node 3 performs a logical operation and outputs data D3, but the output data D3 is not latched into the feedback data register 12 of each node and the output data register 16 of the write node 4. Since only the first valid bit register 10 of the calculation feedback node 3 and the write node 4 is set to 1, all the second valid bit registers 11 are reset to 0, and the feedback data register 12 is 0. In addition, the data D2 of the first valid bit register 10 and the output data register 16 of the write node 4 are output to the external module, and the data D2 is written into the memory 5 at the same time.

[0155] Time 10: Read node 1 does not receive input, then the first valid bit register 10 is reset to 0, address register 9 is 0, and the beat flows to write node 4, then the first valid bit register 10 of write node 4 is set to 1, and the first valid bit registers 10 of the remaining nodes are reset to 0, and the address register 9 is 0. At the same time, the output data D3 of the calculation logic circuit 17 is latched into the output data register 16 of the write node 4. Since only the first valid bit register 10 of the write node 4 is set to 1, all the second valid bit registers 11 are reset to 0, and the feedback data register 12 is 0. Finally, the data D3 of the first valid bit register 10 and the output data register 16 of the write node 4 are output to the external module, and the data D3 is written into the memory 5.

[0156] The embodiment of the present invention provides a pipeline operation processing system with feedback logic. The pipeline operation processing system of this embodiment has a fixed processing cycle and can perform high-speed pipeline processing. At the same time, the decision logic circuit is used to avoid data conflicts caused by data not being written into the memory in time.

[0157] The pipeline operation processing system of this embodiment can effectively adapt to the high-bandwidth Ethernet environment based on smart cars, reduce the computing load of the CPU in the system, and ensure the reliability of vehicle-mounted Ethernet data transmission.

[0158] like Figure 5 The flowchart of the processing method of the pipeline operation processing system according to any one of claims 1 to 6 of the present invention is shown, comprising:

[0159] In each clock cycle:

[0160] Step S501, the read node 1 receives address information from the external input terminal 6, receives calculation result data from the calculation feedback node 3, outputs a read address to the memory 5 according to the received address information, and transmits the address information and the calculation result data to the next node;

[0161] Step S502, the sampling decision node 2 receives the memory data about the read address from the memory 5, receives the calculation result data and the calculation result address from the calculation feedback node 3, compares the calculation result address with the address information, and based on the comparison result, selects the calculation result data received by the calculation feedback node 3, the calculation result data transmitted by the previous node, or the memory data as the decision data, outputs the decision data to the calculation feedback node 3 and transmits the address information;

[0162] Step S503, after performing logic calculation on the received decision data, the calculation feedback node 3 outputs the calculation result data and transmits the address information to the write node 4, and feeds back the calculation result data and the calculation result address to the read node 1 and the sampling decision node 2;

[0163] Step S504: the write node 4 writes the calculation result data to the memory 5 according to the address information, and outputs the calculation result data.

[0164] Specifically,

[0165] In step S501, the read node 1 reads the memory, receives address information from the external input terminal 6, and outputs a read address to the memory 5 according to the received address information;

[0166] Then, after a clock cycle delay, the memory data output is valid, and the sampling decision node 2 receives the data and executes step S502, where the sampling decision node 2 completes arbitration between the received memory data and the calculation result data, and outputs the decision data and the transmission address information to the calculation feedback node 3 according to the arbitration result;

[0167] The calculation feedback node 3 executes step S503, performs logical calculation, generates iterative calculation result data and performs effective feedback forward;

[0168] The write node 4 executes step S504 to write the calculation result data into the memory, completing the update of the corresponding address data.

[0169] The read node 1 is connected to the external input terminal 6 in communication, and the external module outputs the read address of the required read data to the read node 1 through the external input terminal 6. The read node 1 is connected to the memory 5 in communication, and adopts the existing communication connection mode of reading the memory, outputs the read address to the memory 5, and transmits the address information to the next node. In the next clock cycle, the next node, such as the sampling decision node 2, latches the address information.

[0170] For part of the memory 5, it only needs to input the read address to complete the memory 5 reading, and the external input terminal 6 can only provide the read address. For another part of the memory 5, it is necessary to input the read address and the read enable signal to complete the reading, and the external input terminal 6 provides the read address and the valid bit. The valid bit is set to indicate the read enable, and the valid bit is reset to not read. The set bit can be set to 1, and the reset bit can be set to 0.

[0171] The pipeline operation processing system of the present invention sets a read node, a sampling decision node, a calculation feedback node and a write node in multiple communication connected nodes to realize pipeline operation. At the same time, feedback is given through the calculation feedback node, and the feedback node is judged through the sampling decision node, so as to realize feedback logic, meet the closed-loop system requirements, and realize a flow operation processing system with feedback logic.

[0172] In one embodiment, the calculation feedback node 3 also feeds back the calculation result valid bit to the read node 1 and the sampling decision node 2, the address information includes address data and valid bit data, the read node 1 and the sampling decision node 2 both include a first feedback logic circuit, an address register, a first valid bit register, a second valid bit register, and a feedback data register, and in each clock cycle, the first feedback logic circuit executes:

[0173] If the calculation result valid bit received by the first feedback logic circuit from the calculation feedback node 3 is consistent with the data of the first valid bit register received by the first input terminal of the first feedback logic circuit and is set, and if the calculation result address received by the first feedback logic circuit from the calculation feedback node 3 is consistent with the data of the address register received by the first input terminal of the first feedback logic circuit, then the feedback valid bit output by the output terminal of the first feedback logic circuit is the calculation result valid bit received by the feedback input terminal of the first feedback logic circuit, and the feedback data output by the output terminal of the first feedback logic circuit is the calculation result data received by the feedback input terminal of the first feedback logic circuit;

[0174] Otherwise, the feedback valid bit outputted by the output end of the first feedback logic circuit is the data of the second valid bit register received by the second input end of the first feedback logic circuit, and the feedback data outputted by the output end of the first feedback logic circuit is the data of the feedback data register received by the second input end of the first feedback logic circuit.

[0175] Specifically, both the read node 1 and the sampling decision node 2 include a first feedback logic circuit 13 .

[0176] In one embodiment, each waiting node 8 also includes a first feedback logic circuit 13 .

[0177] The logic of each feedback logic circuit 13 is consistent, and the first feedback logic circuit 13 of each feedback node matches the data received at the feedback input end with the data received at the first input end: if the valid bit of the calculation result received at the feedback input end of the first feedback logic circuit 13 is consistent with the data of the first valid bit register 10 received at the first input end of the first feedback logic circuit 13 and is set, and if the address of the calculation result received at the feedback input end of the first feedback logic circuit 13 is consistent with the data of the address register 9 received at the first input end of the first feedback logic circuit 13, that is, the feedback data and the input end data are valid at the same time and the processed RAM address is the same, then it is determined that the feedback data is valid, the feedback flag is set and the current feedback data is latched, and the first feedback logic circuit 13 is The feedback valid bit outputted from the output end of the first feedback logic circuit 13 is the calculation result valid bit received by the feedback input end of the first feedback logic circuit 13, and the feedback data outputted from the output end of the first feedback logic circuit 13 is the calculation result data received by the feedback input end of the first feedback logic circuit 13; if the feedback data and the input end data are not valid at the same time, or the RAM addresses processed are different when they are valid at the same time, the feedback flag and data of the previous stage are latched, and the feedback valid bit outputted from the output end of the first feedback logic circuit 13 is the data of the second valid bit register 11 received by the second input end of the first feedback logic circuit 13, and the feedback data outputted from the output end of the first feedback logic circuit 13 is the data of the feedback data register 12 received by the second input end of the first feedback logic circuit 13.

[0178] In one embodiment, the sampling decision node 2 further includes a decision logic circuit, and the calculation feedback node 3 further includes an address register, a first valid bit register, and an output data register. In each clock cycle, the decision logic circuit executes:

[0179] The output end of the decision logic circuit outputs the data of the address register received by the third input end of the decision logic circuit to the address register of the calculation feedback node 3, outputs the data of the first valid bit register received by the third input end of the decision logic circuit to the first valid bit register of the calculation feedback node 3, and:

[0180] If the feedback received at the second input end of the decision logic circuit is set to a valid position, the output end of the decision logic circuit outputs the feedback data received at the second input end of the decision logic circuit to the output data register of the calculation feedback node 3; otherwise

[0181] The output end of the decision logic circuit outputs the memory data of the memory 5 received by the first input end of the decision logic circuit to the output data register of the calculation feedback node 3 .

[0182] Specifically, the sampling decision node 2 compares the feedback data and address information received from the calculation feedback node 3. Through the logic operation of the first feedback logic circuit 13 of the sampling decision node 2, the current feedback data is compared with the address information. According to the comparison result, the first feedback logic circuit 13 selects to output the current feedback data or the historical feedback data transmitted by the previous node. The specific comparison method is:

[0183] If the effective bit of the calculation result of the feedback data and the effective bit data of the address information are both effective, and the address of the calculation result of the feedback data is the same as the address data of the address information, the feedback data is determined to be effective, and the first feedback logic circuit 13 outputs the feedback data received from the calculation feedback node 3;

[0184] If the valid bit of the calculation result of the feedback data and the valid bit data of the address information are not valid at the same time, or if the calculation result address of the processed feedback data and the address data of the address information are different when they are valid at the same time, the first feedback logic circuit 13 outputs the feedback data of the previous node.

[0185] The feedback data received from the calculation feedback node 3 is the current feedback data, and the feedback data transmitted by the previous node is the historical feedback data.

[0186] Then, the decision logic circuit 15 decides to output feedback data or memory data according to the valid bit of the calculation result in the current feedback data or the historical feedback data output by the first feedback logic circuit 13 .

[0187] Specifically, the output end of the decision logic circuit 15 outputs the data of the address register 9 received by the third input end of the decision logic circuit 15 to the address register 9 of the calculation feedback node 3, and outputs the data of the first valid bit register 10 received by the third input end of the decision logic circuit 15 to the first valid bit register 10 of the calculation feedback node 3, and:

[0188] If the feedback received at the second input terminal of the decision logic circuit 15 is set to a valid position, the output terminal of the decision logic circuit 15 outputs the feedback data received at the second input terminal of the decision logic circuit 15 to the output data register 16 of the calculation feedback node 3; otherwise

[0189] The output end of the decision logic circuit 15 outputs the data of the memory 5 received by the first input end of the decision logic circuit 15 to the output data register 16 of the calculation feedback node 3 .

[0190] Since the second input end of the decision logic circuit 15 is connected to the output end of the first feedback logic circuit 13, the logic judgment of the first feedback logic circuit 13 has judged the current feedback result received by the feedback interface of the first feedback logic circuit 13 and the historical feedback result received by the second input end of the first feedback logic circuit 13. Therefore, the second input end of the decision logic circuit 15 receives the judgment of the first feedback logic circuit 13 on the current feedback result and the historical feedback result. If the feedback received by the second input end of the decision logic circuit 15 is in the valid position, that is, the output of the first feedback logic circuit 13 is valid, the output of the decision logic circuit 15 preferentially selects to output the feedback data received by the second input end of the decision logic circuit 15 to the output data register 16 of the calculation feedback node 3, otherwise, the output end of the decision logic circuit 15 outputs the data of the memory 5 received by the first input end of the decision logic circuit 15 to the output data register 16 of the calculation feedback node 3.

[0191] The calculation feedback node 3 performs logical operations based on the data arbitrated by the sampling decision node 2, generates valid data and feeds it back to the upstream node, and outputs the processed data to the write node 4, which writes back to the memory 5 and generates output from the external output terminal 7, and the pipeline operation is repeated over and over again.

[0192] In one embodiment, the computation feedback node 3 further comprises a computation logic circuit, and in each clock cycle, the computation logic circuit executes:

[0193] If the data of the first valid bit register received by the input end of the calculation logic circuit is set, a preset logic operation is performed on the data of the output data register received by the input end of the calculation logic circuit to obtain calculation result data, and the calculation result data is output from the output end of the calculation logic circuit.

[0194] Specifically, the calculation logic circuit 17 included in the calculation feedback node 3 and the logic calculation performed by the calculation logic circuit 17 are set according to actual needs. For example, it can be set to increase a fixed number. For example, for the operation processing of the sequence number, the logic calculation of the calculation logic circuit 17 is an addition calculation. That is, the data obtained by the memory 5 is added by one.

[0195] In one embodiment, the external input terminal 6 includes a valid bit input terminal 61 and an address input terminal 62, and the read node 1 further includes a second feedback logic circuit. In each clock cycle, the second feedback logic circuit performs:

[0196] If the calculation result valid bit received at the feedback input terminal of the second feedback logic circuit is consistent with the data of the valid bit input terminal 61 received at the first input terminal of the second feedback logic circuit, and if the calculation result address received at the feedback input terminal of the second feedback logic circuit is consistent with the data of the address input terminal 62 received at the first input terminal of the second feedback logic circuit, then the feedback valid bit outputted by the output terminal of the second feedback logic circuit is the calculation result valid bit received at the feedback input terminal of the second feedback logic circuit, and the feedback data outputted by the output terminal of the second feedback logic circuit is the calculation result data received at the feedback input terminal of the second feedback logic circuit.

[0197] Specifically, the second feedback logic circuit 14 is only provided at the read node 1 . The second feedback logic circuit 14 matches the data received at the feedback input end with the data received at the first input end: if the calculation result valid bit received at the feedback input end of the second feedback logic circuit 14 is consistent with the data of the first valid bit register 10 received at the first input end of the second feedback logic circuit 14 and is set, and if the calculation result address received at the feedback input end of the second feedback logic circuit 14 is consistent with the data of the address register 9 received at the first input end of the second feedback logic circuit 14, that is, the feedback data and the input end data are valid at the same time and the processed RAM address is the same, then it is determined that the feedback data is valid, the feedback flag is set and the current feedback data is latched, the feedback valid bit outputted at the output end of the second feedback logic circuit 14 is the calculation result valid bit received at the feedback input end of the second feedback logic circuit 14, and the feedback data outputted at the output end of the second feedback logic circuit 14 is the calculation result data received at the feedback input end of the second feedback logic circuit 14; if the feedback data and the input end data are not valid at the same time, or the processed RAM addresses are different when they are valid at the same time, then the output is 0, the feedback valid bit outputted at the output end of the second feedback logic circuit 14 is 0, and the feedback data outputted at the output end of the second feedback logic circuit 14 is 0.

[0198] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A pipeline operation processing system, characterized in that: include: A plurality of nodes connected in sequence for communication, wherein the nodes at least include a read node, a sampling decision node, a calculation feedback node, a write node and a memory, The input end of the read node is communicatively connected to the input end of the external input end, and the output end is communicatively connected to the input end of the memory; The input end of the sampling decision node is communicatively connected to the output end of the read node and the output end of the memory, and the output end is communicatively connected to the input end of the calculation feedback node; The output end of the calculation feedback node is communicatively connected to the input end of the write node, and the output end is communicatively connected to the feedback input end of the read node and the feedback input end of the sampling decision node; The output end of the write node is communicatively connected with the input end of the memory and the external output end.

2. The pipeline operation processing system according to claim 1, characterized in that: The external input terminal includes a valid bit input terminal and an address input terminal, the read node, the sampling decision node, and the calculation feedback node all include an address register and a first valid bit register, The input end of the address register of the read node is communicatively connected to the address input end, the output end of the address register of the read node is communicatively connected to the input end of the memory, the input end of the first valid bit register of the read node is communicatively connected to the valid bit input end, and the output end of the first valid bit register of the read node is communicatively connected to the input end of the memory; The input end of the address register of the sampling decision node is communicatively connected to the output end of the address register of the read node, the output end of the address register of the sampling decision node is communicatively connected to the input end of the address register of the calculation feedback node, the input end of the first valid bit register of the sampling decision node is communicatively connected to the output end of the first valid bit register of the read node, and the output end of the first valid bit register of the sampling decision node is communicatively connected to the input end of the first valid bit register of the calculation feedback node; The output end of the address register of the calculation feedback node is also communicatively connected to the input end of the memory.

3. The pipeline operation processing system according to claim 2, characterized in that: The read node further includes a second valid bit register, a feedback data register, a first feedback logic circuit and a second feedback logic circuit, and the sampling decision node further includes a second valid bit register and a feedback data register, wherein: The first valid bit register and the address register of the read node are respectively connected to the first input end of the first feedback logic circuit of the read node in communication, the second valid bit register and the feedback data register of the read node are respectively connected to the second input end of the first feedback logic circuit of the read node in communication, and the output end of the first feedback logic circuit of the read node is respectively connected to the second valid bit register and the feedback data register of the sampling decision node in communication; The valid bit input terminal and the address input terminal are respectively connected to the first input terminal of the second feedback logic circuit of the read node, and the output terminal of the second feedback logic circuit of the read node is respectively connected to the second valid bit register and feedback data register of the read node.

4. The pipeline operation processing system according to claim 3, characterized in that: The sampling decision node further includes a first feedback logic circuit and a decision logic circuit, and the calculation feedback node further includes an output data register, wherein: The first valid bit register and the address register of the sampling decision node are respectively communicatively connected to the first input end of the first feedback logic circuit of the sampling decision node, the second valid bit register and the feedback data register of the sampling decision node are respectively communicatively connected to the second input end of the first feedback logic circuit of the sampling decision node, the output end of the first feedback logic circuit of the sampling decision node is communicatively connected to the second input end of the decision logic circuit, the first input end of the decision logic circuit is communicatively connected to the output end of the memory, the first valid bit register and the address register of the sampling decision node are respectively communicatively connected to the third input end of the decision logic circuit, and the output end of the decision logic circuit is respectively communicatively connected to the address register, the first valid bit register and the output data register of the calculation feedback node.

5. The pipeline operation processing system according to claim 4, characterized in that: The external output terminal includes a valid bit output terminal and a data output terminal, the calculation feedback node also includes a calculation logic circuit, and the write node includes a first valid bit register and an output data register, wherein: The address register, the first valid bit register and the output data register of the calculation feedback node are respectively connected to the input end of the calculation logic circuit in communication, the first output end of the calculation logic circuit is respectively connected to the feedback input end of the first feedback logic circuit of the read node, the feedback input end of the second feedback logic circuit of the read node and the feedback input end of the first feedback logic circuit of the sampling decision node in communication, and outputs the calculation result valid bit, the calculation result address and the calculation result data, and the second output end of the calculation logic circuit is respectively connected to the input end of the first valid bit register of the write node, the input end of the output data register of the write node and the input end of the memory in communication; The output end of the first valid bit register of the write node is communicatively connected to the valid bit output end, and the output end of the output data register of the write node is communicatively connected to the data output end and the input end of the memory respectively.

6. The pipeline operation processing system according to claim 1, characterized in that: The node further includes a read waiting node, and a first output terminal of the read node is communicatively connected to a first input terminal of the sampling decision node through one or more read waiting nodes.

7. A processing method of a pipeline operation processing system according to any one of claims 1 to 6, characterized in that: include: In each clock cycle: The read node receives address information from an external input terminal, receives calculation result data from the calculation feedback node, outputs a read address to the memory according to the received address information, and transmits the address information and the calculation result data to the next node; The sampling decision node receives memory data about the read address from the memory, receives the calculation result data and the calculation result address from the calculation feedback node, compares the calculation result address with the address information, selects the calculation result data received by the calculation feedback node, the calculation result data transmitted by the previous node, or the memory data as the decision data based on the comparison result, outputs the decision data to the calculation feedback node and transmits the address information; After performing logic calculation on the received decision data, the calculation feedback node outputs the calculation result data and transmits the address information to the write node, and feeds back the calculation result data and the calculation result address to the read node and the sampling decision node; The write node writes the calculation result data into the memory according to the address information, and outputs the calculation result data.

8. The processing method of the pipeline operation processing system according to claim 7, characterized in that: The calculation feedback node also feeds back the effective bit of the calculation result to the read node and the sampling decision node, the address information includes address data and effective bit data, the read node and the sampling decision node both include a first feedback logic circuit, an address register, a first effective bit register, a second effective bit register, and a feedback data register, and in each clock cycle, the first feedback logic circuit executes: If the calculation result valid bit received by the first feedback logic circuit from the calculation feedback node is consistent with the data of the first valid bit register received by the first input terminal of the first feedback logic circuit and is set, and if the calculation result address received by the first feedback logic circuit from the calculation feedback node is consistent with the data of the address register received by the first input terminal of the first feedback logic circuit, then the feedback valid bit output by the output terminal of the first feedback logic circuit is the calculation result valid bit received by the feedback input terminal of the first feedback logic circuit, and the feedback data output by the output terminal of the first feedback logic circuit is the calculation result data received by the feedback input terminal of the first feedback logic circuit; Otherwise, the feedback valid bit outputted by the output end of the first feedback logic circuit is the data of the second valid bit register received by the second input end of the first feedback logic circuit, and the feedback data outputted by the output end of the first feedback logic circuit is the data of the feedback data register received by the second input end of the first feedback logic circuit.

9. The processing method of the pipeline operation processing system according to claim 8, characterized in that: The sampling decision node further includes a decision logic circuit, and the calculation feedback node further includes an address register, a first valid bit register, and an output data register. In each clock cycle, the decision logic circuit executes: The output end of the decision logic circuit outputs the data of the address register received by the third input end of the decision logic circuit to the address register of the calculation feedback node, outputs the data of the first valid bit register received by the third input end of the decision logic circuit to the first valid bit register of the calculation feedback node, and: If the feedback received at the second input terminal of the decision logic circuit is set to a valid bit, the output terminal of the decision logic circuit outputs the feedback data received at the second input terminal of the decision logic circuit to the output data register of the calculation feedback node; otherwise The output end of the decision logic circuit outputs the memory data of the memory received by the first input end of the decision logic circuit to the output data register of the calculation feedback node.

10. The processing method of the pipeline operation processing system according to claim 9, characterized in that: The computation feedback node further comprises a computation logic circuit, and in each clock cycle, the computation logic circuit executes: If the data of the first valid bit register received by the input end of the calculation logic circuit is set, a preset logic operation is performed on the data of the output data register received by the input end of the calculation logic circuit to obtain calculation result data, and the calculation result data is output from the output end of the calculation logic circuit.

11. The processing method of the pipeline operation processing system according to claim 8, characterized in that: The external input terminal includes a valid bit input terminal and an address input terminal, and the read node also includes a second feedback logic circuit. In each clock cycle, the second feedback logic circuit performs: If the calculation result valid bit received at the feedback input terminal of the second feedback logic circuit is consistent with the data of the valid bit input terminal received at the first input terminal of the second feedback logic circuit, and if the calculation result address received at the feedback input terminal of the second feedback logic circuit is consistent with the data of the address input terminal received at the first input terminal of the second feedback logic circuit, then the feedback valid bit outputted by the output terminal of the second feedback logic circuit is the calculation result valid bit received at the feedback input terminal of the second feedback logic circuit, and the feedback data outputted by the output terminal of the second feedback logic circuit is the calculation result data received at the feedback input terminal of the second feedback logic circuit.