Storage device operation frequency automatic setting method based on SCA

By dynamically adjusting the operating frequency of the storage device and optimizing power consumption in SCA mode according to the load conditions, the problem of high operating power consumption of NAND flash memory in SCA mode is solved, and the energy efficiency and service life is improved.

CN119861803APending Publication Date: 2025-04-22SHANDONG SINOCHIP SEMICON CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411921332.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-25
Publication Date
2025-04-22

AI Technical Summary

Technical Problem

In SCA mode, the operating power consumption of NAND flash memory is significantly increased, affecting the energy efficiency and service life of the device.

Method used

Through an SCA-based automatic setting method for the operation frequency of the storage device, the operating frequency is dynamically adjusted according to the load condition of the device, from an initial frequency below 66MHz to 2400MHz or maintain the initial frequency, and clock calibration and initialization configuration is performed during load switching.

Benefits of technology

This method can significantly reduce the operating power consumption of NAND flash in SCA mode, improve the energy efficiency and service life of the device while maintaining high performance and signal alignment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119861803A_ABST
    Figure CN119861803A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of memory maintenance, in particular to an SCA-based storage device operation frequency automatic setting method, which comprises the following steps: S1) initializing a board-level driver and an initialization register; s2) starting the equipment at low frequency, and keeping the initial frequency to carry out physical layer initialization setting and NAND flash initialization configuration; s3) reading the load of the current equipment, judging the type of the load, and switching the frequency; s4, clock calibration is carried out, and physical layer initialization setting and NAND flash initialization configuration are carried out again after clock calibration is completed, and S5, the command address of the bus is calibrated so that signals on the SCA bus can be aligned. The problem that the operation power consumption of the NAND flash memory in the SCA mode is too large is solved, and the flash memory frequency can be automatically set according to the load condition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of memory maintenance, and in particular to a method for automatically setting the operating frequency of a storage device based on SCA. Background Art

[0002] The Separate Command Address (SCA) protocol separates the command / address bus from the data bus so that the command and address transmission time can be hidden in the data transmission time during interleaved operations. In this way, NAND flash memory can transmit commands and addresses at the same time as data transmission, thereby overlapping the various operations and improving overall efficiency. The SCA protocol is designed to reduce the impact of command and address transmission on overall performance, especially in high-speed NAND flash memory, where data transmission speed is much faster than command and address transmission. Therefore, implementing the SCA protocol in a high-load environment that requires frequent read and write operations can significantly improve the performance of NAND flash memory. However, in SCA mode, the power consumption of the storage device is also significantly increased. Summary of the invention

[0003] The present application provides a method for automatically setting the operating frequency of a storage device based on SCA, aiming to reduce the operating power consumption of a NAND flash memory in SCA mode.

[0004] The technical solution of this application is as follows: A method for automatically setting the operating frequency of a storage device based on SCA, the method is implemented based on a NAND flash that implements the SCA protocol, and specifically includes the following steps: S1) Initialize the board-level driver and registers; S2) Start the system at a frequency lower than 66 MHz, and record this frequency as the initial frequency; maintain the initial frequency to perform physical layer initialization settings and NAND flash initialization configuration; S3) reading the load of the current device and determining its load type, wherein the load type includes high load and low load; wherein high load is defined as the current CPU occupancy of the storage device reaching full load; low load is defined as the current CPU occupancy of the storage device not reaching full load; When the load type of the device is high load: increase the frequency to 2400MHz; When the load type of the equipment is low load: maintain the initial frequency; S4) When the device switches from high load to low load or from low load to high load, clock calibration is performed and after the clock calibration is completed, the physical layer initialization settings and NAND flash initialization configuration are re-performed; S5) Calibrate the command address of the bus to align the signals on the SCA bus.

[0005] Furthermore, when the physical layer initialization setting and the NAND flash initialization configuration are re-performed in step S4), the frequency is maintained to be equal to the frequency after the load type is switched.

[0006] Furthermore, the method further comprises: S6) Write fixed data to the NAND flash and then read it out, compare the written data and the read data to see if they are consistent. If they are consistent, it means that the current frequency is an available frequency; if they are inconsistent, it means that the current frequency is an unavailable frequency, and the frequency should be reduced and automatic calibration should be performed again.

[0007] Due to the adoption of the above technical solution, the beneficial effects of this application are as follows: The present application provides a method for automatically switching the frequency of the current SCA storage device. The SCA storage device can switch the frequency in a timely manner according to its own load conditions, without having to always maintain high-frequency operation in the working state. The technical solution of the present application does not affect the working efficiency of the SCA storage device, and enables the storage device to maintain signal alignment under high-speed operation to meet high-performance requirements. In addition, the present application can significantly reduce operating power consumption and increase the service life of the storage device by switching the frequency. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] The drawings described herein are used to provide further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute improper limitations on the present application.

[0009] Figure 1 A flow chart of a method for automatically setting the operating frequency of a storage device based on SCA provided in this application. DETAILED DESCRIPTION

[0010] Based on the background technology, see the attached Figure 1 The present application provides a method for automatically setting the operating frequency of a storage device based on SCA. The method is implemented based on a NAND flash that implements the SCA protocol and specifically includes the following steps: S1) Initialize the board driver and initialize the registers.

[0011] In a specific embodiment, the registers include bottom-level NFC registers and EFC registers, and the initialization content includes initializing related queues to complete multi-core synchronization.

[0012] S2) Start the system at a frequency lower than 66 MHz, and record this frequency as the initial frequency; maintain the initial frequency to perform physical layer initialization settings and NAND flash initialization configuration.

[0013] In a specific embodiment, the system is a system-on-chip SOC. The physical layer initialization setting includes initializing the PHY register under the default low-frequency parameter condition, and the NAND flash initialization configuration includes resetting the NAND flash and configuring the low-frequency parameters of the NAND flash.

[0014] S3) reading the load of the current device and determining its load type, wherein the load type includes high load and low load; wherein high load is defined as the current CPU occupancy of the storage device reaching full load, and low load is defined as the CPU occupancy not reaching full load; When the load type is high load: increase the frequency to 2400MHz; When the load type of the device is low load: maintain the initial frequency.

[0015] S4) When the device switches from high load to low load or from low load to high load, clock calibration is performed and after the clock calibration is completed, the physical layer initialization settings and NAND flash initialization configuration are re-performed; S5) Calibrate the command address of the bus to align the signals on the SCA bus. Signal alignment includes alignment of the command address signal on the CA bus and alignment of the data bus DQ and DQS signals.

[0016] As a preferred implementation of the present application, when re-initializing the physical layer and the NAND flash in step S4), the frequency is maintained equal to the frequency after the load type is switched. In order to keep the NAND flash working properly, the frequency needs to be kept stable. When stable, the bit error rate should be within the correctable range, which is 230bit / 4k.

[0017] As a preferred embodiment of the present application, the method further comprises: S6) Write fixed data to the NAND flash and then read it out, compare the written data and the read data to see if they are consistent. If they are consistent, it means that the current frequency is an available frequency; if they are inconsistent, it means that the current frequency is an unavailable frequency. For an unavailable frequency, it is necessary to reduce the frequency and re-perform automatic calibration.

[0018] Anything not described in this application can be achieved by adopting or drawing on existing technologies. The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A method for automatically setting the operating frequency of a storage device based on SCA, characterized in that: This method is based on the NAND flash implementation of the SCA protocol and specifically includes the following steps: S1) Initialize the board-level driver and registers; S2) Start the system at a frequency lower than 66 MHz, and record this frequency as the initial frequency; maintain the initial frequency to perform physical layer initialization settings and NAND flash initialization configuration; S3) reading the load of the current device and determining its load type, wherein the load type includes high load and low load; wherein high load is defined as the current CPU occupancy of the storage device reaching full load; low load is defined as the current CPU occupancy of the storage device not reaching full load; When the load type of the device is high load: increase the frequency to 2400MHz; When the load type of the equipment is low load: maintain the initial frequency; S4) When the device switches from high load to low load or from low load to high load, clock calibration is performed and after the clock calibration is completed, the physical layer initialization settings and NAND flash initialization configuration are re-performed; S5) Calibrate the command address of the bus to align the signals on the SCA bus, including the alignment of the command address signal on the CA bus and the alignment of the DQ and DQS signals on the data bus.

2. The method for automatically setting the operating frequency of a storage device based on SCA according to claim 1, characterized in that: When re-initializing the physical layer and the NAND flash in step S4), the frequency is maintained to be equal to the frequency after the load type is switched.

3. The method for automatically setting the operating frequency of a storage device based on SCA according to claim 1, characterized in that: The method also includes: S6) Write fixed data to the NAND flash and then read it out, compare the written data and the read data to see if they are consistent. If they are consistent, it means that the current frequency is an available frequency; if they are inconsistent, it means that the current frequency is an unavailable frequency, and the frequency should be reduced and automatic calibration should be performed again.