Phase-locked loop configuration method and device, equipment and storage medium
By determining the required frequency and clock frequency group of the functional modules on the chip and adjusting the phase-locked loop group, it is possible to use fewer phase-locked loops to generate multiple clock frequencies, solve the problem of increased chip area and cost, and reduce the number of phase-locked loops. , which meets the clock frequency requirements of chip functional design.
Patent Information
- Application Number
- CN202410896560.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-08-30
AI Technical Summary
As the number of functional modules on the chip increases, multiple different clock frequencies need to be generated, resulting in an increase in the number of phase-locked loops, which in turn increases the chip area and cost. A configuration method is urgently needed to reduce the number of phase-locked loops.
By determining the required frequency of the functional modules on the chip, including fixed frequency and variable frequency, determining the first phase-locked loop group based on the fixed frequency, and adjusting the phase-locked loop group according to the first clock frequency group and the variable frequency range to reduce phase locking The number of loop configurations such that fixed and variable frequencies are generated by the same phase locked loop.
The number of phase-locked loop configurations is reduced, the chip area is saved, and fewer phase-locked loops are used to meet the clock frequency required for chip functional design.
Smart Images

Figure CN118573180A
Abstract
Description
Technical Field
[0001] The present application relates to the field of chip technology, and in particular to a configuration method, device, equipment and storage medium for a phase-locked loop. Background Art
[0002] The chip generates the clock frequency required for each functional module to operate through a phase-locked loop (PLL). A phase-locked loop can generate multiple clock frequencies. As more and more functional modules are integrated on the chip, and the same functional module requires different clock frequencies to operate in different functional modes, the number of clock frequencies that need to be generated by the phase-locked loop increases. Since each additional phase-locked loop will increase the chip area, it will lead to an increase in chip cost.
[0003] Therefore, there is an urgent need for a phase-locked loop configuration method that can use a smaller number of phase-locked loops to generate the clock frequency required for the operation of a functional module. Summary of the invention
[0004] The present application provides a phase-locked loop configuration method, apparatus, device and storage medium for configuring a phase-locked loop for a chip.
[0005] In a first aspect, a method for configuring a phase-locked loop is provided, the method comprising: Determine a plurality of required frequencies required for the operation of the functional modules on the chip, wherein the plurality of required frequencies include fixed frequencies and variable frequencies; Determine a first phase-locked loop group according to the fixed frequency, the first phase-locked loop group includes one or more phase-locked loops, and a first clock frequency group generated by the first phase-locked loop group includes the fixed frequency; A phase-locked loop configured for the chip is determined according to the first clock frequency group and the frequency range of the variable frequency.
[0006] In a possible implementation, determining the phase-locked loop configured for the chip based on the first clock frequency group and the frequency range of the variable frequency includes: adjusting the variable frequency within the frequency range of the variable frequency, selecting a frequency within the first clock frequency group as the target frequency of the variable frequency; and determining the first phase-locked loop group as the configured phase-locked loop.
[0007] In a possible implementation, determining the phase-locked loop configured for the chip based on the first clock frequency group and the frequency range of the variable frequency includes: adding a phase-locked loop to the first phase-locked loop group to obtain a second phase-locked loop group based on the first clock frequency group and the frequency range of the variable frequency; adjusting the variable frequency within the frequency range of the variable frequency, and selecting a frequency within the second clock frequency group generated by the second phase-locked loop group as the target frequency of the variable frequency; and determining the second phase-locked loop group as the configured phase-locked loop.
[0008] In a possible implementation, according to the first clock frequency group and the frequency range of the variable frequency, a phase-locked loop is added on the basis of the first phase-locked loop group to obtain a second phase-locked loop group, including: if the frequency range of the variable frequency exceeds the frequency range covered by the first clock frequency group, the excess frequency is determined, and a phase-locked loop is added according to the excess frequency to obtain a second phase-locked loop group.
[0009] In a possible implementation, according to the first clock frequency group and the frequency range of the variable frequency, a phase-locked loop is added on the basis of the first phase-locked loop group to obtain a second phase-locked loop group, including: if the frequency range of the variable frequency exceeds the frequency range covered by the first clock frequency group, then the exceeding frequency is determined, and a phase-locked loop is added according to the exceeding frequency to obtain a third phase-locked loop group, wherein the third phase-locked loop group is used to generate a third clock frequency group; the variable frequency is adjusted within the frequency range of the variable frequency, and if there is a frequency not included in the third clock frequency group among the adjusted frequencies of the variable frequency, then a phase-locked loop is added according to the frequency not included in the third clock frequency group to obtain a second phase-locked loop group.
[0010] In one possible implementation, the chip includes multiple operating modes, the multiple required frequencies are the required frequencies corresponding to the multiple operating modes respectively, and the configured phase-locked loop generates different clock frequency groups in different operating modes; after determining the phase-locked loop configured for the chip, it also includes: if there is a required frequency that meets the restriction condition among the multiple required frequencies generated by the configured phase-locked loop, then according to the required frequency that meets the restriction condition, determine to add a configured phase-locked loop to the chip on the basis of the configured phase-locked loop; the restriction condition includes: the required frequency under the same operating mode is generated by the same phase-locked loop in different operating modes, and the required frequencies with a dependent relationship are generated by different phase-locked loops.
[0011] In a second aspect, a phase-locked loop configuration device is also provided, the device comprising: A determination module, used to determine a plurality of required frequencies required for the operation of the functional modules on the chip, wherein the plurality of required frequencies include fixed frequencies and variable frequencies; The determination module is further used to determine a first phase-locked loop group according to the fixed frequency, the first phase-locked loop group includes one or more phase-locked loops, and the first clock frequency group generated by the first phase-locked loop group includes the fixed frequency; A configuration module is used to determine a phase-locked loop configured for the chip according to the first clock frequency group and the frequency range of the variable frequency.
[0012] In a possible implementation, the determination module is used to adjust the variable frequency within the frequency range of the variable frequency, select a frequency in the first clock frequency group as the target frequency of the variable frequency; and determine the first phase-locked loop group as the configured phase-locked loop.
[0013] In one possible implementation, the determination module is used to add a phase-locked loop on the basis of the first phase-locked loop group to obtain a second phase-locked loop group based on the first clock frequency group and the frequency range of the variable frequency; adjust the variable frequency within the frequency range of the variable frequency, and select a frequency within the second clock frequency group generated by the second phase-locked loop group as the target frequency of the variable frequency; and determine that the second phase-locked loop group is the configured phase-locked loop.
[0014] In a possible implementation, the determination module is configured to determine the excess frequency if the frequency range of the variable frequency exceeds the frequency range covered by the first clock frequency group, and add a phase-locked loop according to the excess frequency to obtain a second phase-locked loop group.
[0015] In one possible implementation, the determination module is used to determine the excess frequency if the frequency range of the variable frequency exceeds the frequency range covered by the first clock frequency group, add a phase-locked loop according to the excess frequency to obtain a third phase-locked loop group, and the third phase-locked loop group is used to generate a third clock frequency group; adjust the variable frequency within the frequency range of the variable frequency, and if there is a frequency that is not included in the third clock frequency group among the adjusted frequencies of the variable frequency, add a phase-locked loop according to the frequency that is not included in the third clock frequency group to obtain a second phase-locked loop group.
[0016] In one possible implementation, the chip includes multiple operating modes, the multiple required frequencies are the required frequencies corresponding to the multiple operating modes respectively, and the configured phase-locked loop generates different clock frequency groups in different operating modes; the determination module is also used to determine to add a configured phase-locked loop to the chip based on the configured phase-locked loop according to the required frequency that meets the restriction condition among the multiple required frequencies generated by the configured phase-locked loop; the restriction condition includes: the required frequency under the same operating mode is generated by the same phase-locked loop in different operating modes, and the required frequencies with a dependent relationship are generated by different phase-locked loops.
[0017] In a third aspect, a computer device is also provided, comprising a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor so that the computer device implements any of the above-mentioned phase-locked loop configuration methods.
[0018] In a fourth aspect, a computer-readable storage medium is further provided, wherein at least one program code is stored in the computer-readable storage medium, and the at least one program code is loaded and executed by a processor so that a computer implements any of the above-mentioned phase-locked loop configuration methods.
[0019] In a fifth aspect, a computer program product or a computer program is also provided, wherein the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes any of the above-mentioned phase-locked loop configuration methods.
[0020] The technical solution provided by this application can at least bring the following beneficial effects: The technical solution provided by the present application first determines the first phase-locked loop group according to the required fixed frequency for the clock frequency required for the operation of the chip, and then determines the phase-locked loop configured for the chip according to the first clock frequency group generated by the first phase-locked loop group and the required frequency range of the variable frequency, so that the phase-locked loop used to generate the variable frequency is determined on the basis of the first phase-locked loop group, that is, the fixed frequency and the variable frequency can be generated by the same phase-locked loop, thereby reducing the number of phase-locked loop configurations, thereby saving chip area, and achieving the effect of using fewer phase-locked loops to meet the clock frequency required for the chip functional design. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0022] Figure 1 It is a schematic diagram of an implementation environment of a phase-locked loop configuration method provided in an embodiment of the present application; Figure 2 is a flow chart of a phase-locked loop configuration method provided in an embodiment of the present application; Figure 3 is a schematic diagram of the structure of a phase-locked loop provided in an embodiment of the present application; Figure 4 It is a schematic diagram of a clock frequency generation scheme on a chip provided in an embodiment of the present application; Figure 5 is a schematic diagram of a configuration process of a phase-locked loop provided in an embodiment of the present application; Figure 6 is a schematic diagram of a phase-locked loop configuration device provided in an embodiment of the present application; Figure 7 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] 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 with reference to the accompanying drawings.
[0024] As the functional integration of chips increases, more and more functional modules are used in chip implementation. In order to meet the needs of various application scenarios, each functional module has different functional modes. In different functional modes, the modules run at different clock frequencies, that is, the modules run at different clock frequencies, and the frequency point is the frequency number. As a result, the clock scheme of the entire chip becomes more and more complex. The clock scheme is the configuration of the phase-locked loop, and the number of clocks required for different clock frequencies is also increasing.
[0025] On a chip, such as a System on Chip (SoC), each clock is generated by a phase-locked loop. Each phase-locked loop can generate multiple clock frequencies through different configuration parameters. The clock frequencies output by each set of configuration parameters have a fixed multiple dependency. Each additional phase-locked loop will increase the chip area. For chip cost considerations, the number of phase-locked loops needs to be minimized.
[0026] This embodiment provides a phase-locked loop configuration method for using fewer phase-locked loops to meet the clock frequency required by chip function design, thereby achieving a smaller chip area overhead and improving the competitiveness of the chip. Figure 1 A schematic diagram of an implementation environment of a phase-locked loop configuration method provided in an embodiment of the present application is shown. The implementation environment includes: a computer device 101, and the computer device 101 is used to execute the method provided in an embodiment of the present application.
[0027] In a possible implementation, the computer device 101 may refer to a terminal, or a server, or a processor, which is configured in an independent device. Exemplarily, the terminal may be any electronic product that can interact with a user through one or more methods such as a keyboard, a touchpad, a touch screen, a remote control, voice interaction, or a handwriting device, such as a personal computer (PC), a smart phone, a personal digital assistant (PDA), a wearable device, a handheld computer PPC (Pocket PC, PPC), a tablet computer, an intelligent car machine, etc. The server may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.
[0028] Those skilled in the art should understand that the above-mentioned computer device 101 is only an example, and other existing or future computer devices may also be applicable to the present application, should also be included in the protection scope of the present application, and are included here by reference.
[0029] The present application embodiment provides a phase-locked loop configuration method, which can be applied to the above Figure 1 In the implementation environment shown, for example, the computer device 101 is applied, and the computer device 101 can be a terminal or a server, which is not limited in the present embodiment. Figure 2 As shown, the configuration method of the phase-locked loop provided in the embodiment of the present application includes but is not limited to the following steps 201 to 203.
[0030] Step 201 : determining a plurality of required frequencies required for the operation of the functional modules on the chip, wherein the plurality of required frequencies include fixed frequencies and variable frequencies.
[0031] The embodiment of the present application does not limit the type of chip, for example, a SOC chip. Optionally, the multiple required frequencies can be the frequencies required for all functional modules on the chip to operate, or the frequencies required for all functional modules on the chip to operate in different functional modes. Exemplarily, after the chip architecture design is completed, the functional modules on the chip can be determined according to the chip architecture design, and then the multiple required frequencies are obtained according to the frequencies required for the functional modules on the chip to operate in different functional modes.
[0032] Taking the chip including three functional modules as an example, the frequencies required for the operation of functional module 1 include frequency a and frequency b, the frequencies required for the operation of functional module 2 include frequency c and frequency d, and the frequencies required for the operation of functional module 3 include frequency e, then the multiple required frequencies may include frequency a, frequency b, frequency c, frequency d, and frequency e. Alternatively, the frequencies required for the operation of functional module 1 in functional mode 1 include frequency a and frequency b, the frequencies required for the operation of functional module 1 in functional mode 2 include frequency a` and frequency b`, the frequencies required for the operation of functional module 2 in functional mode 1 include frequency c and frequency d, the frequencies required for the operation of functional module 2 in functional mode 2 include frequency c` and frequency d`, the frequencies required for the operation of functional module 3 in functional mode 1 include frequency e, and the frequencies required for the operation of functional module 3 in functional mode 2 include frequency e`, then the multiple required frequencies may include frequency a, frequency b, frequency a`, frequency b`, frequency c, frequency d, frequency c`, frequency d`, frequency e, and frequency e`.
[0033] Among them, the required frequency can be divided into fixed frequency and variable frequency according to the numerical requirements. The fixed frequency is a fixed frequency value, and the variable frequency can be adjusted within the frequency range. For the variable frequency, it is sufficient to ensure that a target frequency of the variable frequency within the frequency range is generated by the configured phase-locked loop. For example, multiple required frequencies may include a fixed frequency set F={f1 f2} and a variable frequency set G={g1±x1 g2±x2 g3±x3}. Among them, f1 and f2 represent two fixed frequency values, g1±x1, g2±x2 and g3±x3 represent the frequency ranges of three variable frequencies. Taking g1±x1 as an example, the frequency range of the variable frequency is g1-x1 to g1+x1.
[0034] Optionally, the fixed frequencies among the multiple required frequencies are all different, there is no complete overlap between the frequency ranges of at least one variable frequency, and / or there is no inclusion relationship between the frequency ranges of at least one variable frequency. For example, if the frequency values required for the operation of two functional modules on the chip are the same, a fixed frequency can be obtained through deduplication processing; if the frequency ranges of the variable frequencies required for the operation of two functional modules on the chip are the same, a frequency range of the variable frequency can be obtained through deduplication processing; if there is an inclusion relationship between the frequency ranges of the variable frequencies required for the operation of two functional modules on the chip, the smaller frequency range can be used as the frequency range of the obtained variable frequency. In this way, redundancy in the multiple required frequencies obtained can be avoided, the configuration difficulty can be reduced, and the configuration efficiency can be improved.
[0035] Step 202: determine a first phase-locked loop group according to the fixed frequency, the first phase-locked loop group includes one or more phase-locked loops, and a first clock frequency group generated by the first phase-locked loop group includes a fixed frequency.
[0036] In an embodiment of the present application, a phase-locked loop can generate multiple clock frequencies based on a reference clock and configuration parameters. Optionally, the phase-locked loop generates a fixed reference frequency based on the reference clock and configuration parameters, and can generate a corresponding divided frequency based on the reference frequency and the frequency division coefficient. Exemplarily, the reference frequency can be an integer multiple of the frequency of the reference clock, and the divided frequency can be a product value or a sum value of the reference frequency and the frequency division coefficient. Among them, the reference clock can be generated based on a crystal oscillator. Therefore, the first clock frequency group generated by the first phase-locked loop group includes the reference frequency output by each phase-locked loop in the first phase-locked loop group, and also includes the divided frequency obtained by dividing the reference frequency of each phase-locked loop, for example, the divided frequency is generated based on the reference frequency and the frequency division coefficient.
[0037] For example, see Figure 3 The structural diagram of the phase-locked loop is shown in FIG. The phase-locked loop multiplies an input low-frequency reference clock FREF (i.e., reference clock) to a high-frequency clock FOUTP through the internal circuit of the phase-locked loop, and further divides the high-frequency clock based on the configuration parameters through the internal circuit to output multiple reference frequencies, and the multiple reference frequencies are further divided into multiple divided frequencies through the frequency division coefficient. Figure 3 The clock frequencies output by the phase-locked loop shown include: FOUTPOSTDIV, FOUT1PH0, FOUT1PH90, FOUT1PH180, FOUT1PH270, FOUT2, FOUT3 and FOUT4. The relationship between the multiple clock frequencies can be shown as follows.
[0038] FOUTPOSTDIV=FOUTP / N FOUT1PH0=FOUTPOSTDIV / M FOUT1PH90=FOUT1PH0+90° FOUT1PH180=FOUT1PH0+180° FOUT1PH270=FOUT1PH0+270° FOUT2=FOUT1PH0 / 4 FOUT3=FOUT1PH0 / 8 FOUT4=FOUT1PH0 / 16 Where, M and N are configuration parameters, N≥2 and is an integer, M≥2 and is an integer, 90°, 180°, 270°, 1\4, 1\8 and 1\16 are fixed frequency division coefficients inside the phase-locked loop. The value of the reference frequency output by the phase-locked loop can be adjusted by adjusting the configuration parameters. The dependence between multiple clock frequencies output by the phase-locked loop, for example, FOUTPOSTDIV is generated by the frequency division of FOUTP, so FOUTPOSTDIV has a dependence on FOUTP.
[0039] Since the frequency division coefficient inside the phase-locked loop is usually fixed, the frequency division frequencies that can be generated are limited, while the design and configuration of the frequency division circuit are relatively flexible and diverse, and more frequency division frequencies can be generated. Therefore, the phase-locked loop can be connected to the frequency division circuit, and the frequency division circuit is used to further divide the frequency based on the frequency output of the phase-locked loop to generate a new clock frequency. In this case, the clock frequency generated by any phase-locked loop in the embodiments of the present application includes: the clock frequency output by any phase-locked loop and the clock frequency obtained by dividing the clock frequency output by any phase-locked loop through the frequency division circuit.
[0040] For example, see Figure 4 The schematic diagram of the clock frequency generation scheme on the chip shown in FIG. Figure 4 As shown, the chip includes a crystal oscillator, a phase-locked loop PLL0, a phase-locked loop PLL1 and a frequency division circuit. The crystal oscillator provides a reference clock; PLL0 and PLL1 output multiple clock frequencies (i.e., FOUTP and FOUTPOSTDIV) based on the reference clock provided by the crystal oscillator; the frequency division circuit DIV2 divides the clock frequency output by PLL0 by a configurable coefficient, which is determined according to the clock frequency required by the chip. Finally, the clock frequencies generated by the chip through the phase-locked loop include CK1, CK2, CK3 and CKM.
[0041] In one possible implementation, a method for determining a first phase-locked loop group based on a fixed frequency may include determining a third number of phase-locked loops based on a first number of fixed frequencies and a second number of reference frequencies generated by any phase-locked loop; adjusting configuration parameters of the third number of phase-locked loops based on a frequency value of the fixed frequency so that a frequency value of the reference frequency generated by the third number of phase-locked loops is a frequency value of the fixed frequency; and determining the third number of phase-locked loops as the first phase-locked loop group.
[0042] For example, the third number is the rounded-up value of the first number divided by the second number. Thus, the reference frequency generated by the first phase-locked loop just meets the requirement of at least one fixed frequency, and no redundant phase-locked loop generates an idle reference frequency, thereby reducing the number of phase-locked loop configurations.
[0043] Optionally, the method of determining the first phase-locked loop group based on the fixed frequency may also include first determining the first phase-locked loop, adjusting the configuration parameters of the first phase-locked loop so that the reference frequency 1 output by the first phase-locked loop is equal to the fixed frequency; determining whether each fixed frequency among multiple required frequencies is equal to a reference frequency output by the first phase-locked loop; if each fixed frequency among the multiple required frequencies is equal to a reference frequency output by the first phase-locked loop, determining the first phase-locked loop as the first phase-locked loop group.
[0044] If the multiple required frequencies include a fixed frequency set 1 that is not equal to any reference frequency output by the first phase-locked loop, then the second phase-locked loop is determined, and the configuration parameters of the second phase-locked loop are adjusted so that the reference frequency 2 output by the second phase-locked loop is equal to the fixed frequencies in the fixed frequency set 1; it is determined whether each of the multiple required frequencies is equal to a reference frequency output by the first phase-locked loop or the second phase-locked loop; if each of the multiple required frequencies is equal to a reference frequency output by the first phase-locked loop or the second phase-locked loop, it is determined that both the first phase-locked loop and the second phase-locked loop are the first phase-locked loop group.
[0045] If the fixed frequency set 1 includes a fixed frequency set 2 that is not equal to any reference frequency output by the first phase-locked loop or the second phase-locked loop, the third phase-locked loop is determined, and the configuration parameters of the third phase-locked loop are adjusted so that the reference frequency 3 output by the third phase-locked loop is equal to the fixed frequency in the fixed frequency set 2. This is repeated in turn until each of the multiple required frequencies is equal to a reference frequency output by the first phase-locked loop group.
[0046] Optionally, taking determining whether the fixed frequency is equal to a reference frequency output by the first phase-locked loop as an example, in this step, it can also be determined whether the fixed frequency is equal to a clock frequency (i.e., the reference frequency or the divided frequency) output by the first phase-locked loop. In other words, the fixed frequency can be generated not only by the reference frequency of the phase-locked loop that has been determined, but also by the divided frequency of the phase-locked loop that has been determined. Thus, the possibility that each of the multiple required frequencies is equal to a clock frequency output by the first phase-locked loop can be increased, or the number of fixed frequencies included in the fixed frequency set can be reduced, thereby reducing the number of phase-locked loops in the first phase-locked loop group, and further reducing the number of configurations of the phase-locked loops.
[0047] Step 203: Determine a phase-locked loop configured for the chip according to the first clock frequency group and the frequency range of the variable frequency.
[0048] In an embodiment of the present application, after determining the first phase-locked loop group, it is necessary to determine whether the first clock frequency group generated by the first phase-locked loop group can be used to generate a variable frequency among multiple required frequencies, that is, whether the variable frequency can be adjusted to a clock frequency in the first clock frequency group within the frequency range. Exemplarily, if the frequency range of the variable frequency is g1-x1 to g1+x1, and the first clock frequency group includes clock frequency g1, then by adjusting the variable frequency within the variable frequency, the clock frequency g1 in the first clock frequency group can be selected as the target frequency of the variable frequency, that is, the functional module corresponding to the variable frequency finally runs based on the target frequency.
[0049] In one possible implementation, a phase-locked loop configured for the chip is determined based on the first clock frequency group and the frequency range of the variable frequency, including: adjusting the variable frequency within the frequency range of the variable frequency, selecting a frequency within the first clock frequency group as the target frequency of the variable frequency; and determining the first phase-locked loop group as the configured phase-locked loop.
[0050] That is to say, if the first clock frequency group generated by the first phase-locked loop group includes both fixed frequencies among multiple required frequencies and a target frequency within the frequency range of variable frequencies among multiple required frequencies, that is, the frequency range of any variable frequency among the multiple required frequencies can be adjusted to correspond to a clock frequency in the first clock frequency group, then the phase-locked loop configured for the chip is directly determined to be the first phase-locked loop group, and there is no need to add a new phase-locked loop, thereby saving the number of phase-locked loop configurations.
[0051] In another possible implementation, there is a variable frequency among the multiple required frequencies that cannot correspond to a clock frequency in the first clock frequency group through adjustment. Then, according to the first clock frequency group and the frequency range of the variable frequency, the phase-locked loop configured for the chip is determined, including: according to the first clock frequency group and the frequency range of the variable frequency, a phase-locked loop is added on the basis of the first phase-locked loop group to obtain a second phase-locked loop group; the variable frequency is adjusted within the frequency range of the variable frequency, and a frequency in the second clock frequency group generated by the second phase-locked loop group is selected as the target frequency of the variable frequency; and the second phase-locked loop group is determined as the configured phase-locked loop.
[0052] In this case, the second clock frequency group is determined by adding a phase-locked loop on the basis of the first phase-locked loop group, so that the frequency range of any variable frequency in the multiple required frequencies can be adjusted to correspond to a clock frequency in the second clock frequency group.
[0053] According to the first clock frequency group and the frequency range of the variable frequency, a phase-locked loop is added to the first phase-locked loop group to obtain a second phase-locked loop group, including: if the frequency range of the variable frequency exceeds the frequency range covered by the first clock frequency group, the exceeded frequency is determined, and a phase-locked loop is added according to the exceeded frequency to obtain a second phase-locked loop group. Thus, the maximum frequency in the second clock frequency group generated by the second phase-locked loop group is greater than or equal to the upper limit frequency in the frequency range of the variable frequency, and the minimum frequency in the second clock frequency group is less than or equal to the lower limit frequency in the frequency range of the variable frequency.
[0054] Optionally, before determining whether the first clock frequency group can be used to generate a variable frequency among multiple required frequencies, it can be determined whether the first clock frequency group meets the first range requirement, and the first range requirement can be that the maximum frequency is greater than or equal to the upper limit frequency of the frequency range of the variable frequency, and the minimum frequency is less than or equal to the lower limit frequency of the frequency range of the variable frequency. If the first clock frequency group meets the first range requirement, it is further determined whether the first clock frequency group can be used to generate a variable frequency among multiple required frequencies; if the first clock frequency group does not meet the first range requirement, the second phase-locked loop group is directly obtained based on the first clock frequency group and the frequency range of the variable frequency.
[0055] Optionally, the method of adding a phase-locked loop according to the exceeded frequency may include determining at least one phase-locked loop, adjusting the configuration parameters of the at least one phase-locked loop so that the at least one phase-locked loop is used to generate an upper limit frequency in the frequency range of the variable frequency and a lower limit frequency in the frequency range of the variable frequency; and using the at least one phase-locked loop as a phase-locked loop added according to the exceeded frequency.
[0056] Alternatively, based on the first clock frequency group and the frequency range of the variable frequency, a phase-locked loop is added on the basis of the first phase-locked loop group to obtain a second phase-locked loop group, including: if the frequency range of the variable frequency exceeds the frequency range covered by the first clock frequency group, the exceeding frequency is determined, and a phase-locked loop is added according to the exceeding frequency to obtain a third phase-locked loop group, and the third phase-locked loop group is used to generate a third clock frequency group; the variable frequency is adjusted within the frequency range of the variable frequency, and if there is a frequency not included in the third clock frequency group in the frequency after the adjustment of the variable frequency, a phase-locked loop is added according to the frequency not included in the third clock frequency group to obtain a second phase-locked loop group.
[0057] In this case, the third phase-locked loop obtained by adding a phase-locked loop according to the excess frequency can cover the frequency range of the variable frequency. However, the third clock frequency group generated by the third phase-locked loop group cannot be used to generate each variable frequency in the multiple required frequencies, so that the adjusted variable frequency may not correspond to a clock frequency in the third clock frequency group, and further phase-locked loops need to be added.
[0058] Optionally, the method of adding a phase-locked loop according to a frequency not included in the third clock frequency group may include first determining phase-locked loop 1, adjusting the configuration parameters and division coefficient of phase-locked loop 1 so that the clock frequency generated by phase-locked loop 1 is equal to one of the frequencies not included in the third clock frequency group; determining whether the clock frequency group generated by phase-locked loop 1 includes each frequency not included in the third clock frequency group; if the clock frequency group generated by phase-locked loop 1 includes each frequency not included in the third clock frequency group, determining to add phase-locked loop 1.
[0059] If the clock frequency group generated by phase-locked loop 1 does not include the first frequency not included in the third clock frequency group, phase-locked loop 2 is determined, and the configuration parameters and division coefficient of phase-locked loop 2 are adjusted so that the clock frequency generated by phase-locked loop 2 is equal to one of the first frequencies; it is determined whether the clock frequency group generated by phase-locked loop 1 and phase-locked loop 2 includes each frequency of the frequencies not included in the third clock frequency group; if the clock frequency group generated by phase-locked loop 1 and phase-locked loop 2 includes each frequency of the frequencies not included in the third clock frequency group, it is determined to add two phase-locked loops, phase-locked loop 1 and phase-locked loop 2.
[0060] If the clock frequency group generated by phase-locked loop 1 and phase-locked loop 2 does not include the second frequency in the first frequency, then phase-locked loop 3 is determined, and the configuration parameters and frequency division coefficient of phase-locked loop 3 are adjusted so that the clock frequency generated by phase-locked loop 3 is equal to a frequency of the second frequency; and so on, until the added phase-locked loop for generating each frequency not included in the third clock frequency group is determined. In other words, the phase-locked loops are added one by one, and each time a phase-locked loop is added, it is determined whether all the required frequencies can be generated, so as to avoid adding more phase-locked loops than the required number.
[0061] In an embodiment of the present application, each time a phase-locked loop is determined or each time a phase-locked loop is added, the configuration parameters and frequency division coefficient of the phase-locked loop can be determined based on the least common multiple of the multiple frequencies to be generated. For example, if the frequencies to be generated include f1, f2, and f3, the configuration parameters of the phase-locked loop are determined based on the least common multiple of f1, f2, and f3, so that the phase-locked loop can directly output the frequency corresponding to the least common multiple based on the configuration parameters; and then the frequency division coefficient is determined based on the multiple relationship between f1, f2, and f3 and the frequency corresponding to the least common multiple, so that the above-mentioned f1, f2, and f3 can be generated according to the frequency output by the phase-locked loop and the frequency division coefficient. As a result, the generation of multiple frequencies can be achieved through one phase-locked loop, reducing the number of configured phase-locked loops.
[0062] Therefore, through the above content, it is possible to configure a phase-locked loop for a chip, and the configured phase-locked loop is used to generate multiple required frequencies required for the operation of the functional modules on the chip. Among them, the variable frequency can be generated by the reference frequency or the divided frequency of the first phase-locked loop group as much as possible, and only when the reference frequency or the divided frequency of the first phase-locked loop group cannot be generated, the number of phase-locked loops is increased, thereby reducing the number of phase-locked loops used to generate variable frequencies.
[0063] Take the fixed frequency set F = {f1 f2} and the variable frequency set G = {g1±x1 g2±x2 g3±x3} as an example. The clock frequency group generated by the configured phase-locked loop may be set A, set A = {f1 f1 / 2 f1 / 3 f2 f2 / 2 f2 / 3}, where the target frequency corresponding to g1±x1 is f1 / 3, the target frequency corresponding to g2±x2 is f2 / 2, that is, g1±x1 and g2±x2 are generated by the divided frequency of the phase-locked loop, and the target frequency corresponding to g3±x3 is f2, that is, g3±x3 is generated by the reference frequency of the phase-locked loop.
[0064] In a possible implementation, the chip includes multiple operating modes, and the multiple required frequencies are the required frequencies corresponding to the multiple operating modes respectively. The configured phase-locked loop has different configuration parameters in different operating modes, and the clock frequencies generated in different operating modes are also different. After determining the phase-locked loop configured for the chip, it also includes: if there is a required frequency that meets the restriction condition among the multiple required frequencies generated by the configured phase-locked loop, then based on the required frequency that meets the restriction condition, determine to add a configured phase-locked loop to the chip; the restriction condition includes: the required frequency in the same operating mode is generated by the same phase-locked loop in different operating modes, and the required frequencies with a dependent relationship are generated by different phase-locked loops.
[0065] That is to say, after getting the configured phase-locked loop, it is necessary to determine the configuration parameters and working mode of the phase-locked loop that can generate the required frequency. A PLL cannot work in two working modes at the same time. In addition, the dependent required frequencies need to maintain the dependency, that is, the dependent required frequencies cannot be generated by different phase-locked loops, and the dependent required frequencies should correspond to the dependent clock frequencies generated by the same phase-locked loop. This restriction is also a prerequisite for the physical circuit to work.
[0066] The required frequency that meets the restriction condition also includes a fixed frequency and a variable frequency. Optionally, the method of adding a phase-locked loop according to the required frequency that meets the restriction condition can refer to the method of adding a phase-locked loop according to the frequency range of the variable frequency, which will not be repeated here.
[0067] For example, see Figure 5 Schematic diagram of the configuration process of the phase-locked loop shown. The first step is to determine the initial number of phase-locked loops, that is, the number of first phase-locked loops, based on the fixed frequency, so that the fixed frequency can be generated based on the clock frequency generated by the phase-locked loop. The second step is to merge the clock frequencies that can be generated by each phase-locked loop to obtain set A. The third step is to update set A according to the variable frequency range (that is, the frequency range of the above-mentioned variable frequency). If there is a variable frequency range that exceeds the maximum frequency or the minimum frequency in set A, the number of phase-locked loops is increased, and the number of phase-locked loops can be increased by one each time. The fourth step is to return to the second step based on the increased phase-locked loops, update set A, and iterate until set A can cover the variable frequency range.
[0068] Step 5: Determine a frequency in each variable frequency range so that the determined frequency is an element in set A. The result of the traversal is to generate a set B, which contains variable frequency ranges that cannot be matched to set A. Step 6: If set B is empty, skip step 6; otherwise, add a phase-locked loop, repeat step 2, and update set A; for each variable frequency range of clock frequency points in set B, apply the operation of step 5 and update set B; each time the operation is performed, set A will expand and set B will shrink until set B is empty. Step 7: According to the dependency clock (i.e., the required frequency with dependency relationship mentioned above), set A generated in step 6 is judged. Clock frequencies that do not meet the requirements (i.e., meet the restriction conditions) need to be screened out and still represented by set B. Set B can be divided into fixed frequency and variable frequency ranges. Add a phase-locked loop each time, repeat step 6, until set B is empty, and update set A; repeat step 7 until the updated set A meets the requirements.
[0069] The method provided in the embodiment of the present application first determines the first phase-locked loop group according to the required fixed frequency for the clock frequency required for the operation of the chip, and then determines the phase-locked loop configured for the chip according to the first clock frequency group generated by the first phase-locked loop group and the frequency range of the required variable frequency, so that the phase-locked loop used to generate the variable frequency is determined on the basis of the first phase-locked loop group, that is, the fixed frequency and the variable frequency can be generated by the same phase-locked loop, thereby reducing the number of phase-locked loop configurations, thereby saving chip area, and achieving the effect of using fewer phase-locked loops to meet the clock frequency required for the chip functional design.
[0070] See also Figure 6 , an embodiment of the present application provides a phase-locked loop configuration device, the device comprising: A determination module 601 is used to determine a plurality of required frequencies required for the operation of a functional module on a chip, wherein the plurality of required frequencies include a fixed frequency and a variable frequency; The determination module 601 is further configured to determine a first phase-locked loop group according to the fixed frequency, the first phase-locked loop group including one or more phase-locked loops, and the first clock frequency group generated by the first phase-locked loop group including the fixed frequency; The configuration module 602 is used to determine the phase-locked loop configured for the chip according to the first clock frequency group and the frequency range of the variable frequency.
[0071] In a possible implementation, the determination module 601 is configured to adjust the variable frequency within a frequency range of the variable frequency, select a frequency in the first clock frequency group as a target frequency of the variable frequency, and determine the first phase-locked loop group as a configured phase-locked loop.
[0072] In one possible implementation, a determination module 601 is used to add a phase-locked loop on the basis of the first phase-locked loop group to obtain a second phase-locked loop group based on the first clock frequency group and the frequency range of the variable frequency; adjust the variable frequency within the frequency range of the variable frequency, and select a frequency within the second clock frequency group generated by the second phase-locked loop group as the target frequency of the variable frequency; and determine that the second phase-locked loop group is a configured phase-locked loop.
[0073] In a possible implementation, the determination module 601 is configured to determine the excess frequency if the frequency range of the variable frequency exceeds the frequency range covered by the first clock frequency group, and add a phase-locked loop according to the excess frequency to obtain a second phase-locked loop group.
[0074] In one possible implementation, a determination module 601 is used to determine the excess frequency if the frequency range of the variable frequency exceeds the frequency range covered by the first clock frequency group, and to add a phase-locked loop according to the excess frequency to obtain a third phase-locked loop group, wherein the third phase-locked loop group is used to generate a third clock frequency group; the variable frequency is adjusted within the frequency range of the variable frequency, and if there is a frequency that is not included in the third clock frequency group among the frequencies after the adjustment of the variable frequency, a phase-locked loop is added according to the frequencies that are not included in the third clock frequency group to obtain a second phase-locked loop group.
[0075] In one possible implementation, the chip includes multiple operating modes, and the multiple demand frequencies are the demand frequencies corresponding to the multiple operating modes respectively, and the configured phase-locked loop generates different clock frequency groups in different operating modes; the determination module 601 is also used to determine to add a configured phase-locked loop to the chip based on the configured phase-locked loop according to the demand frequencies that meet the restriction conditions if there is a demand frequency that meets the restriction conditions among the multiple demand frequencies generated by the configured phase-locked loop; the restriction conditions include: the demand frequencies under the same operating mode are generated by the same phase-locked loop in different operating modes, and the demand frequencies that have a dependent relationship are generated by different phase-locked loops.
[0076] It should be understood that the device provided in the above embodiment only uses the division of the above functional modules as an example to implement its functions. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process and beneficial effects thereof are detailed in the method embodiment, which will not be repeated here.
[0077] Please refer to Figure 7 , which shows a schematic diagram of the structure of a computer device provided by an embodiment of the present application. The computer device may be a terminal, such as a smart phone, a tablet computer, a vehicle-mounted terminal, a laptop computer or a desktop computer. The terminal may also be called a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.
[0078] Typically, the terminal includes: a processor 701 and a memory 702 .
[0079] The processor 701 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 701 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 701 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 701 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 701 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0080] The memory 702 may include one or more computer-readable storage media, which may be non-transitory. The memory 702 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 702 is used to store at least one instruction, which is used to be executed by the processor 701 to implement the configuration method of the phase-locked loop provided in the method embodiment of the present application.
[0081] In some embodiments, the terminal may further optionally include: a peripheral device interface 703 and at least one peripheral device. The processor 701, the memory 702 and the peripheral device interface 703 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 703 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 704, a display screen 705, a camera assembly 706, an audio circuit 707 and a power supply 708.
[0082] The peripheral device interface 703 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 701 and the memory 702. In some embodiments, the processor 701, the memory 702, and the peripheral device interface 703 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 701, the memory 702, and the peripheral device interface 703 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0083] The radio frequency circuit 704 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 704 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 704 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 704 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 704 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a wireless fidelity (Wireless Fidelity, WiFi) network. In some embodiments, the radio frequency circuit 704 may also include circuits related to NFC (Near Field Communication, short-range wireless communication), which is not limited in this application.
[0084] The display screen 705 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 705 is a touch display screen, the display screen 705 also has the ability to collect touch signals on the surface or above the surface of the display screen 705. The touch signal can be input to the processor 701 as a control signal for processing. At this time, the display screen 705 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 705 can be one, which is set on the front panel of the terminal; in other embodiments, the display screen 705 can be at least two, which are respectively set on different surfaces of the terminal or are folded; in some other embodiments, the display screen 705 can be a flexible display screen, which is set on the curved surface or folded surface of the terminal. Even, the display screen 705 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 705 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc.
[0085] The camera assembly 706 is used to capture images or videos. Optionally, the camera assembly 706 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal, and the rear camera is disposed on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 706 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0086] The audio circuit 707 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 701 for processing, or input them into the radio frequency circuit 704 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 701 or the radio frequency circuit 704 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 707 may also include a headphone jack.
[0087] The power supply 708 is used to power various components in the terminal. The power supply 708 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 708 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.
[0088] In some embodiments, the terminal further includes one or more sensors 709 , including but not limited to: an acceleration sensor 710 , a gyroscope sensor 711 , a pressure sensor 712 , an optical sensor 713 , and a proximity sensor 714 .
[0089] The acceleration sensor 710 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal. For example, the acceleration sensor 710 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 701 can control the display screen 705 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 710. The acceleration sensor 710 can also be used for collecting game or user motion data.
[0090] The gyro sensor 711 can detect the body direction and rotation angle of the terminal, and the gyro sensor 711 can cooperate with the acceleration sensor 710 to collect the user's 3D actions on the terminal. The processor 701 can implement the following functions based on the data collected by the gyro sensor 711: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0091] The pressure sensor 712 can be set in the side frame of the terminal and / or the lower layer of the display screen 705. When the pressure sensor 712 is set in the side frame of the terminal, it can detect the user's holding signal of the terminal, and the processor 701 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 712. When the pressure sensor 712 is set in the lower layer of the display screen 705, the processor 701 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 705. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0092] The optical sensor 713 is used to collect the ambient light intensity. In one embodiment, the processor 701 can control the display brightness of the display screen 705 according to the ambient light intensity collected by the optical sensor 713. Specifically, when the ambient light intensity is high, the display brightness of the display screen 705 is increased; when the ambient light intensity is low, the display brightness of the display screen 705 is reduced. In another embodiment, the processor 701 can also dynamically adjust the shooting parameters of the camera assembly 706 according to the ambient light intensity collected by the optical sensor 713.
[0093] The proximity sensor 714, also known as a distance sensor, is usually arranged on the front panel of the terminal. The proximity sensor 714 is used to collect the distance between the user and the front of the terminal. In one embodiment, when the proximity sensor 714 detects that the distance between the user and the front of the terminal is gradually decreasing, the processor 701 controls the display screen 705 to switch from the screen-on state to the screen-off state; when the proximity sensor 714 detects that the distance between the user and the front of the terminal is gradually increasing, the processor 701 controls the display screen 705 to switch from the screen-off state to the screen-on state.
[0094] Those skilled in the art will understand that Figure 7 The structure shown in the figure does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine some components, or adopt a different component arrangement.
[0095] In an exemplary embodiment, a computer device is also provided, the computer device comprising a processor and a memory, wherein at least one program code is stored in the memory. The at least one program code is loaded and executed by one or more processors to enable the computer device to implement any of the above-mentioned phase-locked loop configuration methods.
[0096] In an exemplary embodiment, a computer-readable storage medium is also provided, in which at least one program code is stored. The at least one program code is loaded and executed by a processor of a computer device to enable the computer to implement any of the above-mentioned phase-locked loop configuration methods.
[0097] Optionally, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.
[0098] In an exemplary embodiment, a computer program product or a computer program is also provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes any of the above-mentioned configuration methods of a phase-locked loop.
[0099] The terms "first", "second", "third" and "fourth" etc. in the specification and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0100] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A configuration method for a phase-locked loop, It is characterized in that The method comprises: Determine a plurality of required frequencies required for the operation of the functional modules on the chip, wherein the plurality of required frequencies include fixed frequencies and variable frequencies; Determine a first phase-locked loop group according to the fixed frequency, the first phase-locked loop group includes one or more phase-locked loops, and a first clock frequency group generated by the first phase-locked loop group includes the fixed frequency; A phase-locked loop configured for the chip is determined according to the first clock frequency group and the frequency range of the variable frequency.
2. The method according to claim 1, It is characterized in that The step of determining a phase-locked loop configured for the chip according to the first clock frequency group and the frequency range of the variable frequency includes: Adjust the variable frequency within the frequency range of the variable frequency, and select a frequency in the first clock frequency group as the target frequency of the variable frequency; The first phase-locked loop group is determined to be the configured phase-locked loop.
3. The method according to claim 1, It is characterized in that The step of determining a phase-locked loop configured for the chip according to the first clock frequency group and the frequency range of the variable frequency includes: According to the first clock frequency group and the frequency range of the variable frequency, adding a phase-locked loop on the basis of the first phase-locked loop group to obtain a second phase-locked loop group; Adjust the variable frequency within the frequency range of the variable frequency, and select a frequency in the second clock frequency group generated by the second phase-locked loop group as the target frequency of the variable frequency; The second phase-locked loop group is determined to be the configured phase-locked loop.
4. The method according to claim 3, It is characterized in that The method of adding a phase-locked loop to the first phase-locked loop group according to the first clock frequency group and the frequency range of the variable frequency to obtain a second phase-locked loop group includes: If the frequency range of the variable frequency exceeds the frequency range covered by the first clock frequency group, the exceeding frequency is determined, and a phase-locked loop is added according to the exceeding frequency to obtain a second phase-locked loop group.
5. The method according to claim 3, It is characterized in that The method of adding a phase-locked loop to the first phase-locked loop group according to the first clock frequency group and the frequency range of the variable frequency to obtain a second phase-locked loop group includes: If the frequency range of the variable frequency exceeds the frequency range covered by the first clock frequency group, determining the excess frequency, adding a phase-locked loop according to the excess frequency to obtain a third phase-locked loop group, wherein the third phase-locked loop group is used to generate a third clock frequency group; The variable frequency is adjusted within the frequency range of the variable frequency. If there is a frequency not included in the third clock frequency group among the adjusted frequencies of the variable frequency, a phase-locked loop is added according to the frequency not included in the third clock frequency group to obtain a second phase-locked loop group.
6. The method according to any one of claims 1 to 5, It is characterized in that The chip includes multiple working modes, the multiple required frequencies are the required frequencies respectively corresponding to the multiple working modes, and the configured phase-locked loop generates different clock frequency groups in different working modes; After determining the phase-locked loop configured for the chip, the method further includes: If there is a demand frequency that meets the restriction condition among the multiple demand frequencies generated by the configured phase-locked loop, determine to add a configured phase-locked loop to the chip based on the configured phase-locked loop according to the demand frequency that meets the restriction condition; The restriction conditions include: the required frequency in the same working mode is generated by the same phase-locked loop in different working modes, and the required frequencies with dependencies are generated by different phase-locked loops.
7. A phase-locked loop configuration device, It is characterized in that The device comprises: A determination module, used to determine a plurality of required frequencies required for the operation of the functional modules on the chip, wherein the plurality of required frequencies include fixed frequencies and variable frequencies; The determination module is further used to determine a first phase-locked loop group according to the fixed frequency, the first phase-locked loop group includes one or more phase-locked loops, and the first clock frequency group generated by the first phase-locked loop group includes the fixed frequency; A configuration module is used to determine a phase-locked loop configured for the chip according to the first clock frequency group and the frequency range of the variable frequency.
8. A computer device, It is characterized in that The computer device includes a processor and a memory, wherein the memory stores at least one computer program or instruction, and the at least one computer program or instruction is loaded and executed by the processor so that the computer device implements the phase-locked loop configuration method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores at least one program code, and the at least one program code is loaded and executed by a processor so that a computer implements the phase-locked loop configuration method according to any one of claims 1 to 6.
10. A computer program product, It is characterized in that The computer program product comprises: a computer program code, wherein the computer program code is loaded and executed by a computer so as to enable the computer to implement the configuration method of the phase-locked loop according to any one of claims 1 to 6.
