DDR frequency switching method and device
By determining and switching its required working frequency based on the operation of DDR, the problem of inflexible switching of DDR in the prior art is solved, and the DDR power consumption control and working performance are achieved.
Patent Information
- Application Number
- CN202011278272.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-16
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2040-11-16
AI Technical Summary
The existing DDR operating frequency switching methods cannot flexibly adapt to complex and changeable practical application scenarios, making it difficult to take into account both power consumption control and working performance.
By determining the required working frequency based on the operating conditions of DDR and switching when the current working frequency does not match the required working frequency, flexible switching of the DDR working frequency is achieved.
It realizes flexibly switching the DDR working frequency according to actual application scenarios, which can not only control the power consumption of DDR, but also ensure its working performance.
Smart Images

Figure CN114512159B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computers, and in particular to a DDR frequency switching method and device. Background Art
[0002] Double Data Rate (DDR) plays a vital role in high-speed chips for video and image processing. As the processing speed of high-speed chips becomes faster and faster, the power consumption of the system in which the high-speed chips are located is also increasing. DDR happens to be one of the devices with higher power consumption in the system. Therefore, reducing the power consumption of DDR is a major direction of the current development of DDR technology.
[0003] In practical applications, when high-speed chips process videos, the actual operating frequency required by DDR is usually not fixed. In the process of the constantly changing operating frequency required by DDR, if the operating frequency of DDR is higher than the operating frequency required by DDR, it will cause a waste of power consumption. If the operating frequency of DDR is lower than the operating frequency required by DDR, it will cause frame drops and freezes. Therefore, in order to take into account both the power consumption control of DDR and the working performance of DDR, people have proposed a method for switching the DDR operating frequency in real time during the process of high-speed chips processing videos. However, the existing DDR operating frequency switching method usually switches back and forth between fixed DDR operating frequencies, which cannot adapt well to complex and changeable actual application scenarios. It can be seen that how to achieve flexible switching of DDR operating frequency to adapt to complex and changeable actual application scenarios is particularly important. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a DDR frequency switching method and device, which first determines the required operating frequency of the DDR according to the operating conditions of the DDR, and when the current operating frequency of the DDR does not match the required operating frequency, switches the current operating frequency of the DDR to the required operating frequency, thereby realizing flexible switching of the DDR operating frequency according to actual application scenarios, thereby taking into account both the power consumption control of the DDR and the working performance of the DDR.
[0005] In order to solve the above technical problem, the first aspect of the present invention discloses a DDR frequency switching method, the method comprising:
[0006] The DDR frequency switching device determines the required operating frequency of the DDR according to the operating condition of the DDR;
[0007] The DDR frequency switching device determines whether the current operating frequency of the DDR matches the required operating frequency;
[0008] When it is determined that the current operating frequency of the DDR does not match the required operating frequency, the DDR frequency switching device switches the current operating frequency of the DDR to the required operating frequency.
[0009] As an optional implementation manner, in the first aspect of the present invention, before the DDR frequency switching device determines whether the current operating frequency of the DDR matches the required operating frequency, the method further includes:
[0010] The DDR frequency switching device determines, according to the current operating frequency of the DDR, a target first operating frequency interval to which the current operating frequency of the DDR belongs;
[0011] The DDR frequency switching device determines, according to the target first operating frequency interval, a target threshold interval corresponding to the target first operating frequency interval from a predetermined threshold interval set, each threshold interval in the threshold interval set having a corresponding first operating frequency interval;
[0012] And, the DDR frequency switching device determines whether the current operating frequency of the DDR matches the required operating frequency, including:
[0013] The DDR frequency switching device determines whether a target threshold interval corresponding to the target first operating frequency interval matches the required operating frequency.
[0014] As an optional implementation manner, in the first aspect of the present invention, after determining that the threshold interval corresponding to the current operating frequency of the DDR does not match the required operating frequency, before the DDR frequency switching device switches the current operating frequency of the DDR to the required operating frequency, the method further includes:
[0015] The DDR frequency switching device generates a target clock signal corresponding to the required operating frequency according to the required operating frequency;
[0016] And, the DDR frequency switching device switches the current operating frequency of the DDR to the required operating frequency, including:
[0017] The DDR frequency switching device switches the working clock signal used to drive the DDR to work at the current working frequency to the target clock signal.
[0018] As an optional implementation manner, in the first aspect of the present invention, before the DDR frequency switching device switches the DDR working clock signal to the target clock signal, the method further includes:
[0019] The DDR frequency switching device determines a target delay parameter corresponding to the required operating frequency according to the required operating frequency;
[0020] The DDR frequency switching device updates the delay parameter configuration of the DDR according to the target delay parameter, and triggers the step of switching the working clock signal used to drive the DDR to work at the current working frequency to the target clock signal.
[0021] As an optional implementation manner, in the first aspect of the present invention, the DDR frequency switching device determines the target delay parameter corresponding to the required operating frequency according to the required operating frequency, including:
[0022] The DDR frequency switching device determines, according to the required operating frequency, a target second operating frequency interval to which the required operating frequency belongs;
[0023] The DDR frequency switching device determines a target delay parameter corresponding to the target second operating frequency interval from a predetermined delay parameter set according to the target second operating frequency interval, and each delay parameter in the delay parameter set has a corresponding second operating frequency interval.
[0024] As an optional implementation manner, in the first aspect of the present invention, after the DDR frequency switching device generates the target clock signal corresponding to the required operating frequency according to the required operating frequency, before the DDR frequency switching device switches the operating clock signal used to drive the DDR to operate at the current operating frequency to the target clock signal, the method further includes:
[0025] The DDR frequency switching device determines whether the DDR meets a preset frequency switching condition;
[0026] When it is determined that the DDR meets the frequency switching condition, the DDR frequency switching device triggers the step of switching the working clock signal used to drive the DDR to work at the current working frequency to the target clock signal.
[0027] As an optional implementation manner, in the first aspect of the present invention, the DDR frequency switching device determines whether the DDR meets a preset frequency switching condition, including:
[0028] The DDR frequency switching device determines whether the video currently processed by the DDR enters a blanking area;
[0029] When it is determined that the video currently processed by the DDR enters the blanking area, the DDR frequency switching device determines that the DDR meets a preset frequency switching condition;
[0030] When it is determined that the video currently processed by the DDR does not enter the blanking area, the DDR frequency switching device determines that the DDR does not meet the frequency cutting condition.
[0031] As an optional implementation manner, in the first aspect of the present invention, after determining that the video currently processed by the DDR enters the blanking area and before the DDR frequency switching device determines that the DDR meets a preset frequency switching condition, the method further includes:
[0032] The DDR frequency switching device determines whether a target channel is in a closed state and whether the DDR is in a self-refresh state, wherein the target channel is an interface for providing an external device with access to the DDR;
[0033] When it is determined that the channel through which the system bus accesses the DDR is in a closed state and the DDR is in a self-refresh state, the DDR frequency switching device triggers the step of determining whether the DDR satisfies a preset frequency switching condition.
[0034] As an optional implementation manner, in the first aspect of the present invention, the DDR frequency switching device determines the required operating frequency of the DDR according to the operation status of the DDR, including:
[0035] The DDR frequency switching device determines the required operating frequency of the DDR according to the data access situation for the DDR on the system bus, or,
[0036] The DDR frequency switching device determines a target operating state of the DDR;
[0037] The DDR frequency switching device determines the required operating frequency corresponding to the target operating state from a predetermined required operating frequency set according to the target operating state, and each required operating frequency in the required operating frequency set has a corresponding operating state.
[0038] A second aspect of the present invention discloses a DDR frequency switching device, which operates on a DDR frequency switching device, and the device comprises:
[0039] A determination module, used to determine the required operating frequency of the DDR according to the operating conditions of the DDR;
[0040] A judging module, used for judging whether the current operating frequency of the DDR matches the required operating frequency;
[0041] The switching module is used to switch the current operating frequency of the DDR to the required operating frequency when the judging module judges that the current operating frequency of the DDR does not match the required operating frequency.
[0042] As an optional implementation, in the second aspect of the present invention, the determination module is further used to determine, according to the current operating frequency of the DDR, a target first operating frequency interval to which the current operating frequency of the DDR belongs before the judgment module determines whether the current operating frequency of the DDR matches the required operating frequency;
[0043] The determination module is further configured to determine, according to the target first operating frequency interval, a target threshold interval corresponding to the target first operating frequency interval from a predetermined threshold interval set, wherein each threshold interval in the threshold interval set has a corresponding first operating frequency interval;
[0044] And, the specific manner in which the judgment module judges whether the current operating frequency of the DDR matches the required operating frequency is:
[0045] It is determined whether a target threshold interval corresponding to the target first operating frequency interval matches the required operating frequency.
[0046] As an optional implementation, in the second aspect of the present invention, the device further includes:
[0047] a generating module, configured to generate a target clock signal corresponding to the required operating frequency according to the required operating frequency after the judging module determines that the threshold interval corresponding to the current operating frequency of the DDR does not match the required operating frequency and before the switching module switches the current operating frequency of the DDR to the required operating frequency;
[0048] And, the specific manner in which the switching module switches the current operating frequency of the DDR to the required operating frequency is:
[0049] The operating clock signal used to drive the DDR to operate at the current operating frequency is switched to the target clock signal.
[0050] As an optional implementation, in the second aspect of the present invention, the determination module is further used to determine the target delay parameter corresponding to the required operating frequency according to the required operating frequency before the switching module switches the operating clock signal used to drive the DDR to operate at the current operating frequency to the target clock signal;
[0051] And, the device further comprises:
[0052] The update module is used to update the delay parameter configuration of the DDR according to the target delay parameter, and trigger the switching module to execute the operation of switching the working clock signal used to drive the DDR to work at the current working frequency to the target clock signal.
[0053] As an optional implementation, in the second aspect of the present invention, the specific manner in which the determination module determines the target delay parameter corresponding to the required operating frequency according to the required operating frequency is:
[0054] According to the required operating frequency, determining a target second operating frequency interval to which the required operating frequency belongs;
[0055] According to the target second operating frequency interval, a target delay parameter corresponding to the target second operating frequency interval is determined from a predetermined delay parameter set, and each delay parameter in the delay parameter set has a corresponding second operating frequency interval.
[0056] As an optional implementation, in the second aspect of the present invention, the judgment module is also used to judge whether the DDR satisfies a preset frequency switching condition before the switching module switches the working clock signal used to drive the DDR to operate at the current operating frequency to the target clock signal after the generation module generates the target clock signal corresponding to the required operating frequency according to the required operating frequency; and when it is judged that the DDR satisfies the frequency switching condition, trigger the switching module to perform the operation of switching the working clock signal used to drive the DDR to operate at the current operating frequency to the target clock signal.
[0057] As an optional implementation manner, in the second aspect of the present invention, the specific manner in which the judgment module judges whether the DDR meets the preset frequency cutting condition is:
[0058] Determine whether the video currently processed by the DDR enters a blanking area;
[0059] When it is determined that the video currently processed by the DDR enters the blanking area, determining that the DDR meets a preset frequency switching condition;
[0060] When it is determined that the video currently processed by the DDR does not enter the blanking area, it is determined that the DDR does not meet the frequency cutting condition.
[0061] As an optional implementation, in the second aspect of the present invention, the judgment module is also used to judge whether the target channel is in a closed state and whether the DDR is in a self-refresh state after the judgment module judges that the video currently processed by the DDR enters the blanking area and before determining that the DDR satisfies a preset frequency cutting condition, the target channel is an interface for providing an external device to access the DDR; and when it is judged that the channel for the system bus to access the DDR is in a closed state and the DDR is in a self-refresh state, trigger the execution of the operation of determining that the DDR satisfies the preset frequency cutting condition.
[0062] As an optional implementation, in the second aspect of the present invention, the specific manner in which the determination module determines the required operating frequency of the DDR according to the operation status of the DDR is:
[0063] Determine the required operating frequency of the DDR according to the data access situation for the DDR on the system bus, or,
[0064] Determine the target working state of DDR;
[0065] According to the target working state, a required working frequency corresponding to the target working state is determined from a predetermined required working frequency set, and each required working frequency in the required working frequency set has a corresponding working state.
[0066] A third aspect of the present invention discloses another DDR frequency switching device, the device comprising:
[0067] A memory storing executable program code;
[0068] a processor coupled to the memory;
[0069] The processor calls the executable program code stored in the memory to execute part or all of the steps in the DDR frequency switching method disclosed in the first aspect of the present invention.
[0070] The fourth aspect of the present invention discloses a computer storage medium, wherein the computer storage medium stores computer instructions, and when the computer instructions are called, they are used to execute part or all of the steps in the DDR frequency switching method disclosed in the first aspect of the present invention.
[0071] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0072] In the embodiment of the present invention, the required operating frequency of the DDR is first determined according to the operation status of the DDR, and when the current operating frequency of the DDR does not match the required operating frequency, the current operating frequency of the DDR is switched to the required operating frequency. It can be seen that the implementation of the present invention can realize the flexible switching of the DDR operating frequency according to the actual application scenario, thereby taking into account both the power consumption control of the DDR and the working performance of the DDR. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0074] Figure 1 It is a flow chart of a DDR frequency switching method disclosed in an embodiment of the present invention;
[0075] Figure 2 It is a flow chart of another DDR frequency switching method disclosed in an embodiment of the present invention;
[0076] Figure 3 It is a structural schematic diagram of a DDR frequency switching device disclosed in an embodiment of the present invention;
[0077] Figure 4 It is a structural schematic diagram of another DDR frequency switching device disclosed in an embodiment of the present invention;
[0078] Figure 5 It is a structural schematic diagram of another DDR frequency switching device disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0079] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0080] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or end including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or ends.
[0081] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0082] The present invention discloses a DDR frequency switching method and device, which first determines the required operating frequency of the DDR according to the operating conditions of the DDR, and when the current operating frequency of the DDR does not match the required operating frequency, switches the current operating frequency of the DDR to the required operating frequency, thereby realizing flexible switching of the DDR operating frequency according to actual application scenarios, thereby taking into account both the power consumption control of the DDR and the operating performance of the DDR. The following are detailed descriptions respectively.
[0083] Embodiment 1
[0084] See also Figure 1 , Figure 1 FIG. 1 is a flow chart of a DDR frequency switching method disclosed in an embodiment of the present invention. Figure 1 As shown, the DDR frequency switching method may include the following operations:
[0085] 101. The DDR frequency switching device determines the required operating frequency of DDR according to the operating conditions of DDR.
[0086] In an optional embodiment, the DDR frequency switching device determines the required operating frequency of the DDR according to the operation status of the DDR, including:
[0087] The DDR frequency switching device determines the required operating frequency of the DDR according to the data access to the DDR on the system bus, or,
[0088] The DDR frequency switching device determines the target operating state of the DDR;
[0089] The DDR frequency switching device determines the required operating frequency corresponding to the target operating state from a predetermined required operating frequency set according to the target operating state, and each required operating frequency in the required operating frequency set has a corresponding operating state.
[0090] In this optional embodiment, the required operating frequency of DDR can be obtained by analyzing the command (i.e., data access situation) for accessing DDR on the system bus, or the data bandwidth (i.e., data access situation) for accessing DDR on the system bus can be obtained, and then the required operating frequency of DDR can be obtained according to the data bandwidth. For example, if the data bandwidth for accessing DDR on the system bus is 400MHZ, the data bandwidth 400MHZ can be increased by 10% as the required operating frequency of DDR, and the required operating frequency of DDR is 440MHZ at this time. In addition, the required operating frequency can also be determined according to the software currently running by DDR (target working state). Specifically, the corresponding required operating frequency (i.e., required operating frequency set) can be preset for some commonly used software. When it is detected that the software currently running by DDR is software A, the required operating frequency corresponding to the preset software A can be used as the required operating frequency of DDR. For example, the required operating frequency set includes: the required operating frequency corresponding to software A is 1000MHZ, the required operating frequency corresponding to software B is 2000MHZ, and the required operating frequency corresponding to software C is 2500MHZ. If it is detected that the software currently running on the DDR is software C, the required operating frequency of the DDR is determined to be 2500MHZ. If it is detected that the software currently running on the DDR is software A, the required operating frequency of the DDR is determined to be 1000MHZ.
[0091] It can be seen that by implementing this optional embodiment, the required operating frequency of the DDR is determined through the data access situation of the DDR or the target operating state of the DDR, so that the required operating frequency of the DDR can be accurately determined, providing basic conditions for subsequent processing.
[0092] 102. The DDR frequency switching device determines whether the current operating frequency of the DDR matches the required operating frequency. When the determination result of step 102 is no, step 103 may be triggered, and when the determination result of step 102 is yes, this process may be terminated, or step 102 or step 101 may be performed again.
[0093] In another optional embodiment, before the DDR frequency switching device determines whether the current operating frequency of the DDR matches the required operating frequency, the DDR frequency switching method further includes:
[0094] The DDR frequency switching device determines the target first operating frequency interval to which the current operating frequency of the DDR belongs according to the current operating frequency of the DDR;
[0095] The DDR frequency switching device determines, according to the target first operating frequency interval, a target threshold interval corresponding to the target first operating frequency interval from a predetermined threshold interval set, wherein each threshold interval in the threshold interval set has a corresponding first operating frequency interval;
[0096] And, the DDR frequency switching device determines whether the current operating frequency of the DDR matches the required operating frequency, including:
[0097] The DDR frequency switching device determines whether the target threshold interval corresponding to the target first operating frequency interval matches the required operating frequency.
[0098] In another optional embodiment, a plurality of threshold intervals may be preset in the predetermined threshold interval set, and each threshold interval has a corresponding first operating frequency interval. For example, the threshold interval set is preset with threshold intervals [500,520], [550,570], [600,620], and the first operating frequency intervals corresponding to the threshold intervals are [450,500], [500,550], [550,600], respectively. Assuming that the current operating frequency of DDR is 470MHZ, it belongs to the first operating frequency interval of [450,500], and the corresponding threshold interval is [500,520]. If the required operating frequency is 510MHZ, then within the threshold interval, the current operating frequency matches the required operating frequency. If the required operating frequency is 550MHZ, then it is not within the threshold interval, and the current operating frequency does not match the required operating frequency. Optionally, the threshold interval corresponding to the first operating frequency interval can be set to a value, for example, the threshold corresponding to the first operating frequency interval of [450,500] can be set to 520. In this way, when the required operating frequency is greater than the threshold, it is determined that the required operating frequency does not match the current operating frequency.
[0099] It can be seen that by implementing this other optional embodiment, by presetting different threshold intervals for different first operating frequency intervals, and determining whether the current operating frequency matches the required operating frequency based on whether the threshold interval corresponding to the first operating frequency interval to which the current operating frequency belongs matches the required operating frequency, it is possible to accurately determine whether the DDR frequency needs to be switched, thereby achieving switching of multiple gears of the DDR frequency.
[0100] 103. The DDR frequency switching device switches the current operating frequency of the DDR to the required operating frequency.
[0101] In the above step 103, the cache command for switching the working frequency of DDR can be stored in the hardware command queue cache space. The cache command in the hardware command queue cache space is used to perform frequency modification operations on DDR. The cache command includes an initial state command (F_Cache_do), a write command (F_Cache_write), a read command (F_Cache_read), a read-write command (F_Cache_write_read), a completion command (F_Cache_done), etc.
[0102] In the embodiment of the present invention, optionally, when the current operating frequency of DDR needs to be switched, the DDR frequency switching device executes the cache command in the cache space of the hardware command queue to switch the operating frequency of DDR, that is, the read and write control of the register in the external device is realized by controlling the peripheral bus to switch the operating frequency of DDR, specifically:
[0103] When it is necessary to switch the current operating frequency of DDR, the DDR frequency switching device starts the initial state command in the automatic frequency switching and executes the write command, that is, reads the previous clock data in the DDR frequency device from the write address, and writes the required clock data of the DDR frequency device into the write address according to the known flag bit in the current clock data and the required clock data of the DDR frequency device; then executes the read command, that is, reads the clock data frequency of the DDR frequency device from the write address, and determines whether the clock data of the DDR frequency device is equal to the clock data corresponding to the current read command. If not, continue to execute the read command until the clock data of the DDR frequency device is equal to the clock data corresponding to the current read command, and then continue to execute the next command; if they are equal, continue to execute the next command directly until the command with the end flag bit or the last command in the hardware command queue cache space is executed, the command execution is completed, that is, the stable clock data of the DDR frequency switching device is obtained. That is, the frequency point of the backup clock in the DDR frequency switching device is updated; then continue to execute to read the current data of the DDR frequency device from the write address, and write it into the write address according to the flag bit with a known status in the current data and the current operating frequency of the DDR frequency device; then execute the read command, that is, read the operating frequency of the DDR frequency device from the write address, and check whether the operating frequency of the DDR frequency device is equal to the operating frequency corresponding to the current read command. If not, continue to execute the read command until the operating frequency of the DDR frequency device is equal to the operating frequency corresponding to the current read command, and then continue to execute the next command; if they are equal, continue to execute the next command directly until the command with an end flag or the last command in the hardware command queue cache space is executed, the command execution is completed, that is, the frequency switching of the DDR frequency device is completed, that is, the DDR frequency switching device switches the current operating frequency of the DDR to the required operating frequency.
[0104] In yet another optional embodiment, after the DDR frequency switching device switches the current operating frequency of the DDR to the required operating frequency, the DDR frequency switching method further includes:
[0105] The DDR frequency switching device detects the occupancy rate of the DDR working frequency;
[0106] The DDR frequency switching device determines whether the occupancy rate meets the preset frequency adjustment conditions;
[0107] When it is determined that the occupancy rate meets the frequency adjustment condition, the DDR frequency switching device adjusts the operating frequency of the DDR according to the occupancy rate.
[0108] In another optional embodiment, the switching of DDR frequency may be triggered by the need to process more data in a short period of time during the data processing process of DDR or the demand for the working frequency of DDR is still increasing after the DDR frequency is switched. Therefore, after the DDR frequency is switched, the occupancy rate of the switched DDR frequency needs to be detected. When the occupancy rate of the DDR frequency meets the preset frequency adjustment condition, the working frequency of DDR is adjusted to make the working frequency of DDR more in line with the actual demand. When the working frequency of DDR needs to be further increased, the working frequency of DDR is further increased, and when the working frequency of DDR needs to be lowered, the working frequency of DDR is lowered.
[0109] It can be seen that by implementing this further optional embodiment, the occupancy rate of the switched DDR frequency can be detected, and when the occupancy rate of the DDR frequency meets the preset frequency adjustment condition, the operating frequency of the DDR is adjusted to make the operating frequency of the DDR more in line with actual needs.
[0110] In this further optional embodiment, further optionally, the DDR frequency switching device determines whether the occupancy rate meets the preset frequency adjustment condition, including:
[0111] The DDR frequency switching device determines whether the high-load duration or low-load duration corresponding to the occupancy rate is greater than or equal to the preset adjustment duration threshold. The high-load duration refers to the duration during which the occupancy rate is greater than the high-load threshold within the preset time period, and the low-load duration refers to the duration during which the occupancy rate is less than the low-load threshold within the preset time period.
[0112] When it is determined that the high load duration or the low load duration is greater than or equal to the adjustment duration threshold, the DDR frequency switching device determines that the occupancy rate meets the preset frequency adjustment condition;
[0113] When it is determined that the high load duration or the low load duration is not greater than or equal to the adjustment duration threshold, the DDR frequency switching device determines that the occupancy rate does not meet the frequency adjustment condition.
[0114] In this further optional embodiment, the preset time period can be 30 minutes after the DDR operating frequency is switched to the required operating frequency. The adjustment duration threshold can be ten minutes. The high load threshold can be 80%, and the low load threshold can be 20%. The high load duration refers to the duration during which the occupancy rate of the DDR operating frequency is greater than 80% within 30 minutes after the DDR operating frequency is switched to the required operating frequency, and the low load duration refers to the duration during which the occupancy rate of the DDR operating frequency is less than 20% within 30 minutes after the DDR operating frequency is switched to the required operating frequency. Assuming that the high load duration is 15 minutes, the high load duration is greater than the adjustment duration threshold (ten minutes), so it is determined that the occupancy rate meets the preset frequency adjustment conditions (that is, the DDR operating frequency still cannot meet the demand at this time, and the DDR operating frequency needs to be further increased).
[0115] It can be seen that the implementation of this further optional embodiment can adjust the operating frequency of DDR to make it more in line with actual needs when the operating frequency of DDR is too high, resulting in insufficient use of the operating frequency of DDR or too low, resulting in failure to meet the needs.
[0116] It can be seen that the implementation Figure 1 The described DDR frequency switching method first determines the required operating frequency of the DDR according to the operating conditions of the DDR, and when the current operating frequency of the DDR does not match the required operating frequency, the current operating frequency of the DDR is switched to the required operating frequency, so as to flexibly switch the DDR operating frequency according to the actual application scenario, thereby taking into account both the power consumption control of the DDR and the operating performance of the DDR. The required operating frequency of the DDR is also determined according to the data access conditions of the DDR or the target operating state of the DDR. Different threshold intervals are preset for different first operating frequency intervals, and the switching of multiple gears of the DDR frequency is achieved according to whether the threshold interval corresponding to the first operating frequency interval to which the current operating frequency belongs matches the required operating frequency.
[0117] Embodiment 2
[0118] See also Figure 2 , Figure 2 FIG. 1 is a flow chart of another DDR frequency switching method disclosed in an embodiment of the present invention. Figure 2 As shown, the DDR frequency switching method may include the following operations:
[0119] 201. The DDR frequency switching device determines the required operating frequency of DDR according to the operating conditions of DDR.
[0120] 202. The DDR frequency switching device determines whether the current operating frequency of the DDR matches the required operating frequency. When the determination result of step 202 is no, step 203 may be triggered. When the determination result of step 202 is yes, this process may be terminated, or step 202 or step 201 may be executed again.
[0121] For the specific description of the above steps 201 and 202, reference may be made to the specific description of the above steps 101 and 102, which will not be repeated here.
[0122] 203. The DDR frequency switching device generates a target clock signal corresponding to the required operating frequency according to the required operating frequency.
[0123] In the above step 203, a frequency update command can be set in the hardware command queue cache. When the frequency update command is executed, the clock configuration parameters corresponding to the required operating frequency of the DDR are calculated, and then the clock configuration parameters are configured to the unit for generating the target clock signal through the peripheral interface, so that the target clock signal can be generated according to the clock configuration parameters.
[0124] 204. The DDR frequency switching device switches the working clock signal used to drive the DDR to work at the current working frequency to a target clock signal.
[0125] In the above step 204, since the operating frequency of the DDR is determined by the frequency of the clock signal driving the DDR to operate, the operating frequency of the DDR can be switched after the operating clock signal of the DDR is switched to the target clock signal.
[0126] In an optional embodiment, before the DDR frequency switching device switches the working clock signal used to drive the DDR to work at the current working frequency to the target clock signal, the DDR frequency switching method further includes:
[0127] The DDR frequency switching device determines the target delay parameter corresponding to the required operating frequency according to the required operating frequency;
[0128] The DDR frequency switching device updates the delay parameter configuration of the DDR according to the target delay parameter, and triggers the step of switching the working clock signal used to drive the DDR to work at the current working frequency to the target clock signal.
[0129] In this optional embodiment, when DDR works at different operating frequencies, different delay parameters are usually required to be configured, and the delay parameters are used for delay driving of DDR access interface signals. The delay parameters can be obtained based on the test of DDR at different frequencies or through an internal training mechanism. The delay parameters corresponding to the determined different operating frequencies can be pre-stored in a designated storage location. When the DDR operating frequency needs to be switched, the target delay parameters corresponding to the required operating frequency are determined from the pre-stored delay parameters, and then the delay parameter configuration of DDR is updated to prepare for switching the DDR working clock.
[0130] It can be seen that the implementation of this optional embodiment can update the delay parameter configuration of the DDR according to the required working frequency to be switched by the DDR before switching the working clock signal of the DDR to the target clock signal, thereby preparing for switching the working clock of the DDR, so that the working frequency of the DDR can be switched quickly and stably.
[0131] In this optional embodiment, further optionally, the DDR frequency switching device determines the target delay parameter corresponding to the required operating frequency according to the required operating frequency, including:
[0132] The DDR frequency switching device determines the target second operating frequency interval to which the required operating frequency belongs according to the required operating frequency;
[0133] The DDR frequency switching device determines a target delay parameter corresponding to the target second operating frequency interval from a predetermined delay parameter set according to the target second operating frequency interval, and each delay parameter in the delay parameter set has a corresponding second operating frequency interval.
[0134] In this further optional embodiment, a plurality of sets of delay parameters may be preset in the predetermined delay parameter set, and each set of delay parameters has a corresponding second operating frequency interval. For example, the delay parameter set is preset with delay parameter a, delay parameter b and delay parameter c, and the second operating frequency intervals corresponding to the delay parameters are [450,500], [500,550], and [550,600], respectively. Assuming that the required operating frequency of DDR is 470MHZ, it belongs to the second operating frequency interval of [450,500], corresponding to delay parameter a. Then, delay parameter a can be used to update the delay parameter configuration of DDR in preparation for switching the operating frequency of DDR.
[0135] It can be seen that by implementing this further optional embodiment, by presetting different delay parameters for different second operating frequency intervals, the delay parameter corresponding to the second operating frequency to which the required operating frequency belongs is used as the target delay parameter, so as to prepare for updating the delay parameter configuration of DDR, so that the operating frequency of DDR can be switched quickly and stably.
[0136] In another optional embodiment, after the DDR frequency switching device generates a target clock signal corresponding to the required operating frequency according to the required operating frequency, before the DDR frequency switching device switches the working clock signal used to drive the DDR to operate at the current operating frequency to the target clock signal, the DDR frequency switching method further includes:
[0137] The DDR frequency switching device determines whether the DDR meets the preset frequency switching conditions;
[0138] When it is determined that the DDR meets the frequency switching condition, the DDR frequency switching device triggers the step of switching the working clock signal used to drive the DDR to work at the current working frequency to the target clock signal.
[0139] In this other optional embodiment, since the DDR frequency switching needs to execute the frequency cutting process specified in the DDR protocol, the frequency cutting process is usually more complicated and involves more processing. Therefore, before executing the specified frequency cutting process, it is necessary to ensure that the DDR meets certain conditions before executing the frequency cutting process so that the operating frequency of the DDR can be switched smoothly.
[0140] It can be seen that by implementing this other optional embodiment, the working clock signal of the DDR is switched to the target clock signal only after the DDR meets the frequency switching condition, which can ensure the stable switching of the DDR frequency.
[0141] In another optional embodiment, further optionally, the DDR frequency switching device determines whether the DDR meets a preset frequency switching condition, including:
[0142] The DDR frequency switching device determines whether the video currently processed by the DDR enters the blanking area;
[0143] When it is determined that the video currently processed by the DDR enters the blanking area, the DDR frequency switching device determines that the DDR meets the preset frequency switching condition;
[0144] When it is determined that the video currently processed by the DDR has not entered the blanking area, the DDR frequency switching device determines that the DDR does not meet the frequency switching condition.
[0145] In this further optional embodiment, the blanking area of the video refers to a special period in the process of video data transmission, during which the bandwidth occupied by the video data transmission is substantially zero, that is, the video data will not occupy the bandwidth during this period, that is, the DDR does not need to process the video data during this period and is in a relatively idle state. Switching the working frequency of the DDR at this time can reduce the impact of the task currently processed by the DDR on the DDR frequency switching, which is conducive to ensuring the stable switching of the DDR working frequency.
[0146] It can be seen that implementing this further optional embodiment and switching the operating frequency of DDR when the video currently processed by DDR enters the blanking area can reduce the impact of the task currently processed by DDR on the DDR frequency switching, which is conducive to ensuring the stable switching of the DDR operating frequency.
[0147] In this further optional embodiment, further optionally, after determining that the video currently processed by the DDR enters the blanking area and before the DDR frequency switching device determines that the DDR meets a preset frequency switching condition, the DDR frequency switching method further includes:
[0148] The DDR frequency switching device determines whether the target channel is in a closed state and whether the DDR is in a self-refresh state. The target channel is an interface for providing an external device to access the DDR;
[0149] When it is determined that the channel through which the system bus accesses the DDR is in a closed state and the DDR is in a self-refresh state, the DDR frequency switching device triggers the step of determining whether the DDR meets a preset frequency switching condition.
[0150] In this further optional embodiment, in the frequency switching process for switching the DDR frequency, before the working clock signal of the DDR is switched to the target clock signal, the channel for external access to the DDR is usually closed, and the DDR is put into a self-refresh state. After the working clock signal of the DDR is switched to the target clock signal, the internal circuit parameters of the DDR are updated to make the DDR exit the self-refresh state, and the channel for external access to the DDR is opened to restore the DDR to a normal working state, thereby completing the switching of the working frequency of the DDR. Therefore, the working clock signal of the DDR is switched to the target clock signal only when the target channel is in a closed state and the DDR is in a self-refresh state, which is conducive to ensuring the stable switching of the working frequency of the DDR.
[0151] It can be seen that by implementing this further optional embodiment, the working clock signal of the DDR is switched to the target clock signal only when the target channel is in the closed state and the DDR is in the self-refresh state, which is conducive to ensuring the stable switching of the DDR working frequency.
[0152] It can be seen that the implementation Figure 2 The described DDR frequency switching method first generates a target clock signal corresponding to the required operating frequency according to the required operating frequency, and then switches the working clock signal used to drive the DDR to work at the current operating frequency to the target clock signal when the working frequency of the DDR needs to be switched, so that the corresponding clock signal can be prepared in advance to achieve fast and stable switching of the working frequency of the DDR. It is also possible to update the delay parameter configuration of the DDR according to the required operating frequency to be switched by the DDR before the working clock signal of the DDR is switched to the target clock signal. Different delay parameters are preset for different second operating frequency intervals, and the delay parameter corresponding to the second operating frequency to which the required operating frequency belongs is used as the target delay parameter. The working frequency of the DDR is switched when the video currently processed by the DDR enters the blanking area, which is conducive to ensuring the stable switching of the DDR working frequency. The working clock signal of the DDR is switched to the target clock signal only when the target channel is in a closed state and the DDR is in a self-refresh state, which is conducive to ensuring the stable switching of the DDR working frequency.
[0153] Embodiment 3
[0154] See also Figure 3 , Figure 3 FIG. 1 is a schematic diagram of a DDR frequency switching device disclosed in an embodiment of the present invention. Figure 3 As shown, the DDR frequency switching device operates on a DDR frequency switching device, and the DDR frequency switching device may include:
[0155] The determination module 301 is used to determine the required operating frequency of the DDR according to the operation status of the DDR;
[0156] A determination module 302 is used to determine whether the current operating frequency of the DDR matches the required operating frequency;
[0157] The switching module 303 is used to switch the current operating frequency of the DDR to the required operating frequency when the judging module 302 judges that the current operating frequency of the DDR does not match the required operating frequency.
[0158] It can be seen that the implementation Figure 3 The described DDR frequency switching device first determines the required operating frequency of the DDR according to the operating conditions of the DDR, and when the current operating frequency of the DDR does not match the required operating frequency, switches the current operating frequency of the DDR to the required operating frequency, thereby realizing flexible switching of the DDR operating frequency according to actual application scenarios, thereby taking into account both the power consumption control of the DDR and the operating performance of the DDR.
[0159] In an optional embodiment, the determination module 301 is further configured to determine, according to the current operating frequency of the DDR, a target first operating frequency interval to which the current operating frequency of the DDR belongs before the determination module 302 determines whether the current operating frequency of the DDR matches the required operating frequency;
[0160] The determination module 301 is further configured to determine, according to the target first operating frequency interval, a target threshold interval corresponding to the target first operating frequency interval from a predetermined threshold interval set, wherein each threshold interval in the threshold interval set has a corresponding first operating frequency interval;
[0161] And, the specific method of the determination module 302 determining whether the current operating frequency of the DDR matches the required operating frequency is:
[0162] It is determined whether the target threshold interval corresponding to the target first operating frequency interval matches the required operating frequency.
[0163] It can be seen that the implementation Figure 4 The described DDR frequency switching device presets different threshold intervals for different first operating frequency intervals, and determines whether the current operating frequency matches the required operating frequency based on whether the threshold interval corresponding to the first operating frequency interval to which the current operating frequency belongs matches the required operating frequency, thereby accurately judging whether the DDR frequency needs to be switched, thereby realizing the switching of multiple gears of the DDR frequency.
[0164] In another optional embodiment, the DDR frequency switching device further includes:
[0165] The generating module 304 is used to generate a target clock signal corresponding to the required operating frequency according to the required operating frequency before the switching module 303 switches the current operating frequency of the DDR to the required operating frequency after the judging module 302 judges that the threshold interval corresponding to the current operating frequency of the DDR does not match the required operating frequency;
[0166] And, the specific manner in which the switching module 303 switches the current operating frequency of the DDR to the required operating frequency is:
[0167] The working clock signal used to drive the DDR to work at the current working frequency is switched to the target clock signal.
[0168] It can be seen that the implementation Figure 4 The described DDR frequency switching device first generates a target clock signal corresponding to the required operating frequency according to the required operating frequency, and then switches the working clock signal used to drive the DDR to operate at the current operating frequency to the target clock signal when the DDR operating frequency needs to be switched, thereby being able to prepare the corresponding clock signal in advance and achieve fast and stable switching of the DDR operating frequency.
[0169] In this another optional embodiment, further optionally, the determination module 301 is further used to determine the target delay parameter corresponding to the required operating frequency according to the required operating frequency before the switching module 303 switches the working clock signal used to drive the DDR to operate at the current operating frequency to the target clock signal;
[0170] And, the DDR frequency switching device also includes:
[0171] The updating module 305 is used to update the delay parameter configuration of the DDR according to the target delay parameter, and trigger the switching module 303 to execute the operation of switching the working clock signal used to drive the DDR to work at the current working frequency to the target clock signal.
[0172] It can be seen that the implementation Figure 4 The described DDR frequency switching device can update the DDR delay parameter configuration according to the required working frequency to be switched by DDR before switching the DDR working clock signal to the target clock signal, prepare for switching the DDR working clock, and enable the DDR working frequency to be switched quickly and stably.
[0173] In this further optional embodiment, further optionally, the specific manner in which the determination module 301 determines the target delay parameter corresponding to the required operating frequency according to the required operating frequency is:
[0174] According to the required operating frequency, determining a target second operating frequency interval to which the required operating frequency belongs;
[0175] According to the target second operating frequency interval, a target delay parameter corresponding to the target second operating frequency interval is determined from a predetermined delay parameter set, and each delay parameter in the delay parameter set has a corresponding second operating frequency interval.
[0176] It can be seen that the implementation Figure 4 The described DDR frequency switching device presets different delay parameters for different second operating frequency intervals, takes the delay parameter corresponding to the second operating frequency to which the required operating frequency belongs as the target delay parameter, and prepares for updating the DDR delay parameter configuration, so that the DDR operating frequency can be switched quickly and stably.
[0177] In another optional embodiment, the judgment module 302 is further used to judge whether the DDR satisfies a preset frequency switching condition before the switching module 303 switches the working clock signal used to drive the DDR to operate at the current operating frequency to the target clock signal after the generation module 304 generates the target clock signal corresponding to the required operating frequency according to the required operating frequency; and when it is judged that the DDR satisfies the frequency switching condition, the switching module 303 is triggered to execute the operation of switching the working clock signal used to drive the DDR to operate at the current operating frequency to the target clock signal.
[0178] It can be seen that the implementation Figure 4 The described DDR frequency switching device switches the working clock signal of the DDR to the target clock signal only after the DDR meets the frequency switching condition, thereby ensuring stable switching of the DDR frequency.
[0179] In this further optional embodiment, further optionally, the specific manner in which the determination module 302 determines whether the DDR satisfies the preset frequency cutting condition is:
[0180] Determine whether the video currently processed by DDR enters the blanking area;
[0181] When it is determined that the video currently processed by the DDR enters the blanking area, it is determined that the DDR meets the preset frequency switching condition;
[0182] When it is determined that the video currently processed by the DDR has not entered the blanking area, it is determined that the DDR does not meet the frequency cutting condition.
[0183] It can be seen that the implementation Figure 4 The described DDR frequency switching device switches the working frequency of DDR when the video currently processed by DDR enters the blanking area, which can reduce the impact of the task currently processed by DDR on the DDR frequency switching and is conducive to ensuring the stable switching of the DDR working frequency.
[0184] In this further optional embodiment, further optionally, the judgment module 302 is also used to judge whether the target channel is in a closed state and whether the DDR is in a self-refresh state after the judgment module 302 judges that the video currently processed by the DDR enters the blanking area and before determining that the DDR satisfies the preset frequency cutting condition, the target channel is an interface for providing an external device to access the DDR; and when it is determined that the channel for the system bus to access the DDR is in a closed state and the DDR is in a self-refresh state, trigger the execution of an operation to determine that the DDR satisfies the preset frequency cutting condition.
[0185] It can be seen that the implementation Figure 4 The described DDR frequency switching device switches the DDR working clock signal to the target clock signal only when the target channel is in a closed state and the DDR is in a self-refresh state, which is conducive to ensuring stable switching of the DDR working frequency.
[0186] In yet another optional embodiment, the specific manner in which the determination module 301 determines the required operating frequency of the DDR according to the operation status of the DDR is:
[0187] Determine the required operating frequency of DDR based on the data access to DDR on the system bus, or,
[0188] Determine the target working state of DDR;
[0189] According to the target working state, a required working frequency corresponding to the target working state is determined from a predetermined required working frequency set, and each required working frequency in the required working frequency set has a corresponding working state.
[0190] It can be seen that the implementation Figure 4 The described DDR frequency switching device determines the required operating frequency of the DDR according to the data access situation of the DDR or the target operating state of the DDR, thereby being able to accurately determine the required operating frequency of the DDR and providing basic conditions for subsequent processing.
[0191] For the specific description of the DDR frequency switching device, reference may be made to the specific description of the DDR frequency switching method, which will not be described in detail herein.
[0192] Embodiment 4
[0193] See also Figure 5 , Figure 5 FIG. 1 is a schematic diagram of the structure of another DDR frequency switching device disclosed in an embodiment of the present invention. Figure 5 As shown, the device may include:
[0194] A memory 501 storing executable program codes;
[0195] a processor 502 coupled to the memory 501;
[0196] The processor 502 calls the executable program code stored in the memory 501 to execute the steps in the DDR frequency switching method disclosed in the first or second embodiment of the present invention.
[0197] Embodiment 5
[0198] An embodiment of the present invention discloses a computer storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute the steps in the DDR frequency switching method disclosed in the first or second embodiment of the present invention.
[0199] The device embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.
[0200] Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution can be essentially or partly contributed to the prior art in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0201] Finally, it should be noted that the DDR frequency switching method and device disclosed in the embodiments of the present invention are only preferred embodiments of the present invention, and are only used to illustrate the technical solution of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, it should be understood by those skilled in the art that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A DDR frequency switching method, characterized in that: The method comprises: The DDR frequency switching device determines the required operating frequency of the DDR according to the operating condition of the DDR; The DDR frequency switching device determines whether the current operating frequency of the DDR matches the required operating frequency; When it is determined that the current operating frequency of the DDR does not match the required operating frequency, the DDR frequency switching device switches the current operating frequency of the DDR to the required operating frequency; Before the DDR frequency switching device determines whether the current operating frequency of the DDR matches the required operating frequency, the method further includes: The DDR frequency switching device determines, according to the current operating frequency of the DDR, a target first operating frequency interval to which the current operating frequency of the DDR belongs; The DDR frequency switching device determines, according to the target first operating frequency interval, a target threshold interval corresponding to the target first operating frequency interval from a predetermined threshold interval set, each threshold interval in the threshold interval set having a corresponding first operating frequency interval; And, the DDR frequency switching device determines whether the current operating frequency of the DDR matches the required operating frequency, including: The DDR frequency switching device determines whether a target threshold interval corresponding to the target first operating frequency interval matches the required operating frequency.
2. The DDR frequency switching method according to claim 1, characterized in that: After determining that the threshold interval corresponding to the current operating frequency of the DDR does not match the required operating frequency, and before the DDR frequency switching device switches the current operating frequency of the DDR to the required operating frequency, the method further includes: The DDR frequency switching device generates a target clock signal corresponding to the required operating frequency according to the required operating frequency; And, the DDR frequency switching device switches the current operating frequency of the DDR to the required operating frequency, including: The DDR frequency switching device switches the working clock signal used to drive the DDR to work at the current working frequency to the target clock signal.
3. The DDR frequency switching method according to claim 2, characterized in that: Before the DDR frequency switching device switches the working clock signal used to drive the DDR to work at the current working frequency to the target clock signal, the method further includes: The DDR frequency switching device determines a target delay parameter corresponding to the required operating frequency according to the required operating frequency; The DDR frequency switching device updates the delay parameter configuration of the DDR according to the target delay parameter, and triggers the step of switching the working clock signal used to drive the DDR to work at the current working frequency to the target clock signal.
4. The DDR frequency switching method according to claim 3, characterized in that: The DDR frequency switching device determines a target delay parameter corresponding to the required operating frequency according to the required operating frequency, including: The DDR frequency switching device determines, according to the required operating frequency, a target second operating frequency interval to which the required operating frequency belongs; The DDR frequency switching device determines a target delay parameter corresponding to the target second operating frequency interval from a predetermined delay parameter set according to the target second operating frequency interval, and each delay parameter in the delay parameter set has a corresponding second operating frequency interval.
5. The DDR frequency switching method according to any one of claims 2 to 4, characterized in that: After the DDR frequency switching device generates a target clock signal corresponding to the required operating frequency according to the required operating frequency, before the DDR frequency switching device switches the operating clock signal used to drive the DDR to operate at the current operating frequency to the target clock signal, the method further includes: The DDR frequency switching device determines whether the DDR meets a preset frequency switching condition; When it is determined that the DDR meets the frequency switching condition, the DDR frequency switching device triggers the step of switching the working clock signal used to drive the DDR to work at the current working frequency to the target clock signal.
6. The DDR frequency switching method according to claim 5, characterized in that: The DDR frequency switching device determines whether the DDR meets a preset frequency switching condition, including: The DDR frequency switching device determines whether the video currently processed by the DDR enters a blanking area; When it is determined that the video currently processed by the DDR enters the blanking area, the DDR frequency switching device determines that the DDR meets a preset frequency switching condition; When it is determined that the video currently processed by the DDR does not enter the blanking area, the DDR frequency switching device determines that the DDR does not meet the frequency cutting condition.
7. The DDR frequency switching method according to claim 6, characterized in that: After determining that the video currently processed by the DDR enters the blanking area, and before the DDR frequency switching device determines that the DDR meets a preset frequency switching condition, the method further includes: The DDR frequency switching device determines whether a target channel is in a closed state and whether the DDR is in a self-refresh state, the target channel being an interface for providing an external device with access to the DDR through a system bus; When it is determined that the target channel is in a closed state and the DDR is in a self-refresh state, the DDR frequency switching device triggers the step of determining whether the DDR satisfies a preset frequency switching condition.
8. A DDR frequency switching device, characterized in that: The device is operated on a DDR frequency switching device, and the device is used to execute the DDR frequency switching method according to any one of claims 1 to 7, and the device comprises: A determination module, used to determine the required operating frequency of the DDR according to the operating conditions of the DDR; A judging module, used for judging whether the current operating frequency of the DDR matches the required operating frequency; The switching module is used to switch the current operating frequency of the DDR to the required operating frequency when the judging module judges that the current operating frequency of the DDR does not match the required operating frequency.
9. A DDR frequency switching device, characterized in that: The device comprises: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the DDR frequency switching method as described in any one of claims 1-7.
Citation Information
Patent Citations
A bus dynamic frequency modulation method and a bus dynamic frequency modulation device
CN109101073A