Programmable memory control method and device, storage medium and electronic equipment
By caching the programming status of frequently read data units in the storage space and obtaining them directly from the storage space, the problem of low programming efficiency of programmable memory is solved, achieving more efficient programming and extending the service life.
Patent Information
- Application Number
- CN202410487221.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-21
- Publication Date
- 2024-10-11
AI Technical Summary
Existing programmable memories have problems such as low programming efficiency and invalid storage data due to frequent reading of the same bit data during the programming process.
By caching the programming status of frequently read data units in the storage space, using the read module to directly obtain the programming status from the storage space, and generating control instructions based on the programming status for control, skipping repeated programming operations and improving programming efficiency.
It effectively improves the programming efficiency of programmable memory, extends the service life of the memory, and avoids the problem of data failure caused by repeated reading.
Smart Images

Figure CN118762736A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of memory, and more specifically, to a control method, device, storage medium and electronic device of a programmable memory. Background Art
[0002] The bit (minimum data unit) in OTP (One-Time Programmable) cannot be changed after being programmed from 0 to 1. The stored data is obtained by reading the bit in OTP, but when the number of reads exceeds a certain number, the OTP stored data may become invalid. In the prior art, during the programming process of OTP, the data of the same bit is often read frequently due to repeated programming operations on the same bit, resulting in low programming efficiency of OTP.
[0003] Therefore, in the related art, there is a problem of how to improve the programming efficiency of programmable memory.
[0004] In the related art, no effective solution has been proposed for the problem of how to improve the programming efficiency of programmable memory. Summary of the invention
[0005] The embodiments of the present application provide a control method, device, storage medium and electronic device of a programmable memory, so as to at least solve the problem of how to improve the programming efficiency of the programmable memory in the related art.
[0006] According to one embodiment of the present application, a control method for a programmable memory is applied to a control system of a programmable memory, wherein the control system of the programmable memory is pre-installed with a programmable memory, comprising: parsing a control request for a target object to obtain a first data unit requested to be controlled by the control request; upon determining that the first data unit belongs to a second data unit that has been stored in a storage space, obtaining a second programming state corresponding to the second data unit in the storage space, and determining the second programming state as a first programming state of the first data unit; upon determining that the first data unit does not belong to the second data unit that has been stored in the storage space, controlling a reading module of the control system of the programmable memory to read the first programming state of the first data unit; and controlling the first data unit according to a control instruction generated by the control request and the first programming state.
[0007] In an exemplary embodiment, the programming state of the first data unit includes a programmed state and an unprogrammed state, and the first data unit is controlled according to the control instruction generated by the control request and the first programming state, including: determining a third data unit and a fourth data unit from the first data unit, wherein the programming state of the third data unit is a programmed state, and the programming state of the fourth data unit is an unprogrammed state; when the control instruction indicates to perform a write operation on the first data unit, controlling a programming module of a control system of the programmable memory to skip the write operation on the third data unit, and controlling the programming module to perform a write operation on the fourth data unit to update the programming state of the fourth data unit to a programmed state.
[0008] In an exemplary embodiment, controlling the first data unit according to the control instruction generated by the control request and the first programming state also includes: determining a third data unit from the first data unit, wherein the programming state of the third data unit is a programmed state, and when the control instruction indicates to perform a write operation on the first data unit, controlling the programming module to skip the write operation on the third data unit; or determining a fourth data unit from the first data unit, wherein the programming state of the fourth data unit is an unprogrammed state, and when the control instruction indicates to perform a write operation on the first data unit, controlling the programming module to only perform a write operation on the fourth data unit to update the programming state of the fourth data unit to a programmed state.
[0009] In an exemplary embodiment, before obtaining the second programming state corresponding to the second data unit in the storage space, the method also includes: determining the number of times all data units of the programmable memory are read in a preset time period; determining a fifth data unit from all data units based on the number of reads, wherein the number of reads of the fifth data unit is greater than a preset value; storing the fifth data unit and the programming state of the fifth data unit in the storage space, wherein any data unit in the storage space corresponds to a storage address.
[0010] In an exemplary embodiment, after controlling the programming module to control the first data unit according to the control instruction generated by the control request and the first programming state, the method further includes: when the control instruction is used to instruct a read operation to be performed on the data unit of the programmable memory, determining a data unit to be read corresponding to the control instruction; determining a sixth data unit from the data unit to be read, wherein the sixth data unit belongs to the second data unit stored in the storage space; obtaining a programming state corresponding to the sixth data unit from the storage space, and obtaining a first reading result based on the programming state corresponding to the sixth data unit; determining a seventh data unit from the data unit to be read; element, wherein the seventh data unit does not belong to the second data unit stored in the storage space; control the read module to read the programming state of the seventh data unit, and obtain a second read result based on the programming state of the seventh data unit; merge the first read result and the second read result to obtain a third read result, wherein the third read result is used to indicate the total programming state of the data unit to be read, and the total programming state at least includes the programming state corresponding to the sixth data unit and the programming state corresponding to the seventh data unit; send the third read result to the display module of the control system of the programmable memory, and display the third read result to the target object through the display module.
[0011] In an exemplary embodiment, after controlling the first data unit according to the control instruction generated by the control request and the first programming state, the method also includes: determining an eighth data unit from the first data unit, wherein the eighth data unit is a data unit whose programming state has changed, and the eighth data unit belongs to the second data unit stored in the storage space; and updating the programming state corresponding to the eighth data unit to a programmed state in the storage space.
[0012] According to another embodiment of the present application, a control system of a programmable memory is provided, comprising: a control center, for executing the steps in the above method embodiment; a programmable memory, comprising a plurality of data units, each data unit corresponding to a programming state, the programming state comprising a programmed state and an unprogrammed state; a reading module, for receiving a control instruction sent by the control center, and reading the programming state of the data unit of the programmable memory according to the control instruction; a programming module, for receiving the control instruction sent by the control center, and performing a write operation on the data unit of the programmable memory according to the control instruction to update the programming state of the data unit of the programmable memory; the control center also has a built-in storage module, the storage space provided by the storage module is used to store specific data units, and the number of times the specific data unit is read within a preset time period is greater than a preset value.
[0013] According to another embodiment of the present application, a control device for a programmable memory is provided, including: a parsing module, which parses a control request for a target object to obtain a first data unit requested to be controlled by the control request; a first acquisition module, which, when determining that the first data unit belongs to a second data unit that has been stored in a storage space, obtains a second programming state corresponding to the second data unit in the storage space, and determines the second programming state as a first programming state of the first data unit; a second acquisition module, which, when determining that the first data unit does not belong to the second data unit that has been stored in the storage space, controls a reading module of a control system of the programmable memory to read the first programming state of the first data unit; and a control module, which controls the first data unit according to a control instruction generated by the control request and the first programming state.
[0014] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0015] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0016] Through the present application, after receiving a control request from a target object to control a first data unit of a programmable memory, if the first data unit is already stored in the storage space, the programming state of the first data unit is obtained from the storage space, and if the first data unit is not stored in the storage space, the programming state of the first data unit is directly read, and the first data unit is controlled according to the programming state of the first data unit. Therefore, the problem of how to improve the programming efficiency of a programmable memory in the related art can be solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a hardware structure block diagram of a server device of a programmable memory control method according to an embodiment of the present application;
[0018] Figure 2 is a flow chart of a control method of a programmable memory according to an embodiment of the present application;
[0019] Figure 3 is a system architecture diagram of a control system of a programmable memory according to an embodiment of the present application;
[0020] Figure 4 is a schematic flow chart of a control method of a programmable memory according to an embodiment of the present application (I);
[0021] Figure 5 is a schematic flow chart (II) of a control method of a programmable memory according to an embodiment of the present application;
[0022] Figure 6 It is a structural block diagram of a control device of a programmable memory according to an embodiment of the present application. DETAILED DESCRIPTION
[0023] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0025] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a server device of a programmable memory control method according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0026] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the control method of the programmable memory in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the method of controlling the above-mentioned programmable memory. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0027] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0028] In this embodiment, a control method for a programmable memory is provided. Figure 2 is a flow chart of a control method of a programmable memory according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:
[0029] Step S202, parsing the control request of the target object to obtain the first data unit requested to be controlled by the control request;
[0030] Optionally, in the above step S202, the control request of the target object includes a control request for reading data from the programmable controller and a request for writing data to the programmable controller, and the above data unit represents a bit in the programmable controller.
[0031] Step S204, when it is determined that the first data unit belongs to a second data unit that has been stored in a storage space, obtaining a second programming state corresponding to the second data unit in the storage space, and determining the second programming state as the first programming state of the first data unit;
[0032] Optionally, in the above step S204, the above storage space is used to store data units that need to be frequently read in the programmable memory, and the speed of obtaining the programming state of the data unit from the storage space is faster than the speed of directly obtaining the data unit from the programmable memory.
[0033] Step S206, when it is determined that the first data unit does not belong to the second data unit stored in the storage space, controlling a reading module of a control system of the programmable memory to read a first programming state of the first data unit;
[0034] Step S208: Control the first data unit according to the control instruction generated by the control request and the first programming state.
[0035] Through the above steps, after receiving a control request from a target object to control a first data unit of a programmable memory, if the first data unit is already stored in the storage space, the programming state of the first data unit is obtained from the storage space, and if the first data unit is not stored in the storage space, the programming state of the first data unit is directly read, and the first data unit is controlled according to the programming state of the first data unit. This solves the problem of how to improve the programming efficiency of a programmable memory in the related art.
[0036] In an exemplary embodiment, the programming state of the first data unit includes a programmed state and an unprogrammed state, and the first data unit is controlled according to the control instruction generated by the control request and the first programming state, including: determining a third data unit and a fourth data unit from the first data unit, wherein the programming state of the third data unit is a programmed state, and the programming state of the fourth data unit is an unprogrammed state; when the control instruction indicates to perform a write operation on the first data unit, controlling a programming module of a control system of the programmable memory to skip the write operation on the third data unit, and controlling the programming module to perform a write operation on the fourth data unit to update the programming state of the fourth data unit to a programmed state.
[0037] Optionally, in the above embodiment, the data unit represents a bit in a programmable memory, and the initial value of the bit in the programmable memory is 0 (equivalent to an unprogrammed state). After the bit is programmed from 0 to 1 (equivalent to a programmed state), the data of the bit cannot be changed and is used for permanent data storage.
[0038] In an exemplary embodiment, controlling the first data unit according to the control instruction generated by the control request and the first programming state also includes: determining a third data unit from the first data unit, wherein the programming state of the third data unit is a programmed state, and when the control instruction indicates to perform a write operation on the first data unit, controlling the programming module to skip the write operation on the third data unit; or determining a fourth data unit from the first data unit, wherein the programming state of the fourth data unit is an unprogrammed state, and when the control instruction indicates to perform a write operation on the first data unit, controlling the programming module to only perform a write operation on the fourth data unit to update the programming state of the fourth data unit to a programmed state.
[0039] Optionally, in the above embodiment, when the control center of the control system of the programmable memory receives the programming instruction, it will perform a pre-read operation, that is, read the bit to be programmed in advance to determine whether the bit has been programmed to 1. If the bit has been programmed to 1, skip executing the subsequent programming task for the bit; if the value of the bit is 0, execute the programming operation for the bit normally and write the value of the bit to 1.
[0040] In the above embodiment, since the rate of reading bits is generally hundreds of times higher than the rate of writing bits, the repeated programming operation is avoided by using the reading operation, which greatly improves the rate of writing bits of the programmable memory, thereby improving the overall programming efficiency.
[0041] In an exemplary embodiment, before obtaining the second programming state corresponding to the second data unit in the storage space, the method also includes: determining the number of times all data units of the programmable memory are read in a preset time period; determining a fifth data unit from all data units based on the number of reads, wherein the number of reads of the fifth data unit is greater than a preset value; storing the fifth data unit and the programming state of the fifth data unit in the storage space, wherein any data unit in the storage space corresponds to a storage address.
[0042] Optionally, in the above embodiment, in the usage scenario of the programmable memory, some bits of data often need to be read frequently, and repeated reading of the same bit of data is likely to affect the service life of the programmable memory. Therefore, this embodiment has a built-in storage space in the control center of the programmable memory, and the frequently called bit data can be cached in the storage space. Therefore, the above method can extend the service life of the programmable memory.
[0043] Optionally, in the above embodiment, in different usage scenarios, users have different data usage requirements. Therefore, based on different data usage requirements, the bits that need to be frequently read by the programmable memory will also change. Therefore, corresponding bit data can be pre-stored in the storage space according to different data usage requirements.
[0044] Optionally, in the above embodiment, when it is detected that the application scenario of the programmable memory has changed, the cache information of the storage space can be cleared, the reading frequency of the bits can be re-counted, and the bit data with high reading frequency can be cached in the storage space.
[0045] In an exemplary embodiment, after controlling the programming module to control the first data unit according to the control instruction generated by the control request and the first programming state, the method further includes: when the control instruction is used to instruct a read operation to be performed on the data unit of the programmable memory, determining a data unit to be read corresponding to the control instruction; determining a sixth data unit from the data unit to be read, wherein the sixth data unit belongs to the second data unit stored in the storage space; obtaining a programming state corresponding to the sixth data unit from the storage space, and obtaining a first reading result based on the programming state corresponding to the sixth data unit; determining a seventh data unit from the data unit to be read; element, wherein the seventh data unit does not belong to the second data unit stored in the storage space; control the read module to read the programming state of the seventh data unit, and obtain a second read result based on the programming state of the seventh data unit; merge the first read result and the second read result to obtain a third read result, wherein the third read result is used to indicate the total programming state of the data unit to be read, and the total programming state at least includes the programming state corresponding to the sixth data unit and the programming state corresponding to the seventh data unit; send the third read result to the display module of the control system of the programmable memory, and display the third read result to the target object through the display module.
[0046] Optionally, in the above embodiment, after the control center of the control system of the programmable memory receives an instruction to read a bit, it needs to first determine whether the data of the bit to be read has been cached in the storage space. The data of the bit to be read that has been cached in the storage space is read from the storage space, and the data of the bit to be read that has not been cached in the storage space is read from the programmable memory. Then, the bit data read from the storage space and the bit data read from the programmable memory are merged to obtain complete bit data to be read.
[0047] Through the above embodiments, compared with directly reading bit data from the programmable memory, the speed of reading bit data from the built-in storage space is faster, thereby improving the reading efficiency of the programmable memory, and further improving the programming efficiency of the programmable memory as a whole.
[0048] In an exemplary embodiment, after controlling the first data unit according to the control instruction generated by the control request and the first programming state, the method also includes: determining an eighth data unit from the first data unit, wherein the eighth data unit is a data unit whose programming state has changed, and the eighth data unit belongs to the second data unit stored in the storage space; and updating the programming state corresponding to the eighth data unit to a programmed state in the storage space.
[0049] Optionally, in the above embodiment, after the control instruction is executed, if the bit programming status in the programmable controller changes, it is necessary to determine whether the changed bit data is cached in the storage space. If it is cached, the status of the bit needs to be updated to ensure that the bit data read from the storage space is accurate.
[0050] In an alternative embodiment, Figure 3 is a system architecture diagram of a control system of a programmable memory according to an embodiment of the present application, such as Figure 3 As shown, the control system includes: an OTP control center 31 (equivalent to the above control center) is used to globally manage the OTP control process, is responsible for interacting with an external system 36 to obtain control requests, controls the OTP programming module 33 (equivalent to the above programming module) to program the OTP35 (equivalent to the above programmable memory) bit by bit based on the control request, and controls the OTP reading module (equivalent to the above reading module) to read multiple bits of OTP35, and reads out valid data from the address corresponding to OTP35. The above control center also includes a built-in storage module 32 (equivalent to the above storage module) for providing storage space to temporarily store the bit data read by the OTP reading module.
[0051] Obviously, the embodiments described above are only some embodiments of the present application, not all embodiments. In order to better understand the control method of the above programmable memory, the above process is described below in conjunction with the embodiments, but it is not intended to limit the technical solutions of the embodiments of the present application, specifically:
[0052] In an alternative embodiment, Figure 4 1 is a schematic flow chart of a control method of a programmable memory according to an embodiment of the present application (I), which specifically includes the following steps:
[0053] Step S401: Obtain the bit address to be programmed from the control instruction.
[0054] Step S402: Determine whether the reprogramming protection switch is turned on, if not, execute step S403, if it is turned on, execute step S404.
[0055] Step S403: directly controlling the programming module to perform a programming operation on the bit address to be programmed.
[0056] Step S404: Read the data of the bit address to be programmed.
[0057] Step S405: Determine whether the data of the bit address to be programmed is 1, if yes, execute step S406, otherwise execute step S407.
[0058] Step S406: Control the programming module to perform a programming operation on the bit address to be programmed.
[0059] Step S407: cancel the programming operation on the bit address to be programmed.
[0060] Through the above embodiments, repeated programming operations can be avoided by using read operations, which greatly increases the writing bit rate of the programmable memory, thereby improving the overall programming efficiency.
[0061] In an alternative embodiment, Figure 5 2 is a schematic flow chart of a control method of a programmable memory according to an embodiment of the present application, which specifically includes the following steps:
[0062] Step S501: Obtain the bit address to be read from the control instruction.
[0063] Step S502: Determine whether the address of the bit to be read is cached in the storage space, if not cached, execute step S403, if cached, execute step S404.
[0064] Step S503: Read the data of the bit to be read from the programmable memory.
[0065] Step S504: Read the data of the bit to be read from the storage space.
[0066] Through the above embodiment, repeated reading of the same bit data is avoided, and the service life of the programmable memory is extended. In addition, the speed of reading the bit data from the storage space is faster than directly reading the bit data from the programmable memory, thereby improving the reading efficiency of the programmable memory.
[0067] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0068] In the present embodiment, a control device of a programmable memory is also provided, and the system is used to implement the above-mentioned embodiment and preferred implementation mode, and the descriptions that have been made are not repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the system described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceived.
[0069] Figure 6 is a structural block diagram of a control device for a programmable memory according to an embodiment of the present application, such as Figure 6 As shown, the device comprises:
[0070] The parsing module 62 parses the control request of the target object to obtain the first data unit requested to be controlled by the control request;
[0071] A first acquisition module 64, when determining that the first data unit belongs to a second data unit that has been stored in a storage space, acquires a second programming state corresponding to the second data unit in the storage space, and determines the second programming state as a first programming state of the first data unit;
[0072] The second acquisition module 66 controls the reading module of the control system of the programmable memory to read the first programming state of the first data unit when it is determined that the first data unit does not belong to the second data unit stored in the storage space;
[0073] The control module 68 controls the first data unit according to the control instruction generated by the control request and the first programming state.
[0074] Through the above device, after receiving a control request from a target object to control a first data unit of a programmable memory, if the first data unit is already stored in the storage space, the programming state of the first data unit is obtained from the storage space, and if the first data unit is not stored in the storage space, the programming state of the first data unit is directly read, and the first data unit is controlled according to the programming state of the first data unit. The problem of how to improve the programming efficiency of a programmable memory in the related art is solved.
[0075] In an exemplary embodiment, the control module 68 is also used to: determine a third data unit and a fourth data unit from the first data unit, wherein the programming state of the third data unit is a programmed state, and the programming state of the fourth data unit is an unprogrammed state; when the control instruction indicates to perform a write operation on the first data unit, the programming module of the control system of the programmable memory is controlled to skip the write operation on the third data unit, and the programming module is controlled to perform a write operation on the fourth data unit to update the programming state of the fourth data unit to a programmed state.
[0076] In an exemplary embodiment, the control module 68 is also used to: determine a third data unit from the first data unit, wherein the programming state of the third data unit is a programmed state, and when the control instruction indicates to perform a write operation on the first data unit, control the programming module to skip the write operation on the third data unit; or determine a fourth data unit from the first data unit, wherein the programming state of the fourth data unit is an unprogrammed state, and when the control instruction indicates to perform a write operation on the first data unit, control the programming module to only perform a write operation on the fourth data unit to update the programming state of the fourth data unit to a programmed state.
[0077] In an exemplary embodiment, the first acquisition module 64 is also used to: determine the number of times all data units of the programmable memory are read within a preset time period; determine a fifth data unit from all data units based on the number of times, wherein the number of times the fifth data unit is read is greater than a preset value; store the fifth data unit and the programming state of the fifth data unit in the storage space, wherein any data unit in the storage space corresponds to a storage address.
[0078] In an exemplary embodiment, the control module 68 is further used to: determine the data unit to be read corresponding to the control instruction when the control instruction is used to instruct a read operation on the data unit of the programmable memory; determine a sixth data unit from the data units to be read, wherein the sixth data unit belongs to the second data unit stored in the storage space; obtain a programming state corresponding to the sixth data unit from the storage space, and obtain a first reading result based on the programming state corresponding to the sixth data unit; determine a seventh data unit from the data units to be read, wherein the seventh data unit does not belong to the second data unit stored in the storage space; control the read module to read the programming state of the seventh data unit, and obtain a second reading result based on the programming state of the seventh data unit; merge the first reading result and the second reading result to obtain a third reading result, wherein the third reading result is used to indicate the total programming state of the data unit to be read, and the total programming state at least includes the programming state corresponding to the sixth data unit and the programming state corresponding to the seventh data unit; send the third reading result to the display module of the control system of the programmable memory, and display the third reading result to the target object through the display module.
[0079] In an exemplary embodiment, the control module 68 is also used to: determine an eighth data unit from the first data unit, wherein the eighth data unit is a data unit whose programming state has changed, and the eighth data unit belongs to the second data unit stored in the storage space; and update the programming state corresponding to the eighth data unit to a programmed state in the storage space.
[0080] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0081] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0082] Optionally, in this embodiment, the storage medium may be configured to store program codes for executing the following steps:
[0083] S1, parsing a control request of a target object to obtain a first data unit requested to be controlled by the control request;
[0084] S2, when it is determined that the first data unit belongs to a second data unit that has been stored in a storage space, obtaining a second programming state corresponding to the second data unit in the storage space, and determining the second programming state as a first programming state of the first data unit;
[0085] S3, when it is determined that the first data unit does not belong to the second data unit stored in the storage space, controlling a reading module of a control system of the programmable memory to read a first programming state of the first data unit;
[0086] S4: Control the first data unit according to the control instruction generated by the control request and the first programming state.
[0087] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0088] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0089] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0090] S1, parsing a control request of a target object to obtain a first data unit requested to be controlled by the control request;
[0091] S2, when it is determined that the first data unit belongs to a second data unit that has been stored in a storage space, obtaining a second programming state corresponding to the second data unit in the storage space, and determining the second programming state as a first programming state of the first data unit;
[0092] S3, when it is determined that the first data unit does not belong to the second data unit stored in the storage space, controlling a reading module of a control system of the programmable memory to read a first programming state of the first data unit;
[0093] S4: Control the first data unit according to the control instruction generated by the control request and the first programming state.
[0094] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0095] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0096] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A control method for a programmable memory, It is characterized in that A control system applied to a programmable memory, wherein the control system of the programmable memory is pre-installed with a programmable memory, comprising: Parsing the control request of the target object to obtain a first data unit requested to be controlled by the control request; In the case of determining that the first data unit belongs to a second data unit that has been stored in a storage space, obtaining a second programming state corresponding to the second data unit in the storage space, and determining the second programming state as a first programming state of the first data unit; In the case of determining that the first data unit does not belong to the second data unit stored in the storage space, controlling a reading module of a control system of the programmable memory to read a first programming state of the first data unit; The first data unit is controlled according to a control instruction generated by the control request and the first programming state.
2. The method according to claim 1, It is characterized in that The programming state of the first data unit includes a programmed state and an unprogrammed state, and controlling the first data unit according to the control instruction generated by the control request and the first programming state includes: Determine a third data unit and a fourth data unit from the first data unit, wherein a programming state of the third data unit is a programmed state, and a programming state of the fourth data unit is an unprogrammed state; When the control instruction indicates to perform a write operation on the first data unit, the programming module of the control system that controls the programmable memory skips the write operation on the third data unit, and controls the programming module to perform a write operation on the fourth data unit to update the programming state of the fourth data unit to a programmed state.
3. The method according to claim 1, It is characterized in that Controlling the first data unit according to the control instruction generated by the control request and the first programming state, further comprising: Determine a third data unit from the first data unit, wherein a programming state of the third data unit is a programmed state, and when the control instruction instructs to perform a write operation on the first data unit, control the programming module to skip the write operation on the third data unit; Alternatively, a fourth data unit is determined from the first data unit, wherein a programming state of the fourth data unit is an unprogrammed state, and when the control instruction indicates to perform a write operation on the first data unit, the programming module is controlled to perform a write operation only on the fourth data unit to update the programming state of the fourth data unit to a programmed state.
4. The method according to claim 1, It is characterized in that Before acquiring the second programming state corresponding to the second data unit in the storage space, the method further includes: Determining the number of times all data units of the programmable memory are read in a preset time period; Determining a fifth data unit from all the data units based on the number of reads, wherein the number of reads of the fifth data unit is greater than a preset value; The fifth data unit and the programming state of the fifth data unit are stored in the storage space, wherein any data unit in the storage space corresponds to a storage address.
5. The method according to claim 1, It is characterized in that After controlling the programming module to control the first data unit according to the control instruction generated by the control request and the first programming state, the method further includes: In a case where the control instruction is used to instruct a read operation to be performed on a data unit of the programmable memory, determining a data unit to be read corresponding to the control instruction; Determine a sixth data unit from the data units to be read, wherein the sixth data unit belongs to the second data unit stored in the storage space; Acquire a programming state corresponding to the sixth data unit from the storage space, and obtain a first reading result based on the programming state corresponding to the sixth data unit; Determine a seventh data unit from the data units to be read, wherein the seventh data unit does not belong to the second data unit stored in the storage space; Controlling the reading module to read the programming state of the seventh data unit, and obtaining a second reading result based on the programming state of the seventh data unit; Merging the first read result and the second read result to obtain a third read result, wherein the third read result is used to indicate a total programming state of the to-be-read data unit, and the total programming state at least includes a programming state corresponding to the sixth data unit and a programming state corresponding to the seventh data unit; The third reading result is sent to a display module of a control system of the programmable memory, and the third reading result is displayed to the target object through the display module.
6. The method according to claim 1, It is characterized in that After controlling the first data unit according to the control instruction generated by the control request and the first programming state, the method further includes: Determine an eighth data unit from the first data unit, wherein the eighth data unit is a data unit whose programming state is changed, and the eighth data unit belongs to the second data unit stored in the storage space; The programming state corresponding to the eighth data unit is updated to a programmed state in the storage space.
7. A control system for a programmable memory, It is characterized in that include: A control center for executing the steps of the method according to any one of claims 1 to 6; A programmable memory includes a plurality of data units, each of which corresponds to a programming state, wherein the programming state includes a programmed state and an unprogrammed state; A reading module, used for receiving a control instruction sent by the control center, and reading a programming state of a data unit of the programmable memory according to the control instruction; A programming module, configured to receive the control instruction sent by the control center, and perform a write operation on the data unit of the programmable memory according to the control instruction to update the programming state of the data unit of the programmable memory; The control center is also built with a storage module, and the storage space provided by the storage module is used to store a specific data unit, and the number of times the specific data unit is read in a preset time period is greater than a preset value.
8. A control device for a programmable memory, It is characterized in that include: A parsing module, which parses the control request of the target object to obtain a first data unit requested to be controlled by the control request; a first acquisition module, which, when determining that the first data unit belongs to a second data unit that has been stored in a storage space, acquires a second programming state corresponding to the second data unit in the storage space, and determines the second programming state as a first programming state of the first data unit; a second acquisition module, which controls a reading module of a control system of the programmable memory to read a first programming state of the first data unit when it is determined that the first data unit does not belong to a second data unit stored in the storage space; A control module controls the first data unit according to a control instruction generated by the control request and the first programming state.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 6 when executed by a processor.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method described in any one of claims 1 to 6 are implemented.
