Adaptive Nand Flash read-write speed adjusting method

文档序号:1504662 发布日期:2020-02-07 浏览:5次 中文

阅读说明:本技术 自适应的Nand Flash读写速度调整方法 (Adaptive Nand Flash read-write speed adjusting method ) 是由 刘慧婕 仇旭东 赵斌 李岩 于 2019-10-22 设计创作,主要内容包括:本发明属于存储器技术领域,具体涉及一种自适应的Nand Flash读写速度调整方法。与现有技术相比较,本发明相较于通常采用的单一设定速率的Nand-flash读写方法,这种方法可以根据外界环境调节读写速率,最大限度的保证读写速度与正确性,且更加适应温度变化大的恶略环境的应用。由此,本发明提出一种随温度变化进行动态调节Nand-flash的读写速度的方法,即可以保证数据的正确性,也可以一定程度上保证读写效率。(The invention belongs to the technical field of memories, and particularly relates to a self-adaptive Nand Flash read-write speed adjusting method. Compared with the prior art, the method has the advantages that the read-write speed can be adjusted according to the external environment, the read-write speed and the correctness are guaranteed to the maximum extent, and the method is more suitable for the application of severe environment with large temperature change compared with the commonly adopted Nand-flash read-write method with single set speed. Therefore, the invention provides a method for dynamically adjusting the read-write speed of the Nand-flash along with the temperature change, which can ensure the correctness of data and the read-write efficiency to a certain extent.)

1. A self-adaptive Nand Flash read-write speed adjusting method is characterized in that the read-write speed adjusting method is implemented based on a read-write speed adjusting system, and the read-write speed adjusting system comprises: the device comprises a core control module, a read-write control module and a speed adjusting module; the read-write speed adjusting method comprises the following steps:

step 1: the read-write control module controls the Nand-flash to be read and written according to a conventional speed, and if the core control module detects that an error occurs, the current temperature is obtained through a temperature sensing device of the core control module;

step 2: if the temperature is unchanged, error correction algorithm is used for correcting data of single bit or a plurality of bits;

and step 3: if the temperature is changed indeed, the speed adjusting module adjusts the corresponding reading and writing speed to avoid large-scale data errors;

and 4, step 4: if the core control module still detects that a large-scale error occurs after the speed is adjusted, the speed adjusting module continues to reduce the reading and writing speed;

and 5: after a block of data is read/written, the core control module acquires the current temperature again to see whether the normal temperature is recovered, if the normal temperature is recovered, the speed is adjusted to be the conventional speed by the speed adjusting module, and if the normal temperature is still in the high-temperature or low-temperature environment, the current reading and writing speed is kept unchanged.

2. The adaptive Nand Flash read-write speed adjustment method as claimed in claim 1, wherein the core control module is used for sensing temperature change and detecting and correcting errors.

3. The adaptive Nand Flash read-write speed adjustment method as claimed in claim 2, wherein the read-write control module is used for completing normal read-write control.

4. The adaptive Nand Flash read-write speed adjustment method as claimed in claim 3, wherein the speed adjustment module is used for completing the adjustment function of the read-write speed along with the temperature change.

5. The adaptive Nand Flash read-write speed adjustment method as claimed in claim 4, wherein the modules cooperate with each other to adjust the Nand-Flash read-write speed according to the change of the external temperature, thereby ensuring correct and efficient read-write.

6. The adaptive Nand Flash read-write speed adjustment method as claimed in claim 1, wherein in step 1, after a page is read/written, error detection of corresponding data is performed by a core control module.

7. The adaptive Nand Flash read-write speed adjustment method as claimed in claim 1, wherein in the step 3, the adjustment rule of the speed adjustment module is correspondingly reduced by 0.5M/S every time the temperature is increased or reduced by ten degrees.

8. The adaptive Nand Flash read-write speed adjustment method as claimed in claim 1, wherein in the step 4, after the speed adjustment is completed, the read-write control module starts to perform read-write according to the adjusted speed, after the read-write of one page is completed, the core control module detects again whether a large-scale error still occurs, and if the large-scale error occurs, the speed is continuously reduced by the error adjustment module.

9. The adaptive Nand Flash read-write speed adjustment method as claimed in claim 8, wherein the continuing to decrease the speed by the error adjustment module is at an interval of 0.5M/S.

10. The adaptive Nand Flash read-write speed adjustment method as claimed in claim 1, wherein in the step 5, if the temperature is still at high temperature or low temperature, the read-write is continued according to the adjusted current speed, and the core control module performs the re-detection of the temperature after reading/writing one block of data each time.

Technical Field

The invention belongs to the technical field of memories, and particularly relates to a self-adaptive Nand Flash read-write speed adjusting method.

Background

The Nand-Flash memory is one of Flash memories, adopts a nonlinear macro-unit mode inside the Nand-Flash memory, and provides a cheap and effective solution for realizing a solid-state large-capacity memory. The Nand-flash memory has the advantages of large capacity, high rewriting speed and the like, is suitable for storing a large amount of data, and is widely applied to the civil and military fields.

In some engineering test projects, besides the severe test environment, the test cost is very high, so that in order to save the test cost, the requirements on the reliability of test equipment are severe, and particularly, the requirements on the integrity and the correctness of test data are very high. The Nand-flash is the best choice for such applications due to its advantages of high speed, high storage density, shock resistance, etc. However, due to the structural characteristics and the manufacturing process limitations, errors exist in the Nand-flash application, and the data of the whole block or page is generally not invalid when an error occurs, but a single-bit or multi-bit error occurs in one page. In addition, the read-write performance of the Nand-flash is affected by environmental factors, the response speed of the Nand-flash after operation becomes slow along with the increase or decrease of the temperature, and if the Nand-flash is still read and written at a high speed, large-scale data errors may occur. Data of a single bit or a plurality of bits can be corrected through a corresponding error correction algorithm, but large-scale errors cannot be reasonably processed. Therefore, under the condition of high temperature or low temperature, in order to ensure the correctness of reading and writing, the corresponding reading and writing speed must be reduced. That is, in a relatively severe environment, the temperature change is relatively large, and the corresponding read-write speed needs to be adjusted according to the external temperature to ensure the correctness of data.

At the present stage, in order to maintain the correctness of data reading and writing under the conditions of low temperature and high temperature, when the Nand-flash reading and writing speed is set, a lower reading and writing speed which does not make mistakes under the high and low temperature environment is generally selected to ensure the correctness of reading and writing. However, the speed adopted at this time is only the speed under the ideal experiment condition, and the experiment condition and the environment condition in the practical application have a certain difference, and there is still a possibility that an error occurs when the actual reading and writing is performed under the speed condition.

Disclosure of Invention

Technical problem to be solved

The technical problem to be solved by the invention is as follows: how to provide a self-adaptive Nand Flash read-write speed adjusting method.

(II) technical scheme

In order to solve the technical problem, the invention provides a self-adaptive Nand Flash read-write speed adjusting method, which is implemented based on a read-write speed adjusting system, wherein the read-write speed adjusting system comprises: the device comprises a core control module, a read-write control module and a speed adjusting module; the read-write speed adjusting method comprises the following steps:

step 1: the read-write control module controls the Nand-flash to be read and written according to a conventional speed, and if the core control module detects that an error occurs, the current temperature is obtained through a temperature sensing device of the core control module;

step 2: if the temperature is unchanged, error correction algorithm is used for correcting data of single bit or a plurality of bits;

and step 3: if the temperature is changed indeed, the speed adjusting module adjusts the corresponding reading and writing speed to avoid large-scale data errors;

and 4, step 4: if the core control module still detects that a large-scale error occurs after the speed is adjusted, the speed adjusting module continues to reduce the reading and writing speed;

and 5: after a block of data is read/written, the core control module acquires the current temperature again to see whether the normal temperature is recovered, if the normal temperature is recovered, the speed is adjusted to be the conventional speed by the speed adjusting module, and if the normal temperature is still in the high-temperature or low-temperature environment, the current reading and writing speed is kept unchanged.

The core control module is used for sensing temperature change and detecting and correcting errors.

The read-write control module is used for completing normal read-write control.

The speed adjusting module is used for completing the adjusting function of the reading and writing speed along with the temperature change.

The plurality of modules are matched with each other, the read-write speed of the Nand-flash is adjusted according to the change of the external temperature, and correct and efficient read-write is guaranteed.

In step 1, after a page is read/written, the core control module performs error detection on corresponding data.

In the step 3, the speed is correspondingly reduced by 0.5M/S according to the regulation rule of the speed regulation module when the temperature is increased or reduced by ten degrees.

In step 4, after the speed adjustment is completed, the read-write control module starts to read and write according to the adjusted speed, after one page of read and write is completed, the core control module detects whether a large-scale error still occurs again, and if the large-scale error occurs, the speed is continuously reduced by the error adjustment module.

Wherein the continuing to decrease by the fault adjustment module decreases at intervals of 0.5M/S.

In step 5, if the temperature is still at a high temperature or a low temperature, the reading and writing are continued at the adjusted current speed, and the core control module performs the re-detection of the temperature after reading/writing one block of data each time.

(III) advantageous effects

Compared with the prior art, the method has the advantages that the read-write speed can be adjusted according to the external environment, the read-write speed and the correctness are guaranteed to the maximum extent, and the method is more suitable for the application of severe environment with large temperature change compared with the commonly adopted Nand-flash read-write method with single set speed. Therefore, the invention provides a method for dynamically adjusting the read-write speed of the Nand-flash along with the temperature change, which can ensure the correctness of data and the read-write efficiency to a certain extent.

Drawings

FIG. 1 is a flow chart of the technical solution of the present invention.

Detailed Description

In order to make the objects, contents, and advantages of the present invention clearer, the following detailed description of the embodiments of the present invention will be made in conjunction with the accompanying drawings and examples.

In order to solve the technical problem, the invention provides a self-adaptive Nand Flash read-write speed adjusting method, which is implemented based on a read-write speed adjusting system, wherein the read-write speed adjusting system comprises: the device comprises a core control module, a read-write control module and a speed adjusting module; the read-write speed adjusting method comprises the following steps:

step 1: the read-write control module controls the Nand-flash to be read and written according to a conventional speed, and if the core control module detects that an error occurs, the current temperature is obtained through a temperature sensing device of the core control module;

step 2: if the temperature is unchanged, error correction algorithm is used for correcting data of single bit or a plurality of bits;

and step 3: if the temperature is changed indeed, the speed adjusting module adjusts the corresponding reading and writing speed to avoid large-scale data errors;

and 4, step 4: if the core control module still detects that a large-scale error occurs after the speed is adjusted, the speed adjusting module continues to reduce the reading and writing speed;

and 5: after a block of data is read/written, the core control module acquires the current temperature again to see whether the normal temperature is recovered, if the normal temperature is recovered, the speed is adjusted to be the conventional speed by the speed adjusting module, and if the normal temperature is still in the high-temperature or low-temperature environment, the current reading and writing speed is kept unchanged.

The core control module is used for sensing temperature change and detecting and correcting errors.

The read-write control module is used for completing normal read-write control.

The speed adjusting module is used for completing the adjusting function of the reading and writing speed along with the temperature change.

The plurality of modules are matched with each other, the read-write speed of the Nand-flash is adjusted according to the change of the external temperature, and correct and efficient read-write is guaranteed.

In step 1, after a page is read/written, the core control module performs error detection on corresponding data.

In the step 3, the speed is correspondingly reduced by 0.5M/S according to the regulation rule of the speed regulation module when the temperature is increased or reduced by ten degrees.

In step 4, after the speed adjustment is completed, the read-write control module starts to read and write according to the adjusted speed, after one page of read and write is completed, the core control module detects whether a large-scale error still occurs again, and if the large-scale error occurs, the speed is continuously reduced by the error adjustment module.

Wherein the continuing to decrease by the fault adjustment module decreases at intervals of 0.5M/S.

In step 5, if the temperature is still at a high temperature or a low temperature, the reading and writing are continued at the adjusted current speed, and the core control module performs the re-detection of the temperature after reading/writing one block of data each time.

7页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种SSD主控中的RAID核心计算装置及方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!