Semiconductor device and method of controlling a semiconductor device

By combining the state transition management unit and the parallel computing unit, flexible reconfiguration of the array-type processor is achieved, solving the problem of insufficient flexibility in the existing technology and improving computing efficiency and adaptability.

CN112667559BActive Publication Date: 2026-11-20RENESAS ELECTRONICS CORP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202011102904.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-10-16
Filing Date
2020-10-15
Publication Date
2026-11-20
Estimated Expiration
2040-10-15

AI Technical Summary

Technical Problem

Existing array-type processors lack flexibility while maintaining high computing performance, making it difficult to dynamically reconfigure them to adapt to different computing tasks.

Method used

The data path configuration is managed by the state transition management unit. Through the combination of the state transition management unit and the parallel computing unit, flexible reconfiguration and efficient operation of the data path are achieved.

Benefits of technology

While maintaining high computing performance, it improves the processor's flexibility and computing efficiency, enabling dynamic reconfiguration to adapt to different computing task requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112667559B_ABST
    Figure CN112667559B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a semiconductor device and a method of controlling the same. The semiconductor device includes a data path having a plurality of processor elements, a state transition management unit managing a state of the data path, and a parallel computing unit in which input and output of data are performed in order and an output of which is able to be handled by the plurality of processor elements.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Cross-references to related applications

[0002] Japanese Patent Application No. 2019-189601, filed on October 16, 2019, is disclosed, including a description, drawings and abstract, which are incorporated herein by reference in their entirety. Background Technology

[0003] This invention relates to a semiconductor device and a method for controlling a semiconductor device, for example, to a semiconductor device having multiple processor elements (hereinafter also referred to as PE) and a method for controlling a semiconductor device.

[0004] As a processor with multiple PEs, there exists a dynamically reconfigurable processor (DRP, also referred to below as an array processor). Array processors can dynamically switch the operations performed by PEs and the connections between PEs, and can dynamically reconfigure the configuration of the array processor.

[0005] The publicly available technologies are listed below.

[0006] [Patent Document 1] Japanese Unexamined Patent Application Publication No. 2001-312481. Summary of the Invention

[0007] Having previously evaluated the technology, the inventors of this invention have identified room for further improvement from the perspectives of flexibility and other aspects. Other issues and new features will become apparent from the description in this specification and the accompanying drawings. Incidentally, Patent Document 1 discloses the technology of an array-type processor, but does not disclose an array-type processor that offers excellent flexibility while maintaining high computing performance.

[0008] The semiconductor device according to one embodiment is as follows.

[0009] In other words, the semiconductor device includes: a data path having multiple processor elements; a state transition management unit that manages the state related to the configuration of the data path; and a parallel computing unit that sequentially performs data input and output, the output and / or input of which are processed by the multiple processor elements.

[0010] According to one embodiment, a semiconductor device and a method for controlling the semiconductor device can be provided, which can ensure the flexibility of processing content while maintaining high computing performance. Attached Figure Description

[0011] Figure 1 This is a block diagram illustrating the configuration of the semiconductor device according to the first embodiment;

[0012] Figure 2This is a block diagram illustrating the configuration of the parallel computing unit according to the first embodiment;

[0013] Figure 3A This is a block diagram illustrating the state transition management unit according to the first embodiment;

[0014] Figure 3B This is a block diagram illustrating the state transition management unit according to the first embodiment;

[0015] Figure 4 This is a block diagram illustrating the configuration of the PE according to the first embodiment;

[0016] Figure 5 This is a view showing an example of a neural network configuration;

[0017] Figure 6 This is a schematic diagram illustrating the arithmetic processing flow of a neural network;

[0018] Figure 7 This is a schematic view illustrating matrix operation expressions;

[0019] Figure 8 This is a view showing matrix operation expressions;

[0020] Figure 9 This is a block diagram illustrating the configuration of the parallel computing unit according to the first embodiment;

[0021] Figure 10 This is a view showing the functional blocks of an arithmetic processing unit implemented by an array-type processor according to the first embodiment;

[0022] Figure 11 This is a functional block diagram of an array-type processor according to a first modified example of the first embodiment;

[0023] Figure 12 This is a functional block diagram of an array-type processor according to a second modified example of the first embodiment;

[0024] Figure 13 This is a functional block diagram of an array-type processor according to a third modified example of the first embodiment;

[0025] Figure 14 This is a functional block diagram of an array-type processor according to a fourth modified example of the first embodiment;

[0026] Figure 15 This is a functional block diagram of an array-type processor according to the fifth modification of the first embodiment;

[0027] Figure 16 This is a functional block diagram of an array-type processor according to the sixth modification of the first embodiment;

[0028] Figure 17 This is a functional block diagram of an array-type processor according to the seventh modification of the first embodiment;

[0029] Figure 18 This is a timing diagram illustrating the relationship between the state transition management unit and the data path according to the first embodiment;

[0030] Figure 19 This is a block diagram illustrating the configuration of a semiconductor device according to a second embodiment;

[0031] Figure 20 This is a block diagram illustrating the configuration of the parallel computing unit according to the second embodiment;

[0032] Figure 21A This is a view illustrating the relationship between the local memory and the parallel computing unit according to the second embodiment;

[0033] Figure 21B This is a view illustrating the relationship between the local memory and the parallel computing unit according to the second embodiment;

[0034] Figure 22 This is a block diagram illustrating the configuration of a semiconductor device according to a third embodiment;

[0035] Figure 23 This is a view illustrating an example of a dedicated arithmetic unit according to a third embodiment;

[0036] Figure 24 This is a plan view showing the arrangement of semiconductor chips in an array-type processor according to the fourth embodiment;

[0037] Figure 25 This is a plan view showing the arrangement of the array-type processor according to the first modified example of the fourth embodiment;

[0038] Figure 26 This is a plan view showing the arrangement of the array-type processor according to the second modified example of the fourth embodiment;

[0039] Figure 27 This is a plan view showing the arrangement of the array-type processor according to the third modified example of the fourth embodiment;

[0040] Figure 28 This is a plan view showing the arrangement of the array-type processor according to the fourth modified example of the fourth embodiment;

[0041] Figure 29 This is a plan view showing the arrangement of the array-type processor according to the fifth modified example of the fourth embodiment;

[0042] Figure 30 This is a block diagram illustrating the configuration of the processing system according to the fifth embodiment; and

[0043] Figure 31 This is a block diagram illustrating the configuration of an array-type processor according to the sixth embodiment. Detailed Implementation

[0044] In the following, embodiments of the invention will be described in detail with reference to the accompanying drawings. Note that this disclosure is merely illustrative, and naturally, any modifications readily made by those skilled in the art while maintaining the spirit of the invention are included within its scope. Furthermore, to make the description clearer, the drawings schematically illustrate the width, thickness, shape, etc., of each portion compared to the actual aspects; however, the drawings are merely illustrative and do not limit the interpretation of the invention.

[0045] In addition, in this specification and the corresponding drawings, the same reference numerals are applied to the same elements as those described in conjunction with the foregoing drawings, and in some cases their detailed descriptions are appropriately omitted.

[0046] In the following description, a semiconductor device and its control method suitable for deep learning processing will be used as an example. However, deep learning processing is just one example, and the semiconductor device and its control method described below can perform large-scale arithmetic processing, etc.

[0047] (First Embodiment)

[0048] (Semiconductor device configuration)

[0049] Figure 1 This is a block diagram illustrating the configuration of a semiconductor device according to a first embodiment. Figure 1 In the figure, reference numeral 2 shows an array-type processor mounted on semiconductor device 1. Multiple circuit blocks other than the array-type processor 2 are also mounted on semiconductor device 1, but are omitted in the same figure.

[0050] The array-type processor 2 includes: a PE array 3; multiple arithmetic circuits 4(0_0) to 4(0_7) and 4(1_0) to 4(1_7); a circuit block 5; a state transition management unit 6; and multiple parallel computing units 7_0 to 7_7. 5. Multiple PEs 3(00) to 3( 11_7) are arranged in an array on array 3. Additionally, multiple arithmetic circuits 4(0_0) to 4(0_7) and 4(1_0) to 4(1_7) are not particularly restricted, but are arranged along the rows of array 3. Arithmetic circuits 4(0_0) to 4(1_7) can be circuits for implementing different functions or circuits for implementing the same function. For example, arithmetic circuits 4(0_0) to 4(1_7) can be multiplication circuits and / or subtraction circuits, etc.

[0051] Circuit block 5 provides, for example, storage circuitry (memory) and DMAC (direct memory access controller).

[0052] exist Figure 1 Although omitted, in array 3, multiple data buses and multiple programmable switches (hereinafter also referred to as P-SWs) are connected between the data bus and PE 3(0_0) to 3(11_7), between the data bus and arithmetic circuits 4(0_0) to 4(0_7), and between the data bus and circuit block 5. Although later used... Figure 4 To explain, the opening / closing of P-SW is controlled by a switch control signal, for example, from the corresponding PE (e.g., 3(1_1)).

[0053] State transition management unit 6 manages PEs 3(0_0) to 3(11_7). In other words, state transition management unit 6 specifies (assigns) the operations performed by each of PEs 3(0_0) to 3(11_7) and specifies the state of the P-SW corresponding to each of PEs 3(0_0) to 3(11_7). For example, state transition management unit 6 specifies the operations performed by PE 3(1_1) and specifies the on / off state of the P-SW corresponding to PE 3(1_1) relative to PE 3(1_1).

[0054] Similarly, the state transition management unit 6 manages the arithmetic circuits 4(0_0) to 4(1_7), circuit block 5, and parallel computing units 7_0 to 7_5. For example, the state transition management unit 6 controls the on / off state of the P-SW between each of the arithmetic circuits 4(0_0) to 4(1_7), circuit block 5, and parallel computing units 7_0 to 7_5 and the data bus.

[0055] In the first embodiment, the data path is configured as follows: PEs 3(0_0) to 3(11_7), multiple data buses, arithmetic circuits 4(0_0) to 4(1_7), circuit block 5, state transition management unit 6, and multiple P-SWs. Since the state transition management unit 6 specifies the operations of PEs 3(0_0) to 3(11_7) and the states of the P-SWs connected between the data buses and each circuit, the states related to the configuration of the data path are defined by the specification of the state transition management unit 6. In other words, the configuration of the data path is changed (modified) by changing the specification of the state transition management unit 6 over time.

[0056] Each of the parallel computing units 7_0 to 7_5 includes one input line group and one output line group. The input line group and output line group are connected to the data bus via corresponding P-SWs. Although not particularly restricted, the parallel computing units 7_0 to 7_5 have almost identical configurations. When described using parallel computing unit 7_0 as an example, each of a parallel input line group DI(0) and an output line group DO(0) of parallel computing unit 7_0 is connected to the data bus via a P-SW set in the data path, which is controlled by a switch control signal.

[0057] Figure 1 An example of a parallel computing unit with one input line group and one output line group is shown, but the configuration of a parallel computing unit is not limited to this. For example, a parallel computing unit can have one input line group and one output line group. This allows the output to be executed earlier than the output. In other words, for one data point from one input line group, i data points from the output line group can be retrieved in parallel from a parallel computing unit, and the retrieval of the output can be accelerated by 1 / i. An example is described where the number of output line groups in a parallel computing unit is two or more. However, of course, the number of input line groups can also be two or more.

[0058] An output line group DO(0) and an input line group DI(0) illustrate a line group that transmits multiple bits of data to be processed in parallel as a unit. Although an example will be given later, the number of bits to be processed as a unit is 16 bits, and an output line group DO(0) and an input line group DI(0) transmit 16-bit wide data. For example, when a parallel computing unit has two output line groups, each of the output line groups can take two 16-bit wide data entries from a parallel computing unit.

[0059] Furthermore, as explained later, a parallel computing unit includes multiple product and sum operation units, and performs its product and sum operations in parallel. The number of input lines and output lines of a parallel computing unit is sufficiently smaller than the arithmetic width of the product and sum operations performed by the product and sum operation units of the parallel computing unit.

[0060] (Parallel computing unit)

[0061] Figure 2 This is a block diagram illustrating the configuration of a parallel computing unit according to a first embodiment. The diagram shows... Figure 1 The configuration of the parallel computing unit 7_0 is shown. The remaining parallel computing units 7_1 to 7_5 are similar.

[0062] The parallel computing unit 7_0 includes: local memory 10; n product summation units (multiplication accumulation: MAC) 11_0 to 11_n-1; register 12; selector 13; and control unit 14. The product summation unit 11_0 includes two input terminal groups and one output terminal group. One input terminal group of the product summation unit is connected to input line group DI(0) and supplies output data from local memory 10 to the other input terminal group. The product summation unit 11_0 performs a product operation between the output data from local memory and the input data from input line group DI(0), calculates the sum of the results obtained from the product operation, and outputs the sum from the output terminal group. The remaining product summation units 11_1 to 11_n-1 are similar. This embodiment has described an example of a parallel computing unit 7_0 having n product summation units; however, each of the product summation units may be an operation unit capable only of performing multiplication or addition operations.

[0063] The product sum operation results output from the output terminal groups of the product sum operation units 11_0 to 11_n-1 are stored in register 12 and supplied to selector 13. According to the control signal SL-C from control unit 14, selector 13 sequentially selects the product sum operation results output from the product sum operation units 11_0 to 11_n-1 and supplies them to output line group DO(0).

[0064] Control unit 14 controls local memory 10, product and sum operation units 11_0 to 11_n-1, register 12, and selector 13. Although not particularly restricted, control unit 14 has a counter 15. Selector 13 is controlled by a control signal SL-C formed by counter 15. In other words, selector 13 selects the output of the product and sum operation unit identified by control signal SL-C from product and sum operation units 11_0 to 11_n-1 and outputs it to output line group DO(0). Control signal SL-C is updated sequentially by, for example, incrementing the counter, and selector 13 causes the product and sum operation results to be output sequentially from product and sum operation units 11_0 to 11_n-1. Additionally, control unit 14 forms a control signal SL-M for identifying addresses in local memory 10. For example, control unit 14 forms control signal SL-M based on the output of counter 15. In this way, data stored at different addresses is sequentially supplied from local memory 10 to product and sum operation units 11_0 to 11_n-1.

[0065] Parallel computing units typically input double the data and output a single data. In other words, a parallel computing unit inputs two vectors and outputs one vector. That is, a normal parallel computing unit has two input terminal groups and one output terminal group, and performs operations between two data points supplied to the two input terminal groups, and outputs the operation result from one output terminal group. In contrast, the parallel computing unit 7_0 according to the first embodiment becomes a single-input and single-output unit (one input terminal group and one output terminal group). That is, the parallel computing unit 7_0 is configured such that one input terminal group of the product sum operation units 11_0 to 11_n-1 is connected to the input line group DI(0) corresponding to the input terminal group of the parallel computing unit 7_0, while supplying each data point from the local memory 10 to the other input terminal groups of the product sum operation units 11_0 to 11_n-1.

[0066] In addition, the result of the product sum operation selected by the selector 13 from the results of multiple product sum operations held in register 12 will be output to the output line group DO(0) corresponding to the output terminal group of the parallel computing unit 7_0.

[0067] The input line group DI(0) and output line group DO(0) of the parallel computing unit 7_0 are connected to the data path via P-SW. Therefore, the data formed in the data path is supplied to the parallel computing unit 7_0 one after another, and the product and operation results formed by the parallel computing unit 7_0 are supplied to the data path one after another.

[0068] In addition, Figure 2 In the illustrated configuration, register 12 is connected between product summation units 11_0 to 11_n-1 and selector 13, and the product summation result is stored in register 12. Therefore, this configuration allows for the temporary and parallel performance of input processing and product summation processing on the data in product summation units 11_0 to 11_n-1, as well as processing for outputting the product summation result from parallel computing unit 7_0. In other words, pipelined computation can be performed. The performance of pipelined computation improves processing efficiency.

[0069] As described above, the parallel computing unit 7_0 was used as an example, but the other parallel computing units 7_1 to 7_n-1 are similar.

[0070] Figure 2The example shown illustrates a case where each of the number of inputs and outputs of the parallel computing unit is one; however, this embodiment is not limited to this case. For example, the number of inputs and outputs of the parallel computing unit may be sufficiently smaller than the number of product summation units 11_0 to 11_n-1 included in the parallel computing unit 7_0. For example, the number of inputs and outputs of the parallel computing unit 7_0 may be two or four. In this case, if the product summation units 11_0 to 11_n-1 are divided into two groups of two or four units and connected to a common input line group for each group, the number of inputs can be set to two or four. Additionally, the number of outputs can be set to two or four for each group by dividing the output line group that outputs the product summation result. Furthermore, the number of outputs may differ from the number of inputs. Incidentally, even when the number of inputs and outputs is set to two or more in this manner, data from the local memory 10 is also supplied to one input terminal group of the product summation units 11_0 to 11_n-1.

[0071] In addition, Figure 2 The example used a parallel computing unit employing register 12, but register 12 can be omitted. Omitting register 12 allows for unit miniaturization.

[0072] (Processing example of a parallel computing unit)

[0073] Next, an example of the parallel computing unit's processing will be illustrated using the parallel computing unit 7_0 as an example. Here, the scenario described is as follows: k data items are supplied to the parallel computing unit 7_0, and m operation results are output. Furthermore, it is assumed that the processing of the parallel computing unit 7_0 is repeated a predetermined number of times (e.g., i times).

[0074] First, the control unit 14 initializes the registers (not shown) in the product and operation units 11_0 to 11_n-1. In this initialization, each register is set to, for example, "0" or an initial value stored in memory (such as local memory 10).

[0075] The input data DI(0) supplied to the parallel computing unit 7_0 is simultaneously distributed to each of the product and sum operation units 11_0 to 11_n-1 in sequence. At this time, data stored at an address (e.g., the header address) in the local memory 10 specified by the control unit 14 is supplied to each of the product and sum operation units 11_0 to 11_n-1. The product and sum operation units 11_0 to 11_n-1 simultaneously perform a product operation between the distributed input data and the data supplied from the local memory 10. The product operation result required for the product operation is added to the initial value held in the register, and the addition result is written back into the register.

[0076] The next input data supplied to the parallel computing unit 7_0 is simultaneously distributed to each of the product and sum operation units 11_0 to 11_n-1. Meanwhile, data stored at the next address in the local memory 10 specified by the control unit 14 is supplied to each of the product and sum operation units 11_0 to 11_n-1. The product and sum operation units 11_0 to 11_n-1 simultaneously perform a product operation between the distributed input data and the data supplied from the local memory 10. The product result obtained through the product operation is added to the previous addition result held in the register. This addition result is then written back into the register.

[0077] By repeating this operation k times, the serial product sum operation units 11_0 to 11_n-1 are used to perform product sum operations, and m product sum results are obtained. Then, the control unit 14 causes the m product sum operation results to be transferred to register 12. Counter 15 selects one of the m product sum operation results stored in register 12. The selected product sum operation result is selected by selector 13 and output. By repeating the operation for specifying different product sum operation results m times, counter 15 outputs the m product sum operation results sequentially.

[0078] Control unit 14 can start the next product sum operation and the output of the product sum operation result simultaneously.

[0079] The control unit 14 repeats the aforementioned process i times to complete the process, namely, the following series of processes: setting the initial value to the register, sequentially reading data from the header address of the local memory 10, and performing the product sum operation between the input data and the local memory 10. An example of sequentially reading data from the header address of the local memory 10 has already been mentioned here, but this embodiment is not limited to this. For example, when a predetermined address of the local memory 10 is read during the process prior to performing the aforementioned product sum operation, the address following the predetermined address is considered the header address mentioned above, and data can be read sequentially.

[0080] Incidentally, the control unit 14 can operate based on information from the state transition management unit 6, and the state transition management unit 6 can also function as the control unit 14. Furthermore, the control unit 14 can be shared by multiple parallel computing units.

[0081] Furthermore, the control unit 14 can be configured with data paths including PE, etc. Since the configuration of the data paths is defined by the state transition management unit 6, the control signals SL_C and SL_M can be programmable. Therefore, programmability can be achieved, for example, by the order in which data is read from the local memory 10, the order in which selectors 13 are selected, etc.

[0082] In the following description, for simplicity, when parallel computing units 7_0 to 7_5 are mentioned together, they will be referred to as parallel computing unit 7. Additionally, when multiplication and summation units 11_0 to 11_n-1 are mentioned together, reference numeral 11 will be used. When PE 3(0_0) to 3(11_7) are mentioned together, they will be referred to as PE 3().

[0083] (State Transition Management Unit)

[0084] Figure 3 is a block diagram illustrating the state transition management unit according to the first embodiment. Here, the configurations of the two state transition management units will be described. Figure 3A A state transition management unit with a configuration that uses memory is shown, and Figure 3B A state transition management unit with a configuration using a conditional transition table is shown.

[0085] Figure 3A The state transition management unit 6 shown includes a memory 6_1 and a management unit 6_2. Furthermore, the management unit 6_2 includes a decoder 6_3. Multiple descriptors are pre-stored in the memory 6_1. The management unit 6_2 specifies an address in the memory 6_1, issues a read command to read the descriptor from the memory 6_1, and the decoder 6_3 decodes the read descriptor. The management unit 6_2 supplies the state signal obtained from the decoding by the decoder 6_3 to PE 3() and P-SW, etc.

[0086] Each descriptor is formed by a bit string that specifies (defines) the operational state of the data path, and is decoded to form a status signal indicating the operational state of the data path. Through the supplied status signal, the operational content of PE 3() and the state of P-SW are specified, and the configuration state of the data path is defined.

[0087] Management unit 6_2 sequentially assigns different addresses in memory 6_1 and issues read commands. Therefore, the state of the data path is changed sequentially.

[0088] Memory 6_1 is located in Figure 1 The illustrated memory configuration is external to the array-type processor 2, but is not limited to it. For example, the memory could be... Figure 1 The memory in the circuit block 5 shown, or the memory located outside the semiconductor device 1.

[0089] Figure 3BThe state transition management unit 6 shown includes a state transition table 6_4. State transition table 6_4 outputs specification information 6_4_1 for specifying the operation content of PE 3() and the state of P-SW, and address information 6_4_2 for specifying the next address in state transition table 6_4. Figure 3B In the state transition management unit 6, each PE 3() includes a decoder 6_5. For example, PE 3(0_0) decodes the specified information 6_4_1 from the state transition management unit 6 through decoder 6_5. Based on the signal obtained through this decoding, PE 3(0_0) determines its own computation content and the corresponding P-SW state. In other words, the specified information 6_4_1 is a bit string used to specify the computation content of PE 3() and the state of P-SW.

[0090] Since the next address in state transition table 6_4 is specified by address information 6_4_2, the next specified information 6_4_1 and address information 6_4_2 are read from the specified address. Therefore, the state of the data path will be transitioned sequentially.

[0091] The expectation is, for example, to determine the use of [the appropriate method] based on the number of contents specified for each state of the data path, taking into account circuit size and complexity. Figure 3A and 3B Which of the state transition management units 6 shown is being used? For example, it is expected that when the specified content has a lower weight, the state of the data path will be managed by... Figure 3A The configuration shown is used when the specified content has a higher weight. Figure 3B The configuration shown.

[0092] (Frequency of state transitions)

[0093] like Figure 2 As shown, parallel computing units 7_0 to 7_5 have product summation units 11_0 to 11_n-1, and obtain the results of product summation operations by inputting a large amount of data. The results of product summation operations are retrieved one after another by selector 13. It seems that the input and output of data requires a large number of cycles to retrieve it one after another. It is desirable to keep the configuration of the data path fixed during those cycles without changing that configuration.

[0094] For example, it is generally expected that the state transition management unit 6 operates (runs) without changing the data path configuration, so that the data path configuration may sometimes be changed. In this case, the time period using parallel computing units 7_0 to 7_5 is considered a normal time period, and the state transition management unit 6 operates to maintain the data path configuration. Simultaneously, during transitions in time periods when parallel computing units 7_0 to 7_5 are not used, the state transition management unit 6 operates to change the data path configuration. In this case, even if the time required to change the data path configuration becomes slightly longer, if the data path and the state transition management unit 6 are configured to increase the computation frequency (e.g., to shorten the data path configuration during periods when the data path configuration is fixed), the increase in processing time can be suppressed.

[0095] Furthermore, since the inputs and outputs of the parallel computing units 7_0 to 7_5 according to the first embodiment are executed sequentially, data is input and output by multiplying by multiple cycles. In this case, if the state of the data path is transitioned at one cycle or changed within one cycle, efficiency will be greatly reduced. Therefore, for example, by multiplying by multiple cycles to perform state transitions and changes in the configuration of the data path, it is desirable to achieve miniaturization of the circuit size and acceleration of the operation frequency. As an example, this will be achieved by using... Figure 3A The situation of the state transition management unit 6 shown will be explained.

[0096] The case of reading a descriptor from memory 6_1 at one cycle was examined. In this case, the configuration and state of the data path must be specified by reading a descriptor at one cycle. Therefore, the number of bits in the configuration descriptor's bit string increases significantly, and this bit string needs to be processed once when the configuration and state of the data path are changed.

[0097] Conversely, when the configuration and state of a data path are changed (switched) by multiplying by multiple cycles, for example, when the configuration and state of a data path are changed (switched) by multiplying by four cycles, the bit string of the descriptor expected to be delivered or proposed each week can theoretically be reduced to 1 / 4 of a cycle, which makes miniaturization and speedup possible.

[0098] Additionally, descriptors can be partitioned by function, and descriptors corresponding to the used functions can be stored in memory 6_1. In this case, for example, to prevent descriptors corresponding to unused functions from being read, the number of cycles can also be made variable when changing the configuration and state of the data path. As a descriptor partitioned by function, if referenced... Figure 1For example, the following descriptors are listed: a descriptor for specifying the transfer of initial values ​​to the memory included in circuit block 5, a descriptor for specifying the path for using the input data of the DMAC included in circuit block 5, a descriptor for specifying the operation using PE, and a path for specifying the path for using the output data of the DMAC included in circuit block 5.

[0099] Furthermore, when the configuration and state of a data path are changed (switched) by multiplying over multiple cycles, it is unnecessary to read the descriptor from memory 16 again to perform the same operation as immediately preceding it. In this case, if the state specified by the descriptor read immediately preceding it is also maintained in the next cycle, the same operation as immediately preceding it is performed in the next cycle. This allows for a reduction in the number of reads from memory 6_1 and a decrease in power consumption.

[0100] (PE)

[0101] Figure 4 This is a block diagram illustrating the configuration of the PE according to the first embodiment. Here, it will be described using... Figure 1 The PE 3(1_1) shown in the figure is used as an example for explanation.

[0102] Although there are no particular restrictions, PE 3(1_1) is connected to the data bus located on its periphery via P-SW. Figure 4 In this example, PE 3(0_1) is exemplified as a PE located on the periphery of PE 3(1_1), and data buses 21 and 22 are exemplified as data buses. Additionally, in Figure 4 In the figure, reference numerals 19_1 and 19_2 show the P-SW connected between PE 3(1_0) and 3(1_1) and data buses 21 and 22.

[0103] PE 3(1_1) includes a general-purpose computing unit 16, a processor element control unit (hereinafter also referred to as the PE control unit) 17, and a processor element memory (hereinafter also referred to as management memory or PE memory) 18. The general-purpose computing unit 16 performs calculations on the content specified by the operation control signal 17_1, which is output from the PE control unit 17. Additionally, P-SW19_1 and 19_2 are switched on or off according to the switch control signal 17_2 output from the PE control unit 17.

[0104] Figure 3AThe status signal shown is supplied to the PE memory 18 as signal 20. A table including the status signal and corresponding operational and switching information is pre-formed in the PE memory 18. In other words, when the status signal is supplied to PE 3 (1_1) as signal 20, the PE memory 18 outputs the operational and switching information corresponding to the status signal as information 18_1 to the PE control unit 17. The PE control unit 17 outputs an operational control signal 17_1 based on the supplied operational information and an operational control signal 17_2 based on the switching information. Incidentally, the combination of operational and switching information stored in the PE memory 18 is also referred to as status information in the following text.

[0105] Therefore, as Figure 3A As explained in the document, when a status signal is output from the management unit 6_2, the status signal specifies the configuration of the operation content and data path to be executed in PE 3(1_1).

[0106] Incidentally, when a status signal is supplied to memory 20 as signal 20, PE memory 18 can continuously output multiple operation information and switching information in response to this situation. This allows the operation content and / or data path configuration to be continuously changed relative to a status signal.

[0107] PE 3(1_1) is used as an example for illustration, but other PEs are similar. Figure 4 An example has been shown where each PE includes a PE memory 18 for controlling the corresponding P-SW, but this is not the only example. For instance, the PE memory may be shared by multiple PEs or all PEs.

[0108] in addition, Figure 4 As already explained as PE, each of the arithmetic circuit 4, circuit block 5, and parallel computing unit 7 similarly controls the on / off state of the P-SW connected to its own circuit and the data bus. In this way, the configuration of the data path is determined by the state transition management unit 6. Incidentally, in Figure 3A In this context, the general-purpose computing unit 16 and P-SW are controlled by information formed through the decoder 6_3; however, in Figure 3B In this context, information 6_4_1 is provided as a pointer to each PE and decoded using decoder 6_5 in each PE. The general computing unit 16 and P-SW in each PE are controlled by the decoding result.

[0109] (Generation of descriptors, operation information, and switch information)

[0110] Described in an array-type processor via any computer language Figure 1The processing implemented in () and compiled into the computer can generate Figure 3A The descriptors and Figure 4 The computational and switching information described herein. The descriptor generated through compilation is written into... Figure 3A The generated operational information and switch information are paired with the status signal and written as a table to, for example, the PE memory 18 in the PE. Figure 4 )middle.

[0111] (Deep learning processing)

[0112] Next, I will explain how to use... Figure 1 The example shown is an array-type processor 2 implementing deep learning processing. First, refer to... Figure 1 , 2 Points 5 and 6 illustrate the repeated processing of the neural network for performing deep learning processes. Here, Figure 5 This is a view showing an example of a neural network structure. Figure 6 This is a schematic diagram illustrating the arithmetic processing flow of a neural network.

[0113] Figure 1 The array-type processor 2 shown is suitable for performing convolutional processing in deep learning processes. In convolutional processing, the same weights are used many times. In the array-type processor 2, the weights are stored in local memory 10 ( Figure 2 This allows processing to be performed efficiently. Figure 5 Instead of showing convolution processing, an example is shown of all combinations where the same weights are not reused. By using this... Figure 5 This will provide an overview of arithmetic processing in neural networks.

[0114] like Figure 5 As shown, the operation of a neural network takes the following steps: performing a product sum operation to multiply the weight w(w'); performing operations (such as initiating the product sum operation result); and outputting the operation result.

[0115] According to the first embodiment, the array-type processor 2 is... Figure 6 The process shown is used to execute Figure 5 The procedure shown is in... Figure 6 In the accompanying diagram, reference numeral 30 is not specifically limited, but rather indicates an external memory located outside the array processor 2. Input data is stored in this external memory 30, and the computation results obtained in the array processor 2 are again written to the external memory 30. Additionally, the weight w (w') is stored in the local memory 10 within the parallel computing unit 7.

[0116] In step S1, array 3 reads the input data (features) necessary for the operation from external memory 30. In step S2, the configuration and state of the data path of array 3 are set by state transition management unit 6, and in step S3, the features from external memory 30 are supplied to parallel computing unit 7 one after another. Parallel computing unit 7 performs product sum operation processing by multiplying the weights w(w′) stored in local memory 10 by the features supplied from array 3 one after another, according to the receiving order in step S4. In step S5, the result of the product sum operation is output one after another by parallel computing unit 7.

[0117] In step S6, array 3 performs operations (such as addition and start-up) on the data received from parallel computing unit 7 as needed. In step S7, array 3 writes the operation result as another feature quantity into external memory 30. This process enables the processing of the neural network, and by repeating this process, the arithmetic operations necessary for deep learning are performed.

[0118] In this way, in the array-type processor 2 according to the first embodiment, during necessary arithmetic processing, conventional product and operation processing can be performed using the parallel computing unit 7, thereby achieving acceleration. Furthermore, the array 3 is used to perform (multiple) arithmetic processing other than product and operation processing, and this array 3 can be dynamically reconfigured (multiple) circuits via a state transition management unit, etc. This allows for flexibility in... Figure 5 and 6 The description specifies that processing (such as startup) is set in each of the first layer (first-layer processing), the second layer (second-layer processing), and the output layer (third-layer processing). Furthermore, the number of parallel computing units (PCs) that perform the required arithmetic processing from among the multiple parallel computing units disposed in the array-type processor 2 can be pre-used, and the number of PEs (processors) that perform the required arithmetic processing with respect to the array 3 can also be used. In other words, flexibility can be improved.

[0119] (Multiplication and summation operations performed using parallel computing units)

[0120] Next, specific examples of product sum operations performed using the parallel computing unit 7 will be described with reference to the accompanying drawings. Figures 7 to 9 This is a diagram illustrating the processing performed by the parallel computing unit according to the first embodiment. Figure 7 The matrix operation expression is illustrated schematically, and Figure 8 It shows the relationship with Figure 7 The matrix operation expression corresponding to the matrix operation expression. Additionally, Figure 9 A more specific configuration of the parallel computing unit 7 is shown.

[0121] exist Figure 7 In the diagram, In represents matrix data consisting of k rows × m columns, and W represents matrix data consisting of m rows × n columns. The elements of matrix data In correspond to the input data input to the parallel computing unit 7_0, and the elements of matrix data W are data stored in the local memory 10 of the parallel computing unit 7, and are related to the input data in the parallel computing unit 7_0. Figure 5 This corresponds to the weight w(w') already explained. Figure 7 In the example, a multiplication is performed between the elements of matrix data In and the elements of matrix data W, a bias value C is added to each element of the multiplication result, and the result is output as matrix data Out consisting of k rows × n columns. Incidentally, this bias value C is also stored in local memory 10.

[0122] An example of performing a product sum operation with respect to matrix data In with respect to the first-level processing will be described. First, matrix data W and the bias value C corresponding to matrix data In are passed as initial values ​​to the local memory 10 in the parallel computing unit 7. Then, the first row of matrix data In is read from external memory 30 and supplied to array 3. At this time, since array 3 has a data path configuration defined by the state transition management unit 6, a predetermined process determined by the data path configuration is performed with respect to the read first row of data, and the result obtained by performing the predetermined process is supplied to the parallel computing unit 7 as the first row of data.

[0123] In the parallel computing unit 7, the bias value C from the local memory 10 is set as an initial value to the product and sum operation unit 11. Then, the product and sum operation unit 11 performs a product operation between the first row of data supplied from the array 3 (the result obtained by performing a predetermined process) and the first column of matrix data W read from the local memory 10.

[0124] Figure 8 An example of a product sum operation is shown when the number of columns (m) of matrix data In is 20 and the number of columns (n) and rows (m) of matrix data W is 20. This is illustrated when using and explaining... Figure 8 In the example, the first row of data b0 to b19 of matrix data In undergoes (multiple) predetermined processing by array 3. The product sum operation unit 11 performs a product sum operation using matrix data W relative to the result of this processing. Similarly, the product sum operation unit 11 performs a product sum operation using matrix data W on the second or subsequent rows of matrix data In. Furthermore, during the product operation performed by the product sum operation unit 11, the result of the product operation is accumulated, and a bias value C is also added to the result. In this way, each element of matrix data Out is calculated.

[0125] As an example of a parallel computing unit according to the first embodiment Figure 9 The configuration of the parallel computing unit 7_0 is shown. Here, the elements of matrix data In and W are shown as 16 bits. Figure 9 As shown, the product and operation unit 11 (e.g., 11_0) includes a product operation unit MX1, an adder AD1, and a register RG1. A bias value C is set to register RG1 as an initial value.

[0126] Then, the bias value is sequentially input from element b0 in the first row of matrix data In toward element b19 (the element that has already undergone (multiple) pre-processing by array 3) into parallel computing unit 7_0.

[0127] Element b0 is simultaneously input to product summation units 11_0 to 11_n-1; the product summation unit MX1 in each of the product summation units 11_0 to 11_n-1 performs a product operation between the element from the corresponding local memory 10 and element b0; and the adder AD1 adds the product result to the bias value C and stores the result in register RG1. In this way, Figure 8 In the expression shown, the operations of the part enclosed in solid lines will be performed.

[0128] Next, when element b1 is simultaneously input into the product sum operation units 11_0 to 11_n-1, the product operation unit MX1 in each of the product sum operation units 11_0 to 11_n-1 performs a product operation between the element from the corresponding local memory 10 and element b1. In this way, Figure 8 In the expression shown, the operations enclosed in dashed lines are performed. Additionally, since adder Ad1 adds the product result to the result stored in register RG1, the product result is accumulated and stored again in register RG1. In this way, the product sum operation is performed in parallel with each input element (data) one after another. Incidentally, since a row of matrix data In has 20 elements, the above process is repeated twenty times to process one row.

[0129] (Operation of semiconductor devices)

[0130] In the array-type processor 2 according to the first embodiment, the configuration of the data path can be optionally set by the state transition management unit. In other words, the connection between the data bus and the PE, etc., included in the data path, and the operation content of the PE can be optionally set.

[0131] Figure 10This is a view showing the functional blocks of an arithmetic processing unit implemented by an array-type processor according to the first embodiment. Figure 10 The arithmetic processing unit 40 shown is composed of Figure 1 The array-type processor 2 shown is implemented through the configuration of data paths specified by the state transition management unit 6. Arithmetic processing of the neural network is performed by the arithmetic processing unit 40.

[0132] The arithmetic processing unit 40 includes a parallel computing unit 7 and DMACs 41 and 44. Additionally, a batch normalization (hereinafter also referred to as BatchNorm) functional unit 42 and a startup functional unit 43 are constructed by multiple PEs 3() arranged in the array 3. For the parallel computing unit 7, for example, using... Figure 1 The parallel computing unit 7_0 is shown. Additionally, for DMACs 41 and 44, the DMACs configured in circuit block 5 are used.

[0133] 16-bit wide input data DI from Figure 6 The external memory 30 shown is supplied to the arithmetic processing unit 40, and 16-bit wide output data DO is supplied from the arithmetic processing unit 40 to the external memory 30. In other words, 16-bit wide data (features) is sequentially transferred from the external memory 30 to the parallel computing unit 7 via the DMAC 41. Figures 7 to 9 As described above, a product summation operation is performed in the parallel computing unit 7, and the result of the product summation operation is supplied to the BatchNorm function unit 42, and further supplied to the startup function unit 43. In this way, BatchNorm processing is performed on the product summation result, and startup processing is performed. Then, the result of the startup processing is transferred to the external memory 30 via DMAC 44.

[0134] The expected process includes performing product sum operations, BatchNorm, and the corresponding startup processing (i.e., completion). Figure 10 While performing the series of processes shown, the state transition management unit 6 is maintained so as not to change the configuration of the data path. Furthermore, when the series of processes is completed, the state transition management unit 6 instructs the PE, etc., so that the next configuration of the data path changes immediately or after several cycles over several hours.

[0135] The following description, as examples of the first to seventh modifications, illustrates an example of an arithmetic processing unit 40 implemented by an array-type processor 2 through a state transition management unit 6.

[0136] (First Amendment Example)

[0137] Figure 11This is a functional block diagram illustrating a first modified example of an arithmetic processing unit implemented by an array-type processor according to the first embodiment.

[0138] The first modification illustrates an arithmetic processing unit capable of performing multiple different operations relative to the same input data DI. For example, in a parallel computing unit, the case where the number of parallel execution processes is insufficient is considered. As a specific example, consider the following situation: the number of product and operation units 11 included in the parallel computing unit 7 is insufficient relative to the number of weights executed in parallel with the same input data DI. In other words, as referenced... Figure 8 As mentioned, there exists a situation where the number of columns in matrix W exceeds the number of product and operation units included in a single parallel computing unit 7. Parallel computing unit 7 shares a single input data DI with multiple product and operation units 11 and performs (multiple) processes. Therefore, when the number of parallel processes is insufficient, the same input data DI is input into multiple parallel computing units, which allows parallel processing to be performed through partitioning. In this case, weights are partitioned and stored in the local memory 10 of each of the multiple parallel computing units. For example, when the weight is 40 ( Figure 8 When input data (a0,0 to a0,39) is used, the 40 weights are divided into 20 weights and stored in the local memory 10 of the parallel computing units 7_0 and 7_1. This allows for parallel processing of one input data and 40 weights. In this case, the output data from each parallel computing unit is different for each parallel computing unit and is therefore output individually.

[0139] In the first modified example, the state transition management unit 6 issues instructions such as: BatchNorm functional units 42_1, 42_2 and startup functional units 43_1, 43_2 are configured by multiple PEs arranged on the array 3. Additionally, the state transition management unit 6 issues instructions to the parallel computing units 7_0, 7_1, which are parallel computing units, and issues instructions to the DMACs included in the circuit block 5 for the DMACs 41, 44_1, 44_2, which are DMACs.

[0140] exist Figure 11In this process, input data DI is transferred from external memory 30 to parallel computing units 7_0 and 7_1 via DMAC 41. Each of parallel computing units 7_0 and 7_1 performs a product sum operation on the same input data DI. In this case, the data stored in the local memory 10 of parallel computing unit 7_0 is different from the data stored in the local memory 10 of parallel computing unit 7_1. For the product sum operation result obtained by parallel computing unit 7_0, BatchNorm and startup processing are performed by BatchNorm function unit 42_1 and startup function unit 43_1, and the result is transferred to external memory 30 as output data DO_1 via DMAC 44_1. Additionally, for the product sum operation result obtained by parallel computing unit 7_1, BatchNorm and startup processing are performed by BatchNorm function unit 42_2 and startup function unit 43_2, and the result is transferred to external memory 30 as output data DO_2 via DMAC 44_2.

[0141] An example using two parallel computing units has been shown here, but it is not limited to this. In other words, three or more parallel computing units can be used.

[0142] (Second Amendment)

[0143] Figure 12 This is a functional block diagram illustrating a second modified example of an arithmetic processing unit implemented by an array-type processor according to the first embodiment. Because... Figure 12 Similar to Figure 11 Therefore, we will mainly explain the differences between them.

[0144] The difference lies in that the outputs of the startup function units 43_1 and 43_2 are supplied to the selector function unit 45, and the output of the startup function unit selected by the selector function unit 45 is transferred as output data DO by the DMAC 44 to the external memory 30. For example, the selector function unit 45 is configured by combining a predetermined PE and its corresponding P-SW.

[0145] According to the second modified example, the processing results generated in parallel are serialized and can be transferred to external memory 30. In other words, since the output of a parallel computing unit is transferred as a sequence of data, the output can be transferred to external memory 30 as a sequence of data even when the partitioning process is performed by multiple parallel computing units.

[0146] (Third Amendment Example)

[0147] Figure 13 This is a functional block diagram illustrating a third modified example of an arithmetic processing unit implemented by an array-type processor according to the first embodiment. Because... Figure 13 Similar to Figure 12 Therefore, we will mainly explain the differences between them.

[0148] The difference lies in that the processing results of the parallel computing units 7_0 and 7_1 are added by the addition function unit 46. Furthermore, the BatchNorm function unit 42 and the start function unit 43 perform BatchNorm and start processing on the result obtained from this addition, and the processing result is transferred as output data DO_2 to the external memory 30 via DMAC 44. For example, the addition function unit 46 is configured by combining a predetermined PE and the P-SW corresponding to the PE.

[0149] The third modified example is suitable for situations where the number of input data entries is large. For example, see reference... Figure 7 The arithmetic processing unit 40 mentioned above is suitable for cases where the number of rows in matrix In is m. In this case, the input data read from matrix In is divided into input data DI_1 and DI_2. For each of the input data DI_1 and DI_2 obtained by the division, the product sum operation is performed by parallel arithmetic units 7_0 and 7_1, and the product sum operation result is added by the addition function unit 46. For this addition result, the BatchNorm and start-up processes are performed by DMAC 44, and the performed addition result is transferred to external memory 30. In this way, even when the number of input data exceeds the number of product sum operation units used to configure one parallel computing unit, the product sum operation process is still performed, and the BatchNorm and start-up processes can also be performed.

[0150] (Fourth Amendment Example)

[0151] Figure 14 This is a functional block diagram illustrating a fourth modified example of an arithmetic processing unit implemented by an array-type processor according to the first embodiment. Because... Figure 14 Similar to Figure 11 Therefore, we will mainly explain the differences between them.

[0152] The difference lies in the addition of a delay function component 47. The delay function component 47 is implemented, for example, by setting a memory disposed in circuit block 5 as a delay buffer or FIFO. Of course, the delay buffer or FIFO is pre-configured in circuit block 5 and can be used.

[0153] The fourth modification is suitable for using the same input data with a time delay. Input data DI is transferred to the parallel computing unit 7_0 via DMAC 41 and then to the delay function unit 47. The input data DI transferred to the delay function unit 47 is held by the delay function unit 47, and the held input data DI is delayed and supplied to the parallel computing unit 7_1. Therefore, output data DO_1 corresponding to the input data DI is transferred to the external memory 30, and output data DO_2 corresponding to the same input data DI is delayed and transferred to the external memory 30. In this way, it is not necessary to transfer the same input data DI from the external memory 30 twice.

[0154] (Fifth Amendment)

[0155] Figure 15 This is a functional block diagram illustrating a fifth modified example of an arithmetic processing unit implemented by an array-type processor according to the first embodiment. Because... Figure 15 Similar to Figure 11 Therefore, we will mainly explain the differences between them.

[0156] The difference lies in that the parallel computing unit 7 is changed and becomes a parallel computing unit 7', and the local memory 10' is located outside the parallel computing unit 7'. Each of the parallel computing units 7'_0 and 7'_1 has the ability to transfer the local memory 10 from... Figure 2 The configuration removed from the parallel computing unit 7 shown. Local memories 10'_1 and 10'_2 serve as local memories for parallel computing units 7'_0 and 7'_1. In other words, parallel computing units 7'_0 and 7'_1 perform product sum operations using data from local memories 10'_1 and 10'_2.

[0157] (Sixth Amendment)

[0158] Figure 16 This is a functional block diagram illustrating a sixth modified example of an arithmetic processing unit implemented by an array-type processor according to the first embodiment. Because... Figure 16 Similar to Figure 15 Therefore, we will mainly explain the differences between them.

[0159] The difference lies in the location of the local memory 10' shared by the two parallel computing units 7'_0 and 7'_1. The sixth modified example is suitable for performing the product and sum operation of the same data with respect to mutually different input data DI_1 and DI_2.

[0160] Shared data is supplied from the shared local memory 10' to the parallel computing units 7'_0 and 7'_1. Since the input data supplied to the parallel computing units 7'_0 and 7'_1 is different from the input data DI_1 and DI_2, the parallel computing units 7'_0 and 7'_1 perform product sum operations on the different input data by using the same data from the local memory 10'.

[0161] This allows the required number of local memories to be reduced by half, resulting in lower power consumption and a smaller storage capacity in the local memories. From a slightly different perspective, even when using local memories 10' with the same storage capacity, the storage capacity available to the parallel computing unit 7 can be doubled.

[0162] (Seventh Amendment)

[0163] Figure 17 This is a functional block diagram illustrating a seventh modified example of an arithmetic processing unit implemented by an array-type processor according to the first embodiment. Because... Figure 17 Similar to Figure 16 Therefore, we will mainly explain the differences between them.

[0164] The difference is that, similar to Figure 14 Set up a delay function component 47 and supply the delayed input data DI to the parallel computing unit 7_1'.

[0165] In the seventh modification, each of the parallel computing units 7'_0 and 7'_1 performs operations on the same input data DI, data from the shared local memory 10', and other data. However, the parallel computing unit 7'_1 performs operations relative to the input data DI that is temporarily delayed by the delay function 47. Similar to the sixth modification, this allows for a reduction in power consumption and a reduction in the storage capacity of the local memory while obtaining the operation result that is temporarily delayed relative to the same input data.

[0166] Examples using two parallel computing units as in the first through seventh modifications have been shown, but this is not an limitation. For example, the number of parallel computing units could be three or more.

[0167] In this way, in the first embodiment, the state transition management unit 6 defines the computational content of the PE, and makes the connection between the PE and the data bus programmable. In other words, the state transition management unit 6 can configure any data path, and as... Figures 10 to 17As described herein, an arithmetic processing unit 40 with various configurations can be implemented using an array-type processor 2. That is, various configurations depending on the purpose can be implemented using an array-type processor 2. In particular, parallel computing units that require a large amount of data to be input and output simultaneously are sequentially input and output and are installed as arithmetic processing units on the array-type processor 2, so that while arithmetic processing performance (simultaneous operation objects) is enhanced, the connection between the narrow data bus and PE, etc., can be programmable, and a highly flexible configuration can be achieved.

[0168] (State transition management unit and data path)

[0169] Next, please refer to the accompanying diagram for instructions. Figure 3A The relationship between the state transition management unit of the descriptor and the data path is shown. Figure 18 This is a timing diagram illustrating the relationship between the state transition management unit and the data path according to the first embodiment.

[0170] In state transition management unit 6, from Figure 3A The memory 6_1 shown reads a descriptor, and the read descriptor 1 is decoded and output to the data path. For example, in the data path, the operation content of PE 3() is determined according to descriptor 1, and the corresponding P-SW state is determined. In this way, the configuration of the data path becomes configuration 1, and depending on the processing of data path configuration 1, it is executed relative to the data supplied to the data bus in the data path. In the data path, configuration 1 continues until the conditions specified by descriptor 1 are met.

[0171] Although there are no specific restrictions, the state transition management unit 6 reads the next descriptor 2 and prepares the configuration for the next data path during the time period when the data path maintains configuration 1. When the processing via data path configuration 1 is complete, the state transition management unit 6 outputs the decoding result of descriptor 2 to the data path. In this way, the configuration of the data path becomes configuration 2, and the processing according to data path configuration 2 is performed relative to the data supplied to the data path. Subsequently, this operation is repeated, and a series of processes specified by the descriptors are performed in the data path.

[0172] exist Figure 18 An example has been shown where the state transition management unit 6 reads the next descriptor (descriptor 2) within a predetermined time period of the data path. This allows for a reduction in processing time by anticipating the descriptors. However, to simplify circuit configuration, the state transition management unit 6 can begin reading descriptors after the data path processing is complete.

[0173] Referring here are earlier related technologies. In the earlier inventions, large-scale arithmetic processing (such as deep learning processing) was performed using array-type processors and hardware accelerators. However, since the balance between the application(s) to be executed and the required processing performance of each of the array-type processors and hardware accelerators for each layer of the application has varied, the following problems have always existed: it is difficult to always achieve a good processing balance between the array-type processors and hardware accelerators, and the performance of the hardware accelerators is not fully utilized. In addition, there is the problem of low flexibility of the hardware accelerators. Furthermore, there is the problem that as the size of the hardware accelerators increases and their processing performance is improved, the processing performance of the array-type processors also needs to be improved, and the area overhead increases.

[0174] More specifically, hardware accelerators are configured for computational functions solely through parallel computing units. Therefore, for example, sending and receiving data between the hardware accelerator and external memory, and for operations that cannot be performed by the hardware accelerator, it is necessary to insert an array-type processor. In other words, when the processing flexibility within the hardware accelerator is low and the processing performance of the array-type processor is insufficient, it becomes difficult to maximize the performance of the hardware accelerator. Furthermore, when the hardware accelerator is made larger to improve processing performance, it is necessary to further expand the size of the hardware accelerator, which worsens the balance of processing performance between these two factors and makes it difficult to fully utilize the performance of the hardware accelerator.

[0175] Furthermore, even in typical cases, processing must be executed by the program on the array processor. Additionally, when parallel computing is mixed with other processing, frequent data transmission and reception between the array processor and the hardware accelerator leads to inefficiency. Moreover, when only hardware accelerators are provided for performing fixed processing (such as parallel computing), it is likely that if an unexpected processing event occurs first, that event will not be executed. Therefore, the presence of the array processor is also crucial.

[0176] In the first embodiment, a parallel computing unit 7, which sequentially performs data input and output, is added as a computing unit (computing element) of the array processor 2. Furthermore, the state transition management unit 6 specifies the configuration of the data path of the array processor 2. In other words, the computational content of PE PE 3(), inter-element connections (such as PE 3()), and connections between elements and the data bus can be flexibly changed through the state transition management unit 6. This allows for high-speed execution of large-scale computations even using only the array processor 2, and also enables flexible changes to the processing.

[0177] In other words, according to the first embodiment, an array-type processor 2 is configured, which is expanded to enable the parallel computing unit 7 to perform parallel operations at higher speeds and to further flexibly modify the processing. Therefore, a high-performance array-type processor suitable for performing a large number of product sum operations in deep learning processing is provided.

[0178] (Second Embodiment)

[0179] (Semiconductor devices and parallel computing units)

[0180] Figure 19 This is a block diagram showing the configuration of the semiconductor device 1 according to the second embodiment. Because... Figure 19 Similar to Figure 1 Therefore, we will mainly explain the differences between them.

[0181] The difference lies in, Figure 1 The local memory 10 is located in the parallel computing unit 7, but in Figure 19 In this configuration, local memory 10 is removed from the parallel computing unit. Thus, the parallel computing unit is changed to a configuration that does not include local memory, becoming parallel computing unit 7'. Figure 19 In the figure, the local memory is represented by the reference numeral 10', and the local memory 10' and the parallel computing unit 7' are connected to the data bus 50.

[0182] Figure 20 This is a block diagram illustrating the configuration of the parallel computing unit according to the second embodiment. Figure 20 In the diagram, reference numeral 7'_0 indicates a parallel computing unit. The configuration of parallel computing unit 7'_0 is similar to... Figure 2 The parallel computing unit 7_0 shown is different in that it does not include local memory, and the other input terminal groups of the product and operation units 11_0 to 11_n-1 are connected to the data bus 50. Incidentally, one of the input terminal groups connected to the product and operation units 11_0 to 11_n-1 is similar to the input line group DI(0) of the parallel computing unit 7_0. Furthermore, although not specifically restricted, the parallel computing unit 7'_0 does not have... Figure 2 The control unit 14 is shown. The product and operation units 11_0 to 11_n-1, register 12, and selector 13 are controlled by status signals from the state transition management unit 6. Parallel computing unit 7'_0 is used as an example, but the remaining parallel computing units have similar configurations.

[0183] In the second embodiment, the data supplied to the parallel computing units 7'_0 to 7'_5 is selected from the data output from the local memories 10'_0 to 10'_5. In other words, the state transition management unit 6 selects the data to be supplied to the parallel computing units 7'_0 to 7'_5 from the data output from the local memories 10'_0 to 10'_5. This allows data from the same local memory to be supplied to multiple parallel computing units. For example, the state transition management unit 6 selects data read from the local memory 10'_0 so that it can be jointly supplied to the parallel computing units 7'_0 to 7'_5. This allows the required number of local memories to be less than the number of parallel computing units 7. Therefore, by stopping the operation of unused local memories, power consumption can be reduced.

[0184] Furthermore, collecting multiple local memories and allocating them to parallel computing units increases the available storage capacity within those units. For example, allocating both local memories 10'_0 and 10'_1 to parallel computing unit 7'_0 doubles the available storage capacity in parallel computing unit 7'_0.

[0185] exist Figure 19 In the configuration shown, numerous wirings between the local memory and the parallel computing units require supplying individual data to each parallel computing unit. Therefore, it is desirable to arrange the local memory and the parallel computing units in physically adjacent locations. Furthermore, it is desirable to provide any constraints when arranging the wirings described above. Meanwhile, the input data supplied to the parallel computing units is parallel input data (such as 16-bit wide) and is narrower than the wirings mentioned above, making it desirable to ensure wiring flexibility on the input line group DI(0) side.

[0186] Next, the specific allocation of local memory 10' to parallel computing unit 7' will be described with reference to the accompanying drawings. Figure 21 is a view showing the relationship between local memory and parallel computing unit according to the second embodiment. Figure 21A This illustrates a scenario where local memory and parallel computing units are configured in a one-to-one manner, and Figure 21B The diagram illustrates a scenario where three local memories are allocated to parallel computing units. Of course, the number of local memories to be allocated to parallel computing units is not limited to three, and can be two, four, or more. Additionally, Figure 21 illustrates a scenario where nine local memories 10'_0 to 10'_8 and nine parallel computing units 7'_0 to 7'_8 are provided.

[0187] exist Figure 21AIn this configuration, local memories 10'_0 to 10'_8 are allocated to correspond one-to-one with parallel computing units 7'_0 to 7'_8. For example, parallel computing unit 7'_0 is allocated one-to-one with local memory 10'_0. In this way, parallel computing unit 7'_0 can use only one corresponding local memory 10'_0. Incidentally, in this case, local memory 10'_0 is equal to Figure 2 The local memory 10 in the parallel computing unit.

[0188] exist Figure 21B In this configuration, three local memories are consolidated into one and allocated to three parallel computing units. For example, local memories 10'_0 to 10'_2 are consolidated into one and allocated to three parallel computing units 7'_0 to 7'_2. A selector 51_0 connects a series of local memories to their corresponding parallel computing units 7'_0 to 7'_2. Any one of the parallel computing units 7'_0 to 7'_2 is connected to local memories 10'_0 to 10'_2 via selector 51_0. This configuration allows data stored in the three local memories to be read from any one of the three parallel computing units 7'_0 to 7'_2. In other words, each of the three parallel computing units can use three times the storage capacity of the local memories. In this way, by having a configuration that bundles multiple local memories together to act as one local memory and by distributing the data stored in the three local memories, storage capacity can be increased from the perspective of the parallel computing units.

[0189] The example uses local memory 10'_0 to 10'_2, but the same applies to other local memory types.

[0190] Each of selectors 51_0 to 51_2 operates to select or deselect data in parallel with the number of bits equal to the product of the number of parallel computing units corresponding to the configuration and the number of arithmetic units. In other words, in each of selectors 51_0 to 51_2, the bit width to be processed in parallel is very large. Therefore, it is desirable that selectors 51_0 to 51_2 be configured by dedicated (specific) hardware. Of course, for example, the selectors can be configured by PE 3() or / and P-SW. Selectors 51_0 to 51_2 are controlled by state transition management unit 6. In this way, for example, as Figure 21A As shown, this embodiment is programmed such that the local memory and the parallel computing unit become one-to-one, and the parallel computing unit is connected to the local memory via a selector.

[0191] exist Figure 19The following example has been shown: the state transition management unit 6 controls the product and operation units 11_0 to 11_n-1, register 12, selector 13, and selectors 51_0 to 51_2, and selects data from the data from local memory 10'_0 to 10'_5 to be supplied to the parallel computing units 7'_0 to 7'_5. However, this embodiment is not limited to this. For example, this embodiment may have a configuration in which a control unit is provided in the parallel computing unit 7' to control the product and operation units 11_0 to 11_n-1, register 12, selector 13, and selectors 51_0 to 51_2.

[0192] In addition, Figure 19 The following example has been shown: local memories 10'_0 to 10'_5 and parallel computing units 7'_0 to 7'_5 are connected to a data bus 50, but this embodiment is not limited to this. The data bus 50 can be divided into multiple data buses. For example, the data bus 50 can be divided into three data buses, and three local memories and three parallel computing units can be connected to each of the divided data buses. In other words, local memories 10'_0 to 10'_2 and parallel computing units 7'_0 to 7'_2 are connected to the first divided data bus; local memories 10'_3 to 10'_5 and parallel computing units 7'_3 to 7'_5 are connected to the second divided data bus; and local memories 10'_6 to 10'_8 and parallel computing units 7'_6 to 7'_8 are connected to the third divided data bus. In this case, if the selector is structurally configured to be connected to each of the divided data buses, it can be easily implemented. Figure 21B The configuration shown is shown.

[0193] Depending on the application and layer to be executed, the selectors 51_0 to 51_2 can be controlled by the state transition management unit 6 to dynamically change the connection between local memories 10'_0 to 10'_8 and parallel computing units 7'_0 to 7'_8. For example, over time, the connection can be changed from... Figure 21B The state of the connection shown changes dynamically as follows: Figure 21A The connection status shown.

[0194] (Third Embodiment)

[0195] Figure 22 This is a block diagram illustrating the configuration of a semiconductor device according to a third embodiment. Because... Figure 22 Similar to Figure 1 Therefore, we will mainly explain the differences between them.

[0196] exist Figure 1 In array 3, multiple PE 3() with general-purpose arithmetic units have been arranged. Conversely, in... Figure 22In this embodiment, PE 3() and dedicated arithmetic units 52 and 53 are arranged in array 3. From different angles, some of the multiple PE 3() arranged in array 3 are replaced with dedicated arithmetic units 52 and 53. Furthermore, when this embodiment is considered a data path, the data path includes both PE 3() and the dedicated arithmetic units.

[0197] For example, in deep learning processing, fixed-function operations are extensively used, such as the BatchNorm process and startup process mentioned above. These operations can be performed using a combination of general-purpose arithmetic units and memory provided by PE 3(), but implementing the operations using dedicated arithmetic units 52 and 53 improves processing speed. Furthermore, compared to implementing fixed-function operations through a combination of multiple PEs, implementing fixed-function operations through a single dedicated arithmetic unit allows for... Figure 22 The number of PE 3() to be arranged in array 3 shown is less than that shown. Figure 1 The numbers shown are designed to make this embodiment efficient in terms of area.

[0198] exist Figure 22 In the diagram, dedicated arithmetic unit 52 illustrates a dedicated arithmetic unit that performs BatchNorm processing operations, and dedicated arithmetic unit 53 illustrates a dedicated arithmetic unit that performs startup processing operations. Additionally, in... Figure 22 The example shown illustrates two dedicated arithmetic units arranged in an array. However, the number of dedicated arithmetic units and their arrangement are not limited to this.

[0199] An example of a dedicated arithmetic unit that can be mounted on array 3 will be described with reference to the accompanying drawings. Figure 23 This is a view showing an example of a dedicated arithmetic unit according to a third embodiment.

[0200] In deep learning processing, in addition to BatchNorm processing and startup processing, pooling or padding processing is also performed. Figure 23 In the diagram, reference numeral 54 shows a dedicated arithmetic unit that performs pooling operations. Dedicated arithmetic unit 54 performs pooling operations relative to the input data Din and outputs 16-bit wide data. Reference numeral 58 shows a dedicated arithmetic unit that performs padding operations, taking 16-bit wide data as input, performing the operation, and outputting 16-bit wide data. In the case of no padding, for example, dedicated arithmetic unit 58 periodically performs the process of inserting the value 0 into the data. Dedicated arithmetic unit 52, which performs BatchNorm operations, performs operations relative to the parameters and the 16-bit wide input Din and outputs 16-bit wide data Dout. Furthermore, dedicated arithmetic unit 53, which performs startup operations, takes 16-bit wide data as input and outputs 16-bit wide data.

[0201] Additionally, in array 3, for example, external memory 30 can also be used. Figure 6 The DMAC that performs data transmission is arranged as dedicated arithmetic units 55 and 56. Furthermore, in Figure 14 The delay function component 47 described herein can also be placed in array 3 as a dedicated arithmetic unit 57.

[0202] Parallel computing unit 59 can be placed in array 3 as a dedicated arithmetic unit.

[0203] Arithmetic units are not limited to Figure 22 The example demonstrates a dedicated arithmetic unit, which can be placed in array 3 as a dedicated arithmetic unit and can serve as an element of the data path as long as it performs operations on a small amount of input and output data. Compared to implementing arithmetic units through combinations of general-purpose arithmetic units, using dedicated arithmetic units allows for more efficient processing and more efficient arrangement. However, since dedicated arithmetic units can only be used for their intended purpose, it is desirable to make arithmetic units that are targeted at processes with high frequency of occurrence or that have a high impact on speed and footprint due to their specialization. It is expected that dedicated arithmetic units for purposes other than those mentioned above can be implemented through combinations of PEs, etc.

[0204] Similar to Figure 4 As shown in PE 3(1_1), the dedicated arithmetic unit arranged in array 3 is connected to the data bus via P-SW. This state of P-SW is controlled by the state transition management unit 6. This configuration allows the use of any dedicated arithmetic unit.

[0205] (Fourth Embodiment)

[0206] In the fourth embodiment, an example of the arrangement of an array-type processor on a semiconductor device is provided.

[0207] Figure 24 This is a plan view showing the arrangement of semiconductor chips in an array-type processor according to the fourth embodiment. Figure 24 An arrangement suitable for situations where the computational performance of the parallel computing unit determines the performance of the application, which is the processing target executed by the array-type processor 2. Figure 24 In the figure, each of reference numerals 7_0 to 7_8 shows as follows Figure 1 and 2 Parallel computing units, etc., as described in the document.

[0208] In the fourth embodiment, because the computational performance of the parallel computing units is important, the connections between the parallel computing units are arranged in a weighted manner. In other words, in Figure 24The parallel computing units 7_0 to 7_11 are arranged in an array near the central portion of the array-type processor 2 to approximate the spacing (gap) between the parallel computing units. Figure 24 In the diagram, reference numerals 60 and 61 indicate the DMAC, reference numeral 62 indicates the memory, and reference numerals 3(0_0) to 3(0_7) indicate the PE. Additionally, in the same figure, programmable switches indicate switch groups used to connect each of the DMACs 60 and 61, the memory 62, the parallel computing unit 7, and the PE3() to the data bus. In other words, these switch groups are the P-SW groups mentioned above.

[0209] The memory 6_1 of the configuration state transition management unit 6 is placed outside the array processor 2, and the management unit 6_2 is arranged inside the array processor 2, although neither is particularly restricted. The array processor 2 is connected to external memory, such as external memory 30, via data bus 70. Figure 6 ).

[0210] Figure 24 The DMACs 60 and 61 shown and the memory 62 are configured to Figure 1 Circuit block 5 is shown. The DMAC, indicated by reference numeral 60_W in the attached diagram, is the local memory 10 that transfers data from the data bus 70 to the parallel computing units 7_0 to 7_8. Figure 2 The DMAC 60_W passes the weight data because the data stored in local memory 10 is the weight data in deep learning processing.

[0211] DMAC 60 transmits input data supplied from external memory 30 to array processor 2 via data bus 70, and DMAC 61 transmits the processing results of array processor 2(multiple) to external memory 30 via network bus 70.

[0212] A descriptor string configured by multiple descriptors is stored in memory 6_1 and read sequentially into management unit 6_2. In this way, management unit 6_2 outputs a status signal based on the read descriptors. Based on the output status signal, the configuration of the data path is specified, and the input data obtained from external memory 30 is processed, and the processing result is supplied to external memory 30, which is then supplied to array processor 2.

[0213] While it has been mentioned that important parallel computing units are concentrated and arranged in an array, it is also important to place components with strong connections to the parallel computing units nearby. Therefore, compared to DMAC 61 and 60, the individual PE 3() and memory 62 with strong connections to the parallel computing units are arranged in an array closer to the parallel computing units.

[0214] exist Figure 24 An example has been shown where important parallel computing units are concentrated and arranged in an array to reduce their distance from each other. However, it is desirable to consider the importance of the connectivity relationships, as well as the area and number of corresponding elements that are also related to other elements (such as PEs), etc. For example, in... Figure 22 In this array, multiple PEs 3() are arranged in array 3. However, in array 3, only PEs 3() are not arranged collectively, and the PEs are arranged to sandwich arithmetic circuits 4(0_0) to 4(1_3) and dedicated arithmetic units 52 and 53 between PEs 3(). In this way, the distance between each PE 3() and arithmetic circuits 4(0_0) to 4(1_3) and dedicated arithmetic units 52 and 53 is suppressed so that they are not too far apart.

[0215] (First Amendment Example)

[0216] Figure 25 This is a plan view showing the arrangement of the array-type processor according to the first modified example of the fourth embodiment. Because... Figure 25 Similar to Figure 24 Therefore, we will mainly explain the differences between them.

[0217] The difference lies in reducing the number of PE 3() units with general-purpose arithmetic units and increasing the number of dedicated arithmetic units to improve the processing efficiency of processing units other than the parallel computing unit 7. In other words, it will... Figure 23 The dedicated arithmetic units 52 and 53 shown are added to the array processor 2, and the number of PEs is reduced to 3 (0_0) to 3 (0_4). In this way, the content that can be processed by the array processor 2 is specialized, and the processing efficiency suitable for the application can be improved.

[0218] (Second Amendment)

[0219] Figure 26 This is a plan view showing the arrangement of the array-type processor according to the second modified example of the fourth embodiment. Because... Figure 26 Similar to Figure 25 Therefore, we will mainly explain the differences between them.

[0220] The difference lies in the arrangement of the parallel computing units near the central portion of the array-type processor 2. Instead of an array, these units are arranged in a linear fashion. Furthermore, the number of parallel computing units is reduced to fewer than [previous number]. Figure 25 The number shown is [number]. This arrangement is suitable for situations where the number of parallel computing units is relatively small. Additionally, this arrangement is suitable for situations where a large number of signals are sent and received between adjacent parallel computing units. For example, the basic principle of a parallel computing unit is to have very few data inputs and outputs, but the parallel data within each parallel computing unit can be transmitted simultaneously between adjacent parallel computing units as multiple signals mentioned above. This situation allows the product and sum results calculated by dividing the work into multiple parallel arithmetic units to be added immediately, the added results to be collected, and a single product and sum result obtained. Incidentally, in [location]... Figure 26 The local memory included in the parallel computing units 7_0 to 7_6 is clearly shown in the figure.

[0221] In addition, Figure 26 In this configuration, another array-type processor, DRP, located outside the array-type processor 2, is connected to the bus in the data path via a programmable switch. For example... Figure 25 As explained in the paper, in the array-type processor 2, the number of dedicated arithmetic units increases while the number of PE 3() decreases. Therefore, it is believed that some processing cannot be performed by dedicated arithmetic units or that degrades performance.

[0222] In the second modification, processing that cannot be performed by a dedicated arithmetic unit or that degrades performance is implemented by an external array-type processor (DRP). The results processed by the array-type processor DRP are supplied to the data bus in the data path via a programmable switch. Furthermore, to enable the array-type processor DRP to perform processing, data is supplied to the array-type processor DRP from the data bus in the data path via a programmable switch. In other words, data transmission and reception are performed between the array-type processor DRP and the array processor 2 without using DMACs 60 and 61. This allows for an increase in processing speed.

[0223] Of course, by using DMAC 60, 61, after storing data in external memory once, data can be transferred between external memory and array processor 2, or between external memory and array processor 2 and between external memory and array processor DRP.

[0224] Alternatively, for example, an input-side FIFO and an output-side FIFO can be configured on an array-type processor. In this case, data from the array-type processor DRP is input to the input-side FIFO and then transferred from the input-side FIFO to the data bus in the data path. Additionally, data from the data bus in the data path is transferred to the output-side FIFO and then supplied from the output-side FIFO to the external memory 30.

[0225] (Third Amendment Example)

[0226] Figure 27 This is a plan view showing the arrangement of the array-type processor according to the third modified example of the fourth embodiment. Because... Figure 27 Similar to Figure 26 Therefore, we will mainly explain the differences between them.

[0227] The difference lies in the fact that the management unit 6_2 of the configuration state transition management unit 6 is divided into multiple units. In the third modification, the management unit is divided into each functional block of the array processor 2. In other words, the management unit 6_2 is divided into three units: a management unit 6_2-I for controlling data input; a management unit 6_2-O for controlling operations; and a management unit 6_2-P for controlling data output. The same descriptors are supplied from memory 6_1 to management units 6_2-I, 6_2-O, and 6_2-P, and management unit 6_2-I forms the state signals for controlling input. Additionally, management unit 6_2-O forms the state signals for controlling operations, and management unit 6_2-P forms the state signals for controlling output. In other words, the management unit corresponding to each of the input control, operation control, and output control controls them according to the descriptors.

[0228] In this way, since each of the data input, operation, and data output can be performed at any different time, pipelined operations between these functions become effective. In other words, in the third modification, depending on the timing of the internal operations of the array processor 2, the management unit 6_2 is divided into multiple management units 6_2-I, 6_2-O, and 6_2-P.

[0229] exist Figure 27 The example of arranging the parallel computing unit 7 in a linear form and adding a dedicated arithmetic unit has already been described. However, from the viewpoint of partitioning management units, the parallel computing unit can be as follows: Figure 24 The array shown is arranged in an array configuration. Alternatively, dedicated arithmetic units may not be required.

[0230] (Fourth Amendment Example)

[0231] Figure 28This is a plan view showing the arrangement of an array-type processor according to a fourth modified example of the fourth embodiment. Because... Figure 28 Similar to Figure 26 Therefore, we will mainly explain the differences between them.

[0232] In the fourth modification, as described in the second embodiment, the case where the local memory is arranged outside the parallel computing units will be explained. In other words, for the parallel computing units, the local memory 10 used as weight input is collectively arranged as local memories 10'_0 to 10'_6 outside the parallel computing units 7'_0 to 7'_6. Figure 28 In the example shown, programmable switches with multiple P-SWs are arranged between the shared local memories 10'_0 to 10'_6 and the parallel computing units 7'_0 to 7'_6. A large number of signal lines need to be connected via the programmable switches between the local memories 10'_0 to 10'_6 and the parallel computing units 7'_0 to 7'_6, so that it is desirable to have a configuration for arranging the local memories 10'_0 to 10'_6 and the parallel computing units 7'_0 to 7'_6 by restricting the degrees of freedom of the connections, based on the location relationship that is easy to route or that hardly impairs the physical design.

[0233] exist Figure 28 In this configuration, the number of parallel computing units 7'_0 to 7'_6 is the same as the number of local memories 10'_0 to 10'_6. Therefore, each of the parallel computing units 7'_0 to 7'_6 can use the data corresponding to each parallel computing unit when performing operations.

[0234] When multiple parallel arithmetic units use shared data while performing operations, the state transition management unit 6 switches a programmable switch to connect the shared local memory to the multiple parallel operations. Additionally, in this case, power consumption is reduced by stopping the operation of the local memory that is not currently accessing data. Furthermore, as illustrated in FIG21 of the second embodiment, by switching the programmable switch via the state transition management unit 6 to consolidate multiple local memories into one and treat it as a single local memory, the available storage capacity can be fully utilized and the scale of achievable processing can be expanded without stopping the operation of the local memory.

[0235] (Fifth Amendment)

[0236] Figure 29 This is a plan view showing the arrangement of the array-type processor according to the fifth modified example of the fourth embodiment. Because... Figure 29 Similar to Figure 28 Therefore, we will mainly explain the differences between them.

[0237] The difference is that the amount of local memory becomes very small. In other words, in Figure 29 In the example, the number of parallel computing units 7'_0 to 7'_6 arranged in the array processor 2 is seven, while the number of local memories is three fewer than the number of parallel computing units (10'_0 to 10'_2).

[0238] In the fourth modification, local memories 10'_0 to 10'_6 are pre-configured to correspond to the respective parallel arithmetic units 7'_0 to 7'_6. Therefore, parallel computing units and local memories can be connected one-to-one, and power consumption can be reduced by stopping some local memory operations. Furthermore, by centralizing multiple local memories and connecting the centralized local memories to a single parallel computing unit, the storage capacity available to the parallel computing unit can be increased.

[0239] However, if it is proven beforehand that there are parallel computing units that are unnecessary for local memory, then as Figure 29 As shown, area reduction and / or power consumption reduction can be achieved by reducing the number of local memories. Figure 29 In this case, each storage capacity of local memory 10'_0 to 10'_2 can be compared with... Figure 28 The local memory shown has the same storage capacity, or, for example, can be larger. While maintaining... Figure 29 By reducing the number of local memories 10'_0 to 10'_2, a reduction in area and / or power consumption can be achieved, and the feasible processing scale can be expanded when the storage capacity is increased. In addition, by reducing the number of local memories, the local memories 10'_0 to 10'_2 and the parallel computing units, as well as the programmable switches, can be simplified.

[0240] (Fifth Embodiment)

[0241] In the fifth embodiment, a processing system using the array-type processor 2 described in the first to fourth embodiments, and another array-type processor disposed outside the array-type processor 2 will be described. Figure 30 This is a block diagram illustrating the configuration of the processing system according to the fifth embodiment. Figure 30 The diagram shows a processing system, denoted by 80. The processing system 80 includes an array-type processor 2, an array-type processor DRP (different from the array-type processor 2), a selector 81, and external memory 30. Incidentally, in this processing system 80, the array-type processor 2, DRP, and selector 81 are formed on a single semiconductor chip, and they can be configured as a single semiconductor device.

[0242] In this document, the array-type processor described in the first and third embodiments will be used as array-type processor 2. Additionally, in Figure 30The diagram only shows the local memory 10, product and arithmetic units 11_0 to 11_n-1, and DMACs 41 and 44 within the circuit blocks included in the array-type processor 2, in order to avoid complicating the figures. See reference... Figure 1 , 2 And as mentioned in 10, Figure 30 The local memory 10 and product summation units 11_0 to 11_n-1 shown correspond to the local memory 10 and product summation units 11_0 to 11_n-1 shown in the diagram. Figure 2 The parallel computing unit 7_0 shown includes local memory and a product and sum operation unit. Additionally, Figure 30 The DMACs 41 and 44 shown correspond to Figure 1 The circuit block 5 shown includes the DMAC. In this case, as... Figure 10 As shown, DMAC 41 is used to pass input data to the parallel computing unit, and DMAC 44 is used to pass output data. Additionally, although in Figure 30 (Not shown in the image) The array-type processor 2 includes Figure 22 The dedicated arithmetic unit described in the document.

[0243] External memory 30 includes a first storage area 30_1 for storing input data DI and a second storage area 30_2 for storing output data DO for processing results. Output data DO is formed by performing a predetermined process relative to the input data DI. However, in the fifth embodiment, this predetermined process is distributed (distributed) by the array-type processor 2 and the DRP. In other words, the predetermined process is performed by combining the array-type processor 2 and the DRP.

[0244] In the fifth embodiment, the array processor 2 is configured to include a parallel computing unit 7, a dedicated arithmetic unit, and the necessary minimum PE 3(), so as to ensure good processing efficiency of the basic processes in the predetermined processes. On the other hand, processes not executed by the array processor 2 in the predetermined processes are executed by the array processor DRP.

[0245] A specific processing example will be described. In the basic processing case, DMAC 41 passes the input data DI to the array processor 2, and passes the processing for the input data DI to the array processor 2, and performs the processing of the input data DI inside the array processor 2. The result, as data 86, is supplied as data 86 to selector 81 by DMAC 44, and is stored in the second storage area 30_2 by selector 81.

[0246] When processing data not processed by array processor 2, input data DI is supplied to array processor DRP. In array processor DRP, for example, preprocessing is performed relative to the supplied input data, and the data 84 formed by preprocessing is passed to array processor 2 by DMAC 41 and processed there. Processed data 85 is passed to array processor DRP via DMAC 44 when further postprocessing not processed by array processor 2 is performed relative to the result of processing in array processor 2, and array processor DRP performs postprocessing on data 85, storing the result as data 83 as output data DO in storage area 30_2 via selector 81.

[0247] Furthermore, for data 82, if the processing is not handled by the array processor 2 and does not require insertion into the array processor 2, the array processor DRP processes data 82, outputs the result as data 83 to the selector 81, and stores it as output data DO from the selector 81 in the second storage area 30_2. In this case, for example, processing can be performed by passing the output data stored in the second storage area 30_2 to the first storage area 30_1 and again supplying it as input data DI to the array processor 2.

[0248] This situation makes it possible to provide a processing system 80 that has both processing power and versatility.

[0249] Incidentally, which of the array processors, 2 and DRP, is responsible for processing is determined by the program executed by each array processor. Additionally, selector 81 selects which of the data 83 and data 85 is determined by the program executed by array processor 2 or DRP.

[0250] exist Figure 30 The example shown illustrates an external memory 30 having a first storage region 3_1 and a second storage region 30_2. However, these storage regions can be the same region. Additionally, in the array-type processor 2, an example of using DMACs 41 and 44 to transfer data is illustrated. However, this embodiment is not limited to this. In other words, as... Figure 26 As explained, without using DMAC, data can be transferred between the data bus in the data path of array processor 2 and array processor DRP, and data can be transferred by using input-side FIFO and output-side FIFO.

[0251] (Sixth Embodiment)

[0252] In the sixth embodiment, multiple processes are executed in an array-type processor.

[0253] Figure 31 This is a block diagram illustrating the configuration of an array-type processor according to the sixth embodiment. Because... Figure 31 Similar to Figure 1 Therefore, the main focus will be on explaining the differences between them. Additionally, as multiple processes executed by an array-type processor, the following will be explained. Figure 5 The example shown is a processing of a neural network structure.

[0254] By comparison Figure 31 and Figure 1 The difference lies in the fact that the DMAC included in circuit block 5 is... Figure 31 The values ​​are clearly indicated as DMAC 41 and 44. Additionally, the state transition management unit 6 is configured by first to third state transition management units (hereinafter also referred to as single state transition management units) 6A to 6C. Array 3 is divided into three arrays OP1, OP2, and OP3. In other words, the data path is divided into three to correspond to the three arrays OP1, OP2, and OP3. The first state transition management unit 6A controls the divided data path corresponding to the parallel computing units 7_0, 7_1 and array OP1; the second state transition management unit 6B controls the divided data path corresponding to the parallel computing units 7_2, 7_3 and array OP2; and the third state transition management unit 6C controls the divided data path corresponding to the parallel computing units 7_4, 7_5 and array OP3.

[0255] The first state transition management unit 6A controls the parallel computing units 7_0 and 7_1 to execute... Figure 5 The processes shown (such as the startup of the first layer), and the multiplication and summation operations performed by the corresponding parallel computing units 7_0, 7_1 and array OP1 before the first layer, are described, and the configuration of the partitioned data path corresponding to array OP1 is specified. Additionally, the second state transition management unit 6B controls the parallel computing units 7_2 and 7_3 to execute... Figure 5 The processes shown (such as the initiation of the second layer), and the processing of product sum operations performed by the corresponding parallel computing units 7_2, 7_3 and array OP2 before the second layer, are described, and the configuration of the partitioned data path corresponding to array OP2 is specified. Furthermore, the third state transition management unit 6C controls the parallel computing units 7_4, 7_5 to perform... Figure 5 The processes shown (such as the startup of the output layer), as well as the processing of the product sum operation performed by the corresponding parallel computing units 7_4, 7_5 and array OP3 before the output layer, and the configuration of the partitioned data path corresponding to array OP3 are specified.

[0256] In this manner, for input data DI transferred from external memory 30 to the array processor 2 via DMAC 41, the first-layer processing and the product sum operation prior to the first-layer processing are executed by the partitioned data paths corresponding to parallel computing units 7_0 and 7_1 and the array OP1 corresponding to the first state transition management unit 6A. For data DI1 processed in the first layer, then the second-layer processing and the product sum operation prior to the second-layer processing are executed by the partitioned data paths corresponding to parallel computing units 7_2 and 7_3 and the array OP2 corresponding to the second state transition management unit 6B. Furthermore, for data DI2 processed in the second layer, the output layer processing and the product sum operation prior to the output layer processing are executed by the partitioned data paths corresponding to parallel computing units 7_4 and 7_5 and the array OP3 corresponding to the third state transition management unit 6C. DMAC 44 transfers data DI2 as output data DO to external memory 30.

[0257] In this way, for the input data DI transferred from the external memory 30, Figure 5 The processing of the neural network structure shown is executed sequentially in the array-type processor 2, and the results are passed to the external memory 30. In the array-type processor 2, processing is executed in a pipelined manner by continuously passing input data DI from the external memory 30. For example, during the time interval in the parallel computing units 7_4, 7_5 and array OP3 corresponding to the third state transition management unit 6C, which execute the output layer processing and the product sum operation preceding the output layer processing, the data input at the next time step is processed in the parallel computing units 7_2, 7_3 and array OP2 corresponding to the second state transition management unit 6B, which execute the second layer processing and the product sum operation preceding the second layer processing. In other words, in the array-type processor 2, multiple processes related to different layers are executed in a time-overlapping manner. Therefore, a reduction in processing time can be achieved.

[0258] In the foregoing, the inventive contents made by the inventors of this invention have been specifically described based on embodiments. However, it is self-evident that this invention is not limited to the foregoing embodiments, and various modifications and alterations can be made within the scope of this invention.

Claims

1. A semiconductor device, comprising: The data path includes multiple processor elements; The state transition management unit manages the state of the data path; as well as Parallel computing units, in which data input and output are performed sequentially. The inputs and / or outputs of the parallel computing units can be executed by the plurality of processor elements, and The state transition management unit is configured to manage the data path such that the state of the data path remains fixed during the time period in which the data input and output of the parallel computing unit are executed sequentially. The parallel computing unit includes: Local memory stores the data to be processed; Multiple arithmetic units perform operations between sequentially input data and data read from the local memory; Registers, storing the results of the operations performed by the plurality of arithmetic units; and The selector, based on a control signal, sequentially selects the operation results stored in the register according to the order of the plurality of arithmetic units and supplies the selected operation results to the data path, so that the operation results of the plurality of arithmetic units are output in sequence.

2. The semiconductor device according to claim 1, The data path also includes a dedicated arithmetic unit with fixed functions, and The plurality of processor elements have general-purpose arithmetic units capable of changing the computation content.

3. The semiconductor device according to claim 1, The state transition management unit reads a descriptor specifying the state of the data path from the memory, and transitions the state of the data path according to the read descriptor.

4. The semiconductor device according to claim 3, The state of the data path is defined by multiple descriptors that are different from each other.

5. The semiconductor device according to claim 4 further includes a plurality of DMA controllers. The operation of the plurality of DMA controllers enables the sending and receiving of data between the external memory and the data path.

6. The semiconductor device according to claim 1, The data path includes a switch connected between each of the plurality of processor elements and the data bus. Each of the plurality of processor elements includes a general-purpose computing unit and an administrative memory. Multiple state information entries specifying the states of the general-purpose computing unit and the switch are stored in the management memory, and Specify predetermined information from the plurality of status information stored in the management memory.

7. The semiconductor device according to claim 6, The state transition management unit reads a descriptor from the memory and specifies the state information corresponding to the read descriptor from the plurality of state information.

8. The semiconductor device according to claim 1, The state transition management unit includes multiple individual state transition management units. The multiple single state transition management units specify different states relative to their corresponding data paths.

9. A method for controlling a semiconductor device, the semiconductor device comprising a plurality of processor elements, a data path having switches, a state transition management unit for managing the configuration of the data path, and a parallel computing unit, the parallel computing unit comprising: The method comprises: local memory, multiple arithmetic units, registers, and selectors. Data stored at different addresses is sequentially supplied from the local memory to the multiple arithmetic units for computation. The computation results of the multiple arithmetic units are stored in the registers. The selector, based on control signals, sequentially selects the computation results in the registers according to the order of the multiple arithmetic units and supplies the selected results to the data path. A switch is connected to each of the multiple processor elements. Data input and output are sequentially performed in the parallel computing unit. The method includes: In the first processing step, the state transition management unit sets the configuration of the data path to a first configuration, and the data path with the first configuration performs processing; and In the second processing step, the state transition management unit sets the configuration of the data path to a second configuration different from the first configuration, and the data path with the second configuration performs the processing. The inputs and / or outputs of the parallel computing units can be executed by the plurality of processor elements, and The state transition management unit is configured to manage the data path such that the state of the data path is fixed during the time period in which the data input and output of the parallel computing unit are executed sequentially.

10. The control method for a semiconductor device according to claim 9, Before the first processing step, the parallel computing unit performs the computation, and The calculation results are supplied to the data path.

Citation Information

Patent Citations

  • Antigen of egg allergy

    JP2019189601A

  • Data processing system, array-type processor, data processor, and information storage medium

    US20030126404A1

  • Vector computational unit

    US20190026250A1