Memory adaptive temperature control method, storage device and control circuit unit
By using a temperature sensor in the memory storage device and adjusting the percentage to calculate the access speed, the problem of temperature fluctuation is solved, a balance between temperature stability and system performance is achieved, and the reliability and performance of the memory are improved.
Patent Information
- Application Number
- CN202210367863.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-08
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-04-08
AI Technical Summary
Existing memory storage devices have a problem of excessive temperature fluctuation in temperature control, resulting in unstable system performance and inability to effectively balance temperature stability and memory performance.
Measure the temperature value through the temperature sensor, determine whether it exceeds the threshold value, perform a speed reduction or speed up operation, calculate the access speed based on the temperature change speed and adjustment percentage, and use step adjustment to stabilize the temperature.
It achieves a balance between the stability of the memory storage device temperature and system performance, avoids excessive temperature fluctuations, and improves the reliability and performance of the memory.
Smart Images

Figure CN114706529B
Abstract
Description
Technical Field
[0001] The present invention relates to a memory temperature control technology, and in particular to a memory adaptive temperature control method, a storage device and a control circuit unit. Background Art
[0002] Digital cameras, mobile phones and MP3s have grown rapidly in the past few years, causing consumers' demand for storage media to increase rapidly. Rewritable non-volatile memory is most suitable for portable electronic products such as laptops because of its characteristics of non-volatility, power saving, small size, no mechanical structure, and fast read and write speed. Solid-state drives are a type of memory storage device that uses flash memory modules as storage media. Therefore, the flash memory industry has become a very popular part of the electronics industry in recent years.
[0003] A memory storage device generates a large amount of heat energy when it is in operation. In order to prevent the device from being affected in performance or damaged due to overheating, the temperature of the memory storage device must generally be suppressed below a certain temperature. In the prior art, when the temperature of the device reaches a temperature threshold that may affect the operation, the memory storage device will start a speed reduction operation to reduce the temperature. This speed reduction operation can be used to reduce the temperature of the device. When the temperature has dropped to a reasonable temperature, the memory storage device will stop performing the speed reduction operation. Figure 1 This is a schematic diagram of the temperature value being affected by the speed reduction operation. Figure 1 In the example, assuming that the temperature rises to the threshold value TH1 at time point T1, the memory storage device will perform a speed reduction operation. After performing the speed reduction operation, if the temperature drops to the threshold value TH2 at time point T2, the memory storage device will stop performing the speed reduction operation. Then, assuming that the temperature rises to the threshold value TH1 again at time point T3, the memory storage device may perform the speed reduction operation again. And if the temperature drops to the threshold value TH2 at time point T4, the memory storage device will stop the speed reduction operation. Repeatedly executing and stopping the speed reduction operation will cause the temperature fluctuation of the device to be too large. Summary of the invention
[0004] The present invention provides a memory adaptive temperature control method, a memory device and a control circuit unit, which can improve the temperature control mechanism of the memory storage device, thereby achieving a balance between temperature stability and system performance of the memory storage device.
[0005] The present invention provides a memory adaptive temperature control method, which is used for a memory storage device including a memory control circuit unit and a rewritable non-volatile memory module. The memory control circuit unit is used to control the rewritable non-volatile memory module. The method includes the following steps: measuring the temperature through a temperature sensor to obtain a first temperature value, and judging whether the first temperature value is greater than a first threshold value; in response to judging that the first temperature value is greater than the first threshold value, performing a speed reduction operation to reduce the access speed of the memory storage device to a first speed; when the memory storage device performs data access at the first speed, measuring the temperature through the temperature sensor to obtain a second temperature value, and judging whether the second temperature value is less than a second threshold value; in response to judging that the second temperature value is less than the second threshold value, calculating the first temperature change speed within a specific time range, and determining a first adjustment percentage according to the first temperature change speed; and calculating a second speed according to the first speed and the first adjustment percentage, and adjusting the access speed of the memory storage device to the second speed.
[0006] In one embodiment of the present invention, the second speed is lower than the first speed.
[0007] In one embodiment of the present invention, the step of calculating the first temperature change rate includes: calculating the first temperature change rate between the time point when the first temperature value is determined to be greater than the first threshold value and the time point when the second temperature value is determined to be less than the second threshold value.
[0008] In an embodiment of the present invention, the step of determining the first adjustment percentage according to the first temperature change rate includes: querying a first comparison table according to the first temperature change rate to obtain the first adjustment percentage.
[0009] In one embodiment of the present invention, the method further includes: when the memory storage device performs data access at the second speed, calculating a second temperature change speed within the preset time interval after each preset time interval; determining a second adjustment percentage based on the second temperature change speed; and calculating a third speed based on the second speed and the second adjustment percentage, and adjusting the access speed of the memory storage device to the third speed.
[0010] In one embodiment of the present invention, the step of adjusting the access speed of the memory storage device to the third speed includes: determining whether the temperature change within the preset time interval is an increase or a decrease; in response to determining that the temperature change is an increase, performing the speed reduction operation to adjust the access speed of the memory storage device to the third speed; and in response to determining that the temperature change is a decrease, performing the speed increase operation to adjust the access speed of the memory storage device to the third speed.
[0011] The present invention provides a memory storage device, comprising a connection interface unit, a rewritable non-volatile memory module, a temperature sensor and a memory control circuit unit. The connection interface unit is used to couple to a host system. The memory control circuit unit is coupled to the connection interface unit, the rewritable non-volatile memory module and the temperature sensor. The memory control circuit unit is used to measure the temperature through the temperature sensor to obtain a first temperature value, and to determine whether the first temperature value is greater than a first threshold value. The memory control circuit unit is further used to perform a speed reduction operation to reduce the access speed of the memory storage device to a first speed in response to determining that the first temperature value is greater than the first threshold value. The memory control circuit unit is further used to measure the temperature through the temperature sensor to obtain a second temperature value when the memory storage device performs data access at the first speed, and to determine whether the second temperature value is less than a second threshold value. The memory control circuit unit is further used to calculate a first temperature change speed within a specific time range in response to determining that the second temperature value is less than the second threshold value, and to determine a first adjustment percentage according to the first temperature change speed. Furthermore, the memory control circuit unit is further configured to calculate a second speed according to the first speed and the first adjustment percentage, and adjust the access speed of the memory storage device to the second speed.
[0012] In one embodiment of the present invention, the second speed is lower than the first speed.
[0013] In one embodiment of the present invention, the operation of calculating the first temperature change rate includes: calculating the first temperature change rate between the time point when the first temperature value is determined to be greater than the first threshold value and the time point when the second temperature value is determined to be less than the second threshold value.
[0014] In an embodiment of the present invention, the operation of determining the first adjustment percentage according to the first temperature change rate includes: querying a first comparison table according to the first temperature change rate to obtain the first adjustment percentage.
[0015] In one embodiment of the present invention, the memory control circuit unit is further configured to calculate the second temperature change rate within the preset time interval after each preset time interval when the memory storage device performs data access at the second speed. The memory control circuit unit is further configured to determine a second adjustment percentage based on the second temperature change rate. Furthermore, the memory control circuit unit is further configured to calculate a third speed based on the second speed and the second adjustment percentage, and adjust the access speed of the memory storage device to the third speed.
[0016] In one embodiment of the present invention, the operation of adjusting the access speed of the memory storage device to the third speed includes: determining whether the temperature change within the preset time interval is an increase or a decrease; in response to determining that the temperature change is an increase, performing the speed reduction operation to adjust the access speed of the memory storage device to the third speed; and in response to determining that the temperature change is a decrease, performing the speed increase operation to adjust the access speed of the memory storage device to the third speed.
[0017] The present invention provides a memory control circuit unit for controlling a rewritable non-volatile memory module included in a memory storage device. The memory control circuit unit includes a host interface, a memory interface, a temperature sensor, and a memory management circuit. The host interface is used to couple to a host system. The memory interface is used to couple to the rewritable non-volatile memory module. The memory management circuit is coupled to the host interface, the memory interface, and the temperature sensor.
[0018] The memory management circuit is used to measure the temperature through the temperature sensor to obtain a first temperature value, and to determine whether the first temperature value is greater than a first threshold value. The memory management circuit is further used to perform a speed reduction operation to reduce the access speed of the memory storage device to a first speed in response to determining that the first temperature value is greater than the first threshold value. The memory management circuit is further used to measure the temperature through the temperature sensor to obtain a second temperature value when the memory storage device performs data access at the first speed, and to determine whether the second temperature value is less than a second threshold value. The memory management circuit is further used to calculate the first temperature change speed within a specific time range in response to determining that the second temperature value is less than the second threshold value, and determine a first adjustment percentage based on the first temperature change speed. In addition, the memory management circuit is further used to calculate a second speed based on the first speed and the first adjustment percentage, and adjust the access speed of the memory storage device to the second speed.
[0019] In one embodiment of the present invention, the second speed is lower than the first speed.
[0020] In one embodiment of the present invention, the operation of calculating the first temperature change rate includes: calculating the first temperature change rate between the time point when the first temperature value is determined to be greater than the first threshold value and the time point when the second temperature value is determined to be less than the second threshold value.
[0021] In an embodiment of the present invention, the operation of determining the first adjustment percentage according to the first temperature change rate includes: querying a first comparison table according to the first temperature change rate to obtain the first adjustment percentage.
[0022] In one embodiment of the present invention, the memory management circuit is further configured to calculate a second temperature change rate within a preset time interval after each preset time interval when the memory storage device performs data access at the second speed. The memory management circuit is further configured to determine a second adjustment percentage based on the second temperature change rate. Furthermore, the memory management circuit is further configured to calculate a third speed based on the second speed and the second adjustment percentage, and adjust the access speed of the memory storage device to the third speed.
[0023] In one embodiment of the present invention, the operation of adjusting the access speed of the memory storage device to the third speed includes: determining whether the temperature change within the preset time interval is an increase or a decrease; in response to determining that the temperature change is an increase, performing the speed reduction operation to adjust the access speed of the memory storage device to the third speed; and in response to determining that the temperature change is a decrease, performing the speed increase operation to adjust the access speed of the memory storage device to the third speed.
[0024] Based on the above, the exemplary embodiment obtains the temperature value according to the temperature measured by the temperature sensor, and when determining whether to perform a speed reduction or speed increase operation, the access speed to be achieved is calculated according to the temperature change rate and the adjustment percentage within a specific time range. By adjusting the access speed of the memory storage device in a step-by-step manner, the temperature of the memory storage device can be stabilized, thereby achieving a balance between temperature stability and the system performance of the memory storage device. Compared with the traditional cooling mechanism that executes or stops the speed reduction operation at a specific threshold value, the present invention can control the temperature of the memory storage device more flexibly.
[0025] In order to make the above features and advantages of the present invention more clearly understood, embodiments are given below with reference to the accompanying drawings for detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The accompanying drawings are included to provide a further understanding of the present invention and are incorporated in and constitute a part of this specification. The drawings illustrate embodiments of the present invention and together with the description serve to explain the principles of the present invention.
[0027] Figure 1 It is a schematic diagram of an existing temperature value affected by a speed reduction operation;
[0028] Figure 2 is a schematic diagram of a host system, a memory storage device, and an input / output (I / O) device according to an exemplary embodiment;
[0029] Figure 3 is a schematic diagram of a host system, a memory storage device, and an input / output (I / O) device according to another exemplary embodiment;
[0030] Figure 4 is a schematic diagram of a host system and a memory storage device according to another exemplary embodiment;
[0031] Figure 5 is a schematic block diagram of a memory storage device according to an exemplary embodiment of the present invention;
[0032] Figure 6 is a schematic block diagram of a memory control circuit unit according to an exemplary embodiment of the present invention;
[0033] Figure 7 is a schematic diagram of managing a rewritable non-volatile memory module according to an exemplary embodiment of the present invention.
[0034] Figure 8 is a schematic diagram showing the influence of a speed reduction operation on a temperature value according to an exemplary embodiment of the present invention;
[0035] Fig. 9 is a flow chart of a memory adaptive temperature control method according to an exemplary embodiment of the present invention;
[0036] Fig.10 is a flow chart of a memory adaptive temperature control method according to an exemplary embodiment of the present invention. DETAILED DESCRIPTION
[0037] The terms "first", "second", etc. mentioned in the entire text of this application specification (including the scope of the patent application) are used to name the components (element) or to distinguish different embodiments or scopes, and are not used to limit the upper or lower limit of the number of components, nor to limit the order of the components. In addition, wherever possible, components / members / steps with the same numbers in the drawings and embodiments represent the same or similar parts. Components / members / steps with the same numbers or the same terms in different embodiments can refer to the relevant descriptions of each other. These embodiments are only a part of the present invention and do not disclose all possible implementation methods of the present invention.
[0038] Generally speaking, a memory storage device (also known as a memory storage system) includes a rewritable non-volatile memory module and a controller (also known as a control circuit unit). The memory storage device is usually used together with a host system so that the host system can write data to the memory storage device or read data from the memory storage device.
[0039] Figure 2 is a schematic diagram of a host system, a memory storage device, and an input / output (I / O) device according to an exemplary embodiment. Figure 3is a schematic diagram of a host system, a memory storage device, and an input / output (I / O) device according to another exemplary embodiment.
[0040] Please refer to Figure 2 and Figure 3 The host system 11 generally includes a processor 111 , a random access memory (RAM) 112 , a read only memory (ROM) 113 , and a data transmission interface 114 . The processor 111 , the random access memory 112 , the read only memory 113 , and the data transmission interface 114 are all coupled to a system bus 110 .
[0041] In the present exemplary embodiment, the host system 11 is coupled to the memory storage device 10 via the data transmission interface 114. For example, the host system 11 can write data to the memory storage device 10 or read data from the memory storage device 10 via the data transmission interface 114. In addition, the host system 11 is coupled to the I / O device 12 via the system bus 110. For example, the host system 11 can transmit an output signal to the I / O device 12 or receive an input signal from the I / O device 12 via the system bus 110.
[0042] In the present exemplary embodiment, the processor 111, the random access memory 112, the read-only memory 113 and the data transmission interface 114 may be disposed on the motherboard 20 of the host system 11. The number of the data transmission interface 114 may be one or more. Through the data transmission interface 114, the motherboard 20 may be coupled to the memory storage device 10 via a wired or wireless manner. The memory storage device 10 may be, for example, a USB flash drive 201, a memory card 202, a solid state drive (SSD) 203 or a wireless memory storage device 204. The wireless memory storage device 204 may be, for example, a near field communication storage (NFC) memory storage device, a wireless fax (WiFi) memory storage device, a Bluetooth memory storage device or a low power Bluetooth memory storage device (e.g., iBeacon) and other memory storage devices based on various wireless communication technologies. In addition, the motherboard 20 can also be coupled to various I / O devices such as a global positioning system (GPS) module 205, a network adapter 206, a wireless transmission device 207, a keyboard 208, a screen 209, and a speaker 210 through the system bus 110. For example, in an exemplary embodiment, the motherboard 20 can access the wireless memory storage device 204 through the wireless transmission device 207.
[0043] In an exemplary embodiment, the host system mentioned is any system that can actually cooperate with the memory storage device to store data. Although in the above exemplary embodiment, the host system is described as a computer system, however, Figure 4 is a schematic diagram of a host system and a memory storage device according to another exemplary embodiment. Figure 4 In another exemplary embodiment, the host system 31 may also be a digital camera, a video camera, a communication device, an audio player, a video player or a tablet computer, and the memory storage device 30 may be various non-volatile memory storage devices such as an SD card 32, a CF card 33 or an embedded storage device 34 used therein. The embedded storage device 34 includes various types of embedded storage devices that directly couple the memory module to the substrate of the host system, such as an embedded multimedia card (embeddedMMC, eMMC) 341 and / or an embedded multi-chip package storage device (embedded Multi Chip Package, eMCP) 342.
[0044] Figure 5 is a schematic block diagram of a memory storage device according to an exemplary embodiment of the present invention. Figure 5 The memory storage device 10 includes a connection interface unit 402 , a memory control circuit unit 404 and a rewritable non-volatile memory module 406 .
[0045] The connection interface unit 402 is used to couple the memory storage device 10 to the host system 11. The memory storage device 10 can communicate with the host system 11 through the connection interface unit 402. In this exemplary embodiment, the connection interface unit 402 is compatible with the Serial Advanced Technology Attachment (SATA) standard. However, it should be understood that the present invention is not limited thereto, and the connection interface unit 402 may also comply with the Parallel Advanced Technology Attachment (PATA) standard, the Institute of Electrical and Electronic Engineers (IEEE) 1394 standard, the Peripheral Component Interconnect Express (PCI Express) standard, the Universal Serial Bus (USB) standard, the SD interface standard, the Ultra High Speed-I (UHS-I) interface standard, the Ultra High Speed-II (UHS-II) interface standard, the Memory Stick (MS) interface standard, the MCP interface standard, the MMC interface standard, the eMMC interface standard, the Universal Flash Storage (UFS) interface standard, the eMCP interface standard, the CF interface standard, the Integrated Device Electronics (IDE) standard or other suitable standards. The connection interface unit 402 and the memory control circuit unit 404 may be packaged in one chip, or the connection interface unit 402 may be disposed outside a chip including the memory control circuit unit 404 .
[0046] The memory control circuit unit 404 is used to execute a plurality of logic gates or control instructions implemented in hardware or firmware and perform operations such as writing, reading and erasing data in the rewritable non-volatile memory module 406 according to the instructions of the host system 11 .
[0047] The rewritable non-volatile memory module 406 is coupled to the memory control circuit unit 404 and is used to store data written by the host system 11. The rewritable non-volatile memory module 406 can be a single level cell (SLC) NAND flash memory module (i.e., a flash memory module in which one storage cell can store 1 bit), a multi-level cell (MLC) NAND flash memory module (i.e., a flash memory module in which one storage cell can store 2 bits), a triple level cell (TLC) NAND flash memory module (i.e., a flash memory module in which one storage cell can store 3 bits), a quad level cell (QLC) NAND flash memory module (i.e., a flash memory module in which one storage cell can store 4 bits), other flash memory modules or other memory modules with the same characteristics.
[0048] Each memory cell in the rewritable non-volatile memory module 406 stores one or more bits by changing the voltage (hereinafter also referred to as the critical voltage). Specifically, there is a charge capture layer between the control gate and the channel of each memory cell. By applying a write voltage to the control gate, the amount of electrons in the charge capture layer can be changed, thereby changing the critical voltage of the memory cell. This operation of changing the critical voltage of the memory cell is also called "writing data to the memory cell" or "programming the memory cell". As the critical voltage changes, each memory cell in the rewritable non-volatile memory module 406 has multiple storage states. By applying a read voltage, it is possible to determine which storage state a memory cell belongs to, thereby obtaining one or more bits stored in this memory cell.
[0049] In the present exemplary embodiment, the memory cells of the rewritable non-volatile memory module 406 may constitute a plurality of physical programming cells, and these physical programming cells may constitute a plurality of physical erasing cells. Specifically, the memory cells of the same word line may constitute one or more physical programming cells. If each memory cell may store more than 2 bits, the physical programming cells of the same word line may be classified into at least a lower physical programming cell and an upper physical programming cell. For example, the least significant bit (LSB) of a memory cell belongs to the lower physical programming cell, and the most significant bit (MSB) of a memory cell belongs to the upper physical programming cell. Generally speaking, in MLC NAND flash memory, the write speed of the lower physical programming cell is greater than the write speed of the upper physical programming cell, and / or the reliability of the lower physical programming cell is higher than the reliability of the upper physical programming cell.
[0050] In this exemplary embodiment, the physical programming unit is the smallest unit of programming. That is, the physical programming unit is the smallest unit for writing data. For example, the physical programming unit can be a physical page or a physical sector. If the physical programming unit is a physical page, these physical programming units may include a data bit area and a redundancy bit area. The data bit area includes a plurality of physical sectors for storing user data, and the redundancy bit area is used to store system data (for example, management data such as error correction codes). In this exemplary embodiment, the data bit area includes 32 physical sectors, and the size of a physical sector is 512 bytes (byte, B). However, in other exemplary embodiments, the data bit area may also include 8, 16 or more or less physical sectors, and the size of each physical sector may also be larger or smaller. On the other hand, the physical erase unit is the smallest unit of erase. That is, each physical erase unit contains one of the minimum number of erased storage cells. For example, the physical erase unit is a physical block.
[0051] Figure 6 is a schematic block diagram of a memory control circuit unit according to an exemplary embodiment of the present invention. Figure 6 The memory control circuit unit 404 includes a memory management circuit 502 , a host interface 504 and a memory interface 506 .
[0052] The memory management circuit 502 is used to control the overall operation of the memory control circuit unit 404. Specifically, the memory management circuit 502 has a plurality of control instructions, and when the memory storage device 10 operates, these control instructions are executed to perform operations such as writing, reading and erasing data. The following description of the operation of the memory management circuit 502 is equivalent to the description of the operation of the memory control circuit unit 404.
[0053] In this exemplary embodiment, the control instructions of the memory management circuit 502 are implemented in the form of firmware. For example, the memory management circuit 502 has a microprocessor unit (not shown) and a read-only memory (not shown), and these control instructions are recorded in the read-only memory. When the memory storage device 10 is operating, these control instructions are executed by the microprocessor unit to perform operations such as writing, reading and erasing data.
[0054] In another exemplary embodiment, the control instructions of the memory management circuit 502 can also be stored in a specific area of the rewritable non-volatile memory module 406 (for example, a system area in the memory module dedicated to storing system data) in the form of program code. In addition, the memory management circuit 502 has a microprocessor unit (not shown), a read-only memory (not shown) and a random access memory (not shown). In particular, the read-only memory has a boot code, and when the memory control circuit unit 404 is enabled, the microprocessor unit will first execute the boot code to load the control instructions stored in the rewritable non-volatile memory module 406 into the random access memory of the memory management circuit 502. Afterwards, the microprocessor unit will execute these control instructions to perform operations such as writing, reading and erasing data.
[0055] In addition, in another exemplary embodiment, the control instructions of the memory management circuit 502 can also be implemented in a hardware form. For example, the memory management circuit 502 includes a microcontroller, a storage unit management circuit, a memory write circuit, a memory read circuit, a memory erase circuit, and a data processing circuit. The storage unit management circuit, the memory write circuit, the memory read circuit, the memory erase circuit, and the data processing circuit are coupled to the microcontroller. The storage unit management circuit is used to manage the storage unit or storage unit group of the rewritable non-volatile memory module 406. The memory write circuit is used to issue a write instruction sequence to the rewritable non-volatile memory module 406 to write data into the rewritable non-volatile memory module 406. The memory read circuit is used to issue a read instruction sequence to the rewritable non-volatile memory module 406 to read data from the rewritable non-volatile memory module 406. The memory erase circuit is used to issue an erase command sequence to the rewritable non-volatile memory module 406 to erase data from the rewritable non-volatile memory module 406. The data processing circuit is used to process data to be written to the rewritable non-volatile memory module 406 and data to be read from the rewritable non-volatile memory module 406. The write command sequence, the read command sequence, and the erase command sequence may each include one or more program codes or scripts and are used to instruct the rewritable non-volatile memory module 406 to perform corresponding write, read, and erase operations. In an exemplary embodiment, the memory management circuit 502 may also issue other types of command sequences to the rewritable non-volatile memory module 406 to instruct the execution of corresponding operations.
[0056] The host interface 504 is coupled to the memory management circuit 502. The memory management circuit 502 can communicate with the host system 11 through the host interface 504. The host interface 504 can be used to receive and identify instructions and data transmitted by the host system 11. For example, the instructions and data transmitted by the host system 11 can be transmitted to the memory management circuit 502 through the host interface 504. In addition, the memory management circuit 502 can transmit data to the host system 11 through the host interface 504. In this exemplary embodiment, the host interface 504 is compatible with the SATA standard. However, it should be understood that the present invention is not limited thereto, and the host interface 504 can also be compatible with the PATA standard, the IEEE 1394 standard, the PCI Express standard, the USB standard, the SD standard, the UHS-I standard, the UHS-II standard, the MS standard, the MMC standard, the eMMC standard, the UFS standard, the CF standard, the IDE standard or other suitable data transmission standards.
[0057] The memory interface 506 is coupled to the memory management circuit 502 and is used to access the rewritable non-volatile memory module 406. That is, the data to be written to the rewritable non-volatile memory module 406 will be converted into a format acceptable to the rewritable non-volatile memory module 406 via the memory interface 506. Specifically, if the memory management circuit 502 wants to access the rewritable non-volatile memory module 406, the memory interface 506 will transmit a corresponding instruction sequence. For example, these instruction sequences may include a write instruction sequence indicating writing data, a read instruction sequence indicating reading data, an erase instruction sequence indicating erasing data, and corresponding instruction sequences for indicating various memory operations (for example, changing a read voltage level unit or performing a garbage collection operation, etc.). These instruction sequences are, for example, generated by the memory management circuit 502 and transmitted to the rewritable non-volatile memory module 406 through the memory interface 506. These instruction sequences may include one or more signals, or data on a bus. These signals or data may include scripts or program codes. For example, in a read instruction sequence, information such as a read identification code and a memory address may be included.
[0058] In an exemplary embodiment, the memory control circuit unit 404 further includes an error checking and correction circuit 508 , a buffer memory 510 , a power management circuit 512 , and a thermal sensor 514 .
[0059] The error checking and correction circuit 508 is coupled to the memory management circuit 502 and is used to perform error checking and correction operations to ensure the correctness of data. Specifically, when the memory management circuit 502 receives a write command from the host system 11, the error checking and correction circuit 508 generates a corresponding error correcting code (ECC) and / or error detecting code (EDC) for the data corresponding to the write command, and the memory management circuit 502 writes the data corresponding to the write command and the corresponding error correcting code and / or error detecting code into the rewritable non-volatile memory module 406. Afterwards, when the memory management circuit 502 reads data from the rewritable non-volatile memory module 406, it simultaneously reads the error correcting code and / or error detecting code corresponding to the data, and the error checking and correction circuit 508 performs error checking and correction operations on the read data according to the error correcting code and / or error detecting code.
[0060] The buffer memory 510 is coupled to the memory management circuit 502 and used to temporarily store data and commands from the host system 11 or data from the rewritable non-volatile memory module 406. The power management circuit 512 is coupled to the memory management circuit 502 and used to control the power of the memory storage device 10.
[0061] The temperature sensor 514 is coupled to the memory management circuit 502 and is used to sense temperature. The temperature sensor 514 is, for example, a thermocouple temperature sensor, a resistance temperature sensor, a thermistor temperature sensor, a semiconductor temperature sensor, or other similar types of temperature sensors. In this exemplary embodiment, the temperature sensor 514 can measure the temperature of the memory control circuit unit 404 and / or the rewritable non-volatile memory module 406. The temperature sensor 514 can be set inside the memory control circuit unit 404, outside the memory control circuit unit 404, inside the rewritable non-volatile memory module 406, outside the rewritable non-volatile memory module 406, or other locations suitable for measuring temperature, and the present invention is not limited thereto. In addition, the number of the temperature sensors 514 can be one or more.
[0062] In an exemplary embodiment, Figure 5 The rewritable non-volatile memory module 406 is also called a flash memory module, and the memory control circuit unit 404 is also called a flash memory controller for controlling the flash memory module. In an exemplary embodiment, Figure 6 The memory management circuit 502 is also called a flash memory management circuit.
[0063] Figure 7 FIG. 1 is a schematic diagram of managing a rewritable non-volatile memory module according to an exemplary embodiment of the present invention. Figure 7 , the memory management circuit 502 can logically group the physical units 610(0)~610(B) of the rewritable non-volatile memory module 406 into a storage area 601 and a replacement area 602. The physical units 610(0)~610(A) in the storage area 601 are used to store data, and the physical units 610(A+1)~610(B) in the replacement area 602 are used to replace damaged physical units in the storage area 601. For example, if the data read from a physical unit contains too many errors and cannot be corrected, this physical unit will be regarded as a damaged physical unit. It should be noted that if there is no available physical erase unit in the replacement area 602, the memory management circuit 502 may declare the entire memory storage device 10 to be in a write protection state, and data can no longer be written.
[0064] In the present exemplary embodiment, each physical unit refers to a physical erase unit. However, in another exemplary embodiment, a physical unit may also refer to a physical address, a physical programming unit, or a plurality of continuous or discontinuous physical addresses. The memory management circuit 502 configures the logical units 612 (0) to 612 (C) to map the physical units 610 (0) to 610 (A) in the storage area 601. In the present exemplary embodiment, each logical unit refers to a logical address. However, in another exemplary embodiment, a logical unit may also refer to a logical programming unit, a logical erase unit, or a plurality of continuous or discontinuous logical addresses. In addition, each of the logical units 612 (0) to 612 (C) may be mapped to one or more physical units.
[0065] The memory management circuit 502 may record the mapping relationship between the logical unit and the physical unit (also called the logical-physical address mapping relationship) in at least one logical-physical address mapping table. When the host system 11 wants to read data from the memory storage device 10 or write data to the memory storage device 10, the memory management circuit 502 may perform data access operations on the memory storage device 10 according to the logical-physical address mapping table.
[0066] In an exemplary embodiment, the memory management circuit 502 may measure the temperature of the memory storage device 10 via the temperature sensor 514 to obtain a temperature value. This temperature value varies with the temperature measured by the temperature sensor 514. The higher the temperature measured by the temperature sensor 514, the higher the temperature value will be, and the lower the temperature measured, the lower the temperature value will be. Generally speaking, the temperature of the memory storage device 10 must be controlled below a specific temperature, otherwise the memory storage device 10 may be damaged due to overheating. For example, the operating temperature range of the memory control circuit unit 404 and / or the rewritable non-volatile memory module 406 is between -25 and 80°C. However, the operating temperature range of each memory storage device 10 may vary depending on its characteristics.
[0067] In this exemplary embodiment, if the current temperature value is too high, the memory storage device 10 may perform a speed reduction operation to reduce the access speed of the memory storage device 10. This speed reduction operation can be used to reduce the temperature of the memory storage device 10. For example, the speed reduction operation may include various speed reduction means such as reducing the frequency of the memory storage device 10 and reducing the number of the controlled rewritable non-volatile memory modules 406. In addition, if after performing the speed reduction operation, the temperature sensor 514 measures that the current temperature value has been reduced to an appropriate temperature, the memory management circuit 502 may perform a speed increase operation to increase the access speed of the memory storage device 10. This speed increase operation, for example, includes various speed increase means such as increasing the frequency of the memory storage device 10 and increasing the number of the controlled rewritable non-volatile memory modules 406. However, the present invention is not limited to the above-mentioned speed reduction operation and speed increase operation means, as long as the operation that can reduce the speed of the memory storage device 10 belongs to the scope of the speed reduction operation of the present invention, and the operation that can increase the speed of the memory storage device 10 belongs to the scope of the speed increase operation of the present invention.
[0068] Figure 8 FIG. 1 is a schematic diagram showing how a temperature value is affected by a speed reduction operation according to an exemplary embodiment of the present invention. Figure 8 , Figure 8 The solid line in represents the change of temperature value, and the single-point long dashed line represents the change of performance. A threshold value TH1 (also known as the first threshold value) and a threshold value TH2 (also known as the second threshold value) can be determined, wherein the threshold value TH1 is greater than the threshold value TH2. For example, the threshold value TH1 can be 75°C, and the threshold value TH2 can be 65°C. In this exemplary embodiment, the memory management circuit 502 determines whether the temperature value (also known as the first temperature value) is greater than the threshold value TH1. Assuming that at time point T1, the memory management circuit 502 determines that the first temperature value is greater than the threshold value TH1, the memory management circuit 502 performs a speed reduction operation to reduce the access speed of the memory storage device 10 to the first speed.
[0069] When the memory storage device 10 performs data access at the first speed, the memory management circuit 502 continuously measures the temperature through the temperature sensor 514 to obtain a temperature value (also called a second temperature value). In addition, the memory management circuit 502 determines whether the second temperature is less than the threshold value TH2. Assuming that at time point T2, the memory management circuit 502 determines that the second temperature value is less than the threshold value TH2, the memory management circuit 502 calculates the temperature change rate within a specific time range (also called a first temperature change rate), and determines an adjustment percentage (also called a first adjustment percentage) according to the temperature change rate within the specific time range.
[0070] In this exemplary embodiment, the memory management circuit 502 can calculate the first temperature change rate between the time point when the first temperature value is determined to be greater than the threshold value TH1 and the time point when the second temperature value is determined to be less than the threshold value TH2. Figure 8 , the memory management circuit 502 can calculate the temperature change rate in the time range from time point T1 to time point T2. For example, the temperature change rate between time point T1 and time point T2 can be calculated using the following equation (1):
[0071] V1=(TH2-TH1) / (T2-T1) (1)
[0072] In equation (1), V1 represents the temperature change rate, T1 represents the time point when the temperature value is greater than the first threshold value, and T2 represents the time point when the temperature value is less than the second threshold value. Then, the memory management circuit 502 can determine the adjustment percentage according to the temperature change rate V1.
[0073] In an exemplary embodiment, the temperature change rate and the adjustment percentage may be recorded in a speed adjustment comparison table (also referred to as a first comparison table), and the memory management circuit 502 may query the speed adjustment comparison table according to the temperature change rate to obtain the adjustment percentage. However, in other embodiments, the memory management circuit 502 may also calculate the adjustment percentage according to the temperature change rate and a preset formula, and the present invention is not limited thereto.
[0074] Specifically, the memory management circuit 502 can establish a speed adjustment comparison table to record the corresponding relationship between the temperature change speed and the adjustment percentage. The corresponding relationship between the temperature change speed and the adjustment percentage can be generated through a series of pre-tests and analyses, and stored in the memory storage device 10. Table 1 below is an example of a speed adjustment comparison table in an exemplary embodiment.
[0075] Table 1
[0076] Temperature change rate Adjustment percentage (%) +M -8 +N -10 -M +8 -N +10
[0077] According to Table 2, it is assumed that the unit of the temperature change rate is the temperature change in degrees Celsius per second (°C / s). The temperature change rate +M means that the temperature rises by M°C per second, the temperature change rate +N means that the temperature rises by N°C per second, the temperature change rate -M means that the temperature drops by M°C per second, and the temperature change rate -N means that the temperature drops by N°C per second. It is worth noting that in this exemplary embodiment, N is greater than M and the absolute value of the adjustment percentage corresponding to the temperature change rate ±N is greater than the absolute value of the adjustment percentage corresponding to the temperature change rate ±M, indicating that the greater the temperature change rate, the greater the value of the adjustment percentage required. According to Table 2, the temperature change rate +M corresponds to the adjustment percentage -8. This means that if the temperature change rate is +M, the memory management circuit 502 will reduce the access speed of the memory storage device 10 by 8%. The detailed description of other fields in Table 2 can adjust the access speed in a similar manner as described above, and will not be repeated here.
[0078] Then, after determining the adjustment percentage, the memory management circuit 502 calculates the second speed according to the first speed and the adjustment percentage, and adjusts the access speed of the memory storage device 10 to the second speed. For example, the memory management circuit 502 may multiply the first speed by the adjustment percentage to obtain the adjustment value, and add the adjustment value to the first speed to obtain the second speed. It should be noted that the present invention is not limited to the calculation method for calculating the second speed. Persons skilled in the art can design the value for calculating the adjustment percentage of the second speed by themselves through the enlightenment of the above exemplary embodiments, so as to calculate the second speed using different methods according to the designed adjustment percentage.
[0079] It is worth noting that in an exemplary embodiment, the adjusted second speed is less than the first speed. By limiting this, it is possible to avoid the situation where the temperature easily reaches the threshold value TH1 again after the access speed is adjusted back to the first speed.
[0080] In an exemplary embodiment, when the memory storage device 10 performs data access at the second speed, the memory management circuit 502 continuously measures the temperature through the temperature sensor 514 to obtain a temperature value. In addition, the memory management circuit 502 calculates the temperature change rate within the preset time interval (also known as the second temperature change rate) after each preset time interval. Then, the memory management circuit 502 determines the adjustment percentage (also known as the second adjustment percentage) according to the temperature change rate within the preset time interval. In this exemplary embodiment, the memory management circuit 502 can query the speed adjustment comparison table (for example, Table 1 above) according to the temperature change rate to obtain the adjustment percentage, or can calculate the adjustment percentage according to the temperature change rate and a preset formula, and the present invention is not limited thereto.
[0081] After determining the adjustment percentage, the memory management circuit 502 calculates the third speed according to the second speed and the adjustment percentage, and adjusts the access speed of the memory storage device 10 to the third speed. For example, the memory management circuit 502 may multiply the second speed by the adjustment percentage to obtain an adjustment value, and add the adjustment value to the second speed to obtain the third speed. It should be noted that the present invention is not limited to the calculation method for calculating the third speed. Persons skilled in the art can design the value for calculating the adjustment percentage of the third speed by themselves through the enlightenment of the above exemplary embodiments, so as to calculate the third speed using different methods according to the designed adjustment percentage.
[0082] Specifically, the memory management circuit 502 can determine whether the temperature change of the temperature value continuously measured by the temperature sensor 514 within the preset time interval is an increase or decrease. If the temperature change is an increase, the memory management circuit 502 will perform a speed reduction operation to adjust the access speed of the memory storage device 10 to the third speed. If the temperature change is a decrease, the memory management circuit 502 will perform a speed increase operation to adjust the access speed of the memory storage device 10 to the third speed.
[0083] Please refer to Figure 8 , assuming that the memory storage device 10 performs data access at the second speed at time point T2, the memory management circuit 502 can calculate the temperature change speed within the preset time interval T after each preset time interval T. For example, the memory management circuit 502 calculates the temperature change speed between time point T2 and time point T3 at time point T3 after the preset time interval T of time point T2, and determines the adjustment percentage according to the temperature change speed, and then calculates the third speed according to the second speed and the adjustment percentage. In this exemplary embodiment, the temperature change of the temperature value between time point T2 and time point T3 is a decrease, so the memory management circuit 502 performs a speed-up operation to increase the access speed of the memory storage device 10 to the third speed.
[0084] Furthermore, the memory management circuit 502 calculates the temperature change rate between the time point T3 and the time point T4 at the time point T4 after the preset time interval T of the time point T3, and calculates the temperature change rate according to the fourth speed in the same manner as described above. In this exemplary embodiment, the temperature change of the temperature value between the time point T3 and the time point T4 is an increase, so the memory management circuit 502 performs a speed reduction operation to reduce the access speed of the memory storage device 10 to the fourth speed. The content from the time point T4 to the time point T5 is similar to that from the time point T3 to the time point T4, so it will not be repeated here.
[0085] Fig. 9 is a flow chart of a memory adaptive temperature control method according to an exemplary embodiment of the present invention.
[0086] Please refer to Fig. 9 In step S902, the temperature is measured by the temperature sensor to obtain a first temperature value. In step S904, it is determined whether the first temperature value is greater than the first threshold value. If it is determined that the first temperature value is greater than the first threshold value (that is, step S904 is determined as "yes"), the process proceeds to step S906, and a speed reduction operation is performed to reduce the access speed of the memory storage device to the first speed. If it is determined that the first temperature value is not greater than the first threshold value (that is, step S904 is determined as "no"), the process proceeds to step S902. In step S908, when the memory storage device performs data access at the first speed, the temperature is measured by the temperature sensor to obtain a second temperature value. In step S910, it is determined whether the second temperature value is less than the second threshold value. If it is determined that the second temperature value is less than the second threshold value (that is, step S910 is determined as "yes"), the process proceeds to step S912, and the first temperature change speed within a specific time range is calculated, and the first adjustment percentage is determined according to the first temperature change speed. If the second temperature value is determined to be not less than the second threshold value (ie, step S910 is determined to be "No"), the process proceeds to step S908. In step S914, the second speed is calculated according to the first speed and the first adjustment percentage, and the access speed of the memory storage device is adjusted to the second speed.
[0087] Fig.10 is a flow chart of a memory adaptive temperature control method according to an exemplary embodiment of the present invention.
[0088] Please refer to Fig.10 In step S1002, when the memory storage device performs data access at a second speed, a second temperature change speed within a preset time interval is calculated after each preset time interval. In step S1004, a second adjustment percentage is determined according to the second temperature change speed. In step S1006, a third speed is calculated according to the second speed and the second adjustment percentage, and the access speed of the memory storage device is adjusted to the third speed.
[0089] However, Fig. 9 , Fig.10 The steps in the above are described in detail, so I will not repeat them here. It is worth noting that Fig. 9 , Fig.10 Each step in the above process can be implemented as multiple program codes or circuits, and the present invention is not limited thereto. Fig. 9 , Fig.10 The method can be used in conjunction with the above exemplary embodiments or can be used alone, and the present invention is not limited thereto.
[0090] In summary, the memory adaptive temperature control method, memory device, and control circuit unit of the exemplary embodiment of the present invention calculate the access speed to be achieved based on the temperature change rate and adjustment percentage within a specific time range when determining the need to perform a speed reduction or speed increase operation, so that the temperature change of the memory storage device will not be too large. In addition, by adjusting the access speed of the memory storage device in a step-by-step manner, the exemplary embodiment allows the temperature of the memory storage device to be stabilized while maintaining a certain system performance, thereby achieving a balance between temperature stability and system performance of the memory storage device.
[0091] Although the present invention has been disclosed as above by way of embodiments, it is not intended to limit the present invention. Any person skilled in the art may make some changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be determined by the claims.
Claims
1. A memory adaptive temperature control method, used for a memory storage device including a memory control circuit unit and a rewritable non-volatile memory module, wherein the memory control circuit unit is used to control the rewritable non-volatile memory module, characterized in that: And the method comprises: Measuring the temperature by a temperature sensor to obtain a first temperature value, and determining whether the first temperature value is greater than a first threshold value; In response to determining that the first temperature value is greater than the first threshold value, performing a speed reduction operation to reduce the access speed of the memory storage device to a first speed; When the memory storage device performs data access at the first speed, measuring the temperature by the temperature sensor to obtain a second temperature value, and determining whether the second temperature value is less than a second threshold value; In response to determining that the second temperature value is less than the second threshold value, calculating a first temperature change rate within a specific time range, and determining a first adjustment percentage according to the first temperature change rate; Calculating a second speed according to the first speed and the first adjustment percentage, and adjusting the access speed of the memory storage device to the second speed; When the memory storage device performs data access at the second speed, calculating a second temperature change speed within the preset time interval after each preset time interval; Determining a second adjustment percentage according to the second temperature change rate; and Calculating a third speed according to the second speed and the second adjustment percentage, and adjusting the access speed of the memory storage device to the third speed, wherein the step of adjusting the access speed of the memory storage device to the third speed comprises: Determining whether the temperature change within the preset time interval is an increase or a decrease; In response to determining that the temperature change is an increase, performing the speed reduction operation to adjust the access speed of the memory storage device to the third speed; and In response to determining that the temperature change is decreasing, a speed-up operation is performed to adjust the access speed of the memory storage device to the third speed.
2. The memory adaptive temperature control method according to claim 1, characterized in that: The second speed is lower than the first speed.
3. The memory adaptive temperature control method according to claim 1, characterized in that: The step of calculating the first temperature change rate comprises: The first temperature change rate between a time point when the first temperature value is determined to be greater than the first threshold value and a time point when the second temperature value is determined to be less than the second threshold value is calculated.
4. The memory adaptive temperature control method according to claim 1, characterized in that: The step of determining the first adjustment percentage according to the first temperature change rate comprises: A first comparison table is queried according to the first temperature change rate to obtain the first adjustment percentage.
5. A memory storage device, comprising: A connection interface unit for coupling to a host system; Rewritable non-volatile memory module; Temperature sensor; as well as A memory control circuit unit is coupled to the connection interface unit, the rewritable non-volatile memory module and the temperature sensor, The memory control circuit unit is used to measure the temperature through the temperature sensor to obtain a first temperature value, and determine whether the first temperature value is greater than a first threshold value. The memory control circuit unit is further configured to execute a speed reduction operation to reduce the access speed of the memory storage device to a first speed in response to determining that the first temperature value is greater than the first threshold value. The memory control circuit unit is further configured to measure the temperature through the temperature sensor to obtain a second temperature value when the memory storage device performs data access at the first speed, and determine whether the second temperature value is less than a second threshold value. The memory control circuit unit is further configured to calculate a first temperature change rate within a specific time range in response to determining that the second temperature value is less than the second threshold value, and determine a first adjustment percentage according to the first temperature change rate. The memory control circuit unit is further configured to calculate a second speed according to the first speed and the first adjustment percentage, and adjust the access speed of the memory storage device to the second speed; The memory control circuit unit is further configured to calculate a second temperature change rate within a preset time interval after each preset time interval when the memory storage device performs data access at the second speed. The memory control circuit unit is further configured to determine a second adjustment percentage according to the second temperature change rate, and The memory control circuit unit is further configured to calculate a third speed according to the second speed and the second adjustment percentage, and adjust the access speed of the memory storage device to the third speed, wherein the operation of adjusting the access speed of the memory storage device to the third speed includes: Determining whether the temperature change within the preset time interval is an increase or a decrease; In response to determining that the temperature change is an increase, performing the speed reduction operation to adjust the access speed of the memory storage device to the third speed; and In response to determining that the temperature change is decreasing, a speed-up operation is performed to adjust the access speed of the memory storage device to the third speed.
6. The memory storage device according to claim 5, characterized in that: The second speed is lower than the first speed.
7. The memory storage device according to claim 5, characterized in that The operation of calculating the first temperature change rate includes: The first temperature change rate between a time point when the first temperature value is determined to be greater than the first threshold value and a time point when the second temperature value is determined to be less than the second threshold value is calculated.
8. The memory storage device according to claim 5, characterized in that The operation of determining the first adjustment percentage according to the first temperature change rate includes: A first comparison table is queried according to the first temperature change rate to obtain the first adjustment percentage.
9. A memory control circuit unit for controlling a rewritable non-volatile memory module included in a memory storage device, characterized in that: The memory control circuit unit comprises: A host interface for coupling to a host system; A memory interface, for coupling to the rewritable non-volatile memory module; temperature sensor; and a memory management circuit coupled to the host interface, the memory interface and the temperature sensor, The memory management circuit is used to measure the temperature through the temperature sensor to obtain a first temperature value, and determine whether the first temperature value is greater than a first threshold value. The memory management circuit is further configured to execute a speed reduction operation to reduce the access speed of the memory storage device to a first speed in response to determining that the first temperature value is greater than the first threshold value. The memory management circuit is further configured to measure the temperature through the temperature sensor to obtain a second temperature value when the memory storage device performs data access at the first speed, and determine whether the second temperature value is less than a second threshold value. The memory management circuit is further configured to calculate a first temperature change rate within a specific time range in response to determining that the second temperature value is less than the second threshold value, and determine a first adjustment percentage according to the first temperature change rate. The memory management circuit is further configured to calculate a second speed according to the first speed and the first adjustment percentage, and adjust the access speed of the memory storage device to the second speed. The memory management circuit is further configured to calculate a second temperature change rate within a preset time interval after each preset time interval when the memory storage device performs data access at the second speed. The memory management circuit is further configured to determine a second adjustment percentage according to the second temperature change rate, and The memory management circuit is further configured to calculate a third speed according to the second speed and the second adjustment percentage, and adjust the access speed of the memory storage device to the third speed, wherein the operation of adjusting the access speed of the memory storage device to the third speed includes: Determining whether the temperature change within the preset time interval is an increase or a decrease; In response to determining that the temperature change is an increase, performing the speed reduction operation to adjust the access speed of the memory storage device to the third speed; and In response to determining that the temperature change is decreasing, a speed-up operation is performed to adjust the access speed of the memory storage device to the third speed.
10. The memory control circuit unit according to claim 9, characterized in that: The second speed is lower than the first speed.
11. The memory control circuit unit according to claim 9, characterized in that: The operation of calculating the first temperature change rate includes: The first temperature change rate between a time point when the first temperature value is determined to be greater than the first threshold value and a time point when the second temperature value is determined to be less than the second threshold value is calculated.
12. The memory control circuit unit according to claim 9, characterized in that: The operation of determining the first adjustment percentage according to the first temperature change rate includes: A first comparison table is queried according to the first temperature change rate to obtain the first adjustment percentage.
