Chip power consumption smoothness debugging method and system, and intelligent device

Through simulation operation and sliding window sampling, combined with flexible functional modules inside and outside the application scenarios, the operation order of the functional modules is adjusted, and the problems of smooth power consumption of smart device chips are solved, and the complexity and reliability of high reliability of high power consumption and low reliability are achieved, and flexibility is achieved The design complexity and circuit area are reduced.

CN119311500APending Publication Date: 2025-01-14XINGTANG TELECOMM TECH CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411383094.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

The power consumption smooth debugging technology of existing smart device chips is high in complexity and low reliability, and cannot take into account flexibility and performance. Increasing the power consumption compensation module or frequent frequency adjustment will affect the chip design and performance.

Method used

By obtaining the running order of functional modules in each application scenario, simulate and perform sliding window sampling, find functional modules whose power consumption difference is greater than the preset threshold for adjacent time windows for power consumption compensation, and use flexible operation functions inside or outside the application scenarios The modules are combined in parallel, and the operating order of the functional modules is adjusted to achieve power consumption smoothing.

Benefits of technology

It achieves smooth power consumption within the chip, reduces design complexity and circuit area, ensures good operating performance and reliability, and avoids the influence of frequent frequency adjustment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119311500A_ABST
    Figure CN119311500A_ABST
Patent Text Reader

Abstract

The invention relates to a chip power consumption smoothness debugging method and system and intelligent equipment, and belongs to the technical field of intelligent equipment chip debugge.The chip power consumption smoothness debugging method comprises the steps that function modules included in application scenes in a chip and the function module operation sequence are obtained, and all the application scenes are operated through simulation; obtaining a power consumption sequence of each functional module based on power consumption data generated by sampling at a preset frequency and a preset step length, and further obtaining the functional module and the power consumption sequence of each application scene running in a fixed sequence; and performing power consumption compensation and processing on the found to-be-compensated function module by adopting the flexible operation function module inside and / or outside the application scene to finally obtain a final function module operation sequence of the application scene. The problems of high complexity, low reliability and incapability of giving consideration to flexibility and performance in the prior art are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent device chip debugging, and in particular to a chip power consumption smoothing debugging method, system and intelligent device. Background Art

[0002] The power supply of smart device chips is generated by RF circuit induction. The chip power consumption level and power consumption fluctuation directly affect the stability and reliability of the induction field strength. The overall power consumption should be as low as possible and the power consumption fluctuation should be as small as possible. Since the analog RF circuit of smart device chips has limited tolerance, there are restrictions on the power consumption fluctuation of the digital part for passive smart devices and some active smart devices. With the popularization of smart devices, there are more and more application scenarios, including more types and numbers of functional modules, and the complexity of application scenarios increases. The power consumption generated during operation varies. Therefore, it is a technical problem in the industry to realize complex applications that can meet the requirements of power consumption smoothness and power consumption fluctuation to meet the requirements of chip analog RF circuits in the context of smart device chips and their limited resources.

[0003] In the prior art, the power consumption smoothing debugging technology of smart device chips mainly includes methods such as adding power consumption compensation modules and controlling frequency. However, adding power consumption compensation modules will increase the complexity of chip design and circuit area, and cannot meet the strict design requirements for area, and lack flexibility. The frequency control method will cause the performance and reliability of the card chip to decline, and the device performance cannot be fully utilized. Summary of the invention

[0004] In view of the above analysis, the embodiments of the present invention aim to provide a chip power consumption smoothing debugging method, system, and intelligent device to solve the problems of high complexity, low reliability, and inability to balance flexibility and performance in the prior art chip power consumption smoothing debugging method.

[0005] On the one hand, an embodiment of the present invention provides a chip power consumption smoothing debugging method, the method specifically comprising:

[0006] Obtain the functional modules and the running order of the functional modules included in each application scenario of the chip;

[0007] Simulate and run each application scenario, and perform sliding window sampling on the power consumption of each functional module to obtain a power consumption sequence of each time window of each functional module arranged in chronological order;

[0008] Selecting function modules running in a fixed order in each application scenario, arranging the power consumption data of the function modules running in the fixed order according to the running order, and forming a power consumption sequence of the function modules in each application scenario; finding adjacent function modules whose power consumption difference in adjacent time windows is greater than a preset threshold from the power consumption sequence of the function modules in each application scenario, and taking the function module with lower power consumption among the adjacent function modules as the module to be compensated;

[0009] Using flexible operating function modules within and / or outside the application scenario, performing power consumption compensation on the function modules to be compensated to obtain parallel combination of compensated function modules;

[0010] The final function module operation order of the application scenario is obtained based on the parallel combination of the compensated function modules and the function module operation order.

[0011] The beneficial effects of the above technical solution are as follows: by compensating the functional modules with lower power consumption in the functional modules running in a fixed order within the application scenario with flexibly running functional modules within / outside the application scenario, reasonable planning and adjustment of the running order of each functional module in the chip application scenario can be achieved, so as to achieve the purpose of smoothing power consumption within the application scenario. Compared with the existing technology, there is no need to add additional power consumption compensation modules, and there is no need to frequently adjust the frequency, which ensures the flexibility of application scenario design and debugging within the chip, and can guarantee good operating performance and reliability.

[0012] Based on a further improvement of the above method, the functional modules running in a fixed order refer to functional modules running serially or in parallel in a fixed order based on the data flow set in the application scenario.

[0013] The beneficial effect of the above further improvement scheme is to find the functional modules in the application scenario that set the data flow in serial or parallel order in a fixed order, so as to ensure that the operation order of the functional modules related to the data flow is not affected, and serve as the basis for subsequent power consumption compensation.

[0014] Based on the further improvement of the above method, the preset threshold is specifically the product of 1 / 3 of the maximum value of the chip operating current fluctuation and the operating voltage.

[0015] The beneficial effect of the above further improvement scheme is that the corresponding preset threshold can be calculated, and the power consumption difference when the application scenario in the smart device chip switches the running function module does not exceed the preset threshold, which not only has good operating reliability but also has little impact on performance.

[0016] Based on the further improvement of the above method, the sliding window sampling of the power consumption of each functional module to obtain the power consumption sequence of each time window of each functional module arranged in chronological order specifically includes: sampling the power consumption at a preset frequency, sliding the sampled power consumption data with a preset window length and obtaining the average power consumption of each window;

[0017] Based on the average power consumption values ​​of each window, a power consumption sequence of each time window of each functional module arranged in chronological order is obtained.

[0018] The beneficial effect of the above-mentioned further improvement scheme is that it is possible to obtain a power consumption sequence of each time window arranged in chronological order for each functional module, and the mean power consumption of each time window obtained by sliding window sampling is used as a unit of the power consumption sequence, which can not only well present the power consumption changes of the functional modules, but also avoid increasing the processing complexity due to too many sampling points.

[0019] Based on the further improvement of the above method, the preset frequency is specifically 1 GHz.

[0020] The beneficial effect of the above further improvement scheme is that 1 GHz is a suitable sampling frequency for sampling the power consumption values ​​of functional modules in smart device chips obtained through many years of experience, which can meet the sampling point accuracy requirements.

[0021] Based on the further improvement of the above method, the preset window length is specifically 1 us.

[0022] The beneficial effect of the above further improvement scheme is that 1us is a suitable window for sampling the power consumption value of the functional module in the smart device chip obtained from many years of experience, which can meet the sampling point accuracy requirements and reduce the complexity of data processing.

[0023] Based on a further improvement of the above method, the power consumption of the functional modules to be compensated is compensated to obtain a parallel combination of the compensated functional modules through the following steps, and the steps specifically include:

[0024] S71: Find the flexible operation function module and the corresponding power consumption sequence in the current application scenario. If there is no available flexible operation function module in the current application scenario, find the flexible operation function module outside the current application scenario, and then exclude the flexible operation function module whose power consumption sequence length exceeds that of the function module to be compensated;

[0025] S72: Align the remaining power consumption sequences of the flexible operation function modules with the endpoints of the power consumption sequence of the function module to be compensated one by one and superimpose them in sequence according to the time window to obtain each superimposed power consumption sequence;

[0026] S73: Determine whether there is a superimposed power consumption sequence and a corresponding functional module that simultaneously satisfies the following conditions. If yes, combine the corresponding functional module and the functional module to be compensated in parallel as the compensated functional module. The conditions include:

[0027] C71: The corresponding superimposed power consumption sequence does not exceed the limit threshold;

[0028] C72: The absolute value of the power consumption difference between the corresponding superimposed power consumption sequence and the adjacent time window power consumption of the adjacent functional module does not exceed the preset threshold;

[0029] S74: Otherwise, find out from each superimposed power consumption sequence the superimposed power consumption sequence and the corresponding functional module that meets the condition C1 and has a power consumption difference in the adjacent time window with the adjacent functional module that is less than 0 and an absolute value that exceeds the preset threshold;

[0030] S75: Determine whether there is a function module that completes power consumption compensation by adjusting frequency in the corresponding function module, and if so, combine the corresponding function module and the function module to be compensated in parallel as a compensated function module;

[0031] S76: Otherwise, the superimposed power consumption sequence is used as the power consumption sequence of the functional module to be compensated, and the process returns to iteratively execute S72-S76 until the absolute value of the power consumption difference between the power consumption sequence of the functional module to be compensated and the adjacent time windows of the adjacent functional modules is less than the preset threshold value, and all the corresponding functional modules are obtained and combined in parallel with the functional module to be compensated as the compensated functional modules.

[0032] The beneficial effect of the above-mentioned further improvement scheme is: to find flexible operation function modules that meet the conditions from inside and outside the application scenario of the smart device chip, and to compensate for power consumption by giving priority to the flexible operation function modules within the application scenario. The purpose is to give priority to the application scenario with flexible operation function modules so that the flexible operation function modules included in it can be used to compensate for the power consumption deviation of the application scenario itself and can run at the same time; if there is no available flexible operation function module in the application scenario, or if further power consumption compensation is required after the power consumption compensation of the flexible operation function module included in it, flexible operation function modules outside the application scenario can also be selected for compensation. The flexible operation modules screened out through conditions all meet the requirement that the length does not exceed the module to be compensated, so as to avoid the excess part causing new power consumption difference and aggravating the uneven power consumption. They also meet the requirement that the length does not exceed the limit threshold of the smart device chip after being superimposed with the module to be compensated. In this way, by selecting the processing method that meets the conditions for power consumption compensation from the existing functional modules in the smart device chip, not only is there no need to add additional power consumption compensation circuits and modules in the smart device chip to increase the circuit area, but also there is no need to frequently adjust the frequency to affect the operating performance and reliability; if the screened flexible operation functional module still needs further compensation after the power consumption compensation of the module to be compensated, and no module that meets the conditions for further compensation can be found in the chip, compensation is performed by adjusting the frequency once, so that the operation frequency of adjusting the frequency is reduced to a minimum, and the impact on the performance and stability of the chip application scenario is minimized.

[0033] Based on the further improvement of the above method, the final function module operation order of the application scenario is obtained through the following process based on the parallel combination of the compensated function modules and the function module operation order, and the process specifically includes:

[0034] Based on the parallel combination of functional modules in the application scenario and the running order of the functional modules, the power consumption sequence of the functional modules after the application scenario is updated is obtained;

[0035] If there is an unused flexible operation function module in the application scenario, the flexible operation function module is spliced ​​with the function module power consumption sequence after the application scenario is updated, and it is determined whether there is an adjacent function module in the spliced ​​function module power consumption sequence whose adjacent time window power consumption difference is greater than a preset threshold.

[0036] If yes, then execute S71-S76 to obtain a parallel combination of functional modules, and then update the power consumption sequence of the spliced ​​functional modules based on the parallel combination of functional modules to obtain the power consumption sequence of the overall functional modules of the application scenario.

[0037] Otherwise, the concatenated functional module power consumption sequence is directly used as the overall functional module power consumption sequence of the application scenario;

[0038] If there is no unused flexible operation function module in the application scenario, the updated function module power consumption sequence is directly used as the overall function module power consumption sequence of the application scenario;

[0039] Determine whether the power consumption data of the time windows corresponding to the two end points of the power consumption sequence of the overall functional module of the application scenario exceeds a preset threshold,

[0040] If yes, find out the function modules that meet the conditions from the flexible operation function modules inside and outside the application scenario, and the condition refers to that the power consumption data of the found function module and the power consumption data of one end adjacent to the endpoint exceeding the power consumption threshold and the power consumption difference of the adjacent time window of the endpoint exceeding the preset threshold do not exceed the preset threshold, and the power consumption data of the other end does not exceed the preset threshold;

[0041] If no function module that meets the condition is found, find a function module that has the smallest power consumption difference in the adjacent time window with the endpoint that exceeds the preset threshold and has an adjustable frequency, and adjust the frequency to make the function module meet the condition;

[0042] The power consumption sequence of the flexible running functional module found is spliced ​​with one end of the corresponding power consumption sequence of the overall functional module of the application scenario to obtain the power consumption sequence of the final functional module of the application scenario; based on the power consumption sequence of the final functional module of the application scenario, the running order of the final functional module of the application scenario is obtained;

[0043] Otherwise, the final function module operation order of the application scenario is obtained based on the overall function module power consumption sequence of the application scenario.

[0044] The beneficial effect of the above further improvement scheme is: the flexible operation function modules that are not used for power consumption compensation in the application scenario are spliced ​​with the power consumption sequence of the function modules after the application scenario is updated to obtain the power consumption sequence of the spliced ​​function modules, and then the power consumption compensation is performed on the uneven power consumption after splicing. The purpose is to ensure that all function modules in the application scenario can be operated according to the data flow and all function modules corresponding to the power consumption sequence of the overall function modules of the application scenario formed after power consumption compensation can be operated, so as to ensure the integrity of the application scenario function and the smoothness of power consumption; then, the flexible operation function modules that exceed the preset threshold time window at the two end points of the power consumption sequence of the overall function modules of the application scenario are screened out to meet the conditions. The module splicing method ensures that the power consumption thresholds of the time windows at both end points of the power consumption sequence of the overall functional modules of the application scenario do not exceed the preset thresholds. If there is no flexible operation functional module that meets the conditions, consider adjusting the frequency so that the power consumption changes of each application scenario from startup to end show a gradually smooth increase from low to high at the starting end that does not exceed the preset threshold, and a gradually smooth decrease from high to low to the preset threshold at the ending end. The purpose is to make the overall power consumption of each application scenario smooth, and when the application scenarios are connected, they can directly switch to run due to the smooth power consumption, thereby ensuring the stability, reliability and overall performance of the chip when running multiple application scenarios.

[0045] On the other hand, an embodiment of the present invention provides an in-chip application debugging system, the system includes a power consumption data acquisition module, a to-be-compensated module acquisition module, a compensation module, and an operation order acquisition module, wherein:

[0046] The power consumption data acquisition module is used to obtain the functional modules and the running order of the functional modules included in each application scenario of the chip; simulate and run each application scenario, and perform sliding window sampling on the power consumption of each functional module to obtain the power consumption data of each time window of each functional module arranged in chronological order;

[0047] The module to be compensated acquisition module is used to select the function modules running in a fixed order in each application scenario, arrange the power consumption data of the function modules running in the fixed order according to the running order, and form a function module power consumption sequence for each application scenario; find the adjacent function modules whose power consumption difference in adjacent time windows is greater than a preset threshold value from the function module power consumption sequence of each application scenario as the modules to be compensated;

[0048] The compensation module is used to use flexible operating function modules within and / or outside the application scenario to perform power consumption compensation on the function modules to be compensated to obtain a parallel combination of compensated function modules;

[0049] The operation order acquisition module obtains the final function module operation order of the application scenario based on the parallel combination of the compensated function modules and the function module operation order.

[0050] The beneficial effect of adopting the above scheme is that the system can identify the functional modules of the application scenarios in the chip, simulate power consumption, use the functional modules that can run flexibly in the chip to compensate the power consumption of the modules to be compensated, and obtain the final functional module operation order of the application scenario. Compared with the existing technology, there is no need to use additional power consumption compensation modules or frequently adjust the frequency for power consumption compensation, and it is more efficient to achieve smooth debugging of the power consumption of the application scenarios in the chip, and obtain the final operating order of the functional modules of the application scenarios, thereby ensuring the reliability and performance of the chip operation.

[0051] An embodiment of the present invention also provides an intelligent device with smooth running power consumption, wherein the intelligent device includes a chip, wherein the chip stores the running order of application scenario function modules, and the running order of application scenario function modules is obtained by executing the chip power consumption smoothing debugging method provided by an embodiment of the present invention.

[0052] The beneficial effect of adopting the above solution is that compared with the prior art, the smart device provided by the embodiment of the present invention has better reliability and performance, runs more smoothly, and responds faster.

[0053] In the present invention, the above-mentioned technical solutions can also be combined with each other to achieve more preferred combination solutions. Other features and advantages of the present invention will be described in the subsequent description, and some advantages can become obvious from the description, or can be understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained through the contents particularly pointed out in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] The accompanying drawings are only used for the purpose of illustrating specific embodiments and are not to be considered as limiting the present invention. In the entire drawings, the same reference symbols represent the same components;

[0055] Figure 1 This is a flow chart of the method of Example 1 of the present invention;

[0056] Figure 2 This is a schematic diagram of the function module operation order and power consumption sequence obtained by simulating the application scenario of Example 1 of the present invention.

[0057] Figure 3 This is a schematic diagram of the final functional module operation order and power consumption sequence of the application scenario obtained in Example 1 of the present invention.

[0058] Figure 4 This is a schematic diagram of the final function module operation order and power consumption sequence of each application scenario obtained in Example 1 of the present invention. DETAILED DESCRIPTION

[0059] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.

[0060] Embodiment 1:

[0061] A specific embodiment of the present invention discloses a chip power consumption smoothing debugging method, such as Figure 1 shown.

[0062] The method specifically comprises:

[0063] Obtain the functional modules and the running order of the functional modules included in each application scenario of the chip;

[0064] Simulate and run each application scenario, and perform sliding window sampling on the power consumption of each functional module to obtain a power consumption sequence of each time window of each functional module arranged in chronological order;

[0065] Selecting function modules running in a fixed order in each application scenario, arranging the power consumption data of the function modules running in the fixed order according to the running order, and forming a power consumption sequence of the function modules in each application scenario; finding adjacent function modules whose power consumption difference in adjacent time windows is greater than a preset threshold from the power consumption sequence of the function modules in each application scenario, and taking the function module with lower power consumption among the adjacent function modules as the module to be compensated;

[0066] Using flexible operating function modules within and / or outside the application scenario, performing power consumption compensation on the function modules to be compensated to obtain parallel combination of compensated function modules;

[0067] The final function module operation order of the application scenario is obtained based on the parallel combination of the compensated function modules and the function module operation order.

[0068] Generally, various functional modules are provided in smart device chips, and various application scenarios are set based on application requirements, wherein each application scenario includes a corresponding combination of functional modules, wherein the functional modules are divided into high-power functional modules, such as processors, algorithm cores, etc., medium-power functional modules, such as high-speed communication modules, etc., and low-power functional modules, such as general communication modules, security detection modules, hardware acceleration modules, counter modules, etc., according to the power consumption generated. During operation, each application scenario executes the corresponding combination of functional modules to complete a specific business application. Due to the order of the combination of functional modules, the high-, medium-, and low-power functional modules are staggered, which is bound to cause power consumption fluctuations. Therefore, this embodiment specifically implements the smoothing of application scenario operation power consumption through the following steps.

[0069] Step 1: Obtain the functional modules and the running order of the functional modules included in each application scenario of the chip.

[0070] Specifically, each application scenario is pre-set with a minimum set of types and quantities of functional modules to be included in order to complete a specific application. The functional modules are divided into functional modules that run in a fixed order and functional modules that run flexibly.

[0071] Furthermore, the fixed-order function modules refer to function modules that are sequentially or parallelly operated in a fixed order based on the data flow direction set in the application scenario. The flexible-operation function modules are not restricted by the data flow direction and can be set to operate at any time in the application scenario.

[0072] Step 2: Simulate and run each application scenario, and perform sliding window sampling on the power consumption of each functional module to obtain a power consumption sequence of each time window of each functional module arranged in chronological order.

[0073] Generally, the power consumption generated by the functional modules is collected and recorded by simulating the application scenarios. The power consumption generated by the same functional module in the chip in different application scenarios is considered to be consistent. The power consumption change process of each functional module from startup to end of operation is shown as follows: Figure 2 In order to obtain a curve that can present the power consumption change and facilitate subsequent processing, the power consumption of each functional module generated by the simulation running of each application scenario is processed as follows:

[0074] Furthermore, the sliding window sampling of the power consumption of each functional module to obtain the power consumption sequences of each time window of each functional module arranged in chronological order specifically includes:

[0075] The power consumption is sampled at a preset frequency, and the sampled power consumption data is windowed with a preset window length to obtain the average power consumption of each window;

[0076] Based on the average power consumption values ​​of each window, a power consumption sequence of each time window of each functional module arranged in chronological order is obtained.

[0077] Furthermore, the preset frequency is specifically 1 GHz, and the preset window length is specifically 1 us.

[0078] At present, the near-coupled radio frequency identification technology that complies with the ISO14443 communication protocol is commonly used in smart device chips. The smart device and the reading device communicate through near-field inductive coupling. When the smart device is close to the reading device, in theory, the reading device should separate an 847KHz frequency component from one of the two sideband signals through a filter, and then establish a communication channel and complete the business application. Among them, 847KHz is the chip power consumption data amplitude fluctuation frequency, that is, the highest frequency of the power consumption data. When the smart device is close to the reading device and has not yet communicated, if the power consumption of the application in the smart device chip is not smooth, the peak fluctuation of the voltage AC signal with a fluctuation frequency of 847KHz, or 847KHz multiple or divided frequency, will be generated in the smart device chip, which can easily cause the reading device to mistakenly believe that the business application has been completed, resulting in operation errors and communication confusion. In order to avoid possible errors caused by the frequency reaching a peak value of 847KHz, the preset time window length for power consumption sampling is 1 / 0.847≈1.18us. Considering the impact of the filter in the existing reading device on the fluctuation frequency, and for the convenience of calculation, the preset time window length is finally set to 1us based on experience.

[0079] According to the Nyquist theorem, in order to ensure the accuracy of the sampled power consumption data, the preset frequency used for sampling is at least twice the highest frequency of the functional module power consumption data. Since the preset time window length is 1us, that is, 1GHz is used as the preset frequency for sampling, 1GHz>2*0.847KHz, which meets the requirements of the Nyquist theorem. At the same time, for the convenience of calculation, the preset frequency is set to 1GHz.

[0080] Step 3: Select the functional modules that run in a fixed order in each application scenario, and arrange the power consumption data of the functional modules that run in a fixed order according to the order of operation to form a power consumption sequence of the functional modules for each application scenario; find out the adjacent functional modules whose power consumption difference in adjacent time windows is greater than a preset threshold from the power consumption sequence of the functional modules for each application scenario, and use the functional module with lower power consumption among the adjacent functional modules as the module to be compensated.

[0081] The functional modules running in a fixed order constitute the core functional module sequence for completing the business application in the application scenario. From the power consumption sequences of each time window in which each functional module is arranged in chronological order obtained in the second step, find the power consumption sequence corresponding to the functional modules running in a fixed order in the application scenario, and then splice or accumulate them according to the fixed order to obtain the power consumption sequence of the functional modules for each application scenario.

[0082] It can be understood that according to the operation order in the application scenario, the function modules that run in a fixed order are first selected, the power consumption data of each function module running in series are arranged in sequence according to the operation order, and then the power consumption data of the function modules running in parallel are accumulated with the power consumption data of the serial function modules running in parallel, so as to form the power consumption sequence of the function modules of the application scenario. Since the power consumption difference generated when the function modules in the application scenario are switched is greater than the preset threshold, that is, the power consumption is not smooth, it is easy to cause the reading device to misidentify the smart device chip, resulting in reduced reliability of business applications. Therefore, it is necessary to find out the adjacent power consumption modules in the power consumption sequence of the function modules of each application scenario that have non-smooth power consumption when switching. Specifically, the adjacent time window power consumption difference of the adjacent function modules is calculated, and the function module with lower power consumption among the adjacent function modules whose adjacent time window power consumption difference is greater than the preset threshold is used as the module to be compensated.

[0083] Furthermore, the preset threshold is specifically the product of 1 / 3 of the maximum value of the chip operating current fluctuation and the operating voltage.

[0084] The current fluctuations generated by the smart device when communicating with the existing reading device, the larger the current, the higher the power consumption, and the larger the fluctuation amplitude, wherein the maximum current fluctuation value is based on the maximum working current sensitivity average of the existing reading device, combined with experience; for example, for a smart device with an operating voltage of 1.2V, if its current fluctuation maximum value exceeds 600uA, and the fluctuation frequency reaches 847KHz, or 847KHz multiples or divisions, it is easy to cause the reading device to recognize errors. According to experience, take 1 / 3 of 600uA, leave 2 / 3 margin, the working voltage of the smart device is 1.2V, and the preset threshold of power consumption fluctuation is set to 200uA*1.2V=240uW. Similarly, for smart devices with other working voltages, such as working voltages of 0.8V, 1.0V, etc., the same treatment can be used, that is, take 1 / 3 of the corresponding maximum working current fluctuation value and multiply it by the working voltage to obtain the corresponding preset threshold.

[0085] Next, the fourth step: using flexible operating function modules within and / or outside the application scenario, performing power consumption compensation on the function modules to be compensated to obtain parallel combination of compensated function modules.

[0086] Specifically, the power consumption of the functional modules to be compensated is compensated to obtain a parallel combination of the compensated functional modules through the following steps, and the steps specifically include:

[0087] S71: Find the flexible operation function module and the corresponding power consumption sequence in the current application scenario. If there is no available flexible operation function module in the current application scenario, find the flexible operation function module outside the current application scenario, and then exclude the flexible operation function module whose power consumption sequence length exceeds that of the function module to be compensated;

[0088] S72: Align the remaining power consumption sequences of the flexible operation function modules with the endpoints of the power consumption sequence of the function module to be compensated one by one and superimpose them in sequence according to the time window to obtain each superimposed power consumption sequence;

[0089] S73: Determine whether there is a superimposed power consumption sequence and a corresponding functional module that simultaneously satisfies the following conditions. If yes, combine the corresponding functional module and the functional module to be compensated in parallel as the compensated functional module. The conditions include:

[0090] C71: The corresponding superimposed power consumption sequence does not exceed the limit threshold;

[0091] C72: The absolute value of the power consumption difference between the corresponding superimposed power consumption sequence and the adjacent time window power consumption of the adjacent functional module does not exceed the preset threshold;

[0092] S74: Otherwise, find out from each superimposed power consumption sequence the superimposed power consumption sequence and the corresponding functional module that meets the condition C1 and has a power consumption difference in the adjacent time window with the adjacent functional module that is less than 0 and an absolute value that exceeds the preset threshold;

[0093] S75: Determine whether there is a function module that completes power consumption compensation by adjusting frequency in the corresponding function module, and if so, combine the corresponding function module and the function module to be compensated in parallel as a compensated function module;

[0094] S76: Otherwise, the superimposed power consumption sequence is used as the power consumption sequence of the functional module to be compensated, and the process returns to iteratively execute S72-S76 until the absolute value of the power consumption difference between the power consumption sequence of the functional module to be compensated and the adjacent time windows of the adjacent functional modules is less than the preset threshold value, and all the corresponding functional modules are obtained and combined in parallel with the functional module to be compensated as the compensated functional modules.

[0095] This embodiment mainly adopts the superposition of flexible operation function modules in and / or outside the application scenario that meets the conditions and the function module to be compensated, and forms a parallel combination to compensate the power consumption of the function module to be compensated, so as to achieve the purpose of power consumption smoothing, wherein the flexible operation function module in the application scenario is preferentially adopted, if the application scenario does not include the flexible operation function module, or the flexible operation function module in the application scenario does not meet the conditions, then the flexible operation function module outside the application scenario is adopted. Among them, the flexible operation function module does not affect the data flow of the application scenario, and the length of the flexible operation function module used for power consumption compensation shall not exceed the function module to be compensated, so as to avoid the new power consumption non-smoothing caused by the extra time window power consumption data after superposition; at the same time, the power consumption of the function module to be compensated and the adopted flexible operation function module after superposition shall not exceed the limit threshold, wherein the limit threshold is the power consumption limit value corresponding to the mean value of the current fluctuation sensitivity generated when the reading device is close to the smart device, and specifically, the limit threshold is 1.2V*600uA=720uW. When the new power consumption sequence formed by superimposing the functional module to be compensated and the adopted flexible operation functional module is still greater than the preset threshold after subtracting the power consumption of the functional module with higher power consumption in the adjacent time windows of the initially found adjacent functional modules whose power consumption difference in adjacent time windows is greater than the preset threshold, and the difference between the two is less than 0, it means that the power consumption of the functional module to be compensated is still insufficient after superimposing with the adopted flexible operation functional module, then iteratively execute steps S72-S76 to find a new flexible operation functional module for further superposition. If no flexible operation functional module that meets the conditions can be found and further superposition cannot be performed, then consider adjusting the frequency of the adopted flexible operation functional module to complete the power consumption compensation. Among them, the frequency-adjusted flexible operation functional module obtained after adjusting the frequency of the adopted flexible operation functional module still needs to meet conditions C71 and C72. During implementation, since the functional module to be compensated has been superimposed with the flexible operation functional module, even if no flexible operation functional module can be found for further superposition and the frequency has to be adjusted, the frequency adjustment can only increase the frequency to increase the power consumption of the flexible operation functional module adopted, and will not cause the performance of the functional module to be compensated and the flexible operation functional module adopted after superposition to decrease. Moreover, since the frequency adjustment is a remedial measure, it will not be frequently used. The purpose of the fourth step is to obtain a parallel operation combination obtained by superimposing the functional module to be compensated with the flexible operation functional modules inside and / or outside the application scenario that meet the conditions, that is, to plan the operation order of the existing functional modules as much as possible to achieve power consumption smoothing. Compared with the prior art, the parallel combination of the functional module to be compensated and the flexible operation functional module adopted by applying the scheme of this embodiment still has better reliability and operation performance.

[0096] Finally, the fifth step: based on the parallel combination of the compensated functional modules and the functional module operation order, the final functional module operation order of the application scenario is obtained.

[0097] Specifically, based on the parallel combination of the compensated functional modules and the functional module operation order, the final functional module operation order of the application scenario is obtained through the following process, and the process specifically includes:

[0098] Based on the parallel combination of functional modules in the application scenario and the running order of the functional modules, the power consumption sequence of the functional modules after the application scenario is updated is obtained;

[0099] If there is an unused flexible operation function module in the application scenario, the flexible operation function module is spliced ​​with the function module power consumption sequence after the application scenario is updated, and it is determined whether there is an adjacent function module in the spliced ​​function module power consumption sequence whose adjacent time window power consumption difference is greater than a preset threshold.

[0100] If yes, then execute S71-S76 to obtain a parallel combination of functional modules, and then update the power consumption sequence of the spliced ​​functional modules based on the parallel combination of functional modules to obtain the power consumption sequence of the overall functional modules of the application scenario.

[0101] Otherwise, the concatenated functional module power consumption sequence is directly used as the overall functional module power consumption sequence of the application scenario;

[0102] If there is no unused flexible operation function module in the application scenario, the updated function module power consumption sequence is directly used as the overall function module power consumption sequence of the application scenario;

[0103] Determine whether the power consumption data of the time windows corresponding to the two end points of the power consumption sequence of the overall functional module of the application scenario exceeds a preset threshold,

[0104] If yes, find out the function modules that meet the conditions from the flexible operation function modules inside and outside the application scenario, and the condition refers to that the power consumption data of the found function module and the power consumption data of one end adjacent to the endpoint exceeding the power consumption threshold and the power consumption difference of the adjacent time window of the endpoint exceeding the preset threshold do not exceed the preset threshold, and the power consumption data of the other end does not exceed the preset threshold;

[0105] If no function module that meets the condition is found, find a function module that has the smallest power consumption difference in the adjacent time window with the endpoint that exceeds the preset threshold and has an adjustable frequency, and adjust the frequency to make the function module meet the condition;

[0106] The power consumption sequence of the flexible running functional module found is spliced ​​with one end of the corresponding power consumption sequence of the overall functional module of the application scenario to obtain the power consumption sequence of the final functional module of the application scenario; based on the power consumption sequence of the final functional module of the application scenario, the running order of the final functional module of the application scenario is obtained;

[0107] Otherwise, the final function module operation order of the application scenario is obtained based on the overall function module power consumption sequence of the application scenario.

[0108] Specifically, based on the parallel combination of functional modules in the application scenario obtained in the fourth step and the running order of the functional modules, the power consumption sequence of the functional modules after the application scenario is updated is obtained, and the verification and processing of the remaining two links need to be further completed in sequence:

[0109] First, if there are still unused flexible operation function modules in the application scenario, the power consumption sequence corresponding to the unused flexible operation function modules must be spliced ​​with the updated function module power consumption sequence of the application scenario, and the power consumption unevenness in the spliced ​​function module power consumption sequence is compensated by using steps S71-S76 to obtain the overall function module power consumption sequence of the application scenario, ensuring that all function modules related to the business application of the application scenario are included in the running order and executed;

[0110] Secondly, the two endpoints of the power consumption sequence of the overall functional modules of each application scenario are checked, that is, the power consumption data of the startup time window of the application scenario and the power consumption data of the termination time window of the application scenario do not exceed the preset threshold value, so as to ensure that the power consumption change of the application scenario presents a power consumption change that does not exceed the preset threshold value at the starting end and gradually increases smoothly from low to high, and gradually decreases smoothly from high to low to the preset threshold value at the end end, so as to make the overall power consumption of each application scenario smooth, and when the application scenarios are connected, they can be directly switched to run due to the power consumption smoothing, thereby ensuring the stability, reliability and overall performance of multiple application scenarios running in the chip. The processing method adopted is to find out the flexible operation function module whose power consumption difference with the endpoint time window of the power consumption sequence of the overall functional module of the application scenario does not exceed the preset threshold value, and the power consumption data of the other end time window of the flexible operation function module found does not exceed the preset threshold value, then the flexible operation function module found can be spliced ​​with the corresponding endpoint of the power consumption sequence of the overall functional module of the application scenario; if no flexible operation function module that meets the conditions can be found, then find out the flexible operation function module whose power consumption data of one end time window is closest to the power consumption data of the end time window of the power consumption sequence of the overall functional module of the application scenario, and then adjust the frequency of the flexible operation function module found as a remedial measure. Different from the frequency adjustment in the fourth step, the frequency adjustment in the fifth step may be achieved by reducing the frequency. Since the business application has not been started at the starting endpoint and the ending endpoint in the application scenario, even if the frequency is reduced, it will not affect the reliability and performance.

[0111] Figure 3 It is shown in Figure 2The final functional module operation order and power consumption sequence of the application scenario obtained by the processing of the solution of this embodiment is a schematic diagram of the final functional module operation order and power consumption sequence of the application scenario, wherein T1, T2, T3, T4, T5, and T6 are all functional module endpoints. Figure 2 , Figure 3 The running order of the functional modules in the implementation achieves smooth power consumption, and the starting and ending positions of the application scenarios are similar and have low power consumption; Figure 4 A schematic diagram of power consumption changes in the connection of multiple application scenarios obtained after processing in this embodiment is shown, wherein Ta, Tb, Tc, Td, and Te are all application scenario endpoints. It can be seen that not only the power consumption changes smoothly within each application scenario, but also the power consumption at the connection points between application scenarios is similar and lower.

[0112] This embodiment first obtains the functional modules and the running order of the functional modules included in the application scenario in the chip, and then, after simulating and running each application scenario, the power consumption data generated by sampling at a preset frequency and a preset step length are obtained to obtain the power consumption sequences of each time window of each functional module arranged in chronological order, and then the functional modules and power consumption sequences running in a fixed order of each application scenario are obtained based on the obtained power consumption sequences of each functional module, and the functional modules to be compensated with uneven power consumption are found, and then the flexible running functional modules inside and / or outside the application scenario that meet the requirements are found and superimposed with the corresponding parallel combination to obtain the corresponding parallel combination, and then the running order of the functional modules of the application scenario is updated based on the parallel combination to obtain the updated power consumption sequence of the functional modules, and the power consumption sequence of the flexible running functional modules not adopted in the application scenario is spliced ​​with the updated power consumption sequence of the functional modules, and the uneven power consumption is further compensated to obtain the overall power consumption sequence of the functional modules of the application scenario, and then both ends of the overall power consumption sequence of the functional modules of the application scenario are further processed to keep the endpoints not exceeding the preset threshold, and finally the final running order of the functional modules of the application scenario is obtained. Compared with the prior art, this embodiment does not need to add additional power consumption compensation circuits and modules, and uses flexible operating function modules inside and / or outside the application scenario in the chip to compensate for power consumption, so that the chip runs application scenario business applications with better reliability and performance, does not need to increase the chip area, reduces the complexity of the application scenario design in the chip, and improves the flexibility of chip design.

[0113] Embodiment 2:

[0114] Another specific embodiment of the present invention discloses a chip power consumption smoothing debugging system. This embodiment includes all the technical features of embodiment 1. The system includes a power consumption data acquisition module, a module to be compensated acquisition module, a compensation module, and an operation order acquisition module, wherein:

[0115] The power consumption data acquisition module is used to obtain the functional modules and the running order of the functional modules included in each application scenario of the chip; simulate and run each application scenario, and perform sliding window sampling on the power consumption of each functional module to obtain the power consumption data of each time window of each functional module arranged in chronological order;

[0116] The module to be compensated acquisition module is used to select the function modules running in a fixed order in each application scenario, arrange the power consumption data of the function modules running in the fixed order according to the running order, and form a function module power consumption sequence for each application scenario; find the adjacent function modules whose power consumption difference in adjacent time windows is greater than a preset threshold value from the function module power consumption sequence of each application scenario as the modules to be compensated;

[0117] The compensation module is used to use flexible operating function modules within and / or outside the application scenario to perform power consumption compensation on the function modules to be compensated to obtain a parallel combination of compensated function modules;

[0118] The operation order acquisition module obtains the final function module operation order of the application scenario based on the parallel combination of the compensated function modules and the function module operation order.

[0119] During implementation, a specific example of this embodiment is a debugging program, which inputs each functional module of each application scenario of the chip, and is processed in sequence by the power consumption data acquisition module, the module to be compensated acquisition module, the compensation module, and the operation order acquisition module, and finally outputs the final functional module operation order of each application scenario.

[0120] It should be noted that the specific example disclosed in this embodiment is only one of the many implementation methods of this embodiment, and is only used to assist in explaining the principles and system structure of this embodiment, and is not used to limit the implementation methods of this embodiment.

[0121] Embodiment 3:

[0122] The third specific embodiment of the present invention discloses an intelligent device with smooth running power consumption. This embodiment includes all the technical features of Example 2. The intelligent device includes a chip, wherein the chip stores the running order of application scenario function modules, and the running order of the application scenario function modules is obtained by executing a debugging method for smoothing power consumption of an intelligent device chip disclosed in Example 1.

[0123] The smart device disclosed in this embodiment, when implemented, can be a passive smart device, such as a smart card, or an active smart device with requirements for power consumption smoothing, such as a smart bracelet, a smart phone, a smart watch, a smart key, a smart ring, a smart necklace, etc.

[0124] Those skilled in the art will appreciate that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, wherein the computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.

[0125] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.

Claims

1. A chip power consumption smoothing debugging method, characterized in that: The method specifically comprises: Obtain the functional modules and the running order of the functional modules included in each application scenario of the chip; Simulate and run each application scenario, and perform sliding window sampling on the power consumption of each functional module to obtain a power consumption sequence of each time window of each functional module arranged in chronological order; Selecting function modules running in a fixed order in each application scenario, arranging the power consumption data of the function modules running in the fixed order according to the running order, and forming a power consumption sequence of the function modules in each application scenario; finding adjacent function modules whose power consumption difference in adjacent time windows is greater than a preset threshold from the power consumption sequence of the function modules in each application scenario, and taking the function module with lower power consumption among the adjacent function modules as the module to be compensated; Using flexible operating function modules within and / or outside the application scenario, performing power consumption compensation on the function modules to be compensated to obtain parallel combination of compensated function modules; The final function module operation order of the application scenario is obtained based on the parallel combination of the compensated function modules and the function module operation order.

2. A chip power consumption smoothing debugging method according to claim 1, characterized in that: The functional modules running in a fixed order refer to functional modules running in series or in parallel in a fixed order based on the data flow direction set in the application scenario.

3. A chip power consumption smoothing debugging method according to claim 2, characterized in that: The preset threshold is specifically the product of 1 / 3 of the maximum value of the chip operating current fluctuation and the operating voltage.

4. The chip power consumption smoothing debugging method according to claim 3 is characterized in that: The sliding window sampling of the power consumption of each functional module to obtain the power consumption sequences of each time window of each functional module arranged in time order specifically includes: The power consumption is sampled at a preset frequency, and the sampled power consumption data is windowed with a preset window length to obtain the average power consumption of each window; Based on the average power consumption values ​​of each window, a power consumption sequence of each time window of each functional module arranged in chronological order is obtained.

5. A chip power consumption smoothing debugging method according to claim 4, characterized in that: The preset frequency is specifically 1 GHz.

6. A chip power consumption smoothing debugging method according to claim 5, characterized in that: The preset window length is specifically 1 us.

7. A chip power consumption smoothing debugging method according to claim 6, characterized in that: The power consumption of the functional modules to be compensated is compensated by performing power consumption compensation on the functional modules to be compensated to obtain a parallel combination of the functional modules after compensation, and the steps specifically include: S71: Find the flexible operation function module and the corresponding power consumption sequence in the current application scenario. If there is no available flexible operation function module in the current application scenario, find the flexible operation function module outside the current application scenario, and then exclude the flexible operation function module whose power consumption sequence length exceeds that of the function module to be compensated; S72: Align the remaining power consumption sequences of the flexible operation function modules with the endpoints of the power consumption sequence of the function module to be compensated one by one and superimpose them in sequence according to the time window to obtain each superimposed power consumption sequence; S73: Determine whether there is a superimposed power consumption sequence and a corresponding functional module that simultaneously satisfies the following conditions. If yes, combine the corresponding functional module and the functional module to be compensated in parallel as the compensated functional module. The conditions include: C71: The corresponding superimposed power consumption sequence does not exceed the limit threshold; C72: The absolute value of the power consumption difference between the corresponding superimposed power consumption sequence and the adjacent time window power consumption of the adjacent functional module does not exceed the preset threshold; S74: Otherwise, find out from each superimposed power consumption sequence the superimposed power consumption sequence and the corresponding functional module that meets the condition C1 and has a power consumption difference in the adjacent time window with the adjacent functional module that is less than 0 and an absolute value that exceeds the preset threshold; S75: Determine whether there is a function module that completes power consumption compensation by adjusting frequency in the corresponding function module, and if so, combine the corresponding function module and the function module to be compensated in parallel as a compensated function module; S76: Otherwise, the superimposed power consumption sequence is used as the power consumption sequence of the functional module to be compensated, and the process returns to iteratively execute S72-S76 until the absolute value of the power consumption difference between the power consumption sequence of the functional module to be compensated and the adjacent time windows of the adjacent functional modules is less than the preset threshold value, and all the corresponding functional modules are obtained and combined in parallel with the functional module to be compensated as the compensated functional modules.

8. The chip power consumption smoothing debugging method according to claim 7, characterized in that: Based on the parallel combination of the compensated functional modules and the functional module operation order, the final functional module operation order of the application scenario is obtained through the following process, and the process specifically includes: Based on the parallel combination of functional modules in the application scenario and the running order of the functional modules, the power consumption sequence of the functional modules after the application scenario is updated is obtained; If there is an unused flexible operation function module in the application scenario, the flexible operation function module is spliced ​​with the function module power consumption sequence after the application scenario is updated, and it is determined whether there is an adjacent function module in the spliced ​​function module power consumption sequence whose adjacent time window power consumption difference is greater than a preset threshold. If yes, then execute S71-S76 to obtain a parallel combination of functional modules, and then update the power consumption sequence of the spliced ​​functional modules based on the parallel combination of functional modules to obtain the power consumption sequence of the overall functional modules of the application scenario. Otherwise, the concatenated functional module power consumption sequence is directly used as the overall functional module power consumption sequence of the application scenario; If there is no unused flexible operation function module in the application scenario, the updated function module power consumption sequence is directly used as the overall function module power consumption sequence of the application scenario; Determine whether the power consumption data of the time windows corresponding to the two end points of the power consumption sequence of the overall functional module of the application scenario exceeds a preset threshold, If yes, find out the function modules that meet the conditions from the flexible operation function modules inside and outside the application scenario, and the condition refers to that the power consumption data of the found function module and the power consumption data of one end adjacent to the endpoint exceeding the power consumption threshold and the power consumption difference of the adjacent time window of the endpoint exceeding the preset threshold do not exceed the preset threshold, and the power consumption data of the other end does not exceed the preset threshold; If no function module that meets the condition is found, find a function module that has the smallest power consumption difference in the adjacent time window with the endpoint that exceeds the preset threshold and has an adjustable frequency, and adjust the frequency to make the function module meet the condition; The power consumption sequence of the flexible running functional module found is spliced ​​with one end of the corresponding power consumption sequence of the overall functional module of the application scenario to obtain the power consumption sequence of the final functional module of the application scenario; based on the power consumption sequence of the final functional module of the application scenario, the running order of the final functional module of the application scenario is obtained; Otherwise, the final function module operation order of the application scenario is obtained based on the overall function module power consumption sequence of the application scenario.

9. A chip power consumption smoothing debugging system, characterized in that: The system includes a power consumption data acquisition module, a module to be compensated acquisition module, a compensation module, and an operation sequence acquisition module, wherein: The power consumption data acquisition module is used to obtain the functional modules and the running order of the functional modules included in each application scenario of the chip; simulate and run each application scenario, and perform sliding window sampling on the power consumption of each functional module to obtain the power consumption data of each time window of each functional module arranged in chronological order; The module to be compensated acquisition module is used to select the function modules running in a fixed order in each application scenario, arrange the power consumption data of the function modules running in the fixed order according to the running order, and form a function module power consumption sequence for each application scenario; find the adjacent function modules whose power consumption difference in adjacent time windows is greater than a preset threshold value from the function module power consumption sequence of each application scenario as the modules to be compensated; The compensation module is used to use flexible operating function modules within and / or outside the application scenario to perform power consumption compensation on the function modules to be compensated to obtain a parallel combination of compensated function modules; The operation order acquisition module obtains the final function module operation order of the application scenario based on the parallel combination of the compensated function modules and the function module operation order.

10. An intelligent device with smooth running power consumption, characterized in that: The smart device includes a chip, wherein the chip stores an operation order of application scenario function modules, and the operation order of the application scenario function modules is obtained by executing a chip power consumption smoothing debugging method according to any one of claims 1-8.

Citation Information

Cited By

  • Chip screening and grouping method and chip screening system

    CN121035023A