Data Processing Unit

The data processing device optimizes data transfer within accelerators by using control circuits to minimize overhead, enhancing parallel processing efficiency and scalability in edge computing.

JP7562151B2Active Publication Date: 2024-10-07NARA INSTITUTE OF SCIENCE AND TECHNOLOGY
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2021527755
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-06-28
Filing Date
2020-06-26
Publication Date
2024-10-07
Estimated Expiration
2040-06-26

AI Technical Summary

Technical Problem

Existing data processing systems face challenges in reducing data transfer overhead between the CPU and accelerator memory, particularly in edge computing scenarios, without increasing the memory bus width, to enhance parallel processing performance.

Method used

A data processing device with multiple accelerators connected in cascade, utilizing control circuits to efficiently transmit preparation, calculation, and data instructions across the accelerators, minimizing redundant data transmission and optimizing memory access.

Benefits of technology

This configuration achieves high efficiency by reducing overhead and enabling cost-effective, scalable, and expandable accelerator systems with improved parallel processing capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007562151000001
    Figure 0007562151000001
  • Figure 0007562151000002
    Figure 0007562151000002
  • Figure 0007562151000003
    Figure 0007562151000003
Patent Text Reader

Abstract

In a data processing device (100), a plurality of accelerator chips (Cn) (n is a natural number of 2 or greater) are connected in a cascade, each accelerator chip having disposed therein a plurality of basic units (Um) (m is a natural number from 1 to 64) each having a register section (Rm) and a logic section (Lm) that includes a memory. The accelerator chips (Cn) each comprise a control circuit (Xn) and a control circuit (Yn). The control circuit (Xn) controls input into the accelerator chip (Cn). The control circuit (Yn) controls output from the accelerator chip (Cn).
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a data processing device for use in a computer system. [Background technology]

[0002] Accelerators are widely used as a means to supplement the processing performance of a CPU (Central Processing Unit). An accelerator is configured with many arithmetic units arranged in parallel. The accelerator needs to supply data in accordance with the computing power of the arithmetic units included in the accelerator. For this reason, the accelerator needs to have a dedicated memory built in.

[0003] In addition, the data transfer overhead between the main memory connected to the CPU and the dedicated memory built into the accelerator must be reduced. For this reason, the dedicated memory built into the accelerator must be connected to the CPU as the CPU's main memory. There are two general methods for connecting each dedicated memory of multiple accelerators that have built-in dedicated memory to the CPU as main memory:

[0004] The first method is to increase the width of the memory bus that connects the main memory to the CPU and arrange multiple main memory chips in parallel. Conventional vector computers have adopted the first method because they prioritize performance. Although the first method can increase the memory bandwidth, there is a problem in that the increase in memory bus width leads to an increase in costs.

[0005] The second method is a method in which a part of the main memory address information of the main memory is decoded and the part of the decoded main memory address information is used as a chip enable signal. The second method does not increase the memory bus width. The second method has been used as a general method for increasing memory capacity. However, the second method cannot increase the memory bandwidth. From the viewpoint of making the most of the parallel processing capability of the accelerator, the second method is inferior to the first method.

[0006] The importance of edge computing is now being recognized once again. It is important to improve parallel processing performance without increasing the CPU memory bus width. In other words, the challenge is to create a new computing platform that can improve parallel processing performance based on the second method.

[0007] In view of this situation, the present inventor has invented a data processing device that eliminates the need for data transfer between the accelerator and the cache memory by placing the cache memory inside the accelerator, and by eliminating the need for such data transfer, can greatly reduce overhead (Patent Documents 1 and 2). [Prior art documents] [Patent documents]

[0008] [Patent Document 1] International Publication No. WO 2016 / 163421 [Patent Document 2] International Publication No. WO 2018 / 207883 Summary of the Invention [Problem to be solved by the invention]

[0009] The inventors have conducted extensive research into further reducing overhead and have come up with the present invention.

[0010] An object of one embodiment of the present invention is to provide a data processing device capable of improving the efficiency of an accelerator. [Means for solving the problem]

[0011] In order to solve the above problems, a data processing device according to one embodiment of the present invention is a data processing device in which a plurality of accelerator chips are cascaded, each of which has a plurality of basic units of the same configuration, each of which has a register section and a logic section including a memory, and each of the plurality of accelerator chips is equipped with a first control circuit that controls an input to the accelerator chip and a second control circuit that controls an output from the accelerator chip, and pre-preparation instruction data, which is data that instructs pre-preparation to instruct an operation for all basic units of each of the plurality of accelerator chips, is transmitted from the upstream side to the downstream side of the cascade connection between the plurality of accelerator chips, with a predetermined address range A specified, and when each of the first control circuits recognizes that it is a write to the predetermined address range A, it outputs the pre-preparation instruction data to the first control circuit downstream of the first control circuit. Effect of the Invention

[0012] According to one aspect of the present invention, the efficiency of an accelerator can be improved. [Brief description of the drawings]

[0013] [Figure 1] 1 is a configuration diagram of a data processing device according to a first embodiment of the present invention. [Diagram 2] FIG. 2 is an explanatory diagram for explaining the operation of the data processing device according to the first embodiment of the present invention. [Diagram 3] FIG. 11 is an explanatory diagram for explaining the operation of a data processing device according to a second embodiment of the present invention. [Figure 4] FIG. 11 is an explanatory diagram for explaining the operation of a data processing device according to a third embodiment of the present invention. [Diagram 5] FIG. 11 is an explanatory diagram for explaining the operation of a data processing device according to a fourth embodiment of the present invention. [Figure 6] FIG. 11 is an explanatory diagram for explaining the operation of a data processing device according to a fifth embodiment of the present invention. [Figure 7]FIG. 13 is an explanatory diagram for explaining the operation of a data processing device according to a sixth embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] <Summary of the Invention> In edge computing, it is important to achieve the following items (A) to (C).

[0015] (A) Reduction in costs for the CPU and its peripherals, i.e. saving on the memory bus connected to the CPU (B) Reducing the cost of accelerators, i.e., reducing the chip size of accelerators. (C) Improved accelerator scalability, i.e., the realization of scalability that enables performance requirements to be met simply by increasing or decreasing the number of accelerator chips.

[0016] According to the present invention, the following items (1) to (6) can be simultaneously achieved.

[0017] (1) The CPU can control all the accelerator chips at high speed. (2) The CPU can broadcast the mapping of calculation functions to the accelerator at once. (3) When setting register values ​​such as address information for the accelerator's built-in memory, overhead can be reduced by broadcasting common information between chips to all chips and transmitting only the differences individually. (4) When writing to the accelerator's built-in memory, overhead can be reduced by broadcasting to all chips by taking advantage of overlapping address ranges. (5)When reading from the accelerator's built-in memory, the read address can be broadcast to multiple chips at high speed, allowing multiple chips to be read in parallel. (6) The CPU can obtain the accelerator status by obtaining it only from the first chip.

[0018] According to the present invention, by simultaneously achieving the above (1) to (6), it is possible to reduce overhead even in a configuration in which multiple accelerators are cascaded. By reducing overhead, it is possible to achieve the above items (A) to (C).

[0019] <Embodiment 1> Hereinafter, the first embodiment of the present invention will be described in detail.

[0020] Fig. 1 is a configuration diagram of a data processing device 100 according to this embodiment. As shown in Fig. 1, the data processing device 100 includes a host H consisting of a CPU, and n accelerator chips C1, C2, ..., Cn (n is a natural number equal to or greater than 2). Note that if the number of accelerator chips exceeds a certain level, it is possible that the effect of the present invention will not be obtained. In practice, the upper limit of the number of accelerator chips is thought to be around 16.

[0021] First, the configuration of a data processing device 100 will be described with reference to FIG.

[0022] The host H includes an instruction memory unit, an instruction fetch unit, and an instruction decode unit. The instruction memory unit holds a program consisting of a plurality of instructions. The instruction memory unit may be a partial area of ​​the main memory of the host H, or may be an instruction buffer that holds a portion of the main memory. The instruction fetch unit fetches necessary instructions from the instruction memory unit, and the instruction decode unit decodes the fetched instructions. The processing contents in each of the n accelerator chips C1, C2, ..., Cn are determined based on the results of decoding by the instruction decode unit.

[0023] The host H is used to send data to each of the n accelerator chips C1, C2, . . . , Cn.

[0024] 1, the accelerator chips C1, C2, ..., Cn are cascade-connected to the host H. More specifically, if the host H side is considered to be the upstream side, the accelerator chips C1, C2, ..., Cn can be said to be connected in this order from the upstream side to the downstream side like a daisy chain.

[0025] Each of the accelerator chips C1,...,Cn includes 64 basic units U1, U2,...,U63,U64, control circuits X1,...,Xn (first control circuits), and control circuits Y1,...,Yn (second control circuits). The accelerator chips C1, C2,...,Cn have the same hardware configuration. In the following, the control circuits X1,...,Xn are collectively referred to as the control circuit X. In the following, the control circuits Y1,...,Yn are collectively referred to as the control circuit Y.

[0026] The basic units U1, U2, ..., U63, U64 are arranged in a row in this order. The calculation result by the basic unit U1 is transferred from the basic unit U1 to the basic unit U2. The calculation result by the basic unit U2 is transferred from the basic unit U2 to the basic unit U3. Similarly, the calculation result by the basic unit U63 is transferred from the basic unit U63 to the basic unit U64. That is, between the basic units n-1 and n, which are adjacent to each other, the calculation result by the basic unit n-1 is transferred from the basic unit n-1 to the basic unit n. The calculation result by the basic unit U64 may be transferred again from the basic unit U64 to the basic unit U1.

[0027] In the data processing device 100, the row of basic units U1, ..., U64 has multiple turn-back points, but the row may be arranged in a straight line. Also, the row of basic units U1, ..., U64 may be arranged in a spiral shape.

[0028] Each of the basic units U1, ..., U64 includes a logic section L1, ..., L64 and a register section R1, ..., R64. For example, if the m-th basic unit Um is the basic unit from the beginning of the string of basic units U1, ..., U64, it includes a logic section Lm and a register section Rm. Here, m is a natural number from 1 to 64. The basic units U1, ..., U64 have the same hardware configuration as each other. Each of the basic units U1, ..., U64 realizes the same configuration and operation as the configuration and operation of the basic unit described in Patent Document 1 or Patent Document 2. The configuration and operation of each of the basic units U1, ..., U64 are described in detail in Patent Document 1 and Patent Document 2. Therefore, the configuration and operation will not be described here.

[0029] The control circuit X1 is connected to the host H via an input bus iB1. The control circuit Y1 is connected to the host H via an output bus oB1.

[0030] The control circuits X2,...,Xn are connected to the control circuits X1,...,Xn-1 via the input buses iB2,...,iBn, respectively. The control circuits Y2,...,Yn are connected to the control circuits Y1,...,Yn-1 via the output buses oB2,...,oBn, respectively.

[0031] The control circuit X is provided with an input a, an output b, and an output c.

[0032] In the control circuit X1, the input a is connected to the host H via an input bus iB1. The output b is connected to the input a of the control circuit X2 via an input bus iB2. The output c is connected to each of the basic units U1, U2, ..., U8 via a plurality of data lines arranged inside the accelerator chip C1.

[0033] In the control circuits X2,...,Xn-1, the input a is connected to the output b of the control circuits X1,...,Xn-2 via the input buses iB2,...,iBn-1. The output b is connected to the input a of the control circuits X3,...,Xn via the input buses iB3,...,iBn. The output c is connected to each of the basic units U1, U2,...,U8 of the accelerator chips C2,...,Cn-1 via a plurality of data lines arranged inside the accelerator chips C2,...,Cn-1.

[0034] In the control circuit Xn, the input a is connected to the output b of the control circuit Xn-1 via the input bus iBn. The output b has no connection destination because the accelerator chip Cn is the accelerator chip arranged on the most downstream side. The output c is connected to each of the basic units U1, U2, ..., U8 of the accelerator chip Cn via multiple data lines arranged inside the accelerator chip Cn.

[0035] In the control circuit X, data output from output c to basic unit U1 is transferred to basic units U16, U17, U32, U33, U48, U49, and U64 in this order. Data output from output c to basic unit U2 is transferred to basic units U15, U18, U31, U34, U47, U50, and U63 in this order. Data output from output c to basic unit U3 is transferred to basic units U14, U19, U30, U35, U46, U51, and U62 in this order. Data output from output c to basic unit U4 is transferred to basic units U13, U20, U29, U36, U45, U52, and U61 in this order. Data output from output c to basic unit U5 is transferred to basic units U12, U21, U28, U37, U44, U53, and U60, in this order. Data output from output c to basic unit U6 is transferred to basic units U11, U22, U27, U38, U43, U54, and U59, in this order. Data output from output c to basic unit U7 is transferred to basic units U10, U23, U26, U39, U42, U55, and U58, in this order. Data output from output c to basic unit U8 is transferred to basic units U9, U24, U25, U40, U41, U56, and U57, in this order.

[0036] The control circuit Y is provided with an input d, an input e and an output f.

[0037] In the control circuit Y1, the input d is connected to the output f of the control circuit Y2 via the output bus oB2. The input e is connected to each of the basic units U57, U58, ..., U64 via a plurality of data lines arranged inside the accelerator chip C1. The output f is connected to the host H via the output bus oB1.

[0038] In the control circuits Y2,...,Yn-1, the input d is connected to the output f of the control circuits Y3,...,Yn via the output buses oB3,...,oBn. The input e is connected to each of the basic units U57, U58,...,U64 of the accelerator chips C2,...,Cn-1 via a plurality of data lines arranged inside the accelerator chips C2,...,Cn-1. The output f is connected to the input d of the control circuits Y1,...,Yn-2 via the output buses oB2,...,oBn-1.

[0039] In the control circuit Yn, the input d has no connection destination because the accelerator chip Cn is the accelerator chip arranged on the most downstream side. The input e is connected to each of the basic units U57, U58, ..., U64 via multiple data lines arranged inside the accelerator chip Cn. The output f is connected to the input d of the control circuit Yn-1 via the output bus oBn.

[0040] Next, the operation of the data processing device 100 will be described with reference to Fig. 2. Fig. 2 is an explanatory diagram for explaining the operation of the data processing device 100. The operation of the data processing device 100 shown in Fig. 2 is an operation in which the host H instructs all of the accelerator chips C1, ..., Cn to perform advance preparations such as resetting, initial setting, starting, restarting, etc., for instructing calculations to the basic units U1, ..., U64 of the accelerator chips C1, ..., Cn.

[0041] The advance preparation instruction is performed by transmitting advance preparation instruction data from the host H to all of the accelerator chips C1, ..., Cn. The advance preparation instruction data is transmitted to all of the basic units U1, ..., U64 of each of the accelerator chips C1, ..., Cn. Specifically, the host H outputs the advance preparation instruction data to the input bus iB1. The advance preparation instruction data is input to the input a of the control circuit X of the accelerator chip C1 via the input bus iB1.

[0042] The control circuit X1 recognizes a request to write to a specific address range (hereinafter referred to as "address range A") from the advance preparation instruction data. The control circuit X1 outputs the advance preparation instruction data input from input a to the input bus iB2 from output b. The advance preparation instruction data is input to the input a of the control circuit X2 via the input bus iB2.

[0043] The important point here is that the control circuit X1 outputs the advance preparation instruction data input from the input a to the input bus iB2 from the output b, but does not output it to multiple data lines from the output c. By the control circuit X1 not outputting the advance preparation instruction data from the output c to multiple data lines, the transmission of the advance preparation instruction data from the accelerator chip C1 to the accelerator chip C2 is accelerated.

[0044] The control circuits X2, . . . , Xn-1 perform the above-mentioned operations in the same manner as the control circuit X1. The advance preparation instruction data is transmitted at high speed from the host H to the accelerator chip Cn on the most downstream side.

[0045] The advance preparation instruction data also includes a specified area (hereinafter referred to as the "count area"). When the host H outputs the advance preparation instruction data to the input bus iB1, it writes "0" to the count area. The control circuit X1 adds "1" to the "0" written in the count area of ​​the advance preparation instruction data input to the control circuit X1. The control circuit X1 then outputs the advance preparation instruction data in which the addition result, "1", has been written. The advance preparation instruction data with the updated count area is transmitted from the accelerator chip C1 to the accelerator chip C2.

[0046] Meanwhile, the control circuit X1 stores in a predetermined register (hereinafter referred to as the "chip number register") built into the control circuit X1 the "0" written in the count area of ​​the advance preparation instruction data output from the host H. The "0" stored in the chip number register is the chip number of the accelerator chip C1 including the control circuit X1. The chip number is a number indicating the ordinal number of each of the accelerator chips C1, ..., Cn when counting the accelerator chips C1, ..., Cn from the upstream side to the downstream side. If the chip number on the most upstream side is "0", then the chip number of the accelerator chip C1 is "0".

[0047] The control circuits X2,...,Xn perform the above-mentioned operations in the same manner as the control circuit X1. The control circuits X2,...,Xn can store the chip number of the accelerator chip including the control circuit X2,...,Xn in a chip number register built into the control circuit X2,...,Xn.

[0048] For example, in the case of the accelerator chip C2, the control circuit X2 adds "1" to the "1" written in the count field of the advance preparation instruction data input to the control circuit X2. The control circuit X2 outputs the advance preparation instruction data in which the addition result, "2," is written. The advance preparation instruction data with the count field updated is then transmitted from the accelerator chip C2 to the accelerator chip C3.

[0049] The control circuit X2 stores the "1" written in the count area of ​​the advance preparation instruction data output from the accelerator chip C1 in a chip number register built in the control circuit X2. The "1" stored in the chip number register is the chip number of the accelerator chip C2 including the control circuit X2.

[0050] In addition, when a malfunction occurs in the accelerator chip including the control circuit X, the control circuit X may not update the count area as described above. A chip number is not given to the accelerator chip in which the malfunction occurs, and the accelerator chip in which the malfunction occurs can be prevented from being used. The occurrence of the malfunction can be recognized by using a self-diagnosis function mounted on the accelerator chip.

[0051] <Embodiment 2> The operation of the data processing device 100 according to the second embodiment will be described with reference to Fig. 3. Fig. 3 is an explanatory diagram for explaining the operation of the data processing device 100. The operation of the data processing device 100 shown in Fig. 3 is an operation in which the host H issues an instruction to perform calculations to all of the accelerator chips C1, ..., Cn.

[0052] An operation instruction is issued by transmitting operation instruction data from the host H to all of the accelerator chips C1,...,Cn. The operation instruction data is mapped to all of the accelerator chips C1,...,Cn. More specifically, the operation instruction data is transmitted to a basic unit that is the target of the operation instruction, among the basic units U1,...,U64 of each of the accelerator chips C1,...,Cn. Specifically, the host H outputs the operation instruction data to the input bus iB1. The operation instruction data is input to the input a of the control circuit X1 via the input bus iB1.

[0053] The operation instruction data describes a request for writing to a specific address range (hereinafter referred to as "address range B.") The control circuit X1 recognizes the request for writing to address range B from the operation instruction data.

[0054] The control circuit X1 outputs the operation instruction data input from input a to the input bus iB2 from output b. The operation instruction data is input to the input a of the control circuit X2 via the input bus iB2. The control circuit X1 also outputs the operation instruction data input from input a to a plurality of data lines from output c. The operation instruction data is input to each of the basic units U1, ..., U8 via the plurality of data lines. The output of the operation instruction data to the input bus iB2 and the output of the operation instruction data to the plurality of data lines are executed simultaneously when the input bus iB2 and the plurality of data lines become available, respectively.

[0055] The above-mentioned operation instruction data input to each of the basic units U1, ..., U8 via multiple data lines is transferred from each of the basic units U1, ..., U8 to each of the basic units U64, ..., U57, as described above. The above operation instruction data is written to register sections R1, R2, R3, R14, R15, R16, R17, R18, R19, R30, R31, R32, R33, R34, R35, R46, R47, R48, R49, R50, R51, R62, R63, and R64 of basic units U1, U2, U3, U14, U15, U16, U17, U18, U19, U30, U31, U32, U33, U34, U35, U46, U47, U48, U49, U50, U51, U62, U63, and U64 based on address range B (the range indicated by P in Figure 3).

[0056] The above-mentioned operation instruction data transferred from each of the basic units U1, . . . , U8 to each of the basic units U64, U63, . . . , U56, U57 is input to an input e of the control circuit Y1 via a plurality of data lines.

[0057] The important point here is that the control circuit Y1 erases the above-mentioned operation instruction data input to the input e from each of the basic units U64, ..., U57 inside the control circuit Y1. Therefore, the control circuit Y1 does not need to transmit the above-mentioned operation instruction data from the output f to the host H via the output bus oB1. By eliminating the need to transmit the above-mentioned operation instruction data, the transmission of the operation instruction data from the host H to the accelerator chip C1 is accelerated.

[0058] The control circuits Y2, . . . , Yn of the accelerator chips C2, . . . , Cn perform the above-mentioned operations in the same manner as the control circuit Y1. Calculation instruction data is transmitted at high speed from the host H to the accelerator chip Cn on the most downstream side.

[0059] <Embodiment 3> The operation of the data processing device 100 according to the third embodiment will be described with reference to Fig. 4. Fig. 4 is an explanatory diagram for explaining the operation of the data processing device 100. The operation of the data processing device 100 shown in Fig. 4 is an operation of writing register values ​​such as address information from the host H to each of the accelerator chips C1, . . . , Cn.

[0060] The register values ​​such as address information include address information and a setting value for the register section of each basic unit. The address information indicates a pair of the start and end addresses that are handled by the memory included in the logic section of each basic unit. The address information is set for each basic unit.

[0061] Whether or not to use the memory included in the logic part of the basic unit is included in the operation instruction data of the above embodiment 2. That is, the operation instruction data specifies that the memory is to be used, and read / write to the memory is executed only when the address input from the control circuit X is within the range specified by the address information.

[0062] The address information is written by transmitting the address information from the host H to all of the accelerator chips C1, ..., Cn. Specifically, the host H outputs the address information to the input bus iB1. The address information is input to the input a of the control circuit X1 via the input bus iB1.

[0063] The address information is included in a write request to a predetermined address range (hereinafter referred to as "address range C.") By recognizing the write request to address range C, the control circuit X1 recognizes that it is a request to write address information.

[0064] The control circuit X1 outputs the address information input from the input a to the input bus iB2 from the output b. The address information is input to the input a of the control circuit X2 via the input bus iB2. The control circuit X1 also outputs the address information input from the input a to a plurality of data lines from the output c. The address information is input to each of the basic units U1, ..., U8 via the plurality of data lines. The output of the address information to the input bus iB2 and the output of the address information to the plurality of data lines are executed simultaneously when the input bus iB2 and the plurality of data lines become available, respectively.

[0065] The address information input to each of the basic units U1, ..., U8 via multiple data lines is transferred from each of the basic units U1, ..., U8 to each of the basic units U64, ..., U57, as described above. The address information is written, for example, to the register sections R4, R13, R20 of the basic units U4, U13, U20 based on the address range C.

[0066] Here, the address information includes the chip numbers of the accelerator chips C1,...,Cn. The accelerator chips whose chip numbers are included in the address information are the accelerator chips in which the basic units U1,...,U64 in which the setting values ​​included in the register values ​​are stored are arranged. If the chip number included in the address information is "0", the setting values ​​are written to the register sections R1,...,R64 of the basic units U1,...,U64 in which the setting values ​​are stored for each of the multiple accelerator chips C1,...,Cn.

[0067] On the other hand, if the chip number included in the address information is other than "0", the setting value is written to each register section R1, ..., R64 of the basic units U1, ..., U64 in which the setting value is to be stored for the accelerator chips C1, ..., Cn having a chip number that matches the number indicated by the chip number included in the address information.

[0068] The address information transferred from each of the basic units U1, . . . , U8 to each of the basic units U64, . . . , U57 is input to the input e of the control circuit Y1 via a plurality of data lines.

[0069] The important point here is that the control circuit Y1 erases the address information input to the input e from each of the basic units U64, ..., U57 inside the control circuit Y1. Therefore, the control circuit Y1 does not need to transmit the address information from the output f to the host H via the output bus oB1. By eliminating the need to transmit the address information, the transmission of the address information from the host H to the accelerator chip C1 is accelerated.

[0070] The control circuits Y2, . . . , Yn perform the above-mentioned operations in the same manner as the control circuit Y1. Address information is transmitted at high speed from the host H to the accelerator chip Cn on the most downstream side.

[0071] <Embodiment 4> The operation of the data processing device 100 according to the fourth embodiment will be described with reference to Fig. 5. Fig. 5 is an explanatory diagram for explaining the operation of the data processing device 100. The operation of the data processing device 100 shown in Fig. 5 is an operation of writing operation data to be used for an operation from the host H to each of the accelerator chips C1, ..., Cn. More specifically, this operation is an operation of writing data required for an operation to a memory included in the logic part of the basic unit before the start of an operation.

[0072] Writing to the memory included in the logic part of the basic unit is performed by transmitting write data from the host H to all of the accelerator chips C1, ..., Cn. Specifically, the host H outputs the write data to the input bus iB1. The write data is input to the input a of the control circuit X1 via the input bus iB1.

[0073] A write request to a predetermined address range (hereinafter referred to as "address range D") includes a write address and write data for a memory included in the logic part of the basic unit. The control circuit X1 recognizes a write request to address range D, and recognizes the write address and write data for a memory included in the logic part of the basic unit from the recognized write request.

[0074] The control circuit X1 outputs the write address and write data input from the input a to the input bus iB2 from the output b. The write address and write data are input to the input a of the control circuit X2 via the input bus iB2. The control circuit X1 also outputs the write address and write data input from the input a to a plurality of address lines and data lines from the output c. The write address and write data are input to each of the basic units U1, ..., U8 via a plurality of address lines and data lines. The output of the write address and write data to the input bus iB2 and the output of the write address and write data to the plurality of address lines and data lines are executed simultaneously when the input bus iB2 and the plurality of address lines and data lines become available.

[0075] The write address and write data input to each of the basic units U1, ..., U8 via a plurality of address lines and data lines are transferred from each of the basic units U1, ..., U8 to each of the basic units U64, ..., U57, as described above. The write address and write data are written to memories included in the logic parts L4, L6, L27, L29, L36, L38, L59, and L61 of the basic units U4, U6, U27, U29, U36, U38, U59, and U61 based on the address range D. At this time, the address range D may overlap within the accelerator chip and between accelerator chips. In the case of overlap, writing is performed simultaneously to the memories of the logic parts of the multiple basic units.

[0076] The write address and write data transferred from each of the basic units U1, . . . , U8 to each of the basic units U64, . . . , U57 are input to an input e of the control circuit Y1 via a plurality of address lines and data lines.

[0077] The important point here is that the control circuit Y1 erases the write address and write data input to the input e from each of the basic units U64, ..., U57 inside the control circuit Y1. Therefore, the control circuit Y1 does not need to transmit the write address and write data from the output f to the host H via the output bus oB1. By eliminating the need to transmit the write address and write data, the transmission of the write address and write data from the host H to the accelerator chip C1 is accelerated.

[0078] The control circuits Y2, . . . , Yn perform the above-mentioned operations in the same manner as the control circuit Y1. The write address and write data are transmitted at high speed from the host H to the accelerator chip Cn on the most downstream side.

[0079] <Embodiment 5> The operation of the data processing device 100 according to the fifth embodiment will be described with reference to Fig. 6. Fig. 6 is an explanatory diagram for explaining the operation of the data processing device 100. The operation of the data processing device 100 shown in Fig. 6 is an operation of reading out operation result data, which is the result of operation, from the host H to each of the accelerator chips C1, ..., Cn. More specifically, this operation is an operation of reading out the operation result data, which is the result of operation, from a memory included in the logic part of the basic unit.

[0080] The calculation result data is read by transmitting a read start address and length from the host H to all of the accelerator chips C1, ..., Cn. Specifically, the host H outputs the read start address and length to the input bus iB1. The read start address and length are input to the input a of the control circuit X1 via the input bus iB1.

[0081] The read request for the address range D includes a read start address and a length. The control circuit X1 recognizes the read request for the address range D, and recognizes the read start address and the length from the memory included in the logic part of the basic unit from the recognized read request.

[0082] The control circuit X1 outputs the read start address and length input from the input a to the input bus iB2 from the output b. The read start address and length are input to the input a of the control circuit X2 via the input bus iB2. Based on the read start address and length input from the input a, the control circuit X1 sequentially outputs a number of read addresses corresponding to the length to a plurality of data lines from the output c. The plurality of read addresses are input to each of the basic units U1, ..., U8 via a plurality of address lines. The output of the read start address and length to the input bus iB2 and the output of a number of read addresses corresponding to the length to the plurality of address lines are executed simultaneously when the input bus iB2 and the plurality of address lines become available.

[0083] The read addresses corresponding to the length input to each of the basic units U1, ..., U8 via multiple address lines are transferred from each of the basic units U1, ..., U8 to each of the basic units U64, ..., U57, as described above. Based on the address range D, the calculation result data is read from the memory included in the logic part L38 of the basic unit U38. At this time, the control circuit X1 records the read start address and length included in the address range D inside the control circuit X1, and transmits the read start address and length to the control circuit X2.

[0084] Based on the read start address and a number of read addresses according to the length transferred from each of the basic units U1, ..., U8 to each of the basic units U64, ..., U57, each unit reads its assigned memory range, and the read data is input to the input e of the control circuit Y1 via multiple data lines.

[0085] In addition, when the address range D overlaps within each of the accelerator chips C1, ..., Cn and between different accelerator chips, writing to the memory of each logic unit L1, ..., L64 of the basic units U1, ..., U64 within one accelerator chip and to the memory of each logic unit L1, ..., L64 of the basic units U1, ..., U64 within a different accelerator chip is performed simultaneously.

[0086] The important point here is that the control circuit Y1 transmits the above-mentioned calculation result data input to the input e from each of the basic units U64, ..., U57 to the host H from the output f together with the calculation result data transmitted from the control circuit Y2. Therefore, the control circuit Y1 does not need to repeatedly perform the process of transmitting the above-mentioned calculation result data from the output f to the host H. Since it is no longer necessary to repeatedly perform the process of transmitting the above-mentioned calculation result data, the transmission of the calculation result data from the accelerator chip C1 to the host H is accelerated.

[0087] The control circuits Y2, . . . , Yn perform the above-mentioned operations in the same manner as the control circuit Y1. The calculation result data is transmitted from the most downstream accelerator chip Cn to the host H at high speed.

[0088] <Embodiment 6> The operation of the data processing device 100 according to the sixth embodiment will be described with reference to Fig. 7. Fig. 7 is an explanatory diagram for explaining the operation of the data processing device 100. The operation of the data processing device 100 shown in Fig. 7 is an operation in which the host H confirms the completion of the operation with respect to each of the accelerator chips C1, . . . , Cn.

[0089] The operation completion confirmation operation is performed by sending an instruction from the host H to the accelerator chip C1 to read a specific register (hereinafter referred to as the "status register") built into the control circuit X1. Specifically, the host H outputs a read request for the status register to the input bus iB1. The read request for the status register is input to the input a of the control circuit X1 via the input bus iB1.

[0090] The status register can be read by reading from the address range A. The control circuit X1 recognizes a read request to a specific register unit included in the address range A, and recognizes that it is a read request of the status register.

[0091] The important point here is that the control circuit X1 does not output the read instruction of the status register input from the input a to the input bus iB2 from the output b, and does not output it to multiple data lines from the output c. The control circuit X1 transmits the contents of the status register of the control circuit X1 to the host H. More specifically, the control circuit X1 outputs the contents of the status register of the control circuit X1 to the control circuit Y1, and the control circuit Y1 transmits the contents of the status register to the host H. This speeds up the calculation completion report from the accelerator chip C1 to the host H.

[0092] The present invention is not limited to the above-described embodiments, and various modifications are possible within the scope of the claims. Embodiments obtained by appropriately combining the technical means disclosed in different embodiments are also included in the technical scope of the present invention. [Explanation of symbols]

[0093] 100 Data processing device C1, C2, ..., Cn Accelerator Chip H host X1,...,Xn,Y1,...,Yn Control circuit U1,...,U64 Basic unit iB1,...,iBn Input bus oB1,...,oBn Output bus

Claims

1. A data processing device in which a plurality of accelerator chips are cascaded, the data processing device including a plurality of basic units having the same configuration, each basic unit having a register unit and a logic unit including a memory, Each of the plurality of accelerator chips includes a first control circuit that controls an input to the accelerator chip and a second control circuit that controls an output from the accelerator chip; advance preparation instruction data, which is data instructing advance preparation for instructing an operation for all basic units of each of the plurality of accelerator chips, is transmitted from an upstream side to a downstream side of a cascade connection between the plurality of accelerator chips with a specified address range A specified, a data processing device characterized in that, when each of the first control circuits recognizes that a write is to be made to the specified address range A, it outputs the advance preparation instruction data to a first control circuit downstream of the first control circuit in question.

2. the advance preparation instruction data includes a count area into which "0" is written when the advance preparation instruction data is output to the data processing device, each of the first control circuits writes an addition result obtained by adding "1" to the value written in the count area into the count area, and outputs the advance preparation instruction data including the count area to a downstream first control circuit; 2. The data processing device according to claim 1, wherein each of the first control circuits stores a value written in a count area of ​​the advance preparation instruction data input to the first control circuit in a chip number register built into the first control circuit as a chip number of an accelerator chip including the first control circuit.

3. operation instruction data, which is data instructing an operation for a basic unit that is a target of an operation instruction among each basic unit of the plurality of accelerator chips, is transmitted from the upstream side to the downstream side with a predetermined address range B specified, and is mapped to all of the plurality of accelerator chips; The operation instruction data output to the basic unit is written into each register of the basic unit that is the target of the operation instruction based on the predetermined address range B; 3. The data processing device according to claim 2, wherein each of said second control circuits erases said operation instruction data inputted to said second control circuit from said basic unit.

4. 4. The data processing device according to claim 3, characterized in that when each of the first control circuits recognizes that a write is to be made to the specified address range B, it outputs the operation instruction data to the first control circuit downstream of the first control circuit and to the basic unit connected to the first control circuit when it becomes possible to output the operation instruction data to the first control circuit downstream of the first control circuit and to the basic unit connected to the first control circuit.

5. A register value including the same or different address information and a setting value for each of the plurality of accelerator chips is transmitted from the upstream side to the downstream side with a predetermined address range C being specified, The setting value included in the register value is written to each register section of the basic unit that is to store the setting value based on address information included in the register value output to the basic unit; 5. The data processing device according to claim 1, wherein each of said second control circuits erases the register value input to said second control circuit from said basic unit.

6. When each of the first control circuits recognizes that the write is to the predetermined address range C, when it becomes possible to output the register value to the first control circuit downstream of the first control circuit and to the basic unit connected to the first control circuit, the register value is output to the first control circuit downstream of the first control circuit and to the basic unit connected to the first control circuit; the address information includes a chip number of an accelerator chip in which a basic unit in which the setting value is to be stored is arranged, If the chip number included in the address information is "0", the setting value is written to each register section of the basic unit in which the setting value is to be stored for each of the plurality of accelerator chips; 6. The data processing device according to claim 5, wherein, if the chip number included in the address information is other than "0", the setting value is written to each register section of the basic unit in which the setting value is to be stored, for an accelerator chip having a chip number that matches the number indicated by the chip number included in the address information.

7. write data to a memory included in a logic unit of the same or different basic units for each of the plurality of accelerator chips is transmitted from the upstream side to the downstream side with a predetermined address range D specified; The write data is written into a memory included in each logic part of a basic unit to which the write data is to be written, based on the predetermined address range D; 7. The data processing device according to claim 5, wherein each of said second control circuits erases the write data inputted to said second control circuit from said basic unit.

8. The data processing device according to claim 7, characterized in that when each of the first control circuits recognizes that a write is to be made to the specified address range D, it outputs the register value to the first control circuit downstream of the first control circuit and to the basic unit connected to the first control circuit when it becomes possible to output the register value to the first control circuit downstream of the first control circuit and to the basic unit connected to the first control circuit.

9. 9. The data processing device according to claim 8, wherein when the predetermined address range D overlaps within each of the plurality of accelerator chips and between different accelerator chips, writing to memories of each logic part of the plurality of basic units is performed simultaneously.

10. reading out the operation result data, which is the operation result of each of the plurality of accelerator chips, is performed by transmitting a read start address and a length to each of the plurality of accelerator chips from the upstream side to the downstream side; When each of the first control circuits recognizes that the read is to be performed on the predetermined address range D, the first control circuit outputs the read head address and length to a basic unit connected to the first control circuit; The operation result data read from the memory of the logic unit of each basic unit of each of the plurality of accelerator chips based on the read start address and length is input to each of the second control circuits; A data processing device as claimed in any one of claims 7 to 9, characterized in that each of the second control circuits outputs to the upstream side the calculation result data input from the basic unit to the second control circuit and the calculation result data output from a second control circuit downstream of the second control circuit.

11. the confirmation of the completion of the operation of each of the plurality of accelerator chips is performed by transmitting, to the most upstream accelerator chip, an instruction to read a status register built into a first control circuit of the accelerator chip; When the first control circuit recognizes that the read is to the predetermined address range A, it outputs the contents of the status register of the first control circuit to the second control circuit of the most upstream accelerator chip; 11. The data processing device according to claim 1, wherein the second control circuit outputs the content of the status register.

Citation Information

Patent Citations

  • Graphic accelerator pipeline structure for work station

    JP1987229375A

  • Apparatus and method for cascading graphic processors

    US5530798A

  • Data processing device

    WO2016163421A1

  • Data processing device

    WO2018207883A1