Chip resource management method, device, equipment and storage medium based on cloud platform

By calculating the certificate call frequency and function scores, the classification tags are obtained, which solves the problem of resource waste caused by the lack of basis for certificate purchase in chip design, and achieves reasonable chip function resource management.

CN115147183BActive Publication Date: 2025-08-15SHANGHAI KAILING TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210804931.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-08
Publication Date
2025-08-15
Estimated Expiration
2042-07-08

AI Technical Summary

Technical Problem

There is a lack of basis for the purchase of certificates in existing chip designs, resulting in wasted chip functional resources.

Method used

By calculating the call frequency and function score of the certificate, a classification tag is obtained, which indicates the degree of demand for the certificate and manages chip resources based on this.

Benefits of technology

It realizes the rational management of chip functional resources, avoids resource waste, and improves the accuracy and efficiency of certificate purchase.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115147183B_ABST
    Figure CN115147183B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a chip resource management method, apparatus, device and storage medium based on a cloud platform, which relates to the field of computer technology. The chip resource management method based on a cloud platform includes: obtaining multiple certificates from the cloud platform, and calculating the certificate call frequency and certificate function score of each certificate; obtaining a classification label for each certificate based on the certificate call frequency and certificate function score of each certificate, and the classification label is used to indicate the degree of demand for the certificate; and managing the chip resources in the cloud platform based on the classification label of each certificate. The technical solution provided by the embodiment of the present invention divides classification labels for multiple certificates in a clustering manner, clarifies the degree of demand for the current certificate, and enables the purchase of certificates based on the degree of demand. It solves the problem of resource waste caused by the lack of basis for the purchase of certificates in the existing solution, and achieves the beneficial effect of being able to reasonably manage the chip function resources in the certificate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of computer technology, and in particular to a cloud platform-based chip resource management method, apparatus, device, and storage medium. Background Art

[0002] Using cloud-based chip design tools for chip design is an emerging approach to chip design. This approach reduces overall design costs for chip companies by sharing resources and functions involved in chip design, allowing companies providing design capabilities to focus more on developing functions such as embedded algorithms and schedulers.

[0003] Typically, chip design companies purchase several relevant certificates from companies that already possess chip design capabilities to ensure the legitimacy of each chip function when implemented. It's important to note that the same certificate can contain resources corresponding to multiple chip functions, and different certificates may contain the same chip functions. When a chip design company designs a chip, some chip functions listed in the certificate may be used, while others may not. Therefore, when purchasing certificates, companies generally consider current needs, which may be for a specific chip function, or purchase based on historical purchase types and volumes.

[0004] When purchasing a certificate based on historical experience or current demand, the remaining chip functions carried in the certificate are not taken into consideration, resulting in no basis for purchasing the certificate, thereby causing a waste of resources for the remaining chip functions. Summary of the Invention

[0005] The embodiments of the present invention provide a chip resource management method, apparatus, device and storage medium based on a cloud platform, which can improve the existing chip resource management solution.

[0006] In a first aspect, an embodiment of the present invention provides a chip resource management method based on a cloud platform, comprising:

[0007] Obtain multiple certificates from the cloud platform and calculate the certificate call frequency and certificate function score of each certificate;

[0008] Obtaining a classification label for each certificate according to the certificate call frequency and the certificate function score of each certificate, wherein the classification label is used to indicate the degree of demand for the certificate;

[0009] The chip resources in the cloud platform are managed according to the classification label of each certificate.

[0010] Optionally, each certificate is used to implement multiple chip functions;

[0011] For any certificate, the calculation of the certificate call frequency and the certificate function score of the certificate includes:

[0012] Obtain the call ratio of each chip function of the certificate;

[0013] Obtaining a call frequency of the certificate according to a call ratio of each chip function of the certificate;

[0014] The call ratio of each chip function of the certificate is scored using a preset scoring algorithm to obtain the certificate function score.

[0015] Optionally, for any chip function of the certificate, the call ratio of the chip function obtained by obtaining the certificate includes:

[0016] Obtain the call frequency of the chip function in all certificates that can realize the chip function within a historical period;

[0017] Summing the call frequencies of the chip function in all certificates capable of implementing the chip function to obtain the total call frequency of the chip function;

[0018] According to the calling frequency of the chip function in the certificate and the total calling frequency, a calling ratio of the chip function in the certificate is obtained.

[0019] Optionally, obtaining the certificate calling frequency according to the calling ratio of each chip function of the certificate includes:

[0020] The call ratio of each chip function of the certificate is averaged to obtain the call frequency of the certificate.

[0021] Optionally, a preset scoring algorithm is used to score the call ratio of each chip function in the certificate to obtain the certificate function score, including:

[0022] Use a preset scoring algorithm to score the call ratio of each chip function in the certificate to obtain a score for each chip function;

[0023] The scores of all the chip functions are summed to obtain the certificate function score.

[0024] Optionally, for any certificate, obtaining a classification label of the certificate according to the certificate call frequency and the certificate function score of the certificate includes:

[0025] The classification label of the certificate is obtained in a mapping relationship table according to the certificate calling frequency and the certificate function score; the mapping relationship table is obtained by clustering based on the certificate calling frequency and the certificate function score of each certificate in a historical time period.

[0026] Optionally, obtaining a classification label of the certificate in a mapping relationship table according to the certificate call frequency and the certificate function score includes:

[0027] Determine a preset gear according to the certificate call frequency, and determine a preset score according to the certificate function score, and a combination of a preset gear and a preset score corresponds to a classification label one by one;

[0028] According to the combination of the current preset gear and the preset score, a current classification label is determined in the mapping relationship table.

[0029] In a second aspect, an embodiment of the present invention provides a chip resource management device based on a cloud platform, the device comprising:

[0030] The certificate calculation module is used to obtain multiple certificates from the cloud platform and calculate the certificate call frequency and certificate function score of each certificate;

[0031] a label obtaining module, configured to obtain a classification label for each certificate based on the certificate call frequency and the certificate function score of each certificate, wherein the classification label is used to indicate the degree of demand for the certificate;

[0032] The resource management module is used to manage the chip resources in the cloud platform according to the classification label of each certificate.

[0033] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising:

[0034] at least one processor; and

[0035] a memory communicatively connected to the at least one processor; wherein,

[0036] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the cloud platform-based chip resource management method described in any embodiment of the present invention.

[0037] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the cloud platform-based chip resource management method described in any embodiment of the present invention when executed.

[0038] The cloud platform-based chip resource management method, apparatus, device and storage medium provided by the embodiment of the present invention obtains the classification label of each certificate by calculating the certificate call frequency and certificate function score of each certificate; thereby, the management of chip resources in the cloud platform is achieved through the classification label of each certificate, wherein the classification label is used to indicate the degree of demand for the certificate, and the resource represents the chip function contained in the current certificate. The technical solution provided by the embodiment of the present invention divides classification labels for multiple certificates by clustering, clarifies the degree of demand for the current certificate, and enables the purchase of certificates based on the degree of demand. It solves the problem of resource waste caused by the lack of basis for certificate purchase in the existing solution, and achieves the beneficial effect of being able to reasonably manage the chip function resources in the certificate.

[0039] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the embodiments of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying any creative work.

[0041] Figure 1 This is a flow chart of a chip resource management method based on a cloud platform provided by an embodiment of the present invention;

[0042] Figure 2 1 is another flow chart of a chip resource management method based on a cloud platform provided by an embodiment of the present invention;

[0043] Figure 3 This is a schematic diagram of the structure of a chip resource management device based on a cloud platform provided by an embodiment of the present invention;

[0044] Figure 4 It is a structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0045] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0046] The present invention will be further described in detail below with reference to the accompanying drawings and examples. It will be understood that the specific embodiments described herein are intended only to illustrate the present invention and are not intended to limit the present invention. It should also be noted that, for ease of description, the accompanying drawings only illustrate portions relevant to the present invention, not all structures.

[0047] Figure 1 A flow chart of a cloud-based chip resource management method provided in an embodiment of the present invention. This embodiment is applicable to the situation of purchasing certificates corresponding to chip functions. The method can be executed by a cloud-based chip resource management device. The cloud-based chip resource management device can be implemented in the form of hardware and / or software. The cloud-based chip resource management device can be configured in computer equipment such as servers.

[0048] The cloud platform can be understood as a management platform for chip design companies to provide chip functions to demanders (users). When demanders need corresponding chips, they need to order them from the cloud platform to meet their business needs. With the continuous development of chip manufacturing technology, the degree of chip integration is getting higher and higher. A large amount of calculation, verification, and simulation work requires powerful Internet resources as support. The manpower and material resources invested by enterprises in building Internet resource equipment on their own will be very huge. Therefore, by implementing chip design software calls on the cloud platform, it has become an effective way for integrated circuit (IC) design companies to "reduce costs and increase efficiency."

[0049] Specifically, please refer to Figure 1 The chip resource management method based on the cloud platform provided in the embodiment of the present invention may specifically include the following steps:

[0050] S110. Obtain multiple certificates from the cloud platform, and calculate the certificate call frequency and certificate function score of each certificate.

[0051] Multiple certificates can be the type of historical certificates currently held by the enterprise on the cloud platform. Each certificate contains several chip functions, and some of these functions may overlap. For example, Certificate A might correspond to chip functions a, b, c, and d; Certificate B might correspond to chip functions a, d, e, f, and g; and Certificate C might correspond to chip functions a, b, d, g, and h, etc. The chip functions contained in each certificate can be understood as resources within the certificate.

[0052] In practical applications, for example, a chip design company needs chip function A. When purchasing a certificate related to chip function A, how should the certificate be purchased if multiple certificates simultaneously include chip function A? Existing solutions generally determine the purchase of certificates based on historical certificate purchases or user experience. However, this purchasing method fails to consider the possibility that certificates also include other chip functions.

[0053] In view of this, the resource management solution provided by the embodiment of the present invention, in the current step, calculates the certificate call frequency and certificate function score of each certificate for multiple certificates, so as to achieve the purpose of reasonably managing the chip function resources contained in the certificate.

[0054] Specifically, before calculating the certificate call frequency and certificate function score of each certificate, we first need to convert the current problem into a corresponding mathematical description. Assume that there are N types of certificates, each certificate has K functions, some of which are repeated, that is, there will not be a total of K*N functions. Assume that there are X different functions. For a certain certificate N0, assuming it has K0 chip functions, the chip function corresponding to the current certificate can be recorded as

[0055] Furthermore, before calculating the certificate call frequency of each certificate, it is necessary to clarify the call status of the chip functions contained in each certificate. Assuming that there is a different demand for each chip function, for the current certificate N0, the demand for the chip function it contains can be recorded as For another certificate N1, assuming it has K1 chip functions, the chip function corresponding to the current certificate can be recorded as Assuming that there are different requirements for each function, the requirements for the chip functions contained in the current certificate N1 can be recorded as, Assume that some functions in N0 and N1 are repeated, such as N 11 With N 10 Repeated, the demand for the repeated function is the same, that is, l 11 =l 10 Established.

[0056] Before calculating the certificate call frequency of each certificate, it is necessary to deduplicate the repeated chip functions in all certificates, so that the certificate call frequency of each certificate can be calculated based on the calling status of the chip functions in each certificate.

[0057] Optionally, when deduplicating all certificates with repeated chip functions, deduplication can be performed by determining the relative number of calls of each chip function in the current certificate, that is, the certificate with the most calls of the same chip function in different certificates retains the current chip function, and the current chip function is removed from the remaining certificates.

[0058] If the same chip function is called the most times in multiple certificates, deduplication can be performed by calculating the weight of the current certificate in these certificates. This means retaining the current chip function in the more important certificates and removing it from the remaining certificates. The specific deduplication method for duplicate chip functions is not limited here; any method can be used as long as it achieves the desired deduplication goal.

[0059] After deduplication of each certificate, the certificate calling frequency (number) of each certificate can be obtained by summing the number of times each chip function is called in each certificate.

[0060] Furthermore, before calculating the certificate function score of each certificate, it is necessary to first calculate the chip function score contained in each certificate to obtain the certificate function score of the current certificate based on the chip function score.

[0061] Optionally, the chip function score contained in each certificate can be calculated by obtaining the weight of the current chip function in the current certificate based on the number of calls of each chip function, thereby scoring each chip function according to the weight of each chip function, and further obtaining the score of the certificate function based on the score of each chip function.

[0062] S120. Obtain a classification label for each certificate based on the certificate call frequency and certificate function score of each certificate.

[0063] To derive a classification label for each certificate based on its call frequency and function score, a clustering algorithm is first used to analyze the call frequency and function score of multiple certificates within a historical period. Based on the analysis results, each certificate is assigned a classification label, allowing multiple certificates to be clustered into pre-defined categories. The classification label indicates the degree of demand (importance) for the certificate.

[0064] It should be noted that the above historical time period can be the certificate usage of the current enterprise in the past one, two or three years, and the length of the specific historical time period is not limited here.

[0065] When analyzing the certificate call frequency and certificate function score of each certificate, the certificate call frequency of each certificate in all certificates can be divided into gears, and the certificate function score of each certificate in all certificates can be divided into gears, so as to classify the gears of certificate call frequency and certificate function score, thereby achieving the purpose of clustering multiple certificates into preset categories.

[0066] It should be noted that when clustering is performed according to a clustering algorithm, the clustering algorithm may be a K-means clustering algorithm, a hierarchical clustering algorithm, or a group analysis clustering algorithm, and the selection of a specific clustering algorithm is not limited here.

[0067] S130: Manage chip resources in the cloud platform according to the classification label of each certificate.

[0068] When managing chip resources according to the classification label of each certificate, the following method can be adopted. Taking the classification label as a number (1, 2, 3, ..., 10) as an example, the larger the number, the more important the resources corresponding to the functional chip contained in the current certificate. It can also be understood that the certificate with the current classification label is used most frequently. Therefore, when there is a demand for a certain chip function, the certificate can be purchased in order of importance to less important based on the classification of the current classification label.

[0069] In an application scenario, taking the demand for chip function a in the example of step S110 as an example, assuming that the classification label of certificate A is 8, the classification label of certificate B is 3, and the classification label of certificate C is 7, certificate A is purchased first, which means that the remaining chip functions b, c and d contained in certificate A will also have a higher usage rate in future demand, thereby achieving the purpose of effectively managing the chip resources in the certificates.

[0070] In another application scenario, when the number of chip function calls corresponding to the certificate is insufficient, the embodiment of the present invention can also purchase certificates in order from important to less important according to the classification label of each certificate until the current resource call demand is met.

[0071] The cloud platform-based chip resource management method provided by the embodiment of the present invention obtains the classification label of each certificate by calculating the certificate call frequency and certificate function score of each certificate; thus, the classification label of each certificate is used to manage the chip resources in the cloud platform, wherein the classification label is used to indicate the degree of demand for the certificate, and the resource represents the chip function contained in the current certificate. The technical solution provided by the embodiment of the present invention divides classification labels for multiple certificates by clustering, clarifies the degree of demand for the current certificate, and enables the purchase of certificates based on the degree of demand. It solves the problem of resource waste caused by the lack of basis for certificate purchase in the existing solution, and achieves the beneficial effect of being able to reasonably manage the chip function resources in the certificate.

[0072] Figure 2 This is another flow chart of the chip resource management method based on the cloud platform provided by an embodiment of the present invention. The relationship between this embodiment and the above embodiment is a further refinement of the corresponding features of the above embodiment.

[0073] like Figure 2 As shown, in the current embodiment, any one of the multiple certificates is used for illustration. For any one of the certificates, the method may include the following steps:

[0074] S210: Obtain the call ratio of each chip function for which a certificate is obtained from the cloud platform.

[0075] The call ratio of the chip function can be understood as the usage of the current chip function in the current certificate. That is, the more frequently it is used, the greater the call ratio.

[0076] In an optional embodiment, the resource management solution provided in the embodiment of the present invention obtains, for any chip function in the certificate, a call ratio of the chip function in the certificate, including the following steps:

[0077] a) Obtain the chip function call frequency in all certificates that can realize chip functions within a historical period.

[0078] In order to clarify the usage of each chip function, it is necessary to obtain the call frequency of each chip function in the current certificate within the historical time period. The current call frequency indicates the number of calls.

[0079] When obtaining the call frequency record of each chip function in the current certificate, each chip function is a different function. The above historical time period can be the certificate usage of the current enterprise in the past one, two, or three years. The specific length of the historical time period is not limited here.

[0080] b) Sum the calling frequencies of the chip functions in all certificates that can realize the chip functions to obtain the total calling frequency of the chip functions.

[0081] For the current certificate, the purpose of obtaining the total call frequency of the chip function is to facilitate the subsequent calculation of the certificate call frequency of the current certificate by counting the call frequencies of all chip functions in the current certificate.

[0082] For example, assume that the current certificate is N t , for m different chip functions in the current certificate, the calling frequency of each chip function can be expressed as L1, L2, ...L m , the total call frequency of the chip function is recorded as S, then for any certificate N t , has the following expression:

[0083] L1+L2+…+L m =S (1)

[0084] c) Based on the calling frequency and total calling frequency of the chip function in the certificate, obtain the calling ratio of the chip function in the certificate.

[0085] The call ratio of the chip function can be obtained by dividing the call frequency of the current chip function by the total call frequency of the current certificate.

[0086] Combined with the above step b), record the current certificate N t The function of a chip in the zt , and its corresponding calling frequency is l zt , the call ratio of chip function is recorded as S zt , then the call ratio of any chip function has the following expression:

[0087]

[0088] S220: Obtain a certificate calling frequency according to a calling ratio of each chip function in the certificate.

[0089] After obtaining the call ratio of each chip function in the current certificate based on the above step (c), the certificate call frequency of the current certificate can be obtained by averaging the call ratios of each chip function in the certificate.

[0090] Specifically, in combination with the above step S210, the sum of the call ratios of each chip function is recorded as S Mt , then the expression is as follows:

[0091] S Mt =S 1t +…+S zt +…+S mt (3)

[0092] The certificate call frequency of the current certificate is S t , then for any certificate N with X different chip functionst , and its corresponding certificate call frequency S t With the following expression:

[0093]

[0094] S230: Use a preset scoring algorithm to score the call ratio of each chip function in the certificate to obtain a certificate function score.

[0095] Based on the obtained call ratio of the chip function, the current chip function is scored. It can be understood that the importance of the current chip function can be known by the high or low score.

[0096] The above-mentioned scoring algorithm can be a scoring algorithm obtained by developers based on research on convolutional neural network structure (CNN), recurrent neural network (RNN), and / or deep neural network (DNN), etc. The network model used in the specific preset scoring algorithm is not limited here.

[0097] Optionally, the chip resource management solution provided in an embodiment of the present invention uses a preset scoring algorithm to score the call ratio of each chip function in the certificate to obtain a certificate function score, including the following steps:

[0098] a) Use the preset scoring algorithm to score the call ratio of each chip function in the certificate to obtain the score of each chip function.

[0099] For a chip function N zt , record the chip function score as B zt , then the call ratio S of each chip function is calculated using the preset scoring algorithm. zt The following rules may be used when scoring:

[0100] If the corresponding call ratio S zt ≤0.25, then record B zt =1;

[0101] If 0.25 zt ≤0.5, then B zt =2;

[0102] If 0.5 zt ≤0.75, then B zt =3;

[0103] If 0.75 zt ≤1, then B zt =4.

[0104] That is, the call ratios of all chip functions are clustered into a preset number of gears, and a corresponding score value is determined for each gear. The higher the call ratio, the higher the corresponding score value.​​​

[0105] It should be noted that when scoring the call ratio of each chip function in the certificate, it is not limited to the above-mentioned division values and scoring values.

[0106] b) Sum the scores of all chip functions to obtain the certificate function score.

[0107] For the current certificate, after obtaining the scores of each chip function corresponding to all chip functions, the scores of all chip functions are summed up to obtain the certificate function score of the current certificate. The certificate function score can be recorded as B t .

[0108] S240. Obtain a classification label of the certificate in the mapping relationship table according to the certificate call frequency and the certificate function score.

[0109] The mapping relationship table is obtained by clustering based on the certificate call frequency and certificate function score of each certificate in a historical time period.

[0110] The chip resource management solution provided by an embodiment of the present invention obtains a classification label of a certificate in a mapping relationship table based on the certificate call frequency and the certificate function score, including the following steps:

[0111] a) A preset gear is determined according to the certificate call frequency, and a preset score is determined according to the certificate function score. A combination of a preset gear and a preset score corresponds to a classification label one by one.

[0112] The preset gear means that the gear is divided according to the obtained certificate call frequency value. The current gear division can be divided with a gradient of 0.25, and four preset gears can be obtained. For example, S t ≤0.25; 0.25 t ≤0.5; 0.5 t ≤0.75; and 0.75 t ≤ 1. The number of gears and the gradient value are determined based on the frequency of certificate calls and are not limited here.

[0113] When determining the preset score based on the certificate function score, the preset score can be determined by dividing the scores of the certificates obtained by the median, mode or mean. For example, according to the certificate function scores of all certificates, if the scores are between [10, 90], then B t =50 as the preset score; if the mode of the certificate function scores of all certificates is 30, then B t =30 as the preset score; if the average certificate score of all certificates is 40, then B t ​​​=40 is used as the preset score. The specific method of determining the preset score based on the certificate function score and the specific value of the preset score are not limited here.

[0114] After obtaining the certificate function score related to the preset gear and preset score related to the certificate call frequency, a combination of a preset gear and a preset score is formed according to the relationship of and. For example, the formed combination can be S t ≤0.25, and B t ≤30; or S t ≤0.25, and B t >30, etc. And determine the corresponding classification label for each combination.

[0115] The current classification label can be used to indicate the importance of the certificate corresponding to the current combination.

[0116] b) Determine the current classification label in the mapping relationship table according to the combination of the current preset gear and the preset score.

[0117] Specifically, based on the certificate call frequency S obtained in step S220 above t , and the certificate function score B obtained in step S230 t When clustering all certificates, the classification labels obtained are recorded as R t , the obtained mapping relationship table can be expressed using the following rules:

[0118] If S t ≤0.25 and B t ≤30, then R t =1;

[0119] If S t ≤0.25 and B t >30, then R t =2;

[0120] If 0.25 t ≤0.5 and B t ≤30, then R t =3;

[0121] If 0.25 t ≤0.5 and B t >30, then R t =4;

[0122] If 0.5 t ≤0.75 and B t ≤30, then R t =5;

[0123] If 0.5 t ≤0.75 and B​​​​t >30, then R t =6;

[0124] If 0.75 t ≤1 and B t ≤30, then R t =7;

[0125] If 0.75 t ≤1 and B t >30, then R t =8.

[0126] Among them, the larger the value of the above classification label is, the more likely it is that the current certificate has the largest demand proportion among all certificates, that is, it is the most important.

[0127] It should be noted that, in the above process, the certificate call frequency S t and certificate function score B t When performing clustering, the classification values of each gear and the label values of the classification labels are not limited to the above examples.

[0128] S250: Manage chip resources in the cloud platform according to the classification label of each certificate.

[0129] According to the classification label of each certificate, the chip resources can be managed in such a way that when the number of calls to the certificate chip function of a certain certificate is insufficient, the certificate with the largest classification label value among the current chip functions can be purchased based on the size of the obtained classification label; when the number of certificates is sufficient but there is additional funds to invest in a batch of certificates, the certificates can also be purchased in order from large to small based on the classification label of each type of certificate to ensure the rationality of certificate procurement.

[0130] The chip resource management solution provided by the embodiment of the present invention is used in all situations where resources are dynamically expanded for certificate functions during chip design. When purchasing certificates, it is only necessary to understand the current demand for chip functions and then purchase them according to the priority order. On the basis of ensuring the accuracy and feasibility of certificate purchase, it also achieves the technical effect of reasonable resource allocation.

[0131] Figure 3 This is a schematic diagram of the structure of a chip resource management device based on a cloud platform provided by an embodiment of the present invention. The device is suitable for executing the chip resource management method based on a cloud platform provided by an embodiment of the present invention. Figure 3 As shown, the device may specifically include: a certificate calculation module 310, a label acquisition module 320 and a resource management module 330, wherein:

[0132] ​​The certificate calculation module 310 is used to obtain multiple certificates from the cloud platform and calculate the certificate call frequency and certificate function score of each certificate;

[0133] a label obtaining module 320 for obtaining a classification label for each certificate based on the certificate call frequency and the certificate function score of each certificate, wherein the classification label is used to indicate the degree of demand for the certificate;

[0134] The resource management module 330 is configured to manage chip resources in the cloud platform according to the classification label of each certificate.

[0135] The chip resource management device based on the cloud platform provided by the embodiment of the present invention obtains the classification label of each certificate by calculating the certificate call frequency and certificate function score of each certificate; thus, the classification label of each certificate is used to manage the chip resources in the cloud platform, wherein the classification label is used to indicate the degree of demand for the certificate, and the resource represents the chip function contained in the current certificate. The technical solution provided by the embodiment of the present invention divides classification labels for multiple certificates by clustering, clarifies the degree of demand for the current certificate, and enables the purchase of certificates based on the degree of demand. It solves the problem of resource waste caused by the lack of basis for certificate purchase in the existing solution, and achieves the beneficial effect of being able to reasonably manage the chip function resources in the certificate.

[0136] In one embodiment, the certificate calculation module 310 includes: an acquisition unit, an obtaining unit, and a scoring unit, wherein:

[0137] an acquiring unit, configured to acquire a call ratio of each chip function of the certificate;

[0138] an obtaining unit, configured to obtain a calling frequency of the certificate according to a calling ratio of each chip function of the certificate;

[0139] The scoring unit is used to score the call ratio of each chip function of the certificate using a preset scoring algorithm to obtain the certificate function score.

[0140] In one embodiment, the acquisition unit is specifically used to obtain the calling frequency of the chip function in all certificates that can realize the chip function within a historical period; sum the calling frequency of the chip function in all certificates that can realize the chip function to obtain the total calling frequency of the chip function; and obtain the calling ratio of the chip function of the certificate based on the calling frequency of the chip function in the certificate and the total calling frequency.

[0141] In one embodiment, the obtaining unit is specifically configured to obtain the certificate calling frequency by averaging the calling ratios of each chip function in the certificate.

[0142] In one embodiment, the scoring unit is specifically used to score the call ratio of each chip function of the certificate using a preset scoring algorithm to obtain a score for each chip function; and sum the scores of all the chip functions to obtain the certificate function score.

[0143] In one embodiment, the label acquisition module 320 is specifically used to obtain the classification label of the certificate in the mapping relationship table based on the certificate call frequency and the certificate function score; the mapping relationship table is obtained by clustering based on the certificate call frequency and the certificate function score of each certificate in a historical time period.

[0144] In one embodiment, the label acquisition module 320 is specifically used to determine a preset gear according to the certificate call frequency, and to determine a preset score according to the certificate function score, and a combination of the preset gear and the preset score corresponds one-to-one to a classification label; based on the current combination of the preset gear and the preset score, the current classification label is determined in the mapping relationship table.

[0145] Those skilled in the art will clearly understand that for the sake of convenience and brevity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the functional modules described above can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.

[0146] An embodiment of the present invention also provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the cloud platform-based chip resource management method described in any embodiment of the present invention.

[0147] An embodiment of the present invention further provides a computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a processor to implement the cloud platform-based chip resource management method described in any embodiment of the present invention when executed.

[0148] Reference below Figure 4 , which shows a schematic structural diagram of a computer system 500 of an electronic device suitable for implementing an embodiment of the present invention. Figure 4 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present invention.

[0149] like Figure 4 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage unit 508 into a random access memory (RAM) 503. Various programs and data required for the operation of the system 500 are also stored in the RAM 503. The CPU 501, ROM 502, and RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0150] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, and the like; an output section 507 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage section 508 including a hard disk; and a communication section 509 including a network interface card such as a LAN card or a modem. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in the drive 510 as needed, so that computer programs read therefrom can be installed into the storage section 508 as needed.

[0151] In particular, according to the embodiments disclosed in the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 509, and / or installed from a removable medium 511. When the computer program is executed by the central processing unit (CPU) 501, the above-mentioned functions defined in the system of the present invention are performed.

[0152] It should be noted that the computer-readable medium described in the present invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media can include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. This propagated data signal can take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, or any suitable combination thereof.

[0153] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the above-mentioned module, program segment, or a part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0154] The modules and / or units described in the embodiments of the present invention may be implemented in software or hardware. The modules and / or units described may also be provided in a processor. For example, a processor may be described as including a certificate calculation module, a label acquisition module, and a resource management module. The names of these modules do not, in some cases, limit the modules themselves.

[0155] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently and not be incorporated into the device. The computer-readable medium carries one or more programs. When executed by the device, the device performs the following operations: obtaining multiple certificates and calculating the certificate call frequency and certificate function score for each certificate; obtaining a classification tag for each certificate based on the certificate call frequency and certificate function score, the classification tag being used to indicate the degree of demand for the certificate; and managing chip resources based on the classification tag for each certificate.

[0156] According to the technical solution of the embodiment of the present invention, the classification label of each certificate can be obtained by calculating the certificate call frequency and certificate function score of each certificate; thus, the chip resources in the cloud platform can be managed through the classification label of each certificate, wherein the classification label is used to indicate the degree of demand for the certificate, and the resource represents the chip function contained in the current certificate. The technical solution provided by the embodiment of the present invention divides classification labels for multiple certificates in a clustering manner, clarifies the degree of demand for the current certificate, and enables the purchase of certificates based on the degree of demand. It solves the problem of resource waste caused by the lack of basis for certificate purchase in the existing solution, and achieves the beneficial effect of being able to reasonably manage the chip function resources in the certificate.

[0157] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.

Claims

1. A chip resource management method based on a cloud platform, characterized in that: The method comprises: Obtain multiple certificates from the cloud platform and calculate the certificate call frequency and certificate function score of each certificate; Obtaining a classification label for each certificate according to the certificate call frequency and the certificate function score of each certificate, wherein the classification label is used to indicate the degree of demand for the certificate; Managing chip resources in the cloud platform according to the classification label of each certificate; Each certificate is used to implement multiple chip functions. For any certificate, the certificate call frequency and certificate function score of the certificate are calculated, including: Obtaining the call ratio of each chip function of the certificate; obtaining the certificate call frequency according to the call ratio of each chip function of the certificate; scoring the call ratio of each chip function of the certificate using a preset scoring algorithm to obtain the certificate function score; Wherein, for any chip function of the certificate, obtaining the call ratio of the chip function of the certificate includes: obtaining the call frequency of the chip function in all certificates that can realize the chip function within a historical period; summing the call frequency of the chip function in all certificates that can realize the chip function to obtain the total call frequency of the chip function; and obtaining the call ratio of the chip function of the certificate based on the call frequency of the chip function in the certificate and the total call frequency; The obtaining of the certificate calling frequency according to the calling ratio of each chip function of the certificate includes: averaging the calling ratios of each chip function of the certificate to obtain the certificate calling frequency; Among them, using a preset scoring algorithm to score the call ratio of each chip function of the certificate to obtain the certificate function score, including: using a preset scoring algorithm to score the call ratio of each chip function of the certificate to obtain the score of each chip function; summing up the scores of all the chip functions to obtain the certificate function score.

2. The method according to claim 1, characterized in that For any certificate, obtaining a classification label of the certificate according to the certificate call frequency and the certificate function score of the certificate includes: The classification label of the certificate is obtained in a mapping relationship table according to the certificate calling frequency and the certificate function score; the mapping relationship table is obtained by clustering based on the certificate calling frequency and the certificate function score of each certificate in a historical time period.

3. The method according to claim 2, characterized in that The obtaining of the classification label of the certificate in a mapping relationship table according to the certificate call frequency and the certificate function score includes: Determine a preset gear according to the certificate call frequency, and determine a preset score according to the certificate function score, and a combination of a preset gear and a preset score corresponds to a classification label one by one; According to the combination of the current preset gear and the preset score, a current classification label is determined in the mapping relationship table.

4. A chip resource management device based on a cloud platform, characterized in that: include: The certificate calculation module is used to obtain multiple certificates from the cloud platform and calculate the certificate call frequency and certificate function score of each certificate; a label obtaining module, configured to obtain a classification label for each certificate based on the certificate call frequency and the certificate function score of each certificate, wherein the classification label is used to indicate the degree of demand for the certificate; A resource management module, configured to manage chip resources in the cloud platform according to the classification label of each certificate; The certificate calculation module includes: an acquisition unit, an obtaining unit and a scoring unit; The obtaining unit is configured to obtain a call ratio of each chip function in the certificate; The obtaining unit is configured to obtain the certificate calling frequency according to the calling ratio of each chip function of the certificate; The scoring unit is configured to score the call ratio of each chip function in the certificate using a preset scoring algorithm to obtain the certificate function score; The obtaining unit is specifically configured to obtain the calling frequencies of the chip function in all certificates that can realize the chip function within a historical period; sum the calling frequencies of the chip function in all certificates that can realize the chip function to obtain the total calling frequency of the chip function; and obtain the calling ratio of the chip function in the certificate based on the calling frequency of the chip function in the certificate and the total calling frequency; The obtaining unit is specifically configured to calculate an average of the call ratios of each chip function of the certificate to obtain the call frequency of the certificate; The scoring unit is specifically configured to score the call ratio of each chip function of the certificate using a preset scoring algorithm to obtain a score for each chip function; and to sum the scores of all the chip functions to obtain the certificate function score.

5. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the cloud platform-based chip resource management method according to any one of claims 1 to 4.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the cloud platform-based chip resource management method as described in any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Certificate installation method and device

    CN112910874A

  • Resource processing method and device based on multiple cloud platforms

    CN113760528A