Method and system for automatically calculating area of processor, electronic equipment and medium

By generating lookup tables and linear fitting functions, the processor area is automatically calculated, solving the time-consuming problem in existing technologies and achieving fast and accurate processor area assessment.

CN119026560APending Publication Date: 2024-11-26CHIPEASY TECHNOLOGY (SHANGHAI) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310591068.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-24
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

In existing technologies, the process of fitting and generating processor area parameters is time-consuming, resulting in low efficiency in engineering design adjustments.

Method used

By generating lookup tables and linear fitting functions, the processor area is automatically calculated. The area is then fitted using random configuration parameters and a comprehensive area, resulting in a fast and accurate area calculation method.

Benefits of technology

It achieves fast and accurate processor area calculation. As the number of sample points increases, the evaluation accuracy improves. The parameters are 100% accurate within the lookup table, and the error is within 20% within the fitting range.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119026560A_ABST
    Figure CN119026560A_ABST
Patent Text Reader

Abstract

The invention discloses a processor area automatic calculation method and system, electronic equipment and a medium, and relates to the field of processor area calculation. The method comprises the following steps: extracting all configuration item parameters of a plurality of sample processors, and generating random configuration item parameters; synthesizing the random configuration item parameters to obtain a comprehensive area of each sample processor; generating a lookup table based on the random configuration item parameters and the comprehensive area; the comprehensive area of each sample processor in the lookup table corresponds to the random configuration item parameter of each sample processor; determining a linear fitting function based on the random configuration item parameters and the comprehensive area; and determining the area of a to-be-evaluated processor by adopting the lookup table and the linear fitting function based on configuration item parameters of the to-be-evaluated processor. According to the method, the processor area is quickly and accurately calculated through the pre-generated lookup table and the linear fitting function.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of processor area calculation, and in particular to a method, system, electronic equipment and medium for automatically calculating the area of ​​a processor. Background Art

[0002] The processor generation method will generate a large number of processors, and engineers need to get the current processor area parameters as soon as possible to facilitate engineers to make design adjustments. Multi-dimensional parameters will produce exponential results, and the process of fitting and generating will consume a lot of man-hours. Summary of the invention

[0003] The purpose of the present invention is to provide a method, system, electronic device and medium for automatically calculating the area of ​​a processor, so as to solve the problem of consuming a lot of man-hours in the prior art.

[0004] To achieve the above object, the present invention provides the following solutions:

[0005] A method for automatically calculating processor area, comprising:

[0006] Extract all configuration item parameters of multiple sample processors and generate random configuration item parameters;

[0007] The random configuration item parameters are integrated to obtain the integrated area of ​​each sample processor;

[0008] Generate a lookup table based on the random configuration item parameter and the comprehensive area; the comprehensive area of ​​each sample processor in the lookup table corresponds to the random configuration item parameter of each sample processor;

[0009] Determining a linear fitting function based on the random configuration item parameters and the comprehensive area;

[0010] Based on the configuration item parameters of the processor to be evaluated, the area of ​​the processor to be evaluated is determined using the lookup table and the linear fitting function.

[0011] Optionally, determining a linear fitting function based on the random configuration item parameter and the comprehensive area specifically includes:

[0012] Fitting the random configuration item parameters by an initial linear fitting function to obtain a fitting area;

[0013] The initial linear fitting function is updated according to the error between the fitting area and the comprehensive area to obtain a final linear fitting function.

[0014] Optionally, based on the configuration item parameters of the processor to be evaluated, the area of ​​the processor to be evaluated is determined by using the lookup table and the linear fitting function, specifically including:

[0015] Matching the same random configuration item parameters in the lookup table according to the configuration item parameters of the processor to be evaluated, and determining that the comprehensive area corresponding to the matched random configuration item parameters is the area of ​​the processor to be evaluated;

[0016] If the same random configuration item parameters are not matched, the configuration item parameters of the evaluation processor are fitted by the linear fitting function to obtain the area of ​​the processor to be evaluated.

[0017] The present invention also provides a system for automatically calculating the area of ​​a processor, comprising:

[0018] A random configuration item parameter generation module is used to extract all configuration item parameters of multiple sample processors and generate random configuration item parameters;

[0019] A comprehensive area determination module, used to synthesize the random configuration item parameters to obtain the comprehensive area of ​​each sample processor;

[0020] A lookup table generation module, configured to generate a lookup table based on the random configuration item parameters and the comprehensive area; the comprehensive area of ​​each sample processor in the lookup table corresponds to the random configuration item parameters of each sample processor;

[0021] A linear fitting function determination module, used to determine a linear fitting function based on the random configuration item parameters and the comprehensive area;

[0022] The module for determining the area of ​​the processor to be evaluated is used to determine the area of ​​the processor to be evaluated by using the lookup table and the linear fitting function based on the configuration item parameters of the processor to be evaluated.

[0023] Optionally, the linear fitting function determination module specifically includes:

[0024] A first fitting unit, used for fitting the random configuration item parameters by using an initial linear fitting function to obtain a fitting area;

[0025] An updating unit is used to update the initial linear fitting function according to the error between the fitting area and the comprehensive area to obtain a final linear fitting function.

[0026] Optionally, the module for determining the area of ​​the processor to be evaluated specifically includes:

[0027] A matching unit, configured to match the same random configuration item parameters in the lookup table according to the configuration item parameters of the processor to be evaluated, and determine that the comprehensive area corresponding to the matched random configuration item parameters is the area of ​​the processor to be evaluated;

[0028] The second fitting unit is used to fit the configuration item parameters of the evaluation processor by using the linear fitting function to obtain the area of ​​the processor to be evaluated when the same random configuration item parameters are not matched.

[0029] The present invention also provides an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the above-mentioned method for automatically calculating the processor area.

[0030] The present invention also provides a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the above-mentioned method for automatically calculating the processor area.

[0031] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0032] The present invention can automatically calculate the area of ​​the processor to be evaluated by generating a lookup table and a linear fitting function, which saves time and effort; and as the number of sample points collected increases, the evaluation accuracy of the processor area will continue to improve. If the parameters fall within the range of the lookup table, a 100% accurate result can be obtained. If the parameters fall within the fitting range, a result with an error within 20% can still be obtained. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0034] Figure 1 This is a flow chart of a method for automatically calculating processor area provided in Embodiment 1 of the present invention. DETAILED DESCRIPTION

[0035] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments 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 creative work are within the scope of protection of the present invention.

[0036] The purpose of the present invention is to provide a method, system, electronic device and medium for automatically calculating the area of ​​a processor, which can quickly and accurately calculate the area of ​​the processor through a pre-generated lookup table and a linear fitting function.

[0037] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0038] Embodiment 1

[0039] like Figure 1 As shown, the method for automatically calculating the processor area provided by the present invention comprises the following steps:

[0040] S1: Extract all configuration item parameters of multiple sample processors and generate random configuration item parameters.

[0041] Based on the dedicated processor generation tool fconfig, all configuration item parameters of the processor are extracted. The configuration item parameters include instruction set, modular enable option, data width, function enable, DTCMITCM and other storage unit options.

[0042] Generate random configuration item parameters and save them as a csv table. If the generated random item parameters have been saved in the table, they will be discarded. The generation of random configuration item parameters is to generate weighted random configuration item parameters according to the importance of each module of the processor. For example, the LSU module accounts for 40% of the entire processor, so the random weights of several groups of parameters corresponding to the LSU module are larger. The DBG module only accounts for 5% of the processor, so the random weights of its corresponding parameters are lower.

[0043] S2: Integrate the random configuration item parameters to obtain the integrated area of ​​each sample processor.

[0044] S3: Generate a lookup table based on the random configuration item parameters and the comprehensive area; the comprehensive area of ​​each sample processor in the lookup table corresponds to the random configuration item parameters of each sample processor.

[0045] The processor design corresponding to the random configuration item is synthesized and the result is saved in a csv table. At this time, the random configuration item corresponds to the integrated area, which is a valid record. Steps S1-S3 are executed repeatedly to gradually accumulate sufficient sample point data.

[0046] S4: Determine a linear fitting function based on the random configuration item parameters and the comprehensive area.

[0047] The generated random configuration item parameters and the comprehensive area are subjected to a new round of fitting through the linear fitting function, and the fitting results are verified. If the average variance between the processor area fitted by the linear fitting function and the actual area is greater than that of the previous linear fitting function, the current linear fitting function is discarded, otherwise it is updated to a new linear fitting function.

[0048] S5: Based on the configuration item parameters of the processor to be evaluated, determine the area of ​​the processor to be evaluated using the lookup table and the linear fitting function.

[0049] After the processor design to be evaluated is generated, the configuration item parameters are extracted and first searched in the lookup table. If the same configuration item is matched, the corresponding area data is directly returned.

[0050] When the generated configuration item parameters are not in the lookup table, the parameters are directly substituted into the linear fitting function and the calculated area result is returned.

[0051] Embodiment 2

[0052] In order to execute the method corresponding to the above-mentioned embodiment 1 to achieve corresponding functions and technical effects, a system for automatically calculating the area of ​​a processor is provided below.

[0053] The system includes:

[0054] A random configuration item parameter generation module is used to extract all configuration item parameters of multiple sample processors and generate random configuration item parameters;

[0055] A comprehensive area determination module, used to synthesize the random configuration item parameters to obtain the comprehensive area of ​​each sample processor;

[0056] A lookup table generation module, configured to generate a lookup table based on the random configuration item parameters and the comprehensive area; the comprehensive area of ​​each sample processor in the lookup table corresponds to the random configuration item parameters of each sample processor;

[0057] A linear fitting function determination module, used to determine a linear fitting function based on the random configuration item parameters and the comprehensive area;

[0058] The module for determining the area of ​​the processor to be evaluated is used to determine the area of ​​the processor to be evaluated by using the lookup table and the linear fitting function based on the configuration item parameters of the processor to be evaluated.

[0059] Furthermore, the linear fitting function determination module specifically includes:

[0060] A first fitting unit, used for fitting the random configuration item parameters by using an initial linear fitting function to obtain a fitting area;

[0061] An updating unit is used to update the initial linear fitting function according to the error between the fitting area and the comprehensive area to obtain a final linear fitting function.

[0062] Furthermore, the module for determining the area of ​​the processor to be evaluated specifically includes:

[0063] A matching unit, configured to match the same random configuration item parameters in the lookup table according to the configuration item parameters of the processor to be evaluated, and determine that the comprehensive area corresponding to the matched random configuration item parameters is the area of ​​the processor to be evaluated;

[0064] The second fitting unit is used to fit the configuration item parameters of the evaluation processor by the linear fitting function to obtain the area of ​​the processor to be evaluated when the same random configuration item parameters are not matched.

[0065] Embodiment 3

[0066] A third embodiment of the present invention provides an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the method for automatically calculating the processor area provided in the first embodiment.

[0067] In practical applications, the above electronic device may be a server.

[0068] In practical applications, an electronic device includes: at least one processor, a memory, a bus and a communications interface.

[0069] Wherein: the processor, the communication interface, and the memory communicate with each other via a communication bus.

[0070] Communication interface, used to communicate with other devices.

[0071] The processor is used to execute the program, and specifically can execute the method described in the above embodiment.

[0072] Specifically, the program may include program codes including computer operation instructions.

[0073] The processor may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the electronic device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0074] The memory is used to store programs. The memory may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0075] Embodiment 4

[0076] Based on the description of the third embodiment, the fourth embodiment of the present invention provides a storage medium on which a computer program is stored. The computer program can be executed by a processor to implement the method for automatically calculating the processor area of ​​the first embodiment.

[0077] The processor area automatic calculation system provided in the second embodiment of the present invention exists in various forms, including but not limited to:

[0078] (1) Mobile communication devices: These devices are characterized by having mobile communication functions and their main purpose is to provide voice and data communications. These terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.

[0079] (2) Ultra-mobile personal computer devices: These devices fall into the category of personal computers, have computing and processing capabilities, and generally also have mobile Internet access capabilities. These terminals include: PDA, MID and UMPC devices, such as iPad.

[0080] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players (such as iPods), handheld game consoles, e-books, smart toys, and portable car navigation devices.

[0081] (4) Other electronic devices with data interaction functions.

[0082] Thus far, specific embodiments of the subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recited in the claims may be performed in a different order and still achieve the desired results. Additionally, the processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing may be advantageous.

[0083] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0084] For the convenience of description, the above device is described by being divided into various units according to their functions. Of course, when implementing the present invention, the functions of each unit can be implemented in one or more software and / or hardware. It should be understood by those skilled in the art that the embodiments of the present invention can be provided as methods, systems or computer program products. Therefore, the present invention can take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0085] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0086] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0087] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0088] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0089] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0090] Computer readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined in the present invention, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0091] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0092] The invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer.

[0093] Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present invention can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media, including storage devices.

[0094] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0095] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A method for automatically calculating processor area, characterized in that: include: Extract all configuration item parameters of multiple sample processors and generate random configuration item parameters; The random configuration item parameters are integrated to obtain the integrated area of ​​each sample processor; Generate a lookup table based on the random configuration item parameter and the comprehensive area; the comprehensive area of ​​each sample processor in the lookup table corresponds to the random configuration item parameter of each sample processor; Determining a linear fitting function based on the random configuration item parameters and the comprehensive area; Based on the configuration item parameters of the processor to be evaluated, the area of ​​the processor to be evaluated is determined using the lookup table and the linear fitting function.

2. The method for automatically calculating processor area according to claim 1, characterized in that: Determining a linear fitting function based on the random configuration item parameter and the comprehensive area specifically includes: Fitting the random configuration item parameters by an initial linear fitting function to obtain a fitting area; The initial linear fitting function is updated according to the error between the fitting area and the comprehensive area to obtain a final linear fitting function.

3. The method for automatically calculating processor area according to claim 1, characterized in that: Based on the configuration item parameters of the processor to be evaluated, the area of ​​the processor to be evaluated is determined by using the lookup table and the linear fitting function, specifically including: Matching the same random configuration item parameters in the lookup table according to the configuration item parameters of the processor to be evaluated, and determining that the comprehensive area corresponding to the matched random configuration item parameters is the area of ​​the processor to be evaluated; If the same random configuration item parameters are not matched, the configuration item parameters of the evaluation processor are fitted by the linear fitting function to obtain the area of ​​the processor to be evaluated.

4. A system for automatically calculating processor area, characterized in that: include: A random configuration item parameter generation module is used to extract all configuration item parameters of multiple sample processors and generate random configuration item parameters; A comprehensive area determination module, used to synthesize the random configuration item parameters to obtain the comprehensive area of ​​each sample processor; A lookup table generation module, configured to generate a lookup table based on the random configuration item parameters and the comprehensive area; the comprehensive area of ​​each sample processor in the lookup table corresponds to the random configuration item parameters of each sample processor; A linear fitting function determination module, used to determine a linear fitting function based on the random configuration item parameters and the comprehensive area; The module for determining the area of ​​the processor to be evaluated is used to determine the area of ​​the processor to be evaluated by using the lookup table and the linear fitting function based on the configuration item parameters of the processor to be evaluated.

5. The processor area automatic calculation system according to claim 4, characterized in that: The linear fitting function determination module specifically includes: A first fitting unit, used for fitting the random configuration item parameters by using an initial linear fitting function to obtain a fitting area; An updating unit is used to update the initial linear fitting function according to the error between the fitting area and the comprehensive area to obtain a final linear fitting function.

6. The processor area automatic calculation system according to claim 4, characterized in that: The module for determining the area of ​​the processor to be evaluated specifically includes: A matching unit, configured to match the same random configuration item parameters in the lookup table according to the configuration item parameters of the processor to be evaluated, and determine that the comprehensive area corresponding to the matched random configuration item parameters is the area of ​​the processor to be evaluated; The second fitting unit is used to fit the configuration item parameters of the evaluation processor by using the linear fitting function to obtain the area of ​​the processor to be evaluated when the same random configuration item parameters are not matched.

7. An electronic device, characterized in that: The electronic device comprises a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the method for automatically calculating the processor area according to any one of claims 1 to 3.

8. A computer-readable storage medium, characterized in that: The computer program is stored therein, and when the computer program is executed by a processor, the method for automatically calculating the processor area as claimed in any one of claims 1 to 3 is implemented.