Converged storage system
The bus remapping module configures on-chip SRAM and plug-in RAM to integrate flash memory space, which solves the problems of small-capacity cache and read-time write restrictions, realizes efficient FLASH access and system flexibility, is compatible with most serial FLASH chips, and guarantees Data security.
Patent Information
- Application Number
- CN202411051013.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-08-01
Smart Images

Figure CN119002812A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of chip design technology, and in particular to a fusion storage system. Background Art
[0002] With the rapid development of the Internet of Things and embedded systems, the complexity of applications has increased significantly, and the demand for microcontroller flash memory capacity has increased. This demand will cause the following contradictions: (1) reduce the yield of chips; (2) limit the upper limit of chip frequency; (3) extend the cycle from chip design to market. In order to solve the above problems, the typical practice in the industry is to use engineering tape-out without FLASH process, and provide larger flash memory capacity through external serial flash memory in the later stage.
[0003] However, the random access performance and sequential access performance of the external serial flash memory are generally lower than those of the built-in flash memory. This performance difference will eventually lead to performance bottlenecks when the chip code executes some timing-sensitive codes. To solve this problem, there are currently two mainstream approaches in the industry: the first approach is to configure the on-chip random access memory (SRAM) as an external flash memory cache to improve the chip's access performance; the second approach is to place the code that requires high-performance execution in the on-chip high-speed SRAM for execution. However, these two approaches have the following defects:
[0004] (1) The manufacturing cost of SRAM is higher, which makes it uneconomical to integrate large-capacity SRAM on the chip, and only small-capacity SRAM can be provided as cache.
[0005] (2) The system does not support the function of dynamically switching the SRAM used for cache to general-purpose RAM, and cannot release the occupied memory for use by other applications or tasks, which limits the flexibility and adaptability of the system.
[0006] (3) For engineers using traditional microcontrollers (MCUs), migrating code to SRAM requires engineers to spend a lot of effort analyzing the code and modifying the link address of the code to complete the task, which increases the learning cost and reduces work efficiency.
[0007] (4) Currently, the cost-effective external serial flash memory methods generally do not provide the read-while-write (RWW) function, which means that during the flash memory write operation, the flash memory read operation cannot be performed at the same time.
[0008] (5) The implementation of existing solutions often does not take into account the flexible solutions compatible with most serial FLASH on the market, which limits the scalability and compatibility of the system. As the serial flash memory market continues to develop, new flash memory chips continue to emerge, and existing systems may not be able to directly support these new chips, making upgrades and replacements difficult. Summary of the invention
[0009] In view of the shortcomings of the prior art mentioned above, the purpose of the present application is to provide a fusion storage system to solve the technical problems in the prior art that only a small-capacity SRAM can be provided as a cache, the function of dynamically switching the SRAM used for cache to a general RAM is not supported, the read-while-write (RWW) function is not provided, and the system is not compatible with most serial FLASH chips.
[0010] To achieve the above-mentioned purpose and other related purposes, the first aspect of the present application provides a fusion storage system, including: a bus remapping module, an on-chip SRAM memory and an external RAM memory; the bus remapping module is communicatively connected to the on-chip SRAM memory and the external RAM memory; the bus remapping module is externally connected to a FLASH chip; the bus remapping module is used to configure a specific fusion flash memory space for the on-chip SRAM memory and / or the external RAM memory through an address mapping mechanism according to preset requirements, and after performing an enable operation on the configured fusion flash memory space, use the configured fusion flash memory space to perform a read data operation, a write data operation or a read-time write data operation on the FLASH chip; the bus remapping module can also be used to perform a disable operation on the configured fusion flash memory space.
[0011] In some embodiments of the first aspect of the present application, the method of performing an opening operation on the configured fusion flash memory space includes: mapping the address area in the configured fusion flash memory space to the address area corresponding to the FLASH chip, and synchronizing the data in the address area corresponding to the FLASH chip to the configured fusion flash memory space; wherein, the address area corresponding to the FLASH chip mapped to the fusion flash memory space is a fast access fusion flash memory space, and the fast access fusion flash memory space includes an on-chip SRAM fast access fusion flash memory space and an external RAM fast access fusion flash memory space; the address area in the FLASH chip other than the fast access fusion flash memory space is a non-fusion flash memory space.
[0012] In some embodiments of the first aspect of the present application, the method of using the configured fusion flash space to perform read-time write data operations on the FLASH chip includes: if the memory occupied by the read data is less than or equal to the memory of the fast access fusion flash space, and the read data is located in the fast access fusion flash space, then the write data operation on the non-fusion flash space of the FLASH chip is supported at the same time; if the memory occupied by the read data is larger than the memory of the fast access fusion flash space, then while reading the data located in the fast access fusion flash space, the write data operation on the non-fusion flash space of the FLASH chip is supported.
[0013] In some embodiments of the first aspect of the present application, the method of performing the disabling operation on the configured fusion flash space includes: clearing the configured fusion flash space to release the fusion flash space.
[0014] In some embodiments of the first aspect of the present application, the method of performing a data write operation on a FLASH chip using the configured fusion flash space includes: when writing data to the fast access fusion flash space, synchronizing the written data to the corresponding address area of the configured fusion flash space.
[0015] In some embodiments of the first aspect of the present application, a FLASH controller is also included, and the bus remapping module is communicated with the FLASH chip through the FLASH controller. The FLASH controller is used to decode according to the received operation instructions, lock the specified address in the FLASH chip according to the decoding results, and perform data read operations, data write operations, or read-write data operations at the currently locked address.
[0016] In some embodiments of the first aspect of the present application, an in-situ encryption and decryption module is configured in the FLASH controller, and the in-situ encryption and decryption module is used to perform encryption operations on data written into the FLASH chip and decryption operations on data read from the non-fused flash memory space of the FLASH chip.
[0017] In some embodiments of the first aspect of the present application, it also includes: an in-situ decryption module, which is communicated with the bus remapping module and the FLASH chip respectively, and is used to decrypt data read from the external RAM fast access fusion flash memory space of the FLASH chip.
[0018] In some embodiments of the first aspect of the present application, a CPU controller is further included, wherein the CPU controller is communicatively connected to the FLASH controller via an application program interface, and the CPU controller is connected to the bus remapping module via a bus matrix.
[0019] In some embodiments of the first aspect of the present application, the bus remapping module includes a fused space read mapping module, and the fused space read mapping module is used to obtain data read from the FLASH chip.
[0020] As described above, the fusion storage system of the present application has the following beneficial effects:
[0021] (1) By setting up an on-chip SRAM memory and an external RAM memory, the bus remapping module can configure a part of the address area of the on-chip SRAM memory or the external RAM memory as a fused flash memory space, which is used as a cache or mapping area of the FLASH chip, thereby expanding the effective memory capacity of the system and significantly reducing the manufacturing cost. In addition, the high-speed access characteristics of the SRAM or RAM are utilized to achieve fast access to the FLASH chip, thereby improving the access performance to the FLASH chip.
[0022] (2) The problem of being unable to access data when writing data in the FLASH chip is solved, and the read-while-write function of the FLASH chip is realized, allowing the system to write data to other parts of the FLASH chip (non-fused flash memory space) while reading data. This parallel processing method can significantly improve the overall efficiency of data processing, reduce the delay caused by waiting for the completion of the write data operation, and can more effectively utilize storage resources, improve processing efficiency and reduce overall energy consumption.
[0023] (3) The bus remapping module can perform enabling and disabling operations on the configured fused flash space, thereby supporting the dynamic switching of the SRAM or RAM used for caching to a general storage function. When the program encounters a sudden large-capacity data demand, the system can quickly release a portion of the SRAM or RAM originally configured as the fused flash space to support the sudden large-capacity demand of the program, and use it directly as ordinary memory, thereby realizing rapid resource allocation and enhancing the flexibility and scalability of the system.
[0024] (4) The application programming interface is an application programming interface that can support most serial FLASH and is compatible with most serial FLASH chips on the market, thereby enhancing the scalability and compatibility of the system.
[0025] (5) The addition of an in-situ encryption and decryption module and an in-situ decryption module ensures the security of data during storage and transmission, reduces the risk of data leakage, and makes it difficult for attackers to crack the encrypted information in a short time even if the data is illegally obtained, thereby protecting the security of sensitive data and solving the problem of user code or data being easily stolen when the program is stored in an external FLASH or using an external RAM as a FLASH cache.
[0026] (6) The bus remapping module can intelligently map specific address areas of the SRAM memory or external RAM memory to fast-access fusion flash memory space, which greatly reduces the workload of engineers to manually analyze the code and modify the link address. Engineers only need to specify the area to be mapped during the configuration phase, without having to make complex modifications at the code level or deeply understand the details of the underlying hardware to complete the address mapping configuration, which greatly reduces the learning cost of engineers and enables them to master new technologies more quickly and invest in actual projects. Through flexible configuration of the mapping address, engineers can adjust the mapping range and size according to actual needs, thereby more accurately controlling the storage and execution location of the code.
[0027] (7) This application provides extensive support for mainstream serial FLASH through a set of application programming interfaces based on a serial FLASH engine. Users can flexibly select appropriate flash memory according to their needs (including but not limited to capacity, performance, voltage, etc.) to reduce total costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 Shown is a structural diagram of a fusion storage system in one embodiment of the present application.
[0029] Figure 2 Shown is a schematic diagram of the structural mapping of opening the fusion flash memory space in one embodiment of the present application.
[0030] Figure 3 Shown is a schematic diagram of the structural mapping of disabling fusion flash space in one embodiment of the present application.
[0031] Component number description
[0032] 101 Bus Remapping Module
[0033] 1011 Fusion Spatial Read Mapping Module
[0034] 102 On-chip SRAM memory
[0035] 103 External RAM storage
[0036] 104 FLASH chip
[0037] 105 FLASH controller
[0038] 1051 In-situ encryption and decryption module
[0039] 1052 Flash Cache Control Module
[0040] 106 CPU controller
[0041] 107 Application Programming Interface
[0042] 108 Bus Matrix
[0043] 109 In-situ decryption module DETAILED DESCRIPTION
[0044] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0045] Before further describing the present invention in detail, the nouns and terms involved in the embodiments of the present invention are explained. The nouns and terms involved in the embodiments of the present invention are applicable to the following interpretations:
[0046] <1> On-chip SRAM (Static Random Access Memory): It is a static random access memory directly integrated into the microprocessor chip. It has the characteristics of high-speed access and low power consumption, but it is expensive and has limited capacity.
[0047] <2> External RAM (Random Access Memory): A volatile memory, which means that data will be lost after power failure. It is installed outside the microprocessor chip and is usually connected to the processor through an external bus. It is mainly used to store data used for a short period of time and serves as a dynamic buffer when the system is running. The characteristics of RAM are fast speed and the ability to quickly exchange data with the CPU.
[0048] <3> FLASH (Flash memory): Non-volatile memory, data will not be lost after power failure. It has a large storage capacity and relatively low cost, but the read and write speed is slower than SRAM.
[0049] <4> CPU (Central Processing Unit): Central processing unit, responsible for executing instructions, processing data and coordinating communication between various hardware components.
[0050] <5> Semiconductor Flash: Flash memory is a non-volatile memory that can retain stored data in the absence of power.
[0051] <6> SFDP (Serial Flash Discoverable Parameters) is a set of standards defined by JEDEC for Flash memory, which aims to provide a common mechanism to make the parameters of Flash memory more easily discoverable and identifiable, thereby achieving interoperability between different manufacturers.
[0052] <7> PSRAM (Pseudo Static Random Access Memory): Pseudo static random access memory. It is a storage technology that combines the characteristics of dynamic random access memory (DRAM) and static random access memory (SRAM).
[0053] <8> SDRAM (Synchronous Dynamic Random Access Memory): Synchronous dynamic random access memory or synchronous dynamic random access memory.
[0054] <9> DDR2 (Double Data Rate 2): The second generation double data rate synchronous dynamic random access memory.
[0055] <10> DDR3 (Double Data Rate 3): The third generation of double data rate synchronous dynamic random access memory, which is a memory technology further developed and optimized based on DDR2.
[0056] <11> DDR3L (DDR3 Low Voltage): is a low-power version of DDR3 memory. While maintaining the same performance as DDR3, it achieves lower power consumption and heat generation by reducing the operating voltage.
[0057] In order to improve the access performance of the chip, two methods are usually adopted in the prior art: the first method is to configure the on-chip random access memory SRAM as an external flash memory cache to improve the access performance of the chip. However, the manufacturing cost of SRAM is higher, which makes it uneconomical to integrate a large-capacity SRAM on the chip. Therefore, the existing scheme can only provide a small-capacity SRAM as a cache, which limits the amount of data that the cache can store, making it incapable of processing large amounts of data or complex applications. In addition, the existing cache scheme does not support the function of dynamically switching the SRAM used for caching to general RAM. In certain stages of program operation, although the access speed requirements for external flash memory are reduced, more RAM space may be required to store temporary data or perform stack operations. However, since SRAM is fixedly used as a cache, it cannot be flexibly converted to general RAM for use, such as directly as a storage space for programs or data, which limits the flexibility and adaptability of the system.
[0058] The second approach is to place the code that requires high performance in the on-chip high-speed SRAM for execution. The problem with this approach is that for engineers using traditional microcontrollers (MCUs), migrating code to SRAM for execution requires engineers to spend a lot of effort analyzing the code to determine which parts have the highest performance requirements, and thus decide which code should be placed in SRAM for execution. This process requires a deep understanding of the program's running process and performance bottlenecks. After determining which code to put in SRAM, engineers also need to modify the compiler's link script to ensure that the code is correctly placed in the SRAM address space after compilation. This requires engineers to have certain compilation and linking knowledge, which increases the learning cost and reduces work efficiency. In addition, putting code in SRAM for execution means that this part of the SRAM resources is statically occupied and can no longer be used for other purposes. Even when more RAM may be needed to store data or perform other tasks in other stages of the program, the SRAM occupied by the code cannot be released. In some cases, the program may encounter the situation of sudden use of large-capacity RAM. If the SRAM has been statically occupied by the code, even if the SRAM is in an idle state (such as the code execution is completed or enters low-power mode), the occupied RAM cannot be released for use by other applications or tasks, resulting in performance degradation or program crash.
[0059] Finally, the existing solution has the following limitations:
[0060] (1) Currently, cost-effective external serial flash memory methods generally do not provide read-while-write (RWW) functionality, which means that flash memory read operations cannot be performed simultaneously during flash memory write operations. This limitation is a serious problem for real-time applications that need to read and write flash memory at the same time, because it will cause the system to be unable to access critical data or code during the write operation, thereby affecting the execution efficiency and stability of the application. Although placing the code in SRAM for execution can increase the execution speed, it also cannot solve the limitation of external flash memory read-while-write, because in some cases it is also necessary to read data from the external flash memory or update the configuration. Therefore, neither of the above two existing methods can solve this problem.
[0061] (2) The implementation of existing solutions often does not take into account the flexible solutions compatible with most serial FLASH on the market, which limits the scalability and compatibility of the system. As the serial flash memory market continues to develop, new flash memory chips continue to emerge, and existing systems may not be able to directly support these new chips, making upgrades and replacements difficult.
[0062] In order to solve the problems in the above-mentioned background technology, the present invention provides a fusion storage system, aiming to solve the technical problems in the prior art that only a small-capacity SRAM can be provided as a cache, the function of dynamically switching the SRAM used for cache to a general RAM is not supported, the read-while-write (RWW) function is not provided, and the system is not compatible with most serial FLASH chips.
[0063] To facilitate understanding of the embodiments of the present application, first Figure 1 Detailed description. Figure 1 The structural diagram of the fusion storage system in the embodiment of the present invention is shown. The fusion storage system in this embodiment mainly includes:
[0064] The bus remapping module 101 , the on-chip SRAM memory 102 and the external RAM memory 103 ; the bus remapping module 101 is communicatively connected to the on-chip SRAM memory 102 and the external RAM memory 103 ; the bus remapping module 101 is externally connected to a FLASH chip 104 .
[0065] The bus remapping module 101 is used to configure a specific fusion flash memory space for the on-chip SRAM memory 102 and / or the external RAM memory 103 through an address mapping mechanism according to preset requirements, and after performing an enable operation on the configured fusion flash memory space, use the configured fusion flash memory space to perform a read data operation, a write data operation, or a read-time write data operation on the FLASH chip 104; the bus remapping module 101 can also be used to perform a disable operation on the configured fusion flash memory space.
[0066] In this embodiment, the types of the external RAM memory 103 include but are not limited to: PSRAM, SDRAM, DDR2, DDR3, DDR3L, etc.
[0067] In this embodiment, the preset requirements are usually formulated by system designers or architects according to actual needs and application scenarios, including but not limited to: the size of the storage space to be mapped, the read and write speed requirements, the data access mechanism, the address space allocation strategy, etc. The bus remapping module 101 can configure a portion of the address area of the on-chip SRAM memory 102 and / or the external RAM memory 103 as a storage space similar to the flash memory, that is, the fused flash memory space, which is used as a cache or mapping area of the FLASH chip 104, so as to utilize the high-speed access characteristics of the SRAM or RAM to achieve fast access to the FLASH chip 104, thereby improving the access performance to the FLASH chip 104.
[0068] It is worth noting that since the manufacturing cost of SRAM is higher, it becomes uneconomical to integrate a large-capacity SRAM on the chip. The present invention, by setting up an external RAM memory 103, can configure a part of the address area of the external RAM memory 103 as a storage space similar to a flash memory, that is, integrating the flash memory space, which actually creates an efficient cache layer, expands the effective memory capacity of the system, and significantly reduces the manufacturing cost. The external RAM memory 103 usually has a higher storage density and a lower unit cost, which makes it more economical and feasible under large-scale data storage requirements. Therefore, while maintaining high-speed access capabilities, it can cache more data, thereby improving the performance and response speed of the overall system.
[0069] In this embodiment, if Figure 2 As shown, it is a schematic diagram of the structural mapping of opening the fusion flash memory space in an embodiment of the present invention. The method of performing the opening operation on the configured fusion flash memory space includes: mapping the address area in the configured fusion flash memory space to the address area corresponding to the FLASH chip 104, and synchronizing the data in the address area corresponding to the FLASH chip 104 to the configured fusion flash memory space; wherein, the address area corresponding to the FLASH chip 104 mapped to the fusion flash memory space is a fast access fusion flash memory space, and the fast access fusion flash memory space includes an on-chip SRAM fast access fusion flash memory space and an external RAM fast access fusion flash memory space; the address area in the FLASH chip 104 other than the fast access fusion flash memory space is a non-fusion flash memory space.
[0070] In this embodiment, the address area of the fused flash memory space configured in the on-chip SRAM memory 102 is mapped to the address area corresponding to the FLASH chip 104 to serve as a cache or mapping area for the FLASH chip 104. The address area in the fused flash memory space configured in the external RAM memory 103 is mapped to the address area corresponding to the FLASH chip 104 to serve as a cache or mapping area for the FLASH chip 104. When the amount of data to be cached is small, a specific fused flash memory space can be configured only for the on-chip SRAM memory 102 or the external RAM memory 103. When the amount of data to be cached is large, specific fused flash memory spaces are respectively configured for the on-chip SRAM memory 102 and the external RAM memory 103, thereby integrating a large-capacity cache area, significantly reducing manufacturing costs while maintaining high-speed access capabilities.
[0071] In this embodiment, the address area of the configured fusion flash memory space is mapped to the address area corresponding to the FLASH chip 104, and the data in the corresponding address area of the FLASH chip 104 is synchronized with the data in the fusion flash memory space through hardware or application programs, so that when the system accesses these addresses, it actually accesses the data in the SRAM or RAM, thereby improving the data access speed of the chip. Exemplarily, synchronization is maintained through the application program: the data in the corresponding address of the FLASH chip 104 is copied to the fusion flash memory space in the on-chip SRAM memory 102 or the external RAM memory 103, so that the data in the corresponding address of the FLASH chip 104 is synchronized with the data in the fusion flash memory space. After the copying is completed, the fusion flash memory space function is enabled. Alternatively, synchronization is maintained through hardware: data is written to the corresponding address area of the FLASH chip 104 through the application program interface 107, and the data is simultaneously written to the address area for fusion storage in the on-chip SRAM memory 102 or the external RAM memory 103.
[0072] In this embodiment, the fusion storage system also includes a FLASH controller 105, and the bus remapping module 101 is communicated with the FLASH chip 104 through the FLASH controller 105. The FLASH controller 105 is used to decode according to the received operation instruction, lock the address specified in the FLASH chip 104 according to the decoding result, and perform a read data operation, a write data operation, or a read-write data operation at the currently locked address.
[0073] In this embodiment, the method of performing a read-while-write data operation on the FLASH chip using the configured fusion flash memory space includes:
[0074] (1) If the memory occupied by the read data is less than or equal to the memory of the fast access fused flash memory space, and the read data is located in the fast access fused flash memory space, then the write data operation to the non-fused flash memory space of the FLASH chip is also supported.
[0075] (2) If the memory occupied by the read data is larger than the memory of the fast access fusion flash memory space, the data located in the fast access fusion flash memory space is read while supporting the write data operation to the non-fusion flash memory space of the FLASH chip.
[0076] In this embodiment, if the memory occupied by the read data is less than or equal to the memory of the fast access fusion flash memory space, and the read data is located in the on-chip SRAM fast access fusion flash memory space, it is possible to support writing data in the non-fusion flash memory space of the FLASH chip 104 when reading data in the on-chip SRAM fast access fusion flash memory space. If the memory occupied by the read data is less than or equal to the memory of the fast access fusion flash memory space, and the read data is located in the external RAM fast access fusion flash memory space, it is possible to support writing data in the non-fusion flash memory space of the FLASH chip 104 when reading data in the external RAM fast access fusion flash memory space. If the memory occupied by the read data is larger than the memory of the fast access fused flash memory space, it is possible to support writing data in the non-fused flash memory space of the FLASH chip 104 when reading data located in the on-chip SRAM fast access fused flash memory space or the external RAM fast access fused flash memory space, thereby solving the problem of being unable to access when writing data in the FLASH chip 104, and realizing the read-while-write function of the FLASH chip 104, allowing the system to write data in other parts of the FLASH chip 104 (non-fused flash memory space) while reading data. This parallel processing method can significantly improve the overall efficiency of data processing and reduce delays caused by waiting for the write data operation to be completed.
[0077] It is worth noting that in traditional read and write operations, read operations and write operations are usually performed sequentially, that is, the read operation is completed before the write operation. The read-while-write operation breaks this limitation, allowing the system to start the write operation while the read operation is in progress, thereby reducing the waiting time. Through the read-while-write operation, the system can more effectively utilize storage resources, improve processing efficiency and reduce overall energy consumption.
[0078] In this embodiment, the FLASH controller 105 has an embedded engine specifically defined according to serial flash commands, which can be configured through registers to adapt to most serial flash memories on the market, including single-wire (SPI), dual-wire (DPI), quad-wire (QPI) and eight-wire (OPI) serial flash memories.
[0079] In this embodiment, the FLASH controller 105 is provided with an in-situ encryption and decryption module 1051 for performing encryption operations on data written into the FLASH chip 104 and decryption operations on data read from the non-fused flash memory space of the FLASH chip 104 .
[0080] In this embodiment, the fusion storage system further includes a CPU controller 106, and the CPU controller 106 is connected to the FLASH controller 105 through an application program interface 107, and the CPU controller 106 is connected to the bus remapping module 101 through a bus matrix 108. The application program interface 107 is an application program interface (API) that can support most serial FLASH. The application program interface 107 is based on the JEDEC216 standard and is adapted to most main line one-line, two-line, four-line and eight-line flash memories on the market, and provides application program interfaces related to reading, writing and erasing of flash memories, and provides blocking and non-blocking interfaces. Among them, the JEDEC216 standard is actually the JESD216 standard, which is an important standard for Semiconductor Flash Content Specification (SFDP) formulated by JEDEC (Joint Electron Devices Engineering Council, Joint Electronic Devices Engineering Council), which aims to standardize the organization and format of SFDP information in FLASH memory devices so that the device can correctly identify and read the parameter information of the internal memory.
[0081] In this embodiment, the fusion storage system also includes: an in-situ decryption module 109, which is communicated with the bus remapping module 101 and the FLASH chip 104 respectively, and is used to decrypt data read from the external RAM of the FLASH chip 104 for fast access to the fusion flash memory space.
[0082] In this embodiment, if Figure 1As shown, when the CPU controller 106 writes data to the FLASH chip 104 through the application interface 107 and the FLASH controller 105, the in-situ encryption and decryption module 1051 performs encryption operations on the data written to the on-chip SRAM fast access fusion flash space, the external RAM fast access fusion flash space or the non-fusion flash space in the FLASH chip 104. Encrypting the written data can prevent security vulnerabilities and attacks caused by data leakage or tampering, and enhance the security of the written data. The in-situ encryption and decryption module 1051 can also decrypt data read from the non-fusion flash space of the FLASH chip 104. The in-situ decryption module 109 decrypts data read from the external RAM fast access fusion flash space of the FLASH chip 104. The in-situ encryption and decryption module 1051 and the in-situ decryption module 109 can jointly ensure that the data is encrypted immediately when it is written into the FLASH chip 104, and decrypted immediately when it needs to be read. This immediacy ensures the security of the data during storage and transmission, reduces the risk of data leakage, and makes it difficult for attackers to crack the encrypted information in a short time even if the data is illegally obtained, thereby protecting the security of sensitive data. In addition, if the encrypted data is tampered with during the storage process, the original data cannot be restored during decryption, thereby ensuring the integrity and authenticity of the data. For program code and key data stored in external storage media, encryption processing can effectively prevent them from being illegally copied or misappropriated, protecting the intellectual property rights of developers and enterprises.
[0083] In this embodiment, data read from the on-chip SRAM fast access fusion flash space in the FLASH chip 104 does not need to be decrypted, because the data has been decrypted when it is synchronized to the fusion flash space of the on-chip SRAM memory 102. SRAM is a memory located on the chip, which is directly integrated on the processor or other integrated circuits, so it is physically protected and is usually not easily accessed or tampered by the outside.
[0084] In this embodiment, the method of performing a data write operation on the FLASH chip 104 using the configured fusion flash memory space includes: when writing data to the fast access fusion flash memory space, synchronizing the written data to the corresponding address area of the configured fusion flash memory space. When writing data to the on-chip SRAM fast access fusion flash memory space or the external RAM fast access fusion flash memory space in the FLASH chip 104, it is necessary to synchronize the written data to the address area used for fusion storage in the on-chip SRAM memory 102 or the external RAM memory 103. By synchronizing data to the fusion flash memory space, the delay time of data access can be significantly reduced and the response speed of the system can be improved.
[0085] In this embodiment, the bus remapping module 101 includes a fused space read mapping module 1011 , and the fused space read mapping module 1011 is used to obtain data read from the FLASH chip 104 .
[0086] In this embodiment, the FLASH controller 105 is configured with a flash cache control module 1052, which is used to temporarily store data read from the non-fused flash memory space of the FLASH chip 104. When the CPU controller 106 needs this data, it can first quickly obtain it from the flash cache control module 1052 without having to read it from the slower FLASH chip 104 every time, which greatly reduces the data access time and improves the system response speed. For frequently accessed data, storing it in the cache can significantly speed up the data access speed.
[0087] In this embodiment, there are three paths for reading data from the FLASH chip 104. The first path is to read data from the on-chip SRAM fast access fusion flash memory space, and send the read data to the bus matrix 108 through the fusion space read mapping module 1011, and finally transmit it to the CPU controller 106. The second path is to read data from the external RAM fast access fusion flash memory space, decrypt the read data through the in-situ decryption module 109, and then send it to the bus matrix 108 through the fusion space read mapping module 1011, and finally transmit it to the CPU controller 106. The third path is to read data from the non-fusion flash memory space, temporarily store the read data in the flash cache control module 1052, decrypt the read data through the in-situ encryption and decryption module 1051, and then send it to the bus matrix 108 through the fusion space read mapping module 1011, and finally transmit it to the CPU controller 106.
[0088] In this embodiment, if Figure 3As shown, a schematic diagram of the structural mapping of disabling the fusion flash memory space in an embodiment of the present invention is shown. The method of performing a disabling operation on the configured fusion flash memory space includes: clearing the configured fusion flash memory space to release the fusion flash memory space. The fusion flash memory space configured for the on-chip SRAM memory 102 and the external RAM memory 103 is disabled through hardware or application, so that the on-chip SRAM memory 102 and the external RAM memory 103 release the occupied memory and use it as a common memory, and access the data in the on-chip SRAM memory 102, the external RAM memory 103 or the FLASH chip 104 respectively through the bus matrix 108. Data is written into the on-chip SRAM memory 102 or the external RAM memory 103 through the bus matrix 108 and the bus remapping module 101, and data is written into the FLASH chip 104 through the application interface 107 and the FLASH controller 105, thereby supporting the dynamic switching of the SRAM or RAM used for caching to a general storage function, and enabling rapid resource allocation. When a program encounters a sudden large-capacity data demand, the system can quickly release a portion of the SRAM or RAM originally configured as the fused flash memory space to support the sudden large-capacity demand of the program, and directly use it as a common memory. This rapid resource allocation capability can ensure that the program obtains sufficient memory resources when needed, thereby meeting its performance requirements, and enhancing the flexibility and scalability of the system.
[0089] In this embodiment, exemplarily, the fusion flash space is disabled by an application or hardware: the data synchronized to the fusion flash space in the on-chip SRAM memory 102 or the external RAM memory 103 is deleted to release the occupied memory for use as ordinary memory, disabling the fusion flash space function.
[0090] It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" represent examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0091] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can represent: a, b, c, ab, ac, bc or abc, where a, b, c can be single or multiple.
[0092] It should also be understood that the division of modules in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional module in each embodiment of the present application may be integrated into a processor, or may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules.
[0093] The terms "component", "module", "system", etc. used in this specification are used to represent computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a component can be, but is not limited to, a process running on a processor, a processor, an object, an executable file, an execution thread, a program and / or a computer. By way of illustration, both applications running on a computing device and a computing device can be components. One or more components may reside in a process and / or an execution thread, and a component may be located on a computer and / or distributed between two or more computers. In addition, these components may be executed from various computer-readable media having various data structures stored thereon. Components may, for example, communicate through local and / or remote processes according to signals having one or more data packets (e.g., data from two components interacting with another component between a local system, a distributed system and / or a network, such as the Internet interacting with other systems through signals).
[0094] Those of ordinary skill in the art will appreciate that the various illustrative logical blocks and steps described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or in a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0095] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0096] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0097] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0098] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0099] In the above embodiments, the functions of each functional unit can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions (programs). When loading and executing computer program instructions (programs) on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. Computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integrations. Available media may be magnetic media (e.g., floppy disks, hard disks, tapes), optical media (e.g., high-density digital video discs (DVDs), or semiconductor media (e.g., solid state disks (SSDs), etc.).
[0100] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., and other media that can store program codes.
[0101] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0102] In summary, the present application provides a fusion storage system, which has the following advantages:
[0103] (1) By setting up an on-chip SRAM memory 102 and an external RAM memory 103, the bus remapping module 101 can configure a part of the address area of the on-chip SRAM memory 102 or the external RAM memory 103 as a fused flash memory space, which is used as a cache or mapping area of the FLASH chip 104, thereby expanding the effective memory capacity of the system and significantly reducing the manufacturing cost. In addition, the high-speed access characteristics of the SRAM or RAM are utilized to achieve fast access to the FLASH chip 104, thereby improving the access performance to the FLASH chip 104.
[0104] (2) The problem of being unable to access data when writing data in the FLASH chip is solved, and the read-while-write function of the FLASH chip 104 is realized, allowing the system to write data to other parts of the FLASH chip 104 (non-fused flash memory space) while reading data. This parallel processing method can significantly improve the overall efficiency of data processing, reduce the delay caused by waiting for the completion of the write data operation, and can more effectively utilize storage resources, improve processing efficiency and reduce overall energy consumption.
[0105] (3) The bus remapping module 101 can perform enabling and disabling operations on the configured fused flash space, thereby supporting the dynamic switching of the SRAM or RAM used for caching to a general storage function. When the program encounters a sudden large-capacity data demand, the system can quickly release a portion of the SRAM or RAM originally configured as the fused flash space to support the sudden large-capacity demand of the program, and directly use it as a normal memory, thereby realizing rapid resource allocation and enhancing the flexibility and scalability of the system.
[0106] (4) The application programming interface 107 is an application programming interface that can support most serial FLASH and is compatible with most serial FLASH chips on the market, thereby enhancing the scalability and compatibility of the system.
[0107] (5) The addition of an in-situ encryption and decryption module 1051 and an in-situ decryption module 109 ensures the security of data during storage and transmission, reduces the risk of data leakage, and makes it difficult for attackers to crack the encrypted information in a short time even if the data is illegally obtained, thereby protecting the security of sensitive data and solving the problem of user code or data being easily stolen when the program is stored in an external FLASH or using an external RAM as a FLASH cache.
[0108] (6) The bus remapping module 101 can intelligently map a specific address area of the SRAM memory or the external RAM memory 103 to a fast-access fusion flash memory space, which greatly reduces the workload of engineers in manually analyzing the code and modifying the link address. Engineers only need to specify the area to be mapped during the configuration phase, without having to make complex modifications at the code level or deeply understand the details of the underlying hardware to complete the configuration of the address mapping, which greatly reduces the learning cost of engineers and enables them to master new technologies more quickly and invest in actual projects. Through the flexible configuration of the mapping address, engineers can adjust the mapping range and size according to actual needs, thereby more accurately controlling the storage and execution location of the code.
[0109] (7) This application provides extensive support for mainstream serial FLASH through a set of application programming interfaces based on a serial FLASH engine. Users can flexibly select appropriate flash memory according to their needs (including but not limited to capacity, performance, voltage, etc.) to reduce total costs.
[0110] Therefore, the present application effectively overcomes various shortcomings in the prior art and has high industrial utilization value.
[0111] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.
Claims
1. A fusion storage system, characterized in that: include: Bus remapping module, on-chip SRAM memory and external RAM memory; The bus remapping module communicates with the on-chip SRAM memory and the external RAM memory; The bus remapping module is externally connected to a FLASH chip; The bus remapping module is used to configure a specific fusion flash memory space for the on-chip SRAM memory and / or the external RAM memory through an address mapping mechanism according to preset requirements, and after performing an enable operation on the configured fusion flash memory space, use the configured fusion flash memory space to perform a read data operation, a write data operation, or a read-time write data operation on the FLASH chip; the bus remapping module can also be used to perform a disable operation on the configured fusion flash memory space.
2. The fusion storage system according to claim 1, characterized in that: The following methods can be used to enable the configured Fusion Flash space: The address area in the configured fusion flash memory space is mapped to the address area corresponding to the FLASH chip, and the data in the address area corresponding to the FLASH chip is synchronized to the configured fusion flash memory space; wherein, the address area corresponding to the FLASH chip mapped to the fusion flash memory space is a fast access fusion flash memory space, and the fast access fusion flash memory space includes an on-chip SRAM fast access fusion flash memory space and an external RAM fast access fusion flash memory space; the address area in the FLASH chip other than the fast access fusion flash memory space is a non-fusion flash memory space.
3. The fusion storage system according to claim 2, characterized in that: The method of performing a read-time write data operation on the FLASH chip using the configured fusion flash memory space includes: If the memory occupied by the read data is less than or equal to the memory of the fast access fusion flash space, and the read data is located in the fast access fusion flash space, the write data operation to the non-fusion flash space of the FLASH chip is also supported; If the memory occupied by the read data is larger than the memory of the fast access fusion flash space, the data in the fast access fusion flash space can be read while supporting the write data operation to the non-fusion flash space of the FLASH chip.
4. The fusion storage system according to claim 1, characterized in that: The method of disabling the configured Fusion Flash space includes: clearing the configured Fusion Flash space to release the Fusion Flash space.
5. The fusion storage system according to claim 2, characterized in that: The method of performing a data write operation on the FLASH chip using the configured fusion flash memory space includes: when writing data to the fast access fusion flash memory space, synchronizing the written data to a corresponding address area of the configured fusion flash memory space.
6. The fusion storage system according to claim 2, characterized in that: It also includes a FLASH controller, and the bus remapping module is connected to the FLASH chip through the FLASH controller. The FLASH controller is used to decode according to the received operation instruction, lock the address specified in the FLASH chip according to the decoding result, and perform data reading operation, data writing operation or data writing operation at the currently locked address.
7. The fusion storage system according to claim 2, characterized in that: The FLASH controller is provided with an in-situ encryption and decryption module, which is used to perform encryption operations on data written into the FLASH chip and to perform decryption operations on data read from the non-fused flash memory space of the FLASH chip.
8. The fusion storage system according to claim 2, characterized in that: Also includes: The in-situ decryption module is respectively connected to the bus remapping module and the FLASH chip for performing a decryption operation on data read from the external RAM fast access fusion flash memory space of the FLASH chip.
9. The fusion storage system according to claim 2, characterized in that: It also includes a CPU controller, which is connected to the FLASH controller through an application program interface, and the CPU controller is connected to the bus remapping module through a bus matrix.
10. The fusion storage system according to claim 2, characterized in that: The bus remapping module includes a fused space read mapping module, and the fused space read mapping module is used to obtain data read from the FLASH chip.
Citation Information
Patent Citations
Method for realizing shadow stack memory on picture and circuit thereof
CN101114207A
Storage device, data processing method and computer readable storage medium
CN115793953A
Data access method and device, electronic equipment and storage medium
CN116049030A
Memory controller connected to in-chip storage
JP2007026364A
Method and system for performing data transfer with a flash storage medium
US20140149637A1
Cited By
Data storage device selection
CN120233948A
