On-chip memory and access method thereof

By adopting the interleaved granular configuration of MIMO architecture and logical storage space hierarchical structure in the memory, the problems of memory bandwidth and cost are solved, high concurrency and high bandwidth design are achieved, and system complexity is reduced.

CN117931728BActive Publication Date: 2024-09-27WUXI STARS MICRO SYSTEM TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410099412.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-24
Publication Date
2024-09-27
Estimated Expiration
2044-01-24

AI Technical Summary

Technical Problem

In complex storage devices, it is difficult for existing technologies to increase memory bandwidth while reducing chip area and cost, and the complexity of system interactions is too high, making it difficult to converge on the project.

Method used

Using multiple-input multiple-output (MIMO) architecture and logical storage space hierarchical structure, host-side read and write access requests are mapped to multiple storage banks through interleaved granular configuration to achieve parallel access, reduce system complexity and improve concurrency.

Benefits of technology

It improves memory concurrency and bandwidth utilization, reduces system complexity and cost, and enables high-bandwidth memory design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117931728B
    Figure CN117931728B
Patent Text Reader

Abstract

The present invention provides an on-chip memory and an access method thereof, wherein the on-chip memory comprises a switch module connected to a host end and a plurality of storage bodies, and is used to map a multi-path read-write access request of the host end to a corresponding storage body through an internal logical storage space, wherein the storage body is composed of a plurality of storage blocks, and is used to perform parallel access to the plurality of storage blocks according to the read-write access request. The technical solution of the present invention improves the access concurrency, utilization rate and bandwidth of the on-chip memory.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of memory design, and in particular relates to an on-chip memory and an access method thereof. Background Art

[0002] In complex storage devices, memories with large bandwidth and high flexibility are often required to adapt to complex application scenarios. To meet the above requirements, the interface width of the physical memory can be directly increased, but due to the tight on-chip resources, it will bring greater area loss while increasing the bandwidth, increasing the cost of tape-out. In order to adapt to the system, developing multiple memories or increasing logical redundancy will greatly increase the complexity of the system interaction within the chip, so that the cost increases and it is difficult to converge the project. Summary of the invention

[0003] The object of the present invention is to provide an on-chip memory, aiming to improve the concurrency, flexibility and adaptability of the memory.

[0004] According to a first aspect of the present invention, there is provided an on-chip memory, comprising:

[0005] The switch module is connected to the host end and multiple storage bodies, and is used to map the multi-channel read and write access requests of the host end to the corresponding storage bodies through the internal logical storage space.

[0006] The storage body is composed of a plurality of storage blocks and is used to perform parallel access to the plurality of storage blocks according to the read and write access requests.

[0007] Preferably, the logical storage space contained in the switch module is divided into multiple layers, each layer is evenly mapped to multiple storage bodies, each layer has a corresponding interleaving granularity, and read and write access requests are mapped to corresponding storage bodies according to the number of storage bodies and the interleaving granularity.

[0008] Preferably, when determining the starting selection bit j and the number of selection bits k, the mapped storage body number is addr[j:j+k), where j=log2(sg), k=log2(n), sg is the interleaving granularity, and n is the number of storage bodies.

[0009] Preferably, the interleaving granularity and the number of layers of the logical storage space are register configurable values.

[0010] Preferably, when there are two consecutive read / write access requests hitting the same storage block in the current storage bank, the two read / write access requests are arbitrated in the first clock cycle, one of the requests is back-pressured, and parallel access is performed in the remaining clock cycles.

[0011] According to a second aspect of the present invention, there is provided a method for accessing an on-chip memory according to the first aspect, comprising:

[0012] receiving multiple read and write access requests from the host, and mapping the read and write access requests to corresponding storage bodies through the internal logical storage space of the switch module,

[0013] Multiple storage blocks in the storage body are accessed in parallel according to the read and write access requests.

[0014] Preferably, mapping the read and write access requests to corresponding storage bodies further comprises:

[0015] The logical storage space included in the switch module is divided into multiple layers, each layer is evenly mapped to multiple storage bodies, each layer has a corresponding interleaving granularity, and read and write access requests are mapped to corresponding storage bodies according to the number of storage bodies and the interleaving granularity.

[0016] Preferably, when determining the starting selection bit j and the number of selection bits k, the mapped storage body number is addr[j:j+k), where j=log2(sg), k=log2(n), sg is the interleaving granularity, and n is the number of storage bodies.

[0017] Preferably, the method further comprises: pre-configuring the interleaving granularity and the number of layers of the logical storage space through a register.

[0018] Preferably, the accessing multiple storage blocks in the storage body in parallel further comprises:

[0019] When there are two consecutive read / write access requests hitting the same storage block in the current storage bank, the two read / write access requests are arbitrated in the first clock cycle, one of the requests is backpressured, and parallel access is performed in the remaining clock cycles.

[0020] Compared with the related art, the technical solution of the present invention has the following advantages:

[0021] Multiple blocks of the memory can be read and written at the same time, which improves access concurrency. The structure of the logical storage layer is reasonably set according to the scene requirements, thereby improving utilization. By using multiple banks to form a block, interleaved access banks are formed within the block, so that each cycle can be read and written, which significantly improves the bandwidth.

[0022] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or be understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures and processes indicated in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. It is obvious that the drawings described below are certain embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0024] Figure 1 FIG. 4 is a general structural diagram of the on-chip memory MIMO_OCM according to the present invention.

[0025] Figure 2 It is a schematic diagram of a logical storage space according to the present invention.

[0026] Figure 3 It is a schematic diagram of the mapping relationship between the logical storage space and the physical storage space according to the present invention.

[0027] Figure 4 It is a schematic diagram of the internal composition of the Block according to the present invention.

[0028] Figure 5 It is a schematic diagram of the interleaved access process of the Bank within the Block according to the present invention. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0030] For the requirements of high concurrency, high flexibility and large bandwidth, if the size of the physical memory interface is directly increased, it will bring greater area loss, but if the MIMO (multiple input multiple output) architecture is introduced, the concurrency of the memory will be improved. Based on the above analysis, the present invention proposes an on-chip memory that divides the logical storage space by using logical space layering and configurable interleaving granularity within the layer to meet various complex usage scenarios, improve the matching degree of the system and reduce the complexity of the memory.

[0031] In response to the demand for large bandwidth, the present invention uses multiple physical memories to form a storage block bank, and then uses multiple banks to form a storage body block. When accessing the block sequentially, as long as the read and write addresses differ by the size of a bank, the full bandwidth of the block can be achieved. For continuous access to read and write, if the read and write operations access the same address space, only one of the read or write operations is back-pressured in the first clock cycle, and then the read and write operations are performed in parallel to achieve full bandwidth at the block level.

[0032] See also Figure 1 The MIMO_OCM (on-chip memory) provided by the present invention uses a multiple-input multiple-output (MIMO) structure to achieve high concurrent transmission by adjusting the number of input and output channels to improve the transmission speed of the memory. The Switch_m2n switching module maps the request issued by the host (master) to the Block port according to the address mapping rule to realize the full interactive network of m2n. The storage part is composed of multiple Blocks, and the number of Blocks can be changed according to demand. The Block is composed of multiple banks, and continuous address access can be interleaved between banks to achieve high concurrency to improve the read and write speed.

[0033] There is a logical storage space inside Switch_m2n, such as Figure 2 As shown. The logical storage space is the same size as the physical storage, and the logical storage space can be configured into 1 to m layers. Each layer has its own interleaving granularity sg, which is used to implement interleaving between different blocks. The number of storage layers m and the interleaving granularity sg can be configured by registers. In this way, the mapping from the host to the Block layer can be implemented to meet more complex system requirements. Assuming the number of blocks is n and the granularity is sg, the address mapping rules are as follows:

[0034] Start by selecting 1 bit j=log2(sg)

[0035] Select the number of bits k = log2(n)

[0036] The hit block number b = addr[j:j+k)

[0037] The mapping relationship between logical storage space and physical storage block is as follows: Figure 3 As shown in the figure, the left side is the logical storage space, and the addresses increase continuously from bottom to top. The logical storage space is divided into m layers, and the physical storage blocks are also divided into m layers. The logical storage space of each layer is evenly mapped to n blocks. By mapping the requests initiated by the master according to the address mapping rules, a one-to-one mapping between the logical storage layer and the actual storage body can be achieved.

[0038] Interleaved access to banks within a memory block is as follows: Figure 4 As shown in the figure, a block is divided into k banks. If the memory address width is w, then different memories can be accessed across banks when the address interval is w / 8. This achieves interleaved access within the block.

[0039] When two consecutive requests hit the same area, arbitration is performed only in the first clock cycle, and the remaining clock cycles are accessed in parallel, such as Figure 5 shown.

[0040] At time T2, the read and write operations simultaneously initiate access to address addr0-bank0. Therefore, the read operation is back-pressured for one beat (optionally, the write operation can also be back-pressured), and the write operation proceeds normally, writing data D0 to bank0.

[0041] At time T3, a write operation to address addr1-bank1 is initiated to write data D1, and at the same time, the back pressure of the read operation to read address 0-bank0 is terminated.

[0042] At time T4, a write operation to address addr2-bank2 is initiated, and data D2 is written. At the same time, a read operation to address addr1-bank1 is initiated, and read data D0 is output.

[0043] At time T5, a write operation to address addr3-bank3 is initiated, and data D3 is written. At the same time, a read operation to address addr2-bank2 is initiated, and read data D1 is output.

[0044] At time T6, a write operation to address addr4-bank4 is initiated, and data D4 is written. At the same time, a read operation to address addr3-bank3 is initiated, and read data D2 is output.

[0045] At time T7, a read operation on address addr4-bank4 is initiated, and read data D3 is output.

[0046] At time T8, the read data D3 is output.

[0047] It can be seen that the on-chip memory proposed in the present invention has the following advantages compared with the related art:

[0048] Multiple blocks of the memory can be read and written at the same time, which improves the access concurrency. The structure of the logical storage layer is reasonably set according to the scenario requirements, thereby improving the utilization rate. By using multiple banks to form a block, an interleaved access bank is formed inside the block, so that each cycle can be read and written, so that the bandwidth is significantly improved. For example, for memory reading and writing with a data bit width of 128 bits, the bandwidth is 16GB / s at 1000Mhz. When the bank division of the present invention is not used, if N Block storage bodies are read and written at the same time, the bandwidth is N*16GB / s. Due to the use of the above-mentioned bank division method, without changing the memory interface (single-port RAM becomes dual-port RAM), the bandwidth can be greatly improved, and it becomes 2N*16GB / s when reading and writing are concurrent.

[0049] Accordingly, the present invention provides a method for accessing an on-chip memory in a second aspect, comprising:

[0050] receiving multiple read and write access requests from the host, and mapping the read and write access requests to corresponding storage bodies through the internal logical storage space of the switch module,

[0051] Multiple storage blocks in the storage body are accessed in parallel according to the read and write access requests.

[0052] The above-mentioned device can be implemented by the on-chip memory provided by the embodiment of the first aspect above. The specific implementation method can be found in the description of the embodiment of the first aspect, and will not be repeated here.

[0053] It is understood that the circuit structures, names and parameters described in the above embodiments are only examples. Those skilled in the art can also make easily conceivable combinations and adjustments to the structural features of the above embodiments according to the use requirements, and the concept of the present invention should not be limited to the specific details of the above examples.

[0054] Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent substitutions for some of the technical features therein; and these modifications or substitutions do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. An on-chip memory, characterized in that: Including a switch module and multiple storage bodies, The switch module is connected to the host end and multiple storage bodies, and is used to map the multi-channel read and write access requests of the host end to the corresponding storage bodies through the internal logical storage space. The storage body is composed of a plurality of storage blocks and is used to perform parallel access to the plurality of storage blocks according to the read and write access requests; The switch module includes a logical storage space, the logical storage space is the same size as the storage body, the logical storage space included in the switch module is divided into multiple layers, each layer is evenly mapped to multiple storage bodies, each layer has a corresponding interleaving granularity, and read and write access requests are mapped to corresponding storage bodies according to the number of storage bodies and the interleaving granularity; The switch module maps the request issued by the host to the storage port according to the address mapping rule, realizing a one-to-one mapping between the logical storage layer and the actual storage. The address mapping rule is: when the starting selection bit j and the number of selection bits k are determined, the mapped storage number is addr[j:j+k), where j=log2(sg), k=log2(n), sg is the interleaving granularity, and n is the number of storage bodies.

2. The on-chip memory according to claim 1, characterized in that: The interleaving granularity and the number of layers of the logical storage space are register configurable values.

3. The on-chip memory according to claim 1, characterized in that: When there are two consecutive read / write access requests hitting the same storage block in the current storage bank, the two read / write access requests are arbitrated in the first clock cycle, one of the requests is backpressured, and parallel access is performed in the remaining clock cycles.

4. A method for accessing an on-chip memory according to any one of claims 1 to 3, characterized in that: include: receiving multiple read and write access requests from the host, and mapping the read and write access requests to corresponding storage bodies through the internal logical storage space of the switch module, Accessing multiple storage blocks in a storage body in parallel according to the read and write access requests; Mapping the read and write access requests to corresponding storage bodies further comprises: The switch module includes a logical storage space, the logical storage space is the same size as the storage body, the logical storage space included in the switch module is divided into multiple layers, each layer is evenly mapped to multiple storage bodies, each layer has a corresponding interleaving granularity, and read and write access requests are mapped to corresponding storage bodies according to the number of storage bodies and the interleaving granularity; The switch module maps the request issued by the host to the storage port according to the address mapping rule, realizing a one-to-one mapping between the logical storage layer and the actual storage. The address mapping rule is: when the starting selection bit j and the number of selection bits k are determined, the mapped storage number is addr[j:j+k), where j=log2(sg), k=log2(n), sg is the interleaving granularity, and n is the number of storage bodies.

5. The method according to claim 4, characterized in that Also includes: The interleaving granularity and the number of layers of the logical storage space are preconfigured through registers.

6. The method according to claim 4, characterized in that The parallel access to the plurality of storage blocks in the storage body further comprises: When there are two consecutive read / write access requests hitting the same storage block in the current storage bank, the two read / write access requests are arbitrated in the first clock cycle, one of the requests is backpressured, and parallel access is performed in the remaining clock cycles.