Method, device, system and medium for enhancing random read and write capability of FLASH memory

By configuring the FLASH memory into the read enhancement mode, the problem of low read performance of the FLASH memory in the existing technology is solved, and the effect of significantly improving the read speed without hardware modification is achieved.

CN113805817BActive Publication Date: 2024-09-24SHENZHEN BARROT TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111177612.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-09
Publication Date
2024-09-24
Estimated Expiration
2041-10-09

AI Technical Summary

Technical Problem

In the existing technology, FLASH memory has a slow command and address transmission speed during multi-line reading, requiring hardware modifications to improve reading performance, and hardware modifications increase cost and complexity.

Method used

By configuring the FLASH memory in read enhanced mode, the transmission instruction and address stages are set to transmit an 8-bit instruction, 24-bit address, 8-bit start read enhanced mode bit and 4-bit dummy cycle during the first read. To read data, only a 24-bit address, an 8-bit start-read enhanced mode bit, and a 4-bit dummy cycle need to be transmitted to improve random read performance without hardware modification.

Benefits of technology

Without changing the hardware, the random read performance of FLASH memory is greatly improved, the cycle of the instruction and address transmission stages is shortened, and the read speed is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113805817B
    Figure CN113805817B
Patent Text Reader

Abstract

The present application discloses a method, device, system and medium for enhancing the random read and write capability of a FLASH memory, belonging to the field of memory data reading and writing, the method mainly comprising configuring the FLASH memory to a read enhancement mode; and reading the data stored in the FLASH memory in the read enhancement mode. The beneficial effect of the present application is that by configuring the FLASH to a read enhancement mode, the transmission instruction and address stage rate is greatly improved when reading the data of the FLASH memory through software without any modification of the hardware, thereby improving the speed of reading the FLASH memory.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of memory data reading and writing, and in particular to a method, device, system and medium for enhancing the random reading and writing capability of a FLASH memory. Background Art

[0002] In the prior art, when performing multi-line reading of FLASH memory data, the command and read address are transmitted in a single data line manner, and it takes 8 virtual cycles, and the speed of transmitting instructions and addresses is relatively slow; in order to improve the reading performance, it is necessary to modify the hardware, that is, the hardware needs to be adapted to support the read enhancement mode. Summary of the invention

[0003] In view of the problems existing in the prior art, the present application mainly provides a method, device, system and medium for enhancing the random read and write capability of FLASH memory when the hardware does not support the read enhancement mode. Without changing the hardware, by configuring FLASH to the read enhancement mode and entering the mode, the random read performance is greatly improved when reading the data of the FLASH memory subsequently.

[0004] In order to achieve the above purpose, a technical solution adopted by the present application is to provide a method for enhancing the random read and write capability of a FLASH memory, which comprises:

[0005] The FLASH memory is configured to be in a read enhancement mode; and the data stored in the FLASH memory is read in the read enhancement mode; wherein the read enhancement mode is a mode in which the transmission instruction and address stages are set to transmit an 8-bit transmission instruction, a 24-bit address, an 8-bit start read enhancement mode bit, and a 4-bit dummy cycle when reading data for the first time, and each subsequent data reading only requires the transmission of a 24-bit address, an 8-bit start read enhancement mode bit, and a 4-bit dummy cycle.

[0006] Another technical solution adopted by the present application is: to provide a device for enhancing the random read and write capability of a FLASH memory, comprising: a configuration module for configuring the FLASH memory to a read enhancement mode; and a reading module for reading data stored in the FLASH memory in the read enhancement mode; wherein the read enhancement mode is a mode in which the transmission instruction and address stages are set to transmit an 8-bit transmission instruction, a 24-bit address, an 8-bit start read enhancement mode bit, and a 4-bit dummy cycle when reading data for the first time, and each subsequent data read only requires the transmission of a 24-bit address, an 8-bit start read enhancement mode bit, and a 4-bit dummy cycle.

[0007] Another technical solution adopted by the present application is to provide a system for enhancing the random read and write capability of a FLASH memory, which includes a FLASH memory and the above-mentioned device for enhancing the random read and write capability of the FLASH memory.

[0008] Another technical solution adopted by the present application is: providing a computer-readable storage medium storing computer instructions, wherein the computer instructions are operated to execute the above-mentioned method for enhancing the random read and write capability of the FLASH memory.

[0009] The beneficial effects that can be achieved by the technical solution of the present application are as follows: the present application designs a method, device, system and medium for enhancing the random read and write capabilities of the FLASH memory. By configuring the FLASH to a read enhancement mode, the speed of transmitting instructions and addresses in the stage when reading data from the FLASH memory is greatly improved through software without any modification of the hardware, thereby improving the speed of reading the FLASH memory. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are 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 labor.

[0011] Figure 1 It is a timing diagram of 4-line reading FLASH memory in the prior art;

[0012] Figure 2 This is a flowchart of a specific implementation method of a method for enhancing the random read and write capability of a FLASH memory of the present application;

[0013] Figure 3 It is a timing diagram of a FLASH memory in a specific embodiment of a method for enhancing the random read and write capability of a FLASH memory of the present application;

[0014] Figure 4 It is a schematic diagram of a specific implementation of a device for enhancing the random read and write capability of a FLASH memory of the present application;

[0015] Figure 5 It is a schematic diagram of a specific implementation of a system for enhancing the random read and write capability of a FLASH memory according to the present application.

[0016] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0017] The preferred embodiments of the present application are described in detail below in conjunction with the accompanying drawings so that the advantages and features of the present application can be more easily understood by those skilled in the art, thereby making a clearer and more definite definition of the protection scope of the present application.

[0018] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0019] The existing technology improves the transmission instruction and address stages without changing the hardware. The timing diagram of 4-wire reading FLASH memory is as follows: Figure 1 As shown in the figure, each time before reading the FLASH memory data, it is necessary to send an 8-bit instruction + a 24-bit address + an 8-bit dummy cycle to start reading the data. The data is output in a four-wire manner. It takes a total of 40 clock cycles to transmit the instruction, address, and dummy cycle. If the clock frequency is not increased, the reading performance of the FLASH memory cannot be improved. If the hardware is modified to support the read enhancement mode, the cost will increase and the hardware design will be more complicated.

[0020] The present application designs a method, device, system and medium for enhancing the random read and write capability of a FLASH memory, by configuring the FLASH to a read enhancement mode, wherein the read enhancement mode is that the transmission instruction and address stage is set to transmit an 8-bit transmission instruction, a 24-bit address, an 8-bit start read enhancement mode bit and a 4-bit dummy cycle when reading data for the first time, and then each time the data is read, only a 24-bit address, an 8-bit start read enhancement mode bit and a 4-bit dummy cycle need to be transmitted. Each time new data is read, as long as the mode bit is a preset value, subsequent readings can be performed in accordance with the read enhancement mode. In this way, the random read performance of the FLASH memory is greatly improved without any modification or change to the hardware.

[0021] The technical solution of the present application is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0022] Figure 2 A specific implementation of a method for enhancing the random read and write capability of a FLASH memory of the present application is shown.

[0023] exist Figure 2 The method for enhancing the random read and write capability of the FLASH memory shown includes process S201, configuring the FLASH memory to a read enhancement mode; and process S202, reading data stored in the FLASH memory in the read enhancement mode, wherein the read enhancement mode is a mode in which the transmission instruction and address stage is set to transmit an 8-bit transmission instruction, a 24-bit address, an 8-bit start read enhancement mode bit, and a 4-bit dummy cycle when reading data for the first time, and each subsequent data read only requires the transmission of a 24-bit address, an 8-bit start read enhancement mode bit, and a 4-bit dummy cycle.

[0024] By configuring the FLASH memory to read enhancement mode in other modules related to FLASH, the speed of transmitting instructions and addresses when reading data from the FLASH memory can be greatly improved through software without any modification to the hardware, thereby improving the speed of reading the FLASH memory.

[0025] Figure 2 The process S201 shows that the FLASH memory is configured to be in the read enhancement mode, which can facilitate the subsequent reading of data stored in the FLASH memory in the read enhancement mode.

[0026] In a specific embodiment of the present application, the above-mentioned read enhancement mode transmits the 24-bit address and the 8-bit read enhancement mode start bit in a multi-line manner each time the data is read, which can further facilitate reading the data stored in the FLASH memory in the read enhancement mode, and shorten the cycle required for the transmission instruction and address stages.

[0027] In a specific embodiment of the present application, the FLASH memory is a 4-line read FLASH memory, and the read enhancement mode transmits the 24-bit address and the 8-bit start read enhancement mode bit in a 4-line manner each time the data is read. The timing diagram is as follows: Figure 3 As shown, when reading the data stored in the FLASH memory, each time the data is read except for the first time, only 12 cycles are required to transmit the instruction and address phase, which is reduced to less than one third compared to the 40 cycles in the prior art, thereby greatly improving the reading performance of the FLASH memory.

[0028] In a specific embodiment of the present application, the FLASH memory is an 8-line read FLASH memory, and the read enhancement mode transmits the 24-bit address and the 8-bit start read enhancement mode bit in an 8-line manner each time the data is read. In this way, when reading the data stored in the FLASH memory, except for the first time, each time the data is read, the transmission instruction and address stages only need 8 cycles, which is reduced to one-fifth of the 40 cycles in the prior art, thereby greatly improving the reading performance of the FLASH memory.

[0029] In a specific embodiment of the present application, the above-mentioned process of setting the FLASH memory to the read enhancement mode includes copying the operation code of operating the FLASH memory to other modules related thereto, reconfiguring the operating environment of the FLASH memory in the module, and configuring the FLASH memory-related hardware to the read enhancement mode, and then switching the running program from the RAM memory to the FLASH memory for execution.

[0030] When a program is running in the FLASH memory, the program is not allowed to operate the FLASH memory, which is mutually exclusive. The FLASH memory can only be operated when the program is not running in the FLASH memory. So when the program is running in the FLASH memory, since the FLASH memory is not operable, the hardware configuration and control cannot be modified. When entering the FLASH memory read enhancement mode, it is necessary to implement two communication methods: sending and not sending commands. That is, if the FLASH memory read enhancement mode needs to be supported, then the hardware needs to be operated, and the hardware is not operable when the program is running in the FLASH memory. This is mutually exclusive, which is an inherent characteristic of the hardware; so when running the program in the FLASH memory, only one hardware configuration mode can be used and it cannot be modified. The solution adopted by this application is that after the program enters the FLASH memory to run, the code for operating the FLASH memory part is copied to other modules related to it, and after the required related configuration is performed, the program is switched to the FLASH memory for operation.

[0031] In a specific embodiment of the present application, the above-mentioned process of setting the FLASH memory to the read enhancement mode includes copying the operation code for operating the FLASH memory to the RAM memory; in the RAM memory, reconfiguring the operating environment of the FLASH memory and configuring the FLASH memory-related hardware to the read enhancement mode; and switching the running program from the RAM memory to the FLASH memory for execution.

[0032] Copy the code for operating the FLASH memory to the RAM memory, then switch to the RAM memory to run the program, reconfigure the memory's operating environment, and configure the FLASH memory-related hardware to read enhancement mode, and then switch the program to the FLASH memory for running, which can effectively solve the problem that the hardware configuration cannot be modified during FLASH runtime.

[0033] In a specific embodiment of the present application, the process of configuring the FLASH memory-related hardware to the read enhancement mode in the RAM memory includes resetting and initializing the FLASH memory-related hardware to the single-line mode, and then modifying and configuring the FLASH memory-related hardware to the multi-line mode; and configuring the FLASH memory-related hardware in the multi-line mode to set the transfer instruction and address stage to a mode of sending an 8-bit transfer instruction, a 24-bit address, an 8-bit start read enhancement mode bit, and a 4-bit dummy cycle, and sending a read command in this mode; after reading the 8-bit start read enhancement mode bit through this operation, the read enhancement mode of the FLASH memory is activated; then modifying and configuring the FLASH memory-related hardware to set the transfer instruction and address stage to a mode of sending a 24-bit address, an 8-bit start read enhancement mode bit, and a 4-bit dummy cycle, so that the FLASH memory can work in the read enhancement mode.

[0034] In a specific embodiment of the present application, the above-mentioned process of reconfiguring the operating environment of the FLASH memory in the RAM memory and configuring the FLASH memory-related hardware to the read enhancement mode includes, before configuring the FLASH memory-related hardware to the read enhancement mode, turning off the existing mode of the FLASH memory and resetting all the environmental variables required for the operation in the FLASH memory; and, after configuring the FLASH memory-related hardware to the read enhancement mode, configuring the environmental parameters required for the operation in the FLASH memory.

[0035] In a specific example of the present application, the transmission instruction is 0xeb, and the 8-bit start read enhancement mode bit is 0x20. The above process of reconfiguring the operating environment of the FLASH memory in the RAM memory and configuring the FLASH memory related hardware to the read enhancement mode includes:

[0036] In the RAM code, the existing configuration mode of the FLASH memory is turned off, and all the environment variables required for the program to run in the FLASH memory are reset to realize the operability of the program to the FLASH memory. Then the relevant hardware is initialized to the single-line mode, and the reset command is sent to reset and initialize the FLASH memory. Then the hardware configuration is modified to the multi-line mode, and it is configured to send an 8-bit instruction, a 32-bit address, and a 4-bit dummy cycle. In this mode, a read command is sent and the address is set to 0x20. Since the set address is 32 bits, it is mapped to Figure 3In the timing diagram shown, the mode bit is 0x20, and the 24-bit address is 0, that is, the address is set to 0x20, which is parsed as 32 bits: 0000 0000 0000000000000 0000 0010 0000. After transmitting the transmission instruction 0xeb, only the first 24 bits of the address are recognized, and the last 8 bits are the mode bits. However, after this operation, the multi-line read enhancement mode of the FLASH memory is activated, and the instruction does not need to be sent for the next read. Then modify the hardware configuration to configure it as 24-bit address, 8-bit mode bit, 4-bit virtual cycle operation mode; and configure the environmental parameters required for the program to run in the FLASH memory.

[0037] In a specific embodiment of the present application, the 8-bit start read enhancement mode bit is not 0x20. Then the next command needs to resend the transmission instruction to return to the normal non-enhancement mode reading operation.

[0038] Figure 2 Process S202 shows a process of reading data stored in the FLASH memory in the read enhancement mode. When reading data stored in the FLASH memory in the read enhancement mode, the cycles required for the transmission instruction and address stages can be shortened, thereby greatly improving the reading performance of the FLASH memory.

[0039] Figure 4 A specific implementation of a device for enhancing the random read and write capability of a FLASH memory is shown in the present application

[0040] exist Figure 4 The specific implementation of the device for enhancing the random read and write capability of the FLASH memory shown includes module 401, a configuration module, for configuring the FLASH memory to a read enhancement mode; and module 402, a read module, for reading data stored in the FLASH memory in the read enhancement mode; wherein the read enhancement mode is a mode in which the transmission instruction and address stages are set to transmit an 8-bit transmission instruction, a 24-bit address, an 8-bit start read enhancement mode bit, and a 4-bit dummy cycle when reading data for the first time, and each subsequent data read only requires the transmission of a 24-bit address, an 8-bit start read enhancement mode bit, and a 4-bit dummy cycle.

[0041] By configuring FLASH to read enhancement mode, the speed of transmitting instructions and addresses when reading data from the FLASH memory can be greatly improved through software without any hardware modification, thereby improving the speed of reading the FLASH memory.

[0042] Figure 4Module 401 represents a module for configuring the FLASH memory to the read enhancement mode, which can facilitate the subsequent reading of data stored in the FLASH memory in the read enhancement mode.

[0043] In a specific embodiment of the present application, the above-mentioned configuration module 401 includes an address and mode bit multi-line configuration sub-module, which is used to transmit the 24-bit address and the 8-bit start read enhancement mode bit in a multi-line manner each time the data is read in the read enhancement mode, which can further facilitate the reading of data stored in the FLASH memory in the read enhancement mode, and shorten the cycle required for the transmission instruction and address stages.

[0044] In a specific embodiment of the present application, the FLASH memory is a 4-line read FLASH memory, and the read enhancement mode transmits the 24-bit address and the 8-bit start read enhancement mode bit in a 4-line manner each time the data is read. The timing diagram is as follows: Figure 3 As shown, when reading the data stored in the FLASH memory, each time the data is read except for the first time, only 12 cycles are required to transmit the instruction and address phase, which is reduced to less than one third compared to the 40 cycles in the prior art, thereby greatly improving the reading performance of the FLASH memory.

[0045] In a specific embodiment of the present application, the FLASH memory is an 8-line read FLASH memory, and the read enhancement mode transmits the 24-bit address and the 8-bit start read enhancement mode bit in an 8-line manner each time the data is read. In this way, when reading the data stored in the FLASH memory, except for the first time, each time the data is read, the transmission instruction and address stages only need 8 cycles, which is reduced to one-fifth of the 40 cycles in the prior art, thereby greatly improving the reading performance of the FLASH memory.

[0046] In a specific embodiment of the present application, the above-mentioned configuration module 401 is capable of copying the operation code of operating the FLASH memory to the RAM memory; in the RAM memory, reconfiguring the operating environment of the FLASH memory, and configuring the FLASH memory-related hardware to read enhancement mode; and switching the running program from the RAM memory to the FLASH memory for execution.

[0047] In a specific embodiment of the present application, the above-mentioned configuration module 401 can reset and initialize the FLASH memory-related hardware to the single-line mode, and then modify and configure the FLASH memory-related hardware to the multi-line mode; and, configure the FLASH memory-related hardware in the multi-line mode to set the transfer instruction and address stage to a mode of sending an 8-bit transfer instruction, a 24-bit address, an 8-bit start read enhancement mode bit, and a 4-bit dummy cycle, and send a read command in this mode; then modify and configure the FLASH memory-related hardware to set the transfer instruction and address stage to a mode of sending a 24-bit address, an 8-bit start read enhancement mode bit, and a 4-bit dummy cycle.

[0048] In a specific embodiment of the present application, the above-mentioned configuration module 401 is capable of and the process of configuring the FLASH memory-related hardware to the read enhancement mode includes, before configuring the FLASH memory-related hardware to the read enhancement mode, turning off the existing mode of the FLASH memory and resetting all the environmental variables required for running in the FLASH memory; and after configuring the FLASH memory-related hardware to the read enhancement mode, configuring the environmental parameters required for running in the FLASH memory.

[0049] In a specific example of the present application, the above-mentioned transmission instruction is 0xeb, and the 8-bit start read enhancement mode bit is 0x20. The above-mentioned configuration module 401 can, in the RAM code, turn off the existing configuration mode of the FLASH memory, and reset all the environment variables required for the program to run in the FLASH memory to achieve the operability of the program to the FLASH memory. Then initialize the relevant hardware to single-line mode, send a reset command to reset and initialize the FLASH memory, and then modify the hardware configuration to multi-line mode, and configure it to send an 8-bit instruction, 32-bit address and 4-bit virtual cycle configuration. In this mode, a read command is sent, and the address is set to 0x20. Since the set address is 32 bits, it is mapped to Figure 3 In the timing diagram shown, the mode bit is 0x20, and the 24-bit address is 0, that is, the address is set to 0x20, which is parsed as 32 bits: 0000 0000 0000 0000 0000 0000 0010 0000. After transmitting the transmission instruction 0xeb, only the first 24 bits of the address are recognized, and the last 8 bits are the mode bits. However, after this operation, the multi-line read enhancement mode of the FLASH memory is activated, and the instruction does not need to be sent for the next read. Then modify the hardware configuration to configure it as 24-bit address, 8-bit mode bit, 4-bit virtual cycle operation mode; and configure the environmental parameters required for the program to run in the FLASH memory.

[0050] Figure 4 Module 402 shows a module for reading data stored in the FLASH memory in the read enhancement mode, which can shorten the cycles required for the transmission instruction and address stages when reading data stored in the FLASH memory in the read enhancement mode, thereby greatly improving the reading performance of the FLASH memory.

[0051] The device for enhancing the random read and write capability of the FLASH memory provided in the present application can be used to execute the method for enhancing the random read and write capability of the FLASH memory described in any of the above embodiments. The implementation principle and technical effect are similar and will not be repeated here.

[0052] In a specific embodiment of the present application, in a device for enhancing the random read and write capability of a FLASH memory of the present application, the configuration module and the reading module may be directly in hardware, in a software module executed by a processor, or in a combination of the two.

[0053] The software modules may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from and write information to the storage medium.

[0054] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA), or other programmable logic devices, discrete gates or transistor logic, discrete hardware components, or any combination thereof. A general-purpose processor may be a microprocessor, but in an alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors combined with a DSP core, or any other such configuration. In an alternative, the storage medium may be integrated with the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In an alternative, the processor and the storage medium may reside in a user terminal as discrete components.

[0055] Figure 5What is shown is a specific implementation of a system for enhancing the random read and write capability of a FLASH memory according to the present application.

[0056] exist Figure 5 The specific implementation of the system for enhancing the random read and write capability of the FLASH memory shown includes a FLASH memory and the device for enhancing the random read and write capability of the FLASH memory as described above, wherein the device for enhancing the random read and write capability of the FLASH memory includes a configuration module and a reading module.

[0057] In a specific embodiment of the present application, the above-mentioned system for enhancing the random read and write capability of the FLASH memory also includes a RAM memory, the configuration module of the device for the random read and write capability of the FLASH memory is set in the RAM memory, and the reading module of the device for the random read and write capability of the FLASH memory is set in the FLASH memory.

[0058] In another specific embodiment of the present application, a computer-readable storage medium stores computer instructions, and the computer instructions are operated to execute the method for enhancing the random read and write capability of a FLASH memory in the above solution.

[0059] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0060] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0061] The above description is only an embodiment of the present application and does not limit the patent scope of the present application. Any equivalent structural transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method for enhancing the random read and write capability of a FLASH memory, characterized in that: include: Configuring the FLASH memory to a read enhancement mode includes copying an operation code for operating the FLASH memory to a RAM memory, reconfiguring an operating environment of the FLASH memory in the RAM memory, configuring hardware related to the FLASH memory to the read enhancement mode, and switching an operating program from the RAM memory to the FLASH memory for execution; and, Reading data stored in the FLASH memory in the read enhancement mode; Among them, the read enhancement mode is to set the transfer instruction and address stages to transmit an 8-bit transfer instruction, a 24-bit address, an 8-bit start read enhancement mode bit and a 4-bit virtual cycle when reading data for the first time, and then each time the data is read, only the 24-bit address, the 8-bit start read enhancement mode bit and the 4-bit virtual cycle need to be transmitted.

2. The method for enhancing the random read and write capability of FLASH memory according to claim 1, characterized in that: Each time the read enhancement mode reads data, the 24-bit address and the 8-bit read enhancement mode start bit are transmitted in a multi-line manner.

3. The method for enhancing the random read and write capability of FLASH memory according to claim 1, characterized in that: The process of configuring the FLASH memory related hardware to the read enhancement mode in the RAM memory includes: Reset and initialize the FLASH memory related hardware to the single-line mode, and then modify and configure the FLASH memory related hardware to the multi-line mode; as well as, The FLASH memory related hardware in the multi-line mode is configured to set the transfer instruction and address phase to a mode of sending the 8-bit transfer instruction, the 24-bit address, the 8-bit start read enhancement mode bit and the 4-bit dummy cycle once, and sending a read command once in this mode; Then, the FLASH memory related hardware is modified and configured to set the transfer instruction and the address stage to a mode of sending the 24-bit address, the 8-bit start read enhancement mode bit and the 4-bit dummy cycle.

4. The method for enhancing the random read and write capability of FLASH memory according to claim 1, characterized in that: The process of reconfiguring the operating environment of the FLASH memory in the RAM memory and configuring the FLASH memory related hardware to the read enhancement mode includes: Before configuring the FLASH memory related hardware to the read enhancement mode, the existing mode of the FLASH memory is turned off, and all the environment variables required for operation in the FLASH memory are reset; as well as, After the FLASH memory-related hardware is configured to the read enhancement mode, the environment parameters required for operation in the FLASH memory are configured.

5. A device for enhancing the random read and write capability of a FLASH memory, characterized in that: include, a configuration module, configured to configure the FLASH memory to a read enhancement mode, including copying an operation code for operating the FLASH memory to a RAM memory, reconfiguring the operating environment of the FLASH memory in the RAM memory, configuring the FLASH memory-related hardware to the read enhancement mode, and switching the running program from the RAM memory to the FLASH memory for running; and, A reading module, used for reading data stored in the FLASH memory in the read enhancement mode; The read enhancement mode is to set the transfer instruction and address stages to transmit an 8-bit transfer instruction, a 24-bit address, an 8-bit start read enhancement mode bit and a 4-bit dummy cycle when reading data for the first time, and then each subsequent data read only requires transmitting the 24-bit address, the 8-bit start read enhancement mode bit and the 4-bit dummy cycle.

6. The device for enhancing the random read and write capability of FLASH memory according to claim 5, characterized in that: The configuration module includes an address and mode bit multi-line configuration submodule, which is used to transmit the 24-bit address and the 8-bit start read enhancement mode bit in a multi-line manner.

7. A system for enhancing the random read and write capability of FLASH memory, characterized in that: The invention comprises a FLASH memory and a device for enhancing the random read and write capability of the FLASH memory as claimed in claim 5 or 6.

8. A computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are operated to execute the method for enhancing the random read and write capability of the FLASH memory as described in any one of claims 1 to 4.