A chip and data interaction method

By designing the first arbitration distribution module and the second arbitration distribution module in the chip, the direct transmission of data on the interconnection bus is realized, which solves the problem of resource occupation of the transfer chip and improves the data processing efficiency.

CN112506824BActive Publication Date: 2024-09-03SHANGHAI ENFLAME INTELLIGENCE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011497133.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-17
Publication Date
2024-09-03
Estimated Expiration
2040-12-17

AI Technical Summary

Technical Problem

During the data transmission process of existing chips, the system bus and storage resources of the transfer chip are occupied, resulting in consumption of computing resources and affecting data processing efficiency.

Method used

Design a chip that includes a first port, a second port, a system bus and an interconnection bus. The first arbitration distribution module and the second arbitration distribution module realize the direct transmission of data on the interconnection bus to avoid unnecessary processing of data through the system bus. .

Benefits of technology

Transmission through the interconnection bus does not require system bus resources, saving computing resources and improving the overall efficiency of data operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112506824B
    Figure CN112506824B
Patent Text Reader

Abstract

The present invention discloses a chip and data interaction method, the chip includes: a first port, a second port, a system bus, a first interconnection bus, a first arbitration distribution module and a second arbitration distribution module, the first port is connected to one side of the first interconnection bus through the first arbitration distribution module, the second port is connected to the other side of the first interconnection bus through the second arbitration distribution module, the system bus is different from the first interconnection bus; the first port is connected to the system bus through the first arbitration distribution module, and / or the second port is connected to the system bus through the second arbitration distribution module. The embodiment of the present invention transmits data that does not need to be processed through an interconnection bus that does not interfere with the system bus, avoids the data flow from passing through the system bus for unnecessary data processing, saves chip computing resources, and improves the overall efficiency of the chip in operating data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data transmission, and in particular to a chip and data interaction method. Background Art

[0002] Nowadays, with the development of information technology, information data is becoming more and more complex, and the amount of computing required to process data is also increasing. At present, through the interconnection ports inside each chip, a distributed chip cluster consisting of multiple chips can be built. Through the construction of a distributed chip cluster, data can be exchanged and transmitted in different chips, thereby quickly processing large-scale data.

[0003] Each interconnection port of an existing chip is directly connected to the system bus of the chip. When the data in chip A needs to be sent to chip C via chip B, chip B first obtains the data in chip A through the interconnection port connected to chip A, and then chip B saves the data to the storage unit of chip B via the system bus of chip B. Then chip B takes the data out of the storage unit and transmits it to another interconnection port connected to chip C via the system bus, thereby transmitting the data to chip C.

[0004] It can be seen that although chip B only plays a transfer role in the above transmission process, during the above data transfer process, the system bus and storage resources of chip B are occupied by data, consuming the system resources of the chip performing data transfer. Summary of the invention

[0005] In view of the above problems, the present invention provides a chip and data interaction method that overcomes the above problems or at least partially solves the above problems. The technical solution is as follows:

[0006] A chip, comprising: a first port, a second port, a system bus, a first interconnection bus, a first arbitration distribution module and a second arbitration distribution module, wherein the first port is connected to one side of the first interconnection bus via the first arbitration distribution module, the second port is connected to the other side of the first interconnection bus via the second arbitration distribution module, and the system bus is different from the first interconnection bus;

[0007] The first port is connected to the system bus via the first arbitration distribution module, and / or the second port is connected to the system bus via the second arbitration distribution module.

[0008] Optionally, the chip further includes: a third arbitration distribution module and a fourth arbitration distribution module,

[0009] The first arbitration distribution module is arranged at the first port, the second arbitration distribution module is arranged at the second port, the third arbitration distribution module is arranged at one side of the first interconnection bus, and the fourth arbitration distribution module is arranged at the other side of the first interconnection bus;

[0010] The first port is connected to one side of the first interconnection bus via the first arbitration distribution module, and is specifically configured as follows: the first port is connected to one side of the first interconnection bus via the first arbitration distribution module and the third arbitration distribution module in sequence;

[0011] The second port is connected to the other side of the first interconnection bus via the second arbitration distribution module, and is specifically configured as follows: the second port is connected to the other side of the first interconnection bus via the second arbitration distribution module and the fourth arbitration distribution module in sequence.

[0012] Optionally, the first arbitration distribution module is configured to: control the data flowing through the first arbitration distribution module to be sent to one of the first port, the system bus, and the first interconnect bus according to the destination address of the data flowing through the first arbitration distribution module;

[0013] and / or,

[0014] The second arbitration distribution module is configured to control the data flowing through the second arbitration distribution module to be sent to one of the second port, the system bus, and the first interconnect bus according to a destination address of the data flowing through the second arbitration distribution module.

[0015] Optionally, the first port is connected to a first other chip, and the second port is connected to a second other chip.

[0016] The data in the first other chip is sent to the second other chip via the first port, the first arbitration distribution module, the first interconnection bus, the second arbitration distribution module and the second port in sequence;

[0017] and / or,

[0018] The data in the second other chip is sent to the first other chip via the second port, the second arbitration distribution module, the first interconnection bus, the first arbitration distribution module and the first port in sequence.

[0019] Optionally, the first arbitration distribution module includes a first arbitrator and a first distributor, the second arbitration distribution module includes a second arbitrator and a second distributor, the third arbitration distribution module includes a third arbitrator and a third distributor, and the fourth arbitration distribution module includes a fourth arbitrator and a fourth distributor.

[0020] Optionally, the first port is connected to one side of the first interconnection bus via the first arbitration distribution module and the third arbitration distribution module in sequence, and is specifically configured as follows:

[0021] The first port is connected to one side of the first interconnection bus via the first distributor and the third distributor in sequence;

[0022] The first port is connected to one side of the first interconnection bus via the first arbitrator and the third arbitrator in sequence;

[0023] The second port is connected to the other side of the first interconnection bus via the second arbitration distribution module and the fourth arbitration distribution module in sequence, and is specifically configured as follows:

[0024] The second port is connected to the other side of the first interconnection bus via the second distributor and the fourth distributor in sequence;

[0025] The second port is connected to the other side of the first interconnection bus via the second arbitrator and the fourth arbitrator in sequence.

[0026] Optionally, the first port is connected to the system bus via the first arbitration distribution module, and is specifically configured as follows:

[0027] The first port is connected to the system bus via the first distributor;

[0028] The first port is connected to the system bus via the first arbitrator;

[0029] The second port is connected to the system bus via the second arbitration distribution module, and is specifically configured as follows:

[0030] The second port is connected to the system bus via the second distributor;

[0031] The second port is connected to the system bus via the second arbitrator.

[0032] Optionally, the first port is connected to at least one port in a third other chip;

[0033] and / or, the second port is connected to at least one port in a fourth other chip;

[0034] The third other chip is different from the fourth other chip.

[0035] Optionally, the first port is connected to at least one port of a fifth other chip, the second port is connected to at least one port of the fifth other chip, and the port to which the first port is connected to the fifth other chip is different from the port to which the second port is connected to the fifth other chip.

[0036] Optionally, any two ports in the chip are connected via at least one interconnect bus;

[0037] and / or,

[0038] Each port in the chip is connected to at least one arbitration distribution module, and both sides of any interconnection bus in the chip are connected to at least one arbitration distribution module.

[0039] Optionally, the chip further includes: a transit control engine connected to the interconnection bus, wherein the transit control engine is configured to initiate a read operation and / or a write operation on the transit data.

[0040] A data interaction method, the method is applied to the above chip, the method comprising:

[0041] The first arbitration distribution module obtains data transmitted to the chip via the first port;

[0042] The first arbitration distribution module identifies a first destination address in the data, and when the first destination address matches the second port, the first arbitration distribution module sends the data to the first interconnect bus; when the first destination address matches the system bus, the first arbitration distribution module sends the data to the system bus;

[0043] The second arbitration distribution module obtains data transmitted via the first interconnection bus or the system bus;

[0044] The second arbitration distribution module identifies a second destination address in the data, and when the second destination address matches the second port, the second arbitration distribution module sends the data to the second port to send the data to other chips connected to the second port via the second port, wherein the second destination address is the same as or different from the first destination address.

[0045] By means of the above technical solution, the present invention provides a chip and data interaction method, the chip includes: a first port, a second port, a system bus, a first interconnection bus, a first arbitration distribution module and a second arbitration distribution module, the first port is connected to one side of the first interconnection bus via the first arbitration distribution module, the second port is connected to the other side of the first interconnection bus via the second arbitration distribution module, the system bus is different from the first interconnection bus; the first port is connected to the system bus via the first arbitration distribution module, and / or the second port is connected to the system bus via the second arbitration distribution module. The embodiment of the present invention transmits data that does not need to be processed through an interconnection bus that does not interfere with the system bus, avoids unnecessary data processing of the data flow through the system bus, saves chip computing resources, and improves the overall efficiency of the chip in operating data.

[0046] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0048] Figure 1 A schematic diagram showing the structural connection of a chip provided by an embodiment of the present invention is shown;

[0049] Figure 2 A schematic diagram showing a connection between a chip provided by an embodiment of the present invention and other chips is shown;

[0050] Figure 3 A schematic diagram showing another connection between the chip provided by an embodiment of the present invention and other chips;

[0051] Figure 4 A schematic diagram showing another connection between the chip provided by an embodiment of the present invention and other chips;

[0052] Figure 5 A schematic diagram showing the structural connection of another chip provided by an embodiment of the present invention is shown;

[0053] Figure 6 A schematic diagram showing the connection relationship between the arbitrator and the distributor provided in an embodiment of the present invention is shown;

[0054] Figure 7 A schematic diagram showing the structural connection of another chip provided by an embodiment of the present invention is shown;

[0055] Figure 8 A schematic diagram showing the structural connection of another chip provided by an embodiment of the present invention is shown;

[0056] Fig. 9 A schematic diagram showing the structural connection of another chip provided by an embodiment of the present invention is shown;

[0057] Fig.10 A schematic diagram showing the structural connection of another chip provided by an embodiment of the present invention is shown;

[0058] Fig.11 A schematic diagram of a flow chart of a data interaction method provided by an embodiment of the present invention is shown;

[0059] Fig.12 A schematic diagram showing a flow chart of another data interaction method provided by an embodiment of the present invention;

[0060] Fig.13 A flow chart of another data interaction method provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0061] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0062] like Figure 1 As shown, a chip provided by an embodiment of the present invention may include: a first port 100, a second port 200, a system bus 300, a first interconnection bus 400, a first arbitration distribution module 500 and a second arbitration distribution module 600. The first port 100 is connected to one side of the first interconnection bus 400 via the first arbitration distribution module 500, the second port 200 is connected to the other side of the first interconnection bus 400 via the second arbitration distribution module 600, and the system bus 300 is different from the first interconnection bus 400.

[0063] The first port 100 is connected to the system bus 300 via the first arbitration distribution module 500 , and / or the second port 200 is connected to the system bus 300 via the second arbitration distribution module 600 .

[0064] Among them, the port provided by the embodiment of the present invention may be a high-speed interconnection port composed of a high-speed analog interface and a controller corresponding to the high-speed analog interface. For example: the port provided by the embodiment of the present invention may be a high-speed interconnection port composed of an Ethernet controller and its high-speed serializer / deserializer (Serdes). Optionally, in the embodiment of the present invention, a port cannot be connected to multiple other chips at the same time. Optionally, the port provided by the embodiment of the present invention can be directly connected to at least one interconnection bus. The embodiment of the present invention sets a high-speed interconnection port in the chip, so that data can be interacted at high speed and high bandwidth, so that the time for data to be transmitted through the chip is reduced. For example: the high-speed interconnection port of the embodiment of the present invention can realize data interaction at a speed of 25Gbps and a bidirectional bandwidth of 50GB / s. It can be understood that with the continuous development of chip port technology and manufacturing technology, the speed and bandwidth that can be achieved by the port can also be continuously upgraded. The above is only an illustrative example, and the embodiment of the present invention does not impose specific restrictions on the speed and bandwidth of the port.

[0065] Optional, based on Figure 1 The chip shown, Figure 2 The figure shows a connection between the chip provided in the embodiment of the present invention and other chips. The first port 100 is connected to the first other chip 01 , and the second port 200 is connected to the second other chip 02 .

[0066] The data in the first other chip 01 is sent to the second other chip 02 via the first port 100 , the first arbitration distribution module 500 , the first interconnection bus 400 , the second arbitration distribution module 600 and the second port 200 in sequence.

[0067] The data in the second other chip 02 is sent to the first other chip 01 via the second port 200 , the second arbitration distribution module 600 , the first interconnection bus 400 , the first arbitration distribution module 500 and the first port 100 in sequence.

[0068] The chip provided by the embodiment of the present invention can transmit data between the first other chip 01 and the second other chip 02 through the chip provided by the embodiment of the present invention, which is helpful to build multiple transmission routes between multiple chips by adding the chips provided by the embodiment of the present invention when the number of ports of the chip is limited, which is conducive to improving the efficiency of data transmission between multiple chips. For example: Assuming that the chip provided by the embodiment of the present invention and the first other chip 01 each have four ports, the first other chip 01 can use one port to connect to one port of the chip provided by the embodiment of the present invention, so as to realize the connection of the first other chip 01 with the other three other chips connected to the remaining three ports of the chip provided by the embodiment of the present invention respectively through the chip provided by the embodiment of the present invention, and the remaining three ports of the first other chip 01 can be respectively connected to the other three other chips, that is, the first other chip 01 is indirectly connected to the other three chips through the chip provided by the embodiment of the present invention, and at the same time, the first other chip 01 can also be directly connected to the other three other chips.

[0069] Optionally, the port provided by the embodiment of the present invention can be connected to multiple ports of the same other chip. For example, the port provided by the embodiment of the present invention can be connected to port a and port b of another chip A.

[0070] Optionally, the first port 100 is connected to at least one port of the third other chip 03. The second port 200 is connected to at least one port of the fourth other chip 04. The third other chip 03 is different from the fourth other chip 04. For example: based on Figure 1 The chip shown, Figure 3 The figure shows another connection situation between the chip provided in the embodiment of the present invention and other chips. In actual application, the first port 100 can be connected to the port 031, the port 032 and the port 033 in the third other chip 03 at the same time, and the second port 200 can be connected to the port 041 and the port 042 in the fourth other chip 04 at the same time.

[0071] By connecting one port in the chip provided by the embodiment of the present invention with multiple ports of other chips, the chip provided by the embodiment of the present invention can obtain data from one port of the other chip while sending data to the other chip from another port of the other chip, thereby improving data transmission efficiency.

[0072] Optionally, the first port 100 is connected to at least one port of the fifth other chip 05, the second port 200 is connected to at least one port of the fifth other chip 05, and the port connected to the fifth other chip 05 by the first port 100 is different from the port connected to the fifth other chip 05 by the second port 200. Figure 1 The chip shown, Figure 4 The figure shows another connection between the chip provided in the embodiment of the present invention and other chips, where the first port 100 is connected to the port 051 and the port 052 of the fifth other chip 05 , and the second port 200 is connected to the port 053 of the fifth other chip 05 .

[0073] By connecting different ports of the chip provided by the embodiment of the present invention to another chip at the same time, data that the other chip needs to be processed by the chip provided by the embodiment of the present invention can be transmitted to the chip provided by the embodiment of the present invention for processing, and the processed data can be returned to the other chip in a timely manner, thereby reducing the overall duration of data transmission and improving the efficiency of data transmission.

[0074] It should be noted that the port provided in the embodiment of the present invention may be a logical port. It is understandable that a plurality of logical ports may share the same physical port, or one logical port may correspond to one physical port.

[0075] Among them, the system bus 300 (System Bus) may include a data bus (Data Bus), an address bus (Address Bus) and a control bus (Control Bus). Optionally, the system bus 300 provided in the embodiment of the present invention may process the incoming data and then transmit the processed data. Specifically, the system bus 300 in the embodiment of the present invention may synchronously control the incoming data, and then use a preset application algorithm to calculate the data to obtain a calculation result, and then store the calculation result in the memory, and finally transfer the stored calculation result to the target address according to the preset application model. It should be noted that Figure 1 The diagram shows the connection between the first port 100 and the system bus 300 via the first arbitration distribution module 500, and the second port 200 and the system bus 300 via the second arbitration distribution module 600. It is understandable that, in actual situations, there may also be a situation where only the first port 100 is connected to the system bus 300 via the first arbitration distribution module 500 and the second port 200 is not connected to the system bus 300, and a situation where only the second port 200 is connected to the system bus 300 via the second arbitration distribution module 600 and the first port 100 is not connected to the system bus 300. In general, the connection between the ports and the system bus 300 does not affect the data transmission between the ports through the interconnection bus.

[0076] The interconnect bus provided in the embodiment of the present invention can be a data path that does not interfere with the system bus 300. The interconnect bus can provide a data path for two ports. When data is transmitted between the two ports via the interconnect bus, the system bus 300 is not occupied, nor is the system storage resource access space on the system bus 300. When data is transmitted on the interconnect bus, the data transmission will not occupy the bandwidth of the system bus 300, and other data inside the chip can normally access the system bus 300 and the system storage resource access space on the system bus 300. The system storage resource access space may include shared DDR, SRAM, and registers, etc. Data transmission on the interconnect bus will not conflict with data transmission on the system bus 300.

[0077] The arbitration distribution module provided in the embodiment of the present invention can be configured according to a preset request distribution principle and / or a preset arbitration algorithm. The arbitration distribution module provided in the embodiment of the present invention can be a virtual device or a physical device that determines the transmission path of the data flowing through according to the preset request distribution principle and / or the preset arbitration algorithm. For example: the arbitration distribution module is pre-configured to transmit data from the interconnection bus a to the port b. After obtaining the data, the arbitration distribution module identifies the source address and the destination address of the data. If the source address of the data is identified as the interconnection bus a and the destination address is identified as the port b, the arbitration distribution module can transmit the data to the port b.

[0078] The first arbitration distribution module 500 provided in the embodiment of the present invention can obtain the connection information (i.e., routing information) of each chip, and then determine the transmission line through which the data is sent from the current chip to the destination address according to the above connection information and the destination address of the data, and then determine whether to send the data to the first port 100, the system bus 300, or the first interconnection bus 400 according to the transmission line. Optionally, when the destination address is the current chip, the first arbitration distribution module 500 can send the data to the system bus 300 so that the current chip can obtain the data. Optionally, when the next node chip of the transmission line is a chip directly connected to the first port 100, the first arbitration distribution module 500 sends the data to the first port 100 so that the next node chip obtains the data. Optionally, when the next node chip of the transmission line is a chip directly connected to the second port 200, the first arbitration distribution module 500 sends the data to the first interconnection bus 400 to send the data to the second arbitration distribution module 600 through the first interconnection bus 400. In this way, the second arbitration distribution module 600 can send the data to the second interface according to the transmission line, and then send the data to the next node chip.

[0079] Optionally, the first arbitration distribution module 500 is configured to: control the data flowing through the first arbitration distribution module 500 to be sent to one of the first port 100, the system bus 300, and the first interconnect bus 400 according to the destination address of the data flowing through the first arbitration distribution module 500.

[0080] Optionally, the second arbitration distribution module 600 is configured to: control the data flowing through the second arbitration distribution module 600 to be sent to one of the second port 200, the system bus 300, and the first interconnection bus 400 according to the destination address of the data flowing through the second arbitration distribution module 600.

[0081] Optionally, the chip provided by the embodiment of the present invention may further include a PCIe (Peripheral Component Interconnect express) interface. The PCIe interface may be connected to the system bus 300 .

[0082] Optionally, in the embodiment of the present invention, if the first interconnection bus 400 needs to be cascaded with other interconnection buses, arbitration distribution modules may be provided on both sides of the first interconnection bus 400 .

[0083] Optional, based on Figure 1 The chip shown, such as Figure 5 As shown, another chip provided by the embodiment of the present invention may further include: a third arbitration distribution module 700 and a fourth arbitration distribution module 800 .

[0084] The first arbitration distribution module 500 is disposed at the first port 100 , the second arbitration distribution module 600 is disposed at the second port 200 , the third arbitration distribution module 700 is disposed at one side of the first interconnection bus 400 , and the fourth arbitration distribution module 800 is disposed at the other side of the first interconnection bus 400 .

[0085] The first port 100 is connected to one side of the first interconnection bus 400 via the first arbitration distribution module 500 . Specifically, the first port 100 is connected to one side of the first interconnection bus 400 via the first arbitration distribution module 500 and the third arbitration distribution module 700 in sequence.

[0086] The second port 200 is connected to the other side of the first interconnection bus 400 via the second arbitration distribution module 600 . Specifically, the second port 200 is connected to the other side of the first interconnection bus 400 via the second arbitration distribution module 600 and the fourth arbitration distribution module 800 .

[0087] Optionally, the arbitration distribution module provided in the embodiment of the present invention includes at least one arbitrator and one distributor. The arbitrator in the arbitration distribution module directly connected to the port in the embodiment of the present invention can identify the source bus for sending data requests, wherein the source bus includes the system bus 300 and / or the interconnect bus. The distributor in the arbitration distribution module directly connected to the port in the embodiment of the present invention can identify the destination bus for receiving data requests, wherein the destination bus includes the system bus 300 and / or the interconnect bus. The connection relationship between the port and the arbitrator and the distributor can be as follows: Figure 6 As shown, the arrow indicates the transmission direction of the data request. It should be noted that Figure 6 Only the transmission direction of the data request is shown, and the transmission method of the data response is not shown. However, it can be understood that the relationship between the data request and the data response is technical common sense in this field.

[0088] The embodiment of the present invention does not limit the arbitration algorithm used by the arbitrator.

[0089] The distributor in the embodiment of the present invention can determine the destination bus of the data request according to the access space requested by the data request. For example: if the access space requested by the data request belongs to the system memory resource, the data request is distributed to the system bus 300. If the access space requested by the data request belongs to a certain interconnect bus space, the data request is distributed to the interconnect bus. If the access space requested by the data request does not belong to the system memory resource and the interconnect bus space, the data request is terminated. It can be understood that the data response corresponding to the data request can be processed by the general technical means in the field, which will not be explained here.

[0090] Optionally, the embodiment of the present invention can divide the access space inside the chip into port access space, system storage resource access space and interconnect bus access space. Optionally, the port access space, system storage resource access space and interconnect bus access space are independent of each other and do not overlap. Each port access space and system storage resource access space can be accessed through the system bus 300. The interconnect bus access space can be accessed through the interconnect bus. The destination address corresponding to the system storage resource access space is inside the chip. When accessing any interconnect port access space, it will be mapped to the system storage resource access space and interconnect bus access space inside the chip connected to the interconnect port. When accessing any interconnect bus access space, the relevant resources connected to the interconnect bus can be accessed. For example: registers of a device connected to the interconnect bus, etc. Under normal circumstances, the port access space size of a port is equal to the sum of the system storage resource access space and interconnect bus access space inside the chip connected to the port. If the access space requested by a data request is larger than the port access space of the port, the data request is terminated to prevent unnecessary occupation of the access space inside the chip. It can be understood that the embodiment of the present invention can also use the ID plus address range method to divide the access space inside the chip. The embodiment of the present invention does not limit the division method.

[0091] Optional, based on Figure 5 The chip shown, such as Figure 7 As shown, another chip provided by an embodiment of the present invention, the first arbitration distribution module 500 includes a first arbitrator 520 and a first distributor 510, the second arbitration distribution module 600 includes a second arbitrator 620 and a second distributor 610, the third arbitration distribution module 700 includes a third arbitrator 710 and a third distributor 720, and the fourth arbitration distribution module 800 includes a fourth arbitrator 810 and a fourth distributor 820.

[0092] Optional, such as Figure 7 As shown, the first port 100 is connected to one side of the first interconnection bus 400 via the first arbitration distribution module 500 and the third arbitration distribution module 700 in sequence, and is specifically configured as follows:

[0093] The first port 100 is connected to one side of the first interconnection bus 400 via the first distributor 510 and the third distributor 720 in sequence;

[0094] The first port 100 is connected to one side of the first interconnection bus 400 via the first arbitrator 520 and the third arbitrator 710 in sequence;

[0095] The second port 200 is connected to the other side of the first interconnection bus 400 via the second arbitration distribution module 600 and the fourth arbitration distribution module 800 in sequence, and is specifically configured as follows:

[0096] The second port 200 is connected to the other side of the first interconnection bus 400 via the second distributor 610 and the fourth distributor 820 in sequence;

[0097] The second port 200 is connected to the other side of the first interconnection bus 400 via the second arbitrator 620 and the fourth arbitrator 810 in sequence.

[0098] Optional, such as Figure 7 As shown, the first port 100 is connected to the system bus 300 via the first arbitration distribution module 500, and is specifically configured as follows:

[0099] The first port 100 is connected to the system bus 300 via the first distributor 510;

[0100] The first port 100 is connected to the system bus 300 via the first arbitrator 520;

[0101] The second port 200 is connected to the system bus 300 via the second arbitration distribution module 600, and is specifically configured as follows:

[0102] The second port 200 is connected to the system bus 300 via the second distributor 610;

[0103] The second port 200 is connected to the system bus 300 via the second arbiter 620 .

[0104] Optionally, any two ports in the chip are connected via at least one interconnection bus.

[0105] Optionally, each port in the chip is connected to at least one arbitration distribution module, and both sides of any interconnection bus in the chip are connected to at least one arbitration distribution module.

[0106] In order to facilitate the overall understanding of the structure of the chip provided by the embodiment of the present invention, Figure 8 The structure diagram of another chip provided by the embodiment of the present invention is illustrated as follows: Assume that the chip has four ports, each port is directly connected to a distributor and an arbitrator, and each port can be connected through at least one interconnection bus. If each interconnection bus needs to be cascaded, a distributor and an arbitrator need to be directly connected on both sides of the interconnection bus. Two interconnection buses can be connected through their directly connected distributors and arbitrators. Figure 8As shown, two ports can be connected via three interconnection buses. The embodiment of the present invention does not limit the number of interconnection buses connected between any two ports. Of course, the embodiment of the present invention can also set an interconnection bus between any two ports. A distributor directly connected to a port can be connected to a distributor directly connected to an interconnection bus. An arbitrator directly connected to a port can be connected to an arbitrator directly connected to an interconnection bus.

[0107] Optional, based on Figure 1 The chip shown, such as Fig. 9 As shown, another chip provided by an embodiment of the present invention may also include: a transit control engine 900 connected to the interconnection bus, and the transit control engine 900 is configured to initiate a read operation and / or a write operation on the transit data.

[0108] Specifically, if the data only needs to be transmitted through the chip and the chip does not need to process the data, then the data is transit data for the chip, and the chip can also be regarded as a transit node chip for the data.

[0109] Among them, the transit control engine 900 can be a device connected to the interconnection bus. The transit control engine 900 can access the interconnection bus connected to it, and the interconnection bus can also access the transit control engine 900. Specifically, the transit control engine 900 can send a read request to the interconnection bus, and the read request is transmitted to the data transmission port through the interconnection bus, and the data corresponding to the read request is read from the chip connected to the data transmission port, and the data is returned to the transit control engine 900, so that the transit control engine 900 can write the data to the chip connected to the data receiving port through the interconnection bus. In the above process, the data does not need to be transmitted to the system bus 300, nor is the data stored in the system storage resource access space on the system bus 300.

[0110] Optionally, the embodiment of the present invention can set the connection position between the transit control engine 900 and the interconnection bus close to the port or other interconnection bus, so as to reduce the time of the data transfer process, thereby further improving the performance. Specifically, in the embodiment of the present invention, multiple interconnection buses can be connected to the same transit control engine 900, that is, at least three or more ports share one transit control engine 900. Under normal circumstances, in order to improve the efficiency of data transfer, an interconnection bus can be connected to a transit control engine 900 alone, that is, two ports share one transit control engine 900. The embodiment of the present invention can set the port identified by the transit control engine 900 so that the transit control engine 900 can implement the data transfer function between the identified ports.

[0111] Optional, based on Figure 1 The chip shown, such as Fig.10As shown, the system may further include: a storage unit 910 , a control engine unit 920 , a transport engine unit 930 , and a computing engine unit 940 connected to the system bus 300 .

[0112] Among them, the storage unit 910, the control engine unit 920, the transport engine unit 930 and the calculation engine unit 940 can be devices connected to the system bus 300. The system bus 300 can access the storage unit 910, the control engine unit 920, the transport engine unit 930 and the calculation engine unit 940. Specifically, the system bus 300 can control the storage unit 910, the control engine unit 920, the transport engine unit 930 and the calculation engine unit 940 to cooperate to complete the data processing of the data. For example: the control engine unit 920 can synchronously control the data flowing into the system bus 300, the calculation engine unit 940 can use the preset application algorithm to calculate the data and obtain the calculation result, and then the storage unit 910 stores the calculation result in the memory, and finally the transport engine unit 930 transfers the stored calculation result to the target address according to the preset application model.

[0113] The storage unit 910, the control engine unit 920, the transport engine unit 930, and the computing engine unit 940 may be virtual devices connected to the system bus 300 in the chip to complete pre-set operations. The names of the storage unit 910, the control engine unit 920, the transport engine unit 930, and the computing engine unit 940 described in different materials and documents may be different, but it should be understood that these units may be basic virtual units in existing chips that are connected to the system bus 300 and complete basic chip functions. It should be noted that in the embodiments of the present invention, except Fig.10 In order to facilitate the description and illustration of the invention points of the present invention, Fig.10 These basic virtual units are omitted in the chip structure diagrams other than FIG.

[0114] In practical applications, using the chip provided by the embodiment of the present invention, directly connecting the ports of multiple chips can build a chip cluster. The connection method between chips can refer to the above embodiment and will not be repeated here. According to the interconnection topology structure of the chip cluster, the embodiment of the present invention can provide a scheduling algorithm adapted to the interconnection topology structure. Through the scheduling algorithm, the transmission of data streams of different application types in the chip cluster is balanced to the greatest extent, avoiding the problem of long transmission time and excessive transmission power consumption caused by the overload operation of a chip in the chip cluster. For example: assuming that the data of chip D is transmitted to chip E, the embodiment of the present invention can determine the transmission path for transmitting the data based on the physical connection of all transmission paths composed of transfer node chips between chip D and chip E, the occupancy of each port of each transfer node chip, and the occupancy of chip E. The overall resource occupancy of the chip cluster and the amount of data, etc. For example: the transmission path determined by the scheduling algorithm is chip D to chip F to chip G to chip E. After chip F obtains the data from chip D, it transmits the data to chip G via the interconnection bus connecting chip F itself and chip G. After chip G obtains the data transmitted by chip F, it transmits the data to chip E via the interconnection bus connecting chip D itself and chip E.

[0115] It is understandable that the embodiments of the present invention may apply a ready-made scheduling algorithm, or may use a scheduling algorithm specially designed for the interconnection topology of a chip cluster.

[0116] A chip provided by an embodiment of the present invention includes: a first port 100, a second port 200, a system bus 300, a first interconnection bus 400, a first arbitration distribution module 500, and a second arbitration distribution module 600. The first port 100 is connected to one side of the first interconnection bus 400 via the first arbitration distribution module 500, and the second port 200 is connected to the other side of the first interconnection bus 400 via the second arbitration distribution module 600. The system bus 300 is different from the first interconnection bus 400. The first port 100 is connected to the system bus 300 via the first arbitration distribution module 500, and / or the second port 200 is connected to the system bus 300 via the second arbitration distribution module 600. The embodiment of the present invention transmits data that does not need to be processed through an interconnection bus that does not interfere with the system bus 300, thereby avoiding unnecessary data processing of the data flow through the system bus 300, saving computing resources of the chip, and improving the overall efficiency of the chip in operating data.

[0117] Corresponding to the chip provided by the above embodiment of the present invention, Fig.11 As shown, an embodiment of the present invention further provides a data interaction method, which is applied to the above chip, and the method includes:

[0118] S100 , the first arbitration distribution module 500 obtains data transmitted to the chip via the first port 100 .

[0119] S200, the first arbitration distribution module 500 identifies the first destination address in the data, and when the first destination address matches the second port 200, executes step S300, and when the first destination address matches the system bus 300, executes step S400.

[0120] S300 , the first arbitration distribution module 500 sends the data to the first interconnection bus 400 .

[0121] S400 , the first arbitration distribution module 500 sends the data to the system bus 300 .

[0122] S500 , the second arbitration distribution module 600 obtains data transmitted via the first interconnection bus 400 or the system bus 300 .

[0123] S600, the second arbitration distribution module 600 identifies a second destination address in the data, and when the second destination address matches the second port 200, the second arbitration distribution module 600 sends the data to the second port 200, so as to send the data to other chips connected to the second port 200 via the second port 200, wherein the second destination address is the same as or different from the first destination address.

[0124] A data interaction method provided by an embodiment of the present invention is applied to a chip, and transmits data that does not require data processing through an interconnection bus that does not interfere with the system bus 300, thereby avoiding unnecessary data processing on the data flowing through the system bus 300, saving the computing resources of the chip, and improving the overall efficiency of the chip's operations on data.

[0125] Optional, based on Fig.11 The method shown, such as Fig.12 As shown, another data interaction method provided by an embodiment of the present invention, step S300 includes:

[0126] S310 , the first arbitration distribution module 500 sends the data to the third arbitration distribution module 700 .

[0127] S320 , the third arbitration distribution module 700 sends the data to the first interconnection bus 400 .

[0128] Step S500 may include:

[0129] S510 , the second arbitration distribution module 600 obtains data transmitted sequentially via the first interconnection bus 400 or the system bus 300 and the fourth arbitration distribution module 800 .

[0130] Optional, based on Fig.12 The method shown, such as Fig.13 As shown, another data interaction method provided by an embodiment of the present invention, step S100 may include:

[0131] S110 , the first distributor 510 obtains data transmitted to the chip via the first port 100 .

[0132] Step S200 may include:

[0133] S210. The first distributor 510 identifies a first destination address in the data.

[0134] Step S310 may include:

[0135] S311 . The first distributor 510 sends the data to the third distributor 720 .

[0136] Step S320 may include:

[0137] S321 . The third distributor 720 sends the data to the first interconnection bus 400 .

[0138] Step S400 may include:

[0139] S410 , the first distributor 510 sends the data to the system bus 300 .

[0140] Step S510 may include:

[0141] S511 , the second arbiter 620 obtains data transmitted sequentially via the first interconnection bus 400 or the system bus 300 and the fourth arbiter 810 .

[0142] Step S600 may include:

[0143] S610 , the second arbitrator 620 identifies a second destination address in the data, and when the second destination address matches the second port 200 , the second arbitrator 620 sends the data to the second port 200 .

[0144] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. It should also be noted that the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0145] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0146] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A chip, It is characterized in that include: a first port, a second port, a system bus, a first interconnection bus, a first arbitration distribution module and a second arbitration distribution module, wherein the first port is connected to one side of the first interconnection bus via the first arbitration distribution module, the second port is connected to the other side of the first interconnection bus via the second arbitration distribution module, and the system bus is different from the first interconnection bus; The first port and the second port are connected to the system bus via the first arbitration distribution module and the second arbitration distribution module respectively, or the first port is connected to the system bus via the first arbitration distribution module, and the second port is not connected to the system bus, or the second port is connected to the system bus via the second arbitration distribution module, and the first port is not connected to the system bus; The first arbitration distribution module is configured to: control the data flowing through the first arbitration distribution module to be sent to one of the first port, the system bus, and the first interconnect bus according to the destination address of the data flowing through the first arbitration distribution module; The second arbitration distribution module is configured to control the data flowing through the second arbitration distribution module to be sent to one of the second port, the system bus, and the first interconnect bus according to a destination address of the data flowing through the second arbitration distribution module.

2. The chip according to claim 1, It is characterized in that It also includes: a third arbitration distribution module and a fourth arbitration distribution module, The first arbitration distribution module is arranged at the first port, the second arbitration distribution module is arranged at the second port, the third arbitration distribution module is arranged at one side of the first interconnection bus, and the fourth arbitration distribution module is arranged at the other side of the first interconnection bus; The first port is connected to one side of the first interconnection bus via the first arbitration distribution module, and is specifically configured as follows: the first port is connected to one side of the first interconnection bus via the first arbitration distribution module and the third arbitration distribution module in sequence; The second port is connected to the other side of the first interconnection bus via the second arbitration distribution module, and is specifically configured as follows: the second port is connected to the other side of the first interconnection bus via the second arbitration distribution module and the fourth arbitration distribution module in sequence.

3. The chip according to claim 1, It is characterized in that The first port is connected to a first other chip, and the second port is connected to a second other chip. The data in the first other chip is sent to the second other chip via the first port, the first arbitration distribution module, the first interconnection bus, the second arbitration distribution module and the second port in sequence; and / or, The data in the second other chip is sent to the first other chip via the second port, the second arbitration distribution module, the first interconnection bus, the first arbitration distribution module and the first port in sequence.

4. The chip according to claim 2, It is characterized in that The first arbitration distribution module includes a first arbitrator and a first distributor, the second arbitration distribution module includes a second arbitrator and a second distributor, the third arbitration distribution module includes a third arbitrator and a third distributor, and the fourth arbitration distribution module includes a fourth arbitrator and a fourth distributor.

5. The chip according to claim 4, It is characterized in that The first port is connected to one side of the first interconnection bus via the first arbitration distribution module and the third arbitration distribution module in sequence, and is specifically configured as follows: The first port is connected to one side of the first interconnection bus via the first distributor and the third distributor in sequence; The first port is connected to one side of the first interconnection bus via the first arbitrator and the third arbitrator in sequence; The second port is connected to the other side of the first interconnection bus via the second arbitration distribution module and the fourth arbitration distribution module in sequence, and is specifically configured as follows: The second port is connected to the other side of the first interconnection bus via the second distributor and the fourth distributor in sequence; The second port is connected to the other side of the first interconnection bus via the second arbitrator and the fourth arbitrator in sequence.

6. The chip according to claim 4, It is characterized in that The first port is connected to the system bus via the first arbitration distribution module, and is specifically configured as follows: The first port is connected to the system bus via the first distributor; The first port is connected to the system bus via the first arbitrator; The second port is connected to the system bus via the second arbitration distribution module, and is specifically configured as follows: The second port is connected to the system bus via the second distributor; The second port is connected to the system bus via the second arbitrator.

7. The chip according to claim 1, It is characterized in that The first port is connected to at least one port in a third other chip, and the second port is connected to at least one port in a fourth other chip; The third other chip is different from the fourth other chip.

8. The chip according to claim 1, It is characterized in that The first port is connected to at least one port of a fifth other chip, the second port is connected to at least one port of the fifth other chip, and the port connected to the fifth other chip by the first port is different from the port connected to the fifth other chip by the second port.

9. The chip according to claim 1, It is characterized in that Any two ports in the chip are connected via at least one interconnection bus; and / or, Each port in the chip is connected to at least one arbitration distribution module, and both sides of any interconnection bus in the chip are connected to at least one arbitration distribution module.

10. The chip according to claim 1, It is characterized in that Also includes: A transit control engine connected to the interconnect bus, wherein the transit control engine is configured to initiate a read operation and / or a write operation on the transit data.

11. A data interaction method, It is characterized in that The method is applied to the chip according to any one of claims 1 to 10, and the method comprises: The first arbitration distribution module obtains data transmitted to the chip via the first port; The first arbitration distribution module identifies a first destination address in the data, and when the first destination address matches the second port, the first arbitration distribution module sends the data to the first interconnect bus; when the first destination address matches the system bus, the first arbitration distribution module sends the data to the system bus; The second arbitration distribution module obtains data transmitted via the first interconnection bus or the system bus; The second arbitration distribution module identifies a second destination address in the data, and when the second destination address matches the second port, the second arbitration distribution module sends the data to the second port to send the data to other chips connected to the second port via the second port, wherein the second destination address is the same as or different from the first destination address.