A device and method for flexible use of data cache in a 5G communication chip

By introducing cache allocation control unit and shared cache unit into the 5G NR wireless communication chip, cache resource sharing between accelerated modules is realized, resource idle problem is solved, and data interaction efficiency and flexibility are improved.

CN113806247BActive Publication Date: 2024-11-19SHANGHAI QINGKUN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110830455.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-22
Publication Date
2024-11-19
Estimated Expiration
2041-07-22

AI Technical Summary

Technical Problem

In the 5G NR wireless communication baseband processing SOC chip, the cache units inside each acceleration module cannot be shared, resulting in idle resources and inefficient efficiency.

Method used

A device including a cache allocation control unit, a shared cache unit and multiple 5G NR protocol acceleration modules is designed, and the cache units are flexibly allocated and shared through the bus, allowing the cache resources sharing between different acceleration modules.

Benefits of technology

It improves the utilization rate of cache resources and the efficiency of data interaction between the acceleration modules, reduces the delay in data interaction, and adapts to algorithm evolution and demand changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113806247B_ABST
    Figure CN113806247B_ABST
Patent Text Reader

Abstract

The present invention relates to a device for flexible use of data cache in a 5G communication chip, comprising: a cache allocation control unit, a shared cache unit, a plurality of 5GNR protocol acceleration modules and a bus; the shared cache unit comprises a plurality of cache units; the cache allocation control unit allocates the plurality of cache units in the shared cache unit to the plurality of 5GNR protocol acceleration modules for use. The dedicated cache units inside each 5GNR protocol acceleration module in the traditional solution are extracted to form a shared cache module that can be flexibly configured, thereby improving the cache utilization rate and flexibility of the 5G communication acceleration module, and at the same time, the efficiency of data interaction between the acceleration modules can be improved, and the data interaction delay can be reduced. The data cache units can be flexibly allocated in multiple acceleration modules according to needs, and do not need to be fixed to a certain acceleration module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of 5G communication technology, and in particular to a device and method for flexible use of data cache in a 5G communication chip. Background Art

[0002] In the 5G NR (New Radio) wireless communication baseband processing SOC chip, many hard acceleration modules are used to process NR protocols, such as data processing and protocol parsing tasks for LDPC encoding and decoding. In order to improve the processing speed and efficiency within the chip, these data processing and protocol parsing processes generally contain a large number of storage units as data caches. Currently, common data cache units are module internal caches that serve a certain acceleration module. The advantage of this method is that the protocol or computing acceleration module that uses the cache has exclusive possession of the cache without competition. However, the disadvantage is that when the computing module is not in use, the cache modules inside these modules cannot be shared with other modules that need it, which will cause idle resources, because the area and power consumption of the SRAM (static random access memory) units commonly used in the cache module still account for a large proportion in 5G communication chips.

[0003] Therefore, there is an urgent need in the art for a technical solution for flexibly allocating and using data cache units used within an acceleration module for 5G NR protocol processing. Summary of the invention

[0004] The purpose of the present invention is to provide a device and method for flexible use of data cache in a 5G communication chip to solve the problem of resource waste caused by the idle cache module inside the current module.

[0005] To achieve the above object, the present invention provides the following solutions:

[0006] A device for flexible use of data cache in a 5G communication chip, the device comprising:

[0007] Cache allocation control unit, shared cache unit, several 5G NR protocol acceleration modules and buses;

[0008] One end of the cache allocation control unit is connected to one end of the shared cache unit, and the other end of the cache allocation control unit is connected to the bus;

[0009] The other end of the shared cache unit is connected to one end of the plurality of 5G NR protocol acceleration modules;

[0010] The other ends of the plurality of 5G NR protocol acceleration modules are connected to the bus;

[0011] The shared cache unit includes a plurality of cache units;

[0012] The cache allocation control unit allocates the several cache units in the shared cache unit to the several 5G NR protocol acceleration modules for use.

[0013] Optional,

[0014] The shared cache unit further includes: a data selector unit;

[0015] The data selector unit is respectively connected to the several cache units, the cache allocation control unit and the several 5GNR protocol acceleration modules.

[0016] Optional,

[0017] The shared cache unit also includes: a plurality of data ports;

[0018] One end of the several data ports is connected to the data selection unit, and the other end of the several data ports is connected to the several 5G NR protocol acceleration modules; the several data ports are used for data transmission with the several 5GNR protocol acceleration modules; the cache unit from which the data comes is selected by the data selector unit.

[0019] Optional,

[0020] The plurality of data ports are compatible with a variety of data transmission modes.

[0021] Optional,

[0022] The device also includes:

[0023] The system shared cache is connected to the bus.

[0024] Optional,

[0025] The device also includes:

[0026] The system CPU is connected to the bus.

[0027] A method for using a device for flexible use of data cache in a 5G communication chip, the method comprising:

[0028] A cache allocation control unit is used to allocate a plurality of cache units to a plurality of 5G NR protocol acceleration modules.

[0029] Optional,

[0030] The method of using a cache allocation control unit to allocate a plurality of cache units to a plurality of 5G NR protocol acceleration modules specifically includes:

[0031] The cache allocation control unit is used to control the data selection unit to allocate several cache units to several 5GNR protocol acceleration modules.

[0032] Optional,

[0033] The method of using the cache allocation control unit to control the data selection unit to allocate a plurality of cache units to a plurality of 5GNR protocol acceleration modules specifically includes:

[0034] transmitting the configuration information to the cache allocation control unit via the bus;

[0035] The configuration information is transmitted to the data selector unit through the cache allocation control unit; and the control selector unit allocates a plurality of cache units to a plurality of 5G NR protocol acceleration modules according to the configuration information.

[0036] Optional,

[0037] The configuration information includes: the cache start address occupied by each 5G NR protocol acceleration module and the cache size occupied by each protocol acceleration module.

[0038] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0039] The embodiment of the present invention extracts the dedicated cache units inside each 5G NR protocol acceleration module in the traditional solution to form a shared cache module that can be flexibly configured, thereby improving the cache utilization and utilization flexibility of the 5G communication acceleration module, and at the same time can also improve the efficiency of data interaction between various acceleration modules, reduce data interaction delay, and can flexibly allocate data cache units in multiple acceleration modules as needed, without being fixed to a certain acceleration module. By sharing cache units between different acceleration modules, the efficiency of data exchange and transmission between acceleration modules is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0041] Figure 1 A schematic diagram of a device for flexible use of data cache in a 5G communication chip provided in Embodiment 1 of the present invention.

[0042] Figure 2A schematic diagram of the internal structure of a shared cache unit of an apparatus for flexible use of data cache in a 5G communication chip provided in Embodiment 1 of the present invention. DETAILED DESCRIPTION

[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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.

[0044] In the 5G NR (New Radio) wireless communication baseband processing SOC chip, many hard acceleration modules are used to process the NR protocol, such as data processing and protocol parsing tasks for LDPC encoding and decoding. In order to improve the processing speed and efficiency within the chip, these data processing and protocol parsing processes generally include a large number of storage units as data caches. Currently, common data cache units are module internal caches that serve a certain acceleration module. The advantage of this method is that the protocol or computing acceleration module that uses the cache has exclusive possession of the cache without competition. However, the disadvantage is that when the computing module is not in use, the cache modules inside these modules cannot be shared with other modules that need it, which will cause idle resources, because the area and power consumption of the SRAM (static random access memory) units commonly used in the cache module still account for a large proportion in 5G communication chips.

[0045] Specifically, existing 5G communication processing chips usually use a series of hard acceleration modules to hard accelerate various algorithms or processing flows involved in the NR protocol. At the same time, in order to improve data caching efficiency, SRAM units of different sizes are placed in each acceleration module as needed to implement the data caching function. The above traditional data caching solution has the following two disadvantages:

[0046] (1) The cache module inside the acceleration module can only be used by this module and cannot be shared or used by other modules.

[0047] (2) The cache size inside the acceleration module cannot be changed after the design is implemented, and cannot adapt to the changes in cache size requirements caused by algorithm evolution and demand changes faced by the chip during practical use.

[0048] The purpose of the present invention is to provide a device and method for flexible use of data cache in a 5G communication chip to solve the problem of resource waste caused by the idle cache module inside the current module, and to flexibly allocate and use the data cache unit used in the acceleration module for 5G NR protocol processing inside the chip, thereby improving the utilization efficiency of cache resources and improving the processing efficiency of the protocol acceleration module.

[0049] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0050] Embodiment 1:

[0051] like Figure 1 As shown, an embodiment of the present invention provides a device for flexible use of data cache in a 5G communication chip, the device comprising: a cache allocation control unit, a shared cache unit, a plurality of 5G NR protocol acceleration modules and a bus;

[0052] One end of the cache allocation control unit is connected to one end of the shared cache unit, and the other end of the cache allocation control unit is connected to the bus;

[0053] The other end of the shared cache unit is connected to one end of the plurality of 5G NR protocol acceleration modules;

[0054] The other ends of the plurality of 5G NR protocol acceleration modules are connected to the bus;

[0055] The shared cache unit includes a plurality of cache units;

[0056] The cache allocation control unit allocates the several cache units in the shared cache unit to the several 5G NR protocol acceleration modules for use.

[0057] See also Figure 1 In this embodiment, the protocol hard accelerator modules that can share data cache are represented by 5G NR protocol acceleration modules 1 to 3, but the present invention can share cache between more acceleration modules, not limited to 3. These 5G NR protocol acceleration modules are generally connected to the bus in the system through a bus interface.

[0058] The flexible use of data cache in the 5G communication chip proposed by the present invention is achieved by Figure 1 This is achieved by the cache allocation control unit in the . This cache allocation control unit is configured by the system CPU software through bus access. Through this interface, the cache size that each accelerator module can occupy and the starting address of the occupied range can be configured. The configuration steps are as follows:

[0059] The control software writes the following information to register group 1 of the cache allocation control unit according to the needs of protocol analysis:

[0060] The cache start address occupied by 5G NR protocol acceleration module 1;

[0061] Cache size occupied by 5G NR protocol acceleration module 1;

[0062] The control software writes the following information to register group 2 of the cache allocation control unit according to the needs of protocol analysis:

[0063] The cache start address occupied by 5GNR protocol acceleration module 2;

[0064] The cache size occupied by 5GNR protocol acceleration module 2;

[0065] And so on, cache is allocated to all 5GNR protocol analysis modules.

[0066] like Figure 2 As shown, the shared cache unit further includes: a data selector unit;

[0067] The data selector unit is respectively connected to the several cache units, the cache allocation control unit and the several 5GNR protocol acceleration modules.

[0068] The shared cache unit provided in this embodiment further includes: a plurality of data ports;

[0069] One end of the several data ports is connected to the data selection unit, and the other end of the several data ports is connected to the several 5GNR protocol acceleration modules; the several data ports are used for data transmission with the several 5GNR protocol acceleration modules; the cache unit from which the data comes is selected by the data selector unit.

[0070] Specifically, from Figure 2 It can be seen that the shared cache unit provided in the embodiment of the present invention is composed of multiple data ports (1 to m), one MUX data selector unit, and multiple cache units (1 to n). The specific functions of each part are as follows:

[0071] Data ports 1 to m:

[0072] These data ports are connected to each 5GNR protocol acceleration module. They are responsible for data transmission with the connected 5GNR protocol acceleration module. The specific data transmission mode can be determined according to the data transmission mode required by each 5GNR protocol acceleration module, and is not limited to a certain transmission or signal interface. The data of these data ports comes from Figure 2The cache unit modules 1-n shown in the figure are controlled by the MUX unit, which cache unit they come from.

[0073] MUX data selector unit:

[0074] The unit completes the direct path multiplexing and connection from the plurality of cache units 1-n to the plurality of data ports 1-m. The multiplexing and connection are controlled by receiving information from the cache allocation control unit.

[0075] Cache allocation control unit:

[0076] This unit provides a bus configuration interface, receives configuration and control information from the bus port, and passes this control information to the MUX data selector unit to control and switch the data path. For example, the control software can allocate cache unit 2 to data port 1 by writing 0x21 to the data path control register 1 of the cache allocation control unit. The control allocation of other caches is similar.

[0077] Cache units 1 to n:

[0078] These cache units are implemented by multiple SRAM or other types of on-chip memory modules according to design requirements, and are used to store specific cache data and perform data read and write operations based on the address and related control information sent by the port.

[0079] As an optional implementation, the plurality of data ports are compatible with multiple data transmission modes. The device further includes:

[0080] The system shared cache is connected to the bus.

[0081] There is usually a system common cache module inside the SOC system, such as Figure 1 The module in the upper right corner is shown. This module is completely different from the shared cache unit proposed in the present invention. Figure 1 The system common cache module shown is an on-chip cache module that can be accessed by all modules connected to the bus through the bus, while the shared cache module proposed in the present invention is a cache module that can be directly accessed by only a few specific accelerator modules through a specific data interface, without passing through the bus port, thereby reducing access delay.

[0082] The device for flexible use of data cache in a 5G communication chip provided by an embodiment of the present invention also includes:

[0083] The system CPU is connected to the bus and is used to implement overall control and address allocation.

[0084] An embodiment of the present invention further provides a method for using a device for flexibly using data cache in a 5G communication chip, the method comprising:

[0085] A cache allocation control unit is used to allocate a plurality of cache units to a plurality of 5G NR protocol acceleration modules.

[0086] Specific:

[0087] The embodiment of the present invention utilizes a cache allocation control unit to control a data selection unit to allocate a number of cache units to a number of 5GNR protocol acceleration modules.

[0088] The specific steps include:

[0089] S1. Transmit configuration information to the cache allocation control unit through the bus; the configuration information includes: the cache starting address occupied by each 5GNR protocol acceleration module and the cache size occupied by each protocol acceleration module.

[0090] S2. Transmit the configuration information to the data selector unit through the cache allocation control unit; enable the control selector unit to allocate a number of cache units to a number of 5G NR protocol acceleration modules according to the configuration information.

[0091] The characteristic of the solution proposed in this embodiment is that the dedicated cache units inside each 5G NR protocol acceleration module in the traditional solution are extracted to form a shared cache module that can be flexibly configured, thereby improving the cache utilization and utilization flexibility of the 5G NR protocol acceleration module, and at the same time, it can also improve the efficiency of data interaction between various acceleration modules and reduce data interaction delay. It adopts a method that can analyze the collected debugging data in real time on the chip and transmit the analysis results out of the chip, thereby saving a lot of on-chip storage space caused by protocol data collection and caching, and adopts on-site real-time analysis methods to improve the debugging and protocol analysis efficiency.

[0092] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A device for flexible use of data cache in a 5G communication chip, characterized in that: The device includes: a cache allocation control unit, a shared cache unit, a plurality of 5G NR protocol acceleration modules and a bus; One end of the cache allocation control unit is connected to one end of the shared cache unit, and the other end of the cache allocation control unit is connected to the bus; The other end of the shared cache unit is connected to one end of the plurality of 5G NR protocol acceleration modules; The other ends of the plurality of 5G NR protocol acceleration modules are connected to the bus; The shared cache unit includes a plurality of cache units; The cache allocation control unit allocates the plurality of cache units in the shared cache unit to the plurality of 5G NR protocol acceleration modules for use; The cache allocation control unit configures the cache size occupied by each accelerator module and the starting address of the occupied range; the configuration steps are as follows: The control software writes the following information to the register group of the cache allocation control unit according to the needs of protocol analysis: The starting address of the cache occupied by the 5G NR protocol acceleration module 1; The size of the cache occupied by the 5G NR protocol acceleration module 1; The control software writes the following information to register group 2 of the cache allocation control unit according to the needs of protocol analysis: the cache start address occupied by 5G NR protocol acceleration module 2; the cache size occupied by 5G NR protocol acceleration module 2; Similarly, cache allocation is performed for all 5G NR protocol analysis modules; The shared cache unit consists of multiple data ports, a MUX data selector unit, and multiple cache units; the specific functions of each part are as follows: The data port is the data port connected to each 5G NR protocol acceleration module; it is responsible for data transmission with the connected 5G NR protocol acceleration module; MUX data selector unit: This unit completes the direct path multiplexing and connection from multiple cache units to multiple data ports; the multiplexing and connection are controlled by receiving information from the cache allocation control unit; the data selector unit is respectively connected to the multiple cache units, the cache allocation control unit and the multiple 5G NR protocol acceleration modules; Cache allocation control unit: This unit provides a bus configuration interface, receives configuration and control information from the bus port, and passes this control information to the MUX data selector unit to control and switch the data path; Cache units: These cache units are implemented by multiple SRAM or other types of on-chip memory modules according to design requirements. They are used to store specific cache data and read and write data according to the address and related control information sent by the port; One end of the several data ports is connected to the data selector unit, and the other end of the several data ports is connected to the several 5G NR protocol acceleration modules; the cache unit from which the data comes is selected by the data selector unit.

2. The device for flexible use of data cache in a 5G communication chip according to claim 1, characterized in that: The plurality of data ports are compatible with a variety of data transmission modes.

3. The device for flexible use of data cache in a 5G communication chip according to claim 1, characterized in that: The device also includes: The system shared cache is connected to the bus.

4. The device for flexible use of data cache in a 5G communication chip according to claim 1, characterized in that: The device also includes: The system CPU is connected to the bus.

5. A method for using the device for flexible use of data cache in a 5G communication chip as claimed in any one of claims 1 to 4, characterized in that: The method comprises: A cache allocation control unit is used to allocate a plurality of cache units to a plurality of 5G NR protocol acceleration modules.

6. The method for using the device for flexible use of data cache in a 5G communication chip according to claim 5, characterized in that: The method of using a cache allocation control unit to allocate a plurality of cache units to a plurality of 5G NR protocol acceleration modules specifically includes: The cache allocation control unit is used to control the data selector unit to allocate several cache units to several 5G NR protocol acceleration modules.

7. The method for using the device for flexible use of data cache in a 5G communication chip according to claim 6, characterized in that: The method of using the cache allocation control unit to control the data selector unit to allocate a plurality of cache units to a plurality of 5GNR protocol acceleration modules specifically includes: transmitting the configuration information to the cache allocation control unit via the bus; The configuration information is transmitted to the data selector unit through the cache allocation control unit; the data selector unit allocates a number of cache units to a number of 5G NR protocol acceleration modules according to the configuration information.

8. The method for using the device for flexible use of data cache in a 5G communication chip according to claim 7, characterized in that: The configuration information includes: the cache start address occupied by each 5G NR protocol acceleration module and the cache size occupied by each protocol acceleration module.