A packet network that enables sequential packet forwarding without dropping packets.
The computing device with adaptive packet flow control in routers ensures sequential packet forwarding without drops, addressing inefficiencies in neural network processors by reconfiguring topology and managing packet flow, thus enhancing processing efficiency and reducing costs.
Patent Information
- Application Number
- JP2026528092
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-11-08
- Filing Date
- 2024-10-31
- Publication Date
- 2026-11-27
AI Technical Summary
Existing packet networks in neural network processors face challenges in ensuring sequential packet forwarding without dropping packets, particularly in deep learning computations where buffer backpressure and variable delays occur, leading to inefficiencies and increased costs.
A computing device with a fetch unit and routers that include data processing mapping tables and a fetch network controller to reconfigure topology, allowing for adaptive control of packet flow and blocking, reflection, and output based on node IDs, ensuring sequential packet forwarding.
Ensures sequential packet forwarding without dropping packets, even in the presence of buffer backpressure or variable delays, while reducing costs and improving processing efficiency.
Smart Images

Figure 2026540074000001_ABST
Abstract
Description
[Technical Field]
[0001] The present invention relates to a neural network processor, and more particularly, to a network for transferring packets. [Background Art]
[0002] This application claims priority based on Korean Patent Application No. 10-2023-0154008 filed with the Republic of Korea on November 08, 2023, and all contents disclosed in the specification and drawings of the corresponding application are incorporated herein by reference.
[0003] An Artificial Neural Network (ANN) is an artificial intelligence realized by connecting artificial neurons, which are mathematical models of neurons constituting the human brain, to each other. One mathematical model for an artificial neuron is as shown in Equation (1) below.
[0004] Specifically, an artificial neuron receives an input signal x i , multiplies each x i by a corresponding weight w i to obtain a sum. Next, the corresponding artificial neuron obtains an activation value using an activation function, and transmits this activation value to the next connected artificial neuron.
[0005] y=f(w1*x1+w2*x2+....w n *x n )=f(Σw i *x i ), where i=1......n, n=#input signal - Equation (1)
[0006] A deep neural network (DNN), a form of ANN, has a layered network architecture in which artificial neurons (nodes) are arranged in layers. A DNN consists of an input layer, an output layer, and numerous hidden layers between the input and output layers.
[0007] The input layer consists of numerous nodes to which input values are received. The nodes in the input layer transmit the output values calculated via the mathematical model described above to the nodes of the next hidden layer connected to the input layer. The nodes in the hidden layer receive the input values via the mathematical model described above, calculate the output values, and transmit the output values to the nodes of the output layer.
[0008] The computational process of deep learning, a form of machine learning performed using DNNs, can be classified into two parts: a training process in which the given DNN continues to learn based on training data and improves the computational power of the DNN, and an inference process in which the DNN, trained through the training process, is used to make inferences about new input data.
[0009] The inference process in deep learning follows a forward propagation method, where input data is input to the input layer nodes, and then calculations are performed sequentially in the hidden layer and output layer according to the layer order. Finally, the output layer nodes derive the conclusion of the inference process based on the output values of the hidden layer.
[0010] On the other hand, the training process of deep learning involves adjusting the weights of the nodes to reduce the difference between the conclusion of the inference process and the actual correct answer. Generally, the weights are modified using the gradient descent method. To implement gradient descent, the derivative of the difference between the conclusion of the inference process and the actual correct answer must be calculated for each node's weight. In this process, the derivative of the weight of the preceding node of the DNN is calculated using the chain rule, which is the derivative of the weight of the subsequent node of the DNN. Since the calculation of the chain rule is performed in the reverse direction of the inference process, the learning process of deep learning has a back propagation method.
[0011] In other words, DNNs have a hierarchical structure, and the nodes in each hierarchical level receive result values from numerous nodes in the previous hierarchical level, perform calculations based on the mathematical model of the nodes described above to output new result values, and transmit these new result values to the nodes in the next hierarchical level.
[0012] On the other hand, the computational structure of a DNN can have a distributed processing structure that distributes and processes the numerous calculations performed by nodes in each layer across many computational units. The calculations performed by nodes in each layer are distributed and processed across many computational units, and each computational unit reads the data necessary for the calculation from memory, performs the calculation, and stores the calculation result back into memory. [Overview of the project] [Problems that the invention aims to solve]
[0013] This specification aims to provide a packet network that can guarantee sequential packet forwarding without dropping packets.
[0014] This specification is not limited to the issues mentioned above, and other issues not mentioned should be clearly understood by an ordinary engineer from the following description. [Means for solving the problem]
[0015] A computing device according to this specification for solving the above-mentioned problems includes a fetch unit that reads data necessary for processing a neural network from memory and provides it to a computing unit, wherein the fetch unit may include a plurality of routers having a data processing mapping table that describes a method for processing the input data according to the node ID of the input data, and a fetch network controller that reconfigures the data processing mapping tables of the plurality of routers to form a software topology according to the computational form.
[0016] In this case, each router may include an arbiter unit that controls the input port based on the tail information of the input data and modifies the tail information based on the tail retention information of the input data.
[0017] According to one embodiment of this specification, each router may include a main input port into which data is input from the memory, a first transmission output port for transmitting data to an adjacent first router, a first transmission input port into which data transmitted from the adjacent first router is input, a second transmission output port for transmitting data to an adjacent second router, a second transmission input port into which data transmitted from the adjacent second router is input, and a main output port for providing data to the arithmetic unit.
[0018] According to one embodiment of this specification, the data processing mapping table may store information regarding the presence or absence of blockage, reflection, and output of the input data.
[0019] According to one embodiment of this specification, the fetch network controller may set whether or not to perform blocking, reflection, and output depending on the topology to be reconfigured.
[0020] According to an embodiment of the present specification, the fetch network controller may similarly set blocking and output in a data processing mapping table of routers belonging to the same group in the reconfigured topology.
[0021] According to an embodiment of the present specification, the memory may include the same number of data memory slices as the plurality of routers.
[0022] According to an embodiment of the present specification, the fetch unit includes: a network interface from which data stored in each of the data memory slices is fetched; a fetch network that transmits the fetched data to the network interface; and a feed module that provides the data transmitted from the fetch network to an arithmetic unit. Here, the plurality of routers and the fetch network controller may be included in the fetch network.
[0023] According to an embodiment of the present specification, the network interface includes: a fetch buffer that stores the fetched data; and an interface controller that assigns a node ID corresponding to each data memory slice to the fetched data.
[0024] According to an embodiment of the present specification, the tail information is any one of a first logical value T indicating the end of a packet and a second logical value F indicating not the end of a packet, and the tail hold information is any one of a first logical value T indicating holding of the tail information and a second logical value F indicating modification of the tail information.
[0025] According to an embodiment of the present specification, when the arbiter unit controls an input port such that data is input from the memory, if tail information of the data input from the memory is the first logical value T, the arbiter unit may change the input port such that data is input from an adjacent router.
[0026] According to an embodiment of the present specification, the arbiter unit may change the tail information of the input data to a second logic value F when tail retention information of data input from the memory is the second logic value F.
[0027] According to an embodiment of the present specification, the arbiter unit may control data to be input from the memory when tail information of data input from an adjacent router is a first logic value T.
[0028] According to an embodiment of the present specification, the interface controller may further set the tail information and the tail retention information in the fetched data.
[0029] According to an embodiment of the present specification, the interface controller may set tail information of last data of a packet among the fetched data to a first logic value T, and set tail information of remaining data to a second logic value F.
[0030] According to an embodiment of the present specification, the interface controller sets tail retention information of data having a last node ID among software topology configurations of a router configured by the fetch network controller based on the data processing mapping table to a first logic value T which means retaining tail information, and sets tail retention information of data having remaining node IDs to a second logic value F which means changing tail information.
[0031] Other specific details of the present invention are included in the detailed description and the drawings. Advantageous Effects of Invention
[0032] According to an aspect of the present specification, even when buffer backpressure occurs in a router or a delay of the router is variable, packets may be always sequentially transferred without being dropped.
[0033] According to other aspects of this specification, it is possible to provide a computing device with low cost and high processing efficiency. Furthermore, it is possible to achieve improved computing power compared to conventional neural network processors.
[0034] The effects of the present invention are not limited to those mentioned above, and any other effects not mentioned should be clearly understood by a person of the ordinary skill from the following description. [Brief explanation of the drawing]
[0035] [Figure 1] This is a block diagram schematically showing the configuration of a processing unit according to one embodiment of the present invention. [Figure 2] This is a block diagram showing in more detail the configuration of each component of the processing unit described herein. [Figure 3] This is a block diagram that more specifically illustrates the configuration of a fetch unit according to one embodiment of this specification. [Figure 4] This is a reference diagram illustrating the configuration of the router described herein. [Figure 5] This is the software topology relating to the first embodiment. [Figure 6] This is a reference diagram of the data processing mapping table according to the first embodiment. [Figure 7] This is a software topology relating to the second embodiment. [Figure 8] This is a reference diagram of the data processing mapping table according to the second embodiment. [Figure 9] This is a software topology relating to the third embodiment. [Figure 10] This is a reference diagram of the data processing mapping table according to the third embodiment. [Figure 11] This is a software topology relating to the fourth embodiment. [Figure 12] This is a reference diagram of the data processing mapping table according to the fourth embodiment. [Figure 13]This is an illustrative diagram of the data input timing according to one embodiment of this specification. [Figure 14] This is a reference diagram showing how the arbiter unit processes data. [Figure 15] This is a reference diagram showing how the arbiter unit processes data. [Figure 16] This is a reference diagram showing how the arbiter unit processes data. [Figure 17] This is a reference diagram showing how the arbiter unit processes data. [Figure 18] This is a reference diagram showing how the arbiter unit processes data. [Figure 19] This is a reference diagram showing how the arbiter unit processes data. [Figure 20] This is a reference diagram showing how the arbiter unit processes data. [Modes for carrying out the invention]
[0036] The advantages and features of the inventions disclosed herein, and how they are achieved, should become clear by referring to the examples described below in detail with the accompanying drawings. However, this specification is not limited to the examples disclosed below, and may be realized in a variety of different forms. These examples are merely provided to complete the disclosure of this specification and to fully inform the ordinary people skilled in the art to which this specification belongs (hereinafter, "people skilled in the art") of the scope of this specification, and the scope of this specification is defined solely by the scope of the claims.
[0037] The terms used herein are for illustrative purposes only and are not intended to limit the scope of the rights herein. In this specification, singular forms include plural forms unless otherwise specified in the text. The terms “comprises” and / or “comprising” as used in this specification do not preclude the presence or addition of one or more other components in addition to the components mentioned.
[0038] Throughout the specification, the same reference numerals refer to the same component, and "and / or" includes each of the components mentioned and any combination of one or more of them. Even if terms such as "first," "second," etc., are used to describe a variety of components, these components are not limited by these terms. These terms are used simply to distinguish one component from another. Therefore, the first component mentioned below may, of course, be the second component within the technical concept of the present invention.
[0039] Unless otherwise defined, all terms used herein (including technical and scientific terms) are to be used in a sense that is commonly understood by an ordinary person skilled in the art to which this specification pertains. Furthermore, terms defined in commonly used dictionaries are not ideally or excessively analyzed unless explicitly defined otherwise. Embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
[0040] The data used in the training process of deep learning can take the form of tensors ranging in size from several hundred kilobytes (Kbytes) to several hundred megabytes (Mbytes). Such data can be stored in numerous memory banks that constitute on-chip memory.
[0041] Numerous memory banks and processing units are connected by a network for data transfer. In the case of Network-on-Chip, the network can be configured within the chip and may include routers.
[0042] A router includes a router that can transmit data packets received from multiple nodes to multiple nodes. A router can perform at least one of the following actions when data packets, i.e., traffic, are received from multiple directions: i) ensure that they are transmitted in the direction of their destination; ii) arbitrate if contention occurs; and iii) control the flow to prevent packet loss.
[0043] The performance and cost of such routers are determined by factors such as topology, bandwidth, flow control, and buffer, and naturally, the goal is to create routers that are low in cost (cost, area, and energy) and have high throughput.
[0044] On the other hand, in deep learning, the majority of traffic patterns involve the reuse of the same tensor data multiple times to generate a large amount of output tensor data. Therefore, to reduce the number of memory accesses, the router can read the input tensor data from memory and broadcast or multicast it to multiple computing units.
[0045] A common method of multicasting is to record and transmit all destinations for each data packet (dg). This method has a problem in that the size of the packet header increases proportionally to the number of nodes (for example, if the packet header includes a bitmap to display the destination, 64 nodes would require 64 bits or more).
[0046] Generally, buffered flow control suffers from the problem of head-of-line blocking, where queues are blocked depending on the buffer area. One way to solve this is to use source throttling, which detects and avoids congestion after it occurs. Therefore, a network is needed that takes into account the characteristics of deep learning routing patterns and has a low cost and high processing rate.
[0047] Figure 1 is a block diagram schematically showing the configuration of a processing unit according to one embodiment of the present invention.
[0048] As shown in Figure 1, the arithmetic processing unit 10 may include a memory 100, a fetch unit 200, an operation unit 300, and a commit unit 400.
[0049] However, as shown in Figure 1, the arithmetic processing unit 10 does not necessarily have to include the memory 100, fetch unit 200, arithmetic unit 300, and commit unit 400. For example, the memory 100 and commit unit 400 may be located outside the arithmetic processing unit 10.
[0050] Memory 100 can store at least one of the data described herein. For example, memory 100 can store input data, tensors, output data, filters, calculation result data of the arithmetic unit, any data used by the fetch unit, etc. Memory 100 may, but is not limited to, be formed in the form of data memory such as SRAM (Static Random Access Memory) or DRAM (Dynamic Random Access Memory).
[0051] The fetch unit 200 can read the data necessary for calculation from the input data stored in the memory 100 and provide it to the calculation unit 300.
[0052] If the input data is a tensor, the fetch unit 200 can read the tensor stored in memory 100 and feed it to the arithmetic unit 300 according to the type of operation. The type of operation may include, for example, matrix multiplication, convolution, or grouped convolution.
[0053] In this case, the fetch unit 200 can sequentially read data sets from the memory 100 that have the same or greater processing amount as the unit data of one or more arithmetic units provided in the arithmetic unit 300, and feed them to the arithmetic unit 300.
[0054] The arithmetic unit 300 can process the input data transferred from the fetch unit 200 and generate output data. The arithmetic unit 300 may be configured according to the type of calculation it performs. For example, the arithmetic unit 300 may process the data fed from the fetch unit 200 in a streaming manner, but is not limited to this. The arithmetic unit 300 may include one or more arithmetic units.
[0055] The commit unit 400 can store the calculation result data output from the arithmetic unit 300 (for example, output via streaming) in the memory 100. When the commit unit 400 stores the calculation result data received from the arithmetic unit 300 in the memory 100, it can store the data in the memory 100 based on the form of the next calculation to be performed on the calculation result data. For example, the commit unit 400 can transform the calculation result data into a pre-set form, or into a form suitable for subsequent calculations, and then store it in the memory 100.
[0056] Figure 2 is a block diagram illustrating in more detail the various components of the arithmetic processing unit according to this specification.
[0057] Referring to Figure 2, the memory 100, fetch unit 200, arithmetic unit 300, and commit unit 400 described above will be explained in more detail.
[0058] The memory 100 can be configured based on a memory address space. For example, the memory address space may be contiguous or sequential. The memory address space may be one-dimensional, but is not limited to this, and may have a two-dimensional or more array. The internal structure of the memory 100 may be configured as an independently accessible slice structure.
[0059] For example, memory 100 may contain multiple data memory slices 101. In this case, the number of data memory slices 101 may be determined according to the number of dot product engines 310 included in the arithmetic unit 300. For example, the number of slices 101 may be the same as the number of dot product engines 310 included in the arithmetic unit 300. For example, if the input data is a tensor, the tensor may be divided in the channel direction and the height direction before being stored in the data memory slices 101.
[0060] The fetch unit 200 can read data from the memory 100 and feed the corresponding data to the dot product engine 310 of the arithmetic unit 300. For example, the fetch unit 200 may include at least one of a fetch sequencer 210, a network interface 220, a fetch network 230, and an arithmetic sequencer module 250.
[0061] The fetch sequencer 210 can control data fetch operations from memory 100 to network interface 220. The network interface 220 is for fetching data stored in memory 100 and can provide an interface between memory 100 and the fetch network 230.
[0062] The fetch network 230 can transmit the fetched data to the feed module 240. The arithmetic sequencer module 250 can control the arithmetic unit 300 to perform specific calculations by controlling the feed module 240 and the data input to the feed module 240.
[0063] The fetch network 230 of the fetch unit 200 can have a variety of structures depending on the computation content and data format. The fetch network 230 can be configured or reconfigured by software in the topology required by the computation unit 300.
[0064] Furthermore, the fetch network 230 can determine its topology according to the shape of the input data and the type of operation. The fetch network 230 can support, but is not limited to, various communication methods such as Direct, Vertical Multicast, Channel Multicast, and Vertical Nearest Neighbor, depending on the operations performed by the arithmetic unit 300.
[0065] For example, in the case of a two-dimensional convolution, we assume that the values of all input channels must all be input to the dot product engine 310, which calculates the respective output activations.
[0066] Therefore, the fetch unit 200 can feed the input activation values read sequentially in the channel direction to the dot product engine 310 in a multicast manner.
[0067] Furthermore, the fetch unit 200 can use a fetch sequencer 210 to sequentially read data from each data memory slice 101 that should be input to the arithmetic unit 300. Each piece of data read from the data memory slice 101 by the fetch sequencer 210 can be transmitted to the arithmetic unit 300 via the fetch network 230 of the fetch unit 200.
[0068] In this way, the fetch unit 200 can read tensor slices from memory 100 in parallel and feed them to the arithmetic unit 300 in a format that the arithmetic unit 300 can process. Here, the fetch network 230 may further include a fetch network controller (not shown in Figure 2) that configures and manages the fetch network 230 to transmit the data read from memory 100 to the arithmetic unit 300 that requires it.
[0069] The arithmetic unit 300 may include multiple dot product engines 310 capable of parallel processing. For example, the arithmetic unit 300 may include, but is not limited to, 256 dot product engines 310. Each dot product engine 310 may include one or more arithmetic units (e.g., 32 MACs). Each dot product engine 310 can perform a variety of calculations depending on the configuration of its arithmetic units.
[0070] The dot product engine 310 of the arithmetic unit 300 is also divided into channels and height directions, and can perform calculations to generate output activation.
[0071] The arithmetic unit 300 may also include a register file (not shown) in addition to the dot product engine 310.
[0072] A register file is a storage space that temporarily stores one of the operators that is relatively frequently used or reused when the dot product engine 310 performs calculations. For example, a register file may, but is not limited to, be configured in the form of SRAM or DRAM.
[0073] For example, when performing calculations in a neural network, in the case of a typical convolution layer with a large activation size, the weights may be stored in a register file and the activations in memory.
[0074] Furthermore, in the case of a fully connected layer where the weight is even larger than the activation, the weight may be stored in memory and the activation in a register file.
[0075] For example, when the arithmetic unit 300 performs MAC calculations, the dot product engine 310 can use the input data received from the fetch unit 200, the register values received from the register file located in the dot product engine 310, and the accumulated value received from the accumulator as operands (operators) for calculating MAC.
[0076] The calculation result can then be stored again in the accumulator or transmitted to the commit unit 400 for storage in memory 100 as output data.
[0077] On the other hand, as explained above, the commit unit 400 can transform the output activation calculated by the arithmetic unit 300 into a form required for the next calculation and store it in the memory 100.
[0078] For example, in a neural network, the commit unit 400 can store output activations in memory so that the output activations from calculations in a particular layer can be used in calculations in the next layer. Furthermore, depending on the data format required for calculations in the next layer, the commit unit 400 can perform transpose (e.g., tensor manipulation) and transmit the results to memory 100 via the commit network (not shown) for storage.
[0079] In this way, the commit unit 400 stores the output data in the memory 100 in the desired format after the calculations have been performed by the calculation unit 300. In order to store the output data in the desired format, the commit unit 400 can perform data transposition (Tensor Transpose) using a data transpose module (not shown) and a commit network module (not shown).
[0080] Figure 3 is a block diagram that more specifically shows the configuration of a fetch unit according to one embodiment of this specification.
[0081] Referring to Figure 3, one can see the network interface 220, fetch network 230, and feed module 240 included in the fetch unit 200 according to one embodiment of this specification.
[0082] The data stored in each of the data memory slices 101 can be fetched to the network interface 220. The network interface 220 may include a fetch buffer 222 for storing the fetched data and an interface controller 221 for assigning a node ID corresponding to each data memory slice to the fetched data.
[0083] The fetch network 230 can transmit the data fetched to the fetch buffer 222. For this reason, the fetch network 230 may include multiple routers 232 and fetch network controllers 231.
[0084] Each of the aforementioned routers 232 may have a data processing mapping table. The data processing mapping table may indicate the routing / flow control method (e.g., block, reflect, or output) for the input data, depending on the node ID of the input data. The fetch network controller 231 can reconfigure the data processing mapping table.
[0085] The data processing mapping table can be adaptively reconfigured according to the type of operation to be performed on the data in question. For example, the fetch network controller 231 can reconfigure the data processing mapping tables of the multiple routers 232 to form a software topology corresponding to the operation type. The data processing mapping table will be described in more detail later.
[0086] The feed module 240 can provide data received from the fetch network 230 to the arithmetic unit 300. For this purpose, the feed module 240 may include a feed buffer 242 that stores data output from multiple routers 232.
[0087] On the other hand, the memory 100 may include one or more data memory slices 101. The number of routers 232 can be related to the number of data memory slices 101. For example, the number of routers 232 can be determined based on the number of data memory slices 101, or conversely, the number of data memory slices 101 can be determined based on the number of routers 232.
[0088] For example, the number of routers 232 and the number of data memory slices 101 may be the same. In this case, routers 232 and data memory slices 101 can correspond one-to-one. For the sake of understanding and to simplify the drawings, this specification assumes that there are eight routers 232-1 to 232-8.
[0089] Furthermore, since the data stored in the data memory slice 101 can be fetched into the fetch buffer 222 included in the network interface 220, Figure 3 shows the eight buffers 222-1 to 222-8 separated from each other.
[0090] Therefore, each fetch buffer 222 corresponds to a data memory slice 101, and each fetch buffer 222 can fetch the data stored in its corresponding data memory slice 101. However, the example in Figure 3 shows them separated from each other for ease of understanding and does not necessarily limit them to being physically separated.
[0091] Furthermore, in this specification, when explaining data fetching and the like, an example is given in which one data packet is composed of four flits. Accordingly, the interface controller 221 can assign a node ID corresponding to each data memory slice 101 to each flit that constitutes one data packet.
[0092] Referring to the example shown in Figure 3, the four frits fetched into fetch buffer 1 222-1 were assigned the node ID "#1". Similarly, the four frits fetched into fetch buffer 222-2 were assigned the node ID "#2", and the frits fetched into the remaining fetch buffers 222-3 to 222-8 were also assigned the node IDs "#3 to #8".
[0093] According to one embodiment of this specification, the plurality of routers 232 can form a hardware-based one-dimensional mesh topology (1-D mesh topology). According to another embodiment of this specification, the plurality of routers 232 can also form a hardware-based two-dimensional mesh topology (2D mesh topology). The hardware configuration of the plurality of routers 232 is diverse and is not limited to any particular form.
[0094] Each router 232 can receive the data fetched into the fetch buffer 222, output it to the feed buffer 242, or transmit it to another adjacent router 232.
[0095] For the sake of explanation, the routers will be referred to as "Router 1 232-1, Router 2 232-2, ..., Router 8 232-8" starting from the leftmost router.
[0096] Figure 4 is a reference diagram illustrating the configuration of the router according to this specification.
[0097] Referring to Figure 4, three routers can be seen. The router configuration according to this specification will be described using router 232-Ref, which is located in the middle of these three routers, as the reference. Of the two routers adjacent to the reference router 232-Ref, the router located on the left will be referred to as the "first router 232-F," and the router located on the right will be referred to as the "second router 232-S." The terms "first" and "second" are merely names used to distinguish the two routers adjacent to the reference router 232-Ref, and do not indicate priority between the routers.
[0098] The router 232 according to this specification may include a main input port (1), a first transmission output port (2), a first transmission input port (3), a second transmission output port (4), a second transmission input port (5), and a main output port (6). The main input port (1) is a port into which data is input from the memory 100, i.e., the fetch buffer 222. The first transmission output port (2) is a port that transmits data to an adjacent first router 232-F.
[0099] The first transmission input port (3) is a port into which data transmitted from the adjacent first router 232-F is input. The second transmission output port (4) is a port into which data is transmitted to the adjacent second router 232-S. The second transmission input port (5) is a port into which data transmitted from the adjacent second router 232-S is input. The main output port (6) is a port for providing data to the arithmetic unit 300, i.e., the feed buffer 242.
[0100] Therefore, data output via the first propagation output port (2) of the reference router 232-Ref is input to the second propagation input port (5) of the first router 232-F. Data output via the second propagation output port (4) of the first router 232-F is input to the first propagation input port (3) of the reference router 232-Ref. Data output via the second propagation output port (4) of the reference router 232-Ref is input to the first propagation input port (3) of the second router 232-S. Data output via the first propagation output port (2) of the second router 232-S is input to the second propagation input port (5) of the reference router 232-Ref.
[0101] On the other hand, referring again to Figure 3, router 1, 232-1, does not show the first propagation output port (2) and the first propagation input port (3). Since router 1, 232-1, can be located on the far left, either physically or software-wise, the first propagation output port (2) and the first propagation input port (3) may not physically exist. Alternatively, router 1, 232-1 may physically have the first propagation output port (2) and the first propagation input port (3), but may not use them in software. Router 8, 232-8, also does not show the second propagation output port (4) and the second propagation input port (5), for the same reasons as router 1, 232-1.
[0102] On the other hand, in this specification, we assume that the router 232 transmits data counterclockwise. Therefore, when each router 232 transmits data input via the main input port (1) and the second transmission input port (5), we assume that it transmits the data only via the first transmission output port (2).
[0103] Furthermore, it is assumed that when each router 232 transmits data input via the first transmission input port (3), it transmits it only via the second transmission output port (4). When input and output ports are configured in the data transmission process as described above, duplicate data output can be prevented.
[0104] Furthermore, it should be understood that the counterclockwise transmission described herein does not limit the processing unit described herein, and if it is changed to clockwise, the relationship between the input and output ports may also change.
[0105] The router 232 according to this specification can read the node ID of the data input via the main input port (1) and process the data having the corresponding node ID based on a data processing mapping table. According to one embodiment of this specification, the data processing mapping table can store information regarding the presence or absence of blockage, reflection, and output of the input data.
[0106] In other words, the router 232 according to this specification can process, based on a data processing mapping table, whether to block, reflect, or output data without transmitting it to other routers, depending on the node ID. In relation to the data processing mapping table, the router 232 according to this specification may be configured as a basic operation to output data input from one adjacent router to another adjacent router (data transmission), but is not necessarily limited to this. Therefore, the data processing mapping table can be said to be information about how to process data input from other routers.
[0107] In the data processing mapping table, "blocking" means that data input via the second transmission input port (5) or the first transmission input port (3) is not transmitted via the first transmission output port (2) or the second transmission output port (4). In the data processing mapping table, "reflection" means that data input via the second transmission input port (5) is output via the second transmission output port (4).
[0108] Alternatively, in the data processing mapping table, "reflection" means processing data that should be output via the first transmission output port (2) as if it were data input via the first transmission input port (3). In the data processing mapping table, "output" means outputting data input via the first transmission input port (3) via the main output port (6).
[0109] Therefore, the software topology configured by multiple routers 232 can vary depending on the contents of the data processing mapping table. The fetch network controller 231 can set whether or not to perform blocking, reflection, and output depending on the topology to be reconfigured, and the software topology can be determined by the fetch network controller 231. The data processing mapping table will be explained in more detail by various embodiments shown in Figures 5 to 12.
[0110] Figure 5 shows the software topology according to the first embodiment.
[0111] Referring to Figure 5, the first embodiment is an example in which the data fetched to each fetch buffer 222 is transmitted to a single feed buffer 242. That is, in this embodiment, the data stored in fetch buffer 1 222-1 is transmitted only to feed buffer 1 242-1, and the data stored in fetch buffer 2 222-2 is transmitted only to feed buffer 242-2.
[0112] Figure 6 is a reference diagram of the data processing mapping table according to the first embodiment.
[0113] Referring to Figure 6, it can be seen that the data processing mapping table is divided into methods for processing data according to the node ID (e.g., blocking, reflection, output). Furthermore, the items in the data processing mapping table may also have an indication of whether they can be executed. If "1" is entered, it means that the item will be executed, and if "0" is entered, it means that the item will not be executed.
[0114] Based on the aforementioned data processing mapping table, Router 1 232-1 in Figure 5 will be described as follows: it does not block the data for ID#1, but reflects it and outputs it. In this specification, we assume that Router 232 transmits data counterclockwise, so the data for ID#1 input to the main input port (1) of Router 1 232-1 should be transmitted via the first transmission output port (2). At this time, because Router 1 232-1 is set to reflect the data for ID#1 in its data processing mapping table, the data for ID#1 that should be output via the first transmission output port (2) is processed as if it were data input via the first transmission input port (3).
[0115] Furthermore, since the data processing mapping table of router 1 232-1 is configured to output data with ID#1, the data with ID#1 is output via the main output port (6). The remaining data with IDs#2 to #8 are blocked, not reflected, and not output. Therefore, the data fetched into fetch buffer 1 222-1 in Figure 5 can only be output to feed buffer 1 242-1. Routers 232-2 to 8 232-8 in Figure 5 also operate on the same principle, so unnecessary repetition is omitted.
[0116] Figure 7 shows the software topology according to the second embodiment.
[0117] Referring to Figure 7, the second embodiment is an example in which the data fetched into each fetch buffer 222 is transmitted to two feed buffers 242. That is, in this embodiment, the data stored in the first fetch buffer 222-1 is transmitted to the first feed buffer 242-1 and the second feed buffer 242-2, and the data stored in the second fetch buffer 222-2 is transmitted to the first feed buffer 242-1 and the second feed buffer 242-2.
[0118] Figure 8 is a reference diagram of the data processing mapping table according to the second embodiment.
[0119] Based on the aforementioned data processing mapping table, Router 1 232-1 in Figure 7 will be described as follows: it does not block the data for ID#1, but reflects and outputs it. In the first embodiment described above, how Router 1 232-1 outputs the data for ID#1 to Feed Buffer 1 242-1 has already been explained, so a repetition of that explanation will be omitted. Since the data for ID#1 is processed in the same way as data input via the first transmission input port (3), the data for ID#1 can be transmitted to Router 2 232-2 via the second transmission output port (4).
[0120] Regarding the second router 232-2 in Figure 7, it does not block or reflect the data with ID#1, but instead outputs it. Therefore, when the second router 232-2 receives data with ID#1 from the first router 232-1, it can output it to the second feed buffer 242-2. Consequently, the data fetched into the first fetch buffer 222-1 in Figure 7 can be output to both the first feed buffer 242-1 and the second feed buffer 242-2.
[0121] Regarding the second router 232-2, it does not block or reflect the data for ID#2, but performs output. In this specification, we assume that router 232 transmits data counterclockwise, so the data for ID#2 input to the main input port (1) of the second router 232-2 can be transmitted to the first router 232-1 via the first transmission output port (2).
[0122] Next, regarding router 1 232-1 in Figure 7, it does not block the data for ID#2, but reflects and outputs it. The data for ID#2 input to router 1 232-1 can be output to feed buffer 1 242-1 by router 1 232-1, just like the data for ID#1. The data for ID#2 can then be transmitted again to feed buffer 242-2. Router 232-2 can output the data for ID#2 that has been input again from router 1 232-1 via the first transmission input port (3) via the main output port (6).
[0123] Therefore, the data fetched into the second fetch buffer 222-2 in Figure 7 can be output to the first feed buffer 242-1 and the second feed buffer 242-2.
[0124] On the other hand, the data for ID#1 in Figure 7 is input via the first propagation input port (3) of router 232-2, and is output via the second propagation output port (4) of router 232-2. Therefore, the data for ID#1 is not input back to router 1 232-1. Additionally, router 3 232-3 blocks the data for ID#1 that is input via its first propagation input port (3). Router 232-3 also blocks the data for ID#2 that is input via its first propagation input port (3).
[0125] In Figure 7, routers 232-1 (number 1) and 232-2 (number 2) block, do not reflect, and do not output the remaining data for IDs #3 to #8.
[0126] Routers 232-3 (number 3) and 232-4 (number 4), 232-5 (number 5) and 232-6 (number 6), and 232-7 (number 7) and 232-8 (number 8) in Figure 7 also operate on the same principle, so unnecessary repetition is omitted.
[0127] Figure 9 shows the software topology according to the third embodiment.
[0128] Referring to Figure 9, the third embodiment is an example in which the data fetched into each fetch buffer 222 is transmitted to the four feed buffers 242. That is, in this embodiment, the data stored in fetch buffers 1 to 4, 222-1 to 222-4, is transmitted to feed buffers 1 to 4, 242-1 to 242-4, respectively.
[0129] Figure 10 is a reference diagram of a data processing mapping table according to the third embodiment.
[0130] Since the processing of ID#1 data and ID#2 data has been explained by the first and second embodiments described above, Figure 10 will explain the processing of ID#3 data fetched into the third fetch buffer 222-3 in Figure 9 as a representative example. First, the ID#3 data fetched into the third fetch buffer 222-3 is input via the main input port (1) of the third router 232-3 and output to the first transmission output port (2) of the third router 232-3.
[0131] Router 232-2 receives the data for ID#3 via its second transmission input port (5) and outputs the data for ID#3 to its first transmission output port (2).
[0132] Router 1 232-1 receives the data for ID#3 via its second transmission input port (5). According to the data processing mapping table for Router 1 232-1, Router 1 232-1 performs reflection and output for the data for ID#3, so the data for ID#3 is output to feed buffer 1 242-1 via its main output port (6), and then output to Router 1 232-1's second transmission output port (4).
[0133] Router 232-2 receives the data for ID#3 via its first transmission input port (3). According to the data processing mapping table for Router 232-2, Router 232-2 performs output for the data for ID#3, so the data for ID#3 is output to the feed buffer 242-2 via its main output port (6), and then output to Router 232-2's second transmission output port (4).
[0134] Router 3, 232-3, receives data for ID#3 via its first transmission input port (3). According to the data processing mapping table for Router 3, 232-3, to perform output for the data for ID#3, the data for ID#3 is output to the feed buffer 3, 242-3, via its main output port (6), and then output to Router 3, 232-3's second transmission output port (4).
[0135] Router 4, 232-4, receives the data for ID#3 via its first transmission input port (3). According to the data processing mapping table for Router 4, 232-4 performs output on the data for ID#3, so the data for ID#3 is output to the feed buffer 4, 242-4, via its main output port (6), and then output to the second transmission output port (4) of Router 4, 232-4.
[0136] Router 5, 232-5, receives data for ID#3 via the first propagation input port (3). According to the data processing mapping table of Router 5, 232-5 performs a block on the data for ID#3, so the data for ID#3 is not output or propagated any further.
[0137] Therefore, the data for ID#3 fetched into fetch buffer 3 222-3 in Figure 9 can be transmitted to feed buffers 1 through 4 242-1 through 242-4. Similarly, the data for ID#1, ID#2, and ID#4 can also be transmitted to feed buffers 1 through 4 242-1 through 242-4. On the other hand, the data for ID#5 through ID#8 can be transmitted to feed buffers 5 through 8 242-5 through 242-8 using the same principle.
[0138] Figure 11 shows the software topology according to the fourth embodiment.
[0139] Referring to Figure 11, the fourth embodiment is an example in which the data fetched to each fetch buffer 222 is transmitted to all feed buffers 242. That is, in this embodiment, the data stored in fetch buffers 1 to 8, 222-1 to 222-8, is transmitted to feed buffers 1 to 8, 242-1 to 242-8, respectively.
[0140] Figure 12 is a reference diagram of the data processing mapping table according to the fourth embodiment.
[0141] As the methods described above in the first to third embodiments have sufficiently explained how each router 232 processes the input data based on the data processing mapping table, a repeated explanation will be omitted.
[0142] As can be seen from Figures 5 to 12, the fetch network controller 231 may similarly configure the blocking and output in the data processing mapping table of routers 232 belonging to the same group in the reconfigured software topology.
[0143] On the other hand, we have so far described how router 232 processes a single piece of data. However, multiple pieces of data fetched into multiple fetch buffers 222 should be processed together.
[0144] Conventional technologies can employ a method of resolving conflicts when they occur by providing routers with sufficiently large buffers. However, it is obvious that sufficiently large buffers can lead to various problems such as increased processor size, increased power consumption, increased heat generation, and processing delays. While it is clear that having appropriately sized buffers is best, a problem arises when the buffer in any one router is filled, requiring delays in data input and output for all connected routers.
[0145] Furthermore, if the delay between routers is variable (for example, if they are in different clock domains), more complex problems may arise. Therefore, a method is needed to appropriately control the timing of inputting the fetched data to each router 232. The arithmetic processing unit 10 according to this specification can provide a method for processing a large amount of data more effectively.
[0146] Figure 13 is an illustrative diagram of data input and output control according to one embodiment of this specification.
[0147] Referring to Figure 13, it was confirmed that the software topology of the multiple routers 232 is the same as that of the third embodiment shown in Figure 9. Therefore, data fetched to fetch buffers 1 through 4 222-1 through 222-4 must not cause collisions when input to routers 1 through 4 232-1 through 232-4, and must be output to feed buffers 1 through 4 242-1 through 242-4. On the other hand, although the control of data input and output is described in this specification by the third embodiment, the arithmetic processing unit 10 according to this specification is not limited to the above example.
[0148] In the example shown in Figure 13, one data packet is described as being composed of two flits. In the example shown in Figure 13, the numbers written on the flits indicate the order in which they are input into the feed buffer 242.
[0149] In this specification, the data input from memory 100 to router 232 may include tail information and tail retention information. As an example, the data fetched into the fetch buffer 222, i.e., the frit, may have a format consisting of a header, payload, tail retention information (keep_tail), and tail information (tail). The frit shown in Figure 13 is in a format where "payload (P)" is followed by "tail retention information (keep_tail)" and "tail information (tail)".
[0150] The tail information (tail) is either a first logical value T meaning the end of the packet or a second logical value F meaning it is not the end of the packet, and the keep_tail information may be either a first logical value T meaning the tail information should be retained or a second logical value F meaning the tail information should be modified.
[0151] According to one embodiment of this specification, the interface controller 221 may further set the tail information and tail retention information in the fetched data.
[0152] According to other embodiments of this specification, the network interface 220 may include a separate component for setting the tail information and tail retention information in the fetched data.
[0153] The interface controller 221 may set the tail information of the last data packet among the fetched data to a first logical value T, and the tail information of the remaining data to a second logical value F.
[0154] Furthermore, the interface controller 221 may set the tail retention information of the data having the last node ID in the software topology configuration of the router configured by the fetch network controller 231 based on the data processing mapping table to a first logical value T, which means that the tail information is retained, and set the tail retention information of the data having the remaining node IDs to a second logical value F, which means that the tail information is modified.
[0155] Based on the above settings, Figure 13 was explained as follows: It was confirmed that the tail information of frits with even-numbered positions among the data fetched into each buffer 222 was "F", and the tail information of frits with odd-numbered positions was "T". Furthermore, it was confirmed that only the tail retention information of buffer 4 222-4 and buffer 8 222-8, which have the last node ID in the software topology, was "T".
[0156] The router 232 according to this specification may include an arbiter 233 that controls an input port based on tail information of the input data and modifies the tail information based on tail retention information of the input data. The operation of the arbiter 233 will be described in more detail below.
[0157] Figures 14 to 20 are reference diagrams showing how the arbiter unit processes data.
[0158] Figures 14 to 20 show only fetchers 222-1 to 222-4 and routers 232-1 to 232-4 for the sake of simplifying the drawings.
[0159] Referring to Figure 14, first, the arbiter unit 233 can be set to an initial state such that data is input from the memory 100, that is, from the main input port (1), among the ports associated with the input and output of the router 232. Depending on the initial state, two frits fetched into each buffer 222 can be input to each router 232 in sequence.
[0160] When the arbiter unit 233 controls the input port so that data is input from the memory 100, if the tail information of the data input from the memory 100, i.e., the fetch buffer 222, is a first logical value T, it can change the input port so that data is input from an adjacent router.
[0161] Referring to Figure 15, it was confirmed that the arbiter unit was modified so that data is input from the main input port (1) of each router to the second transmission input port (5), since the tail information of the second frit input to each router is "T".
[0162] On the other hand, the arbiter unit can change the tail information of the input data to the second logical value F when the tail information of the data input from the memory (main input port) is the second logical value F. In the example shown in Figure 13, the tail information of frits F0 to F5 is all "F", so the tail information of frits F0 to F5, in particular the tail information of frits F1, F3, and F5, should be changed to "F". On the other hand, the tail information of frits F6 and F7 is both "T", so the tail information of frits F6 and F7 is not changed. In particular, it should be noted that the tail information of frit F6 continues to be held as "F", while the tail information of frit F7 is held as "T".
[0163] The data whose tail information is retained or modified can then be output to an adjacent router. The arbiter unit 233 can control the input of data from the memory when the tail information of the data input from the adjacent router is a first logical value T.
[0164] Referring to Figure 16, it was confirmed that the data was forwarded to the adjacent router. In particular, let's describe router 232-3. Router 232-3 received frits F6 and F7 via the second transmission input port (5). Since the tail information of frit F7 is "T", the input port can be controlled so that data is input from the main input port (1).
[0165] On the other hand, if a router is configured such that no data is input from the adjacent router, as in the case of router 4 232-4, the arbiter unit 233 can control the system so that data is input from the main input port (1) when the tail information of the data to be output to the adjacent router via its first transmission output port (2) is a first logical value T.
[0166] Subsequently, Figures 17 to 20 were explained, confirming that the data was transferred sequentially. In particular, in Figure 20, the data output from router 232-1 was confirmed to be output in the order of the frits. Furthermore, in Figure 20, the state of frits 8 to 15 was confirmed to be quite similar to the initial state mentioned in Figure 14. Therefore, it can be predicted that frits 8 to 15 will also be transferred sequentially.
[0167] According to one aspect of this specification, the data flow control logic can be simplified, and the router buffer can be eliminated or minimized. This reduces the area occupied by the router on the chip and simultaneously reduces power consumption. According to another aspect of this specification, the packet information for multicasting can be minimized. According to yet another aspect of this specification, the cost increase can be minimized even as the number of nodes increases, and the maximum bandwidth can be achieved.
[0168] While embodiments of this specification have been described above with reference to the attached drawings, a person ordinary in the art to which this specification belongs should be able to understand that the present invention can be carried out in other specific forms without altering its technical idea or essential features. Therefore, the embodiments described above should be understood to be illustrative and not restrictive in all respects. [Explanation of symbols]
[0169] 10 Arithmetic Processing Unit 100 memory 101 data memory slices 200 fetch units 210 Fetch Sequencer 220 network interfaces 221 Interface Controller 222 fetch buffer 230 Fetch Network 231 Fetch Network Controller 232 Routers 233 Arbiter Section 240 Feed Modules 242 feed buffer 250 Calculation Sequencer Modules 300 arithmetic units 310 Dot Product Engine 400 commit units 410 Commit Sequencer
Claims
1. In a processing unit including a fetch unit that reads data necessary for processing a neural network from memory and provides it to the processing unit, The fetch unit is, Multiple routers having a data processing mapping table that describes a method for processing the input data according to the node ID of the input data, The fetch network controller includes a fetch network controller that reconfigures the data processing mapping tables of the plurality of routers to form a software topology corresponding to the computation mode, Each router includes an arbiter unit that controls an input port based on tail information of the input data and modifies the tail information based on tail retention information of the input data, and is a processing unit.
2. Each router is, The arithmetic processing device according to claim 1, characterized by including a main input port into which data is input from the memory, a first transmission output port for transmitting data to an adjacent first router, a first transmission input port into which data transmitted from the adjacent first router is input, a second transmission output port for transmitting data to an adjacent second router, a second transmission input port into which data transmitted from the adjacent second router is input, and a main output port for providing data to the arithmetic unit.
3. The arithmetic processing device according to claim 1, characterized in that the data processing mapping table stores information regarding the presence or absence of blocking, reflection, and output of the input data.
4. The arithmetic processing device according to claim 3, wherein the fetch network controller sets whether or not to perform blocking, reflection, and output according to the topology to be reconfigured.
5. The arithmetic processing device according to claim 4, wherein the fetch network controller similarly configures blocking and output in the data processing mapping table of routers belonging to the same group in the reconfigured topology.
6. The fetch unit is, A network interface from which the data stored in the aforementioned memory is fetched, The network includes a fetch network that transmits the fetched data to the network interface, The arithmetic processing device according to claim 1, characterized in that the plurality of routers and fetch network controllers are included in the fetch network.
7. The aforementioned network interface is A fetch buffer for storing the fetched data, The arithmetic processing apparatus according to claim 6, further comprising an interface controller that assigns a node ID corresponding to each data memory slice to the fetched data.
8. The tail information is one of two logical values: a first logical value T which means the end of the packet, and a second logical value F which means it is not the end of the packet. The arithmetic processing device according to claim 1, characterized in that the tail retention information is one of a first logical value T that means to retain tail information and a second logical value F that means to change tail information.
9. The arbiter unit is The arithmetic processing device according to claim 8, characterized in that when controlling the input port so that data is input from the memory, if the tail information of the data input from the memory is a first logical value T, the input port is changed so that data is input from an adjacent router.
10. The arbiter unit is The arithmetic processing device according to claim 8, characterized in that when the tail information of the data input from the memory is a second logical value F, the tail information of the input data is changed to a second logical value F.
11. The arbiter unit is The arithmetic processing device according to claim 8, characterized in that when the tail information of the data input from the adjacent router is a first logical value T, it controls the input of data from the memory.
12. The arithmetic processing device according to claim 7, wherein the interface controller further sets the tail information and the tail retention information to the fetched data.
13. The arithmetic processing device according to claim 12, characterized in that the interface controller sets the tail information of the last data packet among the fetched data to a first logical value T, and sets the tail information of the remaining data to a second logical value F.
14. The arithmetic processing device according to claim 12, characterized in that the interface controller sets the tail retention information of the data having the last node ID in the software topology configuration of the router configured by the fetch network controller based on the data processing mapping table to a first logical value T, which means to retain the tail information, and sets the tail retention information of the data having the remaining node IDs to a second logical value F, which means to change the tail information.
