Information processor, instruction insertion device, and control method for information processor
By inserting low-power consumption instructions between arithmetic operations, the device stabilizes power consumption during startup and shutdown, reducing voltage fluctuations and noise, thus ensuring stable processor operation.
Patent Information
- Application Number
- JP2023048895
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-24
- Publication Date
- 2024-10-07
AI Technical Summary
Information processing devices face issues with sudden changes in power consumption when starting or stopping operations, leading to voltage drops or noise in the power supply system, which can cause malfunctions.
Incorporating an instruction insertion unit that inserts instructions with lower power consumption between arithmetic operations, gradually increasing or decreasing the ratio of these instructions to stabilize power consumption during startup and shutdown.
This approach reduces sudden changes in power consumption, minimizing voltage drops and noise, ensuring stable operation and improving the operating margin of the processor.
Smart Images

Figure 2024137388000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an information processing device, an instruction insertion device, and a control method for an information processing device. [Background technology]
[0002] 2. Description of the Related Art With the evolution of semiconductor processes, information processing devices such as processors tend to have larger circuit scales and higher power consumption. Further evolution of semiconductor processes is expected to lead to further increases in power consumption in the future.
[0003] The larger the circuit scale of an information processing device is and the more circuits that operate simultaneously, the more likely it is that the amount of power consumed by the circuits will change suddenly when the operation starts or stops, which may result in a momentary large voltage drop or rise, or noise in the power supply system. If a voltage drop, rise, or power supply noise occurs, the circuit may not operate normally. Summary of the Invention [Problem to be solved by the invention]
[0004] In the present disclosure, a sudden change in power consumption when an information processing device starts or stops operating, or when the information processing device starts or stops operating, is mitigated to allow a circuit to operate normally. [Means for solving the problem]
[0005] An information processing device according to an embodiment of the present invention has one or more operation blocks that process a plurality of operation instructions, and an instruction insertion unit that inserts another instruction consuming less power than the operation instructions between the plurality of operation instructions and outputs the other instruction to the one or more operation blocks so that, during a processing period of the plurality of operation instructions, a ratio of the operation instructions processed in a first period including a processing period of a first operation instruction included in the plurality of operation instructions is lower than a ratio of the operation instructions processed in a second period after the first period. [Brief description of the drawings]
[0006] [Figure 1] FIG. 2 is a block diagram illustrating an example of a processor according to an embodiment of the present invention. [Diagram 2] 1 is a block diagram showing an example of a board on which a processor and an external memory are mounted; [Diagram 3] FIG. 2 is an explanatory diagram showing an example of a first command and a second command. [Figure 4] 2 is a timing diagram illustrating an example of the operation of the processor of FIG. 1. [Diagram 5] FIG. 2 is a block diagram illustrating an example of a processor according to another embodiment of the present invention. [Figure 6] FIG. 2 is a block diagram illustrating an example of a processor according to another embodiment of the present invention. [Figure 7] 7 is a timing diagram illustrating an example of a DMA transfer of the processor of FIG. 6. [Figure 8] FIG. 11 is a block diagram showing an example of an information processing device according to another embodiment of the present invention. [Figure 9] 9 is an explanatory diagram showing an example of an instruction code generated by the compiler in FIG. 8 and an example of an instruction code generated by an instruction insertion unit. [Figure 10] 9 is a block diagram showing an example of a hardware configuration of the host shown in FIGS. 2 and 8. FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0007] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings. A processor, which is one form of an information processing device described below, may be mounted on a computer such as a server and execute a program to perform, for example, a convolution operation in training or inference of a neural network. The processor described below may be used for scientific and technical calculations. In addition, two or more of the blocks shown in the rectangles or trapezoids included in Figures 1, 5, 6, and 8 may be merged into one. That is, the function of one block may be realized by another block. Each of the multiple blocks is realized, for example, by one or more circuits.
[0008] Fig. 1 is a block diagram showing an example of a processor in an embodiment of the present invention. The processor 100 shown in Fig. 1 has a control unit 110 and a plurality of operation blocks 120. The processor 100 may have one operation block 120. For example, the processor 100 is connected to an external memory 200 via a bus BUS. The processor 100 is an example of an information processing device. The processor 100 shown in Fig. 1 shows a basic configuration to which an embodiment of the present invention is applied. The processor 100 may have a configuration shown in Fig. 2, which will be described later.
[0009] The control unit 110 has an instruction fetch unit 111, an instruction buffer 112, an instruction decoder 113, a first instruction holding unit 114, a second instruction holding unit 115, a synchronization control unit 116, an instruction issue determination unit 117, a start / stop control unit 118, and a selector 119. The start / stop control unit 118 and the selector 119 are an example of an instruction insertion unit that inserts a first instruction when processing of an arithmetic instruction is started, and inserts the first instruction and the second instruction when processing of the arithmetic instruction is stopped. The instruction insertion unit may be realized as an instruction insertion circuit.
[0010] The control unit 110 may be realized as a control circuit 110. The instruction fetch unit 111, the instruction buffer 112, the instruction decoder 113, the first instruction holding unit 114, the second instruction holding unit 115, the synchronization control unit 116, the instruction issue determination unit 117, the start / stop control unit 118, and the selector 119 may be realized as the instruction fetch circuit 111, the instruction buffer circuit 112, the instruction decoder circuit 113, the first instruction holding circuit 114, the second instruction holding circuit 115, the synchronization control circuit 116, the instruction issue determination circuit 117, the start / stop control circuit 118, and the selector circuit 119, respectively.
[0011] The arithmetic block 120 has one or more cores 121 and an internal memory 124. The core 121 has multiple arithmetic units 122 and a register file 123. For example, the arithmetic unit 122 may be any one of an adder, a multiplier, a multiply-accumulate unit, a load-store unit, or the like, or may be multiple types of arithmetic units. The internal memory 124 is, for example, a static random access memory (SRAM) with a fixed access latency. Also, for example, the arithmetic block 120 is configured by a pipeline including multiple stages, and the multiple stages are capable of executing different instructions in parallel.
[0012] The instruction fetch unit 111 fetches instructions held in an external memory connected to the bus BUS or a memory (not shown) and outputs the fetched instructions to an instruction buffer 112. The instruction buffer 112 has a queue that holds instructions supplied from the instruction fetch unit 111, and outputs the instructions to an instruction decoder 113 in the order in which they are held in the queue. The instruction buffer 112 also outputs the instruction at the head of the queue (the head instruction) to an instruction issue determination unit 117.
[0013] The instruction decoder 113 generates control information of an instruction for controlling the operation block 120 by decoding an instruction (such as an arithmetic instruction or a data transfer instruction) supplied from the instruction buffer 112, and outputs the generated control information to the selector 119. The control information of an instruction is an example of instruction information. When the instruction is an arithmetic instruction, the control information includes identification information of an arithmetic unit (such as an adder or a multiplier) that executes the instruction, and a number of a register in the register file 123 used for the operation. When the instruction is a data transfer instruction (such as a load instruction or a store instruction), the control information includes an address of a memory (such as the internal memory 124 or the external memory 200) that holds operand data, and a number of a register in the register file 123 that holds the operand data. The instruction decoded by the instruction decoder 113 is an instruction for actually executing an operation by one or more operation blocks 120 to obtain an execution result of the operation, and is an instruction for transferring data used in the operation or an operation result to the register file 123 of one or more operation blocks.
[0014] If the instruction is a data transfer instruction using an indirect address, the control information may include a register number for storing the memory address instead of the memory address. Furthermore, if the data transfer instruction indicates a data transfer between the internal memory 124 and the external memory 200, the control information may include a source address, a destination address, and the number of data to be transferred.
[0015] Hereinafter, the control information of the instruction output to the operation block 120 via the selector 119 is also simply referred to as an instruction. The instruction decoder 113 does not have a function of decoding a first instruction and a second instruction, which will be described later. That is, the first instruction and the second instruction are not included in the instruction set architecture of the processor 100.
[0016] The first instruction holding unit 114 is, for example, a register that holds the first instruction as decoded control information. For example, the first instruction may be set so that the power consumption when the arithmetic block 120 executes the first instruction is smaller than the power consumption of an arithmetic instruction (for example, an add instruction) that has the smallest power consumption among arithmetic instructions other than a NOP (No OPeration) instruction supplied to the instruction decoder 113. For example, the arithmetic instructions other than the NOP instruction supplied to the instruction decoder 113 are instructions that operate the core 121 of the arithmetic block 120.
[0017] The control information of the first instruction may be supplied as the first instruction information from outside the processor 100 and rewritably held in the first instruction holding unit 114. Alternatively, a plurality of types of control information of the first instruction may be held in the first instruction holding unit 114, and one of the plurality of types of control information of the first instruction may be selected by the first instruction information and output to the selector 119. The first instruction is an example of another instruction, and the control information of the first instruction is an example of instruction information of the other instruction. An example of the first instruction is described in FIG. 3. Hereinafter, the control information of the first instruction supplied to the selector 119 and the operation control information EX output from the selector 119 to the operation block 120 according to the control information of the first instruction are also referred to as the first instruction. The operation control information EX output from the selector 119 to the operation block 120 according to the control information of the instruction output from the instruction decoder 113 are also referred to as the operation instruction.
[0018] The second instruction holding unit 115 is, for example, a register that holds the second instruction as decoded control information. For example, the power consumption when the operation block 120 executes the second instruction is greater than the power consumption when the operation block 120 executes the first instruction. For example, the power consumption of the first instruction is less than the power consumption of the second instruction (first instruction<second instruction) and less than the power consumption of the operation instruction (first instruction<operation instruction). Hereinafter, the power consumption when the operation block 120 executes the first instruction is also referred to as the power consumption of the first instruction, and the power consumption when the operation block 120 executes the second instruction is also referred to as the power consumption of the second instruction.
[0019] The control information of the second instruction may be supplied as second instruction information from outside the processor 100 and rewritably held in the second instruction holding unit 115. Alternatively, a plurality of types of control information of the second instruction may be held in the second instruction holding unit 115, and any one of the plurality of types of control information of the second instruction may be selected by the second instruction information and output to the selector 119. Hereinafter, the control information of the second instruction supplied to the selector 119 and the operation control information EX output from the selector 119 to the operation block 120 according to the control information of the second instruction are also referred to as second instructions. The second instruction is an example of another instruction, and the control information of the second instruction is an example of instruction information of the other instruction. An example of the second instruction is described in FIG. 3.
[0020] When the synchronization control unit 116 determines, based on the synchronization information SYNC received from the selector 119 in response to a data transfer instruction such as a load instruction, that an arithmetic instruction using data transferred to the register file 123 by the data transfer instruction is executable by the arithmetic unit 122, it outputs executable information to the instruction issuance determination unit 117. For example, the data transfer instruction and the arithmetic instruction that executes an operation using the data transferred to the register file 123 by the data transfer instruction may include common identification information.
[0021] The synchronization control unit 116 suppresses output of executable information of the arithmetic instruction corresponding to the data transfer instruction until it receives the synchronization information SYNC. The synchronization control unit 116 can synchronize the transfer of data to the register file 123 by the data transfer instruction with the arithmetic instruction that executes an operation using the transferred data. In other words, the arithmetic operation can be started after waiting for the data to be used in the arithmetic operation to be transferred from the internal memory 124 or the external memory 200 to the register file 123.
[0022] When the synchronization control unit 116 determines that the execution result data of the arithmetic instruction stored in the register file 123 can be transferred to the internal memory 124 or the external memory 200 based on the synchronization information SYNC received from the selector 119 or the arithmetic block 120 in response to the arithmetic instruction, the synchronization control unit 116 outputs the transferability information to the instruction issuance determination unit 117. The synchronization control unit 116 suppresses the output of the executable information of the data transfer instruction corresponding to the arithmetic instruction until the synchronization information SYNC is received. The synchronization control unit 116 can synchronize the storage of the execution result data of the arithmetic instruction in the register file 123 and the reading of data from the register file 123 by the data transfer instruction. In other words, the data transfer to the internal memory 124 or the external memory 200 can be started after waiting for the completion of the arithmetic processing.
[0023] In addition, when there is data dependency between the preceding calculation instruction and the subsequent calculation instruction, the selector 119 may output the synchronization information SYNC according to the timing when the calculation result of the preceding calculation instruction is stored in the register file 123 (RAW (Read After Write) or WAW (Write After Write)) or the timing when the preceding calculation instruction reads data from the register file 123 (WAR (Write After Read)). In this case, the preceding calculation instruction and the subsequent calculation instruction may include common identification information. Then, when the synchronization control unit 116 determines that the subsequent calculation instruction is executable based on the synchronization information SYNC, it outputs executable information to the instruction issuance determination unit 117.
[0024] When instruction issuance determination unit 117 receives the arithmetic instruction (first instruction) at the head of the queue of instruction buffer 112 and receives executable information corresponding to the first instruction from synchronization control unit 116, it determines that the first instruction is executable by arithmetic unit 122. If the first instruction is executable, instruction issuance determination unit 117 outputs start information to start / stop control unit 118 to permit execution of the first instruction.
[0025] The instruction issuance determination unit 117 refrains from outputting start information until it receives executable information corresponding to the first instruction from the synchronization control unit 116, and causes the first instruction to wait before being supplied to the operation block 120. When the instruction issuance determination unit 117 receives empty information from the instruction buffer 112 indicating that the queue of the instruction buffer 112 has become empty, it outputs stop information to the start / stop control unit 118 to stop the operation of the operation unit 122.
[0026] The start / stop control unit 118 controls the start of the arithmetic unit 122 based on the start information from the instruction issuance determination unit 117, and controls the stop of the arithmetic unit 122 based on the stop information from the instruction issuance determination unit 117. When the start / stop control unit 118 receives the start information from the instruction issuance determination unit 117, it controls the selector 119 to insert (mix) the first instruction held in the first instruction holding unit 114 between the arithmetic instructions sequentially supplied from the instruction buffer 112.
[0027] At this time, the start / stop control unit 118 controls the selector 119 based on the first gradient information so that the ratio of the calculation instructions gradually increases relative to the ratio of the first instructions. Here, the ratio may be a ratio in a section or a ratio in a period. For example, the first gradient information may be the number of cycles until the ratio of the calculation instructions reaches 100%, or may be an increase rate of the ratio of the calculation instructions. The first gradient information may be set as fixed information at the time of designing the processor 100. The first gradient information is an example of gradient information indicating an increase rate of the calculation instructions.
[0028] The first tilt information may be held in, for example, an I / O register or a status register that is rewritable when the processor 100 is started. In this case, the first tilt information can be changed by software, and startup control of the calculator 122 can be appropriately performed according to the operating environment (temperature, voltage) of the processor 100. The first tilt information may be changed based on the operating environment, user settings, and the like.
[0029] When start / stop control unit 118 receives stop information from instruction issuance determination unit 117, it controls selector 119 to insert (mix) the second instruction held by second instruction holding unit 115 between the first instructions held by first instruction holding unit 114.
[0030] At this time, the start / stop control unit 118 controls the selector 119 based on the second gradient information so that the ratio of the first command gradually increases relative to the ratio of the second command. For example, the second gradient information may be the number of cycles until the ratio of the first command becomes 100%, or may be the increase rate of the ratio of the first command. The second gradient information may be set as fixed information at the time of designing the processor 100. The second gradient information is an example of gradient information that indicates the increase rate of the first command.
[0031] The second tilt information may be held in a register that can be rewritten, for example, when the processor 100 is started. In this case, the second tilt information can be changed by software, and the stop control of the calculator 122 can be appropriately performed according to the operating environment (temperature, voltage) of the processor 100. The second tilt information may be changed based on the operating environment, user settings, and the like.
[0032] An I / O register or the like that holds the first gradient information and the second gradient information is an example of a gradient holding unit. The gradient holding unit may be realized as a gradient holding circuit. When the first gradient information and the second gradient information are set to the same cycle number or the like, one gradient information may be supplied to the start / stop control unit 118 instead of the first gradient information and the second gradient information.
[0033] Based on a selection signal from the start / stop control unit 118, the selector 119 selects either the control information from the instruction decoder 113, the control information of the first instruction from the first instruction storage unit 114, or the control information of the second instruction from the second instruction storage unit 115.
[0034] When the selector 119 receives a data transfer command from the command decoder 113 to store data in the register file 123, the selector 119 outputs the received data transfer command as transfer control information TR to the operation block 120. The selector 119 also calculates the number of cycles required for the target data of the data transfer command to be stored in the register file 123. The selector 119 then outputs the calculated number of cycles to the synchronization control unit 116 as synchronization information SYNC together with identification information of the data transfer command.
[0035] When the arithmetic unit 122 is started based on an arithmetic instruction output from the instruction buffer 112, the selector 119 selects the arithmetic instruction from the instruction decoder 113 and the first instruction from the first instruction holding unit 114 at a predetermined ratio based on an instruction from the start / stop control unit 118. The selector 119 sequentially outputs the selected instructions to the arithmetic block 120 as arithmetic control information EX.
[0036] When there are no more arithmetic instructions held in the instruction buffer 112 and the operation of the arithmetic unit 122 is stopped, the selector 119 selects the first instruction from the first instruction holding unit 114 and the second instruction from the second instruction holding unit 115 at a predetermined ratio based on an instruction from the start / stop control unit 118. The selector 119 sequentially outputs the selected instructions to the arithmetic block 120 as arithmetic control information EX.
[0037] The arithmetic block 120 performs data transfer between the register file 123 and the internal memory 124, or data transfer between the internal memory 124 and the external memory 200, in response to a data transfer command received from the selector 119. The processor 100 or the external memory 200 may have a DMAC (Direct Memory Access Controller) (not shown) connected to the bus BUS. In this case, data transfer between the internal memory 124 and the external memory 200 may be performed by the DMAC. For example, an example in which the processor 100B has a DMAC 160 is shown in FIG. 6. Also, a data transfer command for performing data transfer between the register file 123 and the internal memory 124 and a data transfer command for performing data transfer between the internal memory 124 and the external memory 200 may be included in the instruction set architecture.
[0038] The operation block 120 reads data to be used in the operation from one of the registers in the register file 123 in response to an operation command received from the selector 119, and causes the operation target arithmetic unit 122 to perform the operation. Then, the operation block 120 writes the operation result to one of the registers in the register file 123.
[0039] For example, the arithmetic block 120 reads data to be used in the operation from one of the registers in the register file 123 in response to the first or second instruction received from the selector 119, and causes the arithmetic unit 122 to perform the operation. However, the arithmetic block 120 does not store the operation result of the first or second instruction in a register. That is, the first and second instructions are dummy arithmetic instructions that consume power without affecting the operation result of the arithmetic instruction decoded by the instruction decoder 113. In addition, the first and second instructions may be dummy arithmetic instructions that are determined independently of the contents (operands, etc.) of the arithmetic instruction decoded by the instruction decoder 113. These dummy arithmetic instructions are an example of other instructions.
[0040] In this embodiment, for example, multiple arithmetic units 122 of multiple processing blocks 120 may operate in parallel in response to one arithmetic instruction to execute the arithmetic instruction in parallel. That is, the processor 100 may operate as a single instruction multiple data (SIMD) processor.
[0041] Fig. 2 is a block diagram showing an example of a board on which the processor 100 and the external memory 200 are mounted. The board 300 shown in Fig. 2 is mounted with the processor 100 and the external memory 200 shown in Fig. 1. In this case, the board 300 operates as one information processing device.
[0042] The external memory 200 is connected to, for example, a host 400. Note that a plurality of boards 300 may be connected to the host 400, and a large number of operation blocks 120 mounted on the plurality of boards 300 may execute one data transfer command and one operation command in parallel. In this case, the plurality of boards 300 operate as one information processing device.
[0043] The host 400 stores a sequence of instructions and data used to execute the instructions in the external memory 200, causes each operation block 120 to execute an operation, and acquires the operation results of each operation block 120 from the external memory 200. Furthermore, the host 400 can set one or more of the first tilt information, second tilt information, first command information, and second command information shown in FIG. 1 in the control unit 110 of each operation block 120 when starting up the processor 100 or when changing the operation mode or the like after the processor 100 is in operation.
[0044] The first tilt information, the second tilt information, the first command information, and the second command information may be set in an I / O register using, for example, a setting command of the I / O register, and used by the control unit 110. Each of the first tilt information, the second tilt information, the first command information, and the second command information may be set commonly to all control units 110, or may be set for each group of a predetermined number of control units 110.
[0045] The processor 100 has a plurality of first blocks 130, each of which has a plurality of operation blocks 120 and a first memory 131. The processor 100 also has a plurality of second blocks 140, each of which has a plurality of first blocks 130 and a second memory 141. The processor 100 further has a third memory 151 disposed between the second memories 141 of the plurality of second blocks 140 and the external memory 200. The control unit 110 is provided in common to the plurality of first blocks 130.
[0046] 2, the processor 100 has a hierarchical third memory 151, a second memory 141, and a first memory 131 between the external memory 200 and the internal memory 124 (FIG. 1) of the arithmetic block 120. An arithmetic instruction is supplied in parallel from the external memory 200 to the internal memories 124 of the plurality of arithmetic blocks 120 via the third memory 151, the second memory 141, and the first memory 131, and is executed by each arithmetic unit 122.
[0047] The data transfer command is supplied in parallel from the external memory 200 to the multiple operation blocks 120 via the third memory 151, the second memory 141, and the first memory 131. Then, each operation block 120 performs data transfer between the register file 123 and the internal memory 124, etc.
[0048] 3 is an explanatory diagram showing an example of the first instruction and the second instruction. In the following, an example is shown in which the registers R0, R1, and R2 of the register file 123 are used. The data held in the registers R0, R1, and R2 are also referred to as data R0, R1, and R2.
[0049] For example, in a normal addition instruction ADD fetched by the instruction fetch unit 111, read enable (Read Enable=1) is set for registers R1 and R2, and the data R1 and R2 to be operated on that are held in the registers R1 and R2 are read to the calculator 122, which then adds the read data R1 and R2. After the data R1 and R2 are added, write enable (Write Enable=1) for register R0 is set, and the addition result is stored in the register R0.
[0050] The first instruction is similar to the add instruction ADD, except that the read disable (Read Enable=0) of the registers R1 and R2 is set, and the write disable (Write Enable=0) of the register R0 is set. The first instruction (add instruction ADD) consumes less power than the normal add instruction ADD because data is not read from the registers R1 and R2 and data is not written to the register R0. It is clear that the first instruction (NOP) consumes less power than the normal add instruction ADD. Note that the first instruction may be a NOP instruction or an instruction that does not substantially operate the core 121. For example, a data transfer instruction that transfers data between the register file 123 and the internal memory 124 may be used as the first instruction. In this case, read disable is set when data is read from the register file 123 or the internal memory 124, and write disable is set when data is written to the internal memory 124 or the register file 123. The first instruction is not limited to the same instruction, and multiple types of instructions may be used.
[0051] The second instruction is similar to the add instruction ADD, except that write disable (Write Enable=0) of the register R0 is set. The second instruction consumes relatively more power than the first instruction, since data is read from the registers R1 and R2. The second instruction may be not only an add instruction, but also a multiplication instruction, a shift operation instruction, a data transfer instruction, or the like. The second instruction may be a data transfer instruction for transferring data between the register file 123 and the internal memory 124. In this case, read enable is set when data is read from the register file 123 or the internal memory 124, and write disable is set when data is written to the internal memory 124 or the register file 123. The second instruction may be a combination of multiple types of instructions, such as an add instruction, a multiplication instruction, and an add instruction, which are executed in sequence.
[0052] FIG. 4 is a timing diagram showing an example of the operation of the processor 100 of FIG. 1. That is, FIG. 4 shows an example of a control method of the processor 100, which is an example of an arithmetic processing device. FIG. 4 shows an example of inserting a first instruction when the supply of an arithmetic instruction starts, and an example of inserting a first instruction and a second instruction when the supply of an arithmetic instruction stops. An instruction is inserted into the arithmetic instruction sequence shown in FIG. 4 when the supply of an arithmetic instruction starts, when the supply of an arithmetic instruction stops, or when the supply of an arithmetic instruction starts and when the supply of an arithmetic instruction stops. The period (section) shown by the instruction sequence of the operation example when the first instruction or the second instruction is inserted in FIG. 4 indicates a processing period (processing section) of a plurality of arithmetic instructions. That is, the processing period is not limited to a time concept, but includes a concept of a processing section in which a predetermined number of instructions are processed. As comparative examples, an example of not inserting a first instruction when the supply of an arithmetic instruction starts, and an example of not inserting a first instruction and a second instruction when the supply of an arithmetic instruction stops are shown.
[0053] Hereinafter, the multiple arithmetic instructions (not including the NOP instruction) sequentially decoded by the instruction decoder 113 are referred to as normal instructions. The normal instructions are an addition instruction, a multiplication instruction, a division instruction, a multiply-and-accumulate instruction, a matrix operation instruction, a data transfer instruction, and the like. In the example shown in FIG. 4, a NOP instruction is used as the first instruction, but the first instruction is not limited to the NOP instruction and may be an instruction having the same power consumption as the NOP instruction. For example, when the second instruction has a lower power consumption than the normal instruction, the second instruction may be inserted instead of the first instruction, or the first instruction and the second instruction may be inserted. For the sake of simplicity, it is assumed that the normal instruction, the first instruction, and the second instruction are executed in one cycle.
[0054] First, when a normal instruction is supplied from the instruction decoder 113 to the selector 119 and an arithmetic operation is started, the start / stop control unit 118 inserts a first instruction between normal instructions based on the first gradient information. The first gradient information includes information for gradually increasing the frequency of insertion of a normal instruction into the first instruction. The higher the frequency of insertion of a normal instruction (arithmetic operation instruction) into the first instruction, the higher the ratio of normal instructions (processing ratio, execution ratio). As a result, power consumption gradually increases at the start of the arithmetic operation, so that it is possible to reduce a voltage drop in the power supply voltage and reduce power supply noise. As a result, it is possible to suppress malfunctions of the processor 100 and improve the operating margin. Note that a plurality of types of first instructions with different power consumptions may be inserted at the start of the arithmetic operation. Examples of the different types of first instructions include a NOP instruction that stops the clock and does not cause the arithmetic block 120 to perform processing, and a NOP instruction that reads data from the register file 123 and does not operate other circuits of the arithmetic block 120. The normal instruction supplied first in an operation in which the supply of an arithmetic operation instruction is started is an example of a first arithmetic operation instruction. In an operation in which the supply of an arithmetic instruction is started, a period including the processing period of the first normal instruction is an example of a first period, and a period after the first period is an example of a second period. Typically, a period in which power consumption gradually increases is an example of a first period, and a period after the first period in which normal instructions are continuously supplied without the first instruction is an example of a second period. Note that, since the first instruction is inserted between normal instructions in the first period, the ratio of normal instructions processed in the first period is lower than the ratio of normal instructions processed in the second period. Periods in which a predetermined number of instructions are processed or supplied, such as the first processing period and the second processing period, may be defined in advance by dividing them into periods or sections of a predetermined length.
[0055] Furthermore, when the supply of normal instructions from the instruction decoder 113 to the selector 119 is stopped and the arithmetic processing is stopped, the start / stop control unit 118 inserts the second instruction between the first instructions based on the second gradient information. The second gradient information includes information for gradually increasing the insertion frequency of the first instruction relative to the second instruction. The higher the insertion frequency of the first instruction relative to the second instruction, the smaller the ratio of the second instruction (processing ratio, execution ratio) becomes compared to the ratio of normal instructions processed before the arithmetic processing is stopped. This gradually reduces the power consumption when the arithmetic processing is stopped, so that it is possible to reduce power supply noise. As a result, it is possible to suppress malfunctions of the processor 100 and improve the operating margin. Note that, when the arithmetic processing is stopped, a plurality of second instructions having different power consumptions may be inserted. The arithmetic instruction supplied last when the arithmetic processing is stopped is an example of the last arithmetic instruction. In an operation in which the supply of the arithmetic instruction is stopped, a period including a period immediately after the arithmetic processing is stopped is an example of a first period, and a period after the first period is an example of a second period. Typically, a period during which power consumption gradually decreases is an example of a first period, and a period during which first commands are supplied consecutively without a second command following the first period is an example of a second period.
[0056] 4, the first instruction is inserted when the arithmetic processing starts, but an instruction other than the first instruction may be inserted in addition to the first instruction. Also, the first and second instructions are inserted when the arithmetic processing stops, but an instruction other than the first and second instructions may be inserted in addition to the first and second instructions.
[0057] Also, in an operation in which the supply of arithmetic instructions is stopped, for example, the selector 119 may supply normal instructions while gradually decreasing the supply frequency during a period in which power consumption is gradually decreasing. For example, the selector 119 may supply normal instructions instead of the second instructions. In this case, the ratio of the first instructions to the normal instructions is gradually increased during a period in which power consumption is gradually decreasing. The timing of stopping the arithmetic processing is the end of the period in which power consumption is gradually decreasing. Among the periods in which the supply frequency of normal instructions is gradually decreased, a period that includes the period in which the supply frequency of normal instructions is first decreased and includes the processing period of the last normal instruction is an example of a third period, and a period prior to the third period is an example of a second period.
[0058] As long as the sudden change in power consumption at the start of an arithmetic process is mitigated, large voltage drops, increases, or power supply noise is mitigated, and the circuit operates normally, there may be cases in which the power consumption of at least some of the multiple instructions inserted at the start of an arithmetic process is greater than the power consumption of the multiple arithmetic instructions supplied from the instruction decoder 113 that has the smallest power consumption.
[0059] Similarly, as long as the circuit is able to operate normally by reducing large voltage drops, increases, or power supply noise by reducing abrupt changes in power consumption when arithmetic processing is stopped, there may be cases in which the power consumption of at least some of the instructions inserted when arithmetic processing is stopped is greater than the power consumption of the arithmetic instruction with the smallest power consumption among the multiple arithmetic instructions supplied from the instruction decoder 113.
[0060] As described above, the circuit can operate normally by reducing abrupt changes in power consumption when the processor 100 starts operating, stops operating, or starts operating and stops operating. Also, by reducing abrupt changes in power consumption when the processor 100 starts operating, stops operating, or starts operating and stops operating, large voltage drops, rises, or power supply noise can be reduced, and the circuit can operate normally.
[0061] On the other hand, if the first instruction is not inserted when the supply of the arithmetic instruction starts, normal instructions are executed consecutively as the arithmetic processing starts, so power consumption increases rapidly. Therefore, a large voltage drop in the power supply voltage may occur at the start of the arithmetic processing, and large power supply noise may occur. Also, if the second instruction is not inserted when the supply of the arithmetic instruction stops, NOP instructions are executed consecutively as the arithmetic processing stops, so power consumption decreases rapidly. Therefore, large power supply noise may occur when the arithmetic processing stops.
[0062] As described above, in the embodiment shown in FIG. 1 to FIG. 4, when the supply of the arithmetic instruction is started, the frequency of insertion of the normal instruction relative to the first instruction is gradually increased, thereby reducing the voltage drop of the power supply voltage and reducing the power supply noise. Also, when the supply of the arithmetic instruction is stopped, the frequency of insertion of the first instruction relative to the second instruction is gradually increased, thereby reducing the power supply noise. As a result, the malfunction of the processor 100 can be suppressed and the operating margin can be improved. That is, the circuit can be operated normally by reducing the sudden change in the power consumption at the start of operation, the stop of operation, or the start of operation and the stop of operation of the processor 100, which is an example of an information processing device. Also, by reducing the sudden change in the power consumption at the start of operation, the stop of operation, or the start of operation and the stop of operation of the processor 100, a large voltage drop, rise, or power supply noise can be reduced, thereby allowing the circuit to operate normally.
[0063] For example, in a SIMD processor or the like that executes one arithmetic instruction in parallel by multiple arithmetic units 122, a significant power supply noise reduction effect can be obtained, and the operating margin can be improved. Since the operating margin is improved, for example, it becomes possible to increase the operating frequency of the processor 100. In other words, by lowering the operating frequency of the processor 100 to reduce the power supply noise, it is possible to suppress a decrease in the processing performance of the processor 100.
[0064] A first instruction holding unit 114 holds control information for a first instruction, a second instruction holding unit 115 holds control information for a second instruction, and a selector 119 selects the control information for an arithmetic instruction, the control information for the first instruction, or the control information for the second instruction and outputs it to an arithmetic block 120. This makes it possible to insert the first instruction or the second instruction between arithmetic instructions without changing the instruction set architecture.
[0065] By rewritably storing control information of the first instruction in the first instruction storage unit 114 and rewritably storing control information of the second instruction in the second instruction storage unit 115, the control information of the first instruction and the control information of the second instruction can be changed by software. By rewritably storing the first tilt information and the second tilt information in an I / O register or the like, the first tilt information and the second tilt information can be changed by software. This makes it possible to appropriately control the start and stop of the arithmetic unit 122 according to the operating environment (temperature, voltage) of the processor 100, etc.
[0066] FIG. 5 is a block diagram showing an example of a processor according to another embodiment of the present invention. The same elements as those in FIG. 1 are given the same reference numerals, and detailed description thereof will be omitted. The control unit 110 of the processor 100A shown in FIG. 5 has an instruction decoder 113A instead of the instruction decoder 113 in FIG. 1. The other configurations of the processor 100A are the same as those of the processor 100 in FIG. 1. Also, the board 300 on which the processor 100A is mounted is the same as that in FIG. 2. The processor 100A has a plurality of operation blocks 120, but may have one operation block 120. The instruction decoder 113A may be realized as an instruction decoder circuit 113A.
[0067] The instruction set architecture of the processor 100A includes a first instruction and a second instruction. Therefore, the instruction decoder 113A generates control information for controlling the operation block 120 based on the instruction codes of the first instruction and the second instruction.
[0068] As described above, in the embodiment shown in FIG. 5, as in the above-mentioned embodiment, when the supply of the calculation instruction starts, the frequency of inserting the normal instruction with respect to the first instruction is gradually increased, thereby reducing the voltage drop of the power supply voltage and reducing the power supply noise. Furthermore, when the supply of the calculation instruction stops, the frequency of inserting the first instruction with respect to the second instruction is gradually increased, thereby reducing the power supply noise. As a result, it is possible to suppress malfunction of the processor 100A and improve the operating margin. Furthermore, by holding the first gradient information and the second gradient information in an I / O register or the like in a rewritable manner, the first gradient information and the second gradient information can be changed by software.
[0069] Furthermore, in this embodiment, the first instruction is held in the first instruction holding unit 114, the second instruction is held in the second instruction holding unit 115, and the instruction decoder 113A decodes the arithmetic instruction, the first instruction, and the second instruction. Therefore, the first instruction and the second instruction can be included in the instruction set architecture. For example, by mounting a test mode in the processor 100A that stops the insertion of the first instruction and the second instruction by the start / stop control unit 118 and including the first instruction and the second instruction in the instruction sequence fetched by the instruction fetch unit 111, it is possible to evaluate power supply noise at the start and stop of the arithmetic processing.
[0070] Furthermore, by rewritably storing the first instruction in the first instruction storage unit 114 and rewritably storing the second instruction in the second instruction storage unit 115, the first instruction and the second instruction can be changed by software. This makes it possible to appropriately control the start and stop of the arithmetic unit 122 according to the operating environment (temperature, voltage) of the processor 100A, etc.
[0071] Fig. 6 is a block diagram showing an example of a processor according to another embodiment of the present invention. The same elements as those in Fig. 1 are given the same reference numerals, and detailed description thereof will be omitted. The processor 100B shown in Fig. 6 has a DMAC 160 between the bus BUS and the external memory 200. The processor 100B has a plurality of arithmetic blocks 120, but may have a single arithmetic block 120. Data transfer between the register file 123 and the external memory 200 is performed by the DMAC 160.
[0072] Therefore, the data transfer instructions fetched by the instruction fetch unit 111 include load instructions / store instructions for transferring data between the internal memory 124 and the register file 123, and DMA instructions for transferring data between the external memory 200 and the register file 123. The DMAC 160 is an example of a data transfer unit that processes data transfer based on a data transfer instruction. The data transfer unit may be realized as a data transfer circuit.
[0073] The control unit 110 has a synchronization control unit 116B, an instruction decoder 113B, and a selector 119B instead of the synchronization control unit 116, the instruction decoder 113, and the selector 119 in Fig. 1. Other configurations of the processor 100B are similar to those of the processor 100 in Fig. 1. Also, the board 300 on which the processor 100B is mounted is similar to that in Fig. 2. The synchronization control unit 116B, the instruction decoder 113B, and the selector 119B may be realized as a synchronization control circuit 116B, an instruction decoder circuit 113B, and a selector circuit 119B.
[0074] 1, the instruction decoder 113B has a function of decoding a DMA instruction. The selector 119B has a function of outputting the control information DMACNT of the DMA instruction received from the instruction decoder 113B to the DMAC 160, in addition to the function of the selector 119 in FIG.
[0075] 1, synchronization control unit 116B has a function of determining, based on a transfer end signal TEND from DMAC 160, that an arithmetic instruction can be executed using data transferred to register file 123 by execution of a DMA instruction, and outputting executable information to instruction issuance determination unit 117. For example, the DMA instruction and the arithmetic instruction that executes an arithmetic operation using data transferred to register file 123 by the DMA instruction may include common identification information.
[0076] The DMAC 160 has a function of gradually increasing the amount of data transfer when the DMA transfer starts based on the third gradient information, and a function of gradually decreasing the amount of data transfer when the DMA transfer stops based on the fourth gradient information. The third gradient information may be the number of cycles until the amount of data transfer reaches 100% or may be the increase rate of the amount of data transfer. The fourth gradient information may be the number of cycles until the amount of data transfer reaches 0% or may be the decrease rate of the amount of data transfer.
[0077] The third tilt information and the fourth tilt information may be set as fixed information when the processor 100B is designed. The third tilt information and the fourth tilt information may be held in a register that can be set at the time of starting the processor 100B, for example. The third tilt information and the fourth tilt information may be held in an I / O register or a status register that can be rewritten at the time of starting the processor 100, for example. In this case, the third tilt information and the fourth tilt information can be changed by software. The third tilt information and the fourth tilt information, or the third tilt information and the fourth tilt information, may be changed based on the operating environment (temperature, voltage) of the processor 100, a user's setting, and the like.
[0078] In addition, when the third gradient information and the fourth gradient information are set to the same number of cycles, etc., one gradient information may be supplied to the DMAC 160 instead of the third gradient information and the fourth gradient information. Also, the processor 100B may not have the function of inserting the first instruction when starting to supply an arithmetic instruction and inserting the first instruction and the second instruction when stopping to supply an arithmetic instruction. In this case, the start / stop control unit 118 does not have the function of instructing the selector 119B to insert the first instruction and the second instruction.
[0079] Furthermore, the processor 100B may not have the function of inserting the first instruction when the supply of the arithmetic instruction starts, and the function of inserting the first instruction and the second instruction when the supply of the arithmetic instruction stops. In this case, the control unit 110 may not have the first instruction holding unit 114, the second instruction holding unit 115, and the start / stop control unit 118, as shown in Fig. 8 described later.
[0080] Fig. 7 is a timing diagram showing an example of DMA transfer of the processor 100B of Fig. 6. Fig. 7 shows an example in which the amount of data transfer is gradually increased when the DMA transfer starts, and an example in which the amount of data transfer is gradually decreased when the DMA transfer stops. Also, as a comparative example, an example in which the amount of data transfer is not changed when the DMA transfer starts and stops is shown.
[0081] At the start of a DMA transfer, the DMAC 160 alternates between cycles in which data transfer is performed and cycles in which data transfer is not performed, gradually increasing the ratio of cycles in which data transfer is performed. Thereafter, the DMAC 160 performs data transfers continuously. This gradually increases the power consumption at the start of a DMA transfer, thereby reducing the voltage drop of the power supply voltage and reducing power supply noise. As a result, it is possible to suppress malfunctions of the processor 100B and improve the operating margin. In an operation in which a DMA transfer is started, a period including the first data transfer is an example of a first period, and a period after the first period is an example of a second period. Typically, a period in which power consumption gradually increases is an example of a first period, and a period in which data transfers are performed continuously without a gap after the first period is an example of a second period.
[0082] When the DMA transfer is stopped, the DMAC 160 inserts a cycle for performing a dummy data transfer, and gradually reduces the insertion ratio of the dummy data transfer. For example, in the dummy data transfer, the DMAC 160 reads data from the transfer source, but does not write the read data to the transfer destination. This allows only power to be consumed without affecting the data transfer. By inserting the dummy data transfer, the power consumption when the DMA transfer is stopped gradually decreases, and it is possible to reduce power supply noise. As a result, it is possible to suppress malfunctions of the processor 100B and improve the operating margin. The period during which the power consumption gradually decreases by gradually decreasing the frequency of the dummy data transfer is an example of the period after the processing period of the last data transfer.
[0083] On the other hand, if a cycle in which no data transfer is performed is not inserted at the start of a DMA transfer, power consumption increases rapidly, which may cause a large voltage drop in the power supply voltage and generate large power supply noise.Also, if a cycle in which dummy data transfer is performed is not inserted at the end of a DMA transfer, power consumption decreases rapidly, which may cause large power supply noise.
[0084] As described above, in the embodiment shown in Figures 6 and 7, similarly to the embodiment shown in Figures 1 to 4, power supply noise can be reduced when the supply of an arithmetic instruction starts and stops, and malfunction of the processor 100 can be suppressed and the operating margin can be improved. Also, the control information of the first instruction and the control information of the second instruction can be changed by software. The first gradient information and the second gradient information can be changed by software.
[0085] Furthermore, in this embodiment, by gradually increasing the amount of data transfer at the start of DMA transfer, power consumption gradually increases, making it possible to reduce voltage drops in the power supply voltage and reduce power supply noise. By gradually decreasing the amount of data transfer at the stop of DMA transfer, power consumption gradually decreases, making it possible to reduce power supply noise. As a result, malfunctions of the processor 100B can be suppressed and the operating margin can be improved.
[0086] Moreover, the third tilt information and the fourth tilt information can be changed by software by storing the third tilt information and the fourth tilt information in an I / O register or a status register that can be rewritten at the start of the processor 100. The DMAC 160 and the DMA transfer function in FIG. 6 may be implemented in the processor 100A shown in FIG. 5.
[0087] FIG. 8 is a block diagram showing an example of an information processing device according to another embodiment of the present invention. The same elements as those in FIG. 5 are given the same reference numerals, and detailed description thereof will be omitted. The information processing device shown in FIG. 8 functions as a host 400 including a compiler 410 that generates instructions to be executed by the processor 100C, and an instruction insertion block 420. The host 400 has at least one memory and at least one processor that executes a program. Although not particularly limited, the compiler 410 and the instruction insertion block 420 are realized, for example, by a program executed by the host 400. The processor 100C has a plurality of operation blocks 120, but may have one operation block 120.
[0088] The compiler 410 converts the source program into an instruction code executable by the processor 100C. The instruction insertion block 420 inserts a first instruction and a second instruction into the instruction code generated by the compiler 410, and transfers it to the external memory 200. As in FIG. 2, the processor 100C and the external memory 200 are mounted on the board 300. Note that the instruction insertion block 420 may be disposed outside the host 400. The instruction insertion block 420 is an example of an instruction insertion device that generates an operation instruction sequence including the first instruction and the second instruction.
[0089] The processor 100C has a control unit 110C instead of the control unit 110A of Fig. 5. The control unit 110C has a similar configuration to the control unit 110A of Fig. 5, except that the second instruction holding unit 115, the first instruction holding unit 114, and the start / stop control unit 118 are deleted from the control unit 110A of Fig. 5.
[0090] In this embodiment, the sequence of instructions executed by the processor 100C includes the first instruction and the second instruction. Therefore, the process of inserting the first instruction at the start of the arithmetic processing and the process of inserting the first instruction and the second instruction at the stop of the arithmetic processing are not necessary. That is, the process of inserting the first instruction at the start of the arithmetic processing and the process of inserting the first instruction and the second instruction at the stop of the arithmetic processing may be realized by the generation of instruction codes by the compiler 410 without implementing the control by the start / stop control unit 118 of the above-mentioned embodiment. When the top instruction at the top of the queue of the instruction buffer 112 becomes executable, the instruction issue determination unit 117 outputs start information to the selector 119 to permit execution of the top instruction.
[0091] When the selector 119 receives start information, it outputs the top instruction, and the first instruction and subsequent instructions following the top instruction in the order they were decoded to each operation block 120. When the selector 119 receives stop information, it outputs the top instruction, and the first instruction, second instruction, and subsequent instructions following the top instruction in the order they were decoded to each operation block 120. Then, each operation block 120 executes the instructions sequentially, similar to the case of inserting the first instruction or the second instruction in FIG. 4.
[0092] Fig. 9 is an explanatory diagram showing an example of an instruction code generated by the compiler 410 and an instruction code generated by the instruction insertion block 420 in Fig. 8. For example, the compiler 410 generates an operation instruction sequence AJ that executes an operation using data transferred to the register file 123 by a data transfer instruction. The compiler 410 also generates an operation instruction sequence KP (operation instruction P is the last instruction sequence). The compiler 410 may add identification information indicating the start of the operation instruction sequence to the operation instruction A, and add identification information indicating the end of the operation instructions to the operation instruction P.
[0093] When the instruction insertion block 420 detects the start of an arithmetic instruction sequence, it inserts a first instruction between normal instructions so that the insertion frequency of the normal instruction gradually increases. When the instruction insertion block 420 detects the end of an arithmetic instruction sequence, it inserts a first instruction and a second instruction so that the insertion frequency of the first instruction relative to the second instruction gradually increases. As a result, as in FIG. 4, power consumption can be gradually increased at the start of an arithmetic processing, and a voltage drop in the power supply voltage can be reduced, thereby reducing power supply noise. In addition, power consumption can be gradually reduced at the stop of an arithmetic processing, thereby reducing power supply noise. In an instruction sequence generated by the instruction insertion block 420 when an arithmetic instruction sequence starts, a period including a processing period of the first normal instruction is an example of a first period, and a period after the first period is an example of a second period. Typically, a period in which the insertion frequency of the first instruction gradually decreases is an example of a first period, and a period after the first period in which the insertion of the first instruction does not occur is an example of a second period.
[0094] In the instruction sequence generated by the instruction insertion block 420 when the arithmetic instruction sequence ends, a period including a period immediately after the arithmetic processing stops is an example of a first period, and a period after the first period is an example of a second period. Typically, a period during which the frequency of insertion of second instructions gradually decreases is an example of the first period, and a period following the first period during which first instructions are continuously supplied without second instructions in between is an example of the second period.
[0095] The instruction insertion block 420 may generate an instruction sequence while gradually decreasing the supply frequency of normal instructions when the computation instruction sequence ends. In this case, the second instruction, the first instruction, or the second instruction and the first instruction are inserted between the normal instructions. Of the period during which the supply frequency of normal instructions is gradually decreased, a period including the period during which the supply frequency of normal instructions is first decreased and including the period during which the last normal instruction is supplied is an example of a third period, and a period before the third period is an example of a second period.
[0096] 8 and 9, a sequence of instructions that gradually increases the insertion frequency of normal instructions relative to the first instructions is added to the beginning of the sequence of calculation instructions, and a sequence of instructions that gradually increases the insertion frequency of the first instructions relative to the second instructions is added to the end of the sequence of calculation instructions. This makes it possible to reduce power supply noise when the processor 100C executes the sequence of instructions generated by the instruction insertion block 420, suppress malfunctions of the processor 100C, and improve the operating margin.
[0097] For example, in a SIMD processor or the like that executes one arithmetic instruction in parallel by a plurality of arithmetic units 122, a significant power supply noise reduction effect can be obtained and the operating margin can be improved. Since the operating margin is improved, for example, it becomes possible to increase the operating frequency of the processor 100C.
[0098] Fig. 10 is a block diagram showing an example of a hardware configuration of the host 400 shown in Fig. 2 and Fig. 8. As an example, the host 400 may be realized as a computer including a processor 20, a main storage device 30 (memory), an auxiliary storage device 40 (memory), a network interface 50, and a device interface 60, which are connected via a bus 70. For example, the processor 20 executes a command insertion program, thereby executing the insertion process of the first command and the second command described in Fig. 9.
[0099] A part or all of the processes, means, etc. of the present disclosure may be realized by at least one of a processor and a storage device provided on a cloud capable of communicating with the host 400 via a network. Thus, the host 400 in the above-described embodiment may be in the form of parallel computing using one or more computers.
[0100] The processor 20 may be an electronic circuit (processing circuit, processing circuitry, CPU, GPU, FPGA, ASIC, etc.) that at least controls a computer or performs calculations. The processor 20 may be a general-purpose processor, a dedicated processing circuit designed to perform a specific calculation, or a semiconductor device that includes both a general-purpose processor and a dedicated processing circuit. The processor 20 may include an optical circuit, or may include a calculation function based on quantum computing.
[0101] The processor 20 may perform arithmetic processing based on data or software input from each device or the like in the internal configuration of the host 400, and may output arithmetic results or control signals to each device or the like. The processor 20 may control each component constituting the host 400 by executing the OS (Operating System) of the host 400, applications, etc.
[0102] The host 400 in the above-described embodiment may be realized by one or more processors 20. Here, the processor 20 may refer to one or more electronic circuits arranged on one chip, or to one or more electronic circuits arranged on two or more chips or two or more devices. When multiple electronic circuits are used, the electronic circuits may communicate with each other by wire or wirelessly.
[0103] The main memory device 30 may store instructions executed by the processor 20 and various data, and information stored in the main memory device 30 may be read by the processor 20. The auxiliary memory device 40 is a memory device other than the main memory device 30. These memory devices refer to any electronic components capable of storing electronic information, and may be semiconductor memories. The semiconductor memories may be either volatile or non-volatile memories. The memory device for saving various data in the host 400 in the above-mentioned embodiment may be realized by the main memory device 30 or the auxiliary memory device 40.
[0104] When the host 400 in the above-described embodiment is configured with at least one storage device (memory) and at least one processor 20 connected (coupled) to the at least one storage device, at least one processor 20 may be connected to one storage device. At least one storage device may be connected to one of the processors 20. A configuration in which at least one processor 20 of the multiple processors 20 is connected to at least one storage device of the multiple storage devices may also be included. This configuration may also be realized by storage devices and processors 20 included in multiple hosts 400. Furthermore, a configuration in which a storage device is integrated with a processor 20 (for example, a cache memory including an L1 cache and an L2 cache) may also be included.
[0105] The network interface 50 is an interface for connecting to the communication network 600 wirelessly or by wire. The network interface 50 may be an appropriate interface, such as one conforming to an existing communication standard. The network interface 50 may exchange information with an external device 710 connected via the communication network 600. The communication network 600 may be any one of a wide area network (WAN), a local area network (LAN), a personal area network (PAN), etc., or a combination thereof, as long as information is exchanged between the host 400 and the external device 710. An example of a WAN is the Internet, an example of a LAN is IEEE802.11 or Ethernet (registered trademark), and an example of a PAN is Bluetooth (registered trademark) or Near Field Communication (NFC).
[0106] The device interface 60 is an interface such as a USB that directly connects to an external device 720 .
[0107] The external device 710 is a device connected to the host 400 via the communication network 600. The external device 720 is a device directly connected to the host 400.
[0108] The external device 710 or the external device 720 may be, for example, an input device. The input device is, for example, a device such as a camera, a microphone, a motion capture device, various sensors, a keyboard, a mouse, a touch panel, or the like, and provides acquired information to the host 400. Alternatively, the input device may be a device equipped with an input unit, a memory, and a processor, such as a personal computer, a tablet terminal, or a smartphone.
[0109] Moreover, the external device 710 or the external device 720 may be, for example, an output device. The output device may be, for example, a display device such as an LCD (Liquid Crystal Display) or an organic EL (Electro Luminescence) panel, or may be a speaker that outputs sound or the like. Alternatively, the output device may be a device including an output unit, a memory, and a processor, such as a personal computer, a tablet terminal, or a smartphone.
[0110] Furthermore, the external device 710 or the external device 720 may be a storage device (memory). For example, the external device 710 may be a network storage or the like, and the external device 720 may be a storage device such as an HDD.
[0111] Furthermore, the external device 710 or the external device 720 may be a device having some of the functions of the components of the host 400 in the above-described embodiment. In other words, the host 400 may transmit some or all of the processing results of the external device 710 or the external device 720, or may receive some or all of the processing results from the external device 710 or the external device 720.
[0112] In this specification (including the claims), when the expression "at least one of a, b, and c" or "at least one of a, b, or c" (including similar expressions) is used, it includes any of a, b, c, ab, ac, bc, or abc. It may also include multiple instances of any element, such as aa, abb, aabbcc, etc. Furthermore, it also includes the addition of elements other than the enumerated elements (a, b, and c), such as having d, as in abcd.
[0113] In this specification (including claims), when expressions such as "using data as input / based on / according to / in response to data" (including similar expressions) are used, unless otherwise specified, this includes the use of data itself or data that has been processed in some way (e.g., data with noise added, normalized, feature values extracted from data, intermediate representations of data, etc.). In addition, when it is stated that a result is obtained "using data as input / based on / according to / in response to data" (including similar expressions), unless otherwise specified, this includes the use of the result based only on the data, or the use of the result influenced by other data, factors, conditions, and / or states other than the data. In addition, when it is stated that "data is output" (including similar expressions), unless otherwise specified, this includes the use of data itself as output, or data that has been processed in some way (e.g., data with noise added, normalized, feature values extracted from data, intermediate representations of various data, etc.) as output.
[0114] In this specification (including the claims), the terms "connected" and "coupled" are intended as open-ended terms including any of direct connection / coupling, indirect connection / coupling, electrically connection / coupling, communicatively connection / coupling, functionally connection / coupling, physically connection / coupling, etc. The terms should be interpreted appropriately depending on the context in which the terms are used, but any connection / coupling form that is not intentionally or naturally excluded should be interpreted as being included in the terms without any restriction.
[0115] In this specification (including the claims), when the expression "A configured to B" is used, it may include that the physical structure of element A has a configuration capable of performing operation B, and that the permanent or temporary setting / configuration of element A is configured / set to actually perform operation B. For example, when element A is a general-purpose processor, it is sufficient that the processor has a hardware configuration capable of performing operation B, and is configured to actually perform operation B by setting a permanent or temporary program (instruction). Also, when element A is a dedicated processor, dedicated arithmetic circuit, etc., it is sufficient that the circuit structure, etc. of the processor is implemented to actually perform operation B, regardless of whether control instructions and data are actually attached.
[0116] In this specification (including the claims), when terms implying containing or possessing (e.g., "comprising / including," "having," etc.) are used, they are intended to be open-ended terms that include cases in which the term contains or possesses things other than the object indicated by the object of the term. When the object of such terms implying containing or possessing does not specify a quantity or suggests a singular number (such as an expression using the article "a" or "an"), the expression should be construed as not being limited to a specific number.
[0117] In this specification (including the claims), even if expressions such as "one or more" and "at least one" are used in some places and expressions that do not specify a quantity or suggest a singular number (expressions using the articles "a" or "an") are used in other places, the latter expressions are not intended to mean "one." In general, expressions that do not specify a quantity or suggest a singular number (expressions using the articles "a" or "an") should be interpreted as not necessarily being limited to a specific number.
[0118] In this specification, when a particular advantage / result is described as being obtained from a particular configuration of an embodiment, it should be understood that the same effect can also be obtained from one or more other embodiments having the same configuration, unless there is a reason to the contrary. However, it should be understood that the presence or absence of the effect generally depends on various factors, conditions, and / or states, and that the effect is not necessarily obtained by the configuration. The effect is merely obtained by the configuration described in the embodiment when various factors, conditions, and / or states are satisfied, and the effect is not necessarily obtained in the invention according to the claim that specifies the configuration or a similar configuration.
[0119] In this specification (including claims), when a plurality of pieces of hardware perform a predetermined process, each piece of hardware may cooperate to perform the predetermined process, or a portion of the hardware may perform all of the predetermined process. Also, a portion of the hardware may perform a portion of the predetermined process, and another piece of hardware may perform the remainder of the predetermined process. In this specification (including claims), when an expression such as "one or more pieces of hardware perform a first process, and the one or more pieces of hardware perform a second process" (including similar expressions) is used, the hardware performing the first process and the hardware performing the second process may be the same or different. In other words, it is sufficient that the hardware performing the first process and the hardware performing the second process are included in the one or more pieces of hardware. The hardware may include an electronic circuit, a device including an electronic circuit, and the like.
[0120] In this specification (including the claims), when multiple storage devices (memories) store data, each of the multiple storage devices may store only a portion of the data, or may store the entire data. Also, a configuration in which only some of the multiple storage devices store data may be included.
[0121] Although the embodiments of the present disclosure have been described in detail above, the present disclosure is not limited to the above-mentioned individual embodiments. Various additions, modifications, replacements, partial deletions, etc. are possible within the scope of the conceptual idea and intent of the present invention derived from the contents defined in the claims and their equivalents. For example, in the above-mentioned embodiments, when numerical values or formulas are used for explanation, these are shown for illustrative purposes and do not limit the scope of the present disclosure. In addition, the order of each operation shown in the embodiment is also illustrative and does not limit the scope of the present disclosure.
[0122] For example, aspects of the present invention are as follows. <1> one or more operation blocks for processing a plurality of operation instructions; and an instruction insertion unit that inserts another instruction, which consumes less power than the operation instruction, between the plurality of operation instructions and outputs the other instruction to the one or more operation blocks so that a ratio of the operation instructions processed in a first period including a processing period of a first operation instruction included in the plurality of operation instructions becomes lower than a ratio of the operation instructions processed in a second period after the first period. Information processing device. <2> the instruction insertion unit inserts the other instructions such that a ratio of the operation instructions gradually increases after processing of the first operation instruction. <1> The information processing device described in <3> a gradient holding unit that holds gradient information indicating an increase rate of the operation command in a rewritable manner; the instruction insertion unit gradually increases the ratio of the operation instructions based on the gradient information stored in the gradient storage unit. <2> The information processing device described in <4> The other instruction is an instruction that does not affect a processing result of the arithmetic instruction. <1> Information processing device. <5> the other instruction is an instruction independent of the arithmetic instruction, <1> Information processing device. <6> The plurality of operation instructions are instructions for causing the one or more operation blocks to execute operations. <1 Information processing device. <7> Two or more of the above-mentioned operation blocks are included, It operates as a SIMD (Single Instruction Multiple Data) processor. <1> The information processing device described in <8> the instruction insertion unit outputs, after a final operation instruction included in the plurality of operation instructions, a plurality of other instructions that do not affect a processing result of the plurality of operation instructions to the one or more operation blocks; <1> ~ <7> 13. The information processing device according to claim 12 . <9> the plurality of other instructions include at least a first instruction and a second instruction consuming more power than the first instruction; <8> The information processing device described in <10> the instruction insertion unit outputs the plurality of other instructions to the one or more operation blocks such that a ratio of the first instruction becomes gradually higher than a ratio of the second instruction. <9> The information processing device described in <11> the instruction insertion unit inserts the other instruction between the plurality of operation instructions and outputs the other instruction to the one or more operation blocks so that a ratio of the operation instructions processed in a third period including a processing period of a last operation instruction included in the plurality of operation instructions is lower than a ratio of the operation instructions processed in the second period prior to the third period; <1> ~ <7> 13. The information processing device according to claim 12 . <12> one or more operation blocks for processing a plurality of operation instructions; an instruction insertion unit that outputs the second instruction and a first instruction consuming less power than the second instruction to the one or more operation blocks so that a ratio of the second instruction processed in a first period after a processing period of the plurality of operation instructions is higher than a ratio of the second instruction processed in a second period after the first period; the first instruction and the second instruction do not affect a processing result of the plurality of operation instructions. Information processing device. <13> the instruction insertion unit outputs the first instruction and the second instruction to the one or more operation blocks so that a ratio of the second instruction gradually decreases. <12> The information processing device described in <14> the first instruction and the second instruction are instructions independent of the arithmetic instruction; <12> Information processing device. <15> Two or more of the above-mentioned operation blocks are included, It operates as a SIMD (Single Instruction Multiple Data) processor. <12> ~ <14> 13. The information processing device according to claim 12 . <16> a data transfer unit that processes data transfer based on a data transfer command; the data transfer unit sets a frequency of data transfer in a first period including a first data transfer during a processing period of the data transfer to be lower than a frequency of data transfer in a second period after the first period. Information processing device. <17> the data transfer unit gradually reduces the frequency of data transfer during a processing period for the final data transfer; <16> The information processing device described in <18> At least one memory; at least one processor; The at least one processor: receiving a plurality of arithmetic instructions to be processed by an information processing device, and generating an arithmetic instruction sequence to be processed by the information processing device by inserting another instruction consuming less power than the arithmetic instructions between the plurality of arithmetic instructions so that, during a processing period of the plurality of arithmetic instructions, a ratio of the arithmetic instructions processed in a first period including a processing period of a first arithmetic instruction included in the plurality of arithmetic instructions is lower than a ratio of the arithmetic instructions processed in a second period subsequent to the first period; Instruction insertion device. <19> generating an operation instruction sequence to be processed by the information processing device by inserting the other instruction between the plurality of operation instructions so that, during a processing period of the plurality of operation instructions, a ratio of the operation instructions processed in a third period including a processing period of a last operation instruction included in the plurality of operation instructions is lower than a ratio of the operation instructions processed in the second period preceding the third period; <18> An instruction insertion device as described in <20> A method for controlling an information processing device having one or more operation blocks for processing operation instructions, comprising the steps of: inserting another instruction having a lower power consumption than the operation instruction between the plurality of operation instructions and outputting the other instruction to the one or more operation blocks so that, in a processing period of the plurality of operation instructions, a ratio of the operation instructions processed in a first period including a processing period of a first operation instruction included in the plurality of operation instructions becomes lower than a ratio of the operation instructions processed in a second period after the first period; A method for controlling an information processing device. <21> inserting the other instruction between the plurality of operation instructions and outputting it to the one or more operation blocks so that, in a processing period of the plurality of operation instructions, a ratio of the operation instructions processed in a third period including a processing period of a last operation instruction included in the plurality of operation instructions becomes lower than a ratio of the operation instructions processed in the second period prior to the third period; <20> A method for controlling the information processing device according to claim 1. [Explanation of symbols]
[0123] 100, 100A, 100B, 100C Processors 110, 110A, 110C Control unit 111 Instruction Fetch Unit 112 Instruction Buffer 113, 113A, 113B Instruction Decoder 114 1st instruction holding section 115 2nd instruction holding section 116, 116B Synchronization control section 117 Instruction issue determination unit 118 Start / Stop Control Unit 119, 119B selector 120 Calculation Block 121 cores 122 Arithmetic unit 123 Register File 124 internal memory 130 Block 1 131 First Memory 140 2nd Block 141 Second Memory 151 Third Memory 200 External Memory 300 Board 400 Host 410 Compiler 420 Instruction Insertion Block BUS DMACNT control information EX Calculation control information SYNC Synchronization information TR Transmission control information
Claims
1. one or more operation blocks for processing a plurality of operation instructions; and an instruction insertion unit that inserts another instruction, which consumes less power than the operation instruction, between the plurality of operation instructions and outputs the other instruction to the one or more operation blocks so that, during a processing period of the plurality of operation instructions, a ratio of the operation instructions processed in a first period including a processing period of a first operation instruction included in the plurality of operation instructions becomes lower than a ratio of the operation instructions processed in a second period after the first period. Information processing device.
2. the instruction insertion unit inserts the other instructions such that a ratio of the operation instructions gradually increases after processing of the first operation instruction. The information processing device according to claim 1 .
3. a gradient holding unit that holds gradient information indicating an increase rate of the operation command in a rewritable manner; the instruction insertion unit gradually increases the ratio of the operation instructions based on the gradient information stored in the gradient storage unit. The information processing device according to claim 2 .
4. The other instruction is an instruction that does not affect a processing result of the arithmetic instruction.
2. An information processing device according to claim 1.
5. The other instruction is an instruction independent of the arithmetic instruction.
2. An information processing device according to claim 1.
6. The plurality of operation instructions are instructions for causing the one or more operation blocks to execute operations.
2. An information processing device according to claim 1.
7. Two or more of the processing blocks are included, Operates as a Single Instruction Multiple Data (SIMD) processor. The information processing device according to claim 1 .
8. the instruction insertion unit outputs, after a final operation instruction included in the plurality of operation instructions, a plurality of other instructions that do not affect a processing result of the plurality of operation instructions to the one or more operation blocks; The information processing device according to claim 1 .
9. the plurality of other instructions include at least a first instruction and a second instruction consuming more power than the first instruction; The information processing device according to claim 8.
10. the instruction insertion unit outputs the plurality of other instructions to the one or more operation blocks such that a ratio of the first instruction becomes gradually higher than a ratio of the second instruction. The information processing device according to claim 9.
11. the instruction insertion unit inserts the other instruction between the plurality of operation instructions and outputs the other instruction to the one or more operation blocks so that a ratio of the operation instructions processed in a third period including a processing period of a last operation instruction included in the plurality of operation instructions is lower than a ratio of the operation instructions processed in the second period prior to the third period; The information processing device according to claim 1 .
12. one or more operation blocks for processing a plurality of operation instructions; an instruction insertion unit that outputs the second instruction and a first instruction consuming less power than the second instruction to the one or more operation blocks so that a ratio of the second instruction processed in a first period after a processing period of the plurality of operation instructions is higher than a ratio of the second instruction processed in a second period after the first period; the first instruction and the second instruction do not affect a processing result of the plurality of operation instructions. Information processing device.
13. the instruction insertion unit outputs the first instruction and the second instruction to the one or more operation blocks so that a ratio of the second instruction gradually decreases. The information processing device according to claim 12.
14. the first instruction and the second instruction are instructions independent of the arithmetic instruction; An information processing device according to claim 12.
15. Two or more of the processing blocks are included, Operates as a Single Instruction Multiple Data (SIMD) processor. The information processing device according to any one of claims 12 to 14.
16. a data transfer unit that processes data transfer based on a data transfer command; the data transfer unit sets a frequency of data transfer in a first period including a first data transfer during a processing period of the data transfer to be lower than a frequency of data transfer in a second period following the first period; Information processing device.
17. the data transfer unit gradually increases the frequency of data transfer after the processing period of the initial data transfer. The information processing device according to claim 16.
18. At least one memory; at least one processor; The at least one processor receiving a plurality of arithmetic instructions to be processed by an information processing device, and generating an arithmetic instruction sequence to be processed by the information processing device by inserting another instruction consuming less power than the arithmetic instructions between the plurality of arithmetic instructions so that, during a processing period of the plurality of arithmetic instructions, a ratio of the arithmetic instructions processed in a first period including a processing period of a first arithmetic instruction included in the plurality of arithmetic instructions is lower than a ratio of the arithmetic instructions processed in a second period subsequent to the first period; Instruction insertion device.
19. the at least one processor generates an operation instruction sequence that causes the information processing device to process a plurality of other instructions that do not affect a processing result of the plurality of operation instructions, after a final operation instruction included in the plurality of operation instructions; 20. An instruction insertion device according to claim 18.
20. A method for controlling an information processing device having one or more operation blocks for processing an operation instruction, comprising the steps of: inserting another instruction having a lower power consumption than the operation instruction between the plurality of operation instructions and outputting the other instruction to the one or more operation blocks so that, in a processing period of the plurality of operation instructions, a ratio of the operation instructions processed in a first period including a processing period of a first operation instruction included in the plurality of operation instructions becomes lower than a ratio of the operation instructions processed in a second period subsequent to the first period; A method for controlling an information processing device.
21. outputting, after a final operation instruction included in the plurality of operation instructions, a plurality of other instructions that do not affect a processing result of the plurality of operation instructions to the one or more operation blocks; The method for controlling an information processing device according to claim 20.
