Chip system
By designing a dynamic routing module and deadlock prevention mechanism in core particle technology, the problem of low communication efficiency between core particles under irregular topology is solved, and efficient and reliable inter-core data transmission is achieved.
Patent Information
- Application Number
- CN202410628587.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-09-03
AI Technical Summary
In chip technology, heterogeneity and irregular topology lead to low communication efficiency between chips, especially in dynamically changing application scenarios. It is difficult to maintain efficient communication.
An inter-core routing module is designed, which uses the register configuration module to dynamically adjust the routing strategy and is equipped with a deadlock prevention mechanism to achieve high-speed, low-latency, and high-bandwidth communication across cores through multiple port modules.
It ensures the reliability and efficiency of inter-core communication under complex chip layout conditions, adapts to irregular topology, and improves data transmission efficiency and system adaptability.
Smart Images

Figure CN118586345A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of integrated circuit design, and in particular to a chip system suitable for irregular topological structures. Background Art
[0002] The statements in this section are merely intended to provide background information related to the present invention to help understanding the present invention. Such background information does not necessarily constitute prior art.
[0003] Chiplet technology is an innovative integrated circuit design strategy that builds more complex and high-performance systems by dividing the entire chip into multiple independent functional units (each functional unit is called a chiplet). This method divides the chip into several independently designed, manufactured and tested modules, and then integrates these modules together. Its main advantages are enhanced design flexibility, shortened product launch cycle, and reduced development costs.
[0004] In chiplet technology, communication between chiplets faces challenges brought by heterogeneity and irregular topology. These challenges stem from the differences in functions, timing, and communication requirements between different chiplets. Irregular topology layout makes communication paths complicated, which poses a challenge to communication efficiency. Especially in application scenarios such as mobile devices or adaptive systems, the topology between chiplets may change dynamically. How to maintain efficient communication in such changes is a technical challenge. Summary of the invention
[0005] Based on the above problems in the prior art, the present invention provides a chip system, which is composed of a plurality of interconnected core particles, wherein each core particle includes an inter-core particle routing module, and each core particle is connected and communicated with an adjacent core particle through the respective inter-core particle routing modules; the inter-core particle routing module includes: a first port corresponding to a first direction, a second port corresponding to a second direction, a third port corresponding to a third direction, and a fourth port corresponding to a fourth direction, wherein the second direction is perpendicular to the first direction, the third direction is opposite to the first direction, and the fourth direction is opposite to the second direction;
[0006] The inter-chiplet routing module includes a register configuration module for dynamically configuring a data routing mode and a data transmission path.
[0007] In one embodiment, the register configuration module includes a plurality of routing mode selection registers, wherein the routing mode selection registers include target node coordinates and rewrite bits corresponding to the target node coordinates, and the rewrite bits are used to determine the routing mode of the current node.
[0008] In one embodiment, each port includes:
[0009] An external port module, comprising:
[0010] An input data module is configured to receive data packets from other inter-core routing modules in the corresponding direction, and is capable of sending data packets to the external port modules in the other three directions and the output data modules of the local port modules in the corresponding direction;
[0011] The output data module is configured to receive data packets from the external port modules in the other three directions and the input data modules of the local port modules in the corresponding directions, and can send data packets to other inter-core routing modules in the corresponding directions;
[0012] A local port module, comprising:
[0013] An input data module is configured to receive a data packet from a current core particle and send the data packet to an output data module of an external port module in a corresponding direction;
[0014] The output data module is configured to receive a data packet from the input data module of the external port module in the corresponding direction, and send the data packet to the current chiplet.
[0015] In one embodiment, the input data modules of the external port module and the local port module include:
[0016] a data temporary storage module, used to receive and temporarily store data packets input to the input data module; and
[0017] The routing module is used to obtain a routing direction based on the multiple routing mode selection registers, the target node coordinates of the data packet and the current node coordinates.
[0018] In one embodiment, when the target node coordinates of the data packet are the same as the target node coordinates in the routing mode selection register and the overwrite bit is 1, the routing mode of the second direction first and then the first direction is adopted, otherwise the routing mode of the first direction first and then the second direction is adopted.
[0019] In one embodiment, the routing method of the first direction first and the second direction second is:
[0020] If the coordinate of the target node in the first direction is greater than the coordinate of the current node in the first direction, route in the first direction; otherwise, route in the third direction;
[0021] If the coordinates of the target node in the first direction are equal to the coordinates of the current node in the first direction, then compare the coordinates of the target node in the second direction with the coordinates of the current node in the second direction; if the coordinates of the target node in the second direction are greater than the coordinates of the current node in the second direction, route to the second direction; otherwise, route to the fourth direction;
[0022] If the coordinates of the target node in the first direction are equal to the coordinates of the current node in the first direction, and the coordinates of the target node in the second direction are equal to the coordinates of the current node in the second direction, the target node is reached.
[0023] In one embodiment, the routing method of the second direction first and the first direction second is:
[0024] If the coordinate of the target node in the second direction is greater than the coordinate of the current node in the second direction, and the current node is not the most edge node in the second direction, routing in the second direction;
[0025] If the coordinate of the target node in the second direction is smaller than the coordinate of the current node in the second direction, and the current node is not the most edge node in the fourth direction, route in the fourth direction;
[0026] If the coordinates of the target node in the second direction are equal to the coordinates of the current node in the second direction, and the current node is the most edge node in the second direction, routing in the fourth direction;
[0027] In other cases, the routing method of first direction and then second direction is adopted.
[0028] In one embodiment, the routing mode selection register is configured to achieve:
[0029] When the current node allows the data packet from the second direction to be sent to the third direction, all nodes between the third direction and the second direction do not allow the data packet from the fourth direction to be sent to the first direction;
[0030] When the current node allows the data packet from the fourth direction to be sent to the first direction, all nodes between the first direction and the fourth direction do not allow the data packet from the second direction to be sent to the third direction;
[0031] When the current node allows the data packet from the fourth direction to be sent to the third direction, all nodes between the third direction and the fourth direction do not allow the data packet from the second direction to be sent to the first direction;
[0032] When the current node allows the data packet from the second direction to be sent to the first direction, all routing nodes between the first direction and the second direction do not allow the data packet from the fourth direction to be sent to the third direction.
[0033] In one embodiment, the output data modules of the external port module and the local port module include:
[0034] A flow control module, used to calculate whether the output data module has space to receive data, and output a space available signal;
[0035] a control module, configured to receive a routing request signal from the input data module and the space available signal, and select a routing request for authorization;
[0036] The data path selection module is used to receive the data signal and the data valid signal from the input data module, and make a selection according to the authorization result of the control module.
[0037] In one embodiment, each chiplet comprises a routing interface module for transmitting data between the corresponding chiplet and the inter-chiplet routing module.
[0038] The present invention solves the limitations of the prior art and proposes a chip system that adapts to irregular topology structures. It uses the flexibility of register configuration, adjusts the routing strategy between core particles, and is equipped with a deadlock prevention mechanism to ensure that the reliability and efficiency of communication can be maintained even under complex chip layout conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A schematic diagram of a chip system according to an embodiment of the present invention is shown.
[0040] Figure 2 A schematic diagram of an inter-chiplet routing module according to an embodiment of the present invention is shown.
[0041] Figure 3 A schematic diagram of an input data module according to an embodiment of the present invention is shown.
[0042] Figure 4 A schematic diagram showing a configuration of a routing mode selection register according to an embodiment of the present invention is shown.
[0043] Figure 5 A schematic diagram of an output data module according to an embodiment of the present invention is shown.
[0044] Figure 6 A schematic diagram of a routing strategy according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention will be further described in detail below through specific embodiments in conjunction with the accompanying drawings. It should be noted that the embodiments given in the present invention are only for illustration and do not limit the protection scope of the present invention.
[0046] The present invention is used for an integrated chip using core particle technology. Specifically, the integrated chip includes multiple core particles, and the multiple core particles are interconnected through a substrate to form a chip system, which has a corresponding topological structure. The inter-core routing module is a key component for realizing high-speed, low-latency, and high-bandwidth communication between core particles, and is used to ensure that data between each core particle can be transmitted in real time and reliably.
[0047] The routing mode between core particles in the prior art is usually the default routing mode of first X direction and then Y direction (hereinafter referred to as first X and then Y). The X direction is the horizontal direction and the Y direction is the vertical direction. However, in the case of some irregular topological structures, for example, when a node in the core particle topological structure is damaged, the default routing mode of first X and then Y in the prior art may not be able to achieve reliable communication between core particles.
[0048] Based on this, the present invention proposes a design method for an efficient inter-chip routing module that adapts to irregular topology structures. The design uses the flexibility of register configuration, adjusts its routing strategy, and is equipped with a deadlock prevention mechanism to ensure that the reliability and efficiency of communication can be maintained even under complex chip layout conditions.
[0049] Figure 1 FIG. 1 is a schematic diagram of a chip system according to an embodiment of the present invention. The chip system is composed of a plurality of interconnected chiplets. Figure 1 9 core particles are shown in FIG. 1 , namely core particles X1, X2, ..., X9. Those skilled in the art should understand that in practical applications, any number of core particles may be included as required.
[0050] Each chip includes a routing interface module, that is, chip X1 includes routing interface module A1, chip X2 includes routing interface module A2, and so on, chip X9 includes routing interface module A9. The routing interface module is used to effectively collect, integrate, and package the data from the corresponding chip into standardized data packets, and add control information to guide the correct data transmission between chiplets. It is also responsible for decomposing the data packets into individual data streams and extracting valid data based on the control information. The routing interface module is used to transmit data between chiplets and inter-chiplet routing modules.
[0051] Each core also includes an inter-core routing module, that is, core X1 includes an inter-core routing module R1, core X2 includes an inter-core routing module R2, and so on, core X9 includes an inter-core routing module R9. Each core communicates with adjacent cores through their own inter-core routing modules, and the inter-core routing modules are used to ensure that data packets can be quickly and accurately transmitted between different cores.
[0052] For ease of explanation, in the present invention, the horizontal direction is defined as the X direction, the vertical direction is defined as the Y direction, the positive direction along the X direction is defined as the east direction, the negative direction along the X direction is defined as the west direction, the positive direction along the Y direction is defined as the south direction, and the negative direction along the Y direction is defined as the north direction. However, those skilled in the art should understand that any direction can be defined as the first direction based on needs, a second direction perpendicular to the first direction can be defined, a third direction opposite to the first direction can be defined, and a fourth direction opposite to the second direction can be defined.
[0053] For ease of explanation, each core particle or the inter-core routing module of a core particle is referred to as a node, and each node has coordinates, for example, the node coordinates of the inter-core routing module R1 are (0,0), the node coordinates of the inter-core routing module R2 are (1,0), and so on. Since the core particles and the inter-core routing modules are one-to-one corresponding, the core particles and their inter-core routing modules have the same node coordinates.
[0054] In the present invention, the source core particle refers to the core particle that needs to send data, and the target core particle refers to the core particle that needs to receive data. The data is sent from the source core particle and transmitted to the target core particle. Specifically, the routing interface module of the source core particle receives the data from the source core particle, packages the data into a data packet, and then sends the data packet to the inter-core routing module of the source core particle. The inter-core routing module of the source core particle sends the data packet to the inter-core interface module of the core particle in one of the four directions of southeast, northwest, and northeast according to the routing strategy for high-speed data transmission between core particles. After receiving the data packet, the inter-core routing module of the passing core particle determines that the current core particle is not the target core particle by comparing the target node coordinate information in the data packet. According to the target node coordinates, the current node coordinates and the routing strategy, the routing direction is calculated and the data packet is sent to the inter-core routing module in the direction for data transmission. After receiving the data packet, the inter-chiplet routing module of the target chiplet determines that the current chiplet is the target chiplet by comparing the target node coordinates with the current node coordinates. Then, the inter-chiplet routing module of the target chiplet sends the data packet to the routing interface module of the target chiplet. The routing interface module of the target chiplet is responsible for unpacking the data, separating the payload and control information in the data packet, and restoring the original data format.
[0055] Figure 2 FIG. 2 shows a schematic diagram of an inter-chiplet routing module according to an embodiment of the present invention. Figure 2 As shown, the inter-chip routing module 200 includes a north port 210 corresponding to the north direction, an east port 211 corresponding to the east direction, a south port 212 corresponding to the south direction, and a west port 213 corresponding to the west direction.
[0056] The north port 210 includes a north external port module 201 and a north local port module 202. The north external port module 201 includes an input data module 2011 and an output data module 2012. The input data module 2011 is configured to receive data packets from the north inter-core routing module RN of the north core, and to send data packets to the output data module 2072 of the west external port module 207, the output data module 2052 of the south external port module 205, the output data module 2032 of the east external port module 203, and the output data module 2022 of the north local port module 202. The output data module 2012 is configured to receive data packets from the input data module 2071 of the west external port module 207, the input data module 2051 of the south external port module 205, the input data module 2031 of the east external port module 203, and the input data module 2021 of the north local port module 202, and to send data packets to the north inter-chip routing module RN of the north chip.
[0057] The north side local port module 202 includes an input data module 2021 and an output data module 2022. The input data module 2021 is configured to receive a data packet from the current core particle and send the data packet to the output data module 2012 of the north side external port module 201. The output data module 2022 is configured to be able to receive a data packet from the input data module 2011 of the north side external port module 201 and be able to send the data packet to the current core particle.
[0058] The east port 211 includes an east external port module 203 and an east local port module 204. The east external port module 203 includes an input data module 2031 and an output data module 2032. The input data module 2031 is configured to receive data packets from the east inter-chiplet routing module RE of the east chiplet, and to send data packets to the output data module 2072 of the west external port module 207, the output data module 2052 of the south external port module 205, the output data module 2012 of the north external port module 201, and the output data module 2042 of the east local port module 204. The output data module 2032 is configured to receive data packets from the input data module 2071 of the west side external port module 207, the input data module 2051 of the south side external port module 205, the input data module 2011 of the north side external port module 201 and the input data module 2041 of the east side local port module 204, and to send data packets to the east side inter-chip routing module RE of the east side chip.
[0059] The east local port module 204 includes an input data module 2041 and an output data module 2042. The input data module 2041 is configured to receive a data packet from the current core particle and send the data packet to the output data module 2032 of the east external port module 203. The output data module 2042 is configured to be able to receive a data packet from the input data module 2031 of the east external port module 203 and be able to send the data packet to the current core particle.
[0060] The south port 212 includes a south external port module 205 and a south local port module 206. The south external port module 205 includes an input data module 2051 and an output data module 2052. The input data module 2051 is configured to receive data packets from the south inter-core routing module RS of the south core, and to send data packets to the output data module 2072 of the west external port module 207, the output data module 2012 of the north external port module 201, the output data module 2032 of the east external port module 203, and the output data module 2062 of the south local port module 206. The output data module 2052 is configured to receive data packets from the input data module 2071 of the west external port module 207, the input data module 2011 of the north external port module 201, the input data module 2031 of the east external port module 203, and the input data module 2061 of the south local port module 206, and to send data packets to the south inter-chip routing module RS of the south chip.
[0061] The south local port module 206 includes an input data module 2061 and an output data module 2062. The input data module 2061 is configured to receive a data packet from the current core particle and send the data packet to the output data module 2052 of the south external port module 205. The output data module 2062 is configured to be able to receive a data packet from the input data module 2051 of the south external port module 205 and be able to send the data packet to the current core particle.
[0062] The west port 213 includes a west external port module 207 and a west local port module 208. The west external port module 207 includes an input data module 2071 and an output data module 2072. The input data module 2071 is configured to receive data packets from the west inter-chiplet routing module RW of the west chiplet, and to send data packets to the output data module 2012 of the north external port module 201, the output data module 2052 of the south external port module 205, the output data module 2032 of the east external port module 203, and the output data module 2082 of the west local port module 208. The output data module 2072 is configured to receive data packets from the input data module 2011 of the north side external port module 201, the input data module 2051 of the south side external port module 205, the input data module 2031 of the east side external port module 203 and the input data module 2081 of the west side local port module 208, and to send data packets to the west side inter-chip routing module RW of the west side chip.
[0063] The west local port module 208 includes an input data module 2081 and an output data module 2082. The input data module 2081 is configured to receive a data packet from the current core particle and send the data packet to the output data module 2072 of the west external port module 207. The output data module 2082 is configured to be able to receive a data packet from the input data module 2071 of the west external port module 207 and be able to send the data packet to the current core particle.
[0064] In one embodiment, the core has a routing module inside, and the routing module inside the core determines to which side of the core the data packet of the core needs to be sent. For example, if the routing module inside the core determines that the data packet of the core needs to be sent to the core on the north side, the data packet from the core is directly sent to the input data module 2021 of the north local port module 202 via the routing interface module in the core, and the input data module 2021 sends the data packet to the output data module 2012 of the north external port module 201, and the output data module 2012 sends the data packet to the input data module of the south external port module of the inter-core routing module RN of the north core.
[0065] In the above embodiment, the inter-chiplet routing module includes a register configuration module, and the register configuration module is used to configure routing direction information to indicate the routing strategy of the current chiplet.
[0066] The register configuration module includes a plurality of routing mode selection registers for selecting routing modes. The routing mode selection register includes target node coordinate information and rewrite bit information corresponding to the target node coordinates, and the rewrite bit is used to determine the routing strategy of the current node. Those skilled in the art can select the number of registers according to the number of core particles. Figure 4FIG. 1 is a schematic diagram showing a configuration of a routing mode selection register according to an embodiment of the present invention. The routing mode selection register is a 32-bit register, which can configure the routing modes of two target nodes, such as Figure 4 As shown, bits [7:0] represent the coordinate information of the first group of target nodes, bits [14:8] are reserved bits, bits
[15] represent the rewrite bits of the first group of target nodes, bits [23:16] represent the coordinate information of the second group of target nodes, bits [30:24] are reserved bits, and bits
[31] represent the rewrite bits of the second group of target nodes. During the routing of data packets, the register configuration module can be dynamically configured through the APB bus. If a routing module is required to have a routing target core particle with a coordinate of (x tgt ,y tgt ) is to use the Y-first then X routing algorithm for packets with a target node. Then, select any unconfigured routing selection register of the routing module and assign the [7:0] bits of the register to {xtgt,ytgt}, i.e., the corresponding target core particle coordinates. Assign the rewrite bit (i.e.,
[15] bit) to 1 to indicate that the routing algorithm should prioritize the Y-axis direction and then the X-axis direction. This design provides a high degree of flexibility, allowing customized routing configuration for different target nodes, while also ensuring effective packet routing when there is no matching target node.
[0067] In one embodiment, the register configuration module is equipped with 16 32-bit registers specifically used for selecting routing modes, which can independently configure the routing modes of 32 target nodes.
[0068] Figure 3 FIG. 4 shows a schematic diagram of an input data module according to an embodiment of the present invention. Figure 3 As shown, the input data module 300 includes a data temporary storage module 301 and a routing module 302. Figure 3 The register configuration module 303 is also shown. In one embodiment, the inter-chiplet routing module includes only one register configuration module, that is, the eight port modules share one register configuration module. In one embodiment, the register configuration module 303 may also be located inside the routing module 302, that is, each input data module includes one register configuration module.
[0069] The data temporary storage module 301 plays an important role in data communication. The data temporary storage module 301 is used to receive and temporarily store data input to the input data module. The data temporary storage module 301 can exchange data with an external module (in this embodiment, the core-to-core interface module or the routing interface module). When communicating data with an external module, the data temporary storage module 301 ensures the accuracy and reliability of data transmission through a handshake signal. At the same time, the data temporary storage module 301 also communicates data with the routing module 302. Through the handshake signal, the data temporary storage module 301 safely sends the temporarily stored data to the routing module 302. This process ensures the continuity and integrity of the data, thereby avoiding the risk of data loss or damage.
[0070] The routing module 302 is used to obtain the routing direction based on the register configuration module, the target node coordinates of the data packet, and the current node coordinates. Specifically, first, the routing module 302 extracts the target node coordinate information from the data packet from the data temporary storage module 301, and then traverses and queries the mode selection registers in the register configuration module 303 to determine whether the coordinate information of the target node matches the target node coordinates of a certain mode selection register. If it matches, it queries whether the rewrite bit corresponding to the target node coordinate bit is 1. If the rewrite bit is 1, the routing algorithm of first Y and then X is adopted. If the rewrite bit is 0, the routing algorithm of first X and then Y is adopted; if it does not match, the routing algorithm of first X and then Y is adopted.
[0071] The routing algorithms of X first then Y and Y first then X are both based on the current node’s routing module 302 comparing the target node coordinates (x tgt ,y tgt ) and the current node coordinates (x cur ,y cur ) determines the routing direction. In the X-first-then-Y routing algorithm, routing is performed according to the following steps:
[0072] Step 11: If the target node's horizontal coordinate x tgt >Current node horizontal coordinate x cur , then route eastward;
[0073] Step 12: Otherwise, route west;
[0074] Step 13: If the target node's horizontal coordinate x tgt = x of the current node cur , compare the target node ordinate and the current node ordinate. If the target node ordinate y tgt >Current node y coordinate cur , then route south;
[0075] Step 14: Otherwise, route north.
[0076] Step 15: If the target node's horizontal coordinate x tgt = x of the current node cur , the target node y coordinate tgt = Current node y coordinate cur , then the target node is reached.
[0077] Y first then X is based on X first then Y routing. When the Y first then X routing algorithm is used, the following situations will be used for north-south routing first, and the other situations will still be used for X first then Y routing:
[0078] 1. If the target node y tgt >Current node y coordinate cur , and the current node is not the southernmost routing node, then route southward;
[0079] 2. If the target node y tgt <Current node y coordinate cur , and the current node is not the northernmost routing node, then route northward;
[0080] 3. If the target node y tgt = Current node y coordinate cur , and the current node is the southernmost routing node, route northward.
[0081] The routing module 302 calculates the routing direction according to the above routing algorithm, and sends a routing request signal to the output data module of the external port module in the corresponding direction. When the output data module receives the routing request signal and returns a response signal, the routing module 302 determines that the output data module of the external port module is ready to receive data, takes the data out of the data temporary storage module 301, sends it to the data signal line, and pulls up the data valid signal as the output signal of the current input data module to send it to the corresponding output data module.
[0082] In one embodiment, all input data modules include a routing module. In another embodiment, the input data module of the local port module may not include a routing module.
[0083] Figure 5 FIG. 4 is a schematic diagram showing an output data module according to an embodiment of the present invention. Figure 5 As shown, the output data module 500 includes a flow control module 501 , a control module 502 and a data path module 503 .
[0084] The flow control module 501 is configured to interact with the input data module and the core particle interface for data exchange, and calculate whether the output data module 500 has space to receive data based on the handshake signal, and send a space available signal to the control module 502 when the output data module 500 can receive data. After receiving the space available signal, the control module 502 will further coordinate the sending and receiving of data to ensure stable data transmission. The flow control module 501 can dynamically increase the data transmission rate according to the network conditions. When the network is congested, it can slow down the data transmission speed to reduce packet loss and delay; when the network is idle, it can speed up the data transmission speed to improve transmission efficiency.
[0085] The control module 502 receives the routing request signal from the input data module and the space available signal of the flow control module. These signals contain the relevant information and instructions of the data transmission, and provide the basis for the output data module to make a decision. By analyzing these signals, the output data module can understand the information such as the demand, path and available space of the data transmission. If the output data module receives the routing request signals of multiple input data modules, the control module 502 arbitrates the received multiple routing request signals based on the principle of fixed priority, and selects a routing request for authorization. At the same time, the control module 502 sends a response signal to the corresponding input data module, indicating that the routing request is received and is ready to carry out the data transmission of the corresponding input data module. By sending the response signal, the output data module ensures the orderly transmission of data and avoids the confusion or loss of data. Finally, the control module 502 sends the authorization result to the data path selection module 503 to assist the data path selection module in determining the final data transmission path.
[0086] The data path selection module 503 is configured to receive data signals and data valid signals from the input data module, and make selections according to the authorization result of the control module 502. Specifically, the data path selection module 503 receives data signals and data valid signals from each input data module, which contain data information to be transmitted by the input data module and signals indicating data validity. Secondly, the data path selection module 503 will make selections according to the authorization signal of the control module 502 to ensure that the data signal of the input data module corresponding to the authorized routing request signal can be correctly and effectively transmitted to the output data module, and sent as its output signal to the routing interface module or the core-to-core interface module for subsequent data processing or transmission.
[0087] The control module 502 works closely with the flow control module 501 and the data path selection module 503 to ensure stable and reliable data transmission.
[0088] The following describes the inter-chiplet routing module and routing strategy of the present invention through a specific embodiment. Figure 6A schematic diagram of a routing strategy according to an embodiment of the present invention is shown. The source core particle coordinates are (0,3), and the target core particle coordinates are (3,0). When the source core particle sends a data packet to the target core particle, if it is not configured through the register configuration module, the data packet adopts the X-first-then-Y routing algorithm in all routing nodes, so the routing path of the data packet is core particle (0,3) -> inter-core particle routing module (0,3) -> inter-core particle routing module (1,3) -> inter-core particle routing module (2,3) -> inter-core particle routing module (3,3) -> inter-core particle routing module (3,2) -> inter-core particle routing module (3,1) -> inter-core particle routing module (3,0) -> core particle (3,0).
[0089] When the register configuration module is used to configure the inter-core routing module (2,3) and the inter-core routing module (2,2), for example, any one of the routing mode selection registers of the inter-core routing module (2,3) and the inter-core routing module (2,2) is configured to be rewritten to 1 when the target node coordinate is (3,0). Then the routing mode of the data packet in the inter-core routing module (2,3) and the inter-core routing module (2,2) changes from X first and then Y to Y first and then X. Therefore, the routing path of the data packet is changed to core (0,3) -> core routing module (0,3) -> core routing module (1,3) -> core routing module (2,3) -> core routing module (2,2) -> core routing module (2,1) -> core routing module (3,1) -> core routing module (3,0) -> core (3,0).
[0090] The inter-chip routing module of the present invention includes 4 ports corresponding to four directions and 8 port modules. Through these 8 ports, the chip can realize all-round and multi-channel data transmission, making the inter-chip communication more flexible and configurable under complex irregular topological structures. This has important practicality and innovation for realizing high-performance and multi-functional integrated circuit systems.
[0091] According to an embodiment of the present invention, an anti-deadlock mechanism is also provided, which implements the following measures to avoid deadlock by configuring the routing mode selection register:
[0092] When the current routing node allows packets from the south to be sent westward, all routing nodes on the lower left do not allow packets from the north to be sent eastward;
[0093] When the current routing node allows packets from the north to be sent eastward, all routing nodes on the upper right do not allow packets from the south to be sent westward.
[0094] When the current routing node allows packets from the north to be sent westward, all routing nodes on the upper left do not allow packets from the south to be sent eastward;
[0095] When the current routing node allows data packets from the south to be sent eastward, all routing nodes on the lower right do not allow data packets from the north to be sent westward.
[0096] The present invention solves the limitations of the prior art and proposes an efficient inter-chip routing module that adapts to irregular topology structures. The inter-chip routing module uses the flexibility of register configuration to adjust the inter-chip routing strategy and is equipped with a deadlock prevention mechanism to ensure that the reliability and efficiency of communication can be maintained even under complex chip layout conditions.
[0097] The inter-chiplet routing module of the present invention can be configured through registers, and dynamically adjust routing parameters, such as routing path selection, etc. according to different topological structures of the chip during operation, which improves the adaptability and flexibility of inter-chiplet communication.
[0098] In the present invention, in order to effectively cope with the challenges of irregular topology, a routing strategy combining first along the X-axis and then along the Y-axis (first X and then Y) and first along the Y-axis and then along the X-axis (first Y and then X) is adopted. This comprehensive routing method simplifies the routing decision process and optimizes the communication path according to the specific conditions of the grid layout. This flexible and efficient routing strategy not only significantly improves the data transmission efficiency, but also enhances the adaptability of the system to complex network environments. In particular, this strategy enables the inter-chip router to effectively handle eight directions of steering routing, including east to north (E->N), east to south (E->S), west to north (W->N), west to south (W->S), north to east (N->E), north to west (N->W), south to east (S->E), and south to west (S->W), thereby achieving fast and efficient inter-chip data transmission in complex chip designs.
[0099] The inter-chip routing module of the present invention has 8 port modules, each of which is equipped with an input data module and an output data module, so that data packets can be directly transmitted between port modules, effectively supporting cross-chip communication. This design allows the system to perform efficient data exchange in multiple directions, taking into account the diverse communication needs between different functional modules, and providing a flexible connection method. In order to further improve data transmission efficiency and system performance, the present invention expands a local port module into 4 local port modules to achieve cross-chip transmission, significantly improving the ability of the inter-chip routing module to process large amounts of or complex data. In addition, in order to deal with data conflicts that may be caused by adding local ports, the present invention implements multiple data paths to ensure the stability and accuracy of data transmission under high concurrency. This design not only improves communication efficiency, but also brings more possibilities for system integration, making the entire system more efficient and stable when processing complex and diverse data.
[0100] In the present invention, not only the efficiency and flexibility of inter-chiplet communication are improved, but also the stability of the system is achieved by integrating an anti-deadlock mechanism. Therefore, the present invention is not only an efficient inter-chiplet routing module, but also represents an innovative technical solution that comprehensively considers communication efficiency and system stability.
[0101] Although the present invention has been described through preferred embodiments, the present invention is not limited to the embodiments described herein but includes various changes and modifications that may be made without departing from the scope of the present invention.
Claims
1. A chip system, consisting of a plurality of interconnected chiplets, wherein: Each core particle includes an inter-core particle routing module, and each core particle is connected and communicated with an adjacent core particle through the respective inter-core particle routing modules; The inter-chiplet routing module comprises: a first port corresponding to a first direction, a second port corresponding to a second direction, a third port corresponding to a third direction, and a fourth port corresponding to a fourth direction, wherein the second direction is perpendicular to the first direction, the third direction is opposite to the first direction, and the fourth direction is opposite to the second direction; The inter-chiplet routing module includes a register configuration module for dynamically configuring a data routing mode and a data transmission path.
2. The chip system according to claim 1, wherein: The register configuration module includes a plurality of routing mode selection registers, wherein the routing mode selection registers include target node coordinates and rewrite bits corresponding to the target node coordinates, and the rewrite bits are used to determine the routing mode of the current node.
3. The chip system according to claim 2, wherein: Each port includes: An external port module, comprising: An input data module is configured to receive data packets from other inter-core routing modules in the corresponding direction, and is capable of sending data packets to the external port modules in the other three directions and the output data modules of the local port modules in the corresponding direction; The output data module is configured to receive data packets from the external port modules in the other three directions and the input data modules of the local port modules in the corresponding directions, and can send data packets to other inter-core routing modules in the corresponding directions; A local port module, comprising: An input data module is configured to receive a data packet from a current core particle and send the data packet to an output data module of an external port module in a corresponding direction; The output data module is configured to receive a data packet from the input data module of the external port module in the corresponding direction, and send the data packet to the current chiplet.
4. The chip system according to claim 3, wherein: The input data modules of the external port module and the local port module include: a data temporary storage module, used to receive and temporarily store data packets input to the input data module; and The routing module is used to obtain a routing direction based on the multiple routing mode selection registers, the target node coordinates of the data packet and the current node coordinates.
5. The chip system according to claim 2, wherein: When the target node coordinates of the data packet are the same as the target node coordinates in the routing mode selection register and the rewrite bit is 1, the routing mode of first the second direction and then the first direction is adopted; otherwise, the routing mode of first the first direction and then the second direction is adopted.
6. The chip system according to claim 5, wherein: The routing method of the first direction first and the second direction second is: If the coordinate of the target node in the first direction is greater than the coordinate of the current node in the first direction, route in the first direction; otherwise, route in the third direction; If the coordinates of the target node in the first direction are equal to the coordinates of the current node in the first direction, then compare the coordinates of the target node in the second direction with the coordinates of the current node in the second direction; if the coordinates of the target node in the second direction are greater than the coordinates of the current node in the second direction, route to the second direction; otherwise, route to the fourth direction; If the coordinates of the target node in the first direction are equal to the coordinates of the current node in the first direction, and the coordinates of the target node in the second direction are equal to the coordinates of the current node in the second direction, the target node is reached.
7. The chip system according to claim 5, wherein: The routing method of the second direction first and the first direction second is: If the coordinate of the target node in the second direction is greater than the coordinate of the current node in the second direction, and the current node is not the most edge node in the second direction, routing in the second direction; If the coordinate of the target node in the second direction is smaller than the coordinate of the current node in the second direction, and the current node is not the most edge node in the fourth direction, route in the fourth direction; If the coordinates of the target node in the second direction are equal to the coordinates of the current node in the second direction, and the current node is the most edge node in the second direction, routing in the fourth direction; In other cases, the routing method of first direction and then second direction is adopted.
8. The chip system according to claim 2, wherein: By configuring the routing mode selection register, the following can be achieved: When the current node allows the data packet from the second direction to be sent to the third direction, all nodes between the third direction and the second direction do not allow the data packet from the fourth direction to be sent to the first direction; When the current node allows the data packet from the fourth direction to be sent to the first direction, all nodes between the first direction and the fourth direction do not allow the data packet from the second direction to be sent to the third direction; When the current node allows the data packet from the fourth direction to be sent to the third direction, all nodes between the third direction and the fourth direction do not allow the data packet from the second direction to be sent to the first direction; When the current node allows the data packet from the second direction to be sent to the first direction, all routing nodes between the first direction and the second direction do not allow the data packet from the fourth direction to be sent to the third direction.
9. The chip system according to claim 3, wherein: The output data modules of the external port module and the local port module include: A flow control module, used to calculate whether the output data module has space to receive data, and output a space available signal; a control module, configured to receive a routing request signal from the input data module and the space available signal, and select a routing request for authorization; The data path selection module is used to receive the data signal and the data valid signal from the input data module, and make a selection according to the authorization result of the control module.
10. The chip system according to any one of claims 1 to 9, wherein: Each chiplet includes a routing interface module for transmitting data between the corresponding chiplet and the inter-chiplet routing module.
Citation Information
Cited By
Topological structure with interconnected core particles
CN120975019A
A core particle interconnect topology
CN120975019B
