Artificial intelligence core, artificial intelligence core system, and load / store method for artificial intelligence core system
The load/store method for artificial intelligence cores optimizes bandwidth and task execution by using separate hardware units to manage current and standby operations, addressing computational performance limitations and enhancing system efficiency and speed.
Patent Information
- Application Number
- JP2024525891
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-11-02
- Filing Date
- 2021-12-30
- Publication Date
- 2024-10-23
- Estimated Expiration
- 2041-12-30
AI Technical Summary
Existing artificial intelligence cores face challenges in maximizing bandwidth and efficiently managing data and program loads due to limitations in computational performance and interface efficiency.
The implementation of a load/store method and system for artificial intelligence cores that includes a main and hidden load/store unit, utilizing separate hardware and bandwidth allocation to manage current and standby operations, ensuring high-priority data transmission and parallel processing of tasks.
This approach optimizes bandwidth utilization, prevents delays in current tasks, and enhances the efficiency of artificial intelligence core systems by allowing simultaneous execution of multiple tasks without stalling, thereby increasing computational speed and performance.
Smart Images

Figure 2024538829000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an artificial intelligence core, an artificial intelligence core system, and a load / store method for the artificial intelligence core system. More specifically, the present invention relates to an artificial intelligence core, an artificial intelligence core system, and a load / store method for the artificial intelligence core system for making the most of the artificial intelligence core. [Background technology]
[0002] In recent years, artificial intelligence (AI) technology has been attracting attention as one of the most promising technologies in the world, and is a core technology of the Fourth Industrial Revolution. The biggest problem with AI technology is computing performance. AI technology realizes human learning, reasoning, perception, and natural language processing capabilities, and the most important thing is to process large amounts of data quickly.
[0003] In early AI, deep learning learning and inference were performed using the central processing unit (CPU) and graphics processing unit (GPU) of conventional computers. However, deep learning learning and inference tasks, which involve a high workload, have limitations, so AI cores structurally specialized for deep learning tasks are gaining attention.
[0004] The AI core contains many multipliers inside, and it is difficult to secure sufficient bandwidth to call the necessary data and programs for the calculation work of such a calculation device.
[0005] Therefore, it would be a very good method to improve the performance of the artificial intelligence core by calling up the programs and data required for the next task in chronological order in advance. [Prior art documents] [Patent documents]
[0006] [Patent Document 1] Korean Patent No. 10-2258566 Summary of the Invention [Problem to be solved by the invention]
[0007] It is an object of the present invention to provide an artificial intelligence core that can be efficiently maximized.
[0008] Another object of the present invention is to provide an artificial intelligence core system that can efficiently maximize the bandwidth with external interfaces.
[0009] It is still another object of the present invention to provide a load / store method for an artificial intelligence core system that can efficiently maximize the bandwidth with an external interface.
[0010] The object of the present invention is not limited to the object described above, and other objects and advantages of the present invention not mentioned above can be understood from the following description and will be more clearly understood by the embodiments of the present invention. Also, it is easily understood that the objects and advantages of the present invention can be realized by the means and combinations thereof as set forth in the claims. [Means for solving the problem]
[0011] To solve the above problem, an artificial intelligence core according to some embodiments of the present invention has a process unit that receives input activations and weights and generates output activations through two-dimensional matrix calculations, and a load / store unit that performs load / store operations to transfer programs and input data received via an external interface to an on-chip buffer and transfer output data from the on-chip buffer to the external interface, the load / store operations including a main load / store operation for a current execution operation currently executed by the process unit and a standby load / store operation for a standby execution operation executed by the process unit after the current execution operation.
[0012] The logic circuit may also include an activation buffer that provides the input activations to the process unit, receives the output activations from the process unit, and temporarily stores the input activations and the output activations; an on-chip buffer that temporarily stores programs and input data for the process unit to perform operations and transmits them to the process unit and temporarily stores output data received from the process unit, the input data including the input activations and the weighted values; and an activation load / store unit that transmits the input activations from the on-chip buffer to the activation buffer and transmits the output activations from the activation buffer to the on-chip buffer.
[0013] Additionally, the standby load / store operation may be performed using the bandwidth of the external interface that is not used by the main load / store operation.
[0014] The load / store unit may also include a main load / store unit that performs the main load / store operation and transmits first load data and first store data to the on-chip buffer, and a hidden load / store unit that performs the standby load / store operation and transmits second load data and second store data to the on-chip buffer.
[0015] The hidden load / store unit may also include a hidden load unit that fetches a standby load instruction received from a task controller and executes a standby load instruction issue, a hidden store unit that fetches a standby store instruction received from the task controller and executes a standby store instruction issue, a hidden load buffer that sequentially receives memory access requests corresponding to the load instructions from the hidden load unit, a hidden store buffer that sequentially receives memory access requests corresponding to the store instructions from the hidden store unit, a hidden load engine that receives a memory access request from the hidden load buffer and transfers the second load data to the on-chip buffer, and a hidden store engine that receives a memory access request from the hidden store buffer and transfers the second store data to the on-chip buffer.
[0016] Additionally, the load / store unit may further include a translation index buffer that stores a translation table between recently used virtual memory addresses and physical memory addresses.
[0017] The main load / store unit may also include a load unit that fetches a load instruction and issues a load instruction, a store unit that fetches a store instruction and issues a store instruction, a load buffer that sequentially receives memory access requests from the load unit, a store buffer that sequentially receives memory access requests from the store unit, a load engine that receives the memory access request from the load buffer and transfers first load data to the on-chip buffer, and a store engine that receives the memory access request from the store buffer and transfers first store data to the on-chip buffer.
[0018] Furthermore, the first load data may have a higher priority than the second load data, and the first store data may have a higher priority than the second store data.
[0019] Additionally, the priority may be tagged to the first and second load data and the first and second store data.
[0020] Additionally, the priority may be tagged by the load engine or the store engine.
[0021] Also, the load / store unit may further include an arbiter that receives the first and second load data and the first and second store data and transfers them to the on-chip buffer in a round robin fashion.
[0022] In addition, the on-chip buffer may include a plurality of banks, and a value obtained by dividing the number of inputs of the first load data, the second load data, the first store data, and the second store data per unit clock cycle by the number of banks of the on-chip buffer may be smaller than a reference input / output ratio of the arbiter, and the reference input / output ratio may be a maximum input / output ratio within a range in which the arbiter does not cause waiting times for each of the first load data, the second load data, the first store data, and the second store data.
[0023] Additionally, the hidden load / store unit and the main load / store unit may share at least some hardware with each other.
[0024] In addition, the hidden load / store unit and the main load / store unit may be implemented by different hardware.
[0025] The processing unit may also include a PE array that performs a two-dimensional matrix operation to sequentially multiply the input activations by the weight values to generate the output activations, and a vector unit that performs one-dimensional operations.
[0026] Additionally, the external interface may include any one of a data bus, an external chip interface, or a local bus.
[0027] In order to solve the other problems, an artificial intelligence core system according to some embodiments of the present invention includes a memory that stores a program and input data for performing an operation, a bus that transmits the input data and control signals from the memory, and an artificial intelligence core that receives the program, the input data, and the control signals to perform a two-dimensional matrix operation and generate output data, wherein the artificial intelligence core includes a load / store unit that loads the program and the input data from the memory and stores the output data in the memory, a process unit that performs an operation using the program and the input data, and an on-chip buffer that temporarily stores the program, the input data, and the output data between the process unit and the load / store unit, wherein the bus includes a control bus that transmits the control signals and a data bus that transmits the input data and the output data, and the load / store unit performs a main load / store operation for a current execution operation currently executed by the process unit and a standby load / store operation for a standby execution operation that the process unit executes after the current execution operation, and the standby load / store operation is executed using the bandwidth of the data bus that is not used by the main load / store operation.
[0028] The memory may also include on-chip memory formed within the same chip as the artificial intelligence core, and off-chip memory formed separately from the artificial intelligence core.
[0029] Further, the artificial intelligence core may be a first artificial intelligence core and further include a second artificial intelligence core different from the first artificial intelligence core, the bus may further include a local bus that transmits the input data and the output data between the first and second artificial intelligence cores, and the load / store unit may perform the standby load / store operation using a bandwidth of the local bus that is not used by the main load / store operation.
[0030] In addition, the load / store unit may include a main load / store unit that performs the main load / store operation and a hidden load / store unit that performs the standby load / store operation, and the standby load / store operation may have a lower priority than the main load / store operation.
[0031] The priority may also be identified in a tagged form.
[0032] The artificial intelligence core may further include an activation buffer that provides input activations to the processing unit and receives output activations from the processing unit, and an activation load / store unit that calls the input activations from the on-chip buffer and transmits them to the activation buffer, and transmits the output activations from the activation buffer to the on-chip buffer.
[0033] A load / store method of an artificial intelligence core system according to some embodiments of the present invention to solve the above and other problems includes a main load / store unit loading a first program for a first task, performing the first task using the first program, and upon confirming that the main load / store unit is not operating during the first task, a hidden load / store unit loading a second program for a second task that is waiting to be executed after the first task, and upon completion of the loading of the first task and the second program, performing the second task using the second program.
[0034] In addition, loading the second program may include fetching a standby load instruction for the second program, issuing the fetched standby load instruction, transmitting a memory access request corresponding to the issued standby load instruction to a hidden load buffer, the hidden load buffer sequentially transmitting the memory access request to a load engine, and the load engine receiving second load data from an off-chip memory via a data bus in response to the memory access request, and transmitting the second load data to an on-chip buffer.
[0035] In addition, loading the first program may include fetching a load instruction for the first program, issuing the fetched load instruction, transmitting a memory access request corresponding to the issued load instruction to a load buffer, the load buffer sequentially transmitting the memory access requests to a load engine, and the load engine receiving first load data from an off-chip memory via a data bus in response to the memory access request, and transmitting the first load data to an on-chip buffer.
[0036] Additionally, the first load data may have a higher priority than the second load data.
[0037] To solve the above and other problems, a load / store method of an artificial intelligence core system according to some embodiments of the present invention includes a main load / store unit performing a load operation of first data for a first task, performing the first task using the first data, and upon confirming that the main load / store unit is not operating during the first task, a hidden load / store unit performing a load operation of second data for a second task that is waiting to be executed after the first task, and upon completion of the load operations of the first task and the second data, performing the second task using the second data.
[0038] Also, the first operation may be a matrix calculation operation of a first layer of a neural network, the second operation may be a matrix calculation operation of a second layer of a neural network, and the second data may be kernel data of the second layer.
[0039] Additionally, the first data may include input activations, and performing the first task may include storing the input activations in an activation buffer, a process unit receiving the input activations from the activation buffer and generating output activations, and the activation buffer storing the output activations. Effect of the Invention
[0040] The artificial intelligence core, artificial intelligence core system, and load / store method of the artificial intelligence core system of the present invention can optimally utilize the bandwidth of the connection interface between the artificial intelligence core and the outside world to pre-load data and programs for the next task.
[0041] Also, the load / store operation of the program and data for the next operation does not cause the load / store operation of the program and data for the currently executed operation to stall, so that the delay of the current operation can be prevented.
[0042] Furthermore, the main load / store unit and the hidden load / store unit can share hardware to maximize the efficiency of hardware utilization.
[0043] In addition to the above, specific effects of the present invention will be described below while explaining specific matters for implementing the present invention. [Brief description of the drawings]
[0044] [Figure 1] FIG. 1 is a block diagram illustrating an artificial intelligence core system according to some embodiments of the present invention. [Diagram 2] FIG. 2 is a block diagram for explaining in detail the structure of the artificial intelligence core in FIG. [Diagram 3] FIG. 3 is a block diagram for explaining in detail the structure of the process unit in FIG. [Figure 4] FIG. 4 is a conceptual diagram for explaining the structure of the neural network of the deep learning operation performed by the process unit. [Diagram 5] FIG. 5 is a block diagram for explaining the operation of the load / store unit in FIG. [Figure 6] FIG. 6 is a block diagram for explaining in detail the structure of the load / store unit in FIG. [Figure 7] FIG. 7 is a timing diagram for explaining the program load operation of an artificial intelligence core system according to some embodiments of the present invention. [Figure 8] FIG. 8 is a timing diagram for explaining the data prefetch operation of the artificial intelligence core system according to some embodiments of the present invention. [Figure 9] FIG. 9 is a block diagram illustrating in detail the main load / store unit of an artificial intelligence core according to some embodiments of the present invention. [Figure 10] FIG. 10 is a block diagram illustrating in greater detail a hidden load / store unit of an artificial intelligence core according to some embodiments of the present invention. [Figure 11] FIG. 11 is a block diagram illustrating an artificial intelligence core system according to some embodiments of the present invention. [Figure 12] FIG. 12 is a block diagram illustrating an artificial intelligence core system according to some embodiments of the present invention. [Figure 13] FIG. 13 is a block diagram for explaining in detail the structure and operation of the first artificial intelligence core in FIG. [Figure 14]FIG. 14 is a flow chart illustrating a load / store method of an artificial intelligence core system according to some embodiments of the present invention. [Figure 15] FIG. 15 is a flowchart for explaining in detail the step of loading the first program in FIG. [Figure 16] FIG. 16 is a flowchart for explaining in detail the step of loading the second program in FIG. [Figure 17] FIG. 17 is a flow chart illustrating a load / store method of an artificial intelligence core system according to some embodiments of the present invention. [Figure 18] FIG. 18 is a flow chart for explaining in detail the stage of performing the first task in FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0045] The terms and words used in the present specification and claims should not be interpreted as being limited to their general or dictionary meanings. They should be interpreted as meanings and concepts that are consistent with the technical idea of the present invention, according to the principle that the inventor can define the concept of the terms and words to best describe his / her invention. In addition, the embodiments described in this specification and the configurations shown in the drawings are merely one embodiment in which the present invention is realized, and do not represent the entire technical idea of the present invention, so it should be understood that there are various equivalents, modifications, and applicable examples that can replace them at the time of this application.
[0046] Terms such as first, second, A, B, etc. used in this specification and claims may be used to describe various components, but the components should not be limited by the terms. The terms are used only to distinguish one component from another. For example, the first component can be named as the second component, and the second component can be named as the first component, without departing from the scope of the invention. The term "and / or" includes a combination of multiple associated listed items or any item among multiple associated listed items.
[0047] The terms used in the present specification and claims are merely used to describe specific embodiments and are not intended to limit the present invention. A singular expression includes a plural expression unless the context clearly indicates otherwise. In this application, the terms "include" or "have" and the like should be understood not to preclude the presence or additional possibility of features, numbers, steps, operations, components, parts, or combinations thereof described in the specification.
[0048] Unless otherwise defined, all terms used herein, including technical or scientific terms, have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0049] Terms, such as those defined in commonly used dictionaries, should be interpreted to have a meaning consistent with the meaning they have in the context of the relevant art, and not to be interpreted in an idealized or overly formal sense unless expressly defined in this application.
[0050] In addition, each configuration, process, step, or method included in each embodiment of the present invention may be shared within a scope that is not technically mutually inconsistent.
[0051] Hereinafter, artificial intelligence core systems according to some embodiments of the present invention will be described with reference to FIGS.
[0052] FIG. 1 is a block diagram illustrating an artificial intelligence core system according to some embodiments of the present invention.
[0053] Referring to FIG. 1, an artificial intelligence core system according to some embodiments of the present invention includes an artificial intelligence core 100, a memory 200 and an external interface 300.
[0054] The artificial intelligence core 100 may be a process module specialized for deep learning computational tasks. The artificial intelligence core 100 may be implemented as a separate single or multiple chips, or may be implemented as part of a system on chip (SoC) combined on a system. The artificial intelligence core 100 may specialize in convolution operations, i.e., matrix multiplication, and perform deep learning learning and inference tasks much more efficiently than conventional CPUs and GPUs. The artificial intelligence core 100 may be implemented as a module in hardware.
[0055] The memory 200 can transmit programs, input data, and control signals to the artificial intelligence core 100 via the external interface 300. The memory 200 can also receive and store output data from the artificial intelligence core 100.
[0056] The memory 200 may include an on-chip memory 210 and an off-chip memory 220. The on-chip memory 210 may be, for example, a static random access memory (SRAM) formed on a chip such as the artificial intelligence core 100. The on-chip memory 210 may be a shared memory shared by multiple cores. However, the present embodiment is not limited thereto.
[0057] The off-chip memory 220 may be an external memory formed separately from the artificial intelligence core 100. The off-chip memory 220 may include, for example, at least one of a dynamic random-access memory (DRAM), a NAND flash memory, a NOR flash memory, and a 3D cross-point memory. However, the present embodiment is not limited thereto.
[0058] The memory 200 can provide programs and input data to the artificial intelligence core 100 via the external interface 300, and can receive and store output data from the artificial intelligence core 100 via the external interface 300.
[0059] The external interface 300 may perform data exchange between the artificial intelligence core 100 and the memory 200. The external interface 300 may transfer not only data but also programs and control signals.
[0060] The external interface 300 can be implemented in various forms. Specifically, if the artificial intelligence core 100 is implemented in an SoC form, the external interface 300 can be a main data bus. Alternatively, if the artificial intelligence core 100 is implemented in a single chip form, the external interface 300 can be an external chip interface.
[0061] FIG. 2 is a block diagram for explaining in detail the structure of the artificial intelligence core in FIG.
[0062] Referring to FIG. 2, artificial intelligence core 100 may include a processing unit 110, an activation buffer 120, an activation load / store unit 130, an on-chip buffer 140, and a load / store unit 150.
[0063] The process unit 110 may be a module that performs operations. The process unit 110 may perform one-dimensional operations as well as two-dimensional matrix operations, i.e., convolution operations. The process unit 110 may receive input activations Act_In, multiply them with weights, and then add them to generate output activations Act_Out.
[0064] FIG. 3 is a block diagram for explaining in detail the structure of the process unit in FIG.
[0065] 2 and 3, the process unit 110 may include a PE array 111 and a vector unit 112.
[0066] The PE array 111 may receive the input activation Act_In and perform multiplication with the weighted value, respectively. At this time, the input activation Act_In and the weighted value may form a matrix and may be calculated by convolution. In this way, the PE array 111 may generate the output activation Act_Out.
[0067] The PE array 111 may include at least one processing element 111a, which may be aligned with each other to perform multiplication of one input activation Act_In and one weight value each.
[0068] The PE array 111 may generate a partial sum by adding up the values for each multiplication. Such a partial sum may be utilized as an output activation Act_Out. The PE array 111 may also be referred to as a 2D matrix compute unit because it performs 2D matrix multiplication.
[0069] The vector unit 112 may mainly perform one-dimensional operations. The vector unit 112 may perform deep learning operations together with the PE array 111. This allows the process unit 110 to specialize in the required operations. That is, the artificial intelligence core 100 may have operation modules that perform a large amount of two-dimensional matrix multiplication and one-dimensional operations, respectively, and may efficiently perform deep learning tasks.
[0070] FIG. 4 is a conceptual diagram for explaining the structure of the neural network of the deep learning operation performed by the process unit.
[0071] Referring to Figure 4, the neural network realized by the PE array 111 may include input layers Input1-k including input nodes to which input data is input, output layers Output1-i including output nodes that output output data, and M hidden layers arranged between the input layers and the output layers.
[0072] Here, weights may be set for edges connecting nodes in each layer. The presence or absence of such weights or edges may be added, deleted, or updated during the learning process. Thus, the weights of nodes and edges arranged between k input nodes and i output nodes may be updated through the learning process.
[0073] Before the neural network performs learning, all nodes and edges may be set to initial values, but as cumulative information is input, the weights of the nodes and edges are changed, and during this process, matching may be performed between the parameters input as learning factors and the values assigned to the output nodes.
[0074] In addition, the weights of the nodes and edges between the input nodes and output nodes constituting the neural network can be updated through the learning process of the neural network.
[0075] 2, the activation buffer 120 may provide input activations Act_In to the process unit 110 and receive output activations Act_Out from the process unit 110. The activation buffer 120 may temporarily store the input activations Act_In and the output activations Act_Out.
[0076] The input activation Act_In and the output activation Act_Out may refer to the input and output values of a layer in a neural network. In this case, if the neural network has multiple layers, the output value of the previous layer becomes the input value of the next layer, so the output activation Act_Out of the previous layer can be used as the input activation Act_In of the next layer.
[0077] The activation buffer 120 can quickly provide activations to the computationally intensive processing units 110, particularly the PE array 111, and quickly receive activations to increase the computation speed of the artificial intelligence core 100.
[0078] The activation load / store unit 130 may communicate input activations Act_In from the on-chip buffer 140 to the activation buffer 120 and communicate output activations Act_Out from the activation buffer 120 to the on-chip buffer 120. That is, the activation load / store unit 130 may perform both loading and storing operations of activations.
[0079] The on-chip buffer 140 is a memory located inside the artificial intelligence core 100, and may receive and temporarily store all input data required for the artificial intelligence core 100 to operate from the outside. The on-chip buffer 140 may also temporarily store output data calculated by the artificial intelligence core 100 for transmission to the outside.
[0080] The on-chip buffer 140 may transmit input activation Act_In to the activation buffer 120 and receive output activation Act_Out through the activation load / store unit 130. The on-chip buffer 140 may directly transmit and receive data to and from the process unit in addition to the activation load / store unit 130. That is, the on-chip buffer 140 may exchange data with each of the PE array 111 and the vector unit 112.
[0081] The load / store unit 150 may receive at least one of input data, program, and control signals from the outside via the external interface 300. The load / store unit 150 may transmit at least one of the received input data, program, and control signals to the on-chip buffer 140.
[0082] Similarly, the load / store unit 150 may communicate output data externally via the external interface 300. The load / store unit 150 may transmit output data generated by the process unit 110.
[0083] FIG. 5 is a block diagram for explaining the operation of the load / store unit in FIG.
[0084] 5, the task controller 10 may be realized by the artificial intelligence core 100. The task controller 10 may be a module that controls the work of the artificial intelligence core 100. The task controller 10 may be a module that is logically realized by the artificial intelligence core 100. However, the present embodiment is not limited thereto.
[0085] When the artificial intelligence core 100 is an SoC, the external interface 300 may include a control bus 310 and a data bus 320. In this case, the control bus 310 may be a bus that transmits control signals, and the data bus 320 may be a bus that transmits input data and output data.
[0086] The control bus 310 may transmit a control signal for a load or store for a current operation to the task controller 10. For example, the task controller 10 may transmit at least one of a load instruction and a queued load instruction to the load / store unit 150. Or, the task controller 10 may transmit at least one of a store instruction and a queued store instruction to the load / store unit 150. The load / store unit 150 may perform a load / store operation according to at least one of a load instruction, a store instruction, a queued load instruction, and a queued store instruction.
[0087] In this case, the load instruction and store instruction may refer to instructions for the program or data for the task that the processing unit 110 is currently executing, and the wait load instruction and wait store instruction may refer to instructions for the program or data for the task that the processing unit 110 will execute next.
[0088] The load instruction, the wait load instruction, the store instruction, and the wait store instruction may each include the following details:
[0089] Dscrptr{src, dst, burst size, #burst} Here, src may mean a source, i.e., an address of data to be loaded or stored, dst may mean a destination, i.e., an address to transmit data, burst size may mean a burst size, i.e., a division size, and #burst may mean a burst number, i.e., the number of divisions, although the present embodiment is not limited thereto.
[0090] Load / store unit 150 may include a main load / store unit 151 and a hidden load / store unit 152. Main load / store unit 151 may perform a main load / store operation during a load / store operation.
[0091] For example, main load / store unit 151 may fetch and issue load instructions, where issuing may refer to determining whether an instruction is in an impossible condition and proceeding with it if possible.
[0092] The main load / store unit 151 may access the off-chip memory 220 via the data bus 320 in accordance with the issued load command, receive the first load data Dpr, and transmit the first load data Dpr to the on-chip buffer 140. In this case, the first load data Dpr may be data having a high priority.
[0093] Hidden load / store unit 152 may perform wait load / store operations during load / store operations. For example, hidden load / store unit 152 may fetch a wait load instruction and issue a wait load instruction.
[0094] The hidden load / store unit 152 may access the off-chip memory 220 via the data bus 320 in accordance with the issued load command, receive the second load data Dnpr, and transmit the second load data Dnpr to the on-chip buffer 140. In this case, the second load data Dnpr may be data having a low priority. That is, the first load data Dpr may have a relatively high priority compared to the second load data Dnpr. That is, the on-chip buffer 140 may store the first load data Dpr before the second load data Dnpr.
[0095] At this time, the priority can be identified in the form of tagging to data. As a result, the main load / store operation for the currently executed operation is not delayed by the standby load / store operation. That is, the standby load / store operation can be performed without being hindered by the execution of the main load / store operation. Also, the standby load / store operation can be performed using the remaining bandwidth of the external interface 300 excluding the bandwidth used by the main load / store operation. That is, the load operation of the program and data must be performed first in chronological order before the corresponding calculation operation can be performed, and the execution time of the calculation operation can be much longer than that of the load operation.
[0096] As a result, the artificial intelligence core system according to this embodiment can maximize bandwidth utilization by allocating bandwidth that is not utilized during computational tasks to standby tasks.
[0097] FIG. 6 is a block diagram for explaining in detail the structure of the load / store unit of FIG.
[0098] Referring to FIG. 6, the load / store unit 150 may include a load unit 151a, a store unit 151b, a load buffer 151a_b, a store buffer 151b_b, a hidden load unit 152a, a hidden load buffer 152a_b, a hidden store unit 152b, a hidden store buffer 152b_b, a load engine 153, a store engine 154, a translation index buffer 155, and an arbiter 156.
[0099] The load unit 151a may fetch a load instruction from the task controller 10 and issue the load instruction. When the load unit 151a provides the issued load instruction to the load buffer 151a_b, the load buffer 151a_b may transmit memory access requests to the load engine 153 sequentially according to the input order.
[0100] Furthermore, the store unit 151b may fetch a store instruction from the task controller 10 and issue the store instruction. When the store unit 151b provides the issued store instruction to the store buffer 151b_b, the store buffer 151b_b may transmit memory access requests to the store engine 154 sequentially in the order in which they were input.
[0101] The hidden load unit 152a may fetch a waiting load instruction from the task controller 10 and issue the waiting load instruction. When the hidden load unit 152a provides the issued waiting load instruction to the hidden load buffer 152a_b, the hidden load buffer 152a_b may transmit the memory access request to the load engine 153 sequentially according to the input order.
[0102] In addition, the hidden store unit 152b may fetch a queued store instruction from the task controller 10 and issue the queued store instruction. When the hidden store unit 152b provides the issued queued store instruction to the hidden store buffer 152b_b, the hidden store buffer 152b_b may transmit memory access requests to the store engine 154 sequentially according to the input order.
[0103] The load engine 153 may receive a memory access request and call the first load data Dpr and the second load data Dnpr via the data bus 320. At this time, the load engine 153 can quickly look up the data using a recently used virtual address-to-physical address translation table in the translation index buffer 155. If the virtual address of the load engine 153 is not in the translation index buffer 155, the address translation information can be looked up from the memory 200.
[0104] The first load data Dpr may be data corresponding to a memory access request received from the load buffer 151a / b, and the second load data Dnpr may be data corresponding to a memory access request received from the hidden load buffer 152a / b.
[0105] At this time, the load buffer 151a_b and the hidden load buffer 152a_b do not simultaneously transmit the memory access request to the load engine 153. That is, the hidden load unit 152a and the hidden load buffer 152a_b may identify a time when the load unit 151a and the load buffer 151a_b are not transmitting a memory access request to the load engine 153, and transmit the memory access request to the load engine 153. That is, the hidden load buffer 152a_b may operate only when the instruction issue operation is stalled in the load buffer 151a_b.
[0106] The arbiter 156 may receive the first load data Dpr and the second load data Dnpr from the load engine 153. The arbiter 156 may transmit the first load data Dpr and the second load data Dnpr, which are input in a round robin manner, to bank B of the on-chip buffer 140. That is, since the arbiter 156 sequentially distributes data to bank B of the on-chip buffer 140, a delay in the first load data Dpr may generally occur when the second load data Dnpr is added.
[0107] However, an artificial intelligence core according to some embodiments of the present invention may assign a high priority to the first load data Dpr, thereby preventing a processing delay of the first load data Dpr even when the second load data Dnpr is added.
[0108] Such a priority may be tagged by the load engine 153. However, this embodiment is not limited to this. That is, it may be possible that information regarding the priority is predetermined and transmitted in the load unit 151a and the hidden load unit 152a.
[0109] Store engine 154 may receive a memory access request and call first store data local bus 500 and second store data local bus 500 via data bus 320. At this time, store engine 154 can quickly look up data from translation index buffer 155 using a recently used virtual address to physical address translation table. If the virtual address of store engine 154 is not in translation index buffer 155, address translation information can be looked up from memory 200.
[0110] The first store data local bus 500 may be data corresponding to a memory access request received from the store buffer 151b_b, and the second store data local bus 500 may be data corresponding to a memory access request received from the hidden store buffer 152b_b.
[0111] At this time, the store buffer 151b_b and the hidden store buffer 152b_b do not simultaneously transmit the memory access request to the store engine 154. That is, the hidden store unit 152b and the hidden store buffer 152b_b may identify a time when the store unit 151b and the store buffer 151b_b are not transmitting a memory access request to the store engine 154, and may transmit the memory access request to the store engine 154. That is, the hidden store buffer 152b_b may operate only when an instruction issue operation is stalled in the store buffer 151b_b.
[0112] The arbiter 156 may receive the first store data local bus 500 and the second store data local bus 500 from the store engine 154. The arbiter 156 may transmit the first store data local bus 500 and the second store data local bus 500, which are input in a round robin manner, from bank B of the on-chip buffer 140 to the data bus 320, respectively. In other words, since the arbiter 156 sequentially retrieves data from bank B of the on-chip buffer 140, when the second store data local bus 500 is added, a processing delay of the first store data local bus 500 may generally occur.
[0113] However, artificial intelligence cores in some embodiments of the present invention may assign high priority to the first store data local bus 500, thereby preventing processing delays on the first store data local bus 500 even when the second store data local bus 500 is added.
[0114] Such a priority may be tagged by the store engine 154. However, this embodiment is not limited to this. That is, it may be possible that information regarding the priority is previously determined and transmitted in the store unit 151b and the hidden store unit 152b.
[0115] In this case, the load unit 151 a, the load buffer 151 a_b, the store unit 151 b, the store buffer 151 b_b, the load engine 153, the store engine 154, the translation index buffer 155, and the arbiter 156 may be included in the main load / store unit 151.
[0116] Meanwhile, hidden load unit 152a, hidden load buffer 152a_b, hidden store unit 152b, hidden store buffer 152b_b, load engine 153, store engine 154, translation index buffer 155, and arbiter 156 may be included in hidden load / store unit 152.
[0117] That is, main load / store unit 151 and hidden load / store unit 152 may share load engine 153, store engine 154, translation index buffer 155, and arbiter 156. At least one of load engine 153, store engine 154, and translation index buffer 155 may be implemented in hardware.
[0118] The load engine 153 and the store engine 154 may share some of the same hardware because it is unavoidable that the usage times of the main load / store unit 151 and the hidden load / store unit 152 are different in reality. This can maximize the resource utilization efficiency of this embodiment.
[0119] FIG. 7 is a timing diagram for explaining the program load operation of an artificial intelligence core system according to some embodiments of the present invention.
[0120] 7, first, a first program load PrLD1 may be executed by the task controller 10. The first program is a program required for a first task execution EXEC1, and may be a program for a deep learning task. Since the first program load PrLD1 must precede the first task execution EXEC1, the first task execution EXEC1 may be dependent on the first program load PrLD1.
[0121] In the case of a general artificial intelligence core, the second program load PrLD2 may be executed after the first task execution EXEC1 is completed. In contrast, the artificial intelligence core 100 according to the present embodiment may execute the second program load PrLD2 in parallel with the first task execution EXEC1 of the deep learning task. As a result, the second task execution EXEC2 may be immediately started at the time when the first task execution EXEC1 is completed. As a result, the artificial intelligence core 100 according to the present embodiment may dramatically increase the speed of the deep learning task.
[0122] FIG. 8 is a timing diagram for explaining the data prefetch operation of the artificial intelligence core system according to some embodiments of the present invention.
[0123] 8, first, a first program load PrLD1 may be executed by the task controller 10. Then, a first fetch Fetch1 may be executed. The first fetch Fetch1 may be a step of fetching data for performing deep learning learning and inference.
[0124] The first execution of work EXEC1 may be dependent because it requires loading of programs and data. Similarly, the second execution of work EXEC2 may be dependent because it requires loading of data, as may the second prefetch PreFetch2. The second prefetch PreFetch2 may be, for example, fetching kernel data of the next layer of a Convolutional Neural Network (CNN) or a Long Short-Term Memory (LSTM).
[0125] The AI core system according to this embodiment can execute a second prefetch PreFetch2 during the first task execution EXEC1 to obtain data corresponding to the second task execution EXEC2 in advance, and can immediately start the second task execution EXEC2 after the first task execution EXEC1 ends, thereby further increasing the processing speed of the AI core according to this embodiment.
[0126] Hereinafter, an artificial intelligence core and an artificial intelligence core system according to some embodiments of the present invention will be described with reference to Figures 9 and 10. If the contents are the same as those described above, they will be simplified or omitted.
[0127] FIG. 9 is a block diagram for explaining in detail a main load / store unit of an artificial intelligence core according to some embodiments of the present invention, and FIG. 10 is a block diagram for explaining in detail a hidden load / store unit of an artificial intelligence core according to some embodiments of the present invention.
[0128] 9 and 10, the load / store unit of the artificial intelligence core system according to some embodiments of the present invention may be separated by hardware. That is, the main load / store unit 151 may include a load unit 151a, a store unit 151b, a load buffer 151a_b, a store buffer 151b_b, a first load engine 153_1, a first store engine 154_1, and a first conversion index buffer 155_1.
[0129] Also, the hidden load / store unit 152 may include a hidden load unit 152a, a hidden store unit 152b, a hidden load buffer 152a_b, a hidden store buffer 152b_b, a second load engine (153_2), a second store engine 154_2, and a second translation index buffer 155_2.
[0130] In this embodiment, the main load / store unit 151 and the hidden load / store unit 152 are physically separated from each other, which reduces the difficulty of designing the AI core 100, and the load engine 153 and the store engine 154 are not shared with each other, which allows the durability of each to be maintained for a long time. However, in the case of the arbiter 156, they can be set to be the same to obtain a more accurate value.
[0131] Hereinafter, an artificial intelligence core and an artificial intelligence core system according to some embodiments of the present invention will be described with reference to Fig. 11. If the content overlaps with that described above, it will be simplified or omitted.
[0132] FIG. 11 is a block diagram illustrating an artificial intelligence core system according to some embodiments of the present invention.
[0133] 11, in an artificial intelligence core system according to some embodiments of the present invention, the load / store unit 150 includes an extended arbiter 156_1, and the load engine 153 and the store engine 154 do not need to use data with different priorities. Instead, the number of banks B held by the on-chip buffer 140 may be further increased, and an extended bank Be may be included in the on-chip buffer 140.
[0134] In other words, if the number of banks B is increased in proportion to the increase in the number of inputs, there is no need to wait for existing data, and this can prevent a delay in the calculation speed of the artificial intelligence core 100.
[0135] The extended arbiter 156_1 may have a reference input / output ratio. In this case, the reference input / output ratio may mean the largest input / output ratio within a range in which no input waiting time occurs. A value obtained by dividing the number of inputs of the first load data, the second load data, the first store data, and the second store data input to the extended arbiter 156_1 as inputs by the number of bank B and extended bank (Be) of the on-chip buffer 140 may be smaller than the reference input / output ratio.
[0136] Therefore, simply increasing the number of banks B in the on-chip buffer 140 without tagging the load data with priority may not cause any damage to the main load / store operations.
[0137] Hereinafter, an artificial intelligence core and an artificial intelligence core system according to some embodiments of the present invention will be described with reference to Figures 12 and 13. If the contents are the same as those described above, they will be simplified or omitted.
[0138] Figure 12 is a block diagram for explaining an artificial intelligence core system according to some embodiments of the present invention, and Figure 13 is a block diagram for explaining in detail the structure and operation of the first artificial intelligence core in Figure 12.
[0139] Referring to FIG. 12, an artificial intelligence core system according to some embodiments of the present invention may include a first artificial intelligence core 100, a second artificial intelligence core 400 and a local bus 500.
[0140] The first artificial intelligence core 100 may be the same as the artificial intelligence core 100 in Fig. 1. The second artificial intelligence core 400 may be a separate core separated from the first artificial intelligence core 100. The first artificial intelligence core 100 and the second artificial intelligence core 400 may exchange data with each other using a local bus 500.
[0141] The local bus 500 may be a path for transmitting data between the cores. The local bus 500 may increase the speed of a multi-core system by communicating between the cores.
[0142] 13, the load / store unit 150 of the first artificial intelligence core 100 may communicate with the second artificial intelligence core 400 via a local bus 500. In particular, the main load / store unit 151 and the hidden load / store unit 152 may each perform data load / store operations via the local bus.
[0143] This embodiment can thereby maximize the utilization of bandwidth even in data exchange between cores.
[0144] Hereinafter, a load / store method for an artificial intelligence core system according to some embodiments of the present invention will be described with reference to Figures 6, 7, and 14 to 16. If the contents overlap with those described above, they will be simplified or omitted.
[0145] Fig. 14 is a flowchart for explaining a load / store method of an artificial intelligence core system according to some embodiments of the present invention, Fig. 15 is a flowchart for explaining in detail the step of loading the first program in Fig. 14. Fig. 16 is a flowchart for explaining in detail the step of loading the second program in Fig. 14.
[0146] Referring to FIG. 14, the main load / store unit loads a first program (S100).
[0147] Referring more particularly to FIG. 15, a load instruction for a first program may be fetched (S110), and the fetched load instruction may be issued (S120).
[0148] Next, a memory access request corresponding to the issued load command is transmitted to a load buffer (S130), and the load buffer sequentially transmits the memory access request to the load engine (S140).
[0149] Next, the first load data is received from the off-chip memory via the data bus (S150), and the first load data is transferred to the on-chip buffer (S160).
[0150] Referring again to FIG. 14, a first task is performed using a first program (S200).
[0151] 7, the first program may be a program required for the first task execution EXEC1, which may be a program for a deep learning task. The first program load PrLD1 must precede the first task execution EXEC1, i.e., the first task, so the first task execution EXEC1 may be dependent on the first program load PrLD1.
[0152] Referring again to FIG. 14, it is confirmed that the main load / store unit is not operating (S300), and the hidden load / store unit loads a second program for a second job (S400).
[0153] Referring more particularly to FIG. 16, a wait load instruction for a second program may be fetched (S410) and the fetched wait load instruction may be issued (S420).
[0154] Next, a memory access request corresponding to the issued wait load instruction is transmitted to the hidden load buffer (S430), and the hidden load buffer sequentially transmits the memory access request to the load engine (S440).
[0155] Next, second load data is received from the off-chip memory via the data bus (S450), and the second load data is transferred to the on-chip buffer (S460).
[0156] 7, the artificial intelligence core 100 according to the present embodiment may execute the second program load PrLD2 in parallel with the first task execution EXEC1 of the deep learning task. Thus, when the first task execution EXEC1 ends, the second task execution EXEC2 may be immediately started. Thus, the artificial intelligence core 100 according to the present embodiment may dramatically increase the speed of the deep learning task.
[0157] Also, referring to FIG. 6, hidden load unit 152a and hidden load buffer 152a_b may identify when load unit 151a and load buffer 151a_b are not transmitting a memory access request to load engine 153 and may transmit the memory access request to load engine 153.
[0158] Steps S300 and S400 may be performed in parallel with step S200.
[0159] Referring again to FIG. 14, a second task is executed using a second program (S500).
[0160] 7, the second program may be a program required for the second task execution EXEC2, which may be a program for a deep learning task. The second program load PrLD2 must precede the second task execution EXEC2, i.e., the second task, so the second task execution EXEC2 may be dependent on the second program load PrLD2.
[0161] The load / store method of the artificial intelligence core according to this embodiment performs the execution of a first task and the loading of a second program for a second task in parallel, thereby improving the efficiency of the tasks and making maximum use of the bandwidth of the external interface 300, which could not be utilized in the past.
[0162] Hereinafter, a load / store method of an artificial intelligence core system according to some embodiments of the present invention will be described with reference to Figures 17 and 18. If the content overlaps with that described above, it will be simplified or omitted.
[0163] FIG. 17 is a flowchart for explaining a load / store method of an artificial intelligence core system according to some embodiments of the present invention, and FIG. 18 is a flowchart for explaining in detail the steps of performing the first task in FIG. 17.
[0164] Referring to FIG. 17, the main load / store unit loads the first data (S1100).
[0165] Specifically, referring to Figure 8, a first fetch Fetch1 may be executed. The first fetch Fetch1 may be a step of fetching data for performing deep learning training and inference.
[0166] Referring again to FIG. 17, a first task is executed using the first data (S1200).
[0167] More specifically, referring to FIG. 18, the input activation is stored in an activation buffer (S1210).
[0168] 2, the activation load / store unit 130 may communicate the input activation Act_In from the on-chip buffer 140 to the activation buffer 120. The activation buffer 120 may temporarily store the input activation Act_In.
[0169] 18, the process unit receives the input activations from the activation buffer and generates the output activations (S1220).The activation buffer then stores the output activations (S1230).
[0170] Referring again to FIG. 17, it is confirmed that the main load / store unit is not operating (S1300), and the hidden load / store unit loads second data for a second job (S1400).
[0171] Steps S1300 and S1400 may be performed in parallel with step S1200.
[0172] Referring again to FIG. 17, a second task is executed using the second data (S1500).
[0173] 8, the second task execution EXEC2 may also be dependent since it requires loading data like the second prefetch PreFetch2. The artificial intelligence core system according to this embodiment may execute the second prefetch PreFetch2 to pre-fetch data corresponding to the second task execution EXEC2 during the first task execution EXEC1, and may start the second task execution EXEC2 immediately after the first task execution EXEC1 ends.
[0174] The above description is merely an illustrative example of the technical idea of the present embodiment, and various modifications and variations are possible within the scope of the essential characteristics of the present embodiment, if one has ordinary knowledge in the technical field to which the present embodiment belongs. Therefore, the present embodiment is not intended to limit the technical idea of the present embodiment, but is intended to explain it, and the scope of the technical idea of the present embodiment is not limited by such an embodiment. The scope of protection of the present embodiment should be interpreted according to the following claims, and all technical ideas within the scope equivalent thereto should be interpreted as being included in the scope of the rights of the present embodiment.
Claims
1. a processing unit for receiving the input activations and weights and generating output activations through a two-dimensional matrix operation; An artificial intelligence core having a load / store unit that performs load / store operations to transfer programs and input data received via an external interface to an on-chip buffer and transfer output data from the on-chip buffer to the external interface, the load / store operations including a main load / store operation for a current execution operation performed by the process unit and a standby load / store operation for a standby execution operation performed by the process unit after the current execution operation.
2. an activation buffer that provides the input activations to the process unit and receives the output activations from the process unit and temporarily stores the input activations and the output activations; an on-chip buffer that temporarily stores a program and input data for the processing unit to perform an operation, and transmits the program and input data to the processing unit, and temporarily stores output data received from the processing unit, the input data including the input activations and the weights; an activation load / store unit for communicating the input activations from the on-chip buffer to the activation buffer and communicating the output activations from the activation buffer to the on-chip buffer; 2. The artificial intelligence core of claim 1.
3. the standby load / store operation is performed using bandwidth of the external interface that is not used by the main load / store operation; 2. The artificial intelligence core of claim 1.
4. The load / store unit includes: a main load / store unit that performs the main load / store operation and transmits first load data and first store data to the on-chip buffer; a hidden load / store unit that performs the standby load / store operation and transmits second load data and second store data to the on-chip buffer; 2. The artificial intelligence core of claim 1.
5. The hidden load / store unit comprises: a hidden load unit for fetching a standby load instruction received from a task controller and executing a standby load instruction issue; a hidden store unit that fetches a queued store instruction received from the task controller and executes a queued store instruction issue; a hidden load buffer that sequentially receives memory access requests corresponding to the load instructions from the hidden load unit; a hidden store buffer that sequentially receives memory access requests corresponding to the store instructions from the hidden store unit; a hidden load engine that receives a memory access request from the hidden load buffer and transmits the second load data to the on-chip buffer; a hidden store engine that receives a memory access request from the hidden store buffer and transmits the second store data to the on-chip buffer; 5. The artificial intelligence core of claim 4.
6. The load / store unit further includes a translation index buffer for storing a translation table between recently used virtual memory addresses and physical memory addresses.
6. The artificial intelligence core of claim 5.
7. The main load / store unit includes: a load unit for fetching load instructions and executing load instruction issues; a store unit for fetching store instructions and executing store instruction issue; a load buffer for sequentially receiving memory access requests from the load unit; a store buffer that sequentially receives memory access requests from the store unit; a load engine that receives a memory access request from the load buffer and transmits first load data to the on-chip buffer; a store engine that receives a memory access request from the store buffer and transmits first store data to the on-chip buffer; 5. The artificial intelligence core of claim 4.
8. The first load data has a higher priority than the second load data, The first store data has a higher priority than the second store data.
5. The artificial intelligence core of claim 4.
9. the priority order is tagged to the first load data and the second load data, and the first store data and the second store data; 9. The artificial intelligence core of claim 8.
10. The priority is tagged by the load engine or the store engine.
10. The artificial intelligence core of claim 9.
11. the load / store unit further includes an arbiter that receives the first load data and the second load data and the first store data and transmits the first store data and the second store data to the on-chip buffer in a round robin manner; 5. The artificial intelligence core of claim 4.
12. the on-chip buffer includes a plurality of banks; a value obtained by dividing the number of inputs of the first load data, the second load data, the first store data, and the second store data per unit clock cycle by the number of banks of the on-chip buffer is smaller than a reference input / output ratio of the arbiter; the reference input / output ratio is a maximum input / output ratio within a range in which the arbiter does not cause a wait time for each of the first load data, the second load data, the first store data, and the second store data; 12. The artificial intelligence core of claim 11.
13. The hidden load / store unit and the main load / store unit share at least some hardware with each other.
5. The artificial intelligence core of claim 4.
14. The hidden load / store unit and the main load / store unit are realized by different hardware.
5. The artificial intelligence core of claim 4.
15. The process unit includes: a processing element array (PE array) for performing a two-dimensional matrix operation of sequentially multiplying the input activations by the weights to generate the output activations; a vector unit for performing one-dimensional operations; 2. The artificial intelligence core of claim 1.
16. The external interface includes any one of a data bus, an external chip interface, and a local bus.
2. The artificial intelligence core of claim 1.
17. A memory for storing a program for performing calculations and input data; a bus for transmitting the input data and control signals from the memory; an artificial intelligence core that receives the program, the input data, and the control signal, performs a two-dimensional matrix operation, and generates output data; The artificial intelligence core includes: a load / store unit for loading the program and the input data from the memory and storing the output data in the memory; a process unit for executing a calculation using the program and the input data; an on-chip buffer between the process unit and the load / store unit for temporarily storing the program, the input data, and the output data; the bus includes a control bus for transmitting the control signal and a data bus for transmitting the input data and the output data; The load / store unit executes a main load / store operation for a current execution operation currently executed by the process unit, and a standby load / store operation for a standby execution operation to be executed by the process unit after the current execution operation, and the standby load / store operation is executed using a bandwidth of the data bus that is not used by the main load / store operation. Artificial intelligence core system.
18. The memory includes an on-chip memory formed in the same chip as the artificial intelligence core; and an off-chip memory formed separately from the artificial intelligence core; 20. The artificial intelligence core system of claim 17.
19. The artificial intelligence core is a first artificial intelligence core, Further comprising a second artificial intelligence core different from the first artificial intelligence core; The bus further includes a local bus for transmitting the input data and the output data between the first artificial intelligence core and the second artificial intelligence core; the load / store unit executes the standby load / store operation using bandwidth of the local bus that is not used by the main load / store operation; 20. The artificial intelligence core system of claim 17.
20. The load / store unit includes: a main load / store unit for performing the main load / store operation; a hidden load / store unit for performing said standby load / store operations; the waiting load / store operation has a lower priority than the main load / store operation; 20. The artificial intelligence core system of claim 17.
21. The priority is identified in a tagged form.
21. The artificial intelligence core system of claim 20.
22. The artificial intelligence core includes: an activation buffer that provides input activations to the process unit and receives output activations from the process unit; an activation load / store unit for retrieving the input activations from the on-chip buffer and transmitting them to the activation buffer, and for transmitting the output activations from the activation buffer to the on-chip buffer; 20. The artificial intelligence core system of claim 17.
23. a main load / store unit loads a first program for a first operation; executing a first task using the first program; When the main load / store unit does not operate during the first operation, a hidden load / store unit loads a second program for a second operation that is waiting to be executed after the first operation; and executing a second operation using the second program when the first operation and the second program loading operation are completed. Load / store method of artificial intelligence core system.
24. Loading the second program includes: Fetching a wait load instruction for the second program; issuing the fetched load-wait instruction; transmitting a memory access request corresponding to the issued standby load instruction to a hidden load buffer; The hidden load buffer sequentially transmits the memory access requests to a load engine; the load engine receives second load data from an off-chip memory via a data bus in response to the memory access request; transmitting the second load data to an on-chip buffer; 24. The load / store method of an artificial intelligence core system according to claim 23.
25. Loading the first program includes: Fetching a load instruction for the first program; issuing the fetched load instruction; transmitting a memory access request corresponding to the issued load instruction to a load buffer; The load buffer sequentially transmits the memory access requests to a load engine; the load engine receives first load data from an off-chip memory via a data bus in response to the memory access request; transmitting the first load data to an on-chip buffer; 25. The load / store method of claim 24.
26. The first load data has a higher priority than the second load data.
26. The load / store method of an artificial intelligence core system according to claim 25.
27. A main load / store unit performs a first data load operation for a first operation; performing a first task using the first data; When it is confirmed that the main load / store unit is not operating during the first operation, the hidden load / store unit executes a load operation of second data for a second operation that is waiting to be executed after the first operation; and executing a second operation using the second data when the first operation and the second data loading operation are completed. Load / store method of artificial intelligence core system.
28. The first operation is a matrix calculation operation of a first layer in a neural network, The second operation is a matrix calculation operation of a second layer in a neural network; The second data is kernel data of the second layer.
28. The load / store method of an artificial intelligence core system according to claim 27.
29. the first data includes an input activation; Performing the first task comprises: storing the input activations in an activation buffer; a process unit receiving the input activations from the activation buffer and generating output activations; the activation buffer storing the output activations; 28. The load / store method of an artificial intelligence core system according to claim 27.
Citation Information
Patent Citations
Computing method applied to artificial intelligence chip, and artificial intelligence chip
JP2020042782A
Adaptive matrix multiplication accelerator for machine learning and deep learning applications
JP2020135899A
Instruction executing method, apparatus, electronic device, computer-readable storage medium, and program
JP2021144730A
On-chip computational networks
JP2021506032A
Joint exploration of hardware and neural architecture
JP6885553B1
