Circuit structure, packaged chip and electronic equipment
By introducing a voltage regulation module and a voltage monitoring module into the power management unit, the problem of slow voltage regulation speed of the power management unit is solved, and rapid adjustment and performance improvement of the input voltage of the calculation module is achieved.
Patent Information
- Application Number
- CN202411141393.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2044-08-20
AI Technical Summary
The current power management unit has a slower voltage regulation speed, which limits the performance of the computing module.
A circuit structure is designed, including a voltage regulation module, a calculation module and a voltage monitoring module. Through the voltage monitoring module, the voltage regulation speed of the input voltage of the calculation module is faster.
The input voltage of the calculation module is adjusted more quickly, so that the calculation module can better perform its performance.
Smart Images

Figure CN118677251B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of circuit technology, and in particular to a circuit structure, a packaged chip and an electronic device. Background Art
[0002] Electronic devices such as mobile phones, tablet computers, and laptop computers usually include a power management unit and a computing module. The computing module can be, for example, a central processing unit, a graphics processing unit, etc. The output end of the power management unit is connected to the power supply end of the computing module so that when the electronic device is working, the power management unit can supply power to the computing module.
[0003] In the related art, the electronic device also includes a voltage monitoring module. The voltage monitoring module is used to monitor the input voltage of the computing module, and when the input voltage of the computing module is less than the working voltage of the computing module, the power management unit sends a communication signal. After receiving the communication signal, the power management unit controls the output voltage of its output end to increase.
[0004] However, due to the physical characteristics of the electronic devices in the power management unit, the voltage regulation speed of the power management unit is slow, that is, the output voltage of the power management unit increases slowly, which limits the performance of the computing module. Summary of the invention
[0005] The embodiment of the present application provides a circuit structure, a packaged chip and an electronic device, in which the voltage regulation speed of the input voltage of the computing module is fast, and the performance of the computing module can be better exerted. The technical solution is as follows:
[0006] In a first aspect, a circuit structure is provided. The circuit structure is applied to an electronic device, and the electronic device includes a power management unit. The circuit structure includes a voltage regulation module, a calculation module, and a voltage monitoring module.
[0007] The voltage regulating module has an input end, an output end and a control end. The input end of the voltage regulating module is connected to the output end of the power management unit. The output end of the voltage regulating module is connected to the power supply end of the computing module so that the power management unit supplies power to the computing module through the voltage regulating module. The voltage monitoring module has an input end and an output end. The input end of the voltage monitoring module is connected to the power supply end of the computing module to detect the input voltage of the computing module. The output end of the voltage monitoring module is connected to the control end of the voltage regulating module so that the voltage monitoring module can control the output voltage of the output end of the voltage regulating module, that is, control the input voltage of the computing module. Here, the voltage regulation speed of the voltage regulating module is greater than the voltage regulation speed of the power management unit.
[0008] When the voltage monitoring module is working, it is used to: output a first control signal to the voltage regulating module according to the input voltage of the calculation module. The first control signal is used to control the output voltage of the voltage regulating module to increase when the input voltage of the calculation module is less than the working voltage required by the calculation module.
[0009] In an embodiment of the present application, the circuit structure includes a voltage regulating module, a computing module and a voltage monitoring module. Among them, the voltage regulating module is connected in series between the output end of the power management unit and the power supply end of the computing module, so that the power management unit and the voltage regulating module are cascaded to form a two-stage power supply circuit. When the voltage monitoring module is working, it outputs a control signal to the voltage regulating module according to the input voltage of the computing module, so that when the input voltage of the computing module is less than the working voltage of the computing module, the output voltage of the voltage regulating module is controlled to increase. Since the voltage regulation speed of the voltage regulation module is greater than the voltage regulation speed of the power management unit, the voltage regulation speed of the input voltage of the computing module in the circuit structure is faster, which is conducive to the computing module to exert its performance.
[0010] In some embodiments, the first control signal is further used to control the output voltage of the voltage regulating module to decrease when the input voltage of the computing module is greater than the operating voltage of the computing module.
[0011] The structure of the voltage regulation module is described below.
[0012] In some embodiments, the voltage regulation module includes a transistor and a control unit. The first end of the transistor is connected to the output end of the power management unit. The second end of the transistor is connected to the power supply end of the computing module. The input end of the control unit is connected to the output end of the voltage monitoring module for receiving a first control signal. The output end of the control unit is connected to the control end of the transistor. The first control signal is used to adjust the output voltage of the output end of the control unit to adjust the on-resistance of the transistor.
[0013] Further, the control unit may include a voltage controller and a driver. The input end of the voltage controller is connected to the output end of the voltage monitoring module for receiving a first control signal. The output end of the voltage controller is connected to the input end of the driver for outputting a first voltage to the driver. The output end of the driver is connected to the control end of the transistor. The first control signal is used to control the magnitude of the first voltage. The driver is used to adjust the on-resistance of the transistor according to the magnitude of the first voltage.
[0014] In some specific embodiments, the voltage controller includes a reference voltage source, M resistors, M switches and a logic controller. The reference voltage source is used to output a reference voltage, which is a voltage with a fixed voltage value.
[0015] The first end of the first resistor among the M resistors is connected to the output end of the reference voltage source. The second end of the Mth resistor among the M resistors is connected to the ground line, and the first end of the i-th resistor among the M resistors is connected to the second end of the i-1th resistor. Wherein, M is an integer greater than or equal to 2, and i traverses from 2 to M. The first end of the pth switch among the M switches is connected to the first end of the pth resistor among the M resistors. The second end of each of the M switches is connected to the input end of the driver for outputting a first voltage to the driver. Wherein, p traverses from 1 to M. The input end of the logic controller is connected to the output end of the voltage monitoring module. The output end of the logic controller is connected to the control end of each of the M switches. The logic controller is used to: control any one of the M switches to be turned on according to the first control signal.
[0016] In some embodiments, the circuit structure further includes a clock module. The clock module is used to output a clock signal. The output end of the voltage regulation module is connected to the power supply end of the clock module, and is used to supply power to the clock module. The output end of the clock module is connected to the first end of the calculation module, and is used to output a clock signal to the calculation module.
[0017] The structure of the voltage monitoring module is described below.
[0018] In some embodiments, the voltage monitoring module includes a first counting unit, a second counting unit and a comparison control unit. The first input end of the first counting unit is connected to the power supply end of the calculation module, and the second input end of the first counting unit is connected to the output end of the clock module. The output end of the first counting unit is connected to the first input end of the comparison control unit, and is used to output a first count value to the comparison control unit. Here, the first count value is used to characterize the actual operating frequency of the calculation module. The input end of the second counting unit is connected to the output end of the clock module. The output end of the second counting unit is connected to the second input end of the comparison control unit, and is used to output a second count value to the comparison control unit. Here, the second count value is used to characterize the target operating frequency of the calculation module. The output end of the comparison control unit is connected to the control end of the voltage regulation module. The comparison control unit is used to: determine the voltage adjustment amount according to the first count value and the second count value; and output a first control signal to the voltage regulation module according to the voltage adjustment amount.
[0019] In some embodiments, the first counting unit includes a voltage-controlled oscillator and a first counter. The oscillation frequency of the voltage-controlled oscillator at any voltage is equal to the actual operating frequency of the computing module at the arbitrary voltage. The first input end of the voltage-controlled oscillator is connected to the power supply end of the computing module, and the second input end of the voltage-controlled oscillator is connected to the output end of the clock module. The output end of the voltage-controlled oscillator is connected to the input end of the first counter. The output end of the first counter is connected to the first input end of the comparison control unit, and is used to output the first count value to the comparison control unit.
[0020] The second counting unit includes a reference delayer and a second counter. The input end of the reference delayer is connected to the output end of the clock module. The output end of the reference delayer is connected to the input end of the second counter. The output end of the second counter is connected to the second input end of the comparison control unit, and is used to output the second count value to the comparison control unit.
[0021] The comparison control unit includes a comparator and a converter. The first input end of the comparator is connected to the output end of the first counting unit, and the second input end of the comparator is connected to the output end of the second counting unit. The output end of the comparator is connected to the first input end of the converter. The output end of the converter is connected to the control end of the voltage regulation module. The comparator is used to calculate the difference between the first count value and the second count value. The converter is used to convert the difference between the first count value and the second count value into a voltage adjustment amount. A first control signal is output to the voltage regulation module according to the voltage adjustment amount.
[0022] Furthermore, the voltage monitoring module may also include a voltage differential protector. The circuit structure may also include a load prediction module and a voltage regulating module. The communication end of the voltage differential protector is connected to the communication end of the converter. The first input end of the voltage differential protector is connected to the input end of the voltage regulating module, and the second input end of the voltage differential protector is connected to the power supply end of the computing module. The output end of the voltage differential protector is connected to the first input end of the voltage regulating module. The first output end of the voltage regulating module is connected to the second input end of the converter, and the second output end of the voltage regulating module is connected to the input end of the clock module. The communication end of the voltage regulating module is connected to the communication end of the power management unit. The first end of the load prediction module is connected to the second end of the computing module, and the second end of the load prediction module is connected to the second input end of the voltage regulating module. Among them, the load prediction module is used to: determine the predicted operating frequency of the computing module within the next preset time length, and output it to the voltage regulating module.
[0023] The working process of each electrical module in the circuit structure is further explained below.
[0024] In some embodiments, the load prediction module is specifically used to: obtain the current load rate of the computing module, and obtain the instruction data that the computing module needs to run within the next preset time period; determine the load rate of the computing module within the next preset time period based on the current load rate and the instruction data that needs to be run; determine the predicted operating frequency of the computing module within the next preset time period based on the load rate of the computing module within the next preset time period.
[0025] In some embodiments, the voltage regulation module is specifically used to: if the currently received predicted operating frequency is greater than the last received predicted operating frequency, determine the maximum operating voltage of the calculation module according to the currently received predicted operating frequency; transmit a second control signal to the converter, the second control signal is used to instruct the converter to store the maximum operating voltage; transmit a first communication signal to the power management unit, the first communication signal is used to instruct the power management unit to output the maximum operating voltage; after receiving the second communication signal transmitted by the power management unit, transmit a third control signal to the clock module, the second communication signal is used to indicate that the output voltage of the power management unit is equal to the maximum operating voltage, and the third control signal is used to indicate that the frequency of the clock signal output by the clock module is equal to the currently received predicted operating frequency.
[0026] Furthermore, the converter is specifically configured to output a first control signal to the voltage regulation module according to the maximum operating voltage and the voltage adjustment amount.
[0027] Furthermore, the second control signal is also used to instruct the converter to set the voltage adjustment amount to zero.
[0028] Furthermore, the input voltage of the calculation module is less than the input voltage of the voltage regulation module.
[0029] Furthermore, the voltage difference protector is specifically used for: when the voltage difference between the voltage at the first input terminal of the voltage difference protector and the voltage at the second input terminal of the voltage difference protector is greater than the first preset voltage, reading the maximum operating voltage and the voltage adjustment amount stored in the converter; transmitting a fourth control signal to the voltage regulation module, the fourth control signal including the maximum operating voltage and the voltage adjustment amount;
[0030] The voltage regulating module is specifically used to transmit a third communication signal to the power management unit upon receiving the fourth control signal. The third communication signal is used to instruct the power management unit to output a specified voltage, which is equal to the sum of the maximum operating voltage, the voltage adjustment amount, and the second preset voltage. The second preset voltage is the voltage drop when the voltage regulating module is in the maximum conduction state.
[0031] Furthermore, the voltage difference protector is further configured to: after transmitting the fourth control signal to the voltage regulating module, transmit a fourth communication signal to the converter, wherein the fourth communication signal is used to instruct the converter to set the voltage adjustment amount to zero.
[0032] In some embodiments, the voltage regulation module is also specifically used to: if the currently received predicted operating frequency is less than the last received predicted operating frequency, determine the maximum operating voltage of the calculation module according to the currently received predicted operating frequency; transmit a third control signal to the clock module; transmit a first communication signal to the power management unit; and after receiving the second communication signal, transmit a second control signal to the converter.
[0033] Furthermore, the voltage regulation module is specifically used to: shield a fourth control signal including a maximum operating voltage and a voltage adjustment amount when transmitting a first communication signal to the power management unit; and re-receive the fourth control signal after transmitting a second control signal to the converter.
[0034] In a second aspect, a packaged chip is also provided. The packaged chip includes a circuit structure as in any one of the first aspect. The packaged chip may also include a packaging structure. The packaging structure encapsulates the circuit structure.
[0035] In a third aspect, an electronic device is also provided, comprising a circuit structure as in any one of the first aspect or a packaged chip as in the second aspect.
[0036] The technical effects obtained by the above-mentioned second and third aspects are similar to the technical effects obtained by the corresponding technical means in the above-mentioned first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a schematic diagram of the appearance of a first electronic device in the related art;
[0038] Figure 2 is a schematic diagram of the appearance of a second electronic device in the related art;
[0039] Figure 3 It is a structural diagram of the first electronic device in the related art;
[0040] Figure 4 is a structural diagram of a second electronic device in the related art;
[0041] Figure 5 It is a relationship diagram between the input voltage and the actual operating frequency of a calculation module in the related art;
[0042] Figure 6 It is a circuit diagram of a power management unit in the related art;
[0043] Figure 7 It is an input voltage curve diagram and an input current curve diagram of a calculation module in the related art;
[0044] Figure 8 is a structural diagram of a first circuit structure provided in an embodiment of the present application;
[0045] Fig. 9 is a structural diagram of a second circuit structure provided in an embodiment of the present application;
[0046] Fig.10 is a structural diagram of a third circuit structure provided in an embodiment of the present application;
[0047] Fig.11 is a circuit diagram of a voltage regulation module provided in an embodiment of the present application;
[0048] Fig.12 is a circuit diagram of a voltage controller provided in an embodiment of the present application;
[0049] Fig.13 is a circuit diagram of a first voltage monitoring module provided in an embodiment of the present application;
[0050] Fig.14 is a circuit diagram of a second voltage monitoring module provided in an embodiment of the present application;
[0051] Fig.15 is a circuit diagram of a voltage regulating module provided in an embodiment of the present application;
[0052] Fig.16 is a circuit diagram of a circuit structure provided by an embodiment of the present application;
[0053] Fig.17 It is a format diagram of a register provided in an embodiment of the present application;
[0054] Fig.18 It is a working flow diagram of a circuit structure provided in an embodiment of the present application;
[0055] Fig.19 This is a power supply effect diagram of a circuit structure provided in an embodiment of the present application;
[0056] Fig. 20 This is a workflow diagram of a load prediction module provided in an embodiment of the present application.
[0057] The meanings of the reference numerals in the related art and the embodiments of the present application are as follows: 10, electronic device; 12, power management unit; 122, controller;
[0058] The meanings of the figures in the related art are as follows: 14, circuit structure; 141, calculation module; 142, voltage monitoring module; 143, clock module; 144, load prediction module; 145, voltage regulation module;
[0059] The meanings of the figures in the embodiments of the present application are as follows:
[0060] 20. Circuit structure; 210. Voltage regulation module; 212. Control unit; 2122. Voltage controller; 21222. Reference voltage source; 21224. First logic controller; 2124. Driver; 220. Calculation module; 230. Voltage monitoring module; 232. First counting unit; 2322. Voltage controlled oscillator; 2324. First counter; 234. Second counting unit; 2342. Reference delay device; 2344. Second counter; 236. Comparison control unit; 2362. Comparator; 2364. Converter; 237. Frequency divider; 238. Voltage difference protector; 240. Clock module; 250. Load prediction module; 260. Voltage regulation module; 262. Voltage regulation controller; 264. Memory. DETAILED DESCRIPTION
[0061] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0062] It should be understood that the "multiple" mentioned in this application refers to two or more. In the description of this application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in order to facilitate the clear description of the technical solution of this application, the words "first" and "second" are used to distinguish between the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first" and "second" do not limit the quantity and execution order, and the words "first" and "second" do not limit them to be different.
[0063] Before explaining the circuit structure provided in the embodiment of the present application in detail, the application scenarios and related technologies of the circuit structure are first explained.
[0064] The circuit structure provided in the embodiment of the present application is applied to an electronic device 10. The electronic device 10 includes a mobile phone, a tablet computer, a laptop computer, a television, a wearable device, etc.; the wearable device includes a smart wristband, a wristband, etc. Figure 1 and Figure 2 1 is a schematic diagram of the appearance of two different electronic devices 10 in the related art. Figure 1 The electronic device 10 shown is a mobile phone. Figure 2 The electronic device 10 shown is a tablet computer.
[0065] Figure 3 1 is a structural diagram of an electronic device 10 in the related art. Figure 3As shown, the electronic device 10 generally includes a power management unit (PMU) 12 and a circuit structure 14. The circuit structure 14 includes a computing module 141. The computing module 141 may be, for example, a central processing unit (CPU), a graphics processing unit (GPU), etc. The output terminal a of the power management unit 12 is connected to the power terminal b of the computing module 141. When the electronic device 10 is working, the output terminal a of the power management outputs electric energy to the power terminal b of the computing module 141, so that the computing module 141 can be powered on and work.
[0066] The electronic device 10 also includes a voltage monitoring module 142. The first input terminal c of the voltage monitoring module 142 is connected to the power supply terminal b of the calculation module 141, and is used to detect the input voltage of the power supply terminal b of the calculation module 141. The output terminal d of the voltage monitoring module 142 is connected to the communication terminal e of the power management unit 12, and is used to transmit a communication signal to the communication terminal e of the power management unit 12. When the voltage monitoring module 142 is working, when the input voltage of the power supply terminal b of the calculation module 141 is less than the working voltage of the calculation module 141, the communication signal for boosting can be transmitted to the power management unit 12. After receiving the communication signal, the power management unit 12 can increase the output voltage of the output terminal a of the power management unit 12, so that the input voltage of the power supply terminal b of the calculation module 141 is equal to the working voltage of the calculation module 141.
[0067] The structure and working process of the electronic device 10 in the related art are explained in detail below.
[0068] Figure 4 FIG. 1 is a structural diagram of another electronic device 10 in the related art. Figure 4 As shown, in the related art, in addition to the calculation module 141 and the voltage monitoring module 142 , the circuit structure 14 in the electronic device 10 also includes a clock module 143 , a load prediction module 144 and a voltage regulation module 145 .
[0069] The clock module 143 is used to generate a clock signal. The output terminal a of the power management unit 12 is connected to the power terminal f of the clock module 143, so that when the electronic device 10 is working, the output terminal a of the power management unit 12 outputs electric energy to the power terminal f of the clock module 143, so that the clock module 143 can be powered on and generate a clock signal. The output terminal g of the clock module 143 is used to output a clock signal.
[0070] The first terminal h of the calculation module 141 is connected to the output terminal g of the clock module 143 for inputting a clock signal. The clock signal has a certain frequency; the calculation module 141 when working also has a certain working frequency. Generally, the working frequency of the calculation module 141 should be equal to the frequency of the input clock signal. Here, the working frequency of the calculation module 141 is referred to as the actual working frequency, and the frequency of the clock signal input when the calculation module 141 is working is referred to as the target working frequency of the calculation module 141, and the actual working frequency of the calculation module 141 should be equal to the target working frequency.
[0071] It is easy to understand that there is an approximately linear relationship between the input voltage of the calculation module 141 (i.e., the input voltage of the power supply terminal b of the calculation module 141) and the actual operating frequency. The higher the input voltage, the higher the actual operating frequency of the calculation module 141; conversely, the lower the input voltage, the lower the actual operating frequency of the calculation module 141. For example, Figure 5 FIG. 1 shows a relationship diagram between the input voltage and the actual operating frequency of a calculation module 141 in the related art, wherein the horizontal axis is the input voltage of the calculation module 141 and the vertical axis is the actual operating frequency of the calculation module 141. Figure 5 As shown, when the input voltage of the calculation module 141 is V1, the actual operating frequency is F1; when the input voltage of the calculation module 141 is V2, the actual operating frequency is F2; when the input voltage of the calculation module 141 is V3, the actual operating frequency is F3. Among them, V1<V2<V3, F1<F2<F3.
[0072] The operating voltage of the calculation module 141 refers to the voltage required to be input to the power supply terminal b of the calculation module 141 corresponding to a certain target operating frequency. Figure 5 Taking the embodiment shown as an example, it can be obtained that: when the target operating frequency of the calculation module 141 is F1, the corresponding operating voltage is V1; when the target operating frequency of the calculation module 141 is F2, the corresponding operating voltage is V2; when the target operating frequency of the calculation module 141 is F3, the corresponding operating voltage is V3. In this way, when the input voltage of the calculation module 141 is equal to the operating voltage, the actual operating frequency of the calculation module 141 is equal to the target operating frequency.
[0073] The voltage monitoring module 142 also has a second input terminal i. The second input terminal i of the voltage monitoring module 142 is connected to the output terminal g of the clock module 143 for inputting a clock signal. When the voltage monitoring module 142 is working, the first input terminal c of the voltage monitoring module 142 can detect the input voltage of the calculation module 141, and obtain the actual operating frequency of the calculation module 141 according to the input voltage of the calculation module 141; the second input terminal i of the voltage monitoring module 142 is used to input the clock signal, and obtain the target operating frequency of the calculation module 141 according to the frequency of the clock signal. The voltage monitoring module 142 can compare the actual operating frequency and the target operating frequency of the calculation module 141. When the actual operating frequency of the calculation module 141 is less than the target operating frequency, it is determined that the input voltage of the calculation module 141 is less than the operating voltage of the calculation module 141. The output terminal d of the voltage monitoring module 142 is connected to the communication terminal e of the power management unit 12 through the voltage regulation module 145. When the voltage monitoring module 142 determines that the input voltage of the calculation module 141 is less than the working voltage of the calculation module 141, a first signal can be output to the voltage regulating module 145 through its output terminal d. After receiving the first signal output by the voltage monitoring module 142, the voltage regulating module 145 transmits a communication signal for boosting to the power management unit 12. Similarly, when the voltage monitoring module 142 determines that the input voltage of the calculation module 141 is greater than the working voltage of the calculation module 141, a second signal can be output to the voltage regulating module 145 through its output terminal d. After receiving the second signal output by the voltage monitoring module 142, the voltage regulating module 145 transmits a communication signal for reducing the voltage to the power management unit 12.
[0074] The first input terminal j of the voltage regulating module 145 is connected to the output terminal d of the voltage monitoring module 142, and is used to receive the control signal (including the first signal and the second signal) output by the voltage monitoring module 142. The communication terminal k of the voltage regulating module 145 is connected to the communication terminal e of the power management unit 12, and is used to transmit the communication signal for voltage increase and voltage decrease to the power management unit 12. Generally, the communication signal includes the target voltage, and the communication signal is used to instruct the output terminal a of the power management unit 12 to output the target voltage.
[0075] The first terminal m of the load prediction module 144 is connected to the second terminal t of the calculation module 141. When the load prediction module 144 is working, the working frequency of the calculation module 141 within the next preset time length can be determined. For the convenience of description, the working frequency of the calculation module 141 within the next preset time length determined when the load module is working is called the predicted working frequency. The second terminal n of the load prediction module 144 is connected to the second input terminal p of the voltage regulation module 145, so that the load prediction module 144 can transmit the predicted working frequency to the voltage regulation module 145.
[0076] The voltage regulating module 145 stores the correspondence between frequency and voltage. For ease of description, the correspondence between frequency and voltage is referred to as a preset correspondence. In this way, when the voltage regulating module 145 receives the predicted operating frequency, the voltage corresponding to the predicted operating frequency can be found from the preset correspondence, and the voltage is the maximum operating voltage of the calculation module 141 corresponding to the predicted operating frequency. Different from the operating voltage, the maximum operating voltage of the calculation module 141 refers to the voltage required to be input to the power supply terminal b of the calculation module 141 when it is in an extreme operating environment, corresponding to a certain target operating frequency. The extreme operating environment here includes but is not limited to the extreme aging of the calculation module 141, the temperature of the environment in which the calculation module 141 is located reaches the highest temperature or the lowest temperature of the operating temperature of the calculation module 141, etc. Therefore, the operating voltage of the calculation module 141 is less than or equal to the maximum operating voltage.
[0077] When the voltage regulating module 145 receives the predicted operating frequency, in order to enable the calculation module 141 to operate at the predicted operating frequency within the next preset time period (that is, the actual operating frequency of the calculation module 141 can be equal to the predicted operating frequency), the voltage regulating module 145 needs to communicate with the power management unit 12 so that the power management unit 12 outputs the maximum operating voltage corresponding to the predicted operating frequency at the beginning of the next preset time period.
[0078] The voltage regulating module 145 also has a second output terminal q. The second output terminal q of the voltage regulating module 145 is connected to the input terminal r of the clock module 143. When the voltage regulating module 145 is working, the frequency of the clock signal output by the clock module 143 can be controlled through its second output terminal q. It is easy to understand that within the next preset time length, the voltage regulating module 145 also controls the frequency of the clock signal output by the clock module 143 to be equal to the predicted working frequency.
[0079] Below Figure 4 When the electronic device 10 shown in FIG. 1 is working, the working process of the circuit structure 14 is described in detail. In the circuit structure 14, in order to meet the following Figure 5 The correspondence between the input voltage of the calculation module 141 and the actual operating frequency is shown. The voltage monitoring module 142 and the voltage regulation module 145 in the circuit structure 14 need to adopt an adaptive voltage scaling (AVS) mechanism to manage the input voltage of the calculation module 141, thereby managing the actual operating frequency of the calculation module 141.
[0080] Taking the working process of the circuit structure 14 including the preset time length T0 as an example, the AVS mechanism is specifically as follows:
[0081] Before the start time of the preset duration T0, the load prediction module 144 determines the predicted operating frequency F0, which is the operating frequency required by the calculation module 141 in the upcoming preset duration T0 determined by the load prediction module 144. At this time, the load prediction module 144 transmits the predicted operating frequency F0 to the voltage regulation module 145. After receiving the predicted operating frequency F0, the voltage regulation module 145 determines the maximum operating voltage of the calculation module 141 corresponding to the predicted operating frequency F0 according to the predicted operating frequency F0. For ease of description, the maximum operating voltage determined by the voltage regulation module 145 according to the predicted operating frequency F0 is referred to as voltage V0. In other words, no matter how the aging degree of the calculation module 141 is, how the temperature of the environment in which the calculation module 141 is located, etc., when the input voltage of the calculation module 141 is voltage V0, the actual operating frequency of the calculation module 141 can reach the predicted operating frequency F0.
[0082] After the voltage regulating module 145 determines the voltage V0, it communicates with the power management unit 12 to regulate the output voltage of the power management unit 12. After the voltage regulation is completed, the power management unit 12 outputs the voltage V0. The moment when the power management unit 12 outputs the voltage V0 is the starting moment of the preset duration T0. In addition, within the preset duration T0, the voltage regulating module 145 also controls the frequency of the clock signal output by the clock module 143 to be equal to the predicted operating frequency F0. In this case, the predicted operating frequency F0 is the target operating frequency of the calculation module 141 within the preset duration T0.
[0083] Within the preset time length T0, that is, after the power management unit 12 outputs the voltage V0, on the one hand, the voltage monitoring module 142 can monitor the input voltage of the calculation module 141, and obtain the actual operating frequency of the calculation module 141 according to the input voltage of the calculation module 141 and the operating environment of the calculation module 141 (including the aging degree of the calculation module 141, the temperature of the environment in which the calculation module 141 is located, etc.). On the other hand, the voltage monitoring module 142 can obtain the target operating frequency of the calculation module 141 according to the frequency of the clock signal. When the actual operating frequency of the calculation module 141 is greater than the target operating frequency, it indicates that the input voltage of the calculation module 141 is greater than the operating voltage of the calculation module 141, and at this time, the voltage monitoring module 142 transmits a second signal to the voltage regulating module 145. After receiving the second signal, the voltage regulating module 145 transmits a communication signal for voltage reduction to the power management unit 12, so that the output voltage of the power management unit 12 is reduced.
[0084] It is easy to understand that since at the beginning of the preset duration T0, the voltage V0 output by the power management unit 12 is the maximum operating voltage corresponding to the predicted operating frequency F0, under normal circumstances (i.e., the computing module 141 is not in an extreme operating environment), the voltage regulation module 145 may need to transmit a communication signal for voltage reduction to the power management unit 12 within the preset duration T0.
[0085] In addition, within the preset time length T0, when the calculation module 141 is working, the voltage regulating module 145 may also need to transmit a communication signal for boosting to the power management unit 12, because: the load rate of the calculation module 141 is affected by two factors: the actual working frequency of the calculation module 141 and the utilization rate of the calculation module 141. Within the preset time length T0, if the utilization rate of the calculation module 141 increases, resulting in an increase in the load rate of the calculation module 141, it will cause the input current of the power supply terminal b of the calculation module 141 to increase (that is, the output current of the output terminal a of the power management unit 12 increases). Since the wire connected between the output terminal a of the power management unit 12 and the power supply terminal b of the calculation module 141 also has impedance, and the impedance of the wire is unchanged, when the input current of the calculation module 141 increases, the voltage drop of the wire will increase, thereby causing the input voltage of the calculation module 141 to decrease. In this case, the voltage monitoring module 142 will detect that the actual working frequency of the calculation module 141 is less than the target working frequency, and thus transmit a first signal to the voltage regulating module 145. After receiving the first signal, the voltage regulating module 145 transmits a communication signal for boosting the voltage to the power management unit 12 , so that the output voltage of the power management unit 12 increases.
[0086] However, due to the physical characteristics of the electronic components in the power management unit 12, the voltage regulation speed of the power management unit 12 is slow, that is, the output voltage of the power management unit 12 increases slowly, which limits the performance of the calculation module 141. The reasons for this technical problem are explained below.
[0087] Figure 6 1 is a circuit diagram of a power management unit 12 in the related art. The power management unit 12 is usually a step-down conversion (buck) circuit. Figure 6 As shown, the power management unit 12 includes a first transistor Q1 , a second transistor Q2 , a first inductor L1 , a first capacitor C1 , a second capacitor C2 and a controller 122 .
[0088] The first end of the first transistor Q1 is connected to the first plate of the first capacitor C1 and is used to connect the input voltage VIN. Generally, the input voltage VIN can be output by the energy storage module (i.e., the battery) in the electronic device 10. The second end of the first transistor Q1 is connected to the first end of the second transistor Q2 and the first end of the first inductor L1. The second plate of the first capacitor C1 is connected to the second end of the second transistor Q2 and the ground line GND. The first plate of the second capacitor C2 is connected to the second end of the first inductor L1, and the second plate of the second capacitor C2 is connected to the ground line GND. The second end of the first inductor L1 is the output terminal a of the power management unit 12, which is used to be connected to the power supply terminal b of the calculation module 141.
[0089] The first output terminal 1 of the controller 122 is connected to the control terminal of the first transistor Q1, and is used to control the on and off of the first transistor Q1. The second output terminal 2 of the controller 122 is connected to the control terminal of the second transistor Q2, and is used to control the on and off of the second transistor Q2. The detection terminal 3 of the controller 122 is connected to the second end of the first inductor L1, and is used to detect the output voltage of the power management unit 12. The communication terminal 4 of the controller 122 is the communication terminal e of the power management unit 12, and is used to connect to the communication terminal k of the voltage regulation module 145.
[0090] When the power management unit 12 is working, if the first transistor Q1 is turned on and the second transistor Q2 is turned off, the input voltage VIN charges the first inductor L1 through the first transistor Q1. If the first transistor Q1 is turned off and the second transistor Q2 is turned on, the first inductor L1 is discharged to the circuit structure 14. The controller 122 can control the output voltage of the output terminal a of the power management unit 12 by controlling the duty cycle of the first transistor Q1 and the duty cycle of the second transistor Q2. Among them, the duty cycle of the transistor (including the first transistor Q1 and the second transistor Q2) refers to the percentage of the on-time of the transistor to the total time of the cycle in one on-off cycle of the transistor.
[0091] When the power management unit 12 is working, after receiving the communication signal containing the target voltage transmitted by the communication terminal k of the voltage regulation module 145, the controller 122 controls the duty cycle of the first transistor Q1 and the duty cycle of the second transistor Q2 to make the voltage at the second end of the first inductor L1 equal to the target voltage, that is, the output voltage of the power management unit 12 is equal to the target voltage. At the same time, the detection terminal 3 of the controller 122 can also detect the output voltage of the power management unit 12 and determine whether the output voltage of the power management unit 12 is equal to the target voltage, thereby completing the closed-loop regulation.
[0092] In the related art, the maximum change of the output voltage of the output terminal a of the power management unit 12 within a unit time is:
[0093] .
[0094] in, is the maximum change of the output voltage at the output terminal a of the power management unit 12; is the maximum change in the output charge at the output terminal a of the power management unit 12; is the capacitance value of the second capacitor C2; is the maximum change in output current at the output terminal a of the power management unit 12; The unit duration.
[0095] in addition, .in, is the voltage value of the first inductor L1, is the inductance value of the first inductor L1.
[0096] In the related art, due to the maximum withstand voltage limit of the first transistor Q1, the second transistor Q2 and the first inductor L1, the change amount of the current flowing through the first inductor L1 per unit time is limited, that is, the unit time is The maximum change of the output current at the output terminal a of the internal power management unit 12 is limited, which results in unit duration The maximum change of the output voltage at the output terminal a of the internal power management unit 12 Therefore, the power management unit 12 cannot achieve fast voltage regulation.
[0097] In fact, the voltage regulation speed of the power management unit 12 is generally in the microsecond level, that is, the voltage regulation speed is in the range of several microseconds to tens of microseconds. The greater the change in the output voltage of the power management unit 12, the longer the time required for voltage regulation and the slower the voltage regulation speed. The calculation speed of the calculation module 141 is generally in the nanosecond level. Therefore, if the input voltage of the calculation module 141 is lower than the operating voltage and the output voltage of the power management unit 12 needs to be increased, then before the power management unit 12 completes the voltage regulation, the calculation module 141 can only work at a lower frequency, which limits the performance of the calculation module 141.
[0098] In addition, the communication speed between the communication terminal k of the voltage regulating module 145 and the communication terminal e of the power management unit 12 will also affect the change speed of the input voltage of the power supply terminal b of the calculation module 141, thereby limiting the performance of the calculation module 141. For example, if the load rate of the calculation module 141 changes frequently when the calculation module 141 is working, a large number of communication signals need to be transmitted between the communication terminal k of the voltage regulating module 145 and the communication terminal e of the power management unit 12. In the related art, the transmission of communication signals between multiple devices (including the power management unit 12 and the voltage regulating module 145, and also including other devices in the electronic device 10 not shown) is generally completed by a communication bus. In this case, once the communication bus is occupied by other devices, the voltage regulation of the output voltage of the power management unit 12 will be further delayed, thereby causing the change speed of the input voltage of the power supply terminal b of the calculation module 141 to be further slowed down.
[0099] Taking the above-mentioned preset time length T0, the load rate of the calculation module 141 increases, resulting in the input voltage of the calculation module 141 becoming smaller, and the voltage regulation module 145 transmits a communication signal for boosting to the power management unit 12 as an example, in this process, the input voltage curve diagram and the input current curve diagram of the calculation module 141 can be as follows: Figure 7 As shown. Specifically, at time t0, the utilization rate of the calculation module 141 increases, resulting in an increase in the load rate of the calculation module 141, which causes the input current of the power supply terminal b of the calculation module 141 to increase from I1, and then causes the input voltage of the power supply terminal b of the calculation module 141 to decrease from V1. At time t1, the voltage monitoring module 142 detects that the actual operating frequency of the calculation module 141 is less than the target operating frequency, and transmits a first signal to the voltage regulation module 145. At this time, due to the continuous increase in the load rate of the calculation module 141, the input voltage of the power supply terminal b of the calculation module 141 has decreased from V1 to V2. After receiving the first signal, the voltage regulation module 145 transmits a communication signal for boosting to the power management unit 12. At time t2, the load rate of the calculation module 141 no longer increases, the input current of the power supply terminal b of the calculation module 141 increases to I2 and maintains, and the input voltage of the power supply terminal b of the calculation module 141 has decreased to V3. However, due to the transmission delay of the communication signal and the slow voltage regulation speed of the power management unit 12, the power management unit 12 did not complete the voltage regulation until time t3, at which time the input voltage of the calculation module 141 was restored to V1. In this process, the first voltage difference (the difference between V1 and V2) is caused by the monitoring delay of the voltage monitoring module 142; the second voltage difference (the difference between V2 and V3) is caused by the transmission delay of the communication signal and the slow voltage regulation speed of the power management unit 12.
[0100] In the related art, in order to solve this problem, the technical solution adopted is generally to increase the voltage margin. Figure 7 In the embodiment shown, if the output voltage of the power management unit 12 (i.e., the maximum operating voltage transmitted by the voltage regulating module 145 to the power management unit 12 in the aforementioned AVS mechanism and the target voltage included in the communication signal) should be V3 without considering the transmission delay of the communication signal and the slow voltage regulation speed of the power management unit 12, then in order to solve this problem, the output voltage of the power management unit 12 will be adjusted to V1, thereby ensuring that the computing module 141 can work normally even when the input voltage becomes smaller. However, if the input voltage of the computing module 141 does not become smaller, this will lead to waste of electric energy and waste of the actual working frequency of the computing module 141.
[0101] To this end, an embodiment of the present application provides a circuit structure, a packaged chip, and an electronic device. In the circuit structure, the input voltage of the computing module can be regulated at a faster speed, thereby better exerting the performance of the computing module.
[0102] The circuit structure provided in the embodiment of the present application is explained in detail below. The circuit structure provided in the embodiment of the present application can be applied to electronic devices, such as Figure 1 and Figure 2 The electronic device 10 shown. In the embodiment of the present application, the connection between two electrical structures (including electrical modules, electrical units, and electronic devices) is an electrical connection. The electrical connection here means that the two electrical structures can transmit electrical signals through the connection. In addition, the electrical connection between the two electrical structures can be a direct connection through a wire or an indirect connection through other electrical structures.
[0103] Figure 8 2 is a structural diagram of a circuit structure 20 provided in an embodiment of the present application. Figure 8 As shown, the circuit structure 20 includes a voltage regulating module 210 , a calculating module 220 and a voltage monitoring module 230 .
[0104] The voltage regulating module 210 has an input terminal u, an output terminal v and a control terminal w. The input terminal u of the voltage regulating module 210 is connected to the output terminal a of the power management unit 12. The output terminal v of the voltage regulating module 210 is connected to the power supply terminal b of the calculation module 220. When the voltage regulating module 210 is working, it is used to: adjust the output voltage of the output terminal a of the power management unit 12, and output electric energy to the power supply terminal b of the calculation module 220. That is, in the embodiment of the present application, the power management unit 12 supplies power to the calculation module 220 through the voltage regulating module 210. The voltage of the input terminal u of the voltage regulating module 210 may not be equal to the voltage of the output terminal v of the voltage regulating module 210, that is, the input voltage of the calculation module 220 may not be equal to the output voltage of the power management unit 12.
[0105] The voltage monitoring module 230 has a first input terminal c and a first output terminal y. The first input terminal c of the voltage monitoring module 230 is connected to the power supply terminal b of the calculation module 220, and is used to detect the input voltage of the power supply terminal b of the calculation module 220. The first output terminal y of the voltage monitoring module 230 is connected to the control terminal w of the voltage regulating module 210, so that the voltage monitoring module 230 can control the output voltage of the output terminal v of the voltage regulating module 210, thereby controlling the input voltage of the calculation module 220.
[0106] In the embodiment of the present application, the voltage regulation speed of the voltage regulation module 210 is greater than the voltage regulation speed of the power management unit 12. Specifically, as mentioned above, in the power management unit 12, the voltage regulation speed of the power management unit 12 is generally in the microsecond level due to the maximum withstand voltage of the first transistor Q1, the second transistor Q2 and the first inductor L1. Based on this, the voltage regulation module 210 can use an electronic device with a voltage regulation speed greater than that of the power management unit 12. For example, the voltage regulation module 210 can be a low dropout regulator (LDO). The transistors in the LDO can use power transistors.
[0107] When the voltage monitoring module 230 is working, it is used to: the voltage monitoring module 230 outputs a first control signal to the voltage regulating module 210 according to the input voltage of the calculation module 220. The first control signal is used to control the output voltage of the voltage regulating module 210 to increase when the input voltage of the calculation module 220 is less than the working voltage required by the calculation module 220; the first control signal is also used to control the output voltage of the voltage regulating module 210 to decrease when the input voltage of the calculation module 220 is greater than the working voltage of the calculation module 220. In this way, the voltage monitoring module 230 can make the input voltage of the calculation module 220 equal to the working voltage of the calculation module 220 by outputting the first control signal to the voltage regulating module 210.
[0108] In the embodiment of the present application, the circuit structure 20 includes a voltage regulating module 210, a calculation module 220 and a voltage monitoring module 230. The voltage regulating module 210 is connected in series between the output terminal a of the power management unit 12 and the power terminal b of the calculation module 220, so that the power management unit 12 and the voltage regulating module 210 are cascaded to form a two-stage power supply circuit. When the voltage monitoring module 230 is working, it outputs a first control signal to the voltage regulating module 210 according to the input voltage of the calculation module 220, so that when the input voltage of the calculation module 220 is less than the working voltage of the calculation module 220, the output voltage of the voltage regulating module 210 is controlled to increase; when the input voltage of the calculation module 220 is greater than the working voltage of the calculation module 220, the output voltage of the voltage regulating module 210 is controlled to decrease. Since the voltage regulation speed of the voltage regulating module 210 is greater than the voltage regulation speed of the power management unit 12, the voltage regulation speed of the input voltage of the calculation module 220 in the circuit structure 20 is faster, which is conducive to the calculation module 220 to exert its performance.
[0109] Generally, when the electronic device is a mobile phone, a tablet computer, a wearable device, etc., the circuit structure 20 can be encapsulated by a packaging structure to form a system on chip (SOC). In the embodiment of the present application, no improvement is involved in the structure of the power management unit 12.
[0110] It should be noted that in the above embodiment, for ease of understanding, the power management unit 12 is introduced to illustrate the connection mode and working process of the circuit structure 20 provided in the embodiment of the present application. In fact, the embodiment of the present application is an improvement made to the circuit structure 20, and the circuit structure 20 does not include the power management unit 12. In other words, the power management unit 12 exists as an environmental element relative to the circuit structure 20, and its existence should not be understood as a limitation on the circuit structure 20 provided in the embodiment of the present application.
[0111] The following is divided into two parts, which provide a detailed explanation of the circuit structure 20 and its working process provided in the embodiment of the present application.
[0112] In the first part, the circuit structure 20 and its working process are explained from the perspective of the electrical modules that the circuit structure 20 may include.
[0113] 1. The circuit structure 20 may further include a clock module 240 .
[0114] Fig. 9 2 is a structural diagram of another circuit structure 20 provided in an embodiment of the present application. Fig. 9 As shown, in some embodiments, the circuit structure 20 may further include a clock module 240 .
[0115] The clock module 240 has a power supply terminal f and an output terminal g. The output terminal v of the voltage regulating module 210 is connected to the power supply terminal f of the clock module 240 so that the voltage regulating module 210 can supply power to the clock module 240, thereby powering on the clock module 240. The clock module 240 is used to generate a clock signal when it is working. In the embodiment of the present application, for the sake of distinction, the clock signal generated by the clock module 240 is referred to as the system clock signal CKA. The output terminal g of the clock module 240 is connected to the first terminal h of the calculation module 220 and the second terminal i of the voltage monitoring module 230 so that the clock module 240 can output the system clock signal CKA to the calculation module 220 and the voltage monitoring module 230. In the embodiment of the present application, the system clock signal CKA has a certain frequency. When the calculation module 220 is working, the frequency of the input system clock signal CKA is the target operating frequency of the calculation module 220, that is, the operating frequency required for the calculation module 220 to work.
[0116] 2. The circuit structure 20 may further include a load prediction module 250 and a voltage regulation module 260 .
[0117] Fig.10 2 is a structural diagram of another circuit structure 20 provided in an embodiment of the present application. Fig.10 As shown, in some embodiments, the circuit structure 20 may further include a load prediction module 250 and a voltage regulation module 260 .
[0118] The load prediction module 250 has a first terminal m and a second terminal n. The first terminal m of the load prediction module 250 is connected to the second terminal t of the calculation module 220. When the load prediction module 250 is working, it can determine the working frequency of the calculation module 220 within the next preset time length based on the current working state of the calculation module 220, that is, the predicted working frequency. The second terminal n of the load prediction module 250 is connected to the second input terminal p of the voltage regulation module 260, so that the load prediction module 250 can transmit the predicted working frequency to the voltage regulation module 260.
[0119] The voltage regulating module 260 also has a first input terminal j, a first output terminal s, a second output terminal q and a communication terminal k. Among them, the first input terminal j of the voltage regulating module 260 is connected to the second output terminal d of the voltage monitoring module 230, so that the voltage monitoring module 230 can transmit a control signal to the voltage regulating module 260. The first output terminal s of the voltage regulating module 260 is connected to the third input terminal x of the voltage monitoring module 230, so that the voltage regulating module 260 can transmit a control signal to the voltage monitoring module 230. In some embodiments, the first input terminal j and the first output terminal s of the voltage regulating module 260 can be combined into one input and output terminal; the third input terminal x and the second output terminal d of the voltage monitoring module 230 can also be combined into one input and output terminal. The second output terminal q of the voltage regulating module 260 is connected to the input terminal r of the clock module 240, so that the voltage regulating module 260 can transmit a control signal to the clock module 240, so that the voltage regulating module 260 can control the frequency of the system clock signal CKA output by the clock module 240. The communication terminal k of the voltage regulating module 260 is connected to the communication terminal e of the power management unit 12, so that the voltage regulating module 260 and the power management unit 12 can transmit communication signals to each other. In the embodiment of the present application, the voltage regulating module 260 still stores the correspondence between frequency and voltage, that is, the preset correspondence of the related technology. For the convenience of distinction, this correspondence is called the first correspondence. That is to say, after receiving the predicted operating frequency, the voltage regulating module 260 can obtain the maximum operating voltage of the calculation module 220 corresponding to the predicted operating frequency according to the first correspondence.
[0120] The voltage monitoring module 230 may further have a fourth input terminal z. The fourth input terminal z of the voltage monitoring module 230 is connected to the input terminal u of the voltage regulating module 210 to detect the input voltage of the voltage regulating module 210.
[0121] 3. The specific working process of the circuit structure 20.
[0122] Below Fig.10 The working process of the circuit structure 20 shown is described in detail. Still taking the working process of the circuit structure 20 including the preset time length T0 as an example, the working process of the circuit structure 20 is specifically as follows:
[0123] Before the start time of the preset duration T0, the load prediction module 250 determines the predicted operating frequency F0, which is the operating frequency required by the calculation module 220 in the upcoming preset duration T0 determined by the load prediction module 250. That is, the predicted operating frequency F0 is the target operating frequency of the calculation module 220 in the upcoming preset duration T0. At this time, the load prediction module 250 transmits the predicted operating frequency F0 to the voltage regulation module 260 through its second end n. After receiving the predicted operating frequency F0, the voltage regulation module 260 determines the maximum operating voltage of the calculation module 220 corresponding to the predicted operating frequency F0 from the first corresponding relationship. For ease of description, the maximum operating voltage determined by the voltage regulation module 260 according to the predicted operating frequency F0 is referred to as voltage V0. It can be understood that when the circuit structure 20 is working, the load prediction module 250 transmits the predicted operating frequency to the voltage regulation module 260 once every certain duration, and the time length of the "certain duration" here is equal to the time length of the "preset duration T0". For ease of description, the predicted operating frequency received last time before the voltage regulating module 260 receives the predicted operating frequency F0 is referred to as F0A. In some embodiments, the voltage regulating module 260 determines the maximum operating voltage of the calculation module 220 corresponding to the predicted operating frequency F0 from the first corresponding relationship only when the currently received predicted operating frequency F0 is not equal to the predicted operating frequency F0A received last time. If the currently received predicted operating frequency F0 is equal to the predicted operating frequency F0A received last time, the voltage regulating module 260 does not need to re-determine the maximum operating voltage of the calculation module 220.
[0124] After the voltage regulating module 260 determines the voltage V0, it is used to implement the following three functions: (1) The voltage regulating module 260 transmits a second control signal to the voltage monitoring module 230 through its first output terminal s, and the second control signal is used to instruct the voltage monitoring module 230 to store the voltage V0. Here, "storing the voltage V0" means storing the value of the voltage V0. (2) The voltage regulating module 260 transmits a first communication signal to the power management unit 12 through its communication terminal k, and the first communication signal is used to instruct the power management unit 12 to output the voltage V0. The moment when the power management unit 12 outputs the voltage V0 is the starting moment of the preset duration T0. (3) The voltage regulating module 260 transmits a third control signal to the clock module 240 through its second output terminal q, and the third control signal is used to instruct the clock module 240 to output the system clock signal CKA at a frequency equal to the predicted operating frequency F0 within the preset duration T0. It is easy to understand that the order in which the voltage regulating module 260 implements these three functions can be determined based on the magnitude of the predicted operating frequency F0 relative to the predicted operating frequency F0A. For example, if the predicted operating frequency F0 is greater than the predicted operating frequency F0A, the voltage regulating module 260 can successively implement functions (1), (2), and (3). If the predicted operating frequency F0 is less than the predicted operating frequency F0A, the voltage regulating module 260 can successively implement functions (3), (2), and (1).
[0125] Within the preset time length T0, the voltage monitoring module 230 is used to implement the following two functions: (4) The voltage monitoring module 230 can detect the input voltage of the calculation module 220, and determine the magnitude relationship between the input voltage of the calculation module 220 and the working voltage of the calculation module 220 based on the input voltage of the calculation module 220 and the operating environment, thereby determining whether the input voltage of the calculation module 220 (i.e., the output voltage of the output terminal v of the voltage regulation module 210) needs to be adjusted. When the input voltage of the calculation module 220 needs to be adjusted (i.e., when the input voltage of the calculation module 220 is not equal to the working voltage of the calculation module 220), the voltage monitoring module 230 can also determine the voltage adjustment amount required for the input voltage of the calculation module 220. It is easy to understand that the voltage adjustment amount is equal to the difference between the working voltage of the calculation module 220 and the input voltage of the calculation module 220. Among them, the operating environment of the calculation module 220 includes but is not limited to the aging degree of the calculation module 220, the temperature of the environment in which the calculation module 220 is located, etc. (5) After the voltage monitoring module 230 determines the voltage adjustment amount required for the input voltage of the calculation module 220, it outputs a first control signal to the voltage regulation module 210 through its first output terminal y according to the stored voltage V0 and the voltage adjustment amount, so as to adjust the input voltage of the calculation module 220, thereby realizing rapid adjustment of the input voltage of the calculation module 220.
[0126] Based on the function (5) implemented by the voltage monitoring module 230, when the voltage regulating module 260 implements the function (1), the second control signal is also used to instruct the voltage monitoring module 230 to set the voltage adjustment amount to zero.
[0127] In some other embodiments, within the preset time length T0, the voltage monitoring module 230 is also used to implement the following functions: (6) when the difference between the input voltage of the voltage regulating module 210 and the input voltage of the calculation module 220 (i.e., the output voltage of the voltage regulating module 210) is greater than the first preset voltage, a fourth control signal is transmitted to the voltage regulating module 260 through its second output terminal d. The fourth control signal includes the voltage V0 currently stored in the voltage monitoring module 230 and the voltage adjustment amount.
[0128] Based on the function (6) implemented by the voltage monitoring module 230, the voltage regulating module 260 is also used to implement the following functions: (7) When receiving the fourth control signal, transmit a third communication signal to the power management unit 12 through its communication terminal k. The third communication signal is used to instruct the power management unit 12 to output a specified voltage. The specified voltage is equal to the sum of the voltage V0, the voltage adjustment amount and the second preset voltage. The second preset voltage is the voltage drop when the voltage regulating module 210 is in the maximum conduction state. The second preset voltage can be set by a person skilled in the art according to requirements. Generally, the second preset voltage is about 10mV. In this way, it can be ensured that the difference between the input voltage and the output voltage of the voltage regulating module 210 is always no greater than the first preset voltage, thereby reducing energy waste.
[0129] In some other embodiments, within the preset time length T0, based on the function (7) implemented by the voltage regulating module 260, the voltage monitoring module 230 is further used to implement the following function: (8) after transmitting the fourth control signal to the voltage regulating module 260, the voltage adjustment amount is set to zero. In this way, it can be ensured that when the power management unit 12 outputs the specified voltage, the voltage regulating module 210 is in the maximum conduction state.
[0130] In some other embodiments, within the preset time length T0, based on the function (7) implemented by the voltage regulating module 260, the voltage regulating module 260 can also be used to implement the following function (9): shielding the fourth control signal when transmitting the first communication signal to the power management unit 12; and re-receiving the fourth control signal after transmitting the second control signal to the voltage monitoring module 230. In this way, it can be ensured that at the beginning of the preset time length T0, the output voltage of the power management unit 12 is the voltage V0.
[0131] In the second part, the circuit structure 20 and its working process are explained from the specific structure of each electrical module.
[0132] 1. Specific structure of the voltage regulation module 210.
[0133] Fig.11 is a circuit diagram of a voltage regulation module 210 provided in an embodiment of the present application. Fig.11 As shown, in some embodiments, the voltage regulation module 210 includes a transistor Q0 and a control unit 212 .
[0134] The transistor Q0 may be a field effect transistor (FET), for example, a metal oxide semiconductor field effect transistor (MOSFET). The first end of the transistor Q0 is connected to the output end a of the power management unit 12. That is, the first end of the transistor Q0 is the input end u of the voltage regulation module 210. The second end of the transistor Q0 is connected to the power supply end b of the calculation module 220. That is, the second end of the transistor Q0 is the output end v of the voltage regulation module 210. In some specific embodiments, the transistor Q0 may be a power control MOSFET.
[0135] The input terminal 1 of the control unit 212 is connected to the first output terminal y of the voltage monitoring module 230 for receiving the first control signal. That is, the input terminal 1 of the control unit 212 is the control terminal w of the voltage regulating module 210. The output terminal 2 of the control unit 212 is connected to the control terminal of the transistor Q0. In this embodiment, the first control signal can adjust the output voltage of the output terminal 2 of the control unit 212 to adjust the on-resistance of the transistor Q0, thereby controlling the output voltage of the voltage regulating module 210.
[0136] Specifically, it is still Fig.11 As shown, the control unit 212 may include a voltage controller 2122 and a driver 2124. The input end of the voltage controller 2122 is connected to the output end of the voltage monitoring module 230 for receiving a first control signal. The output end of the voltage controller 2122 is connected to the input end of the driver 2124 for outputting a first voltage VA to the driver 2124. The output end of the driver 2124 is connected to the control end of the transistor Q0. The first control signal is used to control the magnitude of the first voltage VA output by the voltage controller 2122. The driver 2124 is used to convert the first voltage VA into a second voltage VB and output it to the control end of the transistor Q0. The second voltage VB is used to drive the transistor Q0 to turn on. In other words, the driver 2124 is used to adjust the on-resistance of the transistor according to the magnitude of the first voltage VA.
[0137] In some specific embodiments, the voltage controller 2122 includes a reference voltage source 21222, M resistors, M switches, and a first logic controller 21224. M is an integer greater than or equal to 2. For example, if M is equal to 4, then Fig.11 In the voltage regulation module 210 shown in FIG. 1 , the circuit diagram of the voltage controller 2122 may be as follows: Fig.12 shown.
[0138] The reference voltage source 21222 is used to output a reference voltage Vref. The reference voltage Vref is a voltage with a fixed voltage value. For example, the reference voltage source 21222 can be a bandgap reference power supply. The bandgap reference power supply can include a positive temperature coefficient voltage generating circuit and a negative temperature coefficient voltage generating circuit, wherein the coefficient of the positive temperature coefficient voltage generating circuit is equal to the coefficient of the negative temperature coefficient voltage generating circuit so that the two cancel each other out. In this way, the reference voltage Vref output by the bandgap reference power supply is independent of temperature, that is, the voltage value of the reference voltage Vref is fixed. In some specific embodiments, the reference voltage Vref is 1.25V (volts).
[0139] M resistors are connected in series between the output terminal of the reference voltage source 21222 for outputting the reference voltage Vref and the ground line GND. Specifically, the first terminal of the first resistor among the M resistors is connected to the output terminal of the reference voltage source 21222. The second terminal of the Mth resistor among the M resistors is connected to the ground line GND, and the first terminal of the i-th resistor among the M resistors is connected to the second terminal of the i-1th resistor. Among them, i traverses from 2 to M, that is, i is equal to 2, 3, 4...M in sequence. For example, in Fig.12 In the illustrated embodiment, the first end of the first resistor R1 is connected to the output end of the reference voltage source 21222, the first end of the second resistor R2 is connected to the second end of the first resistor R1, the first end of the third resistor R3 is connected to the second end of the second resistor R2, the first end of the fourth resistor R4 is connected to the second end of the third resistor R3, and the second end of the fourth resistor R4 is connected to the ground wire GND.
[0140] The first end of the p-th switch among the M switches is connected to the first end of the p-th resistor among the M resistors. The second end of each of the M switches is connected to the input end of the driver 2124, and is used to output the first voltage VA to the driver 2124. Here, p traverses from 1 to M, that is, p is equal to 1, 2, 3, 4, ..., M in sequence. For example, in Fig.12In the embodiment shown, the first end of the first switch K1 is connected to the first end of the first resistor R1, the first end of the second switch K2 is connected to the first end of the second resistor R2, the first end of the third switch K3 is connected to the first end of the third resistor R3, and the first end of the fourth switch K4 is connected to the first end of the fourth resistor R4. The second end of the first switch K1, the second end of the second switch K2, the second end of the third switch K3, and the second end of the fourth switch K4 are connected together and connected to the driver 2124 ( Fig.12 An input terminal of the transistor 2124 (not shown) is connected to output a first voltage VA to the driver 2124.
[0141] The input end of the first logic controller 21224 is connected to the first output end y of the voltage monitoring module 230. That is, the input end of the first logic controller 21224 is the control end w of the voltage regulation module 210. The output end of the first logic controller 21224 is connected to the control end of each of the M switches. The first logic controller 21224 is used to: control any one of the M switches to be turned on according to the first control signal. In an embodiment of the present application, the first control signal may be a digital signal, such as a 16-bit digital signal. The first logic controller 21224 may output a logic signal according to the first control signal. When the numbers represented by the first control signal are different, the logic signals are also different to control different switches to be turned on.
[0142] It is easy to understand that, when the reference voltage Vref is fixed, the larger M is, that is, the more resistors and switches there are in the voltage controller 2122, the finer the accuracy of the first voltage VA output by the voltage controller 2122. In this case, the accuracy of the second voltage VB output by the driver 2124 to the control terminal of the transistor Q0 is also finer, so the control accuracy of the output voltage of the voltage regulation module 210 is also finer. Among them, the accuracy of the voltage (including the first voltage VA, the second voltage VB, and the output voltage of the voltage regulation module 210) refers to the difference between two adjacent values of the voltage when the value of the voltage is adjusted. The smaller the difference, the finer the accuracy. Taking the first voltage VA as an example, when the reference voltage Vref is 1.25V, if the maximum value of the first voltage VA output by the voltage controller 2122 is 1.2V and the minimum value is 0.5V, then: Fig.12 As shown, when M is equal to 4, the accuracy of the first voltage VA is approximately 0.233V, that is, 233mV. When M is equal to 351, the accuracy of the first voltage VA is approximately 0.002V, that is, 2mV.
[0143] It is easy to understand that in the embodiment of the present application, as described above, the working principle of the voltage regulating module 210 is: by adjusting the on-resistance of the transistor Q0, the output voltage of the voltage regulating module 210 is controlled. Based on this, it can be known that the output voltage of the voltage regulating module 210 must be less than the input voltage of the voltage regulating module 210, that is, the input voltage of the calculation module 220 is less than the input voltage of the voltage regulating module 210.
[0144] 2. Specific structure of the voltage monitoring module 230.
[0145] (1) In some embodiments, when the circuit structure 20 is as follows Fig. 9 As shown, the circuit of the voltage monitoring module 230 can be as follows Fig.13 See Fig.13 The voltage monitoring module 230 includes a first counting unit 232 , a second counting unit 234 and a comparison control unit 236 .
[0146] The first input terminal 1 of the first counting unit 232 is connected to the power supply terminal b of the calculation module 220. That is, the first input terminal 1 of the first counting unit 232 is the first input terminal c of the voltage monitoring module 230. The second input terminal 2 of the first counting unit 232 is connected to the output terminal g of the clock module 240 for inputting the system clock signal CKA. The output terminal 3 of the first counting unit 232 is connected to the first input terminal 1 of the comparison control unit 236 for outputting the first count value to the comparison control unit 236. The first count value is used to characterize the actual operating frequency of the calculation module 220 under the current input voltage and operating environment.
[0147] The input terminal 1 of the second counting unit 234 is connected to the output terminal g of the clock module 240 for inputting the system clock signal CKA. That is, the second input terminal 2 of the first counting unit 232 and the input terminal 1 of the second counting unit 234 are connected together and constitute the second input terminal i of the voltage monitoring module 230. The output terminal 2 of the second counting unit 234 is connected to the second input terminal 2 of the comparison control unit 236 for outputting the second count value to the comparison control unit 236. The second count value is used to characterize the target operating frequency of the calculation module 220.
[0148] The output terminal 3 of the comparison control unit 236 is connected to the control terminal w of the voltage regulation module 210. That is, the output terminal 3 of the comparison control unit 236 is the first output terminal y of the voltage monitoring module 230. The comparison control unit 236 is used to: determine the voltage adjustment amount according to the first count value and the second count value; and output a first control signal to the voltage regulation module 210 according to the voltage adjustment amount.
[0149] Specifically, in some embodiments, Fig.13As shown, the first counting unit 232 includes a voltage-controlled oscillator 2322 and a first counter 2324 .
[0150] The first input terminal 1a of the voltage-controlled oscillator 2322 is connected to the power supply terminal b of the calculation module 220. That is, the first input terminal 1a of the voltage-controlled oscillator 2322 is the first input terminal 1 of the first counting unit 232. The second input terminal 1b of the voltage-controlled oscillator 2322 is connected to the output terminal g of the clock module 240. That is, the second input terminal 1b of the voltage-controlled oscillator 2322 is the second input terminal 2 of the first counting unit 232. The output terminal 1c of the voltage-controlled oscillator 2322 is connected to the input terminal 2a of the first counter 2324.
[0151] In the embodiment of the present application, under the same operating environment, the oscillation frequency of the voltage-controlled oscillator 2322 at any voltage is equal to the actual operating frequency of the computing module 220 at the arbitrary voltage. On the one hand, since the circuit structure 20 provided in the embodiment of the present application needs to be arranged in the electronic device as a whole, the operating environment of the voltage-controlled oscillator 2322 and the computing module 220 is the same. On the other hand, since the first input terminal 1a of the voltage-controlled oscillator 2322 is connected to the power supply terminal b of the computing module 220, at any time, the input voltage of the first input terminal 1a of the voltage-controlled oscillator 2322 is the same as the input voltage of the power supply terminal b of the computing module 220. It can be seen that the oscillation frequency of the voltage-controlled oscillator 2322 is equal to the actual operating frequency of the computing module 220 under the current input voltage and operating environment. In some specific embodiments, the voltage-controlled oscillator 2322 is a voltage-controlled ring oscillator (VCRO).
[0152] The first counter 2324 is used to count the oscillation frequency of the voltage-controlled oscillator 2322 to obtain a first count value. In this way, the first count value can represent the actual operating frequency of the calculation module 220 under the current input voltage and operating environment. The output terminal 2b of the first counter 2324 is connected to the first input terminal 1 of the comparison control unit 236, and is used to output the first count value to the comparison control unit 236. In other words, the output terminal 2b of the first counter 2324 is the output terminal 3 of the first counting unit 232.
[0153] In some embodiments, Fig.13 As shown, the second counting unit 234 includes a reference delay 2342 and a second counter 2344 .
[0154] The input terminal 3a of the reference delay device 2342 is connected to the output terminal g of the clock module 240. That is, the input terminal 3a of the reference delay device 2342 is connected to the second input terminal 1b of the voltage-controlled oscillator 2322 and constitutes the second input terminal i of the voltage monitoring module 230. The output terminal 3b of the reference delay device 2342 is connected to the input terminal 4a of the second counter 2344.
[0155] The second counter 2344 is used to count the frequency of the system clock signal CKA to obtain a second count value. In this way, the second count value can represent the target operating frequency of the calculation module 220. The output terminal 4b of the second counter 2344 is connected to the second input terminal 2 of the comparison control unit 236, and is used to output the second count value to the comparison control unit 236. In other words, the output terminal 4b of the second counter 2344 is the output terminal 2 of the second counting unit 234.
[0156] In the embodiment of the present application, the reference delay device 2342 is used to delay the system clock signal CKA so that the first count value and the second count value represent the actual operating frequency and the target operating frequency of the calculation module 220 at the same time.
[0157] In some embodiments, Fig.13 As shown, the comparison control unit 236 includes a comparator 2362 and a converter 2364 .
[0158] The first input terminal 5a of the comparator 2362 is connected to the output terminal 3 of the first counting unit 232 to input the first count value. That is, the first input terminal 5a of the comparator 2362 is the first input terminal 1 of the comparison control unit 236. The second input terminal 5b of the comparator 2362 is connected to the output terminal 2 of the second counting unit 234 to input the second count value. That is, the second input terminal 5b of the comparator 2362 is the second input terminal 2 of the comparison control unit 236. The output terminal 5c of the comparator 2362 is connected to the first input terminal 6a of the converter 2364. The comparator 2362 is used to calculate the difference between the first count value and the second count value, and output the difference between the first count value and the second count value to the converter 2364.
[0159] The output terminal 6b of the converter 2364 is connected to the control terminal w of the voltage regulating module 210. That is, the output terminal 6b of the converter 2364 is the output terminal 3 of the comparison control unit 236. The converter 2364 is used to convert the difference between the first count value and the second count value into a voltage adjustment amount, and output a first control signal to the voltage regulating module 210 according to the voltage adjustment amount.
[0160] In some specific embodiments, the converter 2364 stores a second correspondence relationship, which is a correspondence relationship between the difference and the voltage. For example, in the second correspondence relationship, the difference "100" can correspond to a voltage of 1mV. In this way, when the converter 2364 receives the difference between the first count value and the second count value, the voltage corresponding to the difference between the first count value and the second count value can be found from the second correspondence relationship, and the voltage is the voltage adjustment required for the input voltage of the calculation module 220, that is, the difference between the working voltage of the calculation module 220 and the input voltage of the calculation module 220. The second correspondence relationship can be set by those skilled in the art according to experience and needs. In some specific embodiments, the voltage adjustment amount obtained by the converter 2364 can be binary data; or, the converter 2364 can convert the obtained voltage adjustment amount into binary data. The first control signal includes the binary data.
[0161] (2) In some other embodiments, when the circuit structure 20 is as follows Fig.10 As shown, the circuit of the voltage monitoring module 230 can be as follows Fig.14 See Fig.14 In addition to the first counting unit 232 , the second counting unit 234 and the comparison control unit 236 , the voltage monitoring module 230 may further include a frequency divider 237 and a voltage difference protector 238 .
[0162] Specifically, the input terminal 1 of the frequency divider 237 is used to input the reference clock signal CKB. The output terminal 2 of the frequency divider 237 is connected to the third terminal 2c of the first counter 2324 and the third terminal 4c of the second counter 2344. When the circuit structure 20 is working, the frequency divider 237 is used to output the reference clock signal CKB to the first counter 2324 and the second counter 2344, so that the first counter 2324 and the second counter 2344 work synchronously under the action of the reference clock signal CKB.
[0163] The communication terminal 1 of the voltage difference protector 238 is connected to the communication terminal 6c of the converter 2364 so that the communication signal can be transmitted between the voltage difference protector 238 and the converter 2364. The first input terminal 2 of the voltage difference protector 238 is connected to the input terminal u of the voltage regulating module 210 to detect the input voltage of the voltage regulating module 210. In other words, the first input terminal 2 of the voltage difference protector 238 is the fourth input terminal z of the voltage monitoring module 230. The second input terminal 3 of the voltage difference protector 238 is connected to the power supply terminal b of the calculation module 220 to detect the input voltage of the calculation module 220 (i.e., the output voltage of the voltage regulating module 210). In other words, the second input terminal 3 of the voltage difference protector 238 and the first input terminal 1 of the first counting unit 232 are connected together to form the first input terminal c of the voltage monitoring module 230. The output terminal 4 of the voltage difference protector 238 is connected to the first input terminal j of the voltage regulating module 260 to transmit the control signal to the voltage regulating module 260. That is to say, the output terminal 4 of the voltage difference protector 238 is the second output terminal d of the voltage monitoring module 230 .
[0164] In this embodiment, if Fig.14 The converter 2364 also has a second input terminal 6d. The second input terminal 6d of the converter 2364 is connected to the first output terminal s of the voltage regulating module 260, so that the voltage regulating module 260 can transmit a control signal to the converter 2364 through its first output terminal s. In other words, the second input terminal 6d of the converter 2364 is the third input terminal x of the voltage monitoring module 230.
[0165] 3. Specific structure of the voltage regulating module 260.
[0166] In some embodiments, when the circuit structure 20 is as shown Fig.10 As shown, the circuit of the voltage regulating module 260 can be as follows Fig.15 See Fig.15 The voltage regulation module 260 may include a voltage regulation controller 262 and a memory 264 .
[0167] The first terminal 1 of the voltage regulator controller 262 is connected to the third input terminal x of the voltage monitoring module 230 (i.e., the second input terminal 6d of the converter 2364). In other words, the first terminal 1 of the voltage regulator controller 262 is the first output terminal s of the voltage regulator module 260. The second terminal 2 of the voltage regulator controller 262 is connected to the input terminal r of the clock module 240. In other words, the second terminal 2 of the voltage regulator controller 262 is the second output terminal q of the voltage regulator module 260. The third terminal 3 of the voltage regulator controller 262 is connected to the communication terminal e of the power management unit 12. In other words, the third terminal 3 of the voltage regulator controller 262 is the communication terminal k of the voltage regulator module 260. The fourth terminal 4 of the voltage regulator controller 262 is connected to the second terminal n of the load prediction module 250. In other words, the fourth terminal 4 of the voltage regulator controller 262 is the second input terminal p of the voltage regulator module 260. The fifth terminal 5 of the voltage regulator controller 262 is connected to the second output terminal d of the voltage monitoring module 230 (i.e., the output terminal 4 of the voltage difference protector 238). That is to say, the fifth terminal 5 of the voltage regulating controller 262 is the first input terminal j of the voltage regulating module 260 .
[0168] The first corresponding relationship is stored in the memory 264. In some specific embodiments, the first corresponding relationship may be as shown in Table 1 below.
[0169]
[0170] The sixth terminal 6 of the voltage regulating controller 262 is connected to the memory 264 , so that the voltage regulating controller 262 can read the first corresponding relationship stored in the memory 264 .
[0171] 4. The specific working process of the circuit structure 20.
[0172] Fig.16 is a circuit diagram of a circuit structure 20 provided in an embodiment of the present application, wherein the circuit diagram of the voltage monitoring module 230 is as shown in FIG. Fig.14 As shown, the circuit diagram of the voltage regulating module 260 is as shown in Fig.15 As shown below. Fig.16 The working process of the circuit structure 20 shown is described in detail. Still taking the working process of the circuit structure 20 including the preset time length T0 as an example, the working process of the circuit structure 20 is specifically as follows:
[0173] 1) The load prediction module 250 executes the following step S100.
[0174] S100 , the load prediction module 250 determines the predicted operating frequency F0 of the calculation module 220 within the next preset time length T0 , and outputs it to the voltage regulation module 260 .
[0175] Before the start time of the preset duration T0, the load prediction module 250 determines the predicted operating frequency F0, which is the operating frequency required by the calculation module 220 in the upcoming preset duration T0 determined by the load prediction module 250.
[0176] In the embodiment of the present application, the load prediction module 250 may perform step S100 once every certain time interval. The time length of the "certain time length" here is equal to the time length of the "preset time length T0". For ease of description, the predicted operating frequency received last time before the voltage regulating module 260 receives the predicted operating frequency F0 is referred to as F0A.
[0177] In some embodiments, step S100 may specifically include the following steps S110 to S130.
[0178] S110, the load prediction module 250 obtains the current load rate of the calculation module 220, and obtains the instruction data that the calculation module 220 needs to run within the next preset time period.
[0179] The load rate of the computing module 220 is affected by two factors: the actual operating frequency of the computing module 220 and the utilization rate of the computing module 220. Here, the load prediction module 250 can determine the current load rate of the computing module 220 based on the current actual operating frequency and utilization rate of the computing module 220.
[0180] S120, the load prediction module 250 determines the load rate of the calculation module 220 within the next preset time period according to the current load rate of the calculation module 220 and the instruction data that needs to be executed within the next preset time period.
[0181] S130, the load prediction module 250 determines the predicted operating frequency F0 of the calculation module 220 within the next preset time period according to the load rate of the calculation module 220 within the next preset time period.
[0182] In some specific embodiments, step S130 may specifically be: if the load rate of the calculation module 220 in the next preset time length exceeds the preset load rate, the load prediction module 250 determines the predicted operating frequency F0 of the calculation module 220 in the next preset time length according to the load rate of the calculation module 220 in the next preset time length. Among them, the preset load rate can be set by those skilled in the art according to experience and needs. For example, the preset load rate may be 50%, 60%, 70% or 80%, which is not limited here. In this embodiment, only when the load rate of the calculation module 220 in the next preset time length exceeds the preset load rate, the load prediction module 250 determines the predicted operating frequency F0 according to the load rate of the calculation module 220 in the next preset time length, so that the workload of the load prediction module 250 can be reduced, and the communication volume between the load prediction module 250 and the voltage regulation module 260 can be reduced, thereby reducing the communication pressure of the load prediction module 250 and the voltage regulation module 260.
[0183] In this specific embodiment, if the load rate of the calculation module 220 within the next preset time period T0 does not exceed the preset load rate, the load prediction module 250 may return to execute step S110 after waiting for a certain period of time, thereby realizing the loop execution of step S100.
[0184] S140 , the load prediction module 250 outputs the predicted operating frequency F0 to the voltage regulation module 260 .
[0185] After the load prediction module 250 determines the predicted operating frequency F0 of the calculation module 220 within the next preset time period, the load prediction module 250 transmits the predicted operating frequency F0 to the voltage regulation module 260 through the second terminal n thereof.
[0186] 2) The voltage regulating module 260 executes the following steps S210 to S240 and steps S310 to S340.
[0187] When the currently received predicted operating frequency F0 is greater than the last received predicted operating frequency F0A, the voltage regulating module 260 executes the following steps S210 to S240.
[0188] S210, if the currently received predicted operating frequency F0 is greater than the last received predicted operating frequency F0A, the voltage regulating module 260 determines the maximum operating voltage of the calculation module 220 according to the currently received predicted operating frequency F0.
[0189] When the currently received predicted operating frequency F0 is greater than the last received predicted operating frequency F0A, the voltage regulation controller 262 in the voltage regulation module 260 reads the first corresponding relationship stored in the memory 264, and determines the maximum operating voltage V0 (hereinafter still referred to as "voltage V0") of the calculation module 220 corresponding to the predicted operating frequency F0 from the first corresponding relationship based on the currently received predicted operating frequency F0.
[0190] S220 , the voltage regulation module 260 transmits a second control signal to the converter 2364 .
[0191] After determining the voltage V0, the voltage regulating controller 262 transmits a second control signal to the converter 2364 in the voltage monitoring module 230 through its first terminal 1. The second control signal is used to instruct the converter 2364 to store the value of the voltage V0.
[0192] In the embodiment of the present application, the converter 2364 may include a second logic controller and a register. The register has a first data bit and a second data bit. The first data bit is used to store the voltage value indicated by the second control signal, that is, the value of the voltage V0. For example, in some specific embodiments, the format of the register may be as follows: Fig.17 As shown. Fig.17 In the embodiment shown, the data bits of the register are 16 bits, of which the first data bit is 10 bits and the second data bit is 6 bits. It can be understood that since the number of bits of the first data bit is limited, the voltage represented by the minimum variable of the data stored in the first data bit (such as binary "1") can be set by those skilled in the art according to requirements. For example, in some specific embodiments, the minimum variable of the data stored in the first data bit can represent a voltage of 2mV (millivolts).
[0193] The second data bit is used to store the voltage adjustment amount required for the input voltage of the calculation module 220. Similarly, the voltage represented by the minimum variable of the data stored in the second data bit can be set by those skilled in the art according to requirements. For example, in some specific embodiments, the minimum variable of the data stored in the second data bit can represent a voltage of 2mV.
[0194] In this embodiment, the second logic controller is used to receive the second control signal. After receiving the second control signal, the second logic controller converts the value of the voltage V0 contained in the second control signal into binary data and stores it in the first data bit of the register. In this way, through step S220, the voltage regulating module 260 can achieve the above function (1).
[0195] S230 , the voltage regulating module 260 transmits a first communication signal to the power management unit 12 .
[0196] After the voltage regulator controller 262 transmits the second control signal to the converter 2364, it transmits the first communication signal to the communication terminal e of the power management unit 12 through its third terminal 3. The first communication signal is used to instruct the power management unit 12 to output the voltage V0.
[0197] After receiving the first communication signal, the power management unit 12 starts to adjust the output voltage of its output terminal a until the output voltage of the power management unit 12 is equal to the voltage V0. It is easy to understand that since the currently received predicted operating frequency F0 is greater than the predicted operating frequency F0A received last time, the first communication signal is a communication signal for boosting. After the power management unit 12 completes the voltage regulation, it transmits a second communication signal to the voltage regulation controller 262 through its communication terminal e. The second communication signal is used to indicate that the power management unit 12 has completed the voltage regulation, that is, it is used to indicate that the output voltage of the power management unit 12 is equal to the voltage V0. In this way, through step S230, the voltage regulation module 260 can achieve the above function (2). In the embodiment of the present application, the moment when the power management unit 12 completes the voltage regulation is referred to as the starting moment of the preset duration T0.
[0198] S240 , after receiving the second communication signal transmitted by the power management unit 12 , the voltage regulating module 260 transmits a third control signal to the clock module 240 .
[0199] After receiving the second communication signal, the voltage regulator controller 262 can determine that the power management unit 12 has completed the voltage regulation. At this time, the voltage regulator controller 262 transmits a third control signal to the clock module 240 through its second terminal 2. The third control signal is used to indicate that the frequency of the system clock signal CKA output by the clock module 240 is equal to the currently received predicted operating frequency F0. In this way, through step S240, the voltage regulator module 260 can achieve the above function (3).
[0200] In steps S210 to S240, since the currently received predicted operating frequency F0 is greater than the previously received predicted operating frequency F0A, it is necessary to first execute step S230 and then execute step S240 (i.e. first allow the power management unit 12 to complete the voltage boost and then increase the frequency of the system clock signal CKA), thereby ensuring that the clock module 240 can output the system clock signal CKA with a frequency equal to the predicted operating frequency F0.
[0201] When the currently received predicted operating frequency F0 is less than the last received predicted operating frequency F0A, the voltage regulating module 260 executes the following steps S310 to S340.
[0202] S310, if the currently received predicted operating frequency F0 is less than the last received predicted operating frequency F0A, the voltage regulating module 260 determines the maximum operating voltage of the calculation module 220 according to the currently received predicted operating frequency F0.
[0203] S320 , the voltage regulating module 260 transmits a third control signal to the clock module 240 .
[0204] S330 , the voltage regulating module 260 transmits a first communication signal to the power management unit 12 .
[0205] It is easy to understand that in this embodiment, since the currently received predicted operating frequency F0 is less than the last received predicted operating frequency F0A, the first communication signal is a reduced voltage communication signal.
[0206] S340 , after receiving the second communication signal transmitted by the power management unit 12 , the voltage regulation module 260 transmits a second control signal to the converter 2364 .
[0207] In steps S310 to S340, since the currently received predicted operating frequency F0 is less than the last received predicted operating frequency F0A, step S320 may be performed first, and then step S330 may be performed (i.e., the frequency of the system clock signal CKA is first reduced, and then the power management unit 12 is allowed to complete the voltage reduction). The specific working process of steps S310 to S340 will not be described in detail.
[0208] 3) The voltage monitoring module 230 executes the following step S400.
[0209] S400 , the voltage monitoring module 230 outputs a first control signal to the voltage regulating module 210 according to the input voltage of the calculation module 220 .
[0210] As described above, the voltage controlled oscillator 2322 in the voltage monitoring module 230 can monitor the input voltage of the calculation module 220, and obtain the actual operating frequency of the calculation module 220 based on the input voltage and operating environment of the calculation module 220. Through the voltage controlled oscillator 2322, the first counter 2324, the reference delay 2342, the second counter 2344 and the comparator 2362, the difference between the first count value and the second count value can be obtained.
[0211] The converter 2364 includes a second logic controller and a register. After obtaining the difference between the first count value and the second count value, the second logic controller can find the voltage corresponding to the difference between the first count value and the second count value from the stored second corresponding relationship, and the voltage is the voltage adjustment amount required for the input voltage of the calculation module 220. After determining the voltage adjustment amount required for the input voltage of the calculation module 220, the second logic controller converts the value of the voltage adjustment amount into binary data and stores it in the second data bit of the register.
[0212] When the data (i.e., voltage value) stored in at least one of the first data bit and the second data bit of the register is updated, that is, when the data stored in the register is updated, the second logic controller also outputs a first control signal to the voltage regulating module 210 (i.e., the converter 2364 outputs the first control signal to the voltage regulating module 210 through its output terminal 6b), and the first control signal may include the data stored in the first data bit of the register and the data stored in the second data bit. In other words, step S400 is specifically as follows: the second logic controller in the converter 2364 outputs the first control signal to the voltage regulating module 210 according to the voltage V0 and the voltage adjustment amount.
[0213] As mentioned above, after receiving the first control signal, the first logic controller 21224 in the voltage regulating module 210 can output a logic signal according to the first control signal to control the conduction of different switches, thereby controlling the first voltage VA output by the voltage controller 2122, and further controlling the conduction degree of the transistor Q0 in the voltage regulating module 210, thereby achieving the purpose of adjusting the input voltage of the calculation module 220. In this way, through step S400, the voltage monitoring module 230 can achieve the above functions (4) and (5).
[0214] Based on step S400, the second control signal in the above step S220 and the above step S340 is also used to instruct the converter 2364 to set the voltage adjustment amount to zero, so that the impedance of the transistor Q0 in the voltage regulation module 210 is minimized and the conduction degree is maximized, that is, the conduction degree of the voltage regulation module 210 is maximized.
[0215] 4) The voltage difference protector 238 in the voltage monitoring module 230 executes the following steps S510 to S520.
[0216] S510 , when the voltage difference between the voltage at the first input terminal 2 and the voltage at the second input terminal 3 of the voltage difference protector 238 is greater than the first preset voltage, the voltage difference protector 238 reads the voltage V0 and the voltage adjustment amount stored in the converter 2364 .
[0217] As mentioned above, the first input terminal 2 of the voltage difference protector 238 is connected to the input terminal u of the voltage regulating module 210 to detect the input voltage of the voltage regulating module 210. The second input terminal 3 of the voltage difference protector 238 is connected to the power supply terminal b of the calculation module 220 to detect the input voltage of the calculation module 220 (i.e., the output voltage of the voltage regulating module 210). That is, when the voltage difference of the input voltage of the voltage regulating module 210 minus the output voltage is greater than the first preset voltage, the voltage difference protector 238 reads the voltage V0 and the voltage adjustment amount stored in the converter 2364 through its communication terminal 1, that is, reads the data stored in the first data bit and the data stored in the second data bit of the register.
[0218] S520 , the voltage difference protector 238 transmits a fourth control signal to the voltage regulating module 260 .
[0219] After reading the voltage V0 and the voltage adjustment value stored in the converter 2364, the voltage difference protector 238 transmits a fourth control signal to the voltage regulator controller 262 through its output terminal 4. The fourth control signal includes the voltage V0 and the voltage adjustment value.
[0220] In some specific embodiments, the fourth control signal includes a specific voltage value, that is, the fourth control signal includes a specific voltage value represented by the data stored in the first data bit and the data stored in the second data bit of the register. In this case, after reading the data stored in the first data bit and the data stored in the second data bit, the voltage difference protector 238 needs to convert the data stored in the first data bit and the data stored in the second data bit into a specific voltage value. The conversion process may include the following steps S521 to S523.
[0221] S521, the voltage difference protector 238 multiplies the data stored in the first data bit by a first coefficient to obtain a first voltage value.
[0222] As mentioned above, the voltage represented by the minimum variable of the data stored in the first data bit can be set by a person skilled in the art according to the requirements. Here, the first coefficient is the voltage represented by the minimum variable of the data stored in the first data bit. For example, when the voltage represented by the minimum variable of the data stored in the first data bit is 1mV, the first coefficient is 1; when the voltage represented by the minimum variable of the data stored in the first data bit is 2mV, the first coefficient is 2.
[0223] S522, the voltage difference protector 238 multiplies the data stored in the second data bit by a second coefficient to obtain a second voltage value.
[0224] The second coefficient is the voltage represented by the minimum variable of the data stored in the second data bit. It is easy to understand that the second voltage value is generally a negative number.
[0225] S523, adding the first voltage value and the second voltage value to obtain a specific voltage value represented by the data stored in the first data bit and the data stored in the second data bit of the register.
[0226] It is easy to understand that since the first control signal includes the data stored in the first data bit of the register and the data stored in the second data bit, and the purpose of the first control signal is to make the input voltage of the calculation module 220 equal to the working voltage of the calculation module 220, in the embodiment of the present application, the specific voltage value obtained in step S520 is the working voltage of the calculation module 220. In other words, the data stored in the first data bit of the register and the data stored in the second data bit are used to represent the voltage required to be input by the calculation module 220 to achieve the target working frequency under the current operating environment.
[0227] In this way, through step S510 and step S520, the voltage monitoring module 230 can achieve the above function (6).
[0228] 5) The voltage regulating module 260 executes the following step S600.
[0229] S600 , when receiving the fourth control signal, the voltage regulating module 260 transmits a third communication signal to the power management unit 12 .
[0230] After receiving the fourth control signal, the voltage regulator controller 262 transmits a third communication signal to the communication terminal e of the power management unit 12 through its third terminal 3. The third communication signal is used to instruct the power management unit 12 to output a specified voltage. The specified voltage is equal to the sum of the maximum operating voltage, the voltage adjustment amount and the second preset voltage. In other words, the specified voltage is equal to the sum of the specific voltage value contained in the fourth control signal and the second preset voltage. The second preset voltage here is the voltage drop when the voltage regulation module 210 is in the maximum conduction state, which is a positive voltage value. In this way, the voltage regulation module 260 can achieve the above function (7) through step S600, thereby ensuring that the difference between the input voltage and the output voltage of the voltage regulation module 210 is always no greater than the first preset voltage, thereby reducing energy waste while achieving rapid voltage regulation.
[0231] It can be understood that when the power management unit 12 outputs the specified voltage and the voltage regulation module 210 is in the maximum conduction state, the value of the input voltage of the calculation module 220 is the specific voltage value, that is, the input voltage of the calculation module 220 is equal to the working voltage. Based on this, after executing step S520, the voltage difference protector 238 needs to execute the following step S700: after transmitting the fourth control signal to the voltage regulation module 260, the voltage difference protector 238 transmits the fourth communication signal to the converter 2364. The fourth communication signal is used to instruct the converter 2364 to set the voltage adjustment amount to zero, so that the voltage regulation module 210 can be in the maximum conduction state, thereby avoiding the input voltage drop of the calculation module 220 after the power management unit 12 reduces the voltage, and ensuring the normal operation of the calculation module 220. Through step S700, the voltage monitoring module 230 can realize the above function (8).
[0232] 6) The voltage regulating module 260 executes the following steps S710 and S720.
[0233] S710 , when the voltage regulating module 260 transmits the first communication signal to the power management unit 12 , the fourth control signal is shielded.
[0234] S720 , after transmitting the second control signal to the converter 2364 , the voltage regulating module 260 receives the fourth control signal again.
[0235] Step S710 and step S720 need to be performed based on step S310 to step S340. Specifically, in the above steps S310 to step S340, the currently received predicted operating frequency F0 is less than the predicted operating frequency F0A received last time, and the first communication signal is a communication signal for voltage reduction. Therefore, in the process of voltage regulation (voltage reduction) of the power management unit 12, in order to prevent the fourth control signal from affecting the voltage reduction process, the voltage regulation controller 262 needs to shield the fourth control signal. The voltage regulation controller 262 shielding the fourth control signal means that the voltage regulation controller 262 does not receive the fourth control signal, or receives the fourth control signal but does not respond to the fourth control signal. In addition, as described in step S340, the voltage regulation controller 262 needs to transmit the second control signal to the converter 2364 after the power management unit 12 completes the voltage regulation. That is, when the voltage regulation controller 262 transmits the second control signal to the converter 2364, the power management unit 12 has completed the voltage regulation, so in this case, the voltage regulation controller 262 needs to receive the fourth control signal again and respond to the fourth control signal.
[0236] In this way, through step S710 and step S720, the voltage monitoring module 230 can achieve the above function (9).
[0237] In the following, in conjunction with the accompanying drawings, Fig.16 The working process of the circuit structure 20 shown is described in detail.
[0238] Fig.18 is a working flow chart of a circuit structure 20 provided in an embodiment of the present application, Fig.19 2 is a power supply effect diagram of a circuit structure 20 provided in an embodiment of the present application. Fig.18 and Fig.19 As shown, the working process of the circuit structure 20 includes the following steps S1 to S18.
[0239] S1, predicts that the operating frequency changes.
[0240] The load prediction module 250 is used to determine the predicted operating frequency of the calculation module 220 within the next preset time period and output it to the voltage regulation controller 262 of the voltage regulation module 260. Fig. 20As shown, step S1 specifically includes the following steps S1a to S1e.
[0241] S1a, obtaining the current load rate of the calculation module 220.
[0242] The load prediction module 250 obtains the current load rate of the calculation module 220 .
[0243] S1b, obtaining instruction data that the calculation module 220 needs to execute within the next preset time period.
[0244] The load prediction module 250 obtains instruction data that the calculation module 220 needs to run within the next preset time period.
[0245] S1c, determining the load rate of the calculation module 220 within the next preset time period.
[0246] The load prediction module 250 determines the load rate of the calculation module 220 within the next preset time period according to the current load rate of the calculation module 220 and the instruction data that needs to be executed within the next preset time period.
[0247] S1d, determining whether the load rate within the next preset time period exceeds a preset load rate.
[0248] The load prediction module 250 determines whether the load rate within the next preset time period exceeds the preset load rate. If not, the process may directly return to step S1a, or return to step S1a after waiting for the preset time period. If yes, the process may proceed to step S1e.
[0249] S1e, determining the predicted operating frequency of the calculation module 220 within the next preset time period, and outputting it to the voltage regulation controller 262.
[0250] The load prediction module 250 determines the predicted operating frequency of the calculation module 220 within the next preset duration, and outputs it to the voltage regulator controller 262. It is easy to understand that after step S1d, the predicted operating frequency of the calculation module 220 within the next preset duration determined by the load prediction module 250 in step S1e is different from the predicted operating frequency determined last time. That is, the predicted operating frequency changes.
[0251] S2, determining whether the predicted operating frequency increases.
[0252] After receiving the predicted operating frequency, the voltage regulator controller 262 determines whether the predicted operating frequency is increased. Fig.19 In the illustrated embodiment, at time t0 , the voltage regulator controller 262 determines that the predicted operating frequency is increased.
[0253] If the predicted operating frequency increases, the following steps S3 to S10 are performed.
[0254] S3, querying the first corresponding relationship, and determining the maximum operating voltage of the calculation module 220 according to the currently received predicted operating frequency.
[0255] The voltage regulation control reads the first corresponding relationship stored in the memory 264, and determines the maximum operating voltage of the calculation module 220 corresponding to the predicted operating frequency from the first corresponding relationship according to the currently received predicted operating frequency.
[0256] S4, transmits a second control signal to converter 2364.
[0257] The converter 2364 includes a second logic controller and a register. The register has a first data bit and a second data bit.
[0258] The voltage regulator controller 262 transmits a second control signal to the converter 2364. The second control signal includes the maximum operating voltage determined in step S3. After receiving the second control signal, the converter 2364 converts the maximum operating voltage into binary data and stores it in the first data bit.
[0259] After receiving the second control signal, the converter 2364 sets the data stored in the second data bit to zero.
[0260] When the converter 2364 is working, it outputs a first control signal to the voltage regulating module 210, which is used to control the conduction degree of the voltage regulating module 210. The first control signal includes the data stored in the first data bit and the data stored in the second data bit. When the data stored in the second data bit is zero, the conduction degree of the voltage regulating module 210 is the maximum. Based on this, Fig.19 As shown, at time t0, that is, when the voltage regulator controller 262 transmits the second control signal to the converter 2364 to set the data stored in the second data bit to zero, the output voltage VOUT1 of the voltage regulator module 210 begins to increase because the conduction degree of the voltage regulator module 210 is adjusted to the maximum. Until time t1, the output voltage VOUT1 of the voltage regulator module 210 no longer increases.
[0261] S5, transmitting a first communication signal to the power management unit 12.
[0262] After transmitting the second control signal to the converter 2364, the voltage regulator controller 262 also transmits a first communication signal to the power management unit 12. The first communication signal is used to instruct the power management unit 12 to output the maximum operating voltage determined in step S3.
[0263] Due to the transmission delay of the communication signal, at time t2, the output voltage of the power management unit 12 begins to increase, that is, the input voltage VIN1 of the voltage regulation module 210 begins to increase.
[0264] S6, waiting for the power management unit 12 to complete voltage regulation.
[0265] After the power management unit 12 completes the voltage regulation, it transmits a second communication signal to the voltage regulation controller 262. Before receiving the second communication signal, the voltage regulation controller 262 needs to wait for the power management unit 12 to complete the voltage regulation.
[0266] S7, determining whether the voltage regulation of the power management unit 12 is completed.
[0267] The voltage regulator controller 262 determines whether the voltage regulation of the power management unit 12 is completed. If the voltage regulator controller 262 does not receive the second communication signal transmitted by the power management unit 12, it is determined that the voltage regulation of the power management unit 12 is not completed, and step S8 is executed. If the voltage regulator controller 262 receives the second communication signal transmitted by the power management unit 12, it is determined that the voltage regulation of the power management unit 12 is completed, and step S10 is executed.
[0268] S8, determining whether the voltage regulation of the power management unit 12 has timed out.
[0269] The voltage regulation controller 262 determines whether the voltage regulation of the power management unit 12 exceeds the preset voltage regulation time. If so, step S9 is executed and the system reports an error. If not, step S6 is returned to execute.
[0270] S10 , transmitting a third control signal to the clock module 240 .
[0271] The voltage regulation controller 262 transmits a third control signal to the clock module 240 to instruct the clock module 240 to output a system clock signal CKA with a frequency equal to the currently received predicted operating frequency.
[0272] For example, in Fig.19 In the illustrated embodiment, at time t3, the output voltage of the power management unit 12 is equal to the maximum operating voltage determined in step S3, and at this time, the input voltage VIN1 of the voltage regulation module 210 no longer increases, that is, the voltage regulation of the power management unit 12 is completed. Based on this, at time t3, the voltage regulation controller 262 can control the frequency of the system clock signal CKA output by the clock module 240 to be equal to the currently received predicted operating frequency.
[0273] After time t3 and before time t4, the voltage monitoring module 230 can determine the voltage adjustment required for the input voltage of the calculation module 220 based on the input voltage of the calculation module 220 and the frequency of the system clock signal CKA, and convert the value of the voltage adjustment into binary data and store it in the second data bit of the register. When the converter 2364 in the voltage regulation module 210 is working, it outputs a first control signal to the voltage regulation module 210 to control the conduction degree of the voltage regulation module 210. In this way, the input voltage of the calculation module 220 can be adjusted by controlling the conduction degree of the voltage regulation module 210, so that the input voltage of the calculation module 220 is equal to the operating voltage of the calculation module 220, even if the actual operating frequency of the calculation module 220 is equal to the frequency of the system clock signal CKA. In this process, since the transmission of the first control signal between the converter 2364 and the voltage regulating module 210 does not require the use of a communication bus, the transmission speed of the first control signal is faster than the transmission speed of the first communication signal. In addition, the voltage regulating speed of the voltage regulating module 210 is greater than the voltage regulating speed of the power management unit 12, so the input voltage of the computing module 220 can be quickly regulated. Based on this, from time t3 to time t4, compared with Figure 7 The related technology shown in the figure, the voltage value that can be saved in the embodiment of the present application is the second voltage difference value ( Figure 7 The difference between V2 and V3 in the related art shown).
[0274] At time t4, the voltage difference of the input voltage minus the output voltage of the voltage regulating module 210 is greater than the first preset voltage, that is, the voltage difference between the input voltage and the output voltage of the voltage regulating module 210 is too large. At this time, the voltage difference protector 238 reads the maximum operating voltage and the voltage adjustment amount stored in the converter 2364, and after converting them into a specific voltage value, transmits a fourth control signal to the voltage regulating controller 262. The fourth control signal includes the specific voltage value.
[0275] After time t4, that is, after the voltage difference protector 238 transmits the fourth control signal to the voltage regulator controller 262, the voltage difference protector 238 also needs to transmit a fourth communication signal to the converter 2364. The fourth communication signal is used to instruct the converter 2364 to set the voltage adjustment amount to zero, that is, to set the data stored in the second data bit to zero. When the data stored in the second data bit is zero, the conduction degree of the voltage regulation module 210 is the largest. Based on this, if Fig.19 As shown, at time t5, the voltage difference protector 238 transmits a fourth communication signal to the converter 2364, setting the data stored in the second data bit to zero. At this time, the output voltage VOUT1 of the voltage regulation module 210 increases (the change process is not shown in the figure).
[0276] After receiving the fourth control signal, the voltage regulator controller 262 transmits a third communication signal to the power management unit 12 to instruct the power management unit 12 to output a specified voltage. The specified voltage is equal to the sum of the specific voltage value contained in the fourth control signal and the second preset voltage. It is easy to understand that the process of the power management unit 12 outputting the specified voltage is a voltage reduction process. Based on this, from time t5 to time t6, the input voltage VIN1 of the voltage regulation module 210 decreases, and at this time, the output voltage VOUT1 of the voltage regulation module 210 will also decrease. At time t6, the power management unit 12 completes the voltage regulation. At this time, since the data stored in the second data bit is zero, the output voltage VOUT1 of the voltage regulation module 210 is still equal to the output voltage VOUT1 of the voltage regulation module 210 between time t4 and time t5.
[0277] At time t7, the voltage regulator controller 262 receives a new predicted operating frequency, and the predicted operating frequency decreases. Based on this, the following steps S11 to S18 need to be performed.
[0278] S11, querying the first corresponding relationship, and determining the maximum operating voltage of the calculation module 220 according to the currently received predicted operating frequency.
[0279] Step S11 is the same as step S3 and will not be described in detail.
[0280] S12 , transmitting a third control signal to the clock module 240 .
[0281] When the predicted operating frequency decreases, the voltage regulator controller 262 first transmits a third control signal to the clock module 240 to instruct the clock module 240 to output a system clock signal CKA with a frequency equal to the currently received predicted operating frequency.
[0282] For example, in Fig.19 In the illustrated embodiment, at time t7, the predicted operating frequency decreases, based on which the voltage regulator controller 262 controls the frequency of the system clock signal CKA output by the clock module 240 to decrease so that the frequency of the system clock signal CKA is equal to the currently received predicted operating frequency.
[0283] S13, shielding the fourth control signal, and transmitting the first communication signal to the power management unit 12.
[0284] After the voltage regulator controller 262 transmits the third control signal to the clock module 240, it also transmits the first communication signal to the power management unit 12. The first communication signal is used to instruct the power management unit 12 to output the maximum operating voltage determined in step S11. It is easy to understand that in step S13, the first communication signal is used to instruct the power management unit 12 to reduce the voltage. Based on this, Fig.19As shown, at time t7, the input voltage VIN1 of the voltage regulating module 210 begins to decrease, and at this time, the output voltage VOUT1 of the voltage regulating module 210 also decreases.
[0285] When the power management unit 12 reduces the voltage according to the first communication signal, the voltage regulation controller 262 also shields the fourth control signal to prevent the fourth control signal from affecting the voltage regulation of the power management unit 12 .
[0286] S14, waiting for the power management unit 12 to complete voltage regulation.
[0287] Step S14 is the same as step S6 and will not be described in detail.
[0288] S15, determining whether the voltage regulation of the power management unit 12 is completed.
[0289] Step S15 is the same as step S7 and will not be described in detail. If not completed, step S16 is executed. If completed, step S18 is executed.
[0290] S16, determining whether the voltage regulation of the power management unit 12 has timed out.
[0291] Step S16 is the same as step S8. If yes, then step S17 is executed and the system reports an error. If no, then step S14 is returned to execute.
[0292] S18, transmitting the second control signal to the converter 2364, and canceling the shielding of the fourth control signal.
[0293] The "transmitting the second control signal to the converter 2364" in step S18 is the same as step S4 and will not be described again. After the voltage regulator controller 262 cancels the shielding of the fourth control signal, it can ensure that the difference between the input voltage and the output voltage of the voltage regulation module 210 is always no greater than the first preset voltage. Fig.19 In the illustrated embodiment, at time t8, the power management unit 12 completes voltage regulation.
[0294] In some other embodiments of the present application, the first communication signal can also be used to indicate that the output voltage of the power management unit 12 is equal to the sum of the determined maximum operating voltage plus the second preset voltage to ensure that the input voltage of the computing module 220 can be equal to the maximum operating voltage at most.
[0295] In some other embodiments of the present application, the working process of the circuit structure may also be to first execute step S3 (or step S11) after step S1. After executing step S3, execute step S2. In this case, if the judgment result of step S2 is yes, directly execute step S4. If the judgment result of step S2 is no, directly execute step S12.
[0296] The circuit structure 20 provided in the embodiment of the present application has at least the following beneficial effects:
[0297] (1) The voltage regulating module 210 is connected in series between the output terminal a of the power management unit 12 and the power terminal b of the computing module 220, so that the power management unit 12 and the voltage regulating module 210 are cascaded to form a two-stage power supply circuit. When the target operating frequency of the computing module 220 remains unchanged and the voltage difference between the two ends of the voltage regulating module 210 does not exceed the first preset voltage, the voltage monitoring module controls the conduction degree of the voltage regulating module 210 through the first control signal, thereby adjusting the input voltage of the computing module 220. On the one hand, the transmission of the first control signal does not require the use of a communication bus, which makes the transmission speed of the first control signal faster; on the other hand, the voltage regulation speed of the voltage regulating module 210 is greater than the voltage regulation speed of the power management unit 12. Based on this, the input voltage of the computing module 220 can be quickly regulated. In this way, the voltage compensation (the compensation value is the second voltage difference) increased due to the transmission delay of the communication signal and the slow voltage regulation speed of the power management unit 12 in the related art can be reduced, and the communication pressure between the voltage regulating module 260 and the power management unit 12 is also reduced.
[0298] (2) When the target operating frequency of the computing module 220 changes, the voltage regulating module 260 controls the power management unit 12 to adjust the voltage, and also controls the voltage monitoring module 230 to adjust the conduction degree of the voltage regulating module 210 to the maximum, thereby reducing the power loss caused by the voltage regulating module 210 and ensuring the normal operation of the computing module 220.
[0299] (3) When the voltage difference across the voltage regulating module 210 exceeds the first preset voltage, the voltage monitoring module 230 outputs a fourth control signal to the voltage regulating module 260, so that the voltage regulating module 260 controls the power management unit 12 to reduce the voltage. In this way, it can be ensured that the voltage difference across the voltage regulating module 210 does not exceed the first preset voltage, thereby reducing the waste of electric energy.
[0300] (4) When the voltage monitoring module 230 outputs the fourth control signal to the voltage regulating module 260 , the conduction degree of the voltage regulating module 210 is also adjusted to the maximum, thereby preventing the input voltage of the computing module 220 from dropping after the power management unit 12 steps down the voltage.
[0301] (5) When the target operating frequency of the computing module 220 decreases, the voltage regulating module 260 shields the fourth control signal when controlling the power management unit 12 to reduce the voltage, so as to prevent the fourth control signal from affecting the voltage regulation of the power management unit 12.
[0302] (6) When the predicted operating frequency increases, the voltage regulating module 260 first instructs the voltage monitoring module 230 to store the maximum operating voltage corresponding to the predicted operating frequency, and controls the power management unit 12 to output the maximum operating voltage, and then controls the frequency of the system clock signal CKA to increase, thereby ensuring that the clock module 240 can output the system clock signal CKA with a frequency equal to the predicted operating frequency F0. When the predicted operating frequency decreases, the voltage regulating module 260 first controls the frequency of the system clock signal CKA to decrease, then controls the power management unit 12 to output the maximum operating voltage corresponding to the predicted operating frequency, and finally instructs the voltage monitoring module 230 to store the maximum operating voltage, thereby ensuring the normal operation of the calculation module 220.
[0303] The embodiment of the present application further provides a packaged chip. The packaged chip includes the circuit structure 20 in any one of the above embodiments. The packaged chip may also include a packaging structure, which packages the circuit structure 20 therein.
[0304] An embodiment of the present application further provides an electronic device, comprising a circuit structure 20 or a packaged chip as in any one of the above embodiments.
[0305] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A circuit structure, applied to an electronic device, wherein the electronic device comprises a power management unit; characterized in that: The circuit structure includes: a voltage regulation module, a calculation module, a voltage monitoring module and a clock module; The input end of the voltage regulating module is connected to the output end of the power management unit; the output end of the voltage regulating module is connected to the power end of the computing module and the power end of the clock module respectively to supply power to the computing module and the clock module; the output end of the clock module is connected to the first end of the computing module to output a clock signal to the computing module; The input end of the voltage monitoring module is connected to the power supply end of the computing module to detect the input voltage of the computing module; the output end of the voltage monitoring module is connected to the control end of the voltage regulating module, and the voltage regulating speed of the voltage regulating module is greater than the voltage regulating speed of the power management unit; The voltage monitoring module is used to: output a first control signal to the voltage regulating module according to the input voltage of the calculation module; the first control signal is used to control the output voltage of the voltage regulating module to increase when the input voltage of the calculation module is less than the working voltage of the calculation module; The voltage monitoring module includes: a first counting unit, a second counting unit and a comparison control unit; the first input end of the first counting unit is connected to the power supply end of the calculation module, and the second input end of the first counting unit is connected to the output end of the clock module; the output end of the first counting unit is connected to the first input end of the comparison control unit to output a first counting value to the comparison control unit, and the first counting value is used to characterize the actual working frequency of the calculation module; the input end of the second counting unit is connected to the output end of the clock module; the output end of the second counting unit is connected to the second input end of the comparison control unit to output a second counting value to the comparison control unit, and the second counting value is used to characterize the target working frequency of the calculation module; the output end of the comparison control unit is connected to the control end of the voltage regulation module; the comparison control unit is used to: determine the voltage adjustment amount according to the first counting value and the second counting value; and output the first control signal to the voltage regulation module according to the voltage adjustment amount.
2. The circuit structure according to claim 1, characterized in that: The first control signal is also used to control the output voltage of the voltage regulating module to decrease when the input voltage of the computing module is greater than the working voltage of the computing module.
3. The circuit structure according to claim 1, characterized in that: The voltage regulating module includes: a transistor and a control unit; The first end of the transistor is connected to the output end of the power management unit; the second end of the transistor is connected to the power supply end of the computing module; The input end of the control unit is connected to the output end of the voltage monitoring module to receive the first control signal; the output end of the control unit is connected to the control end of the transistor; the first control signal is used to adjust the output voltage of the output end of the control unit to adjust the on-resistance of the transistor.
4. The circuit structure according to claim 3, characterized in that: The control unit includes: a voltage controller and a driver; The input end of the voltage controller is connected to the output end of the voltage monitoring module to receive the first control signal; the output end of the voltage controller is connected to the input end of the driver to output the first voltage to the driver; the output end of the driver is connected to the control end of the transistor; The first control signal is used to control the magnitude of the first voltage; and the driver is used to adjust the on-resistance of the transistor according to the magnitude of the first voltage.
5. The circuit structure according to claim 4, characterized in that: The voltage controller includes a reference voltage source, M resistors, M switches and a logic controller; The reference voltage source is used to output a reference voltage; A first end of a first resistor among the M resistors is connected to the output end of the reference voltage source, a second end of an Mth resistor among the M resistors is connected to a ground line, and a first end of an i-th resistor among the M resistors is connected to a second end of an i-1th resistor; M is an integer greater than or equal to 2, and i traverses from 2 to M; A first end of a p-th switch among the M switches is connected to a first end of a p-th resistor among the M resistors, and a second end of each of the M switches is connected to an input end of the driver to output the first voltage to the driver, and p traverses from 1 to M; The input end of the logic controller is connected to the output end of the voltage monitoring module, and the output end of the logic controller is connected to the control end of each of the M switches. The logic controller is used to control any one of the M switches to be turned on according to the first control signal.
6. The circuit structure according to any one of claims 1 to 5, characterized in that: The first counting unit comprises: a voltage-controlled oscillator and a first counter; the first input end of the voltage-controlled oscillator is connected to the power supply end of the calculation module, and the second input end of the voltage-controlled oscillator is connected to the output end of the clock module; the output end of the voltage-controlled oscillator is connected to the input end of the first counter; the output end of the first counter is connected to the first input end of the comparison control unit to output the first count value to the comparison control unit; The second counting unit includes: a reference delay device and a second counter; the input end of the reference delay device is connected to the output end of the clock module; the output end of the reference delay device is connected to the input end of the second counter, and the output end of the second counter is connected to the second input end of the comparison control unit to output the second count value to the comparison control unit.
7. The circuit structure according to any one of claims 1 to 5, characterized in that: The comparison control unit comprises: a comparator and a converter; The first input end of the comparator is connected to the output end of the first counting unit, and the second input end of the comparator is connected to the output end of the second counting unit; the output end of the comparator is connected to the first input end of the converter; the output end of the converter is connected to the control end of the voltage regulating module; The comparator is used to calculate the difference between the first count value and the second count value; the converter is used to convert the difference into a voltage adjustment amount; and output the first control signal to the voltage regulation module according to the voltage adjustment amount.
8. The circuit structure according to claim 7, characterized in that: The voltage monitoring module also includes: a voltage difference protector; the circuit structure also includes: a load prediction module and a voltage regulation module; The communication end of the voltage difference protector is connected to the communication end of the converter; the first input end of the voltage difference protector is connected to the input end of the voltage regulating module, and the second input end of the voltage difference protector is connected to the power supply end of the calculation module; the output end of the voltage difference protector is connected to the first input end of the voltage regulating module; The first output end of the voltage regulating module is connected to the second input end of the converter, and the second output end of the voltage regulating module is connected to the input end of the clock module; the communication end of the voltage regulating module is connected to the communication end of the power management unit; The first end of the load prediction module is connected to the second end of the calculation module, and the second end of the load prediction module is connected to the second input end of the voltage regulation module; the load prediction module is used to: determine the predicted operating frequency of the calculation module within the next preset time length, and output it to the voltage regulation module.
9. The circuit structure according to claim 8, characterized in that: The load prediction module is specifically used for: Obtaining the current load rate of the computing module, and obtaining instruction data that the computing module needs to run within the next preset time period; Determining the load rate of the computing module within the next preset time period according to the current load rate and the instruction data to be run; A predicted operating frequency of the computing module within the next preset time period is determined according to the load rate of the computing module within the next preset time period.
10. The circuit structure according to claim 8, characterized in that: The voltage regulating module is used for: If the currently received predicted operating frequency is greater than the last received predicted operating frequency, determining the maximum operating voltage of the calculation module according to the currently received predicted operating frequency; transmitting a second control signal to the converter, wherein the second control signal is used to instruct the converter to store the maximum operating voltage; Transmitting a first communication signal to the power management unit, wherein the first communication signal is used to instruct the power management unit to output the maximum operating voltage; After receiving the second communication signal transmitted by the power management unit, a third control signal is transmitted to the clock module, wherein the second communication signal is used to indicate that the output voltage of the power management unit is equal to the maximum operating voltage, and the third control signal is used to indicate that the frequency of the clock signal output by the clock module is equal to the currently received predicted operating frequency.
11. The circuit structure according to claim 10, characterized in that: The converter is specifically used for: The first control signal is output to the voltage regulating module according to the maximum operating voltage and the voltage adjustment amount.
12. The circuit structure according to claim 10, characterized in that: The second control signal is further used to instruct the converter to set the voltage adjustment amount to zero.
13. The circuit structure according to claim 10, characterized in that: The input voltage of the calculation module is less than the input voltage of the voltage regulation module.
14. The circuit structure according to claim 13, characterized in that: The differential pressure protector is used for: When a voltage difference between a voltage at a first input terminal of the voltage difference protector and a voltage at a second input terminal of the voltage difference protector is greater than a first preset voltage, reading the maximum operating voltage and the voltage adjustment amount stored in the converter; Transmitting a fourth control signal to the voltage regulating module, wherein the fourth control signal includes the maximum operating voltage and the voltage adjustment amount; The voltage regulating module is used to: when receiving the fourth control signal, transmit a third communication signal to the power management unit, and the third communication signal is used to instruct the power management unit to output a specified voltage, and the specified voltage is equal to the sum of the maximum operating voltage, the voltage adjustment amount, and the second preset voltage; the second preset voltage is the voltage drop when the voltage regulating module is in the maximum conduction state.
15. The circuit structure according to claim 14, characterized in that: The voltage difference protector is further used for: after transmitting the fourth control signal to the voltage regulating module, transmitting a fourth communication signal to the converter, wherein the fourth communication signal is used for instructing the converter to set the voltage adjustment amount to zero.
16. The circuit structure according to claim 10, characterized in that: The voltage regulating module is used for: If the currently received predicted operating frequency is less than the last received predicted operating frequency, determining the maximum operating voltage of the calculation module according to the currently received predicted operating frequency; transmitting the third control signal to the clock module; transmitting the first communication signal to the power management unit; After receiving the second communication signal, the second control signal is transmitted to the converter.
17. The circuit structure according to claim 16, characterized in that: The voltage regulating module is also used for: When transmitting the first communication signal to the power management unit, shielding a fourth control signal, wherein the fourth control signal includes the maximum operating voltage and the voltage adjustment amount; And, after transmitting the second control signal to the converter, the fourth control signal is received again.
18. A packaged chip, characterized in that: The packaged chip comprises the circuit structure as described in any one of claims 1 to 17.
19. An electronic device, characterized in that: The electronic device comprises the circuit structure as described in any one of claims 1 to 17; or, the electronic device comprises the packaged chip as described in claim 18.
Citation Information
Patent Citations
Integrated driving field effect circuit and electronic device
CN215895333U
Power supply device, chip, power supply and electronic equipment
CN216670603U