Data read-write method and device for chip storage area and computer equipment

By splitting the chip storage area into multiple sub-storage areas and performing data splitting, storage, and splicing processing, the problem of poor data reading and writing efficiency in traditional chip storage areas is solved, and efficient and secure data reading and writing effects are achieved.

CN119473155BActive Publication Date: 2025-10-14SOUTHERN POWER GRID DIGITAL GRID RESEARCH INSTITUTE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411609434.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-12
Publication Date
2025-10-14
Estimated Expiration
2044-11-12

AI Technical Summary

Technical Problem

Improving the data reading and writing efficiency of traditional chip storage areas is ineffective and costly.

Method used

The chip's storage area is divided into multiple sub-storage areas, and data is split and stored according to the data type and the remaining capacity of the area. Data is retrieved and spliced ​​through data identifiers and link identifiers.

Benefits of technology

It improves data storage efficiency and security, avoids the risk of data leakage, improves the integrity and accuracy of data reading and writing, and comprehensively improves data reading and writing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119473155B_ABST
    Figure CN119473155B_ABST
Patent Text Reader

Abstract

The application relates to a chip storage area data reading and writing method and device, computer equipment, a storage medium and a computer program product. The method comprises the following steps: according to a storage area splitting strategy, splitting the storage area of a chip into a plurality of sub-storage areas; according to the data types that can be stored by each sub-storage area and the area remaining capacity of each sub-storage area, performing data splitting on each to-be-stored data to obtain each sub-storage data of each to-be-stored data; storing each sub-storage data of each to-be-stored data into each sub-storage area respectively; in response to a data calling operation, determining the data type and data identifier of target calling data that needs to be called; according to the data type and data identifier of the target calling data, calling each target sub-storage data belonging to the target calling data in each target sub-storage area respectively; and splicing each target sub-storage data to obtain the target calling data. The method can improve the data reading and writing efficiency of the chip storage area.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the chip technical field, in particular to a chip storage area data read-write method and device, computer equipment, storage medium and computer program product. BACKGROUND

[0002] With the continuous upgrading of chip hardware, the anti-interference ability, operation efficiency, service life and application range of the chip are continuously improved, and the data read-write process needs to be performed in the chip storage area from time to time, which requires the read-write efficiency of the storage area to be fast, so as to meet the read-write requirements of the chip.

[0003] The traditional chip storage area data read-write efficiency improvement method is to increase the storage capacity of the storage area or apply a multi-threaded chip to improve the data read-write efficiency. However, this method requires a large amount of cost, and for conventional chips or conventional storage areas, it cannot solve the problem of improving the chip read-write efficiency, thereby resulting in poor chip storage area data read-write efficiency improvement effect.

[0004] Therefore, there is a problem of poor chip storage area data read-write efficiency improvement effect in the prior art. SUMMARY

[0005] Therefore, it is necessary to provide a chip storage area data read-write method and device, computer equipment, computer readable storage medium and computer program product capable of improving the chip storage area data read-write efficiency improvement effect.

[0006] A chip storage area data read-write method comprises:

[0007] Obtaining a storage area splitting strategy for a chip, and splitting the storage area of the chip into a plurality of sub-storage areas according to the storage area splitting strategy; any sub-storage area stores data belonging to the same data type;

[0008] Obtaining a plurality of to-be-stored data, and performing data splitting on each to-be-stored data according to the data type that each sub-storage area can store and the remaining capacity of each sub-storage area, to obtain each sub-storage data of each to-be-stored data; any sub-storage data is associated with a data ownership identifier and a data link identifier; the data ownership identifier associated with any sub-storage data is used to determine the to-be-stored data to which the sub-storage data belongs; and the data link identifier associated with any sub-storage data is used to determine the associated sub-storage data connected to the sub-storage data;

[0009] Storing each sub-storage data of each to-be-stored data in each sub-storage area to complete the storage of each to-be-stored data;

[0010] In response to the data retrieval operation, a data type and a data identifier corresponding to target retrieval data required to be retrieved by the data retrieval operation are determined;

[0011] According to the data type and the data identifier corresponding to the target retrieval data, each target sub-storage data belonging to the target retrieval data in each target sub-storage area is retrieved respectively;

[0012] According to the data link identifier associated with each target sub-storage data, each target sub-storage data is subjected to data splicing processing to obtain the target retrieval data.

[0013] In one of the embodiments, the storage area of the chip is split into a plurality of sub-storage areas according to a storage area splitting strategy, including:

[0014] The range proportion of each region range in the storage area in the storage area is determined, and the region capacity of each region range is determined according to the total capacity of the storage area and the range proportion corresponding to each region range; different region ranges are used to store data of different data types;

[0015] The preset sub-storage area capacity for different region ranges is determined, and each sub-storage area corresponding to each region range is obtained by dividing each region range according to the preset sub-storage area capacity of different region ranges and the region capacity; each sub-storage area in the same region range stores data of the same data type.

[0016] In one of the embodiments, each sub-storage data of each to-be-stored data is obtained by splitting the to-be-stored data according to the data type that each sub-storage area can store and the region remaining capacity of each sub-storage area, including:

[0017] According to the data type of each to-be-stored data, each data type data group is obtained by grouping each to-be-stored data;

[0018] The remaining region capacity of each sub-storage area corresponding to each data type is determined, and for any data type data group, each to-be-stored data in the data type data group is split to obtain each sub-storage data of each to-be-stored data in the data type data group according to the remaining region capacity of each sub-storage area corresponding to the data type and the data amount of the data type data group.

[0019] In one of the embodiments, in response to the data retrieval operation, a data type and a data identifier corresponding to target retrieval data required to be retrieved by the data retrieval operation are determined, including:

[0020] In response to the data retrieval operation, data retrieval requirement information corresponding to the data retrieval operation is obtained;

[0021] According to the data retrieval requirement information, the data identifier of the target retrieval data required to be retrieved is determined;

[0022] The data identifier is queried in the database to associate the data type, and the data type of the target data is determined.

[0023] In one embodiment, according to the data type corresponding to the target data and the data identifier, the target sub-storage data belonging to the target data is retrieved from each target sub-storage area, including:

[0024] According to the data type of the target data, the target sub-storage area in which the target data is stored is determined in each sub-storage area.

[0025] Based on the data identifier of the target data, the sub-storage data containing the data identifier is queried in each target sub-storage area as the target sub-storage data of the target data.

[0026] In one embodiment, the data link information of the target sub-storage data includes a front-end data link identifier and a back-end data link identifier, and the target sub-storage data is processed by data splicing according to the data link information of each target sub-storage data to obtain the target data, including:

[0027] According to the front-end data link identifier and the back-end data link identifier of each target sub-storage data, the front-end link target sub-storage data and the back-end link target sub-storage data corresponding to each target sub-storage data are determined.

[0028] According to the front-end link target sub-storage data and the back-end link target sub-storage data corresponding to each target sub-storage data, the target sub-storage data is spliced to obtain the data splicing result as the target data.

[0029] A chip storage area data reading and writing device, the device comprising:

[0030] The first acquisition module is configured to acquire a storage area splitting strategy for the chip, and split the storage area of the chip into a plurality of sub-storage areas according to the storage area splitting strategy; any sub-storage area stores data belonging to the same data type;

[0031] The second acquisition module is configured to acquire a plurality of to-be-stored data, and perform data splitting on each to-be-stored data according to the data type that each sub-storage area can store and the remaining capacity of each sub-storage area, to obtain each sub-storage data of each to-be-stored data; any sub-storage data is associated with a data ownership identifier and a data link identifier; the data ownership identifier associated with any sub-storage data is used to determine the to-be-stored data to which the sub-storage data belongs; and the data link identifier associated with any sub-storage data is used to determine the associated sub-storage data connected to the sub-storage data.

[0032] A storage module, used for storing each sub-storage data of each data to be stored in each sub-storage area, so as to complete the storage of each data to be stored;

[0033] A response module, configured to determine, in response to a data retrieval operation, a data type and a data identifier corresponding to target retrieved data required by the data retrieval operation;

[0034] A retrieving module, configured to retrieve, according to the data type and data identifier corresponding to the target retrieved data, each target sub-storage data belonging to the target retrieved data in each target sub-storage area;

[0035] The splicing module is used to splice the target sub-storage data according to the data link identifier associated with each target sub-storage data to obtain the target retrieval data.

[0036] A computer device includes a memory and a processor, wherein the memory stores a computer program and the processor implements the steps of the above method when executing the computer program.

[0037] A computer-readable storage medium stores a computer program, which implements the steps of the above method when executed by a processor.

[0038] A computer program product comprises a computer program, which implements the steps of the above method when executed by a processor.

[0039] The data reading and writing method, device, computer equipment, storage medium and computer program product of the above-mentioned chip storage area split the storage area of ​​the chip into sub-storage areas for storing different data types, and split the data to be stored of each data type for storage, so that when storing data, multiple storage areas can store data at the same time, thereby improving the efficiency of data storage, and the split storage can avoid the risk of data leakage, thereby improving the security and efficiency of data storage; then, when retrieving data, data is retrieved through data identification, and data splicing is performed based on the data link information of each target sub-storage data, so that data from multiple areas can be extracted at the same time, thereby improving data extraction efficiency; then, the risk of extracted data disorder is avoided by data splicing, while improving data reading and writing efficiency and storage data security, it effectively improves the integrity of data reading and writing and data reading accuracy, thereby comprehensively improving the data reading and writing efficiency of the chip storage area. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0041] Figure 1 A diagram illustrating an application environment of a method for reading and writing data in a chip storage area according to an embodiment;

[0042] Figure 2 1 is a flow chart of a method for reading and writing data in a chip storage area according to an embodiment;

[0043] Figure 3 1 is a flow chart of a storage area splitting step in one embodiment;

[0044] Figure 4 1 is a flow chart of a method for reading and writing data in a chip storage area according to another embodiment;

[0045] Figure 5 A structural block diagram of a data reading and writing device for a chip storage area in one embodiment;

[0046] Figure 6 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0048] The data reading and writing method of the chip storage area provided in the embodiment of the present application can be applied to Figure 1application environment. The method can be applied to the terminal 102, can be applied to the server 104, can also be applied to a system including the terminal 102 and the server 104, and is implemented through interaction of the terminal 102 and the server 104. Wherein, the terminal 102 splits the traditional storage area into sub-storage areas of different storage data types, and then splits the to-be-stored data of each data type for storage, so that when data storage is performed, multiple storage areas can simultaneously store data, improving the efficiency of data storage. Moreover, the split area storage can ensure that the storage area can avoid the risk of data being broken when the data exists in the risk of leakage, improving the security and efficiency of data storage. Then when data is retrieved, data is retrieved through data identification information, and based on the data link information of each target sub-storage data, data splicing is performed, which not only enables multiple regions of the same data to be extracted simultaneously, improving the data extraction efficiency. Then through data splicing, the risk of out-of-sequence data extraction can be avoided, improving the data read-write efficiency, storage data security, data read-write integrity and data reading accuracy, thereby comprehensively improving the data read-write efficiency of the chip storage area. Wherein, the terminal 102 can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things device can be a smart speaker, a smart television, a smart air conditioner, a smart vehicle device, etc. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, etc. The server 104 can be implemented by an independent server or a server cluster composed of multiple servers.

[0049] In one exemplary embodiment, as shown in Figure 2 , a chip storage area data read-write method is provided. The method is applied to the terminal 102 in Figure 1 for example, and includes the following steps 202 to 206. Wherein:

[0050] Step S202, obtain a storage area splitting strategy for the chip, and split the storage area of the chip into multiple sub-storage areas according to the storage area splitting strategy; any sub-storage area stores data belonging to the same data type.

[0051] Wherein, each sub-storage area corresponds to a storage data type, and sub-storage areas of the same storage data type have the same size. Sub-storage areas of different storage data types can have the same size or different sizes.

[0052] Optionally, the terminal needs to acquire the chip specification information of the chip first, the chip specification information including the storage area size, the storage area type and the data type that the storage area can store, and then the terminal acquires the storage area splitting strategy of the chip and splits the storage area of the chip into a plurality of sub-storage areas according to the storage area splitting strategy.

[0053] In step S204, a plurality of to-be-stored data are acquired, and each to-be-stored data is data-split according to the data type that each sub-storage area can store and the area remaining capacity of each sub-storage area, to obtain each sub-storage data of each to-be-stored data; any sub-storage data is associated with a data ownership identifier and a data link identifier; the data ownership identifier associated with any sub-storage data is used to determine the to-be-stored data to which the sub-storage data belongs; and the data link identifier associated with any sub-storage data is used to determine the associated sub-storage data connected with the sub-storage data.

[0054] The data splitting process can be a uniform process or a non-uniform process.

[0055] Each sub-storage data can include the data identifier information of the to-be-stored data to which the sub-storage data belongs and the data link identifier of the sub-storage data connected with the sub-storage data at the time of splitting. The data link identifier can be a code identifier, a symbol identifier, a letter identifier, a character segment identifier, etc. The data link identifier of the sub-storage data connected with the front end of the sub-storage data and the data link identifier of the sub-storage data connected with the rear end of the sub-storage data are different. The data link identifiers of each sub-storage data in the same data identifier information are all different.

[0056] Optionally, the terminal acquires a plurality of to-be-stored data by a data monitoring device preset in the chip, and then data splits each to-be-stored data according to the storage data type of each sub-storage area and the remaining area capacity of each sub-storage area, to obtain the sub-storage data of each sub-storage area corresponding to each to-be-stored data.

[0057] In step S206, each sub-storage data of each to-be-stored data is stored in each sub-storage area respectively, to complete the storage of each to-be-stored data.

[0058] The remaining area capacity of each sub-storage area is the capacity of each sub-storage area after subtracting the data capacity of the current storage data of each sub-storage area from all the storage capacity of each sub-storage area.

[0059] Optionally, the terminal stores each sub-storage data of each to-be-stored data in the sub-storage area corresponding to each sub-storage data respectively, to complete the storage operation of each to-be-stored data.

[0060] Step S208 : In response to the data retrieval operation, determining the data type and data identifier corresponding to the target data to be retrieved by the data retrieval operation.

[0061] The user's data retrieval operation includes data request information for each target data retrieval requested by the user. This data request information includes a data identifier for each target data retrieval requested by the user. The data identifier can be a symbol identifier, a text identifier, a color identifier, an alphabetic identifier, etc. The data identifier is used to identify the target data retrieval corresponding to each sub-storage data in the sub-storage area.

[0062] Optionally, the terminal collects the data type and data identifier of each target retrieved data in response to the user's data retrieval operation.

[0063] Step S210 , according to the data type and data identifier corresponding to the target retrieved data, retrieve the target sub-storage data belonging to the target retrieved data in each target sub-storage area respectively.

[0064] Optionally, the terminal determines each target sub-storage area for storing data of the data type according to the data type corresponding to the target retrieved data, and retrieves each target sub-storage data in each target sub-storage area according to the data identifier of the target retrieved data.

[0065] Step S212: performing data splicing processing on each target sub-storage data according to the data link identifier associated with each target sub-storage data to obtain target retrieved data.

[0066] Optionally, the terminal performs data splicing processing on each target sub-storage data based on the data link information of each target sub-storage data, and the obtained data splicing result is the target retrieval data.

[0067] In the data reading and writing method of the above-mentioned chip storage area, the storage area of ​​the chip is divided into sub-storage areas for storing different data types, and the data to be stored of each data type is split and stored, so that when data is stored, multiple storage areas can perform data storage at the same time, thereby improving the efficiency of data storage, and the split storage can avoid the risk of data leakage, thereby improving the security and efficiency of data storage; then, when retrieving data, data is retrieved through data identification, and data splicing is performed based on the data link information of each target sub-storage data, so that data from multiple areas can be extracted at the same time, thereby improving data extraction efficiency; then, the risk of extracted data disorder is avoided through data splicing, while improving data reading and writing efficiency and storage data security, it effectively improves the integrity of data reading and writing and data reading accuracy, thereby comprehensively improving the data reading and writing efficiency improvement effect of the chip storage area.

[0068] In an exemplary embodiment, Figure 3 As shown, step S202 includes steps S302 to S304. Among them:

[0069] Step S302 : determining the range proportion of each area range in the storage area, and determining the area capacity of each area range according to the total capacity of the storage area and the range proportion corresponding to each area range.

[0070] Each storage area is pre-set on the chip and can be the same or different in size. All areas are non-overlapping, non-intersecting, and adjacent. The edges of each area are adjacent. Different areas are used to store data of different types.

[0071] In actual applications, the terminal identifies the currently stored data in each area range, and based on the data type of the currently stored data in each area range, identifies the data type that each area range can store. Then, the terminal determines the data type that each area range can store by identifying the data type of the currently stored data in each area range.

[0072] Optionally, the terminal identifies the regional capacity of each area range based on the total capacity of the storage area, and splits the capacity of each area range based on the regional capacity of each area range to obtain sub-storage areas corresponding to each area range. The regional capacity of each area range is calculated by multiplying the proportion of each area range in the storage area by the total capacity of the storage area.

[0073] Step S304, determine the preset sub-storage area capacity for different area ranges, and divide each area range according to the preset sub-storage area capacity and area capacity of different area ranges to obtain sub-storage areas corresponding to each area range; each sub-storage area within the same area range stores data of the same data type.

[0074] The sub-storage areas belonging to the same area range are adjacently arranged in the same area range and are sub-areas obtained after the grid is split.

[0075] Optionally, the terminal determines a preset sub-storage area capacity for each area range, and then the terminal equally splits each area range according to the area capacity of each area range and the preset sub-storage area capacity to obtain sub-storage areas corresponding to each area range.

[0076] In this embodiment, since different area ranges are preset storage ranges for storing data of different data types, each area range can be evenly divided into sub-storage areas based on the preset sub-storage area capacity and area capacity corresponding to each area range.

[0077] In one embodiment, each data to be stored is split according to the data type that can be stored in each sub-storage area and the remaining area capacity of each sub-storage area to obtain each sub-storage data of each data to be stored, including: grouping each data to be stored according to the data type of each data to be stored to obtain a data group of each data type; determining the remaining area capacity of each sub-storage area corresponding to each data type, and for a data group of any data type, splitting each data to be stored in the data group of the data type according to the remaining area capacity of each sub-storage area corresponding to the data type and the data amount of the data group of the data type to obtain each sub-storage data of each data to be stored in the data group of the data type.

[0078] Optionally, the terminal groups the data to be stored according to the data type of each data to be stored to obtain data groups of each data type. Then, based on the remaining area capacity of each sub-storage area corresponding to each data type, the terminal splits the data to be stored in the data group of each data type through the regional data splitting strategy to obtain each sub-storage data of each data to be stored, and determines the sub-storage area corresponding to each sub-storage data.

[0079] The data splitting strategy for this region is:

[0080] First, the data to be stored in the data group is sorted in ascending order of data volume to obtain a storage sequence for the data group;

[0081] Then, the terminal performs data splitting processing on each data to be stored in the data group based on the sub-storage area corresponding to the data type to which the data group belongs and the number of sub-storage areas corresponding to each data type in the data group, to obtain initial sub-storage data of each sub-storage area; wherein, the data splitting method is to split each data to be stored, and the number of splits of each data to be stored is the number of sub-storage areas of the data type to which the data to be stored belongs. In this way, it can be ensured that each data to be stored is stored in each sub-storage area corresponding to the data type of the data to be stored, so as to ensure that each sub-storage area can store part of the storage data of each data to be stored; wherein, the initial sub-storage data of any sub-storage area is the part of the storage data that needs to be stored in the sub-storage area. For example, data type A corresponds to 5 sub-storage areas. Each data to be stored in the data group of data type A needs to be equally divided into 5 parts, and each part is respectively distributed to each sub-storage area. Then, the initial sub-storage data of each sub-storage area is 1 part of the data to be stored.

[0082] Then, the terminal calculates the initial total amount of data to be stored in each sub-storage area based on the amount of sub-data of each initial sub-storage data, where the initial total amount of data to be stored is the sum of the amount of sub-data of each initial sub-storage data;

[0083] Then, a sub-storage area that cannot be used for storage is determined in each sub-storage area. For example, if the remaining area capacity of sub-storage area A is 500 Mb, and the initial total amount of data to be stored in sub-storage area A is 550 Mb, then if the remaining area capacity of sub-storage area A cannot fully store all the initial sub-storage data, then sub-storage area A is a sub-storage area that cannot be used for storage.

[0084] Then, for the sub-storage area that cannot be stored, the deviation between the remaining area capacity of the sub-storage area and the initial total amount of data to be stored in the sub-storage area is calculated. For example, if the remaining area capacity of sub-storage area A is 500 Mb, and the initial total amount of data to be stored in sub-storage area A is 550 Mb, then the deviation between the remaining area capacity of sub-storage area A and the initial total amount of data to be stored in sub-storage area A is -50 Mb.

[0085] Then, based on the deviation value, identify the auxiliary sub-storage area whose remaining area capacity is higher than the initial total amount of data to be stored; the data type that the auxiliary sub-storage area can store is the same as the data type that the sub-storage area that cannot store data can store, that is, the two store data of the same data type; the remaining area capacity of the identified auxiliary sub-storage area needs to be greater than the sum of the initial total amount of data to be stored in the auxiliary sub-storage area and the deviation value; the deviation value corresponding to each auxiliary sub-storage area is greater than the deviation value corresponding to the sub-storage area that cannot store data, and the value of the deviation value is positive. The deviation value includes positive and negative values. A positive value indicates that the remaining area capacity of the sub-storage area is greater than the initial total amount of data to be stored in the sub-storage area, and a negative value indicates that the remaining area capacity of the sub-storage area is less than the initial total amount of data to be stored in the sub-storage area.

[0086] Then, from the sub-storage areas that cannot be stored, in descending order of the data size of each sub-data to be stored, the sub-data to be stored with the largest data size is selected as the data to be exchanged, and from the auxiliary sub-storage areas, in descending order of the data size of each sub-data to be stored in the auxiliary sub-storage areas, the sub-data to be stored with the smallest data size is selected as the data to be exchanged;

[0087] Then, data exchange processing is performed on the data to be exchanged in the sub-storage area that cannot be stored and the data to be exchanged in the auxiliary sub-storage area to obtain sub-storage data corresponding to each sub-storage area.

[0088] In this embodiment, data is split and stored by identifying the remaining area capacity of each sub-storage area and the amount of data to be stored of each data type. While ensuring that the data to be stored can be stored normally, it ensures that each sub-storage area can accommodate all the sub-storage data.

[0089] In one embodiment, in response to a data retrieval operation, determining the data type and data identifier corresponding to the target retrieval data required for the data retrieval operation includes: in response to the data retrieval operation, obtaining data retrieval requirement information corresponding to the data retrieval operation; determining the data identifier of the target retrieval data required to be retrieved based on the data retrieval requirement information; and querying the data type associated with the data identifier in a database to determine the data type of the target retrieval data.

[0090] Optionally, in response to a user's data retrieval operation, the terminal obtains the user's data retrieval request information and identifies the data identifiers of each target retrieval data corresponding to the data retrieval request information. The terminal then queries the database for the data type corresponding to each data identifier and, based on the data type corresponding to each data identifier, determines the data type of each target retrieval data. The database stores the data type corresponding to each data identifier. For example, the data identifier information of an image data type is text identifier information, the data identifier information of a text data type is symbol identifier information, and the data identifier information of an audio data type is letter representation information.

[0091] In this embodiment, the data type corresponding to each target retrieved data is identified through the data identifier in the data retrieval requirement information, thereby improving the recognition efficiency and recognition accuracy.

[0092] In one of the embodiments, according to the data type and data identifier corresponding to the target retrieved data, each target sub-storage data belonging to the target retrieved data in each target sub-storage area is retrieved respectively, including: according to the data type of the target retrieved data, in each sub-storage area, each target sub-storage area storing the target retrieved data is determined; based on the data identifier of the target retrieved data, in each target sub-storage area, the sub-storage data containing the data identifier is searched as the target sub-storage data of the target retrieved data.

[0093] Optionally, for each target retrieved data, the terminal screens each target sub-storage area corresponding to the data type of the target retrieved data in each sub-storage area based on the data type of the target retrieved data. Then, based on the data identifier of the target retrieved data, the terminal queries the sub-storage data containing the data identifier of the target retrieved data in each sub-storage area respectively, and uses the sub-storage data containing the data identifier of the target retrieved data as the target sub-storage data of the target retrieved data.

[0094] In the embodiment, the sub-storage data of different sub-storage areas is read simultaneously through the data identifier, and the reading efficiency of the target calling data is improved.

[0095] In one of the embodiments, the data link information of the target sub-storage data includes a front-end data link identifier and a rear-end data link identifier, and the target sub-storage data is processed for data splicing according to the data link information of the target sub-storage data to obtain the target calling data, including: determining the front-end link target sub-storage data and the rear-end link target sub-storage data corresponding to each target sub-storage data according to the front-end data link identifier and the rear-end data link identifier of each target sub-storage data; and processing each target sub-storage data for splicing according to the front-end link target sub-storage data and the rear-end link target sub-storage data corresponding to each target sub-storage data to obtain a data splicing result as the target calling data.

[0096] Optionally, the terminal identifies the front-end link target sub-storage data corresponding to each target sub-storage data and the rear-end link target sub-storage data corresponding to each target sub-storage data based on the front-end data link identifier of each target sub-storage data and the rear-end data link identifier of each target sub-storage data, and then the terminal processes each target sub-storage data for data splicing based on the front-end link target sub-storage data corresponding to each target sub-storage data and the rear-end link target sub-storage data corresponding to each target sub-storage data to obtain the data content of the target storage data corresponding to each data identifier information, and completes the calling operation of each target storage data.

[0097] In actual application, the terminal divides each target sub-storage data into the target sub-storage data corresponding to each data identifier, and for any data identifier, identifies the front-end data link identifier of each target sub-storage data and the rear-end data link identifier of each target sub-storage data in each target sub-storage data of the data identifier.

[0098] The target sub-storage data of the data types including the sequence of the data types such as the text data type, the audio data type, and the video data type includes the front-end data link identifier and the rear-end data link identifier, and the front-end data link identifier and the rear-end data link identifier in the target sub-storage data of the data types including the sequence of the data types only include the identification identifier.

[0099] The target sub-storage data of data types without a sequence, such as picture data types and table data types, include edge data link identifiers. The edge data connection identifiers include data link identifiers between each adjacent sub-storage data. For example, if an image is split into grid-shaped target sub-storage data, then the four sides of each target sub-storage data correspond to an edge data link identifier. The edge data link identifier includes an identification identifier and an orientation identifier. The identification identifier is used to identify the identification information of two adjacent target sub-storage data, and the orientation identifier is a direction identifier of the splicing direction of the two target sub-storage data. The orientation identifier information can be a string of edge character strings distributed on the data edge of the target sub-storage data. When two adjacent target sub-storage data are spliced, data splicing can be performed if the characters of the edge adjacent position points in the edge character strings of the two data edges are the same.

[0100] In this embodiment, data splicing processing of each target sub-storage data is performed through the data link information of each target sub-storage data, thereby avoiding the problem of data reading anomalies and improving the comprehensiveness and accuracy of the retrieved target storage data.

[0101] In another embodiment, Figure 4 As shown, a method for reading and writing data in a chip storage area is provided, and the method is applied to Figure 1 Taking the terminal 102 in FIG. 1 as an example, the method includes the following steps:

[0102] Step S402 , obtaining a storage area splitting strategy for the chip, and splitting the storage area of ​​the chip into multiple sub-storage areas according to the storage area splitting strategy; data of the same data type is stored in any sub-storage area.

[0103] Step S404, obtain multiple data to be stored, and split each data to be stored according to the type of data that can be stored in each sub-storage area and the remaining capacity of each sub-storage area to obtain each sub-storage data to be stored; any sub-storage data is associated with a data ownership identifier and a data link identifier; the data ownership identifier associated with any sub-storage data is used to determine the data to be stored to which the sub-storage data belongs; the data link identifier associated with any sub-storage data is used to determine the associated sub-storage data connected to the sub-storage data.

[0104] Step S406 , storing each sub-storage data of each data to be stored in each sub-storage area respectively, so as to complete the storage of each data to be stored.

[0105] Step S408 : In response to the data retrieval operation, determining the data type and data identifier corresponding to the target data to be retrieved by the data retrieval operation.

[0106] Step S410 , determining each target sub-storage area storing the target retrieved data in each sub-storage area according to the data type of the target retrieved data.

[0107] Step S412 , based on the data identifier of the target retrieved data, in each target sub-storage area, search for sub-storage data containing the data identifier as the target sub-storage data of the target retrieved data.

[0108] Step S414: performing data splicing processing on each target sub-storage data according to the data link identifier associated with each target sub-storage data to obtain target retrieved data.

[0109] It should be noted that the specific definition of the above steps can refer to the specific definition of the data reading and writing method of a chip storage area above.

[0110] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.

[0111] Based on the same inventive concept, embodiments of the present application also provide a device for reading and writing data from a chip storage area, for implementing the aforementioned method for reading and writing data from a chip storage area. The solution provided by this device is similar to the solution described in the aforementioned method. Therefore, the specific limitations of the embodiments of the device for reading and writing data from one or more chip storage areas provided below can be found in the aforementioned method for reading and writing data from a chip storage area, and will not be further elaborated here.

[0112] In an exemplary embodiment, Figure 5 As shown, a data reading and writing device for a chip storage area is provided, comprising: a first acquisition module 502, a second acquisition module 504, a storage module 506, a response module 508 and a call module 510, wherein:

[0113] The first acquisition module 502 is configured to acquire a storage area splitting strategy for the chip and split the storage area of ​​the chip into a plurality of sub-storage areas according to the storage area splitting strategy; data of the same data type is stored in any sub-storage area;

[0114] The second acquisition module 504 is configured to acquire a plurality of data to be stored, and to split each data to be stored according to the data types that can be stored in each sub-storage area and the remaining capacity of each sub-storage area, to obtain sub-storage data of each data to be stored; any sub-storage data is associated with a data ownership identifier and a data link identifier; the data ownership identifier associated with any sub-storage data is used to determine the data to be stored to which the sub-storage data belongs; and the data link identifier associated with any sub-storage data is used to determine the associated sub-storage data connected to the sub-storage data;

[0115] The storage module 506 is used to store each sub-storage data of each data to be stored in each sub-storage area, so as to complete the storage of each data to be stored;

[0116] A response module 508 is configured to determine, in response to the data retrieval operation, a data type and a data identifier corresponding to the target retrieved data required by the data retrieval operation;

[0117] The retrieval module 510 is used to retrieve the target sub-storage data belonging to the target retrieved data in each target sub-storage area according to the data type and data identifier corresponding to the target retrieved data;

[0118] The splicing module 512 is used to perform data splicing processing on each target sub-storage data according to the data link identifier associated with each target sub-storage data to obtain target retrieved data.

[0119] In one embodiment, the first acquisition module 502 is specifically used to determine the range proportion of each area range in the storage area, and determine the area capacity of each area range based on the total capacity of the storage area and the range proportion corresponding to each area range; different area ranges are used to store data of different data types; the preset sub-storage area capacity for different area ranges is determined, and each area range is divided according to the preset sub-storage area capacity and area capacity of different area ranges to obtain each sub-storage area corresponding to each area range; each sub-storage area within the same area range stores data of the same data type.

[0120] In one embodiment, the second acquisition module 504 is specifically used to group the data to be stored according to the data type of each data to be stored to obtain data groups of each data type; determine the remaining area capacity of each sub-storage area corresponding to each data type, and for a data group of any data type, split the data to be stored in the data group of the data type according to the remaining area capacity of each sub-storage area corresponding to the data type and the data volume of the data group of the data type to obtain sub-storage data of each data to be stored in the data group of the data type.

[0121] In one embodiment, the response module 508 is specifically used to respond to the data retrieval operation, obtain data retrieval requirement information corresponding to the data retrieval operation; determine the data identifier of the target retrieval data to be retrieved based on the data retrieval requirement information; query the data type associated with the data identifier in the database, and determine it as the data type of the target retrieval data.

[0122] In one embodiment, the retrieval module 510 is specifically used to determine, in each sub-storage area, the target sub-storage areas storing the target retrieved data based on the data type of the target retrieved data; and based on the data identifier of the target retrieved data, in each target sub-storage area, query the sub-storage data containing the data identifier as the target sub-storage data of the target retrieved data.

[0123] In one embodiment, the data link information of the target sub-storage data includes a front-end data link identifier and a back-end data link identifier. The splicing module 512 is specifically used to determine the front-end link target sub-storage data and the back-end link target sub-storage data corresponding to each target sub-storage data based on the front-end data link identifier and the back-end data connection identifier of each target sub-storage data; and splice each target sub-storage data according to the front-end link target sub-storage data and the back-end link target sub-storage data corresponding to each target sub-storage data to obtain a data splicing result as the target retrieval data.

[0124] Each module in the data reading and writing device for the chip storage area can be implemented in whole or in part through software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.

[0125] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 6As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O) and a communication interface. The processor, memory and input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store data in the chip storage area and read and write data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a method for reading and writing data in the chip storage area is implemented.

[0126] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0127] In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor performs the steps of the aforementioned method for reading and writing data from a chip storage area. The steps of the aforementioned method for reading and writing data from a chip storage area may be the steps of the aforementioned method for reading and writing data from a chip storage area in each of the aforementioned embodiments.

[0128] In one embodiment, a computer-readable storage medium is provided, storing a computer program. When executed by a processor, the computer program causes the processor to perform the steps of the aforementioned method for reading and writing data from a chip storage area. The steps of the aforementioned method for reading and writing data from a chip storage area may be the steps of the aforementioned method for reading and writing data from a chip storage area in each of the aforementioned embodiments.

[0129] In one embodiment, a computer program product is provided, including a computer program. When executed by a processor, the computer program causes the processor to perform the steps of the aforementioned method for reading and writing data from a chip storage area. The steps of the aforementioned method for reading and writing data from a chip storage area may be the steps of the aforementioned method for reading and writing data from a chip storage area.

[0130] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the above-mentioned embodiments. In particular, any reference to memory, database, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The databases involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processors involved in the various embodiments provided herein may be, but are not limited to, general-purpose processors, central processing units (CPUs), graphics processing units (GPUs), digital signal processors (DSPs), programmable logic devices (PLDs), data processing logic devices based on quantum computing, and the like.

[0131] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0132] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.

Claims

1. A method for reading and writing data in a chip storage area, characterized in that: The method comprises: Obtaining a storage area splitting strategy for a chip, and splitting the storage area of ​​the chip into multiple sub-storage areas according to the storage area splitting strategy, including: determining the range proportion of each area range in the storage area, and determining the area capacity of each area range based on the total capacity of the storage area and the range proportion corresponding to each area range; different area ranges are used to store data of different data types; determining preset sub-storage area capacities for the different area ranges, and dividing each area range based on the preset sub-storage area capacities and area capacities of the different area ranges to obtain each sub-storage area corresponding to each area range; each sub-storage area within the same area range stores data of the same data type; any sub-storage area stores data of the same data type; Acquire multiple data to be stored, and split each data to be stored according to the type of data that can be stored in each sub-storage area and the remaining area capacity of each sub-storage area to obtain each sub-storage data of each data to be stored; any of the sub-storage data is associated with a data ownership identifier and a data link identifier; the data ownership identifier associated with any of the sub-storage data is used to determine the data to be stored to which the sub-storage data belongs; the data link identifier associated with any of the sub-storage data is used to determine the associated sub-storage data connected to the sub-storage data; storing each sub-storage data of each data to be stored in each sub-storage area respectively, so as to complete the storage of each data to be stored; In response to a data retrieval operation, determining a data type and a data identifier corresponding to target retrieved data required by the data retrieval operation; Retrieving, according to the data type and data identifier corresponding to the target retrieved data, each target sub-storage data belonging to the target retrieved data in each target sub-storage area; According to the data link identifier associated with each target sub-storage data, each target sub-storage data is subjected to data splicing processing to obtain the target retrieval data.

2. The method according to claim 1, characterized in that The step of splitting the data to be stored according to the type of data that can be stored in each sub-storage area and the remaining capacity of each sub-storage area to obtain each sub-storage data of the data to be stored includes: Grouping the data to be stored according to the data type of each data to be stored to obtain data groups of each data type; Determine the remaining area capacity of each sub-storage area corresponding to each data type. For a data group of any data type, split the data to be stored in the data group of the data type according to the remaining area capacity of each sub-storage area corresponding to the data type and the data amount of the data group of the data type to obtain the sub-storage data of each data to be stored in the data group of the data type.

3. The method according to claim 1, characterized in that In response to the data retrieval operation, determining the data type and data identifier corresponding to the target retrieved data required by the data retrieval operation includes: In response to the data retrieval operation, obtaining data retrieval requirement information corresponding to the data retrieval operation; Determining the data identifier of the target data to be retrieved according to the data retrieval requirement information; The data type associated with the data identifier is queried in a database to determine the data type of the target retrieved data.

4. The method according to claim 1, wherein Retrieving the target sub-storage data belonging to the target retrieved data in each target sub-storage area according to the data type and data identifier corresponding to the target retrieved data, respectively, includes: According to the data type of the target retrieved data, in each of the sub-storage areas, determining each target sub-storage area storing the target retrieved data; Based on the data identifier of the target retrieved data, the sub-storage data containing the data identifier is searched in each target sub-storage area as the target sub-storage data of the target retrieved data.

5. The method according to claim 1, wherein The data link information of the target sub-storage data includes a front-end data link identifier and a back-end data link identifier. The data link information of each target sub-storage data is used to perform data splicing processing on each target sub-storage data to obtain the target retrieved data, including: Determining the front-end linked target sub-storage data and the back-end linked target sub-storage data corresponding to each target sub-storage data according to the front-end data link identifier and the back-end data link identifier of each target sub-storage data; According to the front-end link target sub-storage data and the back-end link target sub-storage data corresponding to each target sub-storage data, each target sub-storage data is spliced ​​to obtain a data splicing result as the target retrieval data.

6. A data reading and writing device for a chip storage area, characterized in that: The device comprises: A first acquisition module is used to obtain a storage area splitting strategy for a chip, and split the storage area of ​​the chip into multiple sub-storage areas according to the storage area splitting strategy; any of the sub-storage areas stores data of the same data type; it is also used to determine the range ratio of each area range in the storage area, and determine the area capacity of each area range based on the total capacity of the storage area and the range ratio corresponding to each area range; different area ranges are used to store data of different data types; preset sub-storage area capacities for the different area ranges are determined, and each area range is divided according to the preset sub-storage area capacities and area capacities of the different area ranges to obtain each sub-storage area corresponding to each area range; each sub-storage area within the same area range stores data of the same data type; A second acquisition module is configured to acquire a plurality of data to be stored, and split each of the data to be stored according to the type of data that can be stored in each sub-storage area and the remaining area capacity of each sub-storage area, to obtain sub-storage data of each of the data to be stored; any of the sub-storage data is associated with a data ownership identifier and a data link identifier; the data ownership identifier associated with any of the sub-storage data is used to determine the data to be stored to which the sub-storage data belongs; and the data link identifier associated with any of the sub-storage data is used to determine associated sub-storage data connected to the sub-storage data; A storage module, configured to store each sub-storage data of each data to be stored in each sub-storage area, so as to complete the storage of each data to be stored; A response module, configured to determine, in response to a data retrieval operation, a data type and a data identifier corresponding to target retrieved data required by the data retrieval operation; A retrieving module, configured to retrieve, according to the data type and data identifier corresponding to the target retrieved data, each target sub-storage data belonging to the target retrieved data in each target sub-storage area; The splicing module is used to perform data splicing processing on each target sub-storage data according to the data link identifier associated with each target sub-storage data to obtain the target retrieved data.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

9. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Method and device for updating PSU firmware through Bootloader and storage medium

    CN113741929A

  • Sharing management method for user data and user data management system

    CN115495422A