Computing power adjustment circuit and method, and control module and computing device using the same
By using a computing power lookup table and a frequency calculation and comparison unit in the computing power adjustment circuit, the operating clock is adjusted according to the chip's computing power level, thus solving the problem of chip computing power control, improving performance, and reducing power consumption.
Patent Information
- Application Number
- CN202211372924.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-31
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2042-10-31
AI Technical Summary
How to provide a computing power adjustment circuit that can adjust and control the working clock according to the chip's computing power level, so that the chip's maximum working clock is limited within the computing power level, thereby improving the performance of the computing device and reducing power consumption.
A computing power adjustment circuit is adopted, including a computing power lookup table, a frequency calculation and comparison unit, a configuration signal generation unit, and a parameter update unit. The frequency threshold is obtained through the lookup table, the frequency values are calculated and compared, a configuration signal is generated, and the PLL and frequency divider parameters are updated to ensure that the working clock is within the computing power range.
It enables the adjustment of computing power according to different working scenarios, thereby improving the performance of computing devices and reducing power consumption.
Smart Images

Figure CN115756083B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a computing power adjustment circuit, and more particularly to a computing power adjustment circuit capable of adjusting computing power according to different working scenarios, a control module using the circuit, and a computing device. Background Technology
[0002] As chip technology advances, chips are becoming increasingly larger and their clock structures more complex. Chip operating clocks need to adapt to different operating scenarios and power consumption and performance requirements; therefore, frequency adjustments are necessary based on specific circumstances during operation.
[0003] Many chip manufacturers release different models of the same chip to suit various application scenarios. These different chip models will have differences in performance, internal characteristics, and external interfaces. The advantage of this approach is that chips within the same series have identical SoC design and manufacturing processes, reducing development and maintenance workload. Currently, a common solution is to create high, medium, and low-end chips through packaging and firmware programming, meeting the diverse performance, power consumption, and price requirements of different users.
[0004] The computing power of a chip is directly proportional to its operating clock. For scenarios that do not require high computing power, the operating clock frequency can be reduced. At the same time, the chip's operating voltage can be reduced through a dynamic voltage frequency adjustment (DVFS) scheme, further reducing the chip's power consumption.
[0005] Therefore, how to provide a computing power adjustment circuit that adjusts and controls the working clock according to the chip's computing power level, so that the chip's maximum working clock is limited within the computing power level, is a problem that needs to be solved. Summary of the Invention
[0006] To address the aforementioned problems, this invention provides a computing power adjustment circuit and a control module and computing device using the same. The circuit can adjust and control the operating clock according to the chip's computing power level, limiting the chip's maximum operating clock within the computing power level, thereby improving the performance of the computing device and reducing power consumption.
[0007] To achieve the above objectives, the present invention provides a computing power adjustment circuit applied to at least one computing chip, comprising: a computing power lookup table for outputting a frequency threshold according to the computing power level of the computing chip; a frequency calculation and comparison unit for obtaining a comparison completion indication signal and a comparison result indication signal according to the frequency threshold, a PLL configuration parameter, and a frequency divider configuration parameter; a configuration signal generation unit for outputting a PLL configuration signal and a frequency divider configuration signal according to the comparison completion indication signal, a PLL configuration update request signal, and a frequency divider configuration update request signal; and a parameter update unit for outputting an PLL configuration update indication signal and a frequency divider configuration update indication signal according to the PLL configuration signal, the frequency divider configuration signal, and the comparison result indication signal.
[0008] The aforementioned computing power adjustment circuit, wherein the frequency calculation and comparison unit further includes:
[0009] A frequency calculation unit is used to calculate a first value and a second value based on the frequency threshold, a PLL configuration parameter and a frequency divider configuration parameter.
[0010] A comparison unit is used to compare the first value and the second value to obtain the comparison completion indication signal and the comparison result indication signal;
[0011] When the second value is less than or equal to the first value, the update PLL configuration indication signal and / or the update divider configuration indication signal are enabled.
[0012] In the aforementioned computing power adjustment circuit, when the second value is less than or equal to the first value, the parameter update unit is further configured to transmit the PLL configuration parameters and the frequency divider configuration parameters to the computing chip.
[0013] In the aforementioned computing power adjustment circuit, the frequency calculation unit includes a first value calculation unit and a second value calculation unit; the first value calculation unit is used to calculate the first value based on the PLL configuration parameters, the frequency divider configuration parameters, and the frequency threshold; the second value calculation unit is used to calculate the second value based on the PLL configuration parameters and a reference frequency.
[0014] The aforementioned computing power adjustment circuit includes PLL configuration parameters such as feedback frequency division parameters, reference frequency division parameters, and output frequency division parameters. The first value is equal to the frequency threshold * the reference frequency division parameter * the output frequency division parameter * the frequency divider configuration parameter; the second value is equal to the reference frequency * the feedback frequency division parameter.
[0015] The aforementioned computing power adjustment circuit includes a configuration signal generation unit comprising a first configuration signal generation unit and a second configuration signal generation unit; the first configuration signal generation unit is configured to output the PLL configuration signal according to the update PLL configuration request signal and the comparison completion indication signal; the second configuration signal generation unit is configured to output the frequency divider configuration signal according to the update divider configuration request signal and the comparison completion indication signal.
[0016] In the aforementioned computing power adjustment circuit, the first configuration signal generation unit and the second configuration signal generation unit each have a first terminal, a second terminal, and a third terminal; the first terminal of the first configuration signal generation unit is electrically connected to the update PLL configuration request signal, the second terminal of the first configuration signal generation unit is electrically connected to the comparison completion indication signal, and the third terminal of the first configuration signal generation unit is electrically connected to the PLL configuration signal; the first terminal of the second configuration signal generation unit is electrically connected to the update divider configuration request signal, the second terminal of the second configuration signal generation unit is electrically connected to the comparison completion indication signal, and the third terminal of the second configuration signal generation unit is electrically connected to the divider configuration signal.
[0017] In the aforementioned computing power adjustment circuit, the first configuration signal generation unit includes a first OR gate, a first inverter, a first AND gate, and a first flip-flop; the first OR gate has a first terminal, a second terminal, and a third terminal, and the first terminal of the first OR gate is electrically connected to the update PLL configuration request signal; the first inverter has a first terminal and a second terminal, and the first terminal of the first inverter is electrically connected to the comparison completion indication signal; the first AND gate has a first terminal, a second terminal, and a third terminal, and the first terminal of the first AND gate is electrically connected to the second terminal of the first inverter, and the second terminal of the first AND gate is electrically connected to the third terminal of the first OR gate; the first flip-flop has a first terminal, a second terminal, and a third terminal, the first terminal of the first flip-flop is electrically connected to the third terminal of the first AND gate, the second terminal of the first flip-flop is electrically connected to a clock signal, and the third terminal of the first flip-flop is electrically connected to the second terminal of the first OR gate and the PLL configuration signal.
[0018] In the aforementioned computing power adjustment circuit, the second configuration signal generation unit includes a second OR gate, a second inverter, a second AND gate, and a second flip-flop; the second OR gate has a first terminal, a second terminal, and a third terminal, and the first terminal of the second OR gate is electrically connected to the update divider configuration request signal; the second inverter has a first terminal and a second terminal, and the first terminal of the second inverter is electrically connected to the comparison completion indication signal; the second AND gate has a first terminal, a second terminal, and a third terminal, and the first terminal of the second AND gate is electrically connected to the second terminal of the second inverter, and the second terminal of the second AND gate is electrically connected to the third terminal of the second OR gate; the second flip-flop has a first terminal, a second terminal, and a third terminal, the first terminal of the second flip-flop is electrically connected to the third terminal of the second AND gate, the second terminal of the second flip-flop is electrically connected to a clock signal, and the third terminal of the second flip-flop is electrically connected to the second terminal of the second OR gate and the divider configuration signal.
[0019] The computing power adjustment circuit described above includes a parameter update unit comprising a first parameter update unit and a second parameter update unit; the first parameter update unit is configured to output an updated PLL configuration indication signal based on the PLL configuration signal and the comparison result indication signal; the second parameter update unit is configured to output an updated frequency divider configuration indication signal based on the frequency divider configuration signal and the comparison result indication signal.
[0020] In the aforementioned computing power adjustment circuit, the first parameter update unit includes a third AND gate, a third flip-flop, and a fourth flip-flop. The third AND gate has a first terminal, a second terminal, and a third terminal. The first terminal of the third AND gate is electrically connected to the comparison result indication signal, and the second terminal of the third AND gate is electrically connected to the PLL configuration signal. The third flip-flop has a first terminal, a second terminal, a third terminal, and a control terminal. The first terminal of the third flip-flop is electrically connected to the PLL configuration parameters, the second terminal of the third flip-flop is electrically connected to a clock signal, and the control terminal of the third flip-flop is electrically connected to the third terminal of the third AND gate. The third terminal of the third flip-flop is used to output the PLL configuration parameters. The fourth flip-flop has a first terminal, a second terminal, and a third terminal. The first terminal of the fourth flip-flop is electrically connected to the third terminal of the third AND gate, the second terminal of the fourth flip-flop is electrically connected to a clock signal, and the third terminal of the fourth flip-flop is electrically connected to the updated PLL configuration indication signal.
[0021] In the aforementioned computing power adjustment circuit, the second parameter update unit includes a fourth AND gate, a fifth flip-flop, and a sixth flip-flop. The fourth AND gate has a first terminal, a second terminal, and a third terminal. The first terminal of the fourth AND gate is electrically connected to the comparison result indication signal, and the second terminal of the fourth AND gate is electrically connected to the frequency divider configuration signal. The fifth flip-flop has a first terminal, a second terminal, a third terminal, and a control terminal. The first terminal of the fifth flip-flop is electrically connected to the frequency divider configuration parameters, the second terminal of the fifth flip-flop is electrically connected to a clock signal, and the control terminal of the fifth flip-flop is electrically connected to the third terminal of the fourth AND gate. The third terminal of the fifth flip-flop is used to output the frequency divider configuration parameters. The sixth flip-flop has a first terminal, a second terminal, and a third terminal. The first terminal of the sixth flip-flop is electrically connected to the third terminal of the fourth AND gate, the second terminal of the sixth flip-flop is electrically connected to a clock signal, and the third terminal of the sixth flip-flop is electrically connected to the updated frequency divider configuration indication signal.
[0022] The computing power adjustment circuit described above includes a computing power lookup table comprising multiple computing power levels and multiple frequency thresholds, with each computing power level corresponding to a frequency threshold.
[0023] In the aforementioned computing power adjustment circuit, the computing power lookup table is stored in a one-time programmable memory unit.
[0024] In the aforementioned computing power adjustment circuit, the one-time programmable storage unit is disposed in the computing chip.
[0025] To better achieve the above objectives, the present invention also provides a control module, which includes at least one computing power adjustment circuit as described above.
[0026] To better achieve the above objectives, the present invention also provides a computing device, which includes at least one control module as described above and the computing chip.
[0027] To better achieve the above objectives, the present invention also provides a method for adjusting computing power, applied to at least one computing chip, comprising: obtaining a frequency threshold and outputting a frequency threshold according to the computing power level of the computing chip; calculating and comparing frequencies, obtaining a comparison completion indication signal and a comparison result indication signal according to the frequency threshold, a PLL configuration parameter, and a frequency divider configuration parameter; generating configuration signals, outputting a PLL configuration signal and a frequency divider configuration signal according to the comparison completion indication signal, a PLL configuration update request signal, and a frequency divider configuration update request signal; and updating parameters, outputting an update PLL configuration indication signal and an update frequency divider configuration indication signal according to the PLL configuration signal, the frequency divider configuration signal, and the comparison result indication signal.
[0028] The present invention will be described in detail below with reference to the accompanying drawings and specific embodiments, but this is not intended to limit the present invention. Attached Figure Description
[0029] Figure 1 This is a schematic diagram of the circuit structure of a computing power adjustment circuit according to an embodiment of the present invention.
[0030] Figure 2 This is a schematic diagram of the circuit structure of a frequency calculation and comparison unit according to an embodiment of the present invention.
[0031] Figure 3 This is a schematic diagram of the circuit structure of the signal generation unit according to an embodiment of the present invention.
[0032] Figure 4 This is a schematic diagram of the circuit structure of a parameter update unit according to an embodiment of the present invention.
[0033] Figure 5 This is a flowchart illustrating a computing power adjustment method according to an embodiment of the present invention.
[0034] Explanation of reference numerals in the attached figures:
[0035] 100: Computing power adjustment circuit;
[0036] 101: Computing power lookup table;
[0037] 102: Frequency calculation and comparison unit;
[0038] 1021: First numerical calculation unit;
[0039] 1022: Second numerical calculation unit;
[0040] 103: Comparison Unit;
[0041] 104: Configure the signal generation unit;
[0042] 1041: First configuration signal generation unit;
[0043] 1042: Second configuration signal generation unit;
[0044] 105: Parameter update unit;
[0045] 1051: First parameter update unit;
[0046] 1052: Second parameter update unit. Detailed Implementation
[0047] The structural and working principles of the present invention will be described in detail below with reference to the accompanying drawings:
[0048] Certain terms are used in the specification and subsequent claims to refer to specific components. It will be understood by those skilled in the art that manufacturers may use different names to refer to the same component. This specification and subsequent claims do not distinguish components by differences in name, but rather by differences in function.
[0049] Throughout this specification and in the following claims, the terms "comprising" and "including" are open-ended and should be interpreted as "comprising but not limited to". Furthermore, the term "connection" here includes any direct and indirect electrical connection means. Indirect electrical connection means include connections made through other means.
[0050] Figure 1 This is a schematic diagram of the computing power adjustment circuit according to an embodiment of the present invention. Figure 1 As shown, the computing power adjustment circuit 100 of the present invention can be applied to at least one computing chip (not shown in the figure), including a computing power lookup table 101, a frequency calculation and comparison unit 102, a configuration signal generation unit 104, and a parameter update unit 105. The computing power lookup table 101 is used to output a frequency threshold LEVEL according to the computing power level ai_level of the computing chip; the frequency calculation and comparison unit 102 is used to obtain a comparison completion indication signal comp_done and a comparison result indication signal comp_pass according to the frequency threshold LEVEL, the PLL configuration parameter PLL, and the divider configuration parameter DIV; the configuration signal generation unit 104 is used to output a PLL configuration signal pll_cfg and a divider configuration signal div_cfg according to the comparison completion indication signal comp_done, the PLL configuration update request signal pll_cfg_req, and the divider configuration update request signal div_cfg_req; the parameter update unit 105... It is used to output and update the PLL configuration indicator signal PLL_update and the frequency divider configuration indicator signal DIV_update based on the PLL configuration signal pll_cfg, the frequency divider configuration signal div_cfg, and the comparison result indicator signal comp_pass. In one embodiment, the frequency calculation and comparison unit 102 can calculate a first value comp1 and a second value comp2. When the second value comp2 is less than or equal to the first value comp1, it enables the PLL configuration indicator signal PLL_update and / or the frequency divider configuration indicator signal DIV_update to be updated, which is used to instruct the arithmetic chip to reconfigure the PLL configuration parameter PLL and the frequency divider configuration parameter DIV.
[0051] Figure 2 This is a schematic diagram of the circuit structure of a frequency calculation and comparison unit according to an embodiment of the present invention. (In conjunction with...) Figure 1 , Figure 2 As shown, the frequency calculation and comparison unit 102 includes a first numerical calculation unit 1021, a second numerical calculation unit 1022, and a comparison unit 103. The first numerical calculation unit 1021 and the second numerical calculation unit 1022 together constitute the frequency calculation unit, which is used to perform calculations based on the input configuration parameters.
[0052] like Figure 2 As shown, the first numerical calculation unit 1021 is used to calculate the first value comp1 based on the PLL configuration parameter PLL, the frequency divider configuration parameter DIV, and the frequency threshold LEVEL; the second numerical calculation unit 1022 is used to calculate the first value comp1 based on the PLL configuration parameter PLL and a reference frequency Fref.
[0053] The second value, comp2, is calculated. In this invention, the PLL configuration parameters PLL include the feedback divider parameter NF, the reference divider parameter NR, and the output divider parameter OD. The calculation methods for the first value comp1 and the second value comp2 are as follows:
[0054] comp1 = LEVEL*NR*OD*DIV;
[0055] comp2 = Fref * NF.
[0056] Normally, the operating clock frequency of the computing chip should be less than a specified value, such as the frequency threshold LEVEL. If comp2 is less than or equal to comp1, it means that the PLL configuration and / or frequency divider configuration meet the computing power requirements of the computing chip and can be configured. Otherwise, no configuration is required.
[0057] In this invention, the first numerical calculation unit and the second numerical calculation unit can be implemented using multipliers.
[0058] The comparison unit 103 is used to compare the first value comp1 and the second value comp2, and output the comparison completion indication signal comp_done and the comparison result indication signal comp_pass according to the comparison result.
[0059] Figure 3 This is a schematic diagram of the circuit structure of a signal generation unit according to an embodiment of the present invention. Figures 1-3As shown, the configuration signal generation unit 104 includes a first configuration signal generation unit 1041 and a second configuration signal generation unit 1042. The first configuration signal generation unit 1041 is used to output a PLL configuration signal pll_cfg according to the update PLL configuration request signal pll_cfg_req and the comparison completion indication signal comp_done; the second configuration signal generation unit 1042 is used to output a divider configuration signal div_cfg according to the update divider configuration request signal div_cfg_req and the comparison completion indication signal comp_done.
[0060] The first configuration signal generation unit 1041 includes a first OR gate OR1, a first inverter INV1, a first AND gate AND1, and a first flip-flop DFF1. The first input of the first OR gate OR1 is electrically connected to the update PLL configuration request signal pll_cfg_req; the first input of the first inverter INV1 is electrically connected to the comparison completion indication signal comp_done; the first input of the first AND gate AND1 is electrically connected to the second output of the first inverter INV1, and the second input of the first AND gate AND1 is electrically connected to the third output of the first OR gate OR1; the first D input of the first flip-flop DFF1 is electrically connected to the third output of the first AND gate AND1, the second CLK input of the first flip-flop DFF1 is electrically connected to the system clock signal clk, and the third Q input of the first OR gate DFF1 is electrically connected to the second input of the first OR gate OR1 and is used to output the PLL configuration signal pll_cfg.
[0061] The second configuration signal generation unit 1042 includes a second OR gate OR2, a second inverter INV2, a second AND gate AND2, and a second flip-flop DFF2. The first input of the second OR gate OR2 is electrically connected to the update divider configuration request signal div_cfg_req; the first input of the second inverter INV2 is electrically connected to the comparison completion indication signal comp_done; the first input of the second AND gate AND2 is electrically connected to the second output of the second inverter INV2, and the second input of the second AND gate AND2 is electrically connected to the third output of the second OR gate OR2; the first D input of the second flip-flop DFF2 is electrically connected to the third output of the second AND gate AND2, the second CLK input of the second flip-flop DFF2 is electrically connected to the system clock signal clk, and the third Q input of the second OR gate DFF2 is electrically connected to the second input of the second OR gate OR2 and to output the divider configuration signal div_cfg.
[0062] Figure 4This is a schematic diagram of the circuit structure of a parameter update unit according to an embodiment of the present invention. Figures 1-4 As shown, the parameter update unit 105 includes a first parameter update unit 1051 and a second parameter update unit 1052. The first parameter update unit 1051 is used to update the PLL configuration indication signal PLL_update according to the PLL configuration signal pll_cfg and the comparison result indication signal comp_pass; the second parameter update unit 1052 is used to update the divider configuration indication signal DIV_update according to the divider configuration signal div_cfg and the comparison result indication signal comp_pass.
[0063] The first parameter update unit 1051 includes a third AND gate (AND3), a third flip-flop (DFF3), and a fourth flip-flop (DFF4). The first input of the third AND gate (AND3) is electrically connected to the comparison result indication signal `comp_pass`, and the second input is electrically connected to the PLL configuration signal `pll_cfg`. The first input (D) of the third flip-flop (DFF3) is electrically connected to the PLL configuration parameter `PLL`, the second input (CLK) is electrically connected to the system clock signal `clk`, the control input (EN) is electrically connected to the third output of the third AND gate (AND3), and the third output is used to output the PLL configuration parameter `PLL_out`. The first output (D) of the fourth flip-flop (DFF4) is electrically connected to the third output of the third AND gate (AND3), the second input (CLK) is electrically connected to the system clock signal `clk`, and the third output is used to output the PLL configuration update indication signal `PLL_update`.
[0064] The second parameter update unit 1052 includes a fourth AND gate (AND4), a fifth flip-flop (DFF5), and a sixth flip-flop (DFF6). The first input of the fourth AND gate (AND4) is electrically connected to the comparison result indication signal `comp_pass`, and the second input is electrically connected to the divider configuration signal `div_cfg`. The first input (D) of the fifth flip-flop (DFF5) is electrically connected to the divider configuration parameter `DIV`, and the second input (CLK) is electrically connected to the system clock signal `clk`. The control input (EN) of the fifth flip-flop (DFF5) is electrically connected to the third output of the fourth AND gate (AND4), and the third output is used to output the divider configuration parameter `DIV_out`. The first input (D) of the sixth flip-flop (DFF6) is electrically connected to the third output of the fourth AND gate (AND4), and the second input (CLK) is electrically connected to the system clock signal `clk`. The third output is used to output the divider configuration update indication signal `DIV_update`.
[0065] Furthermore, in this invention, the computing power lookup table 101 includes multiple computing power levels (ai_level) and multiple frequency thresholds (LEVEL), with each computing power level (ai_level) corresponding to a frequency threshold (LEVEL). The computing power lookup table is stored in a one-time programmable memory unit. Similarly, the computing power level (ai_level) can be derived from the chip's one-time programmable memory (otp, efuse), and can never be changed after being written once at the factory. The specific frequency threshold (LEVEL) corresponding to the computing power level (ai_level) can be obtained through the chip's internal lookup table. The one-time programmable memory unit or one-time programmable memory can be located within the computing chip or independently outside the computing chip; this invention is not limited to this.
[0066] Figure 5 This is a flowchart illustrating a computing power adjustment method according to an embodiment of the present invention. (In conjunction with...) Figure 1 , Figure 5 As shown, the computing power adjustment method 200 of the present invention is applied to at least one computing chip (not shown in the figure), and includes the following steps:
[0067] S201: Obtain the frequency threshold LEVEL and output a frequency threshold LEVEL according to the computing power level ai_level of the computing chip;
[0068] S202: Frequency calculation and comparison: Calculate a first value comp1 and a second value comp2 based on the frequency threshold LEVEL, a PLL configuration parameter PLL, and a divider configuration parameter DIV. Compare the first value comp1 and the second value comp2 and output a comparison completion indication signal comp_done and a comparison result indication signal comp_pass.
[0069] S203: Generate configuration signals, and output a PLL configuration signal pll_cfg and a divider configuration signal div_cfg based on the comparison completion indication signal comp_done, a PLL configuration update request signal pll_cfg_req and a divider configuration request signal div_cfg_req.
[0070] S204: Parameter update, based on the PLL configuration signal pll_cfg, the frequency divider configuration signal div_cfg and the comparison result indication signal comp_pass, output an update PLL configuration indication signal PLL_update and an update frequency divider configuration indication signal DIV_update;
[0071] In one embodiment, the frequency calculation and comparison unit 102 can calculate a first value comp1 and a second value comp2. When the second value comp2 is less than or equal to the first value comp1, the update PLL configuration indication signal PLL_update and / or the update divider configuration indication signal DIV_update are enabled.
[0072] Working principle:
[0073] Typically, the relationship between the clock frequency generated by the phase-locked loop (PLL) in a computing chip and the input parameters is as follows:
[0074] PLL_Fout = Fref * NF / NR / OD.
[0075] PLL_Fout is the clock frequency output by the PLL, Fref is the reference frequency, NF is the feedback divider parameter, NR is the reference divider parameter, and OD is the output divider parameter.
[0076] The operating clock of the computing chip is generated by frequency division by a PLL. The operating clock frequency of the computing chip is Fai_clk = Fout / DIV, where DIV is the frequency division parameter of the frequency divider.
[0077] The computing power control requires that the operating clock frequency of the computing chip be less than a specified value, that is, the frequency threshold LEVEL: Fai_clk <= LEVEL.
[0078] Therefore, we can obtain: Fref * NF <= NR * OD * DIV * LEVEL.
[0079] In the computing power adjustment circuit, if there is a PLL configuration update request signal pll_cfg_req, the PLL configuration signal pll_cfg will be pulled high, indicating that PLL configuration is being processed. This continues until the comparison completion indicator signal comp_done of the comparison unit goes high, at which point the PLL configuration signal pll_cfg is pulled low to "0". The comparison result indicator signal comp_pass is generated based on the comparison of the first value comp1 and the second value comp2. If it is "1", it means that the PLL configuration meets the computing power requirements, and the PLL configuration update indicator signal PLL_update will be output to indicate that the computing chip can configure the PLL with new parameters. The input PLL configuration parameters are latched and then output. If the comparison result indicator signal comp_pass is "0", it means that the PLL configuration does not meet the computing power requirements, and the PLL configuration update indicator signal PLL_update remains "0", and the PLL retains its original configuration parameters.
[0080] Similarly, if the computing chip has a clock update divider configuration request signal `div_cfg_req`, the divider configuration signal `div_cfg` will be pulled high, indicating that divider configuration is being processed. This continues until the comparison completion indicator signal `comp_done` from the comparison unit goes high, at which point `div_cfg` is pulled low to 0. The comparison result indicator signal `comp_pass` is generated based on the comparison of the first value `comp1` and the second value `comp2`. A value of "1" indicates that the PLL configuration meets the computing power requirements. A divider configuration update indicator signal `DIV_update` is output to indicate that the computing chip can configure the divider with new parameters. The input divider configuration parameters are latched and then output. If the comparison result indicator signal `comp_pass` is "0", it means the divider configuration does not meet the computing power requirements. `DIV_update` remains "0", and the divider retains its original configuration parameters.
[0081] To better achieve the above objectives, the present invention also provides a control module, which includes at least one computing power adjustment circuit as described above.
[0082] To better achieve the above objectives, the present invention also provides a computing device, which includes any of the control modules described above.
[0083] It should be noted that in the description of this invention, the terms "lateral", "longitudinal", "up", "down", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", and "outer" indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this invention.
[0084] In other words, the present invention may have many other embodiments. Without departing from the spirit and essence of the present invention, those skilled in the art can make various corresponding changes and modifications according to the present invention, but these corresponding changes and modifications should all fall within the protection scope of the appended claims.
Claims
1. A computing power adjustment circuit, applied to at least one computing chip, characterized in that, include: A computing power lookup table is used to output a frequency threshold based on the computing power level of the computing chip; A frequency calculation and comparison unit is used to obtain a comparison completion indication signal and a comparison result indication signal based on the frequency threshold, a PLL configuration parameter and a frequency divider configuration parameter. A configuration signal generation unit is used to output a PLL configuration signal and a frequency divider configuration signal according to the comparison completion indication signal, a PLL configuration update request signal and a frequency divider configuration update request signal. A parameter update unit is configured to output an updated PLL configuration indication signal and an updated frequency divider configuration indication signal based on the PLL configuration signal, the frequency divider configuration signal, and the comparison result indication signal.
2. The computing power adjustment circuit as described in claim 1, characterized in that: The frequency calculation and comparison unit further includes: A frequency calculation unit is used to calculate a first value and a second value based on the frequency threshold, a PLL configuration parameter and a frequency divider configuration parameter. A comparison unit is used to compare the first value and the second value to obtain the comparison completion indication signal and the comparison result indication signal; When the second value is less than or equal to the first value, the update PLL configuration indication signal and / or the update divider configuration indication signal are enabled.
3. The computing power adjustment circuit as described in claim 2, characterized in that: When the second value is less than or equal to the first value, the parameter update unit is also used to transmit the PLL configuration parameters and the frequency divider configuration parameters to the computing chip.
4. The computing power adjustment circuit as described in claim 2, characterized in that: The frequency calculation unit includes a first numerical calculation unit and a second numerical calculation unit; The first numerical calculation unit is used to calculate the first numerical value based on the PLL configuration parameters, the frequency divider configuration parameters, and the frequency threshold. The second numerical calculation unit is used to calculate the second value based on the PLL configuration parameters and a reference frequency.
5. The computing power adjustment circuit as described in claim 4, characterized in that: The PLL configuration parameters include feedback frequency division parameters, reference frequency division parameters, and output frequency division parameters, wherein, The first value = the frequency threshold * the reference frequency division parameter * the output frequency division parameter * the frequency divider configuration parameter; The second value = the reference frequency * the feedback frequency division parameter.
6. The computing power adjustment circuit as described in claim 1, characterized in that: The configuration signal generation unit includes a first configuration signal generation unit and a second configuration signal generation unit; The first configuration signal generation unit is used to output the PLL configuration signal according to the update PLL configuration request signal and the comparison completion indication signal; The second configuration signal generation unit is used to output the frequency divider configuration signal according to the update divider configuration request signal and the comparison completion indication signal.
7. The computing power adjustment circuit as described in claim 6, characterized in that: The first configuration signal generating unit and the second configuration signal generating unit each have a first terminal, a second terminal and a third terminal; The first terminal of the first configuration signal generating unit is electrically connected to the update PLL configuration request signal, the second terminal of the first configuration signal generating unit is electrically connected to the comparison completion indication signal, and the third terminal of the first configuration signal generating unit is electrically connected to the PLL configuration signal. The first terminal of the second configuration signal generation unit is electrically connected to the update divider configuration request signal, the second terminal of the second configuration signal generation unit is electrically connected to the comparison completion indication signal, and the third terminal of the second configuration signal generation unit is electrically connected to the divider configuration signal.
8. The computing power adjustment circuit as described in claim 7, characterized in that: The first configuration signal generation unit includes a first OR gate, a first inverter, a first AND gate, and a first flip-flop; The first OR gate has a first terminal, a second terminal and a third terminal, and the first terminal of the first OR gate is electrically connected to the update PLL configuration request signal. The first inverter has a first terminal and a second terminal, and the first terminal of the first inverter is electrically connected to the comparison completion indication signal; The first AND gate has a first terminal, a second terminal and a third terminal, the first terminal of the first AND gate is electrically connected to the second terminal of the first inverter, and the second terminal of the first AND gate is electrically connected to the third terminal of the first OR gate. The first flip-flop has a first terminal, a second terminal, and a third terminal. The first terminal of the first flip-flop is electrically connected to the third terminal of the first AND gate. The second terminal of the first flip-flop is electrically connected to a clock signal. The third terminal of the first flip-flop is electrically connected to the second terminal of the first OR gate and the PLL configuration signal.
9. The computing power adjustment circuit as described in claim 7, characterized in that: The second configuration signal generation unit includes a second OR gate, a second inverter, a second AND gate, and a second flip-flop; The second OR gate has a first terminal, a second terminal, and a third terminal, and the first terminal of the second OR gate is electrically connected to the update divider configuration request signal; The second inverter has a first terminal and a second terminal, and the first terminal of the second inverter is electrically connected to the comparison completion indication signal; The second AND gate has a first terminal, a second terminal and a third terminal, the first terminal of the second AND gate is electrically connected to the second terminal of the second inverter, and the second terminal of the second AND gate is electrically connected to the third terminal of the second OR gate; The second flip-flop has a first terminal, a second terminal, and a third terminal. The first terminal of the second flip-flop is electrically connected to the third terminal of the second AND gate. The second terminal of the second flip-flop is electrically connected to a clock signal. The third terminal of the second flip-flop is electrically connected to the second terminal of the second OR gate and the frequency divider configuration signal.
10. The computing power adjustment circuit as described in claim 1, characterized in that: The parameter update unit includes a first parameter update unit and a second parameter update unit; The first parameter update unit is used to output the updated PLL configuration indication signal according to the PLL configuration signal and the comparison result indication signal; The second parameter update unit is used to output the updated divider configuration indication signal based on the divider configuration signal and the comparison result indication signal.
11. The computing power adjustment circuit as described in claim 10, characterized in that: The first parameter update unit includes a third AND gate, a third flip-flop, and a fourth flip-flop; The third AND gate has a first terminal, a second terminal and a third terminal. The first terminal of the third AND gate is electrically connected to the comparison result indication signal, and the second terminal of the third AND gate is electrically connected to the PLL configuration signal. The third flip-flop has a first terminal, a second terminal, a third terminal, and a control terminal. The first terminal of the third flip-flop is electrically connected to the PLL configuration parameters, the second terminal of the third flip-flop is electrically connected to a clock signal, and the control terminal of the third flip-flop is electrically connected to the third terminal of the third AND gate. The third terminal of the third flip-flop is used to output the PLL configuration parameters. The fourth flip-flop has a first terminal, a second terminal, and a third terminal. The first terminal of the fourth flip-flop is electrically connected to the third terminal of the third AND gate. The second terminal of the fourth flip-flop is electrically connected to a clock signal. The third terminal of the fourth flip-flop is electrically connected to the update PLL configuration indication signal.
12. The computing power adjustment circuit as described in claim 10, characterized in that: The second parameter update unit includes a fourth AND gate, a fifth flip-flop, and a sixth flip-flop; The fourth AND gate has a first terminal, a second terminal and a third terminal. The first terminal of the fourth AND gate is electrically connected to the comparison result indication signal, and the second terminal of the fourth AND gate is electrically connected to the frequency divider configuration signal. The fifth flip-flop has a first terminal, a second terminal, a third terminal, and a control terminal. The first terminal of the fifth flip-flop is electrically connected to the frequency divider configuration parameters, the second terminal of the fifth flip-flop is electrically connected to a clock signal, and the control terminal of the fifth flip-flop is electrically connected to the third terminal of the fourth AND gate. The third terminal of the fifth flip-flop is used to output the frequency divider configuration parameters. The sixth flip-flop has a first terminal, a second terminal, and a third terminal. The first terminal of the sixth flip-flop is electrically connected to the third terminal of the fourth AND gate. The second terminal of the sixth flip-flop is electrically connected to a clock signal. The third terminal of the sixth flip-flop is electrically connected to the update divider configuration indication signal.
13. The computing power adjustment circuit as described in claim 1, characterized in that: The computing power lookup table includes multiple computing power levels and multiple frequency thresholds, with each computing power level corresponding to a frequency threshold.
14. The computing power adjustment circuit as described in claim 13, characterized in that: The computing power lookup table is stored in a one-time programmable storage unit.
15. The computing power adjustment circuit as described in claim 14, characterized in that: The one-time programmable storage unit is located on the computing chip.
16. A control module, characterized in that, It includes at least one computing power adjustment circuit as described in claims 1-15.
17. A computing device, characterized in that, It includes at least one control module as described in claim 16 and the computing chip.
18. A method for adjusting computing power, applied to at least one computing chip, characterized in that, include: Obtain a frequency threshold and output a frequency threshold according to the computing power level of the computing chip; The frequency is calculated and compared, and a comparison completion indication signal and a comparison result indication signal are obtained based on the frequency threshold, a PLL configuration parameter and a frequency divider configuration parameter. Generate a configuration signal, and output a PLL configuration signal and a frequency divider configuration signal according to the comparison completion indication signal, an update PLL configuration request signal and an update divider configuration request signal; The parameters are updated by outputting an updated PLL configuration indication signal and an updated frequency divider configuration indication signal based on the PLL configuration signal, the frequency divider configuration signal, and the comparison result indication signal.
Citation Information
Patent Citations
Phase-locked loop frequency modulation system, frequency division control method, device, equipment and medium
CN114448432A
Phase-locked loop circuit
US20100085089A1
