A reconfigurable network-on-chip for a dataflow accelerator

By employing a dual-mode reconfigurable router architecture and a high-throughput HT mode in a reconfigurable on-chip network, the problem of insufficient bandwidth utilization in existing technologies is solved, achieving efficient data transmission and reduced energy consumption, and improving the acceleration performance of deep neural networks.

CN120670367BActive Publication Date: 2026-11-24SHANDONG INSPUR SCI RES INST CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510698047.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-28
Publication Date
2026-11-24
Estimated Expiration
2045-05-28

AI Technical Summary

Technical Problem

Existing reconfigurable on-chip networks do not fully integrate channel, buffer, and routing logic resources, resulting in insufficient bandwidth utilization and making it difficult to effectively accelerate communication between fully connected layers and convolutional layers in deep neural networks.

Method used

It adopts a dual-mode reconfigurable router architecture, with each router integrating four HT switches, supporting normal mode and high-throughput HT mode for standard Mesh connections. The connection direction is controlled by the mode selection signal, and in high-throughput mode, data is injected in parallel using four ports. Unused output ports are reconfigured for transmission in the same direction, forming a high-bandwidth link. It supports multi-entry parallel transmission and high-throughput HT mode to accelerate diagonal multicast.

Benefits of technology

It maximizes the utilization of bandwidth resources, improves data transmission efficiency, reduces transmission latency and energy consumption, and enhances the acceleration performance of deep neural networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120670367B_ABST
    Figure CN120670367B_ABST
Patent Text Reader

Abstract

This invention relates to the field of integrated circuit design technology, and particularly to a reconfigurable on-chip network for a dataflow accelerator. This reconfigurable on-chip network for a dataflow accelerator employs a dual-mode reconfigurable router architecture, with each router integrating four HT switches. The connection direction is controlled via mode selection signals. Simultaneously, it supports both a normal mode for standard mesh connections and a high-throughput HT mode for directed aggregation bandwidth. In high-throughput HT mode, data is injected in parallel through four ports: North (IN), South (IS), East (IE), and West (IW). To fully utilize the bandwidth of each router, unused output ports are reconfigured to transmit data in the same direction, forming high-bandwidth links. Optimizations are also performed for the FC and CONV layers. This reconfigurable on-chip network for a dataflow accelerator maximizes bandwidth resource utilization by dynamically switching router modes and redirecting unused ports, buffers, and routing logic to the target direction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of integrated circuit design technology, and in particular to a reconfigurable on-chip network for a data flow accelerator. Background Technology

[0002] In recent years, deep neural networks (DNNs) have demonstrated tremendous potential, with convolutional neural networks (CNNs) and Transformers leading the way in computer vision (CV) and natural language processing (NLP). Both architectures contain fully connected (FC) layers. Due to the large number of parameters, FC layers have high bandwidth requirements, making efficient communication crucial for accelerating them.

[0003] To accelerate various DNN algorithms, numerous DNN accelerators have been developed. Among them, NoC-based accelerators have received widespread attention. NoC enables efficient communication between multiple processing units, effectively reducing the bottleneck problems commonly found in traditional bus-based systems.

[0004] In addition, some accelerators have introduced reconfigurable networks on chip (NoC), which offer greater flexibility, support multiple data streams, and can adapt to various DNN types. However, existing reconfigurable NoCs (such as multiplanes and virtual channels) do not fully integrate channel, buffer, and routing logic resources, resulting in insufficient bandwidth utilization.

[0005] To maximize the utilization of bandwidth resources, this invention proposes a reconfigurable on-chip network for a data flow accelerator. Summary of the Invention

[0006] To overcome the shortcomings of the prior art, this invention provides a reconfigurable on-chip network for a simple and efficient data flow accelerator.

[0007] This invention is achieved through the following technical solution:

[0008] A reconfigurable on-chip network for a data stream accelerator adopts a dual-mode reconfigurable router architecture. Each router integrates four HT switches, namely N_HT, E_HT, S_HT and W_HT, which control the connection direction through mode selection signals. At the same time, it supports the normal mode of standard Mesh connection and the high-throughput HT mode of directional aggregation bandwidth.

[0009] In high-throughput HT mode, data is injected in parallel through four ports: North Port IN, South Port IS, East Port IE, and West Port IW. In order to make full use of the bandwidth of each router, unused output ports are reconfigured to transmit data in the same direction, forming a high-bandwidth link.

[0010] Optimizations are made for the FC layer (fully connected layer): weight parameters are injected in parallel through multiple entry points, and the number of nodes in a single row is set to a multiple of 4 to support four-way concurrent transmission;

[0011] Optimizations for the CONV layer (convolutional layer): For large-size ifmaps, a high-throughput HT mode is used to accelerate diagonal multicast in order to reduce transmission latency;

[0012] It supports configuration packages, control packages, and load packages. Control packages define unicast / multicast / broadcast types; configuration packages contain mode instructions, which trigger mode switching and reuse idle resources to improve throughput.

[0013] The reconfigurable on-chip network of the data flow accelerator of this invention includes an HT-NoC architecture and a router architecture;

[0014] The HT-NoC architecture adopts a two-dimensional mesh topology design and uses the XY routing algorithm and wormhole flow control, with a channel width of 32 bits. The routers in the westernmost column serve as the entry points into the on-chip network NoC. Each router has four entry connections: the north port IN, the south port IS, the east port IE, and the west port IW. The routers in the bottom row serve as the exit points.

[0015] The HT-NoC architecture supports unicast, multicast, and broadcast communication, and communication data packets are divided into three types: configuration data packets, control data packets, and payload data packets.

[0016] The configuration packet specifies the router's operating mode, and the control packet indicates the communication type (unicast, multicast, or broadcast) and the number of payload packets to be transmitted; the control packet is followed by one or more payload packets, each containing only data.

[0017] The structure of a communication data packet includes a header (Header)flit and a mode (Mode)flit. The header (Header)flit is used to specify the data packet type and communication type, while the mode (Mode)flit is used to define the mode required to configure the data packet.

[0018] When the communication type is unicast, the communication data packet also includes the X and Y coordinates of the target node of the unicast communication, represented by ADX and ADY respectively, as well as the number of payload data packets NP;

[0019] When the communication type is multicast or broadcast, the communication data packet also includes the source coordinates ASX for multicast or AS for broadcast communication, as well as the number of payload data packets NP.

[0020] In the router architecture described, each router has five ports: North, South, West, East, and Local.

[0021] Incoming data packets are first stored in the input buffer FIFO of their corresponding ingress port; then, the incoming data is processed in the routing logic block (RLB) corresponding to the ingress port, and the destination of the data packet is determined by the routing logic block (RLB); finally, the data packet is forwarded to the central cross switch and then sent to the output port.

[0022] In order to operate in a specific mode, the router first receives a configuration packet, which specifies the desired mode; after processing the packet, the router sets the mode selection signal for each switch, thereby controlling the HT switch to operate in the selected mode.

[0023] Normal mode is the default mode, in which each router is directly connected to its four neighboring routers, and the router's available output bandwidth is evenly distributed across its five output ports; the limited bandwidth of each port is compensated by data reuse, which refers to the situation where a single piece of data is used by multiple nodes, and the data is only retrieved once from the source node and then propagated to all target nodes;

[0024] High-throughput (HT) mode is designed for continuous high-bandwidth traffic patterns that maintain a consistent direction. Input data is injected into the HT-NoC through the router in the westernmost column and transmitted to the node in the east. In high-throughput HT mode, the router can process up to four packets simultaneously from the same neighboring router. Since these four packets arrive at different input ports, they are processed by four independent input buffers (FIFO) and routing logic blocks (RLB), thereby maximizing the utilization of the router's internal resources.

[0025] To map a given FC layer to an HT-NoC architecture, an output static OS dataflow model is used, where each output neuron is assigned to a specific node; the ifmap and weights required to compute a given output neuron are first sent to the corresponding node; for a given X×Y configuration of the HT-NoC architecture, the first X output neurons are mapped to the first row:

[0026] If the number of output neurons exceeds the number of nodes, only the first XY neurons will be mapped simultaneously. Neurons ranked higher than XY will wait until the initial node is released before they can be mapped onto the grid. This mechanism allows the weight packets of four consecutive nodes to be injected into the HT-NoC architecture at the same time.

[0027] The data propagation phase of the FC layer consists of three stages: ifmap propagation, weight propagation, and ofmap collection.

[0028] During the ifmap propagation phase, the input neuron is propagated to all nodes in the grid; due to the data reuse feature, this phase is executed in normal mode.

[0029] During the weight propagation phase, each node receives the weights required to compute the corresponding output neuron. Unlike the input neurons, the weights are injected from all input ports of the westernmost column of the router: North port IN, South port IS, East port IE, and West port IW. Due to the huge traffic load, this phase is executed in high-throughput HT mode because for each row, four different destination packets are injected into the HT-NoC architecture simultaneously.

[0030] During the ofmap collection phase, each node in a given column of the grid sends its output neuron to the external output port of that column; the ofmap collection phase is performed in normal mode using unicast; the number of nodes in a row of the grid is a multiple of 4, and the HT-NoC architecture is configured with 12 columns.

[0031] To map a given CONV layer, a row-stationary RS data flow model is used to map the virtual configuration onto the physical mesh.

[0032] To map this layer onto a 12×12 physical grid, the virtual configuration is divided into 12×3 blocks. Data propagation in the CONV layer follows the same phases as in the FC layer; weight propagation occurs in normal mode because weights are reused between nodes in the same row.

[0033] However, since ifmaps are not reused in the horizontal direction, their propagation uses the high-throughput HT mode.

[0034] The ofmap collection phase uses unicast and is executed in normal mode.

[0035] To improve data propagation efficiency in the HT-NoC architecture, the number of rows in the HT-NoC architecture is a multiple of 3, and it is configured with 12 columns.

[0036] The beneficial effects of this invention are: the reconfigurable on-chip network of the data flow accelerator, by dynamically switching router modes, redirects unused ports, buffers and routing logic to the target direction, thereby maximizing the utilization of bandwidth resources. Attached Figure Description

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

[0038] Appendix Figure 1 This is a schematic diagram of the HT-NoC architecture of the present invention.

[0039] Appendix Figure 2 This is a schematic diagram of the communication data packet structure of the present invention.

[0040] Appendix Figure 3 This is a schematic diagram of the router architecture of the present invention.

[0041] Appendix Figure 4 This is a schematic diagram of the router connection structure of the present invention.

[0042] Appendix Figure 5 This is a schematic diagram of the mapping method between the FC layer and the CONV layer of the present invention.

[0043] Appendix Figure 3 and attached Figure 4 The definitions of English and Chinese characters are shown in the table below:

[0044] Appendix 1 Figure 3 and attached Figure 4 Chinese and English annotations

[0045]

[0046] Detailed Implementation

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

[0048] The reconfigurable on-chip network of this data stream accelerator adopts a dual-mode reconfigurable router architecture. Each router integrates four HT switches, namely N_HT, E_HT, S_HT and W_HT, which control the connection direction through mode selection signals. At the same time, it supports the normal mode of standard Mesh connection and the high-throughput HT mode of directional aggregation bandwidth.

[0049] In high-throughput HT mode, data is injected in parallel on four ports: north port IN, south port IS, east port IE, and west port IW (e.g., full-connection FC layer weights). In order to make full use of the bandwidth of each router, unused output ports are reconfigured to transmit data in the same direction (redirecting the north and south ports to the east and west adjacent routers), forming a high-bandwidth link.

[0050] Optimizations are made for the FC layer (fully connected layer): weight parameters are injected in parallel through multiple entry points, and the number of nodes in a single row is set to a multiple of 4 to support four-way concurrent transmission;

[0051] Optimizations for the CONV layer (convolutional layer): For large-size ifmaps, a high-throughput HT mode is used to accelerate diagonal multicast in order to reduce transmission latency;

[0052] It supports configuration packages, control packages, and load packages. Configuration packages contain mode instructions, and control packages define unicast / multicast / broadcast types. Mode switching is triggered by configuration packages to reuse idle resources (such as channels and buffers) to improve throughput.

[0053] The data stream accelerator features a reconfigurable on-chip network, including HT-NoC architecture and router architecture;

[0054] The HT-NoC architecture adopts a two-dimensional mesh topology design and uses the XY routing algorithm and wormhole flow control, with a channel width of 32 bits; Figure 1 As shown, the routers in the westernmost column serve as the entry points into the on-chip network (NoC); each router has four entry connections: north port IN, south port IS, east port IE, and west port IW; the routers in the bottom row serve as the exit points.

[0055] The HT-NoC architecture supports unicast, multicast, and broadcast communication, and each router in the HT-NoC can operate in two different modes. Communication data packets are divided into three types: configuration packets, control packets, and payload packets.

[0056] The configuration packet specifies the router's operating mode, and the control packet indicates the communication type (unicast, multicast, or broadcast) and the number of payload packets to be transmitted; the control packet is followed by one or more payload packets, each containing only data.

[0057] exist Figure 2 The diagram illustrates the structure of a communication data packet, including a header (Header)flit and a mode (Mode)flit. The header (Header)flit specifies the packet type and communication type, while the mode (Mode)flit defines the mode required to configure the data packet.

[0058] When the communication type is unicast, the communication data packet also includes the X and Y coordinates of the target node of the unicast communication, represented by ADX and ADY respectively, as well as the number of payload data packets NP;

[0059] When the communication type is multicast or broadcast, the communication data packet also includes the source coordinates ASX for multicast or AS for broadcast communication, as well as the number of payload data packets NP.

[0060] like Figure 3 As shown, in the router architecture, each router has five ports: North, South, West, East, and Local.

[0061] Incoming data packets are first stored in the input buffer FIFO of their corresponding ingress port; then, the incoming data is processed in the routing logic block (RLB) corresponding to the ingress port, and the destination of the data packet is determined by the routing logic block (RLB); finally, the data packet is forwarded to the central cross switch and then sent to the output port.

[0062] To introduce dynamic flexibility, the router can operate in two modes: normal mode and high-throughput HT mode. Each router has four HT switches: N_HT, E_HT, S_HT, and W_HT. To operate in a specific mode, the router first receives a configuration packet specifying the desired mode. After processing the packet, the router sets the mode selection signal for each switch, thereby controlling the HT switch to operate in the selected mode.

[0063] Normal mode is the default mode, in which each router connects directly to its four neighboring routers, and the router's available output bandwidth is evenly distributed across its five output ports. This mode is suitable for applications that require multiple output ports by default, as well as traffic patterns with moderate bandwidth demands, where the limited bandwidth per port is compensated for by data reuse, which refers to the situation where a single piece of data is used by multiple nodes. In this case, data is only retrieved once from the source node and then propagated to all target nodes.

[0064] High-throughput (HT) mode is designed for continuous high-bandwidth traffic patterns that maintain a consistent direction, such as west-to-east, east-to-west, north-to-south, or south-to-north. A typical example is the propagation of weights in the FC layer. For the remainder of this paper, the research and results of this invention will focus on data traffic moving from west to east, as input data is injected into the HT-NoC via the router in the westernmost column and transmitted to the eastern node. However, this technique can also be adapted to other traffic directions. To fully utilize the available bandwidth of each router, unused output ports are reconfigured to transmit data in the same direction (west-to-east). Therefore, in high-throughput HT mode, a router can process up to four packets simultaneously from the same neighboring router. In contrast, in normal mode, a router can only process one packet from a given neighboring router at a time. Since these four packets arrive at different input ports, they are processed by four independent input buffers (FIFO) and routing logic blocks (RLBs), thereby maximizing the utilization of the router's internal resources. Figure 4This illustrates the router connection methods. Black arrows indicate connections used in normal mode, where router R is connected to all its neighboring routers. Blue arrows indicate connections in high-throughput (HT) mode, where R disconnects from its northern RN and southern RS neighbors, instead rerouting the northern and southern connections to connections to RW and RE. Red arrows indicate connections used in both modes.

[0065] For the westernmost entry point router, in normal mode, connections IN, IE, and IS connect to the neighboring routers RN, RE, and RS, respectively, while only IW serves as the entry point into the NoC. However, in high-throughput HT mode, IN, IS, and IE are disconnected from the neighboring routers and instead function as additional entry points, used in conjunction with IW.

[0066] To map a given FC layer to an HT-NoC architecture, an output static OS dataflow model is used, where each output neuron is assigned to a specific node; the ifmap and weights required to compute a given output neuron are first sent to the corresponding node; for a given X×Y configuration of the HT-NoC architecture, the first X output neurons are mapped to the first row:

[0067] If the number of output neurons exceeds the number of nodes, only the first XY neurons will be mapped simultaneously. Neurons ranked higher than XY will wait until the initial node is released before they can be mapped onto the grid. Figure 5 This demonstrates the process of mapping a fully connected (FC) layer with M input neurons and N output neurons to an X×Y accelerator. For clarity, the output neurons and their corresponding nodes are intentionally colored the same. In the first row, the weights of nodes 1, 5, and 9 are injected into the HT-NoC via the IN port of router 1, while the weights of nodes 2, 6, and 10 are injected via the IE port. The weights of nodes 3, 7, and 11 are injected via the IS port, and the weights of nodes 4, 8, and 12 are injected via the IW port. This mechanism allows the simultaneous injection of weight packets from four consecutive nodes into the HT-NoC architecture. The same process applies to the remaining rows.

[0068] The data propagation phase of the FC layer consists of three stages, as shown in Table 2: ifmap propagation, weight propagation, and ofmap collection. In addition to these stages, a computation phase may also be included, although no communication occurs during the computation phase because it is not managed by NoC.

[0069] Table 2 Data Propagation Stages of FC Layer and CONV Layer

[0070] stage FC layer communication types model CONV layer communication type model Ifmap propagation broadcast normal Diagonal multicast normal Weight propagation unicast HT Horizontal multicast normal calculate No communication No communication No communication No communication Ofmap collection unicast normal unicast normal

[0071] During the ifmap propagation phase, the input neuron is propagated to all nodes of the grid. Figure 5 All input neurons I1 to IM are injected through the IW port. Due to the data reuse characteristic, this stage is performed in normal mode;

[0072] During the weight propagation phase, each node receives the weights required to compute the corresponding output neuron. Unlike the input neurons, the weights are injected from all input ports of the westernmost column of the router: North port IN, South port IS, East port IE, and West port IW. Due to the huge traffic load, this phase is executed in high-throughput HT mode because for each row, four different destination packets are injected into the HT-NoC architecture simultaneously.

[0073] During the ofmap collection phase, each node in a given column of the grid sends its output neuron to the external output port of that column; the ofmap collection phase is performed using unicast in normal mode. Since four packets destined for different locations can be transmitted simultaneously, it is essential to ensure that four packets are sent to different nodes each time; otherwise, the available bandwidth will not be fully utilized. Therefore, the number of nodes in a row of the grid should be a multiple of 4, resulting in the HT-NoC architecture being configured with 12 columns.

[0074] To map a given CONV layer, a row-stationary RS dataflow model is used. Theoretically, executing a 2D CONV layer requires an O×K grid, where K is the number of rows of the filter and O is the number of columns of the ofmap. However, this virtual configuration does not necessarily correspond to the size of the physical grid. Therefore, it is necessary to map this virtual configuration onto the physical grid. For example, the first CONV layer of VGG-16 applies a 3×3 filter to a 224×224 input image, generating a 224×224 ofmap. In this case, the virtual configuration is 224×3. To map this layer onto a 12×12 physical grid, the virtual configuration is cut into 12×3 blocks. Figure 5 The diagram shows that the first yellow block (containing columns 1 to 12) is mapped to the yellow area. Subsequent blocks are mapped to columns of the same color in the physical grid. After processing the first 48 columns, the next columns are mapped to the grid and processed. This process continues until all virtual columns have been processed. Data propagation in the CONV layer follows the same phases as in the FC layer, as shown in Table 1. Weight propagation is performed in normal mode because weights are reused between nodes in the same row. However, since ifmaps are not reused in the horizontal direction, their propagation uses the high-throughput HT mode. The ofmap collection phase is performed in normal mode using unicast. In modern convolutional neural networks (CNNs), 3×3 filters are widely used due to their effectiveness in feature extraction.

[0075] To improve data propagation efficiency in the HT-NoC architecture, the number of rows in the HT-NoC architecture is a multiple of 3, and it is configured with 12 columns.

[0076] The HT-NoC architecture was synthesized using Xilinx Vivado Design Suite, targeting the AMD Versal XCVC1902 device. The performance of HT-NoC was evaluated on various FC and CONV layers summarized in Table 3, derived from existing deep neural network (DNN) models. Furthermore, the latency and dynamic power consumption of propagating input data (weights and ifmap) were analyzed. Results were obtained after post-simulation of an RTL model of HT-NoC. The results show that HT-NoC increases LUT usage by 17% and trigger usage by 4% compared to the baseline, primarily due to the addition of HT switches and logic for decoding the mode-switching configuration word.

[0077] Table 3 Benchmark Tests

[0078]

[0079] The FC layer is primarily dominated by weight parameters, which are three orders of magnitude larger than the input neuron parameters. In terms of latency, HT-NoC improves data propagation speed by 4x across all layers, attributed to the use of north, south, east, and west ports for communication. From an energy consumption perspective, HT-NoC reduces energy consumption by an average of 2.7x per FC layer.

[0080] For all CONV layers, the delay of filter propagation is the same in both NoC architectures because the HT-NoC architecture does not accelerate the transmission of filter data. However, the energy consumption of filter propagation is slightly increased in the HT-NoC architecture, which is attributed to the reconstruction mechanism. For ifmap, the HT-NoC architecture achieves a speedup of 2.35 times and an average energy saving of 2 times compared to the baseline NoC. Unlike the FC layers, the performance of the HT-NoC architecture in the CONV layers is highly dependent on the data size of each layer. For example, the latency reduction reaches 55% in CONV2, 30% in CONV5 and CONV6, and only 5% in CONV11. The energy saving reduction rate is 45% in CONV2, 18% in CONV5 and CONV6, and a slight increase of 5% in CONV11. This variation is due to the different ifmap and filter sizes in each layer. In the earlier layers, the ifmap size is much larger than the filter size. For example, CONV2, which exhibits the greatest speedup and reduced power consumption, has an ifmap size of 1,225,824 pixels and a filter size of only 36,864 pixels. In contrast, CONV11 has a filter size of 2,359,296 pixels and an ifmap size of only 100,352 pixels. These pixel counts reflect the total number of pixels in all channels of the filter and ifmap in each layer. Therefore, the performance of HT-NoC in the CONV layer is affected by the ifmap size relative to the filter size. Optimal results are obtained when the ifmap is much larger than the filter.

[0081] The embodiments described above are merely one specific implementation of the present invention. Ordinary changes and substitutions made by those skilled in the art within the scope of the technical solution of the present invention should be included within the protection scope of the present invention.

Claims

1. A reconfigurable on-chip network for a data stream accelerator, characterized in that: It adopts a dual-mode reconfigurable router architecture, with each router integrating four HT switches, namely N_HT, E_HT, S_HT and W_HT, which control the connection direction through mode selection signals; at the same time, it supports the normal mode of standard Mesh connection and the high-throughput HT mode of directional aggregation bandwidth. In high-throughput HT mode, data is injected in parallel through four ports: North Port IN, South Port IS, East Port IE, and West Port IW. In order to make full use of the bandwidth of each router, unused output ports are reconfigured to transmit data in the same direction, forming a high-bandwidth link. Optimizations for the FC layer: Weight parameters are injected in parallel through multiple entry points, and the number of nodes in a single row is set to a multiple of 4, supporting four-way concurrent transmission; Optimizations for the CONV layer: For large-size ifmaps, a high-throughput HT mode is used to accelerate diagonal multicast in order to reduce transmission latency; It supports configuration packages, control packages, and payload packages, and defines unicast / multicast / broadcast types through control packages; The configuration package contains mode instructions. By triggering mode switching through the configuration package, idle resources can be reused to improve throughput. Including HT-NoC architecture and router architecture; The HT-NoC architecture adopts a two-dimensional mesh topology design and uses the XY routing algorithm and wormhole flow control. The channel width is 32 bits. The routers in the leftmost column serve as the entry points into the on-chip network NoC. Each router has four entry connections: north port IN, south port IS, east port IE, and west port IW. The routers in the bottom row serve as the exit points. In the router architecture described, each router has five ports: North, South, West, East, and Local. Incoming data packets are first stored in the input buffer FIFO of their corresponding ingress port; then, the incoming data is processed in the routing logic block (RLB) corresponding to the ingress port, and the destination of the data packet is determined by the routing logic block (RLB); finally, the data packet is forwarded to the central cross switch and then sent to the output port. In order to operate in a user-specified mode, the router first receives a configuration packet, which specifies the desired mode. After processing the packet, the router sets the mode selection signal for each switch, thereby controlling the HT switch to operate in the selected mode.

2. The reconfigurable on-chip network of the data stream accelerator according to claim 1, characterized in that: The HT-NoC architecture supports unicast, multicast, and broadcast communication, and communication data packets are divided into three types: configuration data packets, control data packets, and payload data packets. The configuration packet specifies the router's operating mode and controls the packet type and the number of payload packets to be transmitted.

3. The reconfigurable on-chip network of the data stream accelerator according to claim 2, characterized in that: The structure of a communication data packet includes a header flit and a mode flit. The header flit is used to specify the data packet type and communication type, while the mode flit is used to define the mode required to configure the data packet. When the communication type is unicast, the communication data packet also includes the X and Y coordinates of the target node of the unicast communication, represented by ADX and ADY respectively, as well as the number of payload data packets NP; When the communication type is multicast or broadcast, the communication data packet also includes the source coordinates ASX for multicast or AS for broadcast communication, as well as the number of payload data packets NP.

4. The reconfigurable on-chip network of the data stream accelerator according to claim 1, characterized in that: Normal mode is the default mode, in which each router is directly connected to its four neighboring routers, and the router's effective output bandwidth is evenly distributed across its five output ports. The limited bandwidth of each port is compensated by data reuse, which refers to the situation where a single piece of data is used by multiple nodes. The data is only obtained once from the source node and then propagated to all target nodes. In High Throughput (HT) mode, the continuous high-bandwidth traffic pattern maintains a consistent direction, and the router can process up to four packets simultaneously from the same neighboring router. These four packets arrive at different input ports and are processed by four independent input buffers (FIFO) and routing logic blocks (RLB), thereby maximizing the utilization of the router's internal resources.

5. The reconfigurable on-chip network of the data stream accelerator according to claim 1, characterized in that: To map a given FC layer to an HT-NoC architecture, an output static OS dataflow model is used, where each output neuron is assigned to a specific node; the ifmap and weights required to compute a given output neuron are first sent to the corresponding node; for a given X×Y configuration of the HT-NoC architecture, the first X output neurons are mapped to the first row: If the number of output neurons exceeds the number of nodes, only the first X×Y neurons will be mapped simultaneously. Neurons ranked higher than X×Y will wait until the initial node is released before they can be mapped onto the grid. This mechanism allows the weighted data packets of four consecutive nodes to be injected into the HT-NoC architecture simultaneously.

6. The reconfigurable on-chip network of the data stream accelerator according to claim 5, characterized in that: The data propagation phase of the FC layer includes three stages: ifmap propagation, weight propagation, and ofmap collection. During the ifmap propagation phase, the input neuron is propagated to all nodes of the grid and executed in normal mode. During the weight propagation phase, each node receives the weights required to calculate the corresponding output neuron; Unlike the input neurons, the weights are injected from all the input ports of the router in the leftmost column: North Port IN, South Port IS, East Port IE, and West Port IW. Due to the huge traffic load, this stage is executed in high-throughput HT mode, because for each row, four different destination packets are injected into the HT-NoC architecture simultaneously. During the ofmap collection phase, each node in a given column of the grid sends its output neuron to the external output port of the corresponding column; the ofmap collection phase is performed using unicast in normal mode; the number of nodes in a row of the grid is a multiple of 4, and the HT-NoC architecture is configured with 12 columns.

7. The reconfigurable on-chip network of the data stream accelerator according to claim 1, characterized in that: To map a given CONV layer, a row-stationary RS data flow model is used to map the virtual configuration onto the physical mesh; CONV's data propagation phase consists of three stages: ifmap propagation, weight propagation, and ofmap collection. Since ifmap is not reused in the horizontal direction, the high-throughput HT mode is used during the ifmap propagation phase. Because weights are reused among nodes in the same row, weight propagation occurs in normal mode. The ofmap collection phase uses unicast and is executed in normal mode. To improve data propagation efficiency in the HT-NoC architecture, the number of rows in the HT-NoC architecture is a multiple of 3, and it is configured with 12 columns.

Citation Information

Patent Citations

  • Transmission method of deep neural network accelerator based on network-on-chip

    CN116383126A