High-concurrency storage array supporting multiple data bit widths

By adding read and write mode configuration word signals and read and write logic control modules to each bank of the storage array, the read and write mapping logic is redefined, which solves the problem of low read and write efficiency of multiple data bit widths in the existing technology, and achieves Efficient and accurate data processing.

CN118733485APending Publication Date: 2024-10-01JIANGSU HUACHUANG MICROSYSTEM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410832812.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-06-05
Filing Date
2024-06-26
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing storage arrays cannot effectively support highly concurrent pipelined reading and writing of multiple data bit widths, resulting in low processing efficiency and read and write conflicts.

Method used

The read and write mode configuration word signal is added to each bank, and combined with the read and write logic control module, the read and write mapping logic is redefined to support pipeline read and write operations of multiple data bit widths, and the processing capability is improved through the parallel connection of SRAM modules.

Benefits of technology

It achieves efficient and accurate read and write operations for a variety of data bit widths, reduces the probability of read and write conflicts, and significantly improves processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733485A_ABST
    Figure CN118733485A_ABST
Patent Text Reader

Abstract

The invention discloses a high-concurrency storage array supporting various data bit widths, a plurality of identical banks are adopted, and an SRAM (Static Random Access Memory) module, a read control logic module and a write control logic module are arranged in any bank; the SRAM module is formed by splicing four SRAMs, the read control logic module is used for controlling the bank to receive signals related to read operation or is used for sending read data signals to the outside of the bank, and the signals related to the read operation comprise read mode configuration word signals, read-write signals and read address signals; the write control logic module is used for controlling the bank to receive signals related to write operation or receive write-in data signals, and the signals related to the write operation comprise write mode configuration word signals, read-write signals and write address signals; and when the chip selection signal is valid, performing a read operation according to the read mapping logic or performing a write operation according to the write mapping logic. According to the method, a read-write mode configuration word signal is added during read-write operation of the bank, meanwhile, read-write mapping logic is customized, and efficient pipeline read-write of various data bit widths is effectively supported.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of storage technology, and in particular to a high-concurrency storage array supporting multiple data bit widths. Background Art

[0002] HC3020 is a high-performance intelligent processor independently developed in China. The processor adopts a heterogeneous processing architecture that combines general-purpose cores with dedicated cores. Among them, the general-purpose core is an embedded CPU core, which is mainly used for full-chip management, scheduling and discrete operations with small computational load; the dedicated core is an algorithm acceleration core, namely the SPU core, which is the main processing core of the chip to achieve highly parallel hardware accelerated processing of high-density signal processing algorithms and complex artificial intelligence algorithms. HC3020 also includes functional components and interfaces such as AXI bus, general-purpose DMA, on-chip storage, DDR4, PCIe, SRIO, Ethernet, etc. to meet the processor's needs for data storage and transmission when performing high-throughput operations.

[0003] The SPU core has the characteristics of high parallelism, high computing power and high efficiency. It integrates many computing components internally to achieve hardware acceleration of complex algorithms. In order to ensure the computing performance of the SPU core, the processor integrates a high-concurrency large-capacity storage array to meet the needs of the internal computing components of the SPU core and the cache bandwidth of the computing results.

[0004] The typical application scenario of HC3020 is real-time image intelligent recognition and processing, which mainly includes imaging algorithm and recognition algorithm. The imaging algorithm is a signal processing algorithm such as FFT, vector operation, matrix operation, interpolation operation, etc. The recognition algorithm is an artificial intelligence algorithm, which adopts a multi-layer convolutional neural network, including convolution, pooling, full connection and SOFTMAX layers.

[0005] The sensor samples the raw data required for real-time processing through A / D. After the data is stored in the processor's external DDR4 storage through the processor's PCIe or SRIO high-speed interface, the CPU core starts DMA to write the raw data into the storage array through the AXI bus for the SPU core to read. The raw data is in 16-bit integer (INT16) complex format, which includes real and imaginary parts, and the data width of a single raw data is 32 bits. The SPU core first converts the raw data through fixed-point floating-point conversion, and converts the real and imaginary parts into single-precision floating points (FP32) respectively, and then performs the imaging algorithm processing flow. During the imaging process, in order to ensure the imaging accuracy, the real and imaginary parts are processed in double-precision floating point (FP64) format during matrix operations, and the rest are in single-precision data format, and finally form 8-bit integer (INT8) real number format image data. The SPU core then performs the recognition algorithm processing flow on the image data. The convolution layer and the pooling layer are both processed in 16-bit integer format. To ensure recognition accuracy, the fully connected layer is processed in 32-bit integer format. Finally, after passing through the SOFTMAX layer, an 8-bit integer real number recognition result is formed. The CPU core starts DMA to read the recognition result out of the storage array through the AXI bus, and stores it in the processor's external DDR4 storage, and starts the processor's high-speed interface to send it to the display unit.

[0006] In the process of real-time image intelligent recognition, the imaging algorithm is a mixed precision processing in FP32 / FP64 complex format, and the recognition algorithm is a mixed precision processing in INT8 / INT16 / INT32 real format. In addition, due to the limited storage space inside the SPU core, the intermediate results of the algorithm process must be stored in the storage array. In order to meet the data supply and cache requirements of the high-computing SPU core, the storage array capacity needs to have a total capacity of no less than 2MB and 64 high-concurrency interfaces, support pipeline reading and writing, and support multiple data bit widths brought by mixed precision processing. The storage array needs to support 8 / 16 / 32 / 64 / 128 / 256 bit data reading and writing.

[0007] The storage array of the HC3020 processor consists of 64 bank storage banks. Each bank provides an independent 2-port interface with a depth of 1024 and a bit width of 256 bits, a total of 32KB of memory space, and needs to support 8 / 16 / 32 / 64 / 128 / 256 bit data read and write. However, the 2-port SRAM provided by the chip process manufacturer has a fixed data bit width when reading and writing data. SRAM is a static random access memory, which only provides byte masks and cannot directly read and write 8 / 16 / 32 / 64 / 128 / 256 bit data.

[0008] To address the above issues, the traditional technical approach is to adopt a method that supports the minimum 8-bit data read and write, using control logic to split write data with a width greater than 8 bits into multiple 8-bit data for writing, split read requests with a width greater than 8 bits into multiple 8-bit read requests, and splice multiple read data to make it compatible with the read and write of data with a width greater than 8 bits. However, this approach has at least the following problems: 1) The supported data bit width is too small. The maximum supported read and write operations is only 8 bits, and it is impossible to perform pipeline reading and writing of multiple data bit widths; 2) The data processing process is inefficient and may cause read-write conflicts. Summary of the invention

[0009] In view of the above two problems, the present invention aims to propose a high-concurrency storage array that supports multiple data bit widths, adds read-write mode configuration word signals in the bank, and combines the read logic control module and the write logic control module to support pipeline reading and writing of multiple data bit widths; in addition, the read mapping logic and the write mapping logic are redefined, which can perform read and write operations efficiently and accurately, reduce the probability of read-write conflicts, and effectively improve processing efficiency. This is achieved through the following technical solutions: A high-concurrency storage array supporting multiple data bit widths adopts multiple identical banks. In any bank: an SRAM module, a read control logic module and a write control logic module are built-in; the SRAM module is composed of four SRAMs spliced ​​together, the first end of the SRAM module exchanges data with the read control logic module through multiple groups of 2-port read-write interfaces, and the second end of the SRAM module exchanges data with the write control logic module through multiple groups of 2-port read-write interfaces; the read control logic module is used to control the bank to receive signals related to read operations or to send read data signals to the outside of the bank, the signals related to read operations include read mode configuration word signals, read-write signals and read address signals, the read mode configuration word signals are used to indicate the data bit width of the read operation, the read-write signals are used to indicate a read operation or a write operation, and the read address signals are used to indicate a read address; the write control logic module is used to control the bank to receive signals related to write operations or to receive write data signals, the signals related to write operations include write mode configuration word signals, read-write signals and write address signals, the write mode configuration word signals are used to indicate a write operation The data bit width of the operation, the write address signal is used to indicate the write address; when the bank receives an external chip select signal that is valid, the SRAM module combines with the read control logic module to perform a read operation according to the read mapping logic, or the SRAM module combines with the write control logic module to perform a write operation according to the write mapping logic; wherein the read mapping logic includes: controlling the SRAM module to send an RE read enable signal according to the value of the read address signal [4:3], and after the SRAM module receives the RE read enable signal, obtaining the read address from the read address signal, and at the same time, the read control logic module obtains the read data corresponding to the read address in the SRAM module according to the read mode configuration word signal and the read address signal [4:0] value, and then outputs the read data as the read data signal to the outside; the write mapping logic includes: controlling the SRAM module to send a write enable signal according to the value of the write address signal [4:3], and after receiving the write enable signal, the write control logic module obtains the write address from the write address signal, and at the same time, according to the write mode configuration word signal and the value of the lower 3 bits of the write address signal, obtains the write data required by the SRAM module from the write data signal, and then writes the write data to the write address.

[0010] Through the read-write control logic module and the read-write mode configuration word signal, the data bit width can be analyzed in real time. Combined with the spliced ​​SRAM module, it can effectively support pipeline reading and writing of various data bit widths. At the same time, the read-write mapping logic is customized to perform read and write operations efficiently and accurately, effectively improving processing efficiency.

[0011] Preferably, in any bank, the four SRAMs in the SRAM module are spliced ​​by stacking connection or parallel connection. The four SRAMs are spliced ​​so that the SRAM module can support read and write operations at the same time and improve the data bit width supported for processing.

[0012] Preferably, in any bank, the SRAM module, the read control logic module and the write control logic module use the same clock signal, and both the write control logic module and the read control logic module use sequential logic design. Using the same clock signal and both modules using sequential logic design can effectively perform synchronous operations and improve data transmission efficiency.

[0013] Preferably, the write control logic module supports pipeline writing, and the read control logic module supports pipeline reading. Pipeline writing and pipeline reading can make the read and write operations more efficient.

[0014] Preferably, the operation method of any bank during the read operation includes the following steps: S1, the read control logic module receives the chip select signal and the read / write signal outside the bank, and performs the read operation according to the indication content of the read / write signal when the chip select signal is valid; S2, the read control logic module in step S1 receives the read mode word signal and the read address signal, obtains the data bit width of the data corresponding to the read operation from the read mode word signal, and obtains the read address of the data corresponding to the read operation from the read address signal, and the read address is in the form of a byte address; S3, the read control logic module controls the SRAM module to send the RE read enable signal according to the read address in step S2, and at the same time, the SRAM module converts the form of the read address from the byte address to the word address; S4, the SRAM module reads data according to the read address converted into the word address form in step S3, and the read control logic module obtains the read data from the data read by the SRAM module according to the read address converted into the word address form and the data bit width in step S2, and outputs the read data as the read data signal to the outside of the bank. When performing the read operation, the corresponding signal is effectively used for transmission to ensure the accuracy and stability of the read operation.

[0015] Preferably, the operation method of any bank during the write operation includes the following steps: S1, the write control logic module receives the chip select signal and the read / write signal outside the bank, and performs the write operation according to the indication content of the read / write signal when the chip select signal is valid; S2, the write control logic module in step S1 receives the write mode configuration word signal, the write data signal and the write address signal, obtains the data bit width of the data corresponding to the write operation from the write mode word signal, obtains the write data from the write data signal, obtains the write address of the data corresponding to the write operation from the write address signal, and the write address is in the form of a byte address; S3, the write control logic module is used to control the SRAM module to send a write enable signal, and at the same time converts the form of the write address in step S2 from a byte address to a word address; and then, according to the write address in the form of a word address and the data bit width in step S2, the write control logic module is used to write the write data in step S2 into the SRAM module. When performing the write operation, the corresponding signal is effectively used for transmission to ensure the accuracy and stability of the write operation.

[0016] Preferably, each bank is connected in parallel, each bank has an independent data bus for independent read or write operations, and each bank shares an AXI bus. Multiple banks can achieve highly parallel read and write operations.

[0017] Compared with the prior art, the present invention has the following beneficial effects: The technical solution of the present invention adds a read-write mode configuration word signal in each bank, and combined with the read-write logic control module, it can support pipeline reading and writing of various data bit widths; at the same time, it also redefines the read mapping logic and write mapping logic, which can perform read and write operations efficiently and accurately, effectively improving processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 A schematic diagram of the structure of any bank in a high-concurrency storage array supporting multiple data bit widths; Figure 2 It is a flowchart of the operation method of any bank when performing a read operation; Figure 3 The flowchart is a method for operating any bank when performing a write operation. DETAILED DESCRIPTION

[0019] The technical solutions in the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings in the embodiments of the present invention. Example

[0020] like Figure 1As shown, it is a schematic diagram of the structure of any bank in a high-concurrency storage array that supports multiple data bit widths. Bank represents a storage library. Each bank has the same structure. Each bank contains a read control logic module, an SRAM module, and a write control logic module, which can realize high-concurrency read and write operations. Read and write operations include read operations and write operations. The read control logic module and the write control logic module can also be collectively referred to as read and write control logic modules.

[0021] The storage array is composed of 64 identical banks in parallel. The AXI bus is used in the storage array to transmit chip select signals, read data signals, write data line signals, and signals related to read and write operations. Each bank will set up a corresponding memory access interface to transmit these signals. The chip select signal is divided into two situations: valid and invalid. When one or more banks are required to perform read and write operations, the chip select signal received by the corresponding bank is valid, and then the corresponding bank will continue to perform read or write operations based on these signals transmitted by the bus; the bank that receives an invalid BEC chip select signal will not perform any operation. Each bank has an independent data bus for its own internal independent read and write operations. Each bank also shares the AXI bus to receive signals transmitted by the AXI bus in parallel.

[0022] The read data signal contains read data, which is the data read from the SRAM module during the read operation. The read data will be transmitted to other locations outside the bank where the data needs to be changed through the AXI bus. The write data line signal contains write data, which is the data sent to the bank by other modules outside the bank. The write data needs to be written to the SRAM module through a write operation. Signals related to read and write operations include signals related to read operations and signals related to write operations, wherein the signals related to read operations include read mode configuration word signals, read-write signals and read address signals, the read mode configuration word signals are used to indicate the data bit width of the read operation, the read address signals are used to indicate the read address, and the read-write signals are used to indicate a read operation or a write operation. When indicating a read operation, the read-write signals will include a read enable signal so that the SRAM module allows a read operation, and when indicating a write operation, the read-write signals will include a write enable signal so that the SRAM module performs a write operation; signals related to write operations include write mode configuration word signals, read-write signals, write address signals and mask signals, the write mode configuration word signals are used to indicate the data bit width of the write operation, the write address signals are used to indicate the write address, and the mask signal can be used to protect the write data, and can also be used to indicate the specific data part that needs to be updated in the process of writing the write data to the SRAM module, for example, the write data includes 3 bits of data, but under the instruction of the mask signal, only 2 bits of data actually need to be written.

[0023] In each bank, four SRAMs with 2-port interfaces are connected in parallel or in a stacked manner to form an SRAM module. The 2-port interface SRAM is a dual-port static random access memory with two independent read and write interfaces. One read and write port is responsible for supporting read operations only, and the other read and write port is responsible for supporting write operations only. Read operations and write operations can be performed simultaneously. The signals allowed to be transmitted by each SRAM read and write interface are shown in Table 1, which can be divided into CLK signals, SRAM write-related signals, and SRAM read-related signals; among them, the read and write signals have been converted into corresponding write enable signals or read enable signals. The CLK signal is a clock signal. The SRAM module, read control logic module, and write control logic module use the same clock signal to perform synchronous operations, avoiding operation conflicts and data errors caused by clock asynchrony. At the same time, it can also simplify the design. Designers do not need to set multiple clock signals for complex control. SRAM write-related signals include write enable signal, write address signal, write data signal and mask signal. When write enable is valid, SRAM stores the write data on the read-write interface into the corresponding write address position inside SRAM according to the mask signal. SRAM read-related signals include read enable signal, read address signal and read data signal. When read enable is valid, SRAM takes out the data at the corresponding read address position inside SRAM according to the read address signal of the read-write interface and puts it on the read-write interface of SRAM for transmission to the read control logic module. The BRDATA read output signal is transmitted. The read delay of SRAM is set to 1 clock cycle, that is, SRAM performs read operation according to the read address and puts the read data on the corresponding read-write interface for 1 clock cycle to wait for transmission. This reflects the read performance of SRAM.

[0024] Table 1: 2-port SRAM interface signals

[0025] In this embodiment, the signals that may be transmitted by any bank are shown in Table 2 below, mainly including CLK clock signal, chip select signal, read / write signal, write operation related signals and read operation related signals. The chip select signal indicates whether the current bank is selected. Only when the bank is selected can the read operation or write operation be performed according to the read / write signal. The signals related to the write operation include the write mode configuration word signal, the write address signal, the write data signal and the mask signal. The write mode configuration word in the write mode configuration word signal contains the data bit width information of the write operation. When performing a write operation, the write control logic module inside the bank can control the write-related signals of the SRAM according to the write mode configuration word and the write address in the write address signal, and store the write data in the write data signal into the position corresponding to the write address in the SRAM. Signals related to the read operation include a read mode configuration word signal, a read address signal, a read data signal, and a read data valid signal. The read mode configuration word in the read mode configuration word signal contains information about the data bit width of the read operation. When performing a read operation, the internal read control logic module of the bank controls the SRAM read-related signals according to the data bit width and the read address, and reads out the data in the spatial position in the SRAM corresponding to the read address by means of a truncation method or a splicing method. After obtaining the read data, it is placed on the bank's memory access interface for external transmission, and the bank read data valid signal is set to a valid value. In addition, after successfully obtaining the data to be read from the SRAM, a read data valid signal corresponding to the read data signal can also be transmitted while transmitting the read data signal, so that the bank can indicate to the outside that the read operation is successful.

[0026] It should be noted that the truncation method and the splicing method are commonly used methods for obtaining data when reading and writing data. The truncation method will partially discard the data corresponding to the read address in the SRAM and then transmit it; the splicing method is to internally splice the data corresponding to the read address in the SRAM, thereby modifying the data bit width to meet the output requirements of the bank.

[0027] Table 2: Signals that may be transmitted in any bank

[0028] In this embodiment, the read-write mapping relationship is customized using the read control logic module, SRAM module and write control logic module, including read mapping logic and write mapping logic. The write mapping logic is shown in Table 3 below, which mainly uses the SRAM module combined with the write control logic module to customize the write mapping logic for write operation. The write mapping logic includes: when the chip select signal is valid and the read / write signal indicates a write operation, the write control logic module determines the data bit width corresponding to the current write operation according to the write mode configuration word in the write mode configuration word signal, and collects the byte-form write address contained in the write address signal, and controls the corresponding SRAM in the SRAM module to send a write enable signal according to the write data signal [4:3] value, the write data signal [4:3] value represents the value of the 4th bit and the value of the 3rd bit in the write address signal, and then converts the byte-form write address into a word-form write address, and then transmits the write address to the corresponding SRAM through the read / write interface of the corresponding SRAM; while performing the above operations, the write control logic module will also intercept the write data required by the SRAM module from the write data signal according to the write mode configuration word signal and the value of the lower 3 bits of the write address signal, and perform the write operation in combination with the mask requirements in the mask signal.

[0029] Table 3: Write mapping relationship

[0030] The write control logic module uses a sequential logic design to facilitate synchronous operation with the clock signal, improve stability and predictability, and facilitate test verification. In addition, the write control logic module also supports pipeline writing, and can complete the bank write operation within two clock cycles. In cycle 0, the read / write signal is detected to indicate a write operation; in cycle 1, the write address, write data, write enable signal 9 and mask signal are transmitted; in cycle 2, the write operation is completed. The timing cycle used by the write control logic module is shown in Table 4: Table 4: Write operation timing cycle

[0031] Pipeline writing is a commonly used technology in write operations. It allows data to be written continuously and sequentially within multiple clock cycles, which can improve the throughput and efficiency of write operations.

[0032] The read mapping logic is shown in Table 5 below. The read mapping logic includes: controlling the SRAM module to send an RE read enable signal according to the value of the read address signal [4:3]. After the SRAM module receives the RE read enable signal, it obtains the read address from the read address signal. At the same time, the read control logic module obtains the read data corresponding to the read address in the SRAM module according to the read mode configuration word signal and the value of the read address signal [4:0], and then outputs the read data as a read data signal. Among them, the value of the read address signal [4:0] represents the values ​​corresponding to the 4th and 0th bits in the read address signal.

[0033] The read control logic module determines the data bit width of the current read operation according to the read mode configuration word signal, and collects the byte-form read address in the read address signal. According to the value of the read address signal [4:3], the corresponding SRAM in the SRAM module is controlled to send a read enable signal, and at the same time, the read address in the byte address form is converted into a read address in the word address form, and then sent to the read and write interface of the corresponding SRAM. After the SRAM completes data reading, the read control logic module truncates or splices the read data of the corresponding SRAM according to the read mode configuration word signal and the read address signal [4:0] value, and transmits it to the memory access interface of the bank as the read data signal, and transmits it outward to complete the bank read operation.

[0034] Table 5: Read mapping relationship

[0035] The read control logic module also uses sequential logic design to support pipeline reading. Pipeline reading is a common technique used in data operations, allowing data to be read from SRAM continuously and sequentially within multiple clock cycles, and then continue to be transmitted through the pipeline. After the bank receives a valid chip select signal, the read control logic module will also find that the read and write signals are valid and the read and write signals indicate a read operation. At this time, the bank can complete the read operation within three clock cycles. The specific timing cycle table is shown in Table 6: Table 6: Read operation timing cycle

[0036] like Figure 2As shown in FIG. 1 , it is a flow chart of the operation method of any bank when performing a read operation, comprising the following steps: S1, the read control logic module receives the chip select signal and the read / write signal outside the bank, and performs the read operation according to the indication content of the read / write signal when the chip select signal is valid; S2, the read control logic module in step S1 receives the read mode word signal and the read address signal, obtains the data bit width of the data corresponding to the read operation from the read mode word signal, and obtains the read address of the data corresponding to the read operation from the read address signal, and the read address is in the form of a byte address; S3, the read control logic module controls the SRAM module to send an RE read enable signal according to the read address in step S2, and at the same time, the SRAM module converts the form of the read address from the byte address to the word address; S4, the SRAM module reads data according to the read address converted into the word address form in step S3, and the read control logic module obtains the read data from the data read by the SRAM module according to the read address converted into the word address form and the data bit width in step S2, and outputs the read data as the read data signal to the outside of the bank.

[0037] like Figure 3 As shown in FIG. 1 , it is a flow chart of the operation method of any bank when performing a write operation, comprising the following steps: S1, the write control logic module receives the chip select signal and the read / write signal outside the bank, and performs the write operation according to the indication content of the read / write signal when the chip select signal is valid; S2, the write control logic module in step S1 receives the write mode configuration word signal, the write data signal, the write address signal and the mask signal, obtains the data bit width of the data corresponding to the write operation from the write mode word signal, obtains the write data from the write data signal, obtains the write address of the data corresponding to the write operation from the write address signal, the write address is in the form of a byte address, and the mask signal contains a mask, which is used to further determine the specific part of the write data that needs to be written into the SRAM module; S3, the write control logic module is used to control the SRAM module to send a write enable signal, and at the same time, the form of the write address in step S2 is converted from a byte address to a word address; and then, according to the write address in the form of a word address and the data bit width in step S2, the write control logic module is used to write the write data in step S2 into the SRAM module.

[0038] Specific application examples:

[0039] 64 parallel identical banks integrate a high-concurrency storage array, and each bank uses its own independent data bus for read and write operations. Each bank is equipped with a read control logic module, an SRAM module, and a write control logic module. The SRAM module is composed of SRAM_1024_64b_0, SRAM_1024_64b_1, SRAM_1024_64b_2, and SRAM_1024_64b_3 in parallel. Each SRAM has an independent read and write interface, with a data width of 64 bits, a depth of 1024, and a capacity of 8KB, making the capacity of a single bank 32KB, and the data width of the data that a single bank can process reaches 256 bits. The storage array is compatible with a variety of data widths, with a total capacity of 2MB, and has up to 64 sets of concurrent read and write ports to the outside, supporting pipeline read and write operations of a variety of data with a data width of no more than 256 bits. The interface signals of the storage array are shown in Table 8, where n is a non-negative integer not greater than 63. The signal name BCE_n represents the chip select signal of the nth bank, and the other signal names can be deduced similarly.

[0040] Table 7: Storage Array Interface Signals

[0041] The storage array integrates 64 isomorphic banks, which can perform 64 write operations in parallel. When a bank is selected and written, the write data width is first determined according to the BWMOD write mode input signal, and then the 14th to 5th bits of the bank write address signal, a total of 10 bits, are sent to the internal 4 SRAM write address interfaces. Referring to Table 3 "Write Mapping Relationship", according to the bank write mode and the 2nd to 0th bits of the write address signal, the write data interface signals and mask signal input values ​​of the 4 SRAMs in the bank are generated, and according to the 4th to 3rd bits of the bank write address signal, the write enable signals of the 4 SRAMs in the bank are generated to complete the bank write operation. The BANK write control logic adopts a sequential logic design, which can complete the BANK write operation within two clock cycles and supports pipeline writing.

[0042] At this time, taking bank_0 as an example, when the clock cycle of the clock signal is 0, the storage array BCE_0 input is 1, and the BWREN_0 input is 10, and the BWMOD_0 input is 010, bank_0 receives and stores 32-bit wide data. When the clock cycle of the clock signal is 1, the 14th to 5th bits of the bank_0 write address signal are taken and sent to the internal 4 SRAM write address interfaces; when the 2nd to 0th bits of the bank_0 write address are 000, the 31st to 0th bits of the bank_0 write data are taken and sent to the 31st to 0th bits of the 4 SRAM write data interfaces, and the 31st to 0th bits of the 4 SRAM mask signals are valid values. When the 2nd to 0th bits of the bank_0 write address are 100, the 31st to 0th bits of the bank_0 write data are taken and sent to the 4 SRAM The 63rd to 32nd bits of the write data interface are set, and the 63rd to 32nd bits of the 4 SRAM mask signals are set to valid values; when the 4th to 3rd bits of the bank_0 write address are 00, the write enable signal of SRAM_0 is set to valid, when the 4th to 3rd bits of the bank_0 write address are 01, the write enable signal of SRAM_1 is set to valid, when the 4th to 3rd bits of the bank_0 write address are 10, the write enable signal of SRAM_2 is set to valid, and when the 4th to 3rd bits of the bank_0 write address are 11, the write enable signal of SRAM_3 is set to valid. When the clock cycle of the clock signal is 2, the SRAM module enabled inside bank_0 writes the corresponding actual data to be written to the physical location indicated by the write address according to the corresponding write address, completing a single write operation of 32-bit data.

[0043] The storage array integrates 64 isomorphic banks, which can perform 64 read operations in parallel. When a bank is selected and read, the read data width is first determined according to the BRMOD read mode input signal, and then the 14th to 5th bits of the bank read address signal, a total of 10 bits, are sent to the internal 4 SRAM read address interfaces. Referring to Table 5 "Read Mapping Relationship", according to the 4th to 3rd bits of the bank read address signal, the read enable signal of the 4 SRAMs inside the bank is generated, and according to the 4th to 0th bits of the bank read address signal, the corresponding SRAM read data selection is output to the bank read data signal interface to complete the bank write operation. The BANK read control logic adopts a sequential logic design, which can complete the BANK read operation within three clock cycles and support pipeline reading.

[0044] At this time, taking bank_0 as an example, when the clock cycle of the clock signal is 0, the storage array BCE_0 input is 1, and the BWREN_0 input is 01, and the BRMOD_0 input is 001, bank_0 reads data in a 16-bit width manner. When the clock cycle of the clock signal is 1, the 14th to 5th bits of the bank_0 read address signal, a total of 10 bits, are sent to the internal 4 SRAM read address interfaces; when the 4th to 3rd bits of the bank_0 read address are 00, the read enable signal of SRAM_0 is set valid, when the 4th to 3rd bits of the bank_0 read address are 01, the read enable signal of SRAM_1 is set valid, when the 4th to 3rd bits of the bank_0 read address are 10, the read enable signal of SRAM_2 is set valid, and when the 4th to 3rd bits of the bank_0 read address are 11, the read enable signal of SRAM_3 is set valid. When the clock cycle of the clock signal is 2, the SRAM module enabled inside bank_0 outputs the corresponding read data to the read data interface of the SRAM according to the read address. When the clock cycle of the clock signal is 3, when the 4th to 3rd bits of the bank_0 read address are 00, the read data of SRAM_0 is selected, when the 4th to 3rd bits of the bank_0 read address are 01, the read data of SRAM_1 is selected, when the 4th to 3rd bits of the bank_0 read address are 10, the read data of SRAM_2 is selected, when the 4th to 3rd bits of the bank_0 read address are 11, the read data of SRAM_3 is selected; when the 2nd to 0th bits of the bank_0 read address are 000, the 15th to 0th bits of the selected SRAM read data are output to the 15th to 0th bits of the bank read data signal interface. When the 2nd to 0th bits of the bank_0 read address are 010, the 31st to 16th bits of the selected SRAM read data are output to the 15th to 0th bits of the bank read data signal interface; when the 2nd to 0th bits of the bank_0 read address are 100, the 47th to 32nd bits of the selected SRAM read data are output to the 15th to 0th bits of the bank read data signal interface; when the 2nd to 0th bits of the bank_0 read address are 110, the 63rd to 48th bits of the selected SRAM read data are output to the 15th to 0th bits of the bank read data signal interface, completing a single read operation of 16-bit data.

[0045] In summary, the present invention adds a read-write mode configuration word signal in each bank, and combined with the read-write logic control module, it can support pipeline read-write banks with various data bit widths; at the same time, it also redefines the read mapping logic and write mapping logic, which can perform read and write operations efficiently and accurately, effectively improve processing efficiency, and has significant progress.

[0046] The above embodiments are only for illustrating the technical idea of ​​the present invention, and cannot be used to limit the protection scope of the present invention. Any changes made on the basis of the technical solution in accordance with the technical idea proposed by the present invention shall fall within the protection scope of the present invention.

Claims

1. A high-concurrency storage array supporting multiple data bit widths, using multiple identical banks, characterized in that: In any bank: there are built-in SRAM modules, read control logic modules and write control logic modules; The SRAM module is composed of four SRAMs spliced ​​together. The first end of the SRAM module exchanges data with the read control logic module through multiple groups of 2-port read-write interfaces, and the second end of the SRAM module exchanges data with the write control logic module through multiple groups of 2-port read-write interfaces; the read control logic module is used to control the bank to receive signals related to the read operation or to send read data signals to the outside of the bank. The signals related to the read operation include a read mode configuration word signal, a read-write signal, and a read address signal. The read mode configuration word signal is used to indicate the data bit width of the read operation. The read-write signal is used to indicate a read operation or a write operation, and the read address signal is used to indicate a read address; the write control logic module is used to control the bank to receive signals related to the write operation or to receive a write data signal. The signals related to the write operation include a write mode configuration word signal, a read-write signal, and a write address signal. The write mode configuration word signal is used to indicate the data bit width of the write operation, and the write address signal is used to indicate a write address; When the bank receives a valid external chip select signal, the SRAM module combines with the read control logic module to perform a read operation according to the read mapping logic, or the SRAM module combines with the write control logic module to perform a write operation according to the write mapping logic; The read mapping logic includes: controlling the SRAM module to send an RE read enable signal according to the value of the read address signal [4:3], obtaining the read address from the read address signal after the SRAM module receives the RE read enable signal, and at the same time, the read control logic module obtains the read data corresponding to the read address in the SRAM module according to the read mode configuration word signal and the value of the read address signal [4:0], and then outputs the read data as a read data signal to the outside; The write mapping logic includes: controlling the SRAM module to send a write enable signal according to the value of the write address signal [4:3]. After receiving the write enable signal, the write control logic module obtains the write address from the write address signal, and at the same time obtains the write data required by the SRAM module from the write data signal according to the write mode configuration word signal and the value of the lower 3 bits of the write address signal, and then writes the write data to the write address.

2. A high-concurrency storage array supporting multiple data bit widths according to claim 1, characterized in that: In any bank, multiple SRAMs in an SRAM module are connected in a stack or in parallel.

3. The high-concurrency storage array supporting multiple data bit widths according to claim 1, characterized in that: In any bank, the SRAM module, the read control logic module and the write control logic module use the same clock signal. At the same time, the write control logic module and the read control logic module are both designed with sequential logic.

4. The high-concurrency storage array supporting multiple data bit widths according to claim 1, characterized in that: The write control logic module supports pipeline writing, and the read control logic module supports pipeline reading.

5. The high-concurrency storage array supporting multiple data bit widths according to claim 1, characterized in that: The operation method of any bank during a read operation includes the following steps: S1, the read control logic module receives the chip select signal and the read / write signal outside the bank. When the chip select signal is valid, the read operation is performed according to the instruction content of the read / write signal; S2, using the read control logic module in step S1 to receive the read mode word signal and the read address signal, obtaining the data bit width of the data corresponding to the read operation from the read mode word signal, and obtaining the read address of the data corresponding to the read operation from the read address signal, wherein the read address is in the form of a byte address; S3, the read control logic module controls the SRAM module to send an RE read enable signal according to the read address in step S2, and at the same time, the SRAM module converts the read address from a byte address to a word address; S4. The SRAM module reads data according to the read address converted into the word address form in step S3. The read control logic module obtains the read data from the data read by the SRAM module according to the read address converted into the word address form and the data bit width in step S2, and outputs the read data as a read data signal to the outside of the bank.

6. The high-concurrency storage array supporting multiple data bit widths according to claim 1, characterized in that: The operation method of any bank during a write operation includes the following steps: S1, the write control logic module receives the chip select signal and the read / write signal outside the bank, and performs the write operation according to the instruction content of the read / write signal when the chip select signal is valid; S2, using the write control logic module in step S1 to receive the write mode configuration word signal, the write data signal and the write address signal, obtain the data bit width of the data corresponding to the write operation from the write mode word signal, obtain the write data from the write data signal, and obtain the write address of the data corresponding to the write operation from the write address signal, where the write address is in the form of a byte address; S3. Use the write control logic module to control the SRAM module to send a write enable signal, and at the same time convert the write address in step S2 from a byte address to a word address; then, based on the write address in the word address form and the data bit width in step S2, use the write control logic module to write the write data in step S2 into the SRAM module.

7. The high-concurrency storage array supporting multiple data bit widths according to claim 1, characterized in that: Each bank is connected in parallel, and each bank has an independent data bus for independent read or write operations. At the same time, each bank shares the AXI bus.