A chip optimization method and system

Through simulation operation and signal integrity analysis, the chip test performance evaluation value Ctp is calculated, which solves the problem of difficulty in selecting suitable chip optimization technology in the existing technology and achieves the best optimization effect of chip performance.

CN117592410BActive Publication Date: 2024-09-03SHENZHEN XINTONG ELECTRONIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311651332.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-05
Publication Date
2024-09-03
Estimated Expiration
2043-12-05

AI Technical Summary

Technical Problem

The existing technology makes it difficult to automatically and accurately select the optimization technology suitable for the chip to achieve the best effect of performance optimization.

Method used

By simulating and running different optimization plans, analyzing signal integrity, and calculating the chip test performance evaluation value Ctp under each optimization plan, the optimization plan that can ensure the best chip performance is screened out.

Benefits of technology

It achieves accurate and efficient selection of optimization solutions with the best chip performance, improving the efficiency and performance of chip optimization operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117592410B
    Figure CN117592410B
Patent Text Reader

Abstract

The invention discloses a chip optimization method and system, and relates to the technical field of chip optimization. The system comprises a chip performance analysis module, a chip optimization selection module, a signal integrity analysis module, a simulation test evaluation module and a comparison execution module. The technical key points are as follows: after simulating the operation of chips with different optimization schemes, the signal integrity of the chip under each optimization scheme is analyzed to achieve a preliminary screening of the optimization schemes, and then the remaining optimization schemes are simulated and operated. By calculating and comparing the corresponding chip test performance evaluation values ​​Ctp under each optimization scheme, the corresponding optimization scheme that can ensure the best chip performance can be accurately and efficiently obtained, thereby ensuring the chip optimization effect and improving the chip performance and work efficiency to a certain extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of chip optimization, and in particular to a chip optimization method and system. Background Art

[0002] Chip optimization refers to the improvement of chip design and manufacturing process to improve chip performance, power consumption and reliability. Specifically, chip optimization usually includes logic optimization, physical layout optimization, clock optimization and power consumption optimization. Logic optimization reorganizes logic gates, registers and other components in the circuit to reduce the length and delay of circuit paths, optimize resource utilization and improve chip performance. Physical layout optimization optimizes the layout of each component in the chip to reduce line length, reduce electromagnetic interference, and improve the chip's noise resistance and overall reliability. Overall, chip optimization aims to improve chip performance, power consumption and reliability to meet the needs of different application scenarios and enhance the chip's competitiveness in the market.

[0003] The technical solution pointed out in the Chinese patent with the existing application publication number CN113868999A and the name of a chip optimization system and method includes: a field programmable logic gate array, which is used to load the initial netlist corresponding to the chip design code and run the target embedded software; an acquisition probe, which is used to collect the operating data during the operation of the target embedded software; a statistical analysis optimizer, which is used to modify the initial netlist based on the operating data to obtain an optimized netlist. The chip optimization system and method provided by the embodiment of the present invention realizes the collection of operating data during the operation of the embedded software by setting an acquisition probe, and then uses the statistical analysis optimizer to realize the optimization process of the netlist based on the operating data. Although it realizes the customized design of the chip, it does not make the chip achieve the best optimization effect, and does not mention the judgment under what circumstances the chip operation effect can be optimal.

[0004] Combining the above patents and existing technologies, different technologies are usually used to execute optimization strategies when optimizing chips. For example, state merging technology is used to achieve performance optimization of the state machine on the chip. However, there are many technologies that can be used for chip performance optimization. For chips, not all optimization technologies are applicable. Therefore, how to automatically and accurately select the optimization technology applicable to the chip to achieve the best value of performance optimization is a problem that urgently needs to be solved. Summary of the invention

[0005] 1. Technical issues to be resolved

[0006] In view of the deficiencies in the prior art, the present invention provides a chip optimization method and system, which uses chips with different optimization schemes for simulation operation, analyzes the signal integrity of the chip under each optimization scheme, and achieves preliminary screening of the optimization schemes. Then, the remaining optimization schemes are simulated and operated, and the corresponding chip test performance evaluation value Ctp under each optimization scheme is calculated and compared, so that the corresponding optimization scheme that can ensure the best chip performance can be accurately and efficiently obtained, thereby solving the problems raised in the background technology.

[0007] (II) Technical solution

[0008] To achieve the above objectives, the present invention is implemented through the following technical solutions:

[0009] A chip optimization system, the system comprising:

[0010] Chip performance analysis module, to obtain key indicator data of the chip;

[0011] The chip optimization selection module obtains the chip optimization strategy, and the optimization strategy includes Boolean logic optimization, state machine optimization and data path optimization. The techniques used in Boolean logic optimization include Boolean algebra simplification, transformation of logic equations, merging and decomposition of logic gates; the techniques used in state machine optimization include state merging, state encoding and state transfer optimization; the techniques used in data path optimization include register allocation and scheduling, data path width optimization, and any optimization technique in each optimization strategy is selected for combination to obtain several optimization schemes to be run;

[0012] The signal integrity analysis module simulates the operation of chips using different optimization schemes and analyzes the signal integrity of the chips under each optimization scheme. Based on the analysis results, it determines whether the signal is transmitted normally in the chips corresponding to each optimization scheme and extracts the optimization scheme for normal transmission.

[0013] The simulation test evaluation module runs each optimization scheme for normal transmission in sequence under the same environment, and monitors the corresponding operation data of the chip under different optimization schemes at the same time. Based on the pre-processed operation data and key indicator data, a data analysis model is built to calculate the chip test performance evaluation value Ctp under different optimization schemes.

[0014] The comparison execution module compares the chip test performance evaluation values ​​Ctp under different optimization schemes, sorts the chip test performance evaluation values ​​Ctp from large to small, and extracts and executes the optimization scheme corresponding to the chip test performance evaluation value Ctp that ranks first.

[0015] Furthermore, key indicator data include the chip's processing speed, power consumption, clock frequency, and data transmission delay rate.

[0016] Furthermore, the signal integrity analysis process of the chip is: use the signal integrity analysis tool to analyze the chip and then generate an analysis report. The content of the analysis report is: analyze the power consumption during the signal transmission process, and evaluate whether the power consumption exceeds the preset value; if the power consumption exceeds the preset value, it is abnormal transmission, otherwise, it is normal transmission; analyze the timing and clock information of the signal, and evaluate the timing and clock. If any of the data delay and clock offset exceeds the corresponding preset value, it is abnormal transmission, otherwise, it is normal transmission.

[0017] Furthermore, the operating data includes the real-time processing speed, real-time power consumption, real-time clock frequency and real-time data transmission delay rate of the chip at the same moment; the process of preprocessing the operating data and key indicator data is: dimensionless processing of the operating data and key indicator data.

[0018] Furthermore, the process of calculating the chip test performance evaluation value Ctp under different optimization schemes is as follows:

[0019] S101, calculating the difference between the operation data and the corresponding key indicator data;

[0020] S102, taking the difference between each operation data and its corresponding key indicator data as an evaluation parameter, and calculating the chip test performance evaluation value Ctp based on the evaluation parameter, the formula is as follows:

[0021]

[0022] In the formula, Vt represents the difference between the real-time processing speed and the processing speed, Gt represents the difference between the real-time power consumption and the power consumption, St represents the difference between the real-time clock frequency and the clock frequency, Yt represents the difference between the real-time data transmission delay rate and the data transmission delay rate, q1, q2, q3, q4 are preset proportional coefficients of the difference between the real-time processing speed and the processing speed, the difference between the real-time power consumption and the power consumption, the difference between the real-time clock frequency and the clock frequency, and the difference between the real-time data transmission delay rate and the data transmission delay rate, respectively, and q2>q1>q3>q4>0, G1 is a constant correction coefficient, and int is a rounding function.

[0023] A chip optimization method comprises the following steps:

[0024] Step 1: Obtain key indicator data of the chip, and the key indicator data includes the processing speed, power consumption, clock frequency and data transmission delay rate of the chip;

[0025] Step 2: Obtain the chip optimization strategy, and the optimization strategy includes Boolean logic optimization, state machine optimization and data path optimization. The techniques used in Boolean logic optimization include Boolean algebra simplification, transformation of logic equations, merging and decomposition of logic gates; the techniques used in state machine optimization include state merging, state encoding and state transfer optimization; the techniques used in data path optimization include register allocation and scheduling, data path width optimization, and select any optimization technology from each optimization strategy for combination to obtain several optimization schemes to be run;

[0026] Step 3: simulate the operation of chips using different optimization schemes, and analyze the signal integrity of the chips under each optimization scheme. Based on the analysis results, determine whether the signal is transmitted normally in the chips corresponding to each optimization scheme, and extract the optimization scheme for normal transmission;

[0027] Step 4: Under the same environment, run each optimization scheme for normal transmission in turn, and monitor the corresponding operation data of the chip under different optimization schemes at the same time. According to the pre-processed operation data and key indicator data, build a data analysis model to calculate the chip test performance evaluation value Ctp under different optimization schemes;

[0028] Step 5: Compare the chip test performance evaluation values ​​Ctp under different optimization schemes, sort the chip test performance evaluation values ​​Ctp from large to small, extract and execute the optimization scheme corresponding to the chip test performance evaluation value Ctp ranked first.

[0029] (III) Beneficial effects

[0030] The present invention provides a chip optimization method and system, which have the following beneficial effects:

[0031] 1. The present invention uses a chip optimization selection module and a signal integrity analysis module that are used together to set a number of different optimization schemes according to actual needs, and then simulates the operation of chips using different optimization schemes. By analyzing the signal integrity of the chip under each optimization scheme, the screening process of several optimization schemes is completed to ensure that each of the screened optimization schemes can be used normally, and the data processing amount is reduced for the subsequent calculation of the chip test performance evaluation value Ctp corresponding to each optimization scheme, thereby improving the efficiency of chip optimization operations to a certain extent;

[0032] 2. Based on the chip performance analysis module, the present invention combines the simulation test evaluation module and the comparison execution module, and comprehensively considers the real-time operation data and key indicator data of the chip according to several selected optimization schemes to ensure the accuracy of the calculated corresponding chip test performance evaluation value Ctp. By comparing the chip test performance evaluation value Ctp under each preferred scheme, the corresponding optimization scheme with the best chip performance can be efficiently obtained, and the chip optimization operation is performed according to the optimization scheme, which ensures the chip optimization effect and improves the chip performance and work efficiency to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A schematic diagram of the modular structure of a chip optimization system of the present invention;

[0034] Figure 2 The figure is a schematic diagram of the overall process of a chip optimization method 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] Example 1: Please refer to Figure 1 , this embodiment provides a chip optimization system, which includes a chip performance analysis module, a chip optimization selection module, a signal integrity analysis module, a simulation test evaluation module and a comparison execution module, and the chip in the specific application scenario is an automotive chip, and its optimized performance needs to be guaranteed;

[0037] Among them, the chip performance analysis module obtains the key indicator data of the chip;

[0038] The key indicator data include the chip's processing speed, power consumption, clock frequency, and data transmission delay rate, and the key indicator data are the initial and established relevant data when the chip is not yet in operation;

[0039] Therefore, the method to obtain key indicator data is:

[0040] Processing speed: Get the chip's processing speed information from the technical specifications or data sheets provided by the chip manufacturer. These specifications usually list the chip's main frequency, number of cores, cache size and other indicators of processing power. In addition, some third-party testing and evaluation agencies also conduct chip performance tests. You can get the processing speed information by checking the evaluation report after the test is completed.

[0041] Power consumption: The power consumption information of the chip can usually be obtained from the technical specification or data sheet. The manufacturer will provide the typical and maximum power consumption values ​​of the chip under different workloads, and the chip power consumption obtained in the present invention is the maximum power consumption value with the largest value. In addition, some third-party evaluation agencies or professional websites will also conduct power consumption testing and evaluation, and the required power consumption information can be obtained by referring to the evaluation results;

[0042] Clock frequency: The clock frequency of the chip can be obtained from the technical specification or data sheet. The manufacturer will provide the nominal clock frequency of the chip and the possible dynamic frequency adjustment range. The clock frequency obtained in the present invention is the nominal clock frequency. By consulting the chip specification, the operating frequency of the chip can be obtained;

[0043] Data transmission delay rate: The data transmission delay rate is usually determined by the bus transmission speed inside the chip and the interface speed between the chip and the external device. The detailed data transmission delay rate usually involves testing and analysis. The manufacturer will provide some indicators, such as bus frequency and interface speed, and related transmission delay information. In the present invention, the data transmission performance of the chip is actually measured by a third-party testing and evaluation agency to obtain the required data transmission delay rate.

[0044] The chip optimization selection module obtains the chip optimization strategy, and the optimization strategy includes Boolean logic optimization, state machine optimization and data path optimization; wherein,

[0045] The techniques used in Boolean logic optimization include Boolean algebra simplification, transformation of logic equations, merging and decomposition of logic gates;

[0046] The techniques used in state machine optimization include state merging, state encoding, and state transfer optimization;

[0047] Techniques used in datapath optimization include register allocation and scheduling, datapath width optimization;

[0048] And select any optimization technology in each optimization strategy to combine, and obtain several optimization schemes to be run. Without considering the order of the optimization technology, the number of optimization schemes to be run is 12. For example, the optimization scheme 1 is Boolean algebra simplification, state merging, and register allocation and scheduling, and the optimization scheme 2 is Boolean algebra simplification, state merging, and data path width optimization. In this way, 12 optimization schemes can be obtained;

[0049] It should be noted that Boolean logic optimization is to simplify the logic gate circuit by optimizing the Boolean expression in the logic circuit. The technology used in the present invention includes Boolean algebra simplification, transformation of logic equations, merging and decomposition of logic gates. The optimized circuit can reduce the area and power consumption and improve the transmission speed.

[0050] For the state machine design in the chip, i.e., state machine optimization, the techniques used in the present invention include state merging, state encoding, and state transfer optimization to reduce the size and power consumption of the state machine and increase the clock frequency;

[0051] The data path in the chip is optimized, i.e., data path optimization. The technologies used in the present invention include register allocation and scheduling, data path width optimization, and reasonable register arrangement and data path design to reduce latency and increase frequency.

[0052] The information integrity analysis module simulates the operation of chips using different optimization schemes and analyzes the signal integrity of the chips under each optimization scheme. Based on the analysis results, it determines whether the signal is transmitted normally in the chips corresponding to each optimization scheme, and extracts the optimization schemes with normal transmission. For example, if only 8 of the 12 optimization schemes above correspond to normal transmission, then these 8 optimization schemes with normal transmission are extracted.

[0053] Among them, the signal integrity analysis process of the chip is:

[0054] Use specialized signal integrity analysis tools, such as electromagnetic simulation software and clock analysis tools, to analyze the chip. These tools are used to simulate common problems encountered during signal transmission, such as signal noise, power consumption, and clock jitter, and generate analysis reports;

[0055] The content of the analysis report is as follows: Analyze the power consumption during signal transmission, and evaluate whether the power consumption exceeds the preset value. If the power consumption exceeds the preset value, it means that the signal is disturbed during transmission, which is abnormal transmission. If the power consumption does not exceed the preset value, it means that the signal is not disturbed during transmission, which is normal transmission; Analyze the timing and clock information of the signal, including the start time, change rate, and clock offset of the signal. By evaluating the timing and clock, if any of the data delay and clock offset exceeds the corresponding preset value, it means that there is a timing problem, which is abnormal transmission. If any of the data delay and clock offset does not exceed the corresponding preset value, it means that there is no timing problem, which is normal transmission;

[0056] It should be noted that the above-mentioned predetermined values ​​corresponding to power consumption, data delay and clock offset are all different, and each predetermined value is set and adjusted according to the actual situation. The predetermined value corresponding to power consumption is usually set according to the power consumption demand and energy supply capacity of the system, and can be set in consideration of the maximum power consumption and average power consumption of the system. For example, in embedded systems or mobile devices, in order to extend battery life, a lower predetermined value corresponding to power consumption is usually set; the predetermined value corresponding to data delay is usually set according to the real-time requirements of the system and the characteristics of data transmission. If the system has high requirements for the real-time performance of data transmission, a lower predetermined value corresponding to data delay can be set. For example, in video conferencing or real-time monitoring systems, the data delay required to be transmitted is low to ensure real-time performance; the predetermined value corresponding to clock offset is usually set according to the clock synchronization requirements of the system and the stability of communication. If the system has high requirements for clock synchronization, a lower predetermined value corresponding to clock offset can be set. For example, in distributed systems or communication networks, clock synchronization is very important, and a smaller predetermined value corresponding to clock offset can be set.

[0057] Specifically, the present invention utilizes a chip optimization selection module and a signal integrity analysis module that are used in conjunction with each other, sets a number of different optimization schemes according to actual needs, and then simulates the operation of chips using different optimization schemes, and analyzes the signal integrity of the chip under each optimization scheme, thereby completing the screening process of a number of optimization schemes, ensuring that each screened optimization scheme can be used normally, reducing the amount of data processing for the subsequent calculation of the corresponding chip test performance evaluation value Ctp under each optimization scheme, and improving the efficiency of the chip optimization operation to a certain extent.

[0058] The simulation test evaluation module runs each optimization scheme for normal transmission in sequence under the same environment, and monitors the corresponding operation data of the chip under different optimization schemes at the same time. Based on the pre-processed operation data and key indicator data, a data analysis model is built to calculate the chip test performance evaluation value Ctp under different optimization schemes.

[0059] The operation data includes the real-time processing speed, real-time power consumption, real-time clock frequency and real-time data transmission delay rate of the chip at the same time, and the equipment used to obtain the operation data includes: a performance analyzer, a power consumption meter, a clock frequency monitor and a data transmission delay tester;

[0060] It should be noted that a performance analyzer is a commonly used device that can be used to measure and analyze the processing speed, power consumption and clock frequency of a system. It can monitor information such as the processor's operating status, clock frequency, and task execution time, and provide real-time performance indicators. A power consumption meter is a tool used to measure the power consumption of a device or system. It can be inserted between the chip and the power supply, and calculates the power consumption by monitoring parameters such as current and voltage. By measuring the power consumption under different loads, the energy consumption of the device under different working conditions can be understood. A clock frequency monitor is used to measure the clock frequency of the system. It can monitor the clock frequency of chips and other key components, and help understand the changes in the clock frequency of the system under different loads. A data transmission delay tester is used to measure the transmission delay of data within a system or network. By sending a test data packet and recording its transmission time, the delay rate of real-time data transmission can be calculated.

[0061] The process of preprocessing the operation data and key indicator data is as follows: dimensionless processing is performed on the operation data and key indicator data to remove the units corresponding to each data to facilitate subsequent calculation and processing;

[0062] The process of calculating the chip test performance evaluation value Ctp under different optimization schemes is as follows:

[0063] S101, calculating the difference between the operation data and the corresponding key indicator data;

[0064] For example, if the operating parameter is real-time processing speed, the corresponding key indicator data is processing speed, and the difference is calculated as: real-time processing speed - processing speed. Other operating data and their corresponding key indicator data are also calculated using the same principle.

[0065] S102, taking the difference between each operation data and its corresponding key indicator data as an evaluation parameter, and calculating the chip test performance evaluation value Ctp according to the evaluation parameter, the formula used is:

[0066]

[0067] Wherein, Vt represents the difference between the real-time processing speed and the processing speed, Gt represents the difference between the real-time power consumption and the power consumption, St represents the difference between the real-time clock frequency and the clock frequency, Yt represents the difference between the real-time data transmission delay rate and the data transmission delay rate, q1, q2, q3, q4 are respectively the preset proportional coefficients of the difference between the real-time processing speed and the processing speed, the difference between the real-time power consumption and the power consumption, the difference between the real-time clock frequency and the clock frequency, and the difference between the real-time data transmission delay rate and the data transmission delay rate, and q2>q1>q3>q4>0, G1 is a constant correction coefficient, the specific value of which can be adjusted and set by the user, or generated by the analysis function fitting, and int is a rounding function;

[0068] It should be noted that the larger the difference Vt between the real-time processing speed and the processing speed, the greater the chip's performance in actual operation exceeds the chip's own limit performance. This is usually a positive situation, meaning that the chip has higher processing capabilities in a specific application or operating environment. Therefore, the difference Vt between the real-time processing speed and the processing speed is positively correlated with the chip test performance evaluation value Ctp.

[0069] The larger the difference Gt between real-time power consumption and power consumption, the greater the energy consumed by the chip in actual operation exceeds the maximum power consumption of the chip itself. This is usually an undesirable situation, which means that the chip may be overloaded or abnormal, which may cause overheating, unstable power consumption and other problems. Therefore, the difference Gt between real-time power consumption and power consumption is inversely correlated with the chip test performance evaluation value Ctp.

[0070] The larger the difference St between the real-time clock frequency and the clock frequency, the higher the actual clock frequency of the chip is, which means that the chip can reach a higher clock frequency in a specific application or operating environment. Therefore, the difference St between the real-time clock frequency and the clock frequency is positively correlated with the chip test performance evaluation value Ctp.

[0071] The larger the difference Yt between the real-time data transmission delay rate and the data transmission delay rate, the higher the data transmission delay of the chip in actual application is, which means that an abnormality or performance bottleneck occurs in the data transmission process. A higher data transmission delay may affect the real-time performance and responsiveness of the system. Therefore, the difference Yt between the real-time data transmission delay rate and the data transmission delay rate is inversely correlated with the chip test performance evaluation value Ctp.

[0072] The difference Vt between the real-time processing speed and the processing speed and the difference St between the real-time clock frequency and the clock frequency are added together and used as the numerator in the formula. The difference Gt between the real-time power consumption and the power consumption and the difference Yt between the real-time data transmission delay rate and the data transmission delay rate are added together and used as the denominator of the formula. The value obtained by multiplying the numerator and the denominator is multiplied by the constant correction coefficient G1, thereby completing the correction processing of the obtained value, and rounding the corrected value to facilitate subsequent comparison operations. The size of the coefficient is to quantify each parameter to obtain a specific numerical value, which is convenient for subsequent comparison. The size of the coefficient depends on the amount of sample data and the technical personnel in this field preliminarily set the corresponding preset proportional coefficient for each group of sample data. It can also be said that it is preset according to the actual situation. As long as it does not affect the proportional relationship between the parameter and the quantized numerical value, the above description is also adopted for the preset proportional coefficient and constant correction coefficient described in other formulas.

[0073] The comparison execution module compares the chip test performance evaluation values ​​Ctp under different optimization schemes, sorts the chip test performance evaluation values ​​Ctp from large to small, and extracts and executes the optimization scheme corresponding to the first chip test performance evaluation value Ctp.

[0074] Specifically, based on the chip performance analysis module, the present invention combines the simulation test evaluation module and the comparison execution module, and comprehensively considers the real-time operation data and key indicator data of the chip according to several selected optimization schemes to ensure the accuracy of the calculated corresponding chip test performance evaluation value Ctp. By comparing the chip test performance evaluation value Ctp under each preferred scheme, the corresponding optimization scheme with the best chip performance can be efficiently obtained, and the chip optimization operation is performed according to the optimization scheme, which ensures the chip optimization effect and improves the chip performance and work efficiency to a certain extent.

[0075] Example 2: Please refer to Figure 2 Based on Example 1, this embodiment provides a chip optimization method, which includes the following steps:

[0076] Step 1: Obtain key indicator data of the chip, and the key indicator data includes the processing speed, power consumption, clock frequency and data transmission delay rate of the chip;

[0077] Step 2: Obtain the chip optimization strategy, and the optimization strategy includes Boolean logic optimization, state machine optimization and data path optimization. The techniques used in Boolean logic optimization include Boolean algebra simplification, transformation of logic equations, merging and decomposition of logic gates; the techniques used in state machine optimization include state merging, state encoding and state transfer optimization; the techniques used in data path optimization include register allocation and scheduling, data path width optimization, and select any optimization technology from each optimization strategy for combination to obtain several optimization schemes to be run;

[0078] Step 3: simulate the operation of chips using different optimization schemes, and analyze the signal integrity of the chips under each optimization scheme. Based on the analysis results, determine whether the signal is transmitted normally in the chips corresponding to each optimization scheme, and extract the optimization scheme for normal transmission;

[0079] Step 4: Under the same environment, run each optimization scheme for normal transmission in turn, and monitor the corresponding operation data of the chip under different optimization schemes at the same time. According to the pre-processed operation data and key indicator data, build a data analysis model to calculate the chip test performance evaluation value Ctp under different optimization schemes;

[0080] Step 5: Compare the chip test performance evaluation values ​​Ctp under different optimization schemes, sort the chip test performance evaluation values ​​Ctp from large to small, extract and execute the optimization scheme corresponding to the chip test performance evaluation value Ctp ranked first.

[0081] In the application, the several formulas involved are all calculated by removing the dimensions and taking their numerical values. The formula is a formula obtained by collecting a large amount of data and performing software simulation to obtain the most recent real situation. The formula is set by technical personnel in this field according to actual conditions.

[0082] The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination thereof. When implemented using software, the above embodiments may be implemented in whole or in part in the form of a computer program product. A person of ordinary skill in the art may appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein may be implemented in electronic hardware, or in a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution.

[0083] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0084] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. A chip optimization system, characterized in that: The system includes: Chip performance analysis module, to obtain key indicator data of the chip; The chip optimization selection module obtains the chip optimization strategy, and the optimization strategy includes Boolean logic optimization, state machine optimization and data path optimization. The techniques used in Boolean logic optimization include Boolean algebra simplification, transformation of logic equations, merging and decomposition of logic gates; the techniques used in state machine optimization include state merging, state encoding and state transfer optimization; the techniques used in data path optimization include register allocation and scheduling, data path width optimization, and any optimization technique in each optimization strategy is selected for combination to obtain several optimization schemes to be run; The signal integrity analysis module simulates the operation of chips using different optimization schemes and analyzes the signal integrity of the chips under each optimization scheme. Based on the analysis results, it determines whether the signal is transmitted normally in the chips corresponding to each optimization scheme and extracts the optimization scheme for normal transmission. The signal integrity analysis process of the chip is as follows: use the signal integrity analysis tool to analyze the chip and then generate an analysis report. The content of the analysis report is as follows: analyze the power consumption during signal transmission, and evaluate whether the power consumption exceeds the preset value; if the power consumption exceeds the preset value, it is abnormal transmission, otherwise, it is normal transmission; analyze the timing and clock information of the signal, and evaluate the timing and clock. If any of the data delay and clock offset exceeds the corresponding preset value, it is abnormal transmission, otherwise, it is normal transmission; The simulation test evaluation module runs each optimization scheme for normal transmission in sequence under the same environment, and monitors the corresponding operation data of the chip under different optimization schemes at the same time. Based on the pre-processed operation data and key indicator data, a data analysis model is built to calculate the chip test performance evaluation value Ctp under different optimization schemes. The process of calculating the chip test performance evaluation value Ctp under different optimization schemes is as follows: S101, calculating the difference between the operation data and the corresponding key indicator data; S102, taking the difference between each operation data and its corresponding key indicator data as an evaluation parameter, and calculating the chip test performance evaluation value Ctp based on the evaluation parameter, the formula is as follows: Wherein, Vt represents the difference between the real-time processing speed and the processing speed, Gt represents the difference between the real-time power consumption and the power consumption, St represents the difference between the real-time clock frequency and the clock frequency, Yt represents the difference between the real-time data transmission delay rate and the data transmission delay rate, q1, q2, q3, q4 are preset proportional coefficients of the difference between the real-time processing speed and the processing speed, the difference between the real-time power consumption and the power consumption, the difference between the real-time clock frequency and the clock frequency, and the difference between the real-time data transmission delay rate and the data transmission delay rate, respectively, and q2>q1>q3>q4>0, G1 is a constant correction coefficient, and int is a rounding function; The comparison execution module compares the chip test performance evaluation values ​​Ctp under different optimization schemes, sorts the chip test performance evaluation values ​​Ctp from large to small, and extracts and executes the optimization scheme corresponding to the chip test performance evaluation value Ctp that ranks first.

2. A chip optimization system according to claim 1, characterized in that: Key indicator data include the chip's processing speed, power consumption, clock frequency, and data transmission delay rate.

3. A chip optimization system according to claim 2, characterized in that: The operating data includes the real-time processing speed, real-time power consumption, real-time clock frequency and real-time data transmission delay rate of the chip at the same moment.

4. A chip optimization system according to claim 3, characterized in that: The process of preprocessing the operating data and key indicator data is: performing dimensionless processing on the operating data and key indicator data.

5. A chip optimization method, using the system according to any one of claims 1 to 4, characterized in that: The steps include: Step 1: Obtain key indicator data of the chip, and the key indicator data includes the processing speed, power consumption, clock frequency and data transmission delay rate of the chip; Step 2: Obtain the chip optimization strategy, which includes Boolean logic optimization, state machine optimization and data path optimization. The techniques used in Boolean logic optimization include Boolean algebra simplification, transformation of logic equations, merging and decomposition of logic gates; the techniques used in state machine optimization include state merging, state encoding and state transfer optimization; The technologies used in data path optimization include register allocation and scheduling, data path width optimization, and any optimization technology in each optimization strategy is selected for combination to obtain several optimization solutions to be run; Step 3: simulate the operation of chips using different optimization schemes, and analyze the signal integrity of the chips under each optimization scheme. Based on the analysis results, determine whether the signal is transmitted normally in the chips corresponding to each optimization scheme, and extract the optimization scheme for normal transmission; The signal integrity analysis process of the chip is as follows: use the signal integrity analysis tool to analyze the chip and then generate an analysis report. The content of the analysis report is as follows: analyze the power consumption during signal transmission, and evaluate whether the power consumption exceeds the preset value; if the power consumption exceeds the preset value, it is abnormal transmission, otherwise, it is normal transmission; analyze the timing and clock information of the signal, and evaluate the timing and clock. If any of the data delay and clock offset exceeds the corresponding preset value, it is abnormal transmission, otherwise, it is normal transmission; Step 4: Under the same environment, run each optimization scheme for normal transmission in turn, and monitor the corresponding operation data of the chip under different optimization schemes at the same time. According to the pre-processed operation data and key indicator data, build a data analysis model to calculate the chip test performance evaluation value Ctp under different optimization schemes; The process of calculating the chip test performance evaluation value Ctp under different optimization schemes is as follows: S101, calculating the difference between the operation data and the corresponding key indicator data; S102, taking the difference between each operation data and its corresponding key indicator data as an evaluation parameter, and calculating the chip test performance evaluation value Ctp based on the evaluation parameter, the formula is as follows: Wherein, Vt represents the difference between the real-time processing speed and the processing speed, Gt represents the difference between the real-time power consumption and the power consumption, St represents the difference between the real-time clock frequency and the clock frequency, Yt represents the difference between the real-time data transmission delay rate and the data transmission delay rate, q1, q2, q3, q4 are preset proportional coefficients of the difference between the real-time processing speed and the processing speed, the difference between the real-time power consumption and the power consumption, the difference between the real-time clock frequency and the clock frequency, and the difference between the real-time data transmission delay rate and the data transmission delay rate, respectively, and q2>q1>q3>q4>0, G1 is a constant correction coefficient, and int is a rounding function; Step 5: Compare the chip test performance evaluation values ​​Ctp under different optimization schemes, sort the chip test performance evaluation values ​​Ctp from large to small, extract and execute the optimization scheme corresponding to the chip test performance evaluation value Ctp ranked first.