Routing module, network-on-chip, and system-on-chip

By implementing multi-directional data packet routing in the on-chip interconnect system through the routing module, the bus crossover problem caused by the direct bus connection method is solved, the layout is optimized and a margin is reserved for high bandwidth design, thereby improving the security and reliability of the system's data output.

CN123185129APending Publication Date: 2026-11-27CHENGDU NANFEI MICROELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611709565.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-11-02
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In existing technologies, the direct bus connection method used in on-chip interconnect systems leads to severe crossover between buses, affecting physical layout and limiting high-bandwidth design.

Method used

A routing module is used for data packet routing. Through the signal transmission path formed by the receiving end and multiple output ends, the data transmission unit and selection circuit determine the signal transmission path of the data packet, realizing multi-directional data packet routing and forwarding, and reducing bus crossover.

Benefits of technology

Optimize the physical layout of hardware, alleviate cabling congestion, reserve more design margin for high-bandwidth system design, reduce bus crossings, and improve the security and reliability of data output.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123185129A_ABST
    Figure CN123185129A_ABST
Patent Text Reader

Abstract

The application discloses a routing module, an on-chip interconnection network and an on-chip interconnection system. The routing module comprises a receiving end, a plurality of output ends, each output end and the receiving end forming a signal transmission path, a plurality of data transmission units, each data transmission unit being arranged on a signal transmission path one by one, each data transmission unit being configured with a selection circuit corresponding to the direction of the signal transmission path, and any data transmission unit being configured to determine whether the signal transmission path of the service data in the first data packet received by the receiving end is the signal transmission path where the data transmission unit is located based on the path data in the first data packet and the selection circuit configured for the data transmission unit, and if yes, the first data packet is routed and output through the receiving end on the signal transmission path. The routing module can effectively reduce bus crossing, optimize hardware physical layout, relieve wiring congestion and reserve greater design margin for high-bandwidth system design.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of on-chip interconnect technology for integrated circuits, and specifically to a routing module, an on-chip interconnect network, and an on-chip interconnect system. Background Technology

[0002] As the complexity of integrated circuit design continues to increase, the number of components integrated in a System-on-Chip (SoC) continues to grow. SoCs often employ on-chip interconnect systems to interconnect multiple components. Therefore, as the core infrastructure connecting various components, the on-chip interconnect system determines the physical distribution of each component on the chip and directly affects the chip's overall performance, power consumption, and area.

[0003] In related technologies, when an on-chip interconnect system interconnects multiple components, such as... Figure 1 As shown, a direct bus connection method is adopted, meaning that each component is directly connected to the components that need to be connected via a corresponding bus, thereby achieving interconnection between multiple components. This direct bus connection method requires a large number of buses when interconnecting multiple master and slave components, leading to significant bus crossover. From a digital back-end design perspective, crossover buses are detrimental to physical layout and limit the implementation of high bandwidth designs. Summary of the Invention

[0004] This invention primarily addresses the technical problem of severe cross-connection between buses in current on-chip interconnect systems using direct bus connection, which leads to unfavorable physical layout in digital back-end design and limits the implementation of high-bandwidth designs.

[0005] According to the first aspect, one embodiment provides a routing module, including:

[0006] The receiving end is used to receive a first data packet, the first data packet including at least path data and service data, the path data being used to provide feedback on the signal transmission path of the service data;

[0007] Multiple output terminals, each of which is connected to the receiving terminal, and a signal transmission path is formed between each of the multiple output terminals and the receiving terminal, with each signal transmission path corresponding to a transmission direction;

[0008] Multiple data transmission units are respectively arranged on the multiple signal transmission paths of the multiple output terminals.

[0009] In the plurality of data transmission units, each data transmission unit is configured with a selection circuit corresponding to the direction of the signal transmission path it is in, and for any data transmission unit, it is used to:

[0010] Based on the path data in the first data packet received by the receiving end and its own configured selection circuit, it determines whether the signal transmission path of the service data in the received first data packet is the same as the signal transmission path it is on. If so, the received first data packet is routed and output through the receiving end on the same signal transmission path; otherwise, the routing of the received first data packet is stopped.

[0011] In one embodiment, the plurality of output terminals include a first output terminal, a second output terminal, and a third output terminal; the first output terminal, the second output terminal, and the third output terminal are respectively connected to the receiving terminal to form corresponding signal transmission paths.

[0012] In one embodiment, the routing module further includes:

[0013] A connection node is provided, wherein the receiving end is connected to the connection node, and the first output end, the second output end, and the third output end are respectively connected to the connection node;

[0014] Of the first output terminal, the second output terminal, and the third output terminal: the line connecting any one of the output terminals to the connection node is perpendicular to the line connecting the receiving terminal to the connection node; the line connecting the first output terminal to the connection node is the corresponding signal transmission path; the line connecting the second output terminal to the connection node is the corresponding signal transmission path; and the line connecting the third output terminal to the connection node is the corresponding signal transmission path.

[0015] In one embodiment, the first data packet further includes legality indication data, which is used to indicate the legality of the business data;

[0016] The plurality of data transmission units include a first data transmission unit, a second data transmission unit, and a third data transmission unit;

[0017] The first data transmission unit includes a first selection circuit and a first buffer circuit; the second data transmission unit includes a second selection circuit and a second buffer circuit; the third data transmission unit includes a third selection circuit and a third buffer circuit.

[0018] The first data transmission unit includes a first selection circuit and a first buffer circuit. The first selection circuit is connected to the receiving end and is used to perform logical operations based on path data and validity indication data in the first data packet received by the receiving end to generate a first logical operation result. The first logical operation result is used to indicate whether the signal transmission path of the service data in the first data packet received by the receiving end is the signal transmission path where the first selection circuit is located. The first buffer circuit is connected to the receiving end, the first selection circuit, and the first output end. It is used to receive the first logical operation result and, in response to the first logical operation result indicating that the signal transmission path of the service data in the first data packet received by the receiving end is its own signal transmission path, buffer the first data packet received by the receiving end and output it through the first output end.

[0019] The second data transmission unit includes a second selection circuit and a second buffer circuit. The second selection circuit is connected to the receiving end and is used to perform logical operations based on the path data and validity indication data in the first data packet received by the receiving end to generate a second logical operation result. The second logical operation result is used to indicate whether the signal transmission path of the service data in the first data packet received by the receiving end is the signal transmission path where the second selection circuit is located. The second buffer circuit is connected to the receiving end, the second selection circuit, and the second output end. It is used to receive the second logical operation result and, in response to the second logical operation result indicating that the signal transmission path of the service data in the first data packet received by the receiving end is its own signal transmission path, buffer the first data packet received by the receiving end and output it through the second output end.

[0020] The third data transmission unit includes a third selection circuit and a third buffer circuit. The third selection circuit is connected to the receiving end and is used to perform logical operations based on the path data and validity indication data in the first data packet received by the receiving end to generate a third logical operation result. The third logical operation result is used to indicate whether the signal transmission path of the service data in the first data packet received by the receiving end is the signal transmission path where the third selection circuit is located. The third buffer circuit is connected to the receiving end, the third selection circuit, and the third output end. It is used to receive the third logical operation result and, in response to the third logical operation result indicating that the signal transmission path of the service data in the first data packet received by the receiving end is its own signal transmission path, buffer the first data packet received by the receiving end and output it through the third output end.

[0021] In one embodiment, any one of the first logical operation result, the second logical operation result, and the third logical operation result is a first level signal when the signal transmission path of the service data in the first data packet received by the receiving end is the signal transmission path in which it is located;

[0022] The first buffer circuit, the second buffer circuit, and the third buffer circuit are buffer circuits with the same circuit structure. In the first buffer circuit, the second buffer circuit, and the third buffer circuit, when any one of the buffer circuits responds to the first level signal, it buffers and outputs the first data packet received by the receiving end through the corresponding output terminal.

[0023] The cache circuit includes:

[0024] A logic right shift circuit is used to logically shift the path data in the first data packet received by the receiving end by N bits, and fill the high bits after the shift with 0 to form the shifted path data, where N≥1;

[0025] The first register group is connected to the logic right shift circuit and the receiving end respectively. The first register group is used to obtain the service data and the shifted path data in the corresponding first data packet, and in response to the first level signal, it buffers and outputs the obtained service data and the shifted path data through the output end on the signal transmission path.

[0026] The second register group is used to buffer and output the received first level signal through the output terminal on the signal transmission path in response to the first level signal.

[0027] In one embodiment, the first data packet further includes flip indication data, which is used to indicate whether the service data has been flipped.

[0028] The routing module also includes:

[0029] The flip decision processing unit is used to determine, upon receiving the first data packet, whether the service data in the currently received first data packet needs to be flipped based on the service data in the previously received first data packet and the service data in the currently received first data packet. If flipping is required, the service data in the currently received first data packet is flipped, and the flip indication data in the currently received first data packet is set to a state indicating that the service data has been flipped.

[0030] The data recovery unit is used to receive the first data packet output by the output terminal, recover the service data in the received first data packet according to the flip instruction data in the received first data packet, and transmit the service data in the first data packet after the service data is recovered to the connected slave device.

[0031] The receiving end receives the first data packet through the flip decision processing unit; when one of the multiple output ends is directly connected to the slave device, the output end directly connected to the slave device is connected to the corresponding slave device through the data recovery unit.

[0032] In one embodiment, determining whether the service data in the currently received first data packet needs to be flipped based on the service data in the previously received first data packet and the service data in the currently received first data packet includes:

[0033] Each field value in the service data of the currently received first data packet is compared with the corresponding field value in the service data of the previously received first data packet. If the consistency rate is greater than or equal to a preset ratio, the service data in the currently received first data packet does not need to be flipped; if the consistency rate is less than the preset ratio, the service data in the currently received first data packet needs to be flipped.

[0034] According to a second aspect, one embodiment provides an on-chip interconnect network, including: a plurality of routing modules, wherein each of the plurality of routing modules is a routing module as described above.

[0035] In one embodiment, the system includes: a tile, wherein all routing modules of the plurality of routing modules are disposed on the tile, and the connection nodes of any two routing modules are staggered in both the vertical and horizontal directions.

[0036] According to a third aspect, one embodiment provides an on-chip interconnect system for interconnecting M groups of devices, where M ≥ 3, and each group of devices includes a master device and a slave device; the on-chip interconnect system includes: at least one on-chip interconnect network, and each of the at least one on-chip interconnect network includes the M routing modules as described above;

[0037] When M is an even number, the at least one on-chip interconnect network is (M-2) / 2 on-chip interconnect networks;

[0038] When M is an odd number, the at least one on-chip interconnect network is (M-1) / 2 on-chip interconnect networks;

[0039] Each of the at least one on-chip interconnect network is provided with M routing modules, the M routing modules including a routing module with the receiving end located in a first direction, a routing module with the receiving end located in a second direction, a routing module with the receiving end located in a third direction, and a routing module with the receiving end located in a fourth direction.

[0040] For the first-level on-chip interconnect network: the receiving end of the routing module located in the first direction is connected to the corresponding master device, and one of the multiple outputs of the routing module located in the first direction is connected to the receiving end of the corresponding routing module in the next-level on-chip interconnect network, while the other outputs are connected to the corresponding slave devices; the receiving end of the routing module located in the second direction is connected to one output of the corresponding routing module in the next-level on-chip interconnect network, and the multiple outputs of the routing module located in the second direction are connected to the corresponding slave devices; the receiving end of the routing module located in the third direction is connected to the corresponding master device, and one of the multiple outputs of the routing module located in the third direction is connected to the receiving end of the corresponding routing module in the next-level on-chip interconnect network, while the other outputs are connected to the corresponding slave devices; the receiving end of the routing module located in the fourth direction is connected to the corresponding master device, and one of the multiple outputs of the routing module located in the fourth direction is connected to the receiving end of the corresponding routing module in the next-level on-chip interconnect network, while the other outputs are connected to the corresponding slave devices.

[0041] For on-chip interconnects that are neither the first nor the last level: the receiving end of the routing module in the first direction is connected to one output of the corresponding routing module in the preceding level on-chip interconnect; one output of the multiple outputs of the routing module in the first direction is connected to the receiving end of the corresponding routing module in the next level on-chip interconnect; the other outputs are connected to the corresponding slave devices. Similarly, the receiving end of the routing module in the second direction is connected to one output of the corresponding routing module in the next level on-chip interconnect; one output of the multiple outputs of the routing module in the second direction is connected to the receiving end of the corresponding routing module in the preceding level on-chip interconnect; the other outputs are connected to the corresponding slave devices. The receiving end of the routing module located in the third direction is connected to the corresponding master device. Among the multiple outputs of the routing module located in the third direction, one output is connected to the receiving end of the corresponding routing module in the next level of the on-chip interconnection network, another output is connected to the receiving end of the corresponding routing module in the previous level of the on-chip interconnection network, and the other output is connected to the corresponding slave device. The receiving end of the routing module located in the fourth direction is connected to the corresponding master device. Among the multiple outputs of the routing module located in the fourth direction, one output is connected to the receiving end of the corresponding routing module in the next level of the on-chip interconnection network, another output is connected to the receiving end of the corresponding routing module in the previous level of the on-chip interconnection network, and the other output is connected to the corresponding slave device.

[0042] For the last-level on-chip interconnect: the receiving end of the routing module in the first direction is connected to one output of the corresponding routing module in the previous level on-chip interconnect, and multiple outputs of the routing module in the first direction are connected to corresponding slave devices; the receiving end of the routing module in the second direction is connected to the corresponding master device, and one output of the routing module in the second direction is connected to the receiving end of the corresponding routing module in the previous level on-chip interconnect, while the other outputs are connected to corresponding slave devices; the receiving end of the routing module in the third direction is connected to the corresponding master device, and one output of the routing module in the third direction is connected to the receiving end of the corresponding routing module in the previous level on-chip interconnect, while the other outputs are connected to corresponding slave devices; the receiving end of the routing module in the fourth direction is connected to the corresponding master device, and one output of the routing module in the fourth direction is connected to the receiving end of the corresponding routing module in the previous level on-chip interconnect, while the other outputs are connected to corresponding slave devices.

[0043] According to the routing module, on-chip interconnect network, and on-chip interconnect system of the above embodiments, the routing module has a receiving end and multiple output ends. Multiple signal transmission paths are formed between the receiving end and each output end, and each signal transmission path is configured with a data transmission unit. When routing a first data packet, the routing module, based on the path data carried by the first data packet, enables each data transmission unit to determine, through its configured selection circuit, whether its signal transmission path is the target transmission path for the service data within the first data packet. If it is determined to be the target transmission path, the data transmission unit routes and outputs the first data packet through the output end corresponding to its signal transmission path; if it is determined not to be the target transmission path, the data transmission unit stops routing and outputting the first data packet. Since each signal transmission path corresponds to a single transmission direction, multiple signal transmission paths can correspond to multiple transmission directions. Therefore, the routing module can realize the routing and forwarding of the first data packet to multiple transmission directions. Compared to the prior art where each slave device is directly connected to the master device via a wire, using this routing module for device interconnection can effectively reduce bus crossings, optimize hardware physical layout, alleviate wiring congestion problems, and reserve greater design margin for high-bandwidth system designs. Attached Figure Description

[0044] Figure 1 This refers to the connection method used in existing technologies when devices are interconnected.

[0045] Figure 2 This is a schematic diagram of the routing module in one embodiment;

[0046] Figure 3 This is a schematic diagram of a routing module with three output terminals in one embodiment;

[0047] Figure 4 This is a circuit diagram of the first data transmission unit in one embodiment;

[0048] Figure 5 This is a circuit diagram of the second data transmission unit in one embodiment;

[0049] Figure 6 This is a circuit diagram of the third data transmission unit in one embodiment;

[0050] Figure 7 This is a circuit diagram of a first selection circuit in one embodiment;

[0051] Figure 8 This is a circuit diagram of the second selection circuit in one embodiment;

[0052] Figure 9 This is a circuit diagram of a third selection circuit in one embodiment;

[0053] Figure 10This is a schematic diagram of an on-chip interconnect system for interconnecting eight groups of devices in one embodiment.

[0054] Reference numerals: 100, Flip decision processing unit; 200, Data recovery unit; 301, First data transmission unit; 3011, First selection circuit; 3013, Buffer circuit; 3013a, Second register group; 3013b, First register group; 3013c, Logic right shift circuit; 302, Second data transmission unit; 3021, Second selection circuit; 303, Third data transmission unit; 3031, Third selection circuit; 304, Connection node. Detailed Implementation

[0055] The present invention will now be described in further detail with reference to the accompanying drawings and specific embodiments. Similar elements in different embodiments are referred to by associated similar element reference numerals. In the following embodiments, many details are described to facilitate a better understanding of the invention. However, those skilled in the art will readily recognize that some features may be omitted in different situations, or may be replaced by other elements, materials, or methods. In some cases, certain operations related to the present invention are not shown or described in the specification. This is to avoid obscuring the core parts of the invention with excessive description. For those skilled in the art, detailed description of these related operations is not necessary; they can fully understand the related operations based on the description in the specification and general technical knowledge in the art.

[0056] Furthermore, the features, operations, or characteristics described in the specification can be combined in any suitable manner to form various embodiments. At the same time, the steps or actions in the method description can be rearranged or adjusted in a manner obvious to those skilled in the art. Therefore, the various orders in the specification and drawings are only for the clear description of a particular embodiment and do not imply a necessary order, unless otherwise stated that a particular order must be followed.

[0057] The serial numbers assigned to components in this document, such as "for example" and "second," are used only to distinguish the described objects and do not have any sequential or technical meaning. The terms "connection" and "linkage" used in this invention, unless otherwise specified, include both direct and indirect connections (linkages).

[0058] This application provides a routing module applicable to interconnecting multiple devices, which can be three or more devices, including master and slave devices. The master device, acting as a sender, can send a first data packet to the slave devices, and the slave devices, acting as receivers, can receive the first data packet sent by the master device. The routing module has a receiver and multiple outputs, forming multiple signal transmission paths between the receiver and each output. Each signal transmission path is equipped with a data transmission unit. When routing the first data packet, the routing module, based on the path data carried by the first data packet, enables each data transmission unit to determine, through its configured selection circuit, whether its current signal transmission path is the target transmission path for the service data within the first data packet. If it is determined to be the target transmission path, the data transmission unit routes and outputs the first data packet via the output of the corresponding signal transmission path; if it is determined not to be the target transmission path, the data transmission unit stops routing and outputting the first data packet. Since each signal transmission path corresponds to a single transmission direction, multiple signal transmission paths can correspond to multiple transmission directions. Therefore, this routing module can realize the routing and forwarding of the first data packet to multiple transmission directions. Compared with the existing technology where each slave device is directly connected to the master device by a wire, the application of this routing module for device interconnection can effectively reduce bus crossing, optimize the physical layout of hardware, alleviate wiring congestion problems, and reserve greater design margin for high-bandwidth system design.

[0059] In one embodiment, such as Figure 2 As shown, the routing module includes a receiver, multiple output terminals, and multiple data transmission units. The receiver receives a first data packet, which includes at least path data and service data. The path data is used to feed back the signal transmission path of the service data. Each of the multiple output terminals is connected to the receiver, forming a signal transmission path between each output terminal and the receiver. Each signal transmission path corresponds to a transmission direction; that is, different output terminals correspond to different transmission paths, and multiple signal transmission paths correspond to multiple transmission directions. The multiple data transmission units correspond one-to-one with the multiple signal transmission paths of the multiple output terminals and are respectively set on the multiple signal transmission paths. That is, one data transmission unit is set on each signal transmission path. Each data transmission unit is configured with a selection circuit corresponding to the direction of its assigned signal transmission path. For any given data transmission unit, based on the path data in the first data packet received by the receiver and its own configured selection circuit, it determines whether the signal transmission path of the service data in the received first data packet is its own assigned signal transmission path. If so, the received first data packet is routed and output through the receiver on its assigned signal transmission path; otherwise, routing of the received first data packet is stopped.

[0060] Specifically, each of the multiple output terminals forms a signal transmission path with the receiving terminal, thus creating multiple signal transmission paths. Each signal transmission path corresponds to a data transmission unit, and each data transmission unit is configured with a selection circuit based on its own signal transmission path. After the routing module receives the first data packet from the receiving terminal, each data transmission unit on each signal transmission path determines, based on its configured selection circuit and the path data in the first data packet, whether the signal transmission path for transmitting the service data in the first data packet received by the receiving terminal is its own signal transmission path. If it is, the first data packet is routed to the next level through the output terminal corresponding to its own signal transmission path; otherwise, routing the received first data packet stops, meaning the first data packet is not routed to the next level through the output terminal of its own signal transmission path.

[0061] In this system, the first data packet is sent by the master device. The path data in the first data packet is determined by the master device according to a pre-configured routing lookup table. That is, the master device determines the path data for the first data packet to reach the target slave device (the slave device to which the first data packet needs to be sent) through the routing lookup table. The next level can be the output of a routing module connected to the next level, or it can be a slave device. In other words, when the next level connects to a routing module, the first data packet is routed through the output of the routing module corresponding to its own signal transmission path to the output of the next level connected to the routing module; when the next level connects to a slave device, the first data packet is routed through the output of the routing module corresponding to its own signal transmission path to the slave device. When the receiving end of the routing module is directly connected to the master device, the first data packet received by the routing module is the first data packet sent by the master device; when the receiving end of the routing module is connected to an output of a previous level routing module, the first data packet received by the routing module is the first data packet routed and output by the output of the previous level routing module.

[0062] Since each signal transmission path corresponds to a transmission direction, and the routing module has multiple signal transmission paths (i.e., multiple transmission directions), the first data packet can be routed to multiple directions through this routing module. Compared to direct wiring, this effectively reduces bus crossings, optimizes hardware physical layout, alleviates wiring congestion, and provides greater design margin for high-bandwidth systems. This is particularly evident when multiple routing modules are cascaded. One output of the previous routing module can be connected to the receiver of the next routing module, thereby expanding multiple signal transmission paths. For example, if a routing module has three outputs, when multiple routing modules are cascaded, the receiver of the second-level routing module is connected to one output of the first-level routing module, expanding multiple signal transmission paths through the second-level routing module. The receiver of the third-level routing module is connected to the receiver of the second-level routing module, further expanding multiple signal transmission paths through the third-level routing module. Multiple routing modules can be cascaded sequentially, effectively reducing bus crossings, optimizing hardware physical layout, alleviating wiring congestion, and providing greater design margin for high-bandwidth systems compared to direct wiring.

[0063] In one embodiment, such as Figure 3 As shown, the multiple output terminals include a first output terminal, a second output terminal, and a third output terminal. The first, second, and third output terminals are respectively connected to the receiving end, forming corresponding signal transmission paths. The transmission direction corresponding to the first output terminal is the first direction, the transmission direction corresponding to the second output terminal is the second direction, and the transmission direction corresponding to the third output terminal is the third direction. Specifically, the routing module can be configured with a connection node 304, and the first, second, and third output terminals are respectively connected to the connection node 304. The signal transmission path between the first output terminal and the connection node 304 is the signal transmission path corresponding to the first output terminal; the signal transmission path between the second output terminal and the connection node 304 is the signal transmission path corresponding to the second output terminal; and the signal transmission path between the third output terminal and the connection node 304 is the signal transmission path corresponding to the third output terminal. Specifically, any two adjacent lines among the following connections—the line connecting the receiving end to connection node 304, the line connecting the first output end to connection node 304, the line connecting the second output end to connection node 304, and the line connecting the third output end to connection node 304—are perpendicular to each other. That is, the line connecting any one of the first, second, and third output ends to connection node 304 is perpendicular to the line connecting the receiving end to connection node 304. The first direction is the direction in which the first output end extends outward in a straight line, the second direction is the direction in which the second output end extends outward in a straight line, and the third direction is the direction in which the third output end extends outward in a straight line.

[0064] Since the first output terminal, the second output terminal, the third output terminal and the receiving terminal are arranged in a cross shape, the output ports are arranged in an orderly and regular manner, which can further reduce bus crossing and facilitate the connection of multiple output terminals from the device or the cascading of routing modules.

[0065] In one embodiment, the first data packet further includes legality indication data, which is used to indicate the legality of the business data. Multiple data transmission units include a first data transmission unit 301, a second data transmission unit 302, and a third data transmission unit 303. The first data transmission unit 301 includes a first selection circuit 3011 and a first buffer circuit; the second data transmission unit 302 includes a second selection circuit 3021 and a second buffer circuit; the third data transmission unit includes a third selection circuit 3031 and a third buffer circuit.

[0066] like Figure 4 As shown, the first data transmission unit 301 includes a first selection circuit 3011 and a first buffer circuit. The first selection circuit 3011 is connected to the receiving end and is used to perform logical operations based on the path data and validity indication data in the first data packet received by the receiving end to generate a first logical operation result. The first logical operation result is used to indicate whether the signal transmission path of the service data in the first data packet received by the receiving end is the signal transmission path in which the receiving end is located. The first buffer circuit is connected to the receiving end, the first selection circuit 3011, and the first output terminal. It is used to receive the first logical operation result and, in response to the first logical operation result indicating that the signal transmission path of the service data in the first data packet received by the receiving end is the signal transmission path in which the first selection circuit 3011 is located, buffers and outputs the first data packet received by the receiving end through the first output terminal.

[0067] like Figure 5 As shown, the second data transmission unit 302 includes a second selection circuit 3021 and a second buffer circuit. The second selection circuit 3021 is connected to the receiving end and is used to perform logical operations based on the path data and validity indication data in the first data packet received by the receiving end to generate a second logical operation result. The second logical operation result is used to indicate whether the signal transmission path of the service data in the first data packet received by the receiving end is the signal transmission path in which the receiving end is located. The second buffer circuit is connected to the receiving end, the second selection circuit 3021, and the second output terminal. It is used to receive the second logical operation result. In response to the second logical operation result indicating that the signal transmission path of the service data in the first data packet received by the receiving end is the signal transmission path in which the second selection circuit 3021 is located, it buffers the first data packet received by the receiving end and outputs it through the second output terminal.

[0068] like Figure 6As shown, the third data transmission unit 303 includes a third selection circuit 3031 and a third buffer circuit. The third selection circuit 3031 is connected to the receiving end and is used to perform logical operations based on the path data and legality indication data in the first data packet received by the receiving end to generate a third logical operation result. The third logical operation result is used to indicate whether the signal transmission path of the service data in the first data packet received by the receiving end is the signal transmission path in which the receiving end is located. The third buffer circuit is connected to the receiving end, the third selection circuit 3031, and the third output terminal. It is used to receive the third logical operation result. In response to the third logical operation result indicating that the signal transmission path of the service data in the first data packet received by the receiving end is the signal transmission path in which the third selection circuit 3031 is located, it buffers the first data packet received by the receiving end and outputs it through the third output terminal.

[0069] Specifically, after the receiving end receives the first data packet, the first selection circuit 3011, the second selection circuit 3021, and the third selection circuit 3031 respectively extract the path data and the legality indication data from the first data packet, and perform logical operations based on the path data and the legality indication data to obtain the corresponding logical operation results. That is, the first selection circuit 3011 obtains the first logical operation result, the second selection circuit 3021 obtains the second logical operation result, and the third selection circuit 3031 obtains the third logical operation result.

[0070] The first logical operation result includes a first level signal and a second level signal. When the first logical operation result is a first level signal, it indicates that the signal transmission path where the first selection circuit 3011 is located is the signal transmission path of the service data in the first data packet. When the first logical operation result is a second level signal, it indicates that the signal transmission path where the first selection circuit 3011 is located is not the signal transmission path of the service data in the first data packet. Specifically, when the signal transmission path of the path data feedback service data in the first data packet is the signal transmission path where the first selection circuit 3011 is located, and the validity indication data indicates that the service data is valid, then the first logical operation result is a first level signal. When the signal transmission path of the path data feedback service data in the first data packet is not the signal transmission path where the first selection circuit 3011 is located, and / or, the validity indication data indicates that the service data is invalid, then the first logical operation result is a second level signal. When the first logical operation result is a first level signal, the first buffer circuit will buffer the first data packet and output the first data packet received by the receiving end through the first output terminal. Conversely, when the first logical operation result is a second level signal, the first buffer circuit will not buffer the first data packet, and the first data packet will not be output through the first output terminal. The result of the second logical operation includes a first-level signal and a second-level signal. When the result of the second logical operation is a first-level signal, it indicates that the signal transmission path of the second selection circuit 3021 is the signal transmission path of the service data in the first data packet. When the result of the second logical operation is a second-level signal, it indicates that the signal transmission path of the second selection circuit 3021 is not the signal transmission path of the service data in the first data packet. Specifically, when the signal transmission path of the path data feedback service data in the first data packet is the signal transmission path of the second selection circuit 3021, and the validity indication data indicates that the service data is valid, the result of the second logical operation is a first-level signal. When the signal transmission path of the path data feedback service data in the first data packet is not the signal transmission path of the second selection circuit 3021, and / or, the validity indication data indicates that the service data is invalid, the result of the second logical operation is a second-level signal. When the result of the second logical operation is a first-level signal, the second buffer circuit will buffer the first data packet and output the first data packet received by the receiving end through the second output terminal. Conversely, when the result of the second logical operation is a second-level signal, the second buffer circuit will not buffer the first data packet, and the first data packet will not be output through the second output terminal. The result of the third logic operation includes a first level signal and a second level signal; when the result of the third logic operation is a first level signal, it indicates that the signal transmission path where the third selection circuit 3031 is located is the signal transmission path of the service data in the first data packet; when the result of the third logic operation is a second level signal, it indicates that the signal transmission path where the third selection circuit 3031 is located is not the signal transmission path of the service data in the first data packet.Specifically, when the signal transmission path of the path data feedback service data in the first data packet is the signal transmission path of the third selection circuit 3031, and the validity indication data indicates that the service data is valid, the result of the first logic operation is a first-level signal. When the signal transmission path of the path data feedback service data in the first data packet is not the signal transmission path of the third selection circuit 3031, and / or the validity indication data indicates that the service data is invalid, the result of the first logic operation is a second-level signal. When the result of the third logic operation is a first-level signal, the third buffer circuit will buffer the first data packet and output the first data packet received by the receiving end through the third output terminal. Conversely, when the result of the third logic operation is a second-level signal, the third buffer circuit will not buffer the first data packet, and the first data packet will not be output through the third output terminal. The first-level signal can be a high-level signal, and the second-level signal can be a low-level signal.

[0071] In this embodiment, one of the first, second, and third logical operation results can be a first-level signal, and the other two can be second-level signals. In this case, the first data packet is output through the output terminal of the signal transmission path where the selection circuit corresponding to the first-level signal's logical operation result is located. For example, if the first logical operation result is a first-level signal, and the second and third logical operation results are both second-level signals, the first data packet is output through the first output terminal of the signal transmission path where the first selection circuit 3011 is located. Of course, the first, second, and third logical operation results can all be first-level signals. In this case, the first, second, and third output terminals respectively output the first data packet, that is, the first data packet is transparently transmitted. Transparent transmission can be understood as the first data packet being output from the first, second, and third output terminals of the routing module respectively.

[0072] Since the logic operation result of the first level signal can only be generated when the legality indicator data indicates that the business data is legal, it can effectively prevent illegal business data from being output, thereby improving the security and reliability of data output. That is, by setting a legality verification step as a prerequisite for business data output, illegal business data is avoided from flowing out, reducing the waste of resources caused by illegal data output.

[0073] In one embodiment, the path data may occupy 2 bits; wherein, 11 indicates that the signal transmission path where the first output terminal is located is the signal transmission path for transmitting service data in the first data packet; 10 indicates that the signal transmission path where the second output terminal is located is the signal transmission path for transmitting service data in the first data packet; 01 indicates that the signal transmission path where the third output terminal is located is the signal transmission path for transmitting service data in the first data packet; 00 indicates that the three signal transmission paths corresponding to the first output terminal, the second output terminal, and the third output terminal are all signal transmission paths for transmitting service data in the first data packet, that is, all three signal transmission paths transmit service data in the first data packet. The validity indication data occupies 1 bit, wherein 1 indicates that the service data is valid data, and 0 indicates that the service data is invalid data.

[0074] like Figure 7 The diagram shows the circuit structure of the first selection circuit 3011. The two inputs of the first AND gate are connected to one bit of the path data, and the two inputs of the second AND gate are connected to one bit of the path data through inverters. When the path data is 11, the first AND gate outputs 1, the second AND gate outputs 0, and the first OR gate outputs 1. At this time, when the validity indicator data is 1, the output result of the first logic operation is 1. When the path data is 00, the first AND gate outputs 0, the second AND gate outputs 1, and the first OR gate outputs 1. At this time, when the validity indicator data is 1, the output result of the first logic operation is 1.

[0075] like Figure 8 The diagram shows the circuit structure of the second selection circuit 3021. One input of the third AND gate is connected to one bit of the path data via an inverter, and the other input is connected to another bit of the path data. The two inputs of the fourth AND gate are each connected to one bit of the path data via inverters. When the path data is 10 (0 is connected to the input of the third AND gate with the inverter), the third AND gate outputs 1, the fourth AND gate outputs 0, and the second OR gate outputs 1. At this time, when the validity indicator data is 1, the output result of the second logic operation is 1. When the path data is 00, the third AND gate outputs 0, the fourth AND gate outputs 1, and the second OR gate outputs 1. At this time, when the validity indicator data is 1, the output result of the second logic operation is 1.

[0076] like Figure 9The diagram shows the circuit structure of the third selection circuit 3031. One input of the fifth AND gate is connected to one bit of the path data through an inverter, and the other input is connected to another bit of the path data. The two inputs of the sixth AND gate are connected to the path data through inverters. When the path data is 01 (0 is set by the input of the fifth AND gate with the inverter), the fifth AND gate outputs 1, the sixth AND gate outputs 0, and the third OR gate outputs 1. At this time, when the validity indicator data is 1, the result of the third logic operation is 1. When the path data is 00, the fifth AND gate outputs 0, the sixth AND gate outputs 1, and the third OR gate outputs 1. At this time, when the validity indicator data is 1, the result of the third logic operation is 1.

[0077] In one embodiment, the first cache circuit, the second cache circuit, and the third cache circuit are cache circuits 3013 with the same circuit structure. For example... Figure 4 , Figure 5 and Figure 6 As shown, the buffer circuit 3013 may include a logic right shift circuit 3013c, a first register group 3013b, and a second register group 3013a. The logic right shift circuit 3013c is used to receive path data in the first data packet and logically shift the path data to the right by N bits, and fill the high bits after the shift with 0 to form the shifted path data, where N≥1. The first register group 3013b is connected to the logic right shift circuit 3013c and the receiving end respectively. The first register group 3013b is used to obtain the service data and the shifted path data in the corresponding first data packet, and in response to the first level signal, buffers and outputs the obtained service data and the shifted path data through the output terminal on the signal transmission path. The second register group 3013a is used to buffer and output the received first level signal through the output terminal on the signal transmission path in response to the first level signal.

[0078] In one embodiment, N equals 2. The logical right shift circuit 3013c can be implemented by a shift register. Specifically, the shift register is used to receive path data in the first data packet and perform a logical right shift of the path data by N bits. During the logical right shift, the high-order bits generated after the shift are padded with 0, thus forming the shifted path data. More specifically, the shift register can be configured to have its highest two bits connected to a fixed value "00", while the lowest two bits of the path data transmitted from the previous stage are not connected to the shift register. That is, during the process of shifting path data into the shift register, the lowest two bits of the previous stage path data are discarded and do not participate in the input of the shift register, while the highest two bits of the shift register are filled with the fixed value "00". Therefore, when the shift register receives and shifts path data, it can perform a logical right shift function by padding the high bits with 0, and then output the path data after logical right shift by N bits. Since the N bits of path information that have been used in the path data are shifted out of the valid path field and discarded, the path data received by the subsequent routing module no longer contains the used path bits. The subsequent routing module will not mistake the historical path bits for the path bits to be used now, thereby avoiding the problem of data mistransmission caused by path data residue, repeated parsing or misaligned parsing.

[0079] The first register group 3013b acquires the service data and the path data shifted by the logic right shift circuit 3013c from the first data packet. In response to a first-level signal, it buffers the acquired service data and the shifted path data, and outputs the buffered service data and the shifted path data through the output terminal on its signal transmission path. Specifically, the first register group 3013b can be formed by multiple registers connected in series. These registers are connected sequentially along the signal transmission direction. When the data bit connected to the current-level register is high, the high-level signal is sequentially passed to the next-level register, thereby realizing the step-by-step buffering and transmission of data in the first register group 3013b. The second register group 3013a, in response to the first-level signal, buffers the received first-level signal and outputs the first-level signal through the output terminal on its signal transmission path. Similarly, the second register group 3013a can also be formed by multiple registers connected in series. Multiple registers are connected sequentially along the signal transmission direction. When the data bit connected to the current-level register is high, the high-level signal is sequentially passed to the next-level register, thereby realizing the step-by-step buffering and transmission of the first-level signal in the second register group 3013a. The first register group 3013b can buffer and output the service data and the shifted path data under the control of the first-level signal; the second register group 3013a can buffer and output the first-level signal itself under the control of the first-level signal. The first-level signal is consistent with the validity indication data. Therefore, the first data packet can be transmitted through the first register group 3013b and the second register group 3013a.

[0080] For example, when the path data is 11 and the validity indication data is 1, the first selection circuit 3011 outputs a first-level signal (high-level signal). The first register group 3013b of the buffer circuit 3013 on the signal transmission path where the first selection circuit 3011 is located buffers and outputs the path data and service data in the first data packet, and the second register group 3013a buffers and outputs the validity indication data in the first data packet. When the path data is 00 and the validity indication data is 1, the first selection circuit 3011, the second selection circuit 3021, and the third selection circuit 3031 respectively output first-level signals (high-level signals). The first register group 3013b on the buffer circuit 3013 on the signal transmission path where the first selection circuit 3011, the second selection circuit 3021, and the third selection circuit 3031 are located buffers and outputs the path data and service data in the first data packet, and the second register group 3013a buffers and outputs the validity indication data in the first data packet.

[0081] For any buffer circuit 3013, when the signal transmission path it is on is the signal transmission path for transmitting the first data packet, that is, when the signal transmission path it is on is selected, the first register group 3013b responds to the first level signal, the first-level ICG (integrated clock gating) unit enables the first level signal, the second-level ICG unit enables the first-level ICG unit to enable the timing result, and so on, with the Nth-level ICG unit enabling the (N-1)th-level ICG unit to enable the timing result. This ensures that only the timing registers for service data and path data arriving in the first register group 3013b are turned on, while the timing registers for other levels are turned off. Similarly, the second register group 3013a responds to the first level signal, the first-level register enables the first level signal, the second-level register enables the first-level register to enable the timing result, and so on, with the Nth-level register enabling the (N-1)th-level register to enable the timing result. This ensures that the registers of the second register group 3013a are turned on sequentially, one at a time.

[0082] In one embodiment, the first data packet further includes flip indication data, which is used to indicate whether the service data has been flipped; such as Figure 10 As shown, the routing module further includes a flip decision processing unit 100 and a data recovery unit 200. The flip decision processing unit 100 is used to determine, upon receiving a first data packet, whether the service data in the currently received first data packet needs to be flipped based on the service data in the previously received first data packet and the service data in the currently received first data packet. If flipping is required, the service data in the currently received first data packet is flipped, and the flip indication data in the currently received first data packet is set to indicate that the service data has been flipped. The data recovery unit 200 is used to receive the first data packet output by the output terminal, recover the service data in the received first data packet according to the flip indication data in the received first data packet, and transmit the recovered service data in the first data packet to the connected slave device after the service data is recovered. The receiving terminal receives the first data packet through the flip decision processing unit 100. When an output terminal among multiple output terminals is directly connected to a slave device, the output terminal directly connected to the slave device is connected to the corresponding slave device through the data recovery unit 200.

[0083] Specifically, when the output of the routing module is connected to the slave device, the output is connected to the slave device through the data recovery unit 200; when the receiving end of the routing module is connected to the master device, the receiving end is connected to the master device through the flip decision processing unit 100; when the output of the routing module is connected to the receiving end of the next-level routing module, the output is connected to the receiving end of the next-level routing module through the flip decision module.

[0084] When routing a first data packet, the flip decision processing unit 100 corresponding to the receiver that receives the first data packet receives the first data packet. The flip decision processing unit 100 compares each field value in the service data of the currently received first data packet with the field value at the corresponding position in the service data of the previously received first data packet. When the consistency rate is greater than or equal to a preset ratio, the service data in the currently received first data packet does not need to be flipped. When the consistency rate is less than the preset ratio, the service data in the currently received first data packet needs to be flipped. Specifically, each time the flip decision processing unit 100 receives a first data packet, it compares the service data in the currently received first data packet with the service data in the previously received first data packet field by field. The flip decision processing unit 100 may, according to the arrangement order of the fields in the service data, sequentially compare each field value with the field value at the corresponding position in the service data of the previously received first data packet to determine whether they are consistent. For example, the service data in the currently received first data packet includes N fields, and the service data in the previously received first data packet includes N corresponding fields. The field value of the i-th field is compared one by one, where i=1,2,...,N. The number M of fields with consistent comparison results is counted, and the consistency rate R=M / N is calculated, where N is the total number of fields participating in the comparison. The flip decision processing unit 100 compares the calculated consistency rate R with a preset ratio Rth. When R≥Rth, it indicates that the service data in the currently received first data packet has high consistency in field values with the service data in the previously received first data packet, and it is determined that the service data in the currently received first data packet does not need to be flipped. When R<Rth, it indicates that the consistency degree between the service data in the currently received first data packet and the service data in the previously received first data packet is low, and it is determined that the service data in the currently received first data packet needs to be flipped. Optionally, the preset ratio Rth may be set to, but is not limited to, 50%, 60%, 70%, 80%, etc.

[0085] In this embodiment, when the first data packet is output from the master device, the state of the flip indication data is a state indicating that the service data has not been flipped. When it is determined that flipping is required, the flip decision processing unit 100 flips the service data and sets the state of the flip indication data to a state indicating that the service data has been flipped; when it is determined that flipping is not required, the flip decision processing unit 100 does not flip the service data, and the state of the flip indication data is maintained. The first data packet is transmitted to the corresponding receiving end through the flip decision processing unit 100, and further output through the output end on the signal transmission path corresponding to the path data. When the output end is connected to the slave device, the output end outputs the first data packet to the corresponding slave device through the data recovery unit 200. When the service data in the first data packet is flipped, the data recovery unit 200 flips the flipped service data to restore it to the initial state, that is, the state when no flipping occurred. When the output end is connected to the flip decision processing unit 100, the output end outputs the first data packet to the connected flip decision processing unit 100 and continues to transmit it to the next level connected routing module. Specifically, the flip indication data includes 0 and 1. When the flip indication data is 0, it indicates that the business data has been flipped; when the flip indication data is 1, it indicates that the business data has not been flipped.

[0086] When the routing module receives the first data packet, it first performs a flipping process through the flipping decision processing unit 100. The service data is flipped only when flipping is required, which reduces the dynamic power consumption caused by bus flipping, obtains lower noise and a better data eye diagram, and is also beneficial to the back-end design EM (Electro Migration). At the same time, the first data packet is transmitted to the slave device through the data recovery unit 200. Therefore, it can be guaranteed that the data transmitted to the target slave device is the original data.

[0087] It should be noted that the specific circuit structures of the flip decision processing unit 100 and the data recovery unit 200 can be implemented using conventional circuits known in the art, and are not the inventive point of this application. The circuit structures of the flip decision processing unit 100 and the data recovery unit 200 are existing technologies in the art. Those skilled in the art, knowing the functions implemented by the flip decision processing unit 100 and the data recovery unit 200, can design or select corresponding specific circuit structures using conventional technical means without any creative effort. Therefore, even if this application does not disclose the specific internal circuit structure and connection relationships of the above modules in detail, those skilled in the art can know and implement their specific circuit structures; the specific circuit structures of the above modules do not constitute a limitation on the technical solution of this application.

[0088] In one embodiment, an on-chip interconnect network is provided, which may include multiple routing modules, each of which is a routing module as described above. Specifically, the on-chip interconnect network includes tiles, and the multiple routing modules are disposed on the tiles. The multiple routing modules are wrapped by the tiles, thus modularizing the on-chip interconnect network. The connection nodes 304 of the multiple outputs and receivers of any two routing modules are staggered in both the vertical and horizontal directions. In one embodiment, the tile may be, but is not limited to, a square tile, and the multiple routing modules may be arranged along a diagonal of the square tile. Specifically, the connection nodes 304 of the multiple outputs and receivers of each routing module are located on the diagonal of the square tile, all connection nodes 304 are located on the same diagonal, and a gap is provided between any two adjacent connection nodes 304. Specifically, all connection nodes 304 are equally spaced on the diagonal, that is, the connection nodes 304 of the multiple outputs and receivers of any two routing modules are staggered in both the vertical and horizontal directions. By using the above-mentioned staggered arrangement, we can avoid local wiring congestion caused by the regular alignment of the connection nodes 304 of multiple routing modules in the vertical and horizontal directions, reduce wiring crossing and signal crosstalk, and improve wiring flexibility and signal transmission reliability.

[0089] In one embodiment, an on-chip interconnect system is provided for interconnecting M groups of devices, where M ≥ 3, and each group of devices includes a master device and a slave device. The on-chip interconnect system includes at least one on-chip interconnect network, and each on-chip interconnect network includes M routing modules as described above. When M is even, the at least one on-chip interconnect network is (M-2) / 2 on-chip interconnect networks; when M is odd, the at least one on-chip interconnect network is (M-1) / 2 on-chip interconnect networks. Each on-chip interconnect network in the at least one on-chip interconnect network is provided with M routing modules, including a routing module with the receiving end located in a first direction, a routing module with the receiving end located in a second direction, a routing module with the receiving end located in a third direction, and a routing module with the receiving end located in a fourth direction. For the first-level on-chip interconnect network: the receiving end of the routing module located in the first direction is connected to the corresponding master device, and one of the multiple outputs of the routing module located in the first direction is connected to the receiving end of the corresponding routing module in the next-level on-chip interconnect network, and the other outputs are connected to the corresponding slave devices; the receiving end of the routing module located in the second direction is connected to one output of the corresponding routing module in the next-level on-chip interconnect network, and the multiple outputs of the routing module located in the second direction are connected to the corresponding slave devices; the receiving end of the routing module located in the third direction is connected to the corresponding master device, and one of the multiple outputs of the routing module located in the third direction is connected to the receiving end of the corresponding routing module in the next-level on-chip interconnect network, and the other outputs are connected to the corresponding slave devices; the receiving end of the routing module located in the fourth direction is connected to the corresponding master device, and one of the multiple outputs of the routing module located in the fourth direction is connected to the receiving end of the corresponding routing module in the next-level on-chip interconnect network, and the other outputs are connected to the corresponding slave devices.For on-chip interconnects that are neither the first nor the last level: the receiving end of the routing module in the first direction is connected to one output of the corresponding routing module in the preceding level on-chip interconnect; one output of the multiple outputs of the routing module in the first direction is connected to the receiving end of the corresponding routing module in the next level on-chip interconnect; the other outputs are connected to the corresponding slave devices. Similarly, the receiving end of the routing module in the second direction is connected to one output of the corresponding routing module in the next level on-chip interconnect; one output of the multiple outputs of the routing module in the second direction is connected to the receiving end of the corresponding routing module in the preceding level on-chip interconnect; the other outputs are connected to the corresponding slave devices. The receiving end of the routing module located in the third direction is connected to the corresponding master device. Among the multiple outputs of the routing module located in the third direction, one output is connected to the receiving end of the corresponding routing module in the next level of the on-chip interconnection network, another output is connected to the receiving end of the corresponding routing module in the previous level of the on-chip interconnection network, and the remaining output is connected to the corresponding slave device. The receiving end of the routing module located in the fourth direction is connected to the corresponding master device. Among the multiple outputs of the routing module located in the fourth direction, one output is connected to the receiving end of the corresponding routing module in the next level of the on-chip interconnection network, another output is connected to the receiving end of the corresponding routing module in the previous level of the on-chip interconnection network, and the remaining output is connected to the corresponding slave device. For the last-level on-chip interconnect: the receiving end of the routing module in the first direction is connected to one output of the corresponding routing module in the previous level on-chip interconnect, and multiple outputs of the routing module in the first direction are connected to corresponding slave devices; the receiving end of the routing module in the second direction is connected to the corresponding master device, and one output of the routing module in the second direction is connected to the receiving end of the corresponding routing module in the previous level on-chip interconnect, while the other outputs are connected to corresponding slave devices; the receiving end of the routing module in the third direction is connected to the corresponding master device, and one output of the routing module in the third direction is connected to the receiving end of the corresponding routing module in the previous level on-chip interconnect, while the other outputs are connected to corresponding slave devices; the receiving end of the routing module in the fourth direction is connected to the corresponding master device, and one output of the routing module in the fourth direction is connected to the receiving end of the corresponding routing module in the previous level on-chip interconnect, while the other outputs are connected to corresponding slave devices.

[0090] Specifically, when M is 4, one on-chip interconnect network (ISP) is configured, with 4 routing modules, interconnecting 4 groups of devices through this single ISP. When M is 5, two ISPs are configured, each with 5 routing modules, interconnecting 5 groups of devices through these two ISPs. When M is 6, two ISPs are still configured, each with 6 routing modules, interconnecting 6 groups of devices through these two ISPs. When M is 7, three ISPs are configured, each with 7 routing modules, interconnecting 7 groups of devices through these three ISPs. When M is 8, eight ISPs are configured, each with 8 routing modules, interconnecting 8 groups of devices through these three ISPs.

[0091] Each on-chip interconnect includes a routing module with the receiving end located in a first direction, a routing module with the receiving end located in a second direction, a routing module with the receiving end located in a third direction, and a routing module with the receiving end located in a fourth direction. Specifically, the routing module with the receiving end located in the first direction refers to the routing module whose first data packet received by the receiving end originates from the first direction; the routing module with the receiving end located in the second direction refers to the routing module whose first data packet received by the receiving end originates from the second direction; the routing module with the receiving end located in the third direction refers to the routing module whose first data packet received by the receiving end originates from the third direction; and the routing module with the receiving end located in the fourth direction refers to the routing module whose first data packet received by the receiving end originates from the fourth direction.

[0092] like Figure 10 In the on-chip interconnect system shown, there are 3 on-chip interconnect networks, and each on-chip interconnect network has 8 routing modules. Figure 10 The illustrated on-chip interconnect system includes a first-level on-chip interconnect network, a second-level on-chip interconnect network, and a final-level on-chip interconnect network. The first-level on-chip interconnect network includes one routing module with a receiver in a first direction, one routing module with a receiver in a third direction, one routing module with a receiver in a fourth direction, and five routing modules with receivers in the second direction. The second-level on-chip interconnect network includes three routing modules with receivers in the first direction, three routing modules with receivers in the second direction, one routing module with a receiver in a third direction, and one routing module with a receiver in the fourth direction. The final-level on-chip interconnect network includes five routing modules with receivers in the first direction, one routing module with a receiver in the second direction, one routing module with a receiver in a third direction, and one routing module with a receiver in the fourth direction. In the first-level on-chip interconnect network: the receiver of the routing module with the receiver in the first direction is connected to the corresponding master device (…). Figure 10The master device (0) is connected to the receiving end, and the output end of the routing module in the first direction is connected to the receiving end of the corresponding routing module in the next level on-chip interconnection network. The other two output ends are connected to the corresponding slave devices (0). Figure 10 The receiver is located at the receiving end of the third-party routing module and is connected to the corresponding master device (slave device 1 and slave device 2). Figure 10 The master device 1) is connected, and the receiving end is located at one of the three outputs of the third-direction routing module. The output in the first direction is connected to the receiving end of the corresponding routing module in the next-level on-chip interconnection network, and the output in the second direction is connected to the corresponding slave device ( Figure 10 The slave device 0 is connected to the third-party output terminal and the corresponding slave device ( Figure 10 The receiver of the routing module located in the fourth direction is connected to the corresponding master device (device 2); Figure 10 The master device 2) is connected, and the receiver is located in the fourth direction. The output terminal of the routing module in the first direction is connected to the receiver of the corresponding routing module in the next level on-chip interconnection network, and the output terminal in the second direction is connected to the corresponding slave device ( Figure 10 The slave device 0 is connected, and the output terminal in the fourth direction is connected to the corresponding slave device ( Figure 10 In the second-level on-chip interconnection network: the receiving end of the routing module located in the second direction is connected to the output end of the corresponding routing module in the next-level on-chip interconnection network, and the three output ends are respectively connected to the corresponding slave devices (one output end is connected to slave device 0, one output end is connected to slave device 1, and one output end is connected to slave device 2). In the second-level on-chip interconnection network: the receiving end of the routing module located in the first direction is connected to the output end of the corresponding routing module in the previous level on-chip interconnection network, and the output end of the routing module located in the first direction is connected to the receiving end of the corresponding routing module in the last level on-chip interconnection network, and the output end located in the third direction is connected to the corresponding slave device ( Figure 10 The slave device 4 is connected, and the output terminal in the fourth direction is connected to the corresponding slave device ( Figure 10 The receiving end of the routing module in the second direction is connected to the output end of the corresponding routing module in the next level on-chip interconnection network. The output end of the routing module in the second direction is connected to the receiving end of the corresponding routing module in the previous level on-chip interconnection network. The output end in the third direction is connected to the corresponding slave device (3). Figure 10 The slave device 4 is connected, and the output terminal in the fourth direction is connected to the corresponding slave device ( Figure 10 The receiver is located at the receiving end of the third-party routing module and is connected to the corresponding master device (3). Figure 10The master device 3) is connected, and the receiving end is located in the third-direction routing module. The output end in the first direction is connected to the receiving end of the corresponding routing module in the next level on-chip interconnection network, the output end in the second direction is connected to the receiving end of the corresponding routing module in the previous level on-chip interconnection network, and the output end in the third direction is connected to the corresponding slave device ( Figure 10 The receiver of the routing module located in the fourth direction is connected to the corresponding master device (4). Figure 10 The master device 4) is connected, and the receiving end is located in the fourth direction. Among the multiple outputs of the routing module, the output in the first direction is connected to the receiving end of the corresponding routing module in the next level on-chip interconnection network, the output in the second direction is connected to the receiving end of the corresponding routing module in the previous level on-chip interconnection network, and the output in the fourth direction is connected to the corresponding slave device ( Figure 10 The slave device 3 in the network is connected. In the last level of the on-chip interconnection network: the receiving end of the routing module located in the first direction is connected to the output end of the corresponding routing module in the previous level of the on-chip interconnection network, and the output end of the routing module located in the first direction among the multiple output ends of the receiving end located in the first direction is connected to the corresponding slave device. Figure 10 (Slave device 7) is located at the output terminal of the third-party upward connection and the corresponding slave device ( Figure 10 The slave device 6 is connected, and the output terminal in the fourth direction is connected to the corresponding slave device ( Figure 10 The receiver of the routing module located in the second direction is connected to the corresponding master device (5). Figure 10 The master device 7 in the middle is connected, and the output terminal of the routing module in the second direction is connected to the receiving terminal of the corresponding routing module in the previous stage on-chip interconnection network. The output terminal in the third direction is connected to the corresponding slave device ( Figure 10 The slave device 6 is connected, and the output terminal in the fourth direction is connected to the corresponding slave device ( Figure 10 The receiver is located at the receiving end of the third-party routing module and is connected to the corresponding master device (5). Figure 10 The master device 5) is connected, and the receiving end is located at one of the multiple outputs of the third-direction routing module, which is connected to the corresponding slave device ( Figure 10 The slave device 6 is connected, and the output terminal in the first direction is connected to the corresponding slave device ( Figure 10The slave device 7 in the first-level on-chip interconnection network (ISPN 1) has its output terminal in the second direction connected to the receiving terminal of the corresponding routing module in the previous-level ISPN. When the master device 0 sends the first data packet to the slave device 1, the master device 0 sends the first data packet to the corresponding routing module in the first-level ISPN, which then transmits the first data packet to the slave device 1. When the master device 0 sends the first data packet to the slave device 4, the master device 0 sends the first data packet to the corresponding routing module in the first-level ISPN, which then transmits the first data packet to the corresponding routing module in the second-level ISPN, which then transmits the first data packet to the slave device 4. Of course, master device 0 can also send the first data packet to slave devices 2, 3, 5, 6, and 7; master device 1 can send the first data packet to slave devices 0, 2, 3, 4, 5, 6, and 7; master device 2 can send the first data packet to slave devices 0, 1, 3, 4, 5, 6, and 7; master device 3 can send the first data packet to slave devices 0, 1, 2, 4, 5, 6, and 7; master device 4 can send the first data packet to slave devices 1, 2, 3, 4, 5, 6, and 7; master device 4 can send the first data packet to slave devices 2, 3, 4, 5, 6, and 7; master device 3 can send the first data packet to slave devices 0, 1, 2, 4, 5, 6, and 7; master device 4 can send the first data packet to slave devices 2, 3, 5, 6, and 7. Device 0, slave devices 1, 3, 2, 5, 6, and 7 send the first data packet; master device 5 can send the first data packet to slave devices 0, 1, 3, 4, 2, 6, and 7; master device 6 can send the first data packet to slave devices 0, 1, 3, 4, 5, 2, and 7; master device 7 can send the first data packet to slave devices 0, 1, 3, 4, 5, 6, and 2. The specific details will not be elaborated further. The process of transmitting the first data packet through the routing module is as described in the specific embodiment of the routing module above, and will not be elaborated further here.

[0093] When applying this on-chip interconnect system, a unique signal transmission path is determined between each master device and all slave devices. Based on this unique signal transmission path, a source routing table is created for the on-chip interconnect system. Each master device pre-stores this source routing table. Assuming master device 0 now needs to send the first data packet, the details are as follows:

[0094] Master device 0 searches the pre-stored source routing table based on the target slave device and generates path data in the first data packet. The path data occupies 6 bits. Each routing module takes the lower 2 bits when determining the signal transmission path of the first data packet.

[0095] The master device 0 sends the first data packet to the corresponding flip decision processing unit 100 on the first-level on-chip interconnect network for flip processing (if yes, flip; if no, do not flip).

[0096] After performing the flipping process, the flipping decision processing unit 100 transmits the first data to the corresponding routing module. The corresponding routing module determines the corresponding output terminal to transmit the first data packet based on the lower 2 bits in the path data. If the path data indicates that the signal transmission path is the signal transmission path of the output terminal in the third direction or the output terminal in the fourth direction, the first data packet is transmitted to slave device 2 or slave device 1. If the path data indicates that the signal transmission path is the signal transmission path of the output terminal in the second direction, the first data packet is transmitted to the corresponding routing module on the next level on-chip interconnection network (second level on-chip interconnection network). At this time, the path data is shifted right by 2 bits by the logic right shift circuit 3013c of the corresponding routing module on the first level on-chip interconnection network.

[0097] When the routing module corresponding to the second-level on-chip interconnect receives the first data packet, similarly, the corresponding routing module determines the corresponding output terminal to transmit the first data packet based on the current lower 2 bits in the path data (the path data is shifted to the right by the logic right shift circuit 3013c of the corresponding routing module on the first-level on-chip interconnect, so the current lower 2 bits are the data of the previous 3rd and 4th bits). Assuming that the path data indicates that the signal transmission path is the signal transmission path of the third-direction output terminal or the output terminal in the four directions, the first data packet is transmitted to slave device 4 or slave device 3. Assuming that the path data indicates that the signal transmission path is the signal transmission path of the output terminal in the second direction, the first data packet is transmitted to the corresponding routing module on the next level on-chip interconnect (the last level on-chip interconnect). At this time, the path data is shifted to the right by 2 bits by the logic right shift circuit of the corresponding routing module on the second-level on-chip interconnect.

[0098] When the routing module corresponding to the last-level on-chip interconnect receives the first data packet, the corresponding routing module also determines the corresponding output terminal to transmit the first data packet based on the current low 2 bits in the path data (the path data is shifted right by the logic right shift circuit 3013c of the corresponding routing module on the second-level on-chip interconnect, so the current low 2 bits are the data of the previous 5th and 6th bits). If the path data indicates that the signal transmission path is the signal transmission path of the third-direction output terminal or the output terminal in the four directions, then the first data packet is transmitted to slave device 6 or slave device 5. If the path data indicates that the signal transmission path is the signal transmission path of the output terminal in the second direction, then the first data packet is transmitted to slave device 7.

[0099] It should be noted that the process of other master devices transmitting the first data packet is the same as that of master device 0, and will not be repeated here. Specifically, any master device can be directly connected to slave devices in the same group. When it needs to transmit the first data packet to a slave device in the same group, it can transmit it directly through the connection without going through the on-chip interconnect system. For any routing module, when the transmission direction is an output in all directions, the first data packet is directly transmitted without flipping.

[0100] This document describes various exemplary embodiments with reference to them. However, those skilled in the art will recognize that changes and modifications can be made to the exemplary embodiments without departing from the scope of this document. For example, various operational steps and components for performing operational steps can be implemented in different ways depending on the specific application or considering any number of cost functions associated with the operation of the system (e.g., one or more steps can be deleted, modified, or combined with other steps).

[0101] While the principles herein have been illustrated in various embodiments, numerous modifications to the structures, arrangements, proportions, elements, materials, and components, particularly suited to specific environments and operational requirements, may be used without departing from the principles and scope of this disclosure. These modifications and other alterations or alterations will be included within the scope of this document. Those skilled in the art will recognize that many changes can be made to the details of the above embodiments without departing from the fundamental principles of the invention.

Claims

1. A routing module, characterized in that, include: The receiving end is used to receive a first data packet, the first data packet including at least path data and service data, the path data being used to provide feedback on the signal transmission path of the service data; Multiple output terminals, each of which is connected to the receiving terminal, and a signal transmission path is formed between each of the multiple output terminals and the receiving terminal, with each signal transmission path corresponding to a transmission direction; Multiple data transmission units are respectively arranged on the multiple signal transmission paths of the multiple output terminals. In the plurality of data transmission units, each data transmission unit is configured with a selection circuit corresponding to the direction of the signal transmission path it is in, and for any data transmission unit, it is used to: Based on the path data in the first data packet received by the receiving end and its own configured selection circuit, it determines whether the signal transmission path of the service data in the received first data packet is the same as the signal transmission path it is on. If so, the received first data packet is routed and output through the receiving end on the same signal transmission path; otherwise, the routing of the received first data packet is stopped.

2. The routing module as described in claim 1, characterized in that, The plurality of output terminals include a first output terminal, a second output terminal, and a third output terminal; the first output terminal, the second output terminal, and the third output terminal are respectively connected to the receiving terminal to form corresponding signal transmission paths.

3. The routing module as described in claim 2, characterized in that, The routing module also includes: A connection node is provided, wherein the receiving end is connected to the connection node, and the first output end, the second output end, and the third output end are respectively connected to the connection node; Of the first output terminal, the second output terminal, and the third output terminal: the line connecting any one of the output terminals to the connection node is perpendicular to the line connecting the receiving terminal to the connection node; the line connecting the first output terminal to the connection node is the corresponding signal transmission path; the line connecting the second output terminal to the connection node is the corresponding signal transmission path; and the line connecting the third output terminal to the connection node is the corresponding signal transmission path.

4. The routing module as described in claim 2 or 3, characterized in that, The first data packet also includes legality indication data, which is used to indicate the legality of the business data; The plurality of data transmission units include a first data transmission unit, a second data transmission unit, and a third data transmission unit; The first data transmission unit includes a first selection circuit and a first buffer circuit; the second data transmission unit includes a second selection circuit and a second buffer circuit; the third data transmission unit includes a third selection circuit and a third buffer circuit. The first data transmission unit includes a first selection circuit and a first buffer circuit. The first selection circuit is connected to the receiving end and is used to perform logical operations based on path data and validity indication data in the first data packet received by the receiving end to generate a first logical operation result. The first logical operation result is used to indicate whether the signal transmission path of the service data in the first data packet received by the receiving end is the signal transmission path where the first selection circuit is located. The first buffer circuit is connected to the receiving end, the first selection circuit, and the first output end. It is used to receive the first logical operation result and, in response to the first logical operation result indicating that the signal transmission path of the service data in the first data packet received by the receiving end is its own signal transmission path, buffer the first data packet received by the receiving end and output it through the first output end. The second data transmission unit includes a second selection circuit and a second buffer circuit. The second selection circuit is connected to the receiving end and is used to perform logical operations based on the path data and validity indication data in the first data packet received by the receiving end to generate a second logical operation result. The second logical operation result is used to indicate whether the signal transmission path of the service data in the first data packet received by the receiving end is the signal transmission path where the second selection circuit is located. The second buffer circuit is connected to the receiving end, the second selection circuit, and the second output end. It is used to receive the second logical operation result and, in response to the second logical operation result indicating that the signal transmission path of the service data in the first data packet received by the receiving end is its own signal transmission path, buffer the first data packet received by the receiving end and output it through the second output end. The third data transmission unit includes a third selection circuit and a third buffer circuit. The third selection circuit is connected to the receiving end and is used to perform logical operations based on the path data and validity indication data in the first data packet received by the receiving end to generate a third logical operation result. The third logical operation result is used to indicate whether the signal transmission path of the service data in the first data packet received by the receiving end is the signal transmission path where the third selection circuit is located. The third buffer circuit is connected to the receiving end, the third selection circuit, and the third output end. It is used to receive the third logical operation result and, in response to the third logical operation result indicating that the signal transmission path of the service data in the first data packet received by the receiving end is its own signal transmission path, buffer the first data packet received by the receiving end and output it through the third output end.

5. The routing module as described in claim 4, characterized in that, Among the first logical operation result, the second logical operation result, and the third logical operation result: any one of the logical operation results is a first level signal when the signal transmission path of the service data in the first data packet received by the receiving end is the signal transmission path in which it is located; The first buffer circuit, the second buffer circuit, and the third buffer circuit are buffer circuits with the same circuit structure. In the first buffer circuit, the second buffer circuit, and the third buffer circuit, when any one of the buffer circuits responds to the first level signal, it buffers and outputs the first data packet received by the receiving end through the corresponding output terminal. The cache circuit includes: A logic right shift circuit is used to logically shift the path data in the first data packet received by the receiving end by N bits, and fill the high bits after the shift with 0 to form the shifted path data, where N≥1; The first register group is connected to the logic right shift circuit and the receiving end respectively. The first register group is used to obtain the service data and the shifted path data in the corresponding first data packet, and in response to the first level signal, it buffers and outputs the obtained service data and the shifted path data through the output end on the signal transmission path. The second register group is used to buffer and output the received first level signal through the output terminal on the signal transmission path in response to the first level signal.

6. The routing module as described in any one of claims 1-3, characterized in that, The first data packet also includes flip indication data, which is used to indicate whether the service data has been flipped. The routing module also includes: The flip decision processing unit is used to determine, upon receiving the first data packet, whether the service data in the currently received first data packet needs to be flipped based on the service data in the previously received first data packet and the service data in the currently received first data packet. If flipping is required, the service data in the currently received first data packet is flipped, and the flip indication data in the currently received first data packet is set to a state indicating that the service data has been flipped. The data recovery unit is used to receive the first data packet output by the output terminal, recover the service data in the received first data packet according to the flip instruction data in the received first data packet, and transmit the service data in the first data packet after the service data is recovered to the connected slave device. The receiving end receives the first data packet through the flip decision processing unit; when one of the multiple output ends is directly connected to the slave device, the output end directly connected to the slave device is connected to the corresponding slave device through the data recovery unit.

7. The routing module as described in claim 6, characterized in that, The step of determining whether the service data in the currently received first data packet needs to be flipped based on the service data in the previously received first data packet and the service data in the currently received first data packet includes: Each field value in the service data of the currently received first data packet is compared with the corresponding field value in the service data of the previously received first data packet. If the consistency rate is greater than or equal to a preset ratio, the service data in the currently received first data packet does not need to be flipped; if the consistency rate is less than the preset ratio, the service data in the currently received first data packet needs to be flipped.

8. An on-chip interconnect network, characterized in that, include: Multiple routing modules, wherein each of the multiple routing modules is a routing module as described in any one of claims 1-7.

9. The on-chip interconnection network as described in claim 8, characterized in that, include: The routing modules of the plurality of routing modules are all set on the tile, and the connection nodes of any two routing modules are staggered in both the vertical and horizontal directions.

10. An on-chip interconnect system, characterized in that, The system is applied to interconnect M groups of devices, where M ≥ 3, and each group of devices includes a master device and a slave device; the on-chip interconnect system includes: at least one on-chip interconnect network, and each of the at least one on-chip interconnect network includes the M routing modules as described in any one of claims 1-7; When M is an even number, the at least one on-chip interconnect network is (M-2) / 2 on-chip interconnect networks; When M is an odd number, the at least one on-chip interconnect network is (M-1) / 2 on-chip interconnect networks; Each of the at least one on-chip interconnect network is provided with M routing modules, the M routing modules including a routing module with the receiving end located in a first direction, a routing module with the receiving end located in a second direction, a routing module with the receiving end located in a third direction, and a routing module with the receiving end located in a fourth direction. For the first-level on-chip interconnect network: the receiving end of the routing module located in the first direction is connected to the corresponding master device, and one of the multiple outputs of the routing module located in the first direction is connected to the receiving end of the corresponding routing module in the next-level on-chip interconnect network, while the other outputs are connected to the corresponding slave devices; the receiving end of the routing module located in the second direction is connected to one output of the corresponding routing module in the next-level on-chip interconnect network, and the multiple outputs of the routing module located in the second direction are connected to the corresponding slave devices; the receiving end of the routing module located in the third direction is connected to the corresponding master device, and one of the multiple outputs of the routing module located in the third direction is connected to the receiving end of the corresponding routing module in the next-level on-chip interconnect network, while the other outputs are connected to the corresponding slave devices; the receiving end of the routing module located in the fourth direction is connected to the corresponding master device, and one of the multiple outputs of the routing module located in the fourth direction is connected to the receiving end of the corresponding routing module in the next-level on-chip interconnect network, while the other outputs are connected to the corresponding slave devices. For on-chip interconnects that are neither the first nor the last level: the receiving end of the routing module in the first direction is connected to one output of the corresponding routing module in the preceding level on-chip interconnect; one output of the multiple outputs of the routing module in the first direction is connected to the receiving end of the corresponding routing module in the next level on-chip interconnect; the other outputs are connected to the corresponding slave devices. Similarly, the receiving end of the routing module in the second direction is connected to one output of the corresponding routing module in the next level on-chip interconnect; one output of the multiple outputs of the routing module in the second direction is connected to the receiving end of the corresponding routing module in the preceding level on-chip interconnect; the other outputs are connected to the corresponding slave devices. The receiving end of the routing module located in the third direction is connected to the corresponding master device. Among the multiple outputs of the routing module located in the third direction, one output is connected to the receiving end of the corresponding routing module in the next level of the on-chip interconnection network, another output is connected to the receiving end of the corresponding routing module in the previous level of the on-chip interconnection network, and the other output is connected to the corresponding slave device. The receiving end of the routing module located in the fourth direction is connected to the corresponding master device. Among the multiple outputs of the routing module located in the fourth direction, one output is connected to the receiving end of the corresponding routing module in the next level of the on-chip interconnection network, another output is connected to the receiving end of the corresponding routing module in the previous level of the on-chip interconnection network, and the other output is connected to the corresponding slave device. For the last-level on-chip interconnect: the receiving end of the routing module in the first direction is connected to one output of the corresponding routing module in the previous level on-chip interconnect, and multiple outputs of the routing module in the first direction are connected to corresponding slave devices; the receiving end of the routing module in the second direction is connected to the corresponding master device, and one output of the routing module in the second direction is connected to the receiving end of the corresponding routing module in the previous level on-chip interconnect, while the other outputs are connected to corresponding slave devices; the receiving end of the routing module in the third direction is connected to the corresponding master device, and one output of the routing module in the third direction is connected to the receiving end of the corresponding routing module in the previous level on-chip interconnect, while the other outputs are connected to corresponding slave devices; the receiving end of the routing module in the fourth direction is connected to the corresponding master device, and one output of the routing module in the fourth direction is connected to the receiving end of the corresponding routing module in the previous level on-chip interconnect, while the other outputs are connected to corresponding slave devices.