Integrated circuit chip special for convolutional neural network reasoning
By designing a special integrated circuit chip for convolutional neural network reasoning, and utilizing the on-chip bus and parallel computing of multiple operators, the problem of inefficiency of traditional chips in convolutional neural network calculations is solved, and efficient convolutional neural network reasoning is achieved. deal with.
Patent Information
- Application Number
- CN202320412685.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-24
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2033-02-24
AI Technical Summary
Traditional computing chips cannot effectively adapt to the calculation method and network structure of convolutional neural networks, resulting in low computing efficiency and memory throughput bottlenecks, affecting computing efficiency.
Design a special integrated circuit chip for convolutional neural network reasoning, including a storage module, arithmetic module and a control module. Data interaction is carried out through the on-chip bus, reducing the number of data moves, and parallel computing through multiple operators and customized hardware architecture optimization. calculation process.
It improves the processing speed and computing efficiency of convolutional neural network inference, enhances the computing power of application-specific integrated circuit chips, and solves the efficiency problem of traditional chips in complex neural network operations.
Smart Images

Figure CN221613317U
Abstract
Description
Technical Field
[0001] The utility model relates to the field of special integrated circuits, and in particular to a convolutional neural network reasoning special integrated circuit chip. Background Art
[0002] From the functional point of view, AI chips can be divided into two stages: training and inference. The training stage usually requires a large amount of data input, or adopts unsupervised learning methods such as reinforcement learning to train a complex deep neural network model. The inference stage refers to using the trained model and new data to "infer" various conclusions.
[0003] In recent years, deep neural networks (DNN) have achieved great success in many recognition applications, such as image recognition, speech recognition, and target detection. Among them, convolutional neural networks (CNN) are a relatively successful branch in the development and application of deep neural network related technologies. The convolutional neural network reasoning process requires a large number of repeated vector matrix operations. As the convolutional neural network structure becomes more and more complex and the amount of vector matrix operations increases, the impact of traditional computing chips (such as CPU and GPU) on the efficiency of neural network operations becomes more and more prominent, becoming a key factor affecting its computing efficiency.
[0004] Traditional computing chips cannot adapt well to the computing methods and network structures of convolutional neural networks, resulting in many problems such as low computing efficiency and limited memory throughput bottlenecks. Summary of the invention
[0005] The utility model is completed in view of the above-mentioned state of the prior art, and its purpose is to provide a convolutional neural network reasoning dedicated integrated circuit chip with higher computing power and computing efficiency.
[0006] To this end, the utility model provides a convolutional neural network reasoning dedicated integrated circuit chip, including a storage module, a calculation module and a control module; the storage module includes an instruction memory and a data memory, the instruction memory is used to store the process control instructions of the trained convolutional neural network model, the data memory is used to store the weight data of the convolutional neural network model, at least one feature map obtained by the convolutional neural network model for the image to be processed, and the calculation result generated by the convolutional neural network model performing deep learning reasoning operation on the image to be processed; the calculation module and the storage module perform data exchange via an on-chip bus and receive the process control instructions of the convolutional neural network model and the data corresponding to the process control instructions from the on-chip bus and execute them, thereby obtaining the calculation result; the control module is arranged in the storage module and is used to control the access of the storage module, the control module is used to read the process control instructions of the convolutional neural network model stored in the instruction memory and send them to the on-chip bus, and read the data corresponding to the process control instructions stored in the data memory and send them to the on-chip bus. In this case, through customized integrated circuit and hardware architecture design, the integrated circuit can be specially designed according to the characteristics of convolution calculation, and data can be directly exchanged through the on-chip bus, thereby shortening the distance between the control module, the operation module and the storage module and reducing the number of data movement times, which can help improve the processing speed of the dedicated integrated circuit chip.
[0007] In addition, in the ASIC chip involved in the utility model, optionally, the data storage device includes a first data storage area, a second data storage area, and a third data storage area, the second data storage area is consistent with the bit width and capacity of the first data storage area and is used to cooperate with the first data storage area to alternately store data corresponding to different network layers of the convolutional neural network model, and the third data storage area is used to store weight data of the convolutional neural network model. In this case, when performing convolutional neural network operations, the second data storage area can cooperate with the first data storage area to allow data to flow in both directions and alternately store input feature maps or output feature maps of different network layers, thereby being conducive to improving the operational efficiency of multi-layer network calculations of convolutional neural networks. At the same time, the first data storage area and the second data storage area have the same bit width and capacity, which can be conducive to the programming of flow control instructions of the convolutional neural network model and also conducive to reducing data overflow. .
[0008] In addition, the ASIC chip involved in the utility model may optionally further include an interconnection module for exchanging information with the outside. In this case, information can be input or output from the ASIC chip through the interconnection module.
[0009] In addition, in the ASIC chip involved in the utility model, optionally, the interconnection module includes an input-output unit connected to an external compiler. In this case, the external compiler can translate a high-level programming language into a program in a machine language that can be executed on the ASIC chip. The high-level programming language is easy to write, read, communicate, and maintain, while the machine language can be directly interpreted and run by the ASIC chip, so that the program can be written based on the high-level programming language first, and then it can be connected to the external compiler through the input-output unit, and the program written based on the high-level programming language can be translated into a program in a machine language that can be executed on the ASIC chip, and written into the ASIC chip, thereby, operations such as compilation can be realized through the interconnection module.
[0010] In addition, in the ASIC chip involved in the utility model, optionally, the interconnection module also includes an input / output buffer unit. In this case, an input / output buffer unit is opened in the interconnection module, and when the ASIC chip is interconnected with an external device, the input / output buffer unit can be used to store data input by the external device and data output by the ASIC chip to the external device. In this way, the system overhead of the ASIC chip can be reduced and the overall efficiency of the input / output of the interconnection module can be improved.
[0011] In addition, in the ASIC chip involved in the utility model, optionally, the computing module has a plurality of computing units, and the plurality of computing units are arranged around the storage module. In this case, the contact between the computing unit and the storage module can be increased, and the distance between the computing unit and the storage module can be shortened, thereby increasing the data transmission speed, thereby increasing the computing speed of the ASIC chip.
[0012] In addition, in the ASIC chip involved in the utility model, optionally, the multiple operators are independent of each other. In this case, the operators can calculate multiple tasks in parallel at the same time, thereby improving the operation speed of the ASIC chip.
[0013] In addition, in the ASIC chip involved in the utility model, optionally, the operation module is a multiplier adder array, thereby being able to perform complex operations such as convolution, pooling, activation, etc. on the image.
[0014] In addition, in the ASIC chip involved in the utility model, the control module is optionally a digital signal processor, so that the digital signal processor can quickly realize at least one of signal acquisition, transformation, filtering, evaluation, enhancement, compression and recognition to obtain a data form that meets the requirements.
[0015] In addition, in the ASIC chip involved in the utility model, optionally, the storage module, the control module and the operation module are manufactured based on the dynamic random access memory manufacturing process, and the storage module, the control module and the operation module are electrically connected through the on-chip bus. In this case, the dynamic random access memory manufacturing process is a relatively mature production process, thus having the advantages of mature process and low cost.
[0016] According to the utility model, a convolutional neural network reasoning dedicated integrated circuit chip with higher computing power and computing efficiency can be provided. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The present disclosure will now be explained in further detail by way of example only with reference to the accompanying drawings, in which:
[0018] Figure 1 It is a diagram showing a usage scenario of the dedicated integrated circuit chip involved in the implementation mode of the utility model.
[0019] Figure 2 It is a schematic diagram showing a first embodiment of a dedicated integrated circuit chip involved in the implementation of the utility model.
[0020] Figure 3 It is a schematic diagram showing a second embodiment of a dedicated integrated circuit chip involved in the implementation of the utility model.
[0021] Figure 4 It is a schematic diagram showing the data flow between the first data storage area and the second data storage area of the ASIC chip involved in the embodiment of the present utility model.
[0022] Figure 5 A schematic diagram showing a third embodiment of the application specific integrated circuit chip involved in the implementation of the utility model is shown.
[0023] Figure 6 It is a schematic diagram showing a process control instruction involved in an implementation mode of the present utility model.
[0024] Figure 7 It is an exemplary flow chart showing the inference performed by using a dedicated integrated circuit chip according to an embodiment of the present invention.
[0025] Figure 8 It is a schematic diagram showing a manufacturing process of a dedicated integrated circuit chip involved in an embodiment of the present utility model. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the utility model to clearly and completely describe the technical solutions in the embodiments of the utility model. Obviously, the described embodiments are only part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.
[0027] It should be noted that the terms "first", "second", "third" and "fourth" in the specification and claims of the utility model and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices. In the following description, the same symbols are given to the same components, and repeated descriptions are omitted. In addition, the drawings are only schematic diagrams, and the ratio of the sizes of the components to each other or the shapes of the components may be different from the actual ones.
[0028] In this embodiment, the convolutional neural network (CNN) is an artificial neural network with a shared weight structure and translation invariance, which is mainly composed of a convolution layer, a pooling layer and a fully connected layer. The function of the convolution layer is to extract features by weight sharing, the pooling layer is mainly to reduce the data dimension and prevent image overfitting, and the function of the fully connected layer is to convert the output image of the last layer of convolution from high dimension to low dimension, and extract and integrate the input information, and then map it through the activation function to achieve the mapping of features to labels.
[0029] In addition, in some examples, each convolutional layer in the convolutional neural network can be followed by a computational layer for local averaging and secondary extraction. This unique two-time feature extraction structure reduces the feature resolution.
[0030] In some examples, the basic structure of a convolutional neural network may include two layers. The first layer is a feature extraction layer, where the input of each neuron is connected to the local receptive field of the previous layer, and the local features are extracted. Once the local feature is extracted, its positional relationship with other features is determined accordingly; the second layer is a feature mapping layer, where each computational layer of the network consists of multiple feature maps, each feature map is a plane, and the weights of all neurons on the plane are equal. The feature mapping structure usually uses a sigmoid function with a small influence function kernel as the activation function of the convolutional network, so that the feature map has displacement invariance. In addition, since neurons on a mapping surface share weights, the number of free parameters of the network is reduced.
[0031] In addition, convolutional neural networks can be mainly used to identify two-dimensional graphics that are invariant to displacement, scaling, and other forms of distortion. This part of the function is mainly implemented by the pooling layer. Since the feature detection layer of the convolutional neural network is learned through training data, explicit feature extraction is avoided when using the convolutional neural network, and learning is implicitly performed from the training data; in addition, since the weights of neurons on the same feature map are the same, the network can learn in parallel, which is also a major advantage of the convolutional network over the network in which neurons are connected to each other. Convolutional neural networks have unique advantages in speech recognition and image processing due to their special structure of local weight sharing. Their layout is closer to the actual biological neural network, and weight sharing reduces the complexity of the network. In particular, the image of the multi-dimensional input vector can be directly input into the network, which avoids the complexity of data reconstruction during feature extraction and classification.
[0032] In some examples, the convolutional neural network model can be trained by a graphics processing unit GPU (Graphics Processing Unit, referred to as: GPU). In other examples, the convolutional neural network model can also be trained in the cloud. Training refers to training a complex deep neural network model through a large amount of data input, or adopting unsupervised learning methods such as reinforcement learning. In this case, when a large amount of data needs to be trained, training through the cloud can reduce costs. When only a small amount of data needs to be trained, training through a GPU can also reduce costs. However, the utility model is not limited to this. The convolutional neural network model can also be trained through a programmable gate array logic FPGA (Field Programmable Gate Array, referred to as FPGA).
[0033] In some examples, the flow control instructions of the trained convolutional neural network model can be compiled by a computer. In other examples, the flow control instructions of the trained convolutional neural network model can also be compiled by other compilation devices. For example, other compilation devices can include tablet computers and mobile phones.
[0034] In some examples, the parameters (e.g., weight data) of the convolutional neural network model can be derived from the trained convolutional neural network model, thereby enabling the convolutional neural network model to be imported into a dedicated integrated circuit chip for image processing.
[0035] In some examples, the feature map may be RGB (Red Green Blue, RGB) image data. In other examples, the feature map may also be grayscale image data.
[0036] In some examples, the convolutional neural network model may include at least one of an AlexNet convolutional neural network model, a VGG convolutional neural network model, and a ResNet convolutional neural network model.
[0037] The utility model provides a convolutional neural network reasoning dedicated integrated circuit chip, which can be used to execute a trained convolutional neural network model. In this embodiment, the convolutional neural network reasoning dedicated integrated circuit chip can also be called a dedicated integrated circuit chip or chip.
[0038] The ASIC chip involved in the utility model has no particular limitation on the size of the image processed. In some examples, the size of the image processed by the ASIC chip can be at least one of 512×512, 299×299 and 256×256.
[0039] Figure 1 It is a diagram showing a usage scenario of the dedicated integrated circuit chip 1 involved in the embodiment of the present utility model.
[0040] In this embodiment, see Figure 1 , the ASIC chip 1 can be connected to the controller 2 and the external memory 3 through an external bus to form a network. Thus, a neural network processing system integrating data communication, operation control and data processing can be realized.
[0041] Figure 2 It is a schematic diagram showing a first embodiment of a dedicated integrated circuit chip 1 according to an embodiment of the present utility model.
[0042] In this embodiment, the ASIC chip 1 may include a storage module 10 , a computing module 20 , and a control module 30 .
[0043] In some examples, the storage module 10, the computing module 20, and the control module 30 may be interconnected via an on-chip bus 50. In some examples, the on-chip bus 50 may be an information path provided inside the ASIC chip 1 for connecting the circuits of the functional units. That is, the on-chip bus 50 may be used to realize circuit-level interconnection, that is, the on-chip bus 50 may be used to realize electrical connection of the functional units. In this case, data access may be realized at a higher speed, which is beneficial to improving the computing speed of the chip.
[0044] In this embodiment, the electrical connection may represent a physical line for transmitting an electrical signal.
[0045] In some examples, the storage module 10 may include an instruction memory 12. The instruction memory 12 may be used to store flow control instructions of the trained convolutional neural network model.
[0046] In some examples, the storage module 10 may include a data storage 11. The data storage 11 may be used to store weight data of a convolutional neural network model, at least one feature map obtained by the convolutional neural network model for an image to be processed, and a calculation result generated by the convolutional neural network model performing a deep learning inference operation on the image to be processed.
[0047] In some examples, the weight data may be obtained after the convolutional neural network model is trained to use different weight data for images of different sizes. In this case, the convolutional neural network model can use different weight data to process images according to different images.
[0048] In some examples, the feature map can be the result of the output of different network layer operations in a convolutional neural network model.
[0049] In some examples, the operation module 20 can receive the flow control instructions of the convolutional neural network model and the data corresponding to the flow control instructions from the on-chip bus 50 and execute them to obtain the calculation results. In some examples, the operation module 20 and the storage module 10 can exchange data via the on-chip bus 50. In this case, the operation module 20 and the storage module 10 can directly exchange data through the on-chip bus 50, which can help improve the access and calculation speed, thereby improving the calculation speed and calculation efficiency of the dedicated integrated circuit chip 1.
[0050] In some examples, the flow control instructions of the convolutional neural network model may include multiple types. In some examples, the multiple types of flow control instructions may include initialization instructions, feature map reading instructions, convolution operation instructions, pooling operation instructions, activation instructions, feature map writing instructions, and end instructions. In addition, different flow control instructions may have corresponding data participating in the operation process (that is, the execution process of the flow control instructions).
[0051] In some examples, the control module 30 may be disposed in the storage module 10 and used to control the access to the storage module 10. Specifically, the control module 30 may be used to read the flow control instructions of the convolutional neural network model stored in the instruction memory 12 and send them to the on-chip bus, and read the data corresponding to the flow control instructions stored in the data memory 11 and send them to the on-chip bus 50. In this case, the control module 30 can control the reading of the flow control instructions and the corresponding data, so that the operation module 20 executes the flow control instructions. In addition, the control module 30 runs directly in the storage module 10, which can further improve the operation speed and efficiency of the dedicated integrated circuit chip 1.
[0052] In the ASIC chip 1 involved in this embodiment, a storage module 10, a computing module 20, and a control module 30 are provided, and the storage module 10, the computing module 20, and the control module 30 can be interconnected through an on-chip bus 50 to form an electrical connection. In this case, through the customized integrated circuit and hardware architecture design, the integrated circuit can be specially designed according to the characteristics of convolution calculation, and data can be directly exchanged through the on-chip bus 50, so that the distance between the control module 30, the computing module 20 and the storage module 10 can be shortened, and the number of data transfers can be reduced, thereby being conducive to improving the processing speed of the ASIC chip 1.
[0053] In some examples, the memory module 10 may be manufactured based on a dynamic random access memory (DRAM) manufacturing process. The DRAM manufacturing process may be a method for manufacturing DRAM, for example, the DRAM manufacturing process may include at least one of a trench process and a stacking process. In this case, the dynamic random access memory process is a relatively mature production process, and thus has the advantages of mature process and low cost.
[0054] In other examples, the storage module 10 can also be prepared based on a synchronous dynamic random access memory (SDRAM) manufacturing process. However, the present invention is not limited thereto, and the storage module 10 can also be prepared based on a static random access memory (SRAM), a double data rate synchronous dynamic random access memory (DDR SDRAM) and other processes. Thus, chips with different performance and costs can be prepared for different application scenarios.
[0055] As described above, in some examples, the storage module 10 may include a data storage 11. In some examples, the data generated by the reasoning operation may be stored in the data storage 11. The reasoning operation may be to use a trained model and new data to "infer" various conclusions. In addition, in some examples, the data generated by the reasoning operation may be intermediate data generated during the reasoning process. In other examples, the data generated by the reasoning operation may also be the final result data (e.g., calculation result) obtained by the reasoning.
[0056] Figure 3 A schematic diagram of a second embodiment of the ASIC chip 1 according to the embodiment of the present utility model is shown. Figure 4 Schematic diagram showing data flow between the first data storage area 111 and the second data storage area 112 of the ASIC chip 1 according to the embodiment of the present invention.
[0057] In some examples, reference Figure 3 or Figure 4 The data storage device 11 may include a first data storage area 111 , a second data storage area 112 , and a third data storage area 113 .
[0058] In some examples, the first data storage area 111 and the second data storage area 112 can cooperate with each other to alternately store data corresponding to different network layers of the convolutional neural network model, and the third data storage area 113 can be used to store weight data of the convolutional neural network model. In this case, when performing convolutional neural network operations, the second data storage area 112 and the first data storage area 111 can cooperate to allow data to flow in both directions and alternately store input feature maps or output feature maps of different network layers, thereby helping to improve the operational efficiency of multi-layer network calculations of convolutional neural networks.
[0059] Specifically, refer to Figure 4In the alternating storage, the first data storage area 111 and the second data storage area 112 can alternately store input feature maps or output feature maps of different network layers. In this case, through bidirectional data flow, the calculation of the multi-layer neural network is realized inside the storage module 10, so that the efficiency of data reuse can be improved. Taking a convolutional neural network model with two layers as an example, in the calculation of the first layer, the feature map in the first data storage area 111 can be used as input, and the feature map is transferred from the first data storage area 111 to the operation module 20 for calculation to obtain the feature map of the first layer, and the feature map of the first layer is stored in the second data storage area 112. When calculating the second layer, the feature map in the second data storage area 112 is used as input, and the feature map of the first layer is transferred from the second data storage area 112 to the operation module 20 for calculation to obtain the feature map of the second layer and store it in the first data storage area 111. It should be noted that for a convolutional neural network model with more than two layers, the subsequent multi-layer network can be calculated in the same way.
[0060] In some examples, the bit width and capacity of the first data storage area 111 and the second data storage area 112 may be consistent. In this case, it is beneficial to program the flow control instructions of the convolutional neural network model and also beneficial to reduce data overflow.
[0061] In some examples, the bit width may be the number of bits of data that the data memory 11 can transmit in one clock cycle. That is, the larger the number of bits, the larger the amount of data that can be transmitted instantly. For example, the bit width may be any one of 8 bits, 16 bits, 32 bits, 64 bits, 128 bits, 192 bits, 256 bits, 512 bits, and 1024 bits.
[0062] In some examples, capacity may refer to the amount of binary information that data storage 11 can hold.
[0063] Continue to refer Figure 2 In the present invention, the ASIC chip 1 may include a computing module 20. In some examples, the computing module 20 and the storage module 10 may exchange data via an on-chip bus 50, and the computing module 20 may receive a flow control instruction of a convolutional neural network model from the on-chip bus 50, execute the flow control instruction of the convolutional neural network model, and obtain a calculation result.
[0064] In some examples, the operation module 20 may also be manufactured based on a dynamic random access memory manufacturing process.
[0065] In some other examples, the computing module 20 may also be manufactured using a synchronous dynamic random access memory manufacturing process.
[0066] In some examples, the operation module 20 may include a plurality of operators, and the plurality of operators may be arranged around the storage module 10. In this case, the contact between the operator and the storage module 10 can be increased, and the distance between the operator and the storage module 10 can be shortened, thereby increasing the data transmission speed, thereby increasing the operation speed of the ASIC chip 1.
[0067] In some examples, the multiple operators in the computing module 20 may be independent of each other. In this case, the operators can simultaneously calculate multiple tasks in parallel, thereby increasing the computing speed of the ASIC chip 1.
[0068] In some examples, the operation module 20 may include three sub-operation modules: convolution, pooling, and activation.
[0069] In some examples, the operation module 20 may be a multiplier adder array, thereby being able to perform complex operations such as convolution, pooling, activation, etc. on the image.
[0070] In some examples, the number of the multiplier adder array of the operation module 20 may be 1024. In this case, more complex operations can be performed on the feature map, thereby obtaining higher operation accuracy.
[0071] In some examples, the operation precision of the operation module 20 may be 16 bits, 10 bits, or 8 bits. In some examples, the operation precision of the operation module 20 may support 16-bit floating point operations.
[0072] Figure 5 A schematic diagram showing a third embodiment of the ASIC chip 1 according to the embodiment of the present utility model is shown.
[0073] refer to Figure 5 In some examples, the ASIC chip 1 may further include an interconnection module 40 for exchanging information with the outside. In this case, information (such as flow control instructions of a trained convolutional neural network model, feature maps, and calculation results) can be input or output to or from the ASIC chip 1 through the interconnection module 40.
[0074] In some examples, the interconnection module 40 can be interconnected with the control module 30 and the storage module 10 via an on-chip bus 50. In this case, the control module 30 can read the data on the interconnection module 40 and transmit it to the storage module 10.
[0075] In some examples, the interconnection module 40 may include an input-output unit connected to an external compiler. In this case, the external compiler can translate a high-level programming language into a program in a machine language that can be executed on the ASIC chip 1. The high-level programming language is easy to write, read, communicate, and maintain, while the machine language can be directly interpreted and run by the ASIC chip 1, so that a program can be written based on the high-level programming language first, and then it can be connected to the external compiler through the input-output unit, and the program written based on the high-level programming language can be translated into a program in a machine language that can be executed on the ASIC chip 1, and written into the ASIC chip 1, thereby, operations such as compilation can be implemented through the interconnection module 40.
[0076] In some examples, the interconnection module 40 may also include an input / output buffer unit. In this case, an input / output buffer unit can be opened in the interconnection module 40. When the ASIC chip 1 is interconnected with an external device, the input / output buffer unit can be used to store data input by the external device and data output by the ASIC chip 1 to the external device. Thus, the system overhead of the ASIC chip 1 can be reduced and the overall efficiency of the input / output of the interconnection module 40 can be improved.
[0077] In some examples, the control module 30 can also be manufactured based on a dynamic random access memory (DRAM) manufacturing process. In this case, the DRAM process is a relatively mature production process, and thus has the advantages of mature process and low cost.
[0078] In some examples, the control module 30 may be a digital signal processor. Thus, the digital signal processor can quickly collect, transform, filter, estimate, enhance, compress, identify and process the signal to obtain a signal form that meets the requirements. However, the present invention is not limited thereto, and the control module 30 may also be formed by combining a microprocessor (MCU) and a storage module 10 on a chip.
[0079] Return to reference Figure 3 The storage module 10 may include an instruction memory 12. As described above, the instruction memory 12 may be used to store the flow control instructions of the trained convolutional neural network model.
[0080] Figure 6 It is a schematic diagram showing a process control instruction involved in an implementation mode of the present utility model.
[0081] In some examples, reference Figure 6 , the ASIC chip 1 can support 32-bit flow control instructions. That is, 32 bits can be used to store one flow control instruction.
[0082] In some examples, the flow control instruction can be represented by an instruction type, an instruction code, and an instruction address. In addition, the instruction type can indicate the type of instruction to be executed. In addition, the instruction code can be used to uniquely determine a flow control instruction. In addition, the instruction address can be the location of the flow control instruction in the instruction memory 12.
[0083] In some examples, the instruction type can be represented using 8 bits. Figure 6 , taking a 32-bit instruction set as an example, Command type indicates the instruction type, and Command type can occupy the 24th to 31st bits.
[0084] In some examples, the instruction code may be represented using 8 bits. Figure 6 , continuing to take the 32-bit instruction set as an example, Command represents the instruction code, and Command can occupy the 16th to 23rd bits.
[0085] In some examples, instruction addresses can be represented using 16 bits. Figure 6 , continuing to take the 32-bit instruction set as an example, Address represents the instruction address, and Address can occupy the 0th to 15th bits.
[0086] Figure 7 1 is a flowchart showing the operation of the ASIC chip 1 according to the embodiment of the present invention.
[0087] In some examples, the workflow of the ASIC chip 1 may be as follows:
[0088] In some examples, step S100 can be executed, the control module 30 can read the process control instructions from the instruction memory 12, and can read the feature map and weight data from the data memory 11, and can transmit the process control instructions and the feature map to the operation module 20.
[0089] In some examples, after executing step S100 , step S101 may be executed, the operation module 20 may perform a convolution operation, and the calculation result may be stored in the data memory 11 through the control module 30 .
[0090] In some examples, after executing step S101 , step S102 may be executed, and the control module 30 may read the calculation result of step S101 from the data storage 11 and transmit it to the operation module 20 .
[0091] In some examples, after executing step S102 , step S103 may be executed, the operation module 20 may perform a pooling operation, and may transmit the calculation result to the data storage 11 through the control module 30 .
[0092] In some examples, after executing step S103 , step S104 may be executed, and the control module 30 may read the calculation result of step S103 from the data storage 11 and transmit it to the operation module 20 .
[0093] In some examples, after executing step S104 , step S105 may be executed, the operation module 20 may perform an activation operation, and may transmit the calculation result to the data storage 11 through the control module 30 .
[0094] In some examples, after executing step S105 , step S106 may be executed, and the control module 30 may read the characteristic map result calculated in step S105 from the data storage 11 and send it to the external device through the interconnection module 40 .
[0095] Figure 8 It is a schematic diagram showing a manufacturing process of the ASIC chip 1 according to the embodiment of the present invention.
[0096] With the development of VLSI technology, processors, memory, analog circuits, interface logic and even radio frequency circuits can be integrated into a large-scale chip. After integrating memory on-chip using dynamic random access memory (DRAM) manufacturing technology, a very wide bus can be designed on-chip, and I / O pins and bandwidth-limited off-chip buses are no longer used. In addition, since driving large I / O capacitors is avoided, the frequency on-chip will be greatly improved. As a result, the memory can provide higher data bandwidth for other on-chip logic, which can help improve the computing speed.
[0097] refer to Figure 8 In some examples, the manufacturing process of the ASIC chip 1 involved in the implementation of the utility model adopts a dynamic random access memory manufacturing process, and the process steps can be as follows:
[0098] In step S200, a substrate is prepared. In some examples, the substrate can be a wafer made of semiconductor single crystal material, and the substrate can directly enter the wafer manufacturing link to produce semiconductor devices, or can be processed by epitaxial process to produce epitaxial wafers. In some examples, the substrate material can be a compound substrate. In some examples, the compound substrate of the substrate material can be any one of the III-V group, the IV-IV group, and the II-VI group. In some examples, the compound substrate of the substrate material can be any one of gallium arsenide (GaAs), gallium nitride (GaN), indium phosphide InP, and silicon carbide (SiC). In some examples, the substrate material can be a single crystal silicon wafer or a single crystal germanium wafer.
[0099] In step S201 , a region of the memory module 10 may be formed on a substrate based on a DRAM process.
[0100] In step S202 , a region of the operation module 20 may be formed on a substrate based on a DRAM process.
[0101] In some examples, the DRAM manufacturing process may be a 28 nm process.
[0102] Various embodiments of the utility model are described above in the specific embodiments. Although these descriptions directly describe the above embodiments, it should be understood that those skilled in the art may conceive of modifications and / or variations to the specific embodiments shown and described herein. Any such modifications or variations that fall within the scope of this specification are also intended to be included therein. Unless otherwise specified, the inventor intends that the words and phrases in the specification and claims be given the ordinary and customary meanings of ordinary technicians.
Claims
1. A convolutional neural network reasoning dedicated integrated circuit chip, characterized in that: It includes a storage module, a calculation module and a control module; the storage module includes an instruction memory and a data memory, the instruction memory is used to store the flow control instructions of the trained convolutional neural network model, and the data memory is used to store the weight data of the trained convolutional neural network model, at least one feature map obtained by the trained convolutional neural network model for the image to be processed, and the calculation result generated by the trained convolutional neural network model performing deep learning reasoning operation on the image to be processed; the calculation module has multiple operators, the calculation module and the storage module exchange data via the on-chip bus and receive the flow control instructions and the data corresponding to the flow control instructions from the on-chip bus and execute them, thereby obtaining the calculation result; the control module is a digital signal processor, the control module is arranged in the storage module and is used to control the access of the storage module, the control module is used to read the flow control instructions stored in the instruction memory and send them to the on-chip bus, and read the data corresponding to the flow control instructions stored in the data memory and send them to the on-chip bus.
2. The ASIC chip according to claim 1, wherein: The data storage device includes a first data storage area, a second data storage area and a third data storage area. The second data storage area is consistent with the bit width and capacity of the first data storage area and is used to cooperate with the first data storage area to alternately store data corresponding to different network layers of the trained convolutional neural network model. The third data storage area is used to store the weight data.
3. The ASIC chip according to claim 1, wherein: It also includes an interconnection module for exchanging information with the outside.
4. The ASIC chip as claimed in claim 3, characterized in that: The interconnection module includes an input and output unit connected to an external compiler.
5. The ASIC chip as claimed in claim 4, characterized in that: The interconnection module also includes an input and output buffer unit.
6. The ASIC chip according to claim 1, wherein: The plurality of operators are arranged around the storage module.
7. The ASIC chip according to claim 6, wherein: The multiple operators are independent of each other.
8. The ASIC chip according to claim 1, wherein: The operation module is a multiplier adder array.
9. The ASIC chip according to claim 1, wherein: The storage module, the control module and the operation module are manufactured based on a dynamic random access memory manufacturing process, and the storage module, the control module and the operation module are electrically connected through the on-chip bus.
