On-chip network dynamic credit management apparatus, system and method

By using an on-chip network dynamic credit management device, credit allocation is dynamically managed, solving the problems of slow and uneven credit allocation speed, improving the communication efficiency and scheduling latency of the on-chip network, and adapting to various network topologies.

CN123164079APending Publication Date: 2026-11-24SHANGHAI HIGH-PERFORMANCE INTEGRATED CIRCUIT DESIGN CENT
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611291642.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-25
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In existing on-chip networks, slow and uneven credit allocation leads to a decline in network transmission performance. Centralized credit management schemes are difficult to meet the requirements of high-speed communication, while distributed starvation sorting schemes have high scheduling latency.

Method used

An on-chip network dynamic credit management device is adopted, including a credit management module, an input credit slot and an output credit slot. Credit allocation is dynamically managed through a credit application unit and a credit release unit, and credit allocation is optimized by using a credit application record table and a release record table.

Benefits of technology

It improves on-chip network communication efficiency, shortens scheduling latency, ensures the balance and efficiency of credit allocation, and adapts to different network topologies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123164079A_ABST
    Figure CN123164079A_ABST
Patent Text Reader

Abstract

The embodiment of the application discloses a kind of on-chip network dynamic credit management device, system and method, the device includes: credit management module, input credit slot and output credit slot;Wherein, credit management module includes credit application unit, credit release unit, credit application record table and credit release record table;Credit application unit is used to obtain credit application value from credit application record table, obtains the first target type credit amount remaining in input credit slot, and according to credit application value and the first target type credit amount, credit is applied for to current on-chip network node;Credit release unit is used to obtain credit release value from credit release record table, obtains the second target type credit amount remaining in input credit slot, and according to credit release value and the second target type credit amount, it is determined whether to execute credit release operation to current on-chip network node, improves on-chip network communication efficiency, shortens on-chip network scheduling delay.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of on-chip network technology, and in particular to an on-chip network dynamic credit management device, system and method. Background Technology

[0002] With the increasing integration of system-on-chips (SoCs) and the rapid development of on-chip multi-core systems, higher demands are being placed on on-chip communication. On-chip network technology has been widely used as a communication solution for data transmission between internal intellectual property cores and inter-cores.

[0003] In on-chip networks, multiple source nodes share a receive buffer when transmitting messages to the same destination node. The industry commonly employs a dynamic credit mechanism to optimize buffer utilization: each source node in the shared buffer is allocated initial credits, the total credits equal to the number of buffer entries, and the initial credits of each source node are roughly equal. Source nodes consume credits when sending messages, and the destination node releases credits after processing the message.

[0004] Currently, because slow credit allocation and uneven distribution can significantly reduce network transmission performance, centralized credit management schemes or distributed starvation sorting schemes are often adopted to quickly and relatively fairly allocate the credit of the target node to each source node.

[0005] However, centralized credit management schemes require all nodes on the on-chip network to send credit request or credit release messages to the centralized credit control component. The centralized control component processes these messages through arbitration or queuing. Therefore, as the chip size increases, the global routing complexity and credit request latency rise simultaneously, failing to meet high-speed communication requirements. Secondly, the distributed starvation sorting scheme specifically sets up a credit starvation sorting device for each node, sorting source nodes according to the order in which credit gaps are generated, prioritizing credit allocation to source nodes with earlier credit gaps. Therefore, this scheme only triggers scheduling after a node's credit is insufficient, resulting in high scheduling latency. Summary of the Invention

[0006] This invention provides an on-chip network dynamic credit management device, method, equipment, and medium, which improves on-chip network communication efficiency and shortens on-chip network scheduling latency.

[0007] In a first aspect, an on-chip network dynamic credit management device is provided, comprising: a credit management module, an input credit slot, and an output credit slot; The credit management module includes a credit application unit, a credit release unit, a credit application record table, and a credit release record table. Both the input credit slot and the output credit slot include a credit type and multiple node credit counters. The credit application unit is used to obtain the credit application value of the first target type credit to be applied for from the credit application record table, obtain the remaining first target type credit in the target node from the input credit slot, and apply for credit for the current on-chip network node according to the credit application value and the first target type credit. The credit release unit is used to obtain the credit release value of the second target type credit to be released in the current on-chip network node from the credit release record table, obtain the remaining amount of the second target type credit in the current on-chip network node from the input credit slot, and determine whether to perform a credit release operation on the current on-chip network node based on the credit release value and the amount of the second target type credit.

[0008] Optionally, the credit application unit is specifically used to: determine whether the credit application value and the credit amount of the first target type are both greater than or equal to 1; if so, the credit application value is reduced by 1, and the current on-chip network node applies for 1 credit.

[0009] Optionally, the credit release unit is specifically used to: perform an addition operation on the credit release value and the credit amount of the second target type to obtain the total credit amount corresponding to the second target type credit; obtain the total number of source nodes corresponding to the current on-chip network node, and determine whether to perform a credit release operation on the current on-chip network node based on the total credit amount and the total number of source nodes.

[0010] Optionally, the credit release unit is specifically used to: determine whether the total credit amount is greater than or equal to the total number of source nodes; if yes, then perform a credit release operation on the current on-chip network node; if no, then do not perform a credit release operation on the current on-chip network node.

[0011] Optionally, the credit application unit is also used to set the amount of credit of the specified type corresponding to the specified type credit in the input credit slot to the total target node number minus one when a credit application operation and a credit release operation are initiated simultaneously for a specified type of credit, and both the credit application operation and the credit release operation are executed successfully.

[0012] Optionally, the credit management module also includes an information update unit; the information update unit is used to obtain the credit application result and credit release result corresponding to each credit under the current on-chip network node in the current clock cycle; based on the credit application result and credit release result corresponding to each credit, update the remaining credit amount corresponding to each credit in the input credit slot to obtain the updated credit amount corresponding to each credit; and place each updated credit amount into the output credit slot in the next clock cycle closest to the current clock cycle.

[0013] Secondly, an on-chip network dynamic credit management system is provided, comprising: multiple on-chip network nodes, and each on-chip network node is configured with an on-chip network dynamic credit management device according to any embodiment of the present invention.

[0014] Thirdly, a method for dynamic credit management in a network-on-chip is provided, which is executed by a credit management module in a dynamic credit management system for a network-on-chip according to any embodiment of the present invention, and the method includes: Retrieve the credit application value of the first target type credit to be applied for from the credit application record table, retrieve the remaining first target type credit in the target node from the input credit slot, and apply for credit for the current on-chip network node based on the credit application value and the first target type credit. Retrieve the credit release value of the second target type credit to be released for the current on-chip network node from the credit release record table, retrieve the remaining amount of the second target type credit in the current on-chip network node from the input credit slot, and determine whether to perform a credit release operation on the current on-chip network node based on the credit release value and the amount of the second target type credit.

[0015] Optionally, credit is applied for for the current on-chip network node based on the credit application value and the credit amount of the first target type, including: determining whether the credit application value and the credit amount of the first target type are both greater than or equal to 1; if so, the credit application value is reduced by 1, and the current on-chip network node applies for 1 credit.

[0016] Optionally, based on the credit release value and the credit amount of the second target type, determine whether to perform a credit release operation on the current on-chip network node, including: performing an addition operation on the credit release value and the credit amount of the second target type to obtain the total credit amount corresponding to the second target type credit; obtaining the total number of source nodes corresponding to the current on-chip network node, and determining whether to perform a credit release operation on the current on-chip network node based on the total credit amount and the total number of source nodes.

[0017] The present invention provides a dynamic credit management device for on-chip networks, comprising: a credit management module, an input credit slot, and an output credit slot; wherein, the credit management module includes a credit application unit, a credit release unit, a credit application record table, and a credit release record table; the credit application unit is used to obtain the credit application value of a first target type of credit to be applied for from the credit application record table, obtain the remaining first target type of credit in the target node from the input credit slot, and apply for credit for the current on-chip network node according to the credit application value and the first target type of credit; the credit release unit is used to obtain the credit release value of a second target type of credit to be released by the current on-chip network node from the credit release record table, obtain the remaining second target type of credit in the current on-chip network node from the input credit slot, and determine whether to perform a credit release operation on the current on-chip network node according to the credit release value and the second target type of credit. This solves the problems that centralized credit management schemes cannot meet high-speed communication requirements and distributed starvation sorting schemes have high scheduling latency, improves on-chip network communication efficiency, and shortens on-chip network scheduling latency.

[0018] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0019] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1 This is a schematic diagram of the structure of an on-chip network dynamic credit management device according to Embodiment 1 of the present invention; Figure 2 This is a schematic diagram of another on-chip network dynamic credit management device provided in Embodiment 2 of the present invention; Figure 3 This is a schematic diagram of a credit slot configuration table provided according to Embodiment 2 of the present invention; Figure 4 This is a schematic diagram of the structure of an on-chip network dynamic credit management system according to Embodiment 3 of the present invention; Figure 5 This is a flowchart of a dynamic credit management method for on-chip networks provided in Embodiment 4 of the present invention. Detailed Implementation

[0021] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0022] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0023] Example 1 Figure 1 This is a schematic diagram of a dynamic credit management device for on-chip networks according to Embodiment 1 of the present invention. This embodiment is applicable to situations where credit in an on-chip network is dynamically managed.

[0024] like Figure 1 As shown in the figure, the on-chip network dynamic credit management device disclosed in this embodiment includes: a credit management module 11, an input credit slot 12 and an output credit slot 13.

[0025] The credit management module 11 includes a credit application unit 101, a credit release unit 102, a credit application record table 103, and a credit release record table 104. Both the input credit slot 12 and the output credit slot 13 include a credit type and multiple node credit counters. In each clock cycle, the information in the input credit slot 12 is calculated by the credit management module 11, and the updated information is transmitted to the output credit slot 13. The information in the output credit slot 13 is then transmitted along the credit ring network direction to the input credit slots 12 of downstream nodes. It is worth noting that since each on-chip network node is equipped with an on-chip network dynamic credit management device, the credit ring network can be understood as a ring transmission link formed by the sequentially connected series of the input credit slots 12 and output credit slots 13 of each on-chip network dynamic credit management device.

[0026] In this embodiment, the credit application unit 101 is used to obtain the credit application value of the first target type credit to be applied for from the credit application record table 103, obtain the remaining first target type credit in the target node from the input credit slot 12, and apply for credit for the current on-chip network node according to the credit application value and the first target type credit.

[0027] Among them, the credit application record table 103 includes a first preset number of credit application counters, which are used to record the amount of credit applications of the current on-chip network node to the first preset number of target nodes for the first preset number of credit categories.

[0028] In one specific implementation, a credit application counter corresponding to the target node can be obtained from the credit application record table 103, and the credit application value of the first target type credit to be applied for from the credit application counter can be obtained. Simultaneously, the remaining first target type credit amount within the target node can be obtained from the input credit slot 12. Then, when both the credit application value and the first target type credit amount are greater than or equal to 1, the credit application value can be decremented by 1, thus applying for 1 credit for the current on-chip network node.

[0029] The credit release unit 102 is used to obtain the credit release value of the second target type credit to be released in the current on-chip network node from the credit release record table 104, obtain the remaining amount of the second target type credit in the current on-chip network node from the input credit slot 12, and determine whether to perform a credit release operation on the current on-chip network node based on the credit release value and the amount of the second target type credit.

[0030] The credit release record table 104 includes credit release counters corresponding to various types of credits to be released within the current on-chip network node. The initial value of the idle credit release counter is equal to the total number of entries in the receive buffer; the value of the idle credit release counter is decremented by one for each credit placed into the credit ring network; and the value of the idle credit release counter is incremented by one for each credit release signal received.

[0031] In one specific implementation, a credit release counter corresponding to the second target type of credit can be obtained from the credit release record table 104, and a credit release value corresponding to the second target type of credit can be obtained from the credit release counter. Simultaneously, the remaining amount of the second target type of credit within the current on-chip network node is obtained from the input credit slot 12. Then, the credit release value and the second target type of credit can be added together to obtain the total credit amount corresponding to the second target type of credit, and based on this total credit amount, it can be determined whether to perform a credit release operation on the current on-chip network node.

[0032] The technical solution of this invention provides an on-chip network dynamic credit management device, including: a credit management module, multiple input credit slots, and multiple output credit slots; wherein, the credit management module includes a credit application unit, a credit release unit, a credit application record table, and a credit release record table, and the input credit slots and output credit slots each include a credit type and multiple node credit counters; the credit application unit is used to obtain the credit application value of the first target type credit to be applied for from the credit application record table, obtain the remaining first target type credit in the target node from the input credit slots, and apply for credit for the current on-chip network node according to the credit application value and the first target type credit; the credit release unit is used to obtain the credit release value of the second target type credit to be released by the current on-chip network node from the credit release record table, obtain the remaining second target type credit in the current on-chip network node from the input credit slots, and determine whether to perform a credit release operation on the current on-chip network node according to the credit release value and the second target type credit. This solves the problems that centralized credit management schemes cannot meet the requirements of high-speed communication and distributed starvation sorting schemes have high scheduling latency, improves on-chip network communication efficiency, and shortens on-chip network scheduling latency.

[0033] Example 2 Figure 2 This is a schematic diagram of another on-chip network dynamic credit management device according to Embodiment 2 of the present invention. This embodiment is a further refinement of the above technical solution, and the technical solution in this embodiment can be combined with various optional solutions in one or more of the above embodiments.

[0034] like Figure 2 As shown in the figure, the on-chip network dynamic credit management device disclosed in this embodiment includes: a credit management module 11, a message sending module 14, a message receiving module 15, an input credit slot 12 and an output credit slot 13.

[0035] The credit management module 11 includes a credit application unit 101, a credit release unit 102, a credit application record table 103, and a credit release record table 104. For example... Figure 3 As shown, both the input credit slot 12 and the output credit slot 13 include a credit type and multiple node credit counters.

[0036] In this embodiment, the credit application unit 101 is specifically used to: obtain the credit application value of the first target type credit to be applied for from the credit application record table 103, obtain the remaining first target type credit in the target node from the input credit slot 12; determine whether the credit application value and the first target type credit are both greater than or equal to 1; if so, decrement the credit application value by 1, and the current on-chip network node applies for 1 credit.

[0037] Specifically, upon receiving a credit application message from the message sending module 14 within this node, the message can be parsed to obtain the target node and the first target type credit to be applied for from the target node. Then, the credit application counter corresponding to the target node and the first target type credit can be retrieved from the credit application record table 103, and its count value is incremented by 1 to obtain the credit application value for the first target type credit to be applied for from the target node. Simultaneously, the target input credit slot corresponding to the first target type credit can be retrieved from each input credit slot 12 within this node, the node credit counter corresponding to the target node can be retrieved from the target input credit slot, and the remaining first target type credit amount within the target node can be retrieved from the node credit counter. Then, if both the credit application value and the first target type credit amount are greater than or equal to 1, the credit application value is decremented by 1, and 1 first target type credit is taken from the target input credit slot.

[0038] It is worth noting that, firstly, to ensure a balanced allocation of dynamic credits in the on-chip network, the credit application unit 101 simultaneously operates on a first preset number of credit application counters, allowing it to simultaneously take credits from a maximum of a first preset number of target nodes, return a first preset number of credit confirmation messages to the message sending module 14, and decrement the successful credit application counter and the count value in the input credit slot 12 by 1. Secondly, the idle credit application counter is reset to an initial value equal to the total number of entries in the receive buffer; for each credit application message received from the message sending module 14, the idle credit application counter value is incremented by 1; for each credit obtained from the credit ring network and transmitted to the message sending module 14, the idle credit application counter value is decremented by 1.

[0039] In this embodiment, the credit release unit 102 is specifically used to: obtain the credit release value of the second target type credit to be released by the current on-chip network node from the credit release record table 104; obtain the remaining amount of the second target type credit in the current on-chip network node from the input credit slot 12; perform an addition operation on the credit release value and the second target type credit to obtain the total amount of credit corresponding to the second target type credit; obtain the total number of source nodes corresponding to the current on-chip network node; and determine whether to perform a credit release operation on the current on-chip network node based on the total amount of credit and the total number of source nodes.

[0040] Specifically, when a credit release message is received through the message receiving module 15 within this node, the message is parsed to obtain the second target type credit to be released by the current on-chip network node. Then, the credit release counter corresponding to the second target type credit can be retrieved from the credit release record table 104, and its count value is incremented by 1 to obtain the credit release value of the second target type credit to be released by the current on-chip network node. Simultaneously, the remaining amount of second target type credit within the current on-chip network node can be obtained from the input credit slot 12. Then, the credit release value and the second target type credit amount can be added to obtain the total credit amount corresponding to the second target type credit, and the total number of source nodes corresponding to the current on-chip network node can be obtained. Finally, if the total credit amount is greater than or equal to the total number of source nodes, a credit release operation is performed on the current on-chip network node, and the second target type credit amount is set to the total number of source nodes, while the credit release value is set to the difference between the total credit amount and the total number of source nodes. If the total credit amount is less than the total number of source nodes, a credit release operation is not performed on the current on-chip network node.

[0041] It is important to note that, to avoid the sum of the credit release value and the second target type credit amount always being less than the total number of source nodes sharing the local node's receive buffer, The initial credit value of the receive buffer cannot be less than .in, Indicating the first in the credit ring network The number of credit slots in the credit category. Indicates the pre-application number of each node The number of credit categories. For example, suppose... Each credit slot has its own credit. Each node pre-application If a credit is not used, the credit release count value will be at least [value missing]. Only then can a credit release operation be successfully initiated. In actual design, the initial credit value should be set higher to avoid message transmission interruption due to insufficient credit.

[0042] The advantage of this setup is that by allowing credit release only when the total credit amount is greater than or equal to the total number of source nodes, and ensuring that each node can only take a maximum of one credit from each credit counter in each credit slot per cycle, it avoids the nearest downstream node from preempting most of the node's credits due to location differences (for example, in a dynamic credit ring network, if the first and second adjacent nodes are downstream of the first node, the available credits in the first node's receive buffer always flow to the second node first before being transmitted to other downstream nodes. If the second node has a large number of messages to send to the first node, the second node will preempt most of the first node's credits). This ensures that each node has a chance to obtain one credit from the total credit amount after completing one cycle in the credit ring network, greatly reducing the problem of uneven credit distribution caused by differences in node location, and achieving dynamic balanced credit distribution in the on-chip network.

[0043] Optionally, the credit application unit 101 is also used to set the amount of credit of the set type corresponding to the set type credit in the input credit slot 12 to the total target node number minus one when a credit application operation and a credit release operation are initiated simultaneously for a set type credit, and both the credit application operation and the credit release operation are successfully executed.

[0044] Optionally, the on-chip network dynamic credit management device may also include an information update unit. The information update unit is used to, in the current clock cycle, acquire the credit application result and credit release result corresponding to each credit under the current on-chip network node; based on the credit application result and credit release result corresponding to each credit, update the remaining credit amount corresponding to each credit in the input credit slot 12 to obtain the updated credit amount corresponding to each credit; in the next clock cycle closest to the current clock cycle, place each updated credit amount into the output credit slot 13 to improve the credit amount update efficiency.

[0045] The technical solution of this embodiment requests credit for the current on-chip network node only when both the credit request value and the credit amount of the first target type are greater than or equal to 1; and performs a credit release operation on the current on-chip network node only when the total credit amount is greater than the total number of source nodes. When a credit request operation and a credit release operation are initiated simultaneously for a set type of credit, and both operations are successfully executed, the credit amount of the set type corresponding to the set type of credit is set to the total number of target nodes minus one. This ensures that a node can always obtain credit fairly regardless of its location in the network, avoiding the uneven credit distribution caused by the differences in the location of each node in the on-chip network, thus enabling the on-chip network to operate more efficiently. Secondly, since the on-chip network dynamic credit management device uses only a small number of registers to implement the credit counter, and the related control logic is also very simple; the credit balancing allocation device connecting all nodes adopts a ring network structure with fewer connections, the technical solution of this embodiment reduces hardware overhead and lowers the physical implementation difficulty.

[0046] Example 3 Figure 4 This is a schematic diagram of a dynamic credit management system for a network-on-a-chip according to Embodiment 3 of the present invention. This embodiment is applicable to situations where credit is dynamically managed in a network-on-a-chip.

[0047] like Figure 4 As shown, this embodiment discloses an on-chip network dynamic credit management system, which includes: multiple on-chip network nodes, and each on-chip network node is equipped with an on-chip network dynamic credit management device according to any embodiment of the present invention.

[0048] The on-chip network dynamic credit management device includes: a credit management module, a message communication module, an input credit slot, and an output credit slot. The credit management module includes a credit application unit, a credit release unit, a credit application record table, a credit release record table, and a credit update unit; the message communication module includes a message sending module and a message receiving module; both the input and output credit slots include a credit type and multiple node credit counters.

[0049] In one specific implementation, when the credit application unit receives a credit application message sent by the message sending module, it can obtain the credit application value of the first target type credit to be applied for from the credit application record table, obtain the remaining first target type credit in the target node from the input credit slot, and apply for 1 credit for the current on-chip network node only when both the credit application value and the first target type credit are greater than or equal to 1.

[0050] When a credit release message is sent via the message receiving module, the credit release unit retrieves the credit release value of the second target type credit to be released for the current on-chip network node from the credit release record table, retrieves the remaining amount of the second target type credit in the current on-chip network node from the input credit slot, and determines whether to perform a credit release operation on the current on-chip network node based on the credit release value and the amount of the second target type credit.

[0051] Optionally, based on the credit release value and the credit amount of the second target type, determine whether to perform a credit release operation on the current on-chip network node, including: performing an addition operation on the credit release value and the credit amount of the second target type to obtain the total credit amount corresponding to the second target type credit; obtaining the total number of source nodes corresponding to the current on-chip network node, and determining whether to perform a credit release operation on the current on-chip network node based on the total credit amount and the total number of source nodes.

[0052] Optionally, the on-chip network dynamic credit management device may also include an information update unit. Specifically, the information update unit can obtain the credit application result and credit release result corresponding to each credit under the current on-chip network node in the current clock cycle; based on the credit application result and credit release result corresponding to each credit, update the remaining credit amount corresponding to each credit in the input credit slot to obtain the updated credit amount corresponding to each credit; in the next clock cycle closest to the current clock cycle, place each updated credit amount into the output credit slot.

[0053] Optionally, the on-chip network dynamic credit management system may also include several relay credit slots. These relay credit slots can be connected in series with the input and output credit slots of each on-chip network dynamic credit management device to form a credit ring network. This credit ring network is used to transmit dynamic credit messages from the receive buffers of each on-chip network node. It is worth noting that initially, idle credits are centrally registered in the credit release record tables of each on-chip network dynamic credit management device. After the credit ring network initialization is complete and the system starts running, idle credits are distributed across the credit release counters, input credit slots, output credit slots, and relay credit slots. Credits currently in use are used to transmit messages that are not read from the target receive buffer; the sum of idle credits and currently used credits always equals the number of receive buffer entries.

[0054] The technical solution of this invention, by configuring an on-chip network dynamic credit management device on each on-chip network node, ensures that each node receives credit fairly regardless of its location within the network, avoiding uneven credit distribution caused by differences in the location of nodes within the on-chip network, thus enabling more efficient operation of the on-chip network. Secondly, by setting the credit ring network to be independent of the on-chip network structure, it can be compatible with various network topologies such as rings, meshes, and tori, thereby improving adaptability to various network topologies. Finally, by expanding the on-chip network nodes, only the on-chip network dynamic credit management device and its corresponding credit counter need to be added, improving the system's scalability.

[0055] Example 4 Figure 5 This is a flowchart of a dynamic credit management method for on-chip networks according to Embodiment 4 of the present invention. This embodiment is a further refinement of the above technical solution. The technical solution in this embodiment can be combined with various optional solutions in one or more of the above embodiments.

[0056] like Figure 5 As shown, this embodiment discloses an on-chip network dynamic credit management method, which is executed by the credit management module in the on-chip network dynamic credit management system of any embodiment of the present invention. The method includes: S110. Obtain the credit application value of the first target type credit to be applied for from the credit application record table, obtain the remaining first target type credit in the target node from the input credit slot, and apply for credit for the current on-chip network node according to the credit application value and the first target type credit.

[0057] Specifically, this step determines whether both the credit application value and the credit amount of the first target type are greater than or equal to 1. If so, the credit application value is reduced by 1, and the current on-chip network node obtains 1 credit. If not, no credit is applied for for the current on-chip network node.

[0058] S120. Obtain the credit release value of the second target type credit to be released for the current on-chip network node from the credit release record table, obtain the remaining amount of the second target type credit in the current on-chip network node from the input credit slot, and determine whether to perform a credit release operation on the current on-chip network node based on the credit release value and the amount of the second target type credit.

[0059] Specifically, in this step, the credit release value and the credit amount of the second target type can be added together to obtain the total credit amount corresponding to the second target type, and the total number of source nodes corresponding to the current on-chip network node can be obtained. Then, it can be determined whether the total credit amount is greater than or equal to the total number of source nodes; if so, a credit release operation is performed on the current on-chip network node; if not, no credit release operation is performed on the current on-chip network node.

[0060] Optionally, the method further includes: when a credit application operation and a credit release operation are initiated simultaneously for a set type of credit, and both the credit application operation and the credit release operation are successfully executed, the amount of set type credit corresponding to the set type credit is set to the total target node number minus one in the input credit slot.

[0061] Optionally, the method further includes: in the current clock cycle, obtaining the credit application result and credit release result corresponding to each credit under the current on-chip network node; updating the remaining credit amount corresponding to each credit in the input credit slot according to the credit application result and credit release result corresponding to each credit, to obtain the updated credit amount corresponding to each credit; and placing each updated credit amount into the output credit slot in the next clock cycle closest to the current clock cycle.

[0062] The technical solution of this embodiment solves the problems of centralized credit management schemes failing to meet high-speed communication requirements and distributed starvation sorting schemes having high scheduling latency by obtaining the credit application value of the first target type credit to be applied for from the credit application record table, obtaining the remaining first target type credit amount in the target node from the input credit slot, and applying for credit for the current on-chip network node based on the credit application value and the first target type credit amount; obtaining the credit release value of the second target type credit to be released from the credit release record table, obtaining the remaining second target type credit amount in the current on-chip network node from the input credit slot, and determining whether to perform a credit release operation on the current on-chip network node based on the credit release value and the second target type credit amount. This improves the on-chip network communication efficiency and shortens the on-chip network scheduling latency.

[0063] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0064] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A network-on-chip dynamic credit management device, characterized in that, include: Credit management module, input credit slots, and output credit slots; The credit management module includes a credit application unit, a credit release unit, a credit application record table, and a credit release record table. The input credit slot and the output credit slot each include a credit type and multiple node credit counters. The credit application unit is used to obtain the credit application value of the first target type credit to be applied for from the credit application record table, obtain the remaining first target type credit in the target node from the input credit slot, and apply for credit for the current on-chip network node according to the credit application value and the first target type credit. The credit release unit is used to obtain the credit release value of the second target type credit to be released for the current on-chip network node from the credit release record table, obtain the remaining amount of the second target type credit in the current on-chip network node from the input credit slot, and determine whether to perform a credit release operation on the current on-chip network node based on the credit release value and the amount of the second target type credit.

2. The on-chip network dynamic credit management device according to claim 1, characterized in that, The credit application unit is specifically used for: Determine whether both the credit application value and the credit amount of the first target type are greater than or equal to 1; If so, the credit application value is reduced by 1, and the current on-chip network node has applied for 1 credit.

3. The on-chip network dynamic credit management device according to claim 1, characterized in that, The credit release unit is specifically used for: The credit release value and the credit amount of the second target type are added together to obtain the total credit amount corresponding to the second target type credit. Obtain the total number of source nodes corresponding to the current on-chip network node, and determine whether to perform a credit release operation on the current on-chip network node based on the total credit and the total number of source nodes.

4. The on-chip network dynamic credit management device according to claim 3, characterized in that, The credit release unit is specifically used for: Determine whether the total credit amount is greater than or equal to the total number of source nodes; If so, then perform a credit release operation on the current on-chip network node; If not, then the credit release operation will not be performed on the current on-chip network node.

5. The on-chip network dynamic credit management device according to claim 1, characterized in that, The credit application unit is further configured to, when simultaneously initiating a credit application operation and a credit release operation for a set type of credit, and both the credit application operation and the credit release operation are successfully executed, set the amount of the set type of credit corresponding to the set type of credit in the input credit slot to the total target node number minus one.

6. The on-chip network dynamic credit management device according to claim 1, characterized in that, The credit management module also includes an information update unit; The information update unit is used to obtain, in the current clock cycle, the credit application result and credit release result corresponding to each credit under the current on-chip network node; Based on the credit application result and credit release result corresponding to each credit, the remaining credit amount corresponding to each credit is updated in the input credit slot to obtain the updated credit amount corresponding to each credit. In the next clock cycle closest to the current clock cycle, each of the updated credits is placed into the output credit slot.

7. A dynamic credit management system for on-chip networks, characterized in that, include: Multiple on-chip network nodes, and each on-chip network node is equipped with an on-chip network dynamic credit management device as described in any one of claims 1 to 6.

8. A method for dynamic credit management on a network-on-chip, characterized in that, The on-chip network dynamic credit management method is executed by the credit management module in the on-chip network dynamic credit management system of claim 7, and the method includes: Obtain the credit application value of the first target type credit to be applied for from the credit application record table, obtain the remaining first target type credit in the target node from the input credit slot, and apply for credit for the current on-chip network node according to the credit application value and the first target type credit. Obtain the credit release value of the second target type credit to be released for the current on-chip network node from the credit release record table, obtain the remaining amount of the second target type credit in the current on-chip network node from the input credit slot, and determine whether to perform a credit release operation on the current on-chip network node based on the credit release value and the amount of the second target type credit.

9. The on-chip network dynamic credit management method according to claim 8, characterized in that, Based on the credit application value and the credit amount of the first target type, apply for credit for the current on-chip network node, including: Determine whether both the credit application value and the credit amount of the first target type are greater than or equal to 1; If so, the credit application value is reduced by 1, and the current on-chip network node has applied for 1 credit.

10. The on-chip network dynamic credit management method according to claim 8, characterized in that, Based on the credit release value and the second target type credit amount, determine whether to perform a credit release operation on the current on-chip network node, including: The credit release value and the credit amount of the second target type are added together to obtain the total credit amount corresponding to the second target type credit. Obtain the total number of source nodes corresponding to the current on-chip network node, and determine whether to perform a credit release operation on the current on-chip network node based on the total credit and the total number of source nodes.