Big data computing acceleration systems and chips
By setting multiple cores and storage units in the ASIC chip, large-capacity memory and collaborative computing are realized, which solves the problem of slow processing speed of ASIC chips when processing big data and significantly improves data processing speed and efficiency.
Patent Information
- Application Number
- CN201810609496.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-06-13
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2038-06-13
AI Technical Summary
When existing ASIC chips process big data, due to limited memory capacity, they need to frequently move data in or out from external storage space, resulting in a reduction in processing speed.
Multiple core cores are set up in the chip, each core core performs computing and storage control functions, and each core core is connected to at least one storage unit outside the chip and connected to each other through a bus to achieve large-capacity memory and collaborative computing.
It reduces the number of times data is moved in or out from external storage space, significantly speeds up data processing, and further improves processing efficiency through multi-core collaborative computing.
Smart Images

Figure CN108536642B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of integrated circuits, and in particular to a big data computing acceleration system and chip. Background Art
[0002] ASIC (Application Specific Integrated Circuits) is an integrated circuit designed and manufactured to meet the needs of specific users and specific electronic systems. The characteristics of ASIC are that it is oriented to the needs of specific users. Compared with general integrated circuits, ASIC has the advantages of smaller size, lower power consumption, improved reliability, improved performance, enhanced confidentiality, and lower cost when mass-produced.
[0003] With the development of science and technology, more and more fields, such as artificial intelligence and security computing, involve specific calculations with large amounts of computing. For specific calculations, ASIC chips can play their specific advantages such as fast computing and low power consumption. At the same time, for these fields with large amounts of computing, in order to improve the data processing speed and processing power, it is usually necessary to control N computing chips to work simultaneously. With the continuous improvement of data accuracy, fields such as artificial intelligence and security computing need to calculate larger and larger data. For example, the size of photos is generally 3-7MB now, but with the increase in the accuracy of digital cameras and video cameras, the size of photos can reach 10MB or more, and a 30-minute video may reach more than 1G of data. In the fields of artificial intelligence and security computing, fast computing speed and low latency are required, so how to improve computing speed and response time has always been the goal required by chip design. Since the memory of ASIC chips is generally 64MB or 128MB, when the data to be processed is above 512MB, the ASIC chip needs to use the memory to access data many times, and move data from the external storage space to or from the memory many times, which reduces the processing speed. Summary of the invention
[0004] The present invention provides a big data computing acceleration system and a chip. A plurality of cores are arranged in the chip, each core performs computing and storage control functions, and at least one storage unit is connected to each core outside the chip. In this way, each core can have a large-capacity memory by reading the storage unit connected to itself and the storage unit connected to other cores, thereby reducing the number of times data is moved into or out of the memory from the external storage space, thereby speeding up the data processing speed. At the same time, since the plurality of cores can perform independent computing or collaborative computing, the data processing speed is also accelerated.
[0005] In order to achieve the above object, the present invention provides the following technical solutions:
[0006] According to a first aspect of the present invention, there is provided a big data computing acceleration system, comprising at least one computing chip and a plurality of storage units; the chip comprises N cores, wherein N is a positive integer greater than or equal to 4, and each core comprises a storage control unit and a computing unit; the storage control unit is connected to at least one storage unit via a bus; the N cores are interconnected via a bus; the chip comprises a UART control unit, which is used to send chip external data or instructions to the core core or the storage unit, and obtain data or instructions from the core core or the storage unit.
[0007] Preferably, the at least one storage unit is a DDR series storage unit.
[0008] Preferably, the storage control unit is used to control the data reading and writing operations of the storage control unit connected to at least one storage unit.
[0009] Preferably, the data read and write operations are operations on part or all of the storage space of at least one storage unit.
[0010] Preferably, the calculation unit is used to perform calculations on the acquired data.
[0011] Preferably, the acquired data may be part or all of the data of at least one storage unit connected to the core of the computing unit, or part or all of the data of at least one storage unit connected to other cores, or a combination of part or all of the data of at least one storage unit connected to the core of the computing unit and part or all of the data of at least one storage unit connected to other cores.
[0012] Preferably, the acquired data may be part or all of the data of at least one storage unit connected to the core of the computing unit, specifically,
[0013] The calculation unit obtains part or all of the data of at least one storage unit through a connected storage control unit.
[0014] Preferably, part or all of the data of at least one storage unit connected to the other cores is specifically,
[0015] The computing unit sends a data acquisition command to other computing units through the bus, and the other computing units send a data acquisition command to the storage control units connected to the other computing units. The storage control units connected to the other computing units acquire part or all of the data from at least one connected storage unit and send the acquired part or all of the data to other computing units, and the other computing units send the acquired part or all of the data to the computing unit.
[0016] Preferably, the computing unit can perform one or more of encryption operations and convolution operations.
[0017] Preferably, the calculation units respectively perform independent operations, and each calculation unit calculates a result separately.
[0018] Preferably, the computing units can perform collaborative computing, and each computing unit performs computing based on the computing results of other computing units.
[0019] Preferably, the storage control unit is used to acquire data from the computing unit, and store the acquired data in at least one connected storage unit.
[0020] Preferably, the UART control unit receives an external instruction to initialize and configure the at least one storage unit, and uniformly addresses a plurality of the at least one storage unit.
[0021] Preferably, the at least one storage unit is read and written by the UART control unit.
[0022] Preferably, data is broadcast to the plurality of computing units via the UART control unit.
[0023] Preferably, the plurality of computing units can transmit the computing results to the outside through the UART control unit via a serial bus.
[0024] Preferably, the UART control unit includes a UART interface, a first AXI unit, a second AXI unit, an AHB interface, a data checking unit and a data generating unit.
[0025] Preferably, the UART interface is used to obtain chip external data or instructions.
[0026] Preferably, the data generating unit is used to generate GAD or network model parameters.
[0027] Preferably, the first AXI unit includes a first interface (M0), a second interface (M1), N third interfaces (S0 to S7) and a fourth interface (S8); the first interface (M0) and the second interface (M1) are respectively connected to the data generation unit and the UART interface, the N third interfaces (S0 to S7) are respectively connected to N data checking units, and the fourth interface is connected to the second AXI unit.
[0028] Preferably, the second AXI unit includes a first interface (M) and N second interfaces (S); the first interface (M) receives data sent by the first AXI unit, and the N second interfaces (S) are respectively connected to N AHB interfaces.
[0029] Preferably, the first AXI unit is used to send 512 bits of data or commands to the at least one storage unit.
[0030] Preferably, the second AXI unit is used to send 32-bit data or commands to the at least one storage unit.
[0031] Preferably, format conversion is performed via the fourth interface (S8) of the first AXI unit and the first interface (M) of the second AXI unit.
[0032] Preferably, the AHB interface and the data checking unit are connected to the at least one storage unit.
[0033] Preferably, the data proofreading unit is used to proofread the data stored in the at least one storage unit.
[0034] According to a second aspect of the present invention, a big data computing acceleration chip is provided, the chip comprising N cores, wherein N is a positive integer greater than or equal to 4, and each of the N cores is connected to at least one storage unit via a bus; the N cores are interconnected via a bus; it is characterized in that: the chip comprises a UART control unit, the UART control unit comprises a UART interface, a first AXI unit, a second AXI unit, an AHB interface, a data proofreading unit and a data generating unit.
[0035] Preferably, the UART interface is used to obtain chip external data or instructions.
[0036] Preferably, the data generating unit is used to generate GAD or network model parameters.
[0037] Preferably, the first AXI unit includes a first interface (M0), a second interface (M1), N third interfaces (S0 to S7) and a fourth interface (S8); the first interface (M0) and the second interface (M1) are respectively connected to the data generation unit and the UART interface, the N third interfaces (S0 to S7) are respectively connected to N data checking units, and the fourth interface is connected to the second AXI unit.
[0038] Preferably, the second AXI unit includes a first interface (M) and N second interfaces (S); the first interface (M) receives data sent by the first AXI unit, and the N second interfaces (S) are respectively connected to N AHB interfaces.
[0039] Preferably, the first AXI unit is used to send 512 bits of data or commands to the at least one storage unit.
[0040] Preferably, the second AXI unit is used to send 32-bit data or commands to the at least one storage unit.
[0041] Preferably, format conversion is performed via the fourth interface (S8) of the first AXI unit and the first interface (M) of the second AXI unit.
[0042] Preferably, the AHB interface and the data checking unit are connected to the at least one storage unit.
[0043] Preferably, the data proofreading unit is used to proofread the data stored in the at least one storage unit.
[0044] The embodiment of the present invention sets multiple cores in a chip, each core performs calculation and storage control functions, and connects at least one storage unit to each core outside the chip, so that each core can have a large-capacity memory by reading the storage unit connected to itself and the storage unit connected to other cores, thereby reducing the number of times data is moved into or out of the memory from the external storage space, thereby speeding up the data processing speed; at the same time, since multiple cores can operate independently or collaboratively, this also speeds up the data processing speed. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some exemplary embodiments. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0046] Figure 1 A schematic diagram illustrating the structure of a big data computing acceleration system with eight core chips according to the first embodiment;
[0047] Figure 2 A schematic diagram illustrating the structure of a big data computing acceleration system with eight core chips according to a second embodiment;
[0048] Figure 3 A schematic diagram illustrating the structure of a big data computing acceleration system with six core chips according to a third embodiment;
[0049] Figure 4 A schematic diagram illustrating the internal connection and data flow of the big data computing acceleration system according to the fourth embodiment;
[0050] Figure 5 A schematic diagram of a data structure according to the present invention is described;
[0051] Figure 6A schematic diagram illustrating the structure of a big data computing acceleration system with eight core chips according to the fifth embodiment. DETAILED DESCRIPTION
[0052] The exemplary embodiments of the present invention will be specifically described below based on the accompanying drawings. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present invention, and are not intended to limit the scope of the present invention in any way. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.
[0053] In addition, it should be noted that the directions of up, down, left and right in the drawings are merely illustrative of specific implementations, and those skilled in the art can change the directions of part or all of the components shown in the drawings according to actual needs without affecting the functions of the components or the system as a whole, and such a technical solution with changed directions still falls within the scope of protection of the present invention.
[0054] A multi-core chip is a multi-processing system embodied on a single large-scale integrated semiconductor chip. Typically, two or more chip cores may be embodied on a multi-core chip chip, interconnected by a bus (which may also be formed on the same multi-core chip chip). There may be from two chip cores to many chip cores embodied on the same multi-core chip chip, with the upper limit in the number of chip cores limited only by manufacturing capabilities and performance constraints. The multi-core chip may have applications containing specialized arithmetic and / or logical operations performed in multimedia and signal processing algorithms (such as video encoding / decoding, 2D / 3D graphics, audio and speech processing, image processing, telephony, speech recognition and sound synthesis, encryption processing).
[0055] Although only ASIC is mentioned in the background technology, the specific wiring implementation method in the embodiment can be applied to multi-core chips such as CPU, GPU, FPGA, etc. In this embodiment, the multiple cores can be the same core or different cores.
[0056] [Implementation Method 1]
[0057] For the convenience of explanation, the following will be Figure 2 The chip with 8 cores in the embodiment is used as an example for explanation, and those skilled in the art will appreciate that the selection of 8 cores as an example is only for exemplary explanation, and the number of cores may be N, where N is a positive integer greater than or equal to 4, such as 6, 10, 12, etc. In this embodiment, the multiple cores may be the same core or different cores.
[0058] Figure 1A schematic diagram illustrating the structure of a big data computing acceleration system with eight core chips in the first embodiment. Figure 1 As shown, the big data computing acceleration system includes at least one computing chip with 8 cores and multiple storage units, the computing chip with 8 cores includes 8 cores (10...17), each core includes a storage control unit (110...117) and a computing unit (120...127); the storage control unit (110...117) is connected to 4 storage units (200, 201, 202, 203...270, 271, 272, 273) through a data bus. The above-mentioned 8 cores (10...17) are connected to each other through a bus connection unit (30) and can transmit data or commands to each other; the data exchange control unit is connected to the 8 cores (10...17) through the bus connection unit (30), and is connected to 32 storage units (200, 201, 202, 203...270, 271, 272, 273) through the bus.
[0059] The data exchange control unit can be implemented using a variety of protocols, such as UART, SPI, PCIE, SERDES, USB, etc. In this embodiment, the data exchange control unit is a UART (Universal Asynchronous Receiver / Transmitter) control unit (40). Universal Asynchronous Receiver / Transmitter is usually called UART, which is an asynchronous receiver / transmitter that converts the data to be transmitted between serial communication and parallel communication. UART is usually integrated into the connection of various communication interfaces. However, here only the UART protocol is used as an example, and other protocols can also be used. The UART (Universal Asynchronous Receiver / Transmitter) control unit (40) is connected to 8 cores (10...17) through a bus connection unit (30), and is connected to 32 storage units (200, 201, 202, 203...270, 271, 272, 273) through a bus.
[0060] The storage unit may be a high-speed external memory such as DDR, SDDR, DDR2, DDR3, DDR4, GDDR5, GDDR6, HMC, HBM, etc. Here, the storage unit preferably selects DDR series memory, and DDR (Dual Data Rate) memory is a double-rate synchronous dynamic random access memory. DDR uses a synchronous circuit to enable the main steps of specifying the address, data transmission and output to be executed independently and to remain completely synchronized with the CPU; DDR uses DLL (Delay Locked Loop, a delay locked loop provides a data filtering signal) technology. When the data is valid, the storage controller can use this data filtering signal to accurately locate the data, output it once every 16 times, and resynchronize the data from different memory modules. The frequency of DDR memory can be expressed in two ways: operating frequency and equivalent frequency. The operating frequency is the actual operating frequency of the memory particles, but because DDR memory can transmit data on both the rising and falling edges of the pulse, the equivalent frequency of transmitting data is twice the operating frequency. DDR2 (Double Data Rate 2) memory is a new generation memory technology standard developed by JEDEC (Joint Electronic Equipment Engineering Committee). DDR2 memory can read / write data at 4 times the speed of the external bus per clock, and can run at 4 times the speed of the internal control bus. DDR3, DDR4, GDDR5, GDDR6, HMC, HBM memory are all existing technologies and will not be introduced in detail here. The storage control unit (110...117) is connected to 4 storage units (200, 201, 202, 203...270, 271, 272, 273) respectively through the DDR bus. In this embodiment, each storage unit is at least 512MB of memory, and its storage capacity can be 1G, 2G or more.
[0061] The 32 storage units (200, 201, 202, 203 ... 270, 271, 272, 273) are used to store original data or data to be processed, such as image data, video data, data to be encrypted, etc. The calculation results of the calculation units (120 ... 127) can also be stored. The 32 storage units are uniformly allocated addresses, and the storage space addresses of the 32 storage units are continuous and different.
[0062] The storage control unit (110...117) is used to control the reading or storage of data in the connected storage units (200, 201, 202, 203...270, 271, 272, 273). For example, the storage control unit (110) can read part or all of the original data or data to be processed from the storage units (200, 201, 202, 203) connected thereto, and send the read part or all of the original data or data to be processed to the computing unit (120) connected to the storage control unit (110).
[0063] The computing unit (120...127) is used to send a data acquisition command to the storage control unit (110...117) connected thereto, and the storage control unit (110...117) acquires data in the storage unit (200, 201, 202, 203...270, 271, 272, 273) controlled thereto according to the command, and sends the acquired data to the computing unit (120...127). The computing unit may also send a data acquisition command to other computing units, and other computing units send a data acquisition command to the storage control unit connected to other computing units, and the storage control unit connected to other computing units acquires part or all of the original data or data to be processed from the storage unit controlled thereto, and sends the acquired part or all of the original data or data to be processed to other computing units, and the other computing units send the acquired part or all of the original data or data to be processed to the computing unit.
[0064] For example, the computing unit (120) sends a data acquisition command to the storage control unit (110) connected thereto, and the storage control unit (110) acquires part or all of the original data or data to be processed in the storage unit (200, 201, 202, 203) controlled by it according to the data acquisition command, and sends the acquired data to the computing unit (120). The computing unit (120) may also send a command to obtain data to the computing unit (121...127), and the computing unit (121...127) sends a command to obtain data to the storage control unit (111...117) connected to itself, and the storage control unit (111...117) connected to the computing unit (121...127) obtains part or all of the original data or data to be processed from the storage unit (210, 211, 212, 213...270, 271, 272, 273) controlled by it, and sends the obtained part or all of the original data or data to be processed to the computing unit (121...127), and the computing unit (121...127) sends the obtained part or all of the original data or data to be processed to the computing unit (120).
[0065] The computing unit (120...127) can also send a write data command to the storage control unit (110...117) connected to it, and the storage control unit (110...117) writes the calculation results in the computing unit (120...127) into the storage unit (200, 201, 202, 203...270, 271, 272, 273) it controls according to the command.
[0066] The computing unit (120...127) obtains part or all of the original data or data to be processed from the storage unit (200, 201, 202, 203...270, 271, 272, 273) connected to the kernel, and obtains part or all of the original data or data to be processed from the storage units (200, 201, 202, 203...270, 271, 272, 273) connected to other kernels, and calculates the above data to obtain a calculation result; the computing unit can perform SHA256 calculation, convolution calculation, etc.
[0067] For example, the computing unit (120) obtains part or all of the original data or data to be processed from the storage unit (200, 201, 202, 203) connected to the kernel (10), and obtains part or all of the original data or data to be processed from the storage unit (210, 211, 212, 213 ... 270, 271, 272, 273) connected to other kernels (20 ... 70) through other computing units (121 ... 127), and calculates the above data to obtain a calculation result. The calculation result is written into the storage unit (200, 201, 202, 203).
[0068] The computing units (120...127) respectively perform independent identical operations, and each computing unit (120...127) respectively calculates the result. For example, encryption operations such as SHA256 are performed on the data. The computing units (120...127) can also perform collaborative operations, that is, the first computing unit (120) sends its calculation result to the second computing unit (121), and the second computing unit (121) performs a second calculation based on the obtained calculation result and other parameters, and so on. For example, in data processing of a neural network, the neural network is composed of multiple layers, and each computing unit can perform the calculation of one layer of the neural network.
[0069] The bus may adopt a centralized arbitration bus structure or a ring topology bus structure. The bus technology is a common technology in this field, so it will not be introduced in detail here.
[0070] The UART control unit (40) is used to control the data and command exchange between the internal storage control unit (110 ... 117) and the computing unit (120 ... 127) of the chip and the outside, and the data and command exchange between the storage unit (210, 211, 212, 213 ... 270, 271, 272, 273) and the outside. The UART control unit (40) and the storage unit (210, 211, 212, 213 ... 270, 271, 272, 273) have a connected bus. Figure 4 The external part mentioned here may refer to an external host, an external CPU, an external controller, an external functional chip, an external GPU, and a chip that is exactly the same as the present chip.
[0071] The bus connection unit (30) is used to connect the eight cores (10...17) and the UART control unit (40) so that data or commands can be transmitted in each unit.
[0072] Figure 2 A schematic diagram illustrating the structure of a big data computing acceleration system with eight core chips according to the second embodiment. Figure 2 It can be seen that the difference from the first embodiment is that the number of storage units connected to each core is different, and the working mode and working principle are the same, so they will not be described in detail here.
[0073] Figure 3 A schematic diagram illustrating the structure of a big data computing acceleration system with six core chips according to the third embodiment. Figure 3 It can be seen that the difference from the first embodiment lies in the number of cores in the chip and the number of storage units connected to each core. The working mode and working principle are the same, so they will not be described in detail here.
[0074] Figure 4 A schematic diagram illustrating the internal connection and data flow of the big data computing acceleration system of the fourth embodiment. Figure 4 It can be seen that the chip includes 8 cores core0...core7, each core is connected to a DDR storage unit DDR0...DDR7 and a UART control unit (40). The UART control unit (40) includes a UART interface (401), a first AXI (Advanced Xtensible Interface) unit (402), a second AXI unit (403), an AHB interface (404), a data check unit (405), and a data generation unit (406). Of course, each core here includes a storage control unit and a computing unit.
[0075] The Universal Asynchronous Receiver / Transmitter (UART) serial bus protocol is the most widely used protocol in the field of low-speed communication, with simple circuits and low costs, but it can only be a one-to-one communication.
[0076] AXI (Advanced eXtehsible Interface) is a bus protocol. This protocol is the most important part of the AMBA (Advanced Microcontroller Bus Architecture) 3.0 protocol proposed by ARM. It is an on-chip bus for high performance, high bandwidth, and low latency. Its address / control and data phases are separated, supporting unaligned data transmission. At the same time, in burst transmission, only the first address is required. At the same time, the separate read and write data channels support outstanding transmission access and out-of-order access, and it is easier to perform timing convergence. AXI is a new high-performance protocol in AMBA. AXI technology enriches the existing AMBA standard content to meet the needs of ultra-high performance and complex system-on-chip (SoC) design.
[0077] AHB (Advanced High Performance Bus) is an advanced high-performance bus. Like USB (Universal Serial Bus), it is also a bus interface. AHB is mainly used for the connection between high-performance modules (such as CPU, DMA and DSP, etc.). As the on-chip system bus of SoC, it includes the following features: single clock edge operation; non-three-state implementation; support for burst transmission; support for segmented transmission; support for multiple master controllers; configurable 32-bit to 128-bit bus width; support for byte, half-word and word transmission. The AHB system consists of three parts: master module, slave module and infrastructure (Tnfrastructure). The transmission on the entire AHB bus is issued by the master module and responded by the slave module. The infrastructure consists of an arbiter, a multiplexer from the master module to the slave module, a multiplexer from the slave module to the master module, a decoder, a dummy slave module, and a dummy master module. This design makes the structure of the entire system clear and enhances the versatility of the system and the portability of the functional modules in the system.
[0078] The UART interface is used to obtain chip external data or instructions, and the data generation unit is used to generate GAD or network model parameters. The first AXI unit includes a first interface (M0), a second interface (M1), 8 third interfaces (S0 to S) and a fourth interface (S8); the first interface (M0) and the second interface (M1) are respectively connected to the data generation unit and the UART interface, the 8 third interfaces (S0 to S7) are respectively connected to 9 data proofreading units, and the fourth interface (S8) is connected to the first interface (M) of the second AXI unit. The second AXI unit includes a first interface (M) and 8 second interfaces (S); the first interface (M) receives data sent by the fourth interface (S8) of the first AXI unit, and the N second interfaces (S) are respectively connected to N AHB interfaces. The AHB interface and the data proofreading unit are connected to the at least one storage unit.
[0079] The first AXI unit receives and sends data or commands through the first interface (M0) and the second interface (M1), converts the data or commands and sends them to the data checking unit through 8 third interfaces (S0 to S7), the data checking unit is used to check the data stored in the at least one storage unit, and the first AXI unit is used to send 512 bits of data or commands to the at least one storage unit.
[0080] The second AXI unit receives data from the fourth interface (S8) of the first AXI unit through the first interface (M), performs format conversion on 512-bit data or commands, and converts them into 32-bit data or commands, and sends the 32-bit data or commands to the AHB interface (404) through the eight second interfaces (S).
[0081] The external host can initialize and configure DDR parameters through the UART control unit and uniformly address multiple DDR particles. The external host sends the addressing command to the DDR storage units DDR0...DDR7 through the UART interface (401), the first AXI (Advanced eXtensible Interface) unit (402), the second AXI unit (403) and the AHB interface (404), and the DDR storage units DDR0...DDR7 perform address allocation according to the addressing command.
[0082] The external host can write data to the DDR storage units DDR0...DDR7 through the UART control unit; the external host sends the data and the address where the data is stored to the DDR storage units DDR0...DDR7 through the UART interface (401), the first AXI unit (402) and the data proofreading unit (405), and the DDR storage units DDR0...DDR7 store the data according to the data and the address where the data is stored. The first AXI unit (402) receives the data sent by the UART interface (401) through the M0 interface, and sends it to the data proofreading unit (405) through the S0...S7 interface, and the data proofreading unit (405) sends the data to the connected DDR storage unit. The external host can also read the data stored in the DDR storage units DDR0...DDR7 through the reverse link.
[0083] The data generating unit (406) can generate data, and send the generated data and the address of the storage thereof to the DDR storage unit DDR0 ... DDR7 through the UART interface (401), the first AXI unit (402) and the data checking unit (405) for storage. The first AXI unit (402) receives the data generated by the data generating unit (406) through the M1 interface, and sends the data to the data checking unit (405) through the S0 ... S7 interface, and the data checking unit (405) sends the data to the connected DDR storage unit.
[0084] When necessary, the data checking unit (405) can compare the 512-bit data written into the DDR storage units DDR0...DDR7, and rewrite if there is an error.
[0085] The external host can broadcast and write data to the computing units in the cores core0...core7 through the UART interface (401); each computing unit can write the calculation result to the external host through the UART interface (401) via the serial bus.
[0086] The system is applied to the field of artificial intelligence, wherein the UART control unit (40) stores the image data or video data sent by the external host in the DDR storage units DDR0 ... DDR7, and the data generation unit (406) generates a mathematical model of the neural network and writes the model parameters into the storage units DDR0 ... DDR7. The DDR control unit in the kernel is used to access data and send the data to the calculation unit for calculation, and the calculation unit can store the calculation result in the storage unit, and can also feed back the calculation result to the external host through the UART control unit (40).
[0087] The chip is applied to the field of blockchain, the UART control unit (40) stores the block information sent by the external host into the DDR storage unit DDR0...DDR7, the data generation unit (406) generates the DAG in the algorithm, and writes the DAG into the storage unit DDR0...DDR7. The DDR control unit in the kernel is used to access data and send the data to the calculation unit for workload proof calculation, and the calculation unit feeds back the calculation result to the external host through the UART control unit (40).
[0088] The embodiment of the present invention sets multiple cores in a chip, each core performs calculation and storage control functions, and connects at least one storage unit to each core outside the chip, so that each core can have a large-capacity memory by reading the storage unit connected to itself and the storage unit connected to other cores, thereby reducing the number of times data is moved into or out of the memory from the external storage space, thereby speeding up the data processing speed; at the same time, since multiple cores can operate independently or collaboratively, this also speeds up the data processing speed.
[0089] Figure 5 The data structure diagram according to the present invention is described. The data mentioned here refers to various data such as command data, numerical data, character data, etc. The data format specifically includes valid bit, destination address dst id, source address src id and data data. The kernel can determine whether the data packet is a command or a numerical value by the valid bit. Here, it can be assumed that 0 represents a numerical value and 1 represents a command. The kernel will determine the destination address, source address and data type based on the data structure. For example, in the attached Figure 1 In this embodiment, kernel 50 sends a data read command to kernel 10, the valid bit is 1, the destination address is the address of kernel 10, the source address is the address of kernel 50, and the data data is the read data command and the data type or data address, etc. Kernel 10 sends data to kernel 10, the valid bit is 0, the destination address is the address of kernel 50, the source address is the address of kernel 0, and the data data is the read data. From the perspective of instruction execution timing, the present embodiment adopts a traditional six-stage pipeline structure, which are instruction fetch, decoding, execution, memory access, alignment and write-back stages. From the perspective of instruction set architecture, a reduced instruction set architecture can be adopted. According to the general design method of the reduced instruction set architecture, the instruction set of the present invention can be divided into register-register type instructions, register-immediate instructions, jump instructions, memory access instructions, control instructions and inter-core communication instructions according to their functions.
[0090] [Implementation Method 2]
[0091] Figure 6A schematic diagram illustrating the structure of a big data computing acceleration system with 8 core chips in the fifth embodiment. Compared with Implementation 1, the data production unit in the UART control unit is separated and a separate module is set up. Here, the data generation unit is specifically defined as a GAD production unit. This is because some data are relatively large, such as GAD data, neural network model parameters, etc., and the data production unit still sends data through the first AXI unit 402 in the UART unit. Since the principle is the same as Implementation 1, the detailed data will not be described here.
[0092] Using the description provided herein, the embodiments may be implemented as a machine, process or article of manufacture by using standard programming and / or engineering techniques to produce programming software, firmware, hardware, or any combination thereof.
[0093] Any generated program(s) (having computer readable program code) may be embodied on one or more computer-usable media, such as a resident storage device, a smart card or other removable storage device, or a transmission device, thereby making computer program products and articles of manufacture according to the embodiments. As such, the terms "article of manufacture" and "computer program product" as used herein are intended to encompass a computer program that exists permanently or temporarily on any non-transitory medium that can be used by a computer.
[0094] As noted above, memory / storage devices include but are not limited to magnetic disks, optical disks, removable storage devices (such as smart cards, subscriber identity modules (SIM), wireless identification modules (WIM)), semiconductor memories (such as random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM)), etc. Transmission media include but are not limited to transmission via wireless communication networks, the Internet, intranets, telephone / modem-based network communications, hard-wired / cable communication networks, satellite communications, and other fixed or mobile network systems / communication links.
[0095] Although specific example embodiments have been disclosed, persons skilled in the art will understand that changes can be made to the specific example embodiments without departing from the spirit and scope of the invention.
[0096] The present invention has been described above based on the embodiments with reference to the accompanying drawings, but the present invention is not limited to the above-mentioned embodiments, and the solutions after appropriate combination or replacement of the parts of the embodiments and the modified examples according to the layout requirements are also included in the scope of the present invention. In addition, the combination and processing sequence of the embodiments can be appropriately reorganized based on the knowledge of those skilled in the art, or various design changes and other modifications can be applied to the embodiments, and the embodiments to which such modifications are applied may also be included in the scope of the present invention.
[0097] Although the present invention has described various concepts in detail, it will be understood by those skilled in the art that various modifications and substitutions to those concepts are achievable within the spirit of the overall teachings disclosed in the present invention. Those skilled in the art can implement the invention set forth in the claims using ordinary techniques without undue experimentation. It will be understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present invention, which is determined by the full scope of the appended claims and their equivalents.
Claims
1. A big data computing acceleration system, comprising at least one computing chip and a plurality of storage units; the chip comprises N cores, wherein N is a positive integer greater than or equal to 4, each core comprises a storage control unit and a computing unit; the storage control unit is connected to at least one storage unit via a bus; the N cores are connected to each other via the bus; the chip comprises a data exchange control unit, which is used to send chip external data or instructions to the core core or the storage unit, and obtain data or instructions from the core core or the storage unit; The calculation unit is used to calculate the acquired data, wherein: The acquired data includes: part or all of the data of at least one storage unit connected to the core of the computing unit; or part or all of the data of at least one storage unit connected to other cores; or a combination of part or all of the data of at least one storage unit connected to the core of the computing unit and part or all of the data of at least one storage unit connected to other cores; Specifically, part or all of the data of at least one storage unit connected to the other cores is that the computing unit sends a data acquisition command to other computing units through a bus, and other computing units send data acquisition commands to storage control units connected to other computing units, and the storage control units connected to other computing units acquire part or all of the data from at least one connected storage unit, and send the acquired part or all of the data to other computing units, and other computing units send the acquired part or all of the data to the computing unit.
2. The system according to claim 1, characterized in that The at least one storage unit is a DDR series memory.
3. The system according to claim 1, characterized in that The storage control unit is used to control the data reading and writing operations of the storage control unit connected to at least one storage unit.
4. The system according to claim 3, characterized in that The data read and write operations are operations on a portion or all of the storage space of at least one storage unit.
5. The system according to claim 1, characterized in that The acquired data includes partial data of at least one storage unit connected to the core of the computing unit, specifically, The calculation unit obtains partial data of at least one storage unit via a connected storage control unit.
6. The system according to claim 1, characterized in that The acquired data includes: all data of at least one storage unit connected to the core of the computing unit is set as follows: The calculation unit obtains all data of at least one storage unit via a connected storage control unit.
7. The system according to claim 1, characterized in that The computing unit may perform one or more of encryption operations and convolution operations.
8. The system according to claim 1, characterized in that The calculation units respectively perform independent operations, and each calculation unit calculates a result separately.
9. The system according to claim 1, characterized in that The computing units may perform collaborative computing, with each computing unit performing computing based on computing results of other computing units.
10. The system according to claim 1, characterized in that The storage control unit is used for acquiring data from the computing unit and storing the acquired data in at least one connected storage unit.
11. The system according to claim 1, characterized in that The data exchange control unit receives an external instruction to initialize and configure the at least one storage unit, and performs unified addressing on a plurality of the at least one storage units.
12. The system according to claim 1, characterized in that The plurality of at least one storage units are read and written by the data exchange control unit.
13. The system according to claim 1, characterized in that The data exchange control unit broadcasts data to the plurality of computing units.
14. The system according to claim 1, characterized in that The plurality of computing units can transmit the computing results to the outside through the data exchange control unit via a serial bus.
15. The system according to claim 1, characterized in that The data exchange control unit comprises a data interface, a first AXI unit, a second AXI unit, an AHB interface, a data checking unit and a data generating unit.
16. The system according to claim 15, characterized in that The data interface is used to obtain chip external data or instructions.
17. The system according to claim 15, characterized in that The data generating unit is used to generate GAD or network model parameters.
18. The system according to claim 15, characterized in that The first AXI unit includes a first interface, a second interface, N third interfaces and a fourth interface; the first interface and the second interface are respectively connected to the data generation unit and the data interface, the N third interfaces are respectively connected to the N data checking units, and the fourth interface is connected to the second AXI unit.
19. The system according to claim 18, characterized in that The second AXI unit includes a first interface and N second interfaces; the first interface receives data sent by the first AXI unit, and the N second interfaces are respectively connected to N AHB interfaces.
20. The system according to claim 18 or 19, characterized in that The first AXI unit is used to send 512 bits of data or commands to the at least one storage unit.
21. The system according to claim 18 or 19, characterized in that The second AXI unit is used to send 32-bit data or commands to the at least one storage unit.
22. The system according to claim 18 or 19, characterized in that Format conversion is performed through the fourth interface of the first AXI unit and the first interface of the second AXI unit.
23. The system according to claim 18 or 19, characterized in that The AHB interface and the data checking unit are connected to the at least one storage unit.
24. The system according to claim 15, characterized in that The data checking unit is used to check the data stored in the at least one storage unit.
25. The system according to any one of claims 1 to 19, characterized in that The data exchange control unit is a UART control unit.
26. The system according to any one of claims 15 to 19, characterized in that The data interface is a UART interface.
27. A big data computing acceleration chip, comprising N cores, wherein N is a positive integer greater than or equal to 4, and each of the N cores is externally connected to at least one memory unit via a bus; the N cores are interconnected via the bus; characterized in that: The chip includes a UART control unit, and the UART control unit includes a UART interface, a first AXI unit, a second AXI unit, an AHB interface, a data check unit and a data generation unit; Each core includes a storage control unit and a computing unit, wherein the computing unit is used to compute the acquired data, wherein the acquired data includes: part or all of the data of at least one storage unit connected to the core of the computing unit; or part or all of the data of at least one storage unit connected to other cores; or a combination of part or all of the data of at least one storage unit connected to the core of the computing unit and part or all of the data of at least one storage unit connected to other cores; Specifically, part or all of the data of at least one storage unit connected to the other cores is that the computing unit sends a data acquisition command to other computing units through a bus, and other computing units send data acquisition commands to storage control units connected to other computing units, and the storage control units connected to other computing units acquire part or all of the data from at least one connected storage unit, and send the acquired part or all of the data to other computing units, and other computing units send the acquired part or all of the data to the computing unit.
28. The chip according to claim 27, characterized in that: The UART interface is used to obtain chip external data or instructions.
29. The chip according to claim 27, characterized in that The data generating unit is used to generate GAD or network model parameters.
30. The chip according to claim 27, characterized in that The first AXI unit includes a first interface, a second interface, N third interfaces and a fourth interface; the first interface and the second interface are respectively connected to the data generation unit and the UART interface, the N third interfaces are respectively connected to the N data proofreading units, and the fourth interface is connected to the second AXI unit.
31. The chip according to claim 30, characterized in that The second AXI unit includes a first interface and N second interfaces; the first interface receives data sent by the first AXI unit, and the N second interfaces are respectively connected to N AHB interfaces.
32. The chip according to claim 30 or 31, characterized in that: The first AXI unit is used to send 512 bits of data or commands to the at least one memory unit.
33. The chip according to claim 30 or 31, characterized in that: The second AXI unit is used to send 32-bit data or commands to the at least one memory unit.
34. The chip according to claim 30 or 31, characterized in that: Format conversion is performed through the fourth interface of the first AXI unit and the first interface of the second AXI unit.
35. The chip according to claim 30 or 31, characterized in that: The AHB interface and the data checking unit are connected to the at least one memory unit.
36. The chip according to claim 27, characterized in that The data checking unit is used to check the data stored in the at least one memory unit.
Citation Information
Patent Citations
Architecture and data processing method for hardware RAID 5 / 6 memory system
CN102609221A
Quad-core processor system built in quad-core structure and data switching method thereof
CN103744644A
An SoC cryptographic chip
CN104202161A
Speech recognition soc chip framework
CN206224997U
Big data operation acceleration system and chip
CN208298179U
