Fusion buffer architecture based on array structure

Through the fusion buffer architecture based on the array structure, the multi-layer cache structure is simplified, solving the problems of complex circuit design and low efficiency caused by multi-cache and multi-level connection relationships in the neural network accelerator, and achieving efficient data exchange and calculation.

CN118519960BActive Publication Date: 2024-10-01STORAGEX TECHNOLOGY INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410969196.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-10-01
Estimated Expiration
2044-07-19

AI Technical Summary

Technical Problem

The multi-cache and multi-level connection relationships of existing neural network accelerators lead to complex circuit design, high compiler complexity, and uncertain data exchange delays, which affect chip efficiency and cost.

Method used

The integrated buffer architecture based on the array structure is used to realize unified management and access of instructions and data through the signal line connection between the buffer array and the instruction module. Pipeline register is used to replace the traditional bus design to simplify the multi-layer cache structure.

Benefits of technology

It achieves global unified management and access regardless of design scale, improves the efficiency of front-end design, data control and algorithm support, reduces the difficulty of back-end physical implementation, and improves computing efficiency and programming efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118519960B_ABST
    Figure CN118519960B_ABST
Patent Text Reader

Abstract

The present application discloses a fusion buffer architecture based on an array structure, which relates to the field of buffers, including a buffer array and an instruction module connected to the buffer array through a signal line; the instruction module caches compiled instruction data, and sends an instruction stream to the buffer array according to the timing; the buffer array contains M rows of buffer blocks with the same structure, and the adjacent row buffer blocks are sequentially cascaded through a unidirectional instruction signal line, and the instruction stream sent by the instruction module is transmitted to the M row buffer blocks row by row according to the timing; the M row buffer blocks are respectively provided with a data input terminal and a data output terminal, respectively receiving external data input, and performing cache and output tasks according to the instruction data transmitted to the row. The array unit using SRAM adopts a pipeline register instead of a traditional bus design, and adopts multiple instruction slots to control data read and write transmission, realizing a buffer architecture with global unified management and access that is independent of the design scale, reducing the difficulty of circuit design, and improving data cache and read and write efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of buffers, and in particular to a fusion buffer architecture based on an array structure. Background Art

[0002] In modern society and industry, such as the Internet, big data, the Internet of Things, and autonomous driving, the use of artificial intelligence based on neural networks can greatly improve efficiency and reduce costs, and its use is becoming increasingly widespread. The calculations within the neural network can be run using general computing technology such as general computing CPUs, but the efficiency is relatively low. Therefore, the industry usually uses specialized processors to accelerate the calculation of neural networks, generally called neural network accelerators, or artificial intelligence chips (AI chips).

[0003] At present, the mainstream neural network accelerators in the industry are mainly general-purpose computing graphics processors (GPGPUs), there are also accelerators based on reduced instruction set processors (RISC) cores, and special-purpose accelerators that use systolic arrays combined with general-purpose computing cores (collectively referred to as DSA, such as Google's TPU chip). Taking DSA accelerators as an example, there are usually several computing cores inside the chip, and there will be multiple or multiple memories. The architecture of this type of accelerator is generally composed of multiple computing components or computing cores. The cores can complete the overall operation through coordinated calculations; a single computing component or computing core has an independent local cache and buffer; multiple computing components or computing cores exchange data through multi-level, multi-block buffers (L1 and L2Buffer). This type of mainstream design usually has duplicate storage, and the bus connection between multiple caches increases the complexity of circuit design; the interactive execution of tasks between multiple caches greatly increases the complexity of the compiler; the inconsistent length of the paths between multiple caches leads to uncertain data exchange delays, affecting programming efficiency; the multi-level connection relationship between multiple caches leads to low scaling efficiency, which in turn greatly reduces the design reuse of chips with different computing power. The above problems will result in excessive circuit area or complex programming methods, which will have a negative impact on chip cost and efficiency. Summary of the invention

[0004] The embodiment of the present application provides a fusion buffer architecture based on an array structure, which solves the problem that the multi-caching multi-level connection relationship leads to complex circuit design and affects chip efficiency and cost. It includes a buffer array and an instruction module connected to the buffer array through a signal line; the instruction module caches compiled instruction data and sends an instruction stream to the buffer array according to the timing;

[0005] The buffer array includes M rows of buffer blocks with the same structure, and the buffer blocks in adjacent rows are cascaded in sequence through unidirectional instruction signal lines, so that the instruction stream sent by the instruction module is transmitted to the M rows of buffer blocks row by row according to the timing;

[0006] The M row buffer blocks are respectively provided with a data input terminal and a data output terminal, respectively receiving external data input, and executing cache and output tasks according to the instruction data transmitted to the row.

[0007] Specifically, the buffer block includes N cache units with the same structure, and M rows of buffer blocks form an M*N array buffer array; the N cache units in each row are cascaded in sequence through data lines to transfer data between adjacent buffer blocks left and right.

[0008] Specifically, the cache unit includes a buffer, a first data selector, a second data selector and a first data register;

[0009] One data input terminal of the first data selector is connected to the buffer, the other data input terminal is connected to the second data register in the adjacent buffer unit, the data output terminal is connected to the first data register, and the buffer output or the second register is selected to output data to the first data register;

[0010] One data input terminal of the second data selector is connected to the buffer, the other data input terminal is connected to the first data register, and the data output terminal is connected to the second data register of the adjacent buffer block, and the buffer output or the first register output data is selected to the adjacent buffer unit.

[0011] Specifically, the cache unit also includes an instruction register. In the cache units in the same column, the instruction registers in adjacent rows are cascaded to each other through signal lines to store and transfer instructions;

[0012] The buffer also includes n SRAM banks and a read-write circuit. The instruction register is connected to the read-write circuit, and the instruction information is read according to the timing. The read-write circuit performs the read-write task according to the instruction information. When the read-write circuit executes the write instruction, it receives external target data and writes the target data into the specified position of the target bank. When the read-write circuit executes the read instruction, it obtains the target data from the target bank according to the instruction and sends it to the outside.

[0013] Specifically, in the same-row cache unit, buffer units in adjacent columns transfer data horizontally through data registers; in the same-row cache unit, buffer units in adjacent rows transfer instructions vertically through cascaded instruction registers.

[0014] Specifically, the instruction register in the cache unit is connected to the selection end of the first data selector and the second data selector respectively, generates a selection signal according to the target instruction under the current timing, and controls the selection output of the data selector based on the selection signal.

[0015] Specifically, the instruction module includes N instruction slots, each column of instruction slots includes S cascade-depth FIFO memories for storing S compiled instructions, and the FIFO memories send instructions to corresponding columns of the buffer array one by one according to the timing, and transmit them according to the instruction flow direction.

[0016] Specifically, the compilation instructions include a mode control bit, a data direction bit, a channel selection bit, and a bank selection bit;

[0017] The mode control bit is used to control the target cache unit to execute a data operation mode;

[0018] The data direction bit is used to control the target cache unit to execute the data transmission direction;

[0019] The channel selection bit is used to control the gating state of the data selector in the target cache unit;

[0020] The bank select bit is used to select a target bank in the buffer.

[0021] Specifically, the cache units in the same column as the instruction slot execute the same compiled instructions in sequence according to the order of the instruction stream; when the data operation mode is to read data, the read-write circuit reads the target data from the target bank according to the compiled instruction, selects the data output according to the channel selection bit, and sends the target data to the cache unit at the corresponding position according to the data direction bit; when the data operation mode is to write data, the read-write circuit reads the target data in the target data register according to the compiled instruction and writes it into the target bank; when the data operation mode is a no operation, the read-write circuit does not execute, and selects the path between the data selector and the data register to transfer data horizontally.

[0022] Specifically, the buffer, data selector, and data register in each row of buffer units share a power supply network, and the instruction registers in all buffer units share a power supply network, and the power supply networks are connected and controlled by a controller.

[0023] Specifically, when a buffer unit in the buffer array is damaged, the power switch of the row where the damaged buffer unit is located is turned off, and the N-column instruction stream skips the damaged row and continues to execute normally.

[0024] The beneficial effects brought about by the technical solution provided in the embodiments of the present application include at least the following: the present application uses an SRAM-based array unit, refers to the composition of a systolic array, adopts pipeline storage instead of a traditional bus design, and adopts multiple instruction slots to control the reading, writing and transmission of data, thereby realizing a globally unified management and access buffer architecture that is independent of the design scale. Compared with traditional buffer designs, the present application has great innovations and efficiency improvements in front-end design, data control and flow, algorithm support efficiency, and back-end physical implementation difficulty. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 It is a design diagram of the Zhonghe buffer architecture in the related art;

[0026] Figure 2 It is a buffer control architecture for pulse array design in related technology;

[0027] Figure 3 It is the top-level design diagram of the fusion buffer architecture based on the array structure;

[0028] Figure 4 is a schematic diagram of the structure of the fusion buffer architecture provided in an embodiment of the present application;

[0029] Figure 5 This is a detailed diagram of the fusion buffer architecture;

[0030] Figure 6 A schematic diagram showing the structure of a cache unit in a buffer block is shown;

[0031] Figure 7 A schematic diagram showing the internal connection between the buffer array and two adjacent cache units is shown;

[0032] Figure 8 It is a design diagram of the instruction module and the buffer array;

[0033] Fig. 9 is a schematic diagram of a possible shielding lateral buffer block;

[0034] Fig.10 is a schematic diagram of another shielding longitudinal cache unit;

[0035] Fig.11 It is a schematic diagram of the structure applied to the streaming tensor processor. DETAILED DESCRIPTION

[0036] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0037] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0038] Figure 1This is a design diagram of a multi-core buffer architecture in the related art. Taking the four-level buffer as an example, the multi-core CPU is designed with several cores and a system-level L4 buffer. For a single CPU core, it is divided into a four-core micro-architecture, including four cores and an SRAM L3 buffer. For another core, it is divided into an ultra-micro architecture, including an SRAM L1 buffer, an SRAM L2 buffer, a logical computing unit ALU, and a register stack. Each CPU core of the above structure has a local buffer setting, and they are controlled independently of each other. The four-level buffer of the layered storage architecture is nested layer by layer and controlled independently of each other. With this newly designed chip, the same batch of data may exist in buffers at different levels, such as data broadcasting and data exchange scenarios, which reduces storage utilization. The communication protocols between buffers at different levels are complex, and different communication paths will cause the delay to be uncertain. For different layers of buffer design, compilers under different tasks need to make various optimizations to reduce communication costs and improve computing efficiency.

[0039] Figure 2 It is the buffer control architecture of pulse array design in related technologies. The traditional pulse array structure requires three buffers to be set in three directions of the computing array (core), such as Figure 3 The input buffers A and B, and the output buffer C are connected to each other and to the central computing core (array). The input and output buffers are independently controlled and have independent read and write control circuits to achieve data transmission between each other. The data of this architecture needs to be exchanged or transmitted back and forth between the three buffers, which increases the control complexity and transmission delay, thereby reducing the computing efficiency.

[0040] Figure 3 A fused buffer architecture based on an array structure is designed based on the above-mentioned design problems or defects. Its top-level design makes the computing array core and the buffer module completely independent. The data reading and writing buffers of the computing array core are all realized through independent buffer modules. The buffer module integrates all buffer layers into the same architectural level to achieve the effect of globally visible and controllable non-layered buffering, with the aim of improving the reading, writing and storage efficiency.

[0041] Figure 4 is a schematic diagram of a fusion buffer architecture based on an array structure provided in an embodiment of the present application, that is, Figure 3The expanded explanation of the buffer module in the fusion buffer architecture includes a buffer array and an instruction module connected to the buffer array through a signal line. The instruction module caches the instruction data compiled to complete a specific task. During operation, the instruction module sends the instruction stream to the buffer array according to the set timing. The buffer array contains M rows of buffer blocks with the same structure, and the buffer blocks in adjacent rows are cascaded in sequence through unidirectional instruction signal lines, which are used to pass the instruction stream sent by the instruction module to the M rows of buffer blocks row by row according to the timing. For example Figure 4 The instruction stream in is transmitted in order from top to bottom. In addition, the data between the M rows of buffer blocks are isolated from each other, that is, the data does not generate inter-block transmission. Each buffer block is provided with a data input terminal and a data output terminal, which are respectively used to receive external data input and perform cache and output tasks according to the instructions transmitted to this row. Because the M rows of buffer blocks are exactly the same and are connected in series through signal lines, for a string of instruction streams, the M rows of buffer blocks will execute the instructions in sequence. There is only a timing difference between different buffer blocks, and the timing difference between adjacent buffer blocks is the same. The instruction stream flows through all buffer blocks in sequence according to the timing difference, that is, each instruction will flow through all buffer blocks in sequence, so the entire timing is completely predictable and controllable. For example, the instruction stream is represented as {instruction A, instruction B, instruction C and instruction D}. After being transmitted to the buffer array, in the first clock cycle, the M1 buffer block first executes instruction A. In the second clock cycle, the M1 buffer block executes instruction B, and instruction A at this time flows to the M2 buffer block for execution. In the third clock cycle, instruction A flows to the M3 buffer block for execution, instruction B flows to the M2 buffer block for execution, and instruction C flows to the M1 buffer block for execution. For the upper chip control program, as long as the timing and instruction flow are planned well, the instruction execution status of all buffer arrays can be determined, and in a complete execution cycle, all buffer blocks execute the tasks of the same set of instruction flows, that is, the execution tasks are exactly the same.

[0042] Based on the above design, in some embodiments, multiple parallel buffer modules may be provided to execute different tasks in parallel, and a switch circuit or a routing device may be used for data interaction between multiple tasks.

[0043] Figure 5This is a detailed diagram of the fusion buffer architecture. For a buffer block, it can be further subdivided and designed into N buffer units with the same structure, that is, M rows of buffer blocks form an M*N array of buffer arrays. For each row of N cache units, adjacent buffer blocks are cascaded in sequence through data lines, and the data line transmission adopts a bidirectional structure, so that the data between adjacent buffer blocks can be transferred horizontally to the left and right, and the entire row forms a chain of bidirectional buffer blocks. Data input and output terminals are respectively set at both ends of the chain structure to realize diversified data buffer transmission. In some embodiments, instruction stream transmission between buffer blocks can be implemented using instruction registers, and horizontal data transmission can be implemented using data registers, that is, data registers are set between each adjacent buffer or cache core SRAM, and horizontal data transmission is realized through data registers.

[0044] Figure 6 The schematic diagram of the structure of the cache unit in the buffer block is shown. In some embodiments, the cache unit may include a buffer, a first data selector, a second data selector and a first data register. This embodiment is described by taking two adjacent cache units in the same row as an example. One data input end of the first data selector MUX1 in the first cache unit is connected to the buffer, and the other data input end is connected to the second data register in another adjacent buffer unit; the data output end of MUX1 is connected to the first data register of the cache unit, and MUX1 is used to select the buffer output or the second register to output data to the first data register.

[0045] Correspondingly, one data input terminal of the second data selector MUX2 in the first cache unit is connected to the buffer, the other data input terminal is connected to the first data register, and the data output terminal of MUX2 is connected to the second data register of another adjacent buffer block; MUX2 is used to select the buffer output or the first register output data to the adjacent buffer unit.

[0046] In the above structure, the function of the data register is to exchange data between adjacent storage / cache units. The exchange direction is bidirectional, and there are multiple paths in each direction. That is, the cache units in the same row use two data registers and a data selector to achieve horizontal data transmission, while the buffer units in the same column vertically need the coordination of the instruction register to achieve controllable instruction operations. In the cache units in the same column, the instruction registers in adjacent rows are cascaded with each other through signal lines to store and transfer instructions, such as Figure 5 For an M*N array structure, the instruction registers of N columns need to be connected in series to implement instruction pipeline. Of course, in some embodiments, the instruction pipeline can also select a bottom-up transmission mode according to actual design needs, and the specific instruction flow is not limited in this application.

[0047] Figure 7The internal connection diagram of the buffer array and two adjacent cache units is shown. In order to achieve large-capacity storage, the buffer can be further designed to include n SRAM banks and read-write circuits. The instruction register is connected to the read-write circuit, and one instruction is stored and sent in each cycle. The read-write circuit performs the corresponding read-write tasks according to the instruction information. When the read-write circuit executes a write instruction, it receives external target data and writes the target data to the specified location of the target bank; when the read-write circuit executes a read instruction, it obtains the target data from the target bank according to the instruction and sends it to the outside. The external read and write mentioned here means reading or writing data from adjacent buffers. The specific number and size of SRAM banks in each buffer can be freely configured.

[0048] The focus of this design is to simplify circuit design, reduce compilation complexity and improve data cache and read-write efficiency. The M*N cache array simplifies the complex structure of multi-layer cache; in the same cache unit, the buffer units of adjacent columns transfer data horizontally through data registers; in the same column cache unit, the buffer units of adjacent rows transfer instructions vertically through cascaded instruction registers; the vertical instruction flow and horizontal data flow can improve data cache and read-write efficiency. Based on the above structure and design principles, the compilation instructions and instruction modules can also be designed and optimized.

[0049] Figure 8The invention is a design schematic diagram of an instruction module and a buffer array. Based on an M*N buffer array, the instruction module includes N instruction slots, and the N instruction slots are connected to N columns of buffer units through signal lines, and each column of instruction slots includes S cascade-depth FIFO memories for storing S compiled instructions. The FIFO memories send instructions to the corresponding columns of the buffer array of the columns one by one according to the timing sequence, and transmit them according to the direction of the instruction flow. For the compiled instructions, in a possible implementation, it can be designed to include an instruction code including a mode control bit, a data direction bit, a channel selection bit, and a bank selection bit, such as setting the 0th to 4th bits as bit offset bits, setting the 5th to 14th bits as row selection bits, setting the 15th to 18th bits as bank selection bits, setting the 19th to 22nd bits as data format bits, setting the 23rd to 25th bits as register channel selection bits, setting the 26th bit as direction transmission bits, and setting the highest 27th to 28th bits as mode control bits. All valid instructions in the FIFO are designed in this format and transmitted outward in the form of instruction stream according to the clock cycle or timing, such as sending an instruction every other clock cycle to achieve pipeline execution. The mode control bit is used to control the target cache unit to execute the data operation mode, including read operation mode, write operation mode and no operation mode; the data direction bit is used to control the data transmission direction of the target cache unit, including left transmission and right transmission; the channel selection bit is used to control the selection state of the data selector in the target cache unit; the bank selection bit is used to select the target bank in the buffer; the row selection bit is used to indicate the read and write row of the target bank; the bit offset bit is used to indicate the data input source / data output destination. Figure 8 The buffer shown in the figure is composed of 4 banks, and the capacity of each bank is 128KB. The rows and columns of the array are configured according to the overall requirements of the processor. Instructions are transmitted unidirectionally through the instruction register of each buffer unit, and data flows bidirectionally between buffers in the same row through the data register. Instructions are composed of multiple instruction slots, and one instruction slot controls a column of buffers. The cache units in the same column of the instruction slots execute the same compiled instructions in sequence according to the order of the instruction stream. When the data operation mode is to read data, the read-write circuit reads the target data from the target bank according to the compiled instruction, selects the data output according to the channel selection bit, and sends the target data to the cache unit at the corresponding position according to the data direction bit; when the data operation mode is to write data, the read-write circuit reads the target data in the target data register according to the compiled instruction and writes it to the corresponding row of the target bank; when the data operation mode is a null operation, the read-write circuit does not perform any read-write operation, and selects the path between the data selector and the data register to transfer data horizontally.

[0050] by Figure 6For example, assuming that when the write operation mode is executed, the data is transferred from right to left, the instruction register sends the compiled instruction to the read-write circuit, and then the read-write circuit extracts the corresponding data from the first data register and writes it to the target bank in the sram. Assuming that the read operation mode is executed, the data is transferred from right to left, the instruction register sends the compiled instruction to the read-write circuit, and then the read-write circuit reads the target data from the target bank in the sram, and then the first data port of MUX2 is selected to send the data in the target bank to the second data register. Assuming that when the no operation mode is executed, the data is transferred from right to left, the read-write circuit does not perform the read-write operation, and directly selects the second data port of MUX2, and the data in the first data register is directly sent to the second data register through MUX2. The data transfer to the left is similar and will not be repeated here.

[0051] like Fig. 9 As shown, in some cases, a large-capacity buffer will affect the production yield of the chip, so we can increase the production yield by adding one or more redundant rows. Under a certain design, a 16-row storage array needs to be configured to meet the storage requirements. We can copy one more copy to increase to 17 rows during physical design. During testing, we only need to screen out the buffer array chip with 16 rows of complete design. The test results of any row can be ignored, that is, it is not necessary for the entire buffer array to pass the test, which can improve the final yield. Similarly, if 32 rows need to be configured to meet the storage requirements under a certain design, we can copy 2 more copies to increase to 34 rows during physical design, so the test results of any 2 rows can be ignored, thereby improving the final yield. For this redundant design, in some embodiments, when any buffer in the M*N array is damaged or the data register is damaged, the timing logic of the entire row buffer block will be destroyed, thereby affecting the data operation of the chip. To this end, the present application uses a power supply network for the buffer, data selector, and data register in each row of buffer units, and instead uses a power supply network for the instruction registers in all buffer units, and the power supply network is connected and controlled by a controller. When a buffer unit in the buffer array is damaged, the power switch of the row where the damaged buffer unit is located is turned off, that is, the power supply of the buffer block in the row is turned off, and the corresponding FIFOs in the corresponding N instruction slots need to be filled with NOP instructions. When the instruction register is powered normally, the N-column instruction stream will skip the damaged row and continue to execute normally, realizing directional shielding of the buffer block, thereby improving the yield.

[0052] like Fig.10As shown, in other cases, if we need to control the cost of the chip, we can shield a certain storage cell column to improve the production yield instead of adding redundant rows. For example, under a certain design, a 4-column buffer array is required to meet the storage requirements. After the chip production test, it is found that one or more SRAMs of the storage blocks on a certain column are defective and cannot be used. In this case, the entire storage cell column can be shielded, and the chip can be used as a chip with a smaller capacity of only 3 columns in terms of function, and the overall function is not affected. Furthermore, the same method can be used to shield 2 or even 3 columns of storage blocks to further improve the overall yield of the chip. In this design mode, N columns of cache units are powered by the power supply network respectively, and all instruction registers still use the centralized power supply mode. In this mode, for the column where the damaged cache unit is located, the corresponding instruction slots are all written with NOP instructions, and directional shielding is achieved without affecting the horizontal data transmission.

[0053] Based on the fusion buffer architecture of the above array structure, the present application can also be applied to streaming tensor processors, such as Fig.11 As shown, the compiled instructions / compiled programs can be stored in the external memory. The tensor processor is divided into a matrix calculation module, a data exchange module, a data cache module, a vector calculation module and a matrix calculation module, as shown in FIG. Fig.11 The intermediate vector calculation module is set to the middle two sides with a symmetrical structure design. Each functional module contains a corresponding instruction module, and the data exchange module is responsible for data input and output and data interaction between functional blocks. Such a design actually has only half the compilation workload, which can connect all functional modules and improve processing performance.

[0054] In summary, in the fusion array architecture designed by the present application, all caches are not layered, and no matter how large the scale is, there is no need to divide them into different levels, such as L1 / L2 / L3 levels; all input and output buffers are integrated together, and there is no need to design a separate control circuit for the cache; all caches are uniformly controlled and dynamically allocated, and there is no need to exchange data between different buffers; pipeline transmission is adopted, and no bus design or control is required, which improves the operating frequency and communication efficiency; an array structure based on storage cells is adopted, and the circuit design of each storage cell is completely consistent, which reduces the difficulty of circuit design; there is no complex communication overhead and the timing is completely predictable, which improves programming efficiency and reduces compiler difficulty; the capacity of each cache can be increased or reduced arbitrarily, and the data flow timing or delay changes linearly with the capacity; the overall capacity of the buffer can be scaled through simple configuration, and the control or programming method does not change, saving manpower and improving efficiency.

[0055] The preferred embodiments of the present invention are described above; it should be understood that the present invention is not limited to the above-mentioned specific embodiments, and the devices and structures not described in detail should be understood to be implemented in a common manner in the art; any technician familiar with the art can make many possible changes and modifications without departing from the technical solution of the present invention, or modify them into equivalent embodiments with equivalent changes, which does not affect the essential content of the present invention; therefore, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention are still within the scope of protection of the technical solution of the present invention.

Claims

1. A fusion buffer architecture based on an array structure, characterized in that: It includes a buffer array and an instruction module connected to the buffer array through a signal line; the instruction module caches compiled instruction data and sends an instruction stream to the buffer array according to a timing sequence; The buffer array comprises M rows of buffer blocks with the same structure, and the buffer blocks in adjacent rows are sequentially cascaded through unidirectional instruction signal lines, and the instruction stream sent by the instruction module is transmitted to the M rows of buffer blocks row by row according to the timing; the buffer blocks in adjacent rows are spaced by the same timing difference, and the same instruction flows through all the buffer blocks in sequence, and all the buffer blocks execute the tasks of the same set of instruction streams; The M row buffer blocks are respectively provided with a data input terminal and a data output terminal, respectively receiving external data input, and executing cache and output tasks according to the instruction data transmitted to the row.

2. The fusion buffer architecture based on array structure according to claim 1, characterized in that: The buffer block includes N cache units with the same structure, and M rows of buffer blocks form an M*N array buffer array; the N cache units in each row are cascaded in sequence through data lines to transfer data between adjacent buffer blocks left and right.

3. The fusion buffer architecture based on array structure according to claim 2, characterized in that: The cache unit includes a buffer, a first data selector, a second data selector and a first data register; One data input terminal of the first data selector is connected to the buffer, the other data input terminal is connected to the second data register in the adjacent buffer unit, the data output terminal is connected to the first data register, and the buffer output or the second register is selected to output data to the first data register; One data input terminal of the second data selector is connected to the buffer, the other data input terminal is connected to the first data register, and the data output terminal is connected to the second data register of the adjacent buffer block, and the buffer output or the first register output data is selected to the adjacent buffer unit.

4. The fusion buffer architecture based on array structure according to claim 3, characterized in that: The cache unit also includes an instruction register. In the cache units in the same column, the instruction registers in adjacent rows are cascaded to each other through signal lines to store and transfer instructions. The buffer also includes n SRAM banks and a read-write circuit. The instruction register is connected to the read-write circuit, and the instruction information is read according to the timing. The read-write circuit performs the read-write task according to the instruction information. When the read-write circuit executes the write instruction, it receives external target data and writes the target data into the specified position of the target bank. When the read-write circuit executes the read instruction, it obtains the target data from the target bank according to the instruction and sends it to the outside.

5. The fusion buffer architecture based on array structure according to claim 3, characterized in that: In the same-row cache unit, buffer units in adjacent columns transfer data horizontally through data registers; in the same-row cache unit, buffer units in adjacent rows transfer instructions vertically through cascaded instruction registers.

6. The array-structure-based fusion buffer architecture according to claim 5, characterized in that: The instruction register in the cache unit is connected to the selection end of the first data selector and the second data selector respectively, generates a selection signal according to the target instruction under the current timing, and controls the selection output of the data selector based on the selection signal.

7. The array-structure-based fusion buffer architecture according to claim 4, characterized in that: The instruction module includes N instruction slots, each column of instruction slots includes S cascade-depth FIFO memories for storing S compiled instructions. The FIFO memories send instructions to the corresponding columns of the buffer array one by one according to the timing, and transmit them according to the instruction flow direction.

8. The array-structure-based fusion buffer architecture according to claim 7, characterized in that: The compilation instructions include mode control bits, data direction bits, channel selection bits, and bank selection bits; The mode control bit is used to control the target cache unit to execute a data operation mode; The data direction bit is used to control the target cache unit to execute the data transmission direction; The channel selection bit is used to control the gating state of the data selector in the target cache unit; The bank select bit is used to select a target bank in the buffer.

9. The array-structure-based fusion buffer architecture according to claim 8, characterized in that: The cache units in the same column as the instruction slot execute the same compiled instructions in sequence according to the order of the instruction stream; when the data operation mode is to read data, the read-write circuit reads the target data from the target bank according to the compiled instruction, selects the data output according to the channel selection bit, and sends the target data to the cache unit at the corresponding position according to the data direction bit; when the data operation mode is to write data, the read-write circuit reads the target data in the target data register according to the compiled instruction and writes it into the target bank; when the data operation mode is a no operation, the read-write circuit does not execute, and selects the path between the data selector and the data register to transfer data horizontally.

10. The array-structure-based fusion buffer architecture according to claim 4, characterized in that: The buffer, data selector and data register in each row of buffer units share a power supply network, and the instruction registers in all buffer units share a power supply network, and the power supply networks are connected and controlled by a controller.

11. The fusion buffer architecture based on array structure according to claim 10, characterized in that: When a buffer unit in the buffer array is damaged, the power switch of the row where the damaged buffer unit is located is turned off, and the N-column instruction stream skips the damaged row and continues to execute normally.