Method for selectively and automatically loading content in nonvolatile memory

By dividing NVS into multiple groups of areas and binding them to the initial configuration of the chip, selective loading of data in different application scenarios is achieved, solving the problem of multiple NVS backups and improving the resource utilization efficiency of the chip.

CN119336655AActive Publication Date: 2025-01-21上海芯炽科技集团有限公司
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411427921.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-14
Publication Date
2025-01-21
Estimated Expiration
2044-10-14

AI Technical Summary

Technical Problem

In different application scenarios, the content stored in nonvolatile memory (NVS) needs to be switched frequently, resulting in the need to back up multiple NVS to store different data, resulting in wasting hardware resources.

Method used

By dividing the NVS into multiple groups of areas, and specifying the storage address and load data length for each area, the chip's initial configuration information is bound to the area delineated by the non-volatile memory. After the chip is powered on, it is configured based on the initial configuration. Accurately match the specified area for data loading to achieve selective loading of data.

Benefits of technology

It improves the efficiency of loading NVS data into the chip and reduces the occupation of chip pins. Especially when hardware resources are tight, efficient utilization of resources is achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119336655A_ABST
    Figure CN119336655A_ABST
Patent Text Reader

Abstract

The invention discloses a method for selectively and automatically loading contents in a nonvolatile memory, and belongs to the field of semiconductor memories. The method comprises the following steps of: dividing a nonvolatile memory into a plurality of groups of regions, respectively assigning storage addresses for different regions, and assigning a data loading length for each region; binding the initial configuration information of the chip with the delimited area of the nonvolatile memory; after the chip is powered on, according to different initial configurations, the chip is accurately matched to a designated area, according to a storage address, storage data and other information prompted in the area, the chip jumps to corresponding area data, data loading is carried out, and selective data loading of the area is achieved. According to the method, the NVS is divided into a plurality of areas and linked with the chip related configuration, so that the method for selectively loading the data is achieved, and the working efficiency of loading the NVS data into the chip is effectively improved; and meanwhile, occupation of chip pins is reduced, especially under the condition that hardware resources of the chip are insufficient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of semiconductor memory, and in particular to a method for selectively and automatically loading content into a non-volatile memory. Background Art

[0002] Non-volatile storage (NVS) is used to store common chip information and register configurations, so that the chip can work as expected according to the values ​​loaded in NVS each time it is powered on.

[0003] At present, the common way to load NVS in chips is sequential loading, that is, during the chip power-on process, the master device sends a set of instructions to access the slave device NVS. When the slave device replies to the request, it will load sequentially from the first storage unit of NVS according to the chip settings. After loading K bytes of data according to the predetermined program, it exits the current process and completes the loading of NVS content. Figure 1 shown.

[0004] However, in some application scenarios, the content of NVS burning is different according to different actual use requirements. In this case, it is necessary to change the storage data in NVS according to the application scenario. According to the traditional solution, multiple NVS need to be backed up to store the data to be loaded in different application scenarios. Summary of the invention

[0005] The object of the present invention is to provide a method for selectively and automatically loading content into a non-volatile memory to solve the problems in the background technology.

[0006] In order to solve the above technical problems, the present invention provides a method for selectively and automatically loading content into a non-volatile memory, comprising: The non-volatile memory is divided into a plurality of groups of regions, storage addresses are specified for different regions, and a load data length is specified for each region; Binding the initial configuration information of the chip to the area defined by the non-volatile memory; After the chip is powered on, it accurately matches the designated area according to the initial configuration, jumps to the corresponding area data according to the storage address, storage data and other information prompted in the area, and loads the data, thereby realizing selective loading of data in the area.

[0007] In one implementation, the characteristic parameters and the number of fields initialized by the chip exactly match the characteristic parameter values ​​and the number of fields required in a certain area of ​​the non-volatile storage area, thereby achieving an accurate match.

[0008] In one embodiment, the characteristic parameter value and the number of fields initialized by the chip are less than or greater than the number of fields of the parameters required for precise matching of the non-volatile memory. After the chip inquires about the precise matching area without success, it jumps to several groups of areas additionally expanded in the non-volatile memory; within the expanded area of ​​the non-volatile memory, there are multiple expanded areas that meet the requirements, and the chip randomly loads any area in the non-volatile memory that meets the requirements to achieve fuzzy matching.

[0009] In one implementation, the multiple groups of regions are respectively used to store data related to different configuration switching.

[0010] In one embodiment, each group of areas in the non-volatile memory is further provided with a switch for determining whether the chip is allowed to load data. When the initial configuration information accurately matches an area in the non-volatile memory, the switch is controlled to determine whether the usage scenario of this part of the parameters needs to be loaded.

[0011] The present invention provides a method for selectively and automatically loading content into a non-volatile memory, which is different from the common NVS loading method. For data switching in different usage scenarios, such as a sequential loading scheme, it is necessary to back up multiple NVSs for storing different data. Due to the mutual switching of data, multiple device addresses and multiple groups of I2Cs are required, and multiple device addresses and I2Cs need to occupy more hardware resources, which will cause a waste of chip resources. The present invention divides the NVS into multiple areas and links them with chip-related configurations to achieve a method for selectively loading data, thereby effectively improving the working efficiency of chip loading NVS data; at the same time, it reduces the occupancy of chip pins, especially when the hardware resources of the chip itself are tight. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 This is a schematic diagram of the sequential loading method commonly used in current chips to load NVS.

[0013] Figure 2 It is a schematic diagram of NVS selective automatic content loading provided by the present invention.

[0014] Figure 3 It is a schematic diagram of the fuzzy matching loading data for NVS expansion of multiple groups of regions provided by the present invention. DETAILED DESCRIPTION

[0015] The following is a further detailed description of a method for selectively automatically loading content into a non-volatile memory proposed by the present invention in conjunction with the accompanying drawings and specific embodiments. The advantages and features of the present invention will become clearer based on the following description. It should be noted that the accompanying drawings are in a very simplified form and are not in precise proportions, and are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention.

[0016] The present invention proposes a method for selectively and automatically loading content into a non-volatile memory. For multi-scenario applications that require repeated switching of multiple sets of parameters, one NVS can be used to complete the switching of multiple sets of data.

[0017] The steps of the method provided by the present invention are as follows: NVS is divided into multiple groups of areas: area 1, area 2, ..., area N, and storage addresses are specified for different areas respectively; at the same time, the amount of data to be loaded and whether to load the switch are specified for each area. Areas 1 to N are used to store data involving different configuration switches. The chip initial configuration information (Chip CFG) is bound to the area demarcated by NVS. After the chip is powered on, it is accurately matched to the specified area according to the different initial configurations. According to the storage address, storage data and other information prompted in the area, it jumps to the corresponding area data to load the data, thereby realizing selective loading of data in the area, such as Figure 2 As shown; finally exit the NVS loading process and execute the next step.

[0018] In different usage scenarios, some initial configurations of the chip may be the same, and only some configurations are different. In this case, differentiated data needs to be configured, and the storage data of the consistent part does not need to be loaded. The storage data in areas 1 to N cannot meet the needs of such applications. To meet such application scenarios, after the chip reads the data from area 1 to area N of NVS and still does not have an accurate match of data, multiple groups of areas can be expanded for NVS based on area N to handle such special situations. According to different situations of the same initial configuration of the chip, in the expanded area, according to situation 1, ..., situation N, the chip can perform fuzzy matching with the data in the expanded area according to different situations after querying area N to no avail, and complete the loading of data, such as Figure 3 Furthermore, fuzzy matching can only be performed within the extended area defined by the non-volatile memory, in order to increase the security of chip loading content and avoid erroneous loading.

[0019] Exact matching is as follows: If the characteristic parameters and the number of fields initialized by the chip exactly match the characteristic parameter values ​​and the number of fields required in a certain area of ​​the non-volatile storage area, accurate matching can be achieved.

[0020] For example: the chip initialization characteristic parameter values ​​are a, b, c, and the number of columns is 3. At this time, the characteristic values ​​required by a certain area in the non-volatile memory are a, b, c, and the number of columns is 3, so an accurate match is achieved.

[0021] Fuzzy matching is as follows: In some application scenarios, the characteristic parameter values ​​and number of fields initialized by the chip are less than or greater than the parameter fields required for precise matching of the non-volatile memory. At this time, after the chip queries the precise matching area without success, it will jump to the extended area, that is, the fuzzy matching area. There are multiple extended areas that meet the requirements in the non-volatile memory extended area, so the chip can randomly load any area in the non-volatile memory that meets the requirements, that is, fuzzy matching.

[0022] For example: the chip initialization characteristic parameter values ​​are a, b, c, d, and the number of fields is 4. At this time, there is no area that meets the requirements in the non-volatile memory precise matching area, and there are 2 areas in the extended area that meet the requirements: Area 1: The required feature values ​​are a, b, c, and the number of columns is 3, which meets the requirements; Area 2: The required feature values ​​are a, b, c, d, e, and f, and the number of columns is 6, which meets the requirements; Therefore, when loading the content of the non-volatile memory expansion area, the chip can load the data of area 1 that best matches the chip initialization characteristic value and the number of fields (based on the difference in characteristic value and field number) to achieve fuzzy matching.

[0023] The present invention divides a non-volatile memory into multiple areas, and associates some initial configurations before loading data into a chip with the divided non-volatile memory areas; when the chip loads a matching area, it directly jumps to the storage data in the matching area, and directly exits the non-volatile memory process after loading is completed, thereby completing the selective loading of the chip.

[0024] In addition, the data length and storage address are divided into each area to increase the security of non-volatile memory when loading. Data is loaded from the specified position and exited after a certain length of data is loaded to avoid continuing to load data in other areas after loading data in a certain area. The present invention also expands multiple groups of areas to meet the situation where the initial configuration of the chip is the same and no data loading is required. In the expanded area, according to different situations where the chip has the same configuration, fuzzy matching is performed with the data in the expanded area to complete the data loading.

[0025] In each area of ​​the non-volatile memory, a switch is added to determine whether the chip is allowed to load data in each area. When the Chip CFG accurately matches an area of ​​the non-volatile memory, the switch is controlled to determine whether the usage scenario of this part of the parameters needs to be loaded.

[0026] Through the present invention, it is possible to achieve selective loading of data according to different application scenarios when using one NVS.

[0027] The above description is only a description of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention. Any changes or modifications made by a person skilled in the art in the field of the present invention based on the above disclosure shall fall within the scope of protection of the claims.

Claims

1. A method for selectively and automatically loading content into a non-volatile memory, characterized in that: include: The non-volatile memory is divided into a plurality of groups of regions, storage addresses are specified for different regions, and a load data length is specified for each region; Binding the initial configuration information of the chip to the area defined by the non-volatile memory; After the chip is powered on, it accurately matches the designated area according to the initial configuration, jumps to the corresponding area data according to the storage address, storage data and other information prompted in the area, and loads the data, thereby realizing selective loading of data in the area.

2. The method for selectively and automatically loading content into a non-volatile memory according to claim 1, characterized in that: The characteristic parameters and the number of fields initialized by the chip exactly match the characteristic parameter values ​​and the number of fields required in a certain area of ​​the non-volatile storage area, achieving precise matching.

3. The method for selectively and automatically loading content into a non-volatile memory according to claim 1, wherein: The characteristic parameter value and number of fields initialized by the chip are less than or greater than the number of fields of the parameter required for accurate matching of the non-volatile memory. After the chip fails to query the accurate matching area, it jumps to several groups of areas additionally expanded in the non-volatile memory. There are multiple extension areas that meet the requirements in the non-volatile memory expansion area. The chip randomly loads any area that meets the requirements in the non-volatile memory to achieve fuzzy matching.

4. The method for selectively and automatically loading content into a non-volatile memory according to claim 1, wherein: The multiple groups of areas are respectively used to store data related to different configuration switching.

5. The method for selectively and automatically loading content into a non-volatile memory according to claim 2, wherein: Each group of areas of the non-volatile memory and each additional group of areas are also equipped with switches to determine whether the chip is allowed to load data. When the initial configuration information accurately matches an area in the non-volatile memory, the switch is controlled to determine whether the usage scenario of this part of the parameters needs to be loaded.

Citation Information

Patent Citations

  • Nonvolatile memory circuit and its design method

    CN101192196A

  • Data reading method, data writing method and storage controller

    CN107665091A

  • Method and device for automatically dividing storage domain of embedded system

    CN113485947A

  • Firmware loading method, memory and computer readable storage medium

    CN114416147A

  • Dynamic division method and device for data storage area of FPGA (Field Programmable Gate Array) on-chip memory

    CN118152302A