A data processing method and system for chip simulation software

By analyzing the hotspot degree and acquisition difficulty of the data in the cache table, combined with resource consumption, the retention value of the data is evaluated and optimized, which solves the problem of cache space congestion and improves the processing efficiency of in-vehicle software.

CN118656312BActive Publication Date: 2024-10-25WELTOWN
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411133175.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-19
Publication Date
2024-10-25
Estimated Expiration
2044-08-19

AI Technical Summary

Technical Problem

The data in the cache table of existing chip simulation software gradually expands, resulting in less-used data indexes causing congestion in the cache space and reducing data processing efficiency.

Method used

By obtaining cached data, mark and analyze the hot feature values, acquisition difficulty and acquisition cost of different driving scenarios and behavioral decisions, calculate the optimization priority, and perform data optimization to release cache space.

Benefits of technology

It achieves the accuracy of data optimization, releases cache space, improves system operation efficiency, and ensures the efficient operation of in-vehicle software.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656312B_ABST
    Figure CN118656312B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of data processing technology, and provides a data processing method and system for chip simulation software, the method comprising: obtaining cache data, the cache data comprising input data and corresponding output data, and a system log of an output result process; after determining different driving scenarios according to the input data and determining different behavioral decisions according to the output data, marking the cache data to obtain cache marking data; obtaining hotspot feature values, acquisition difficulty, and acquisition cost of different behavioral decisions based on the cache marking data analysis; obtaining optimization priorities of different behavioral decisions according to the hotspot feature values ​​of the different behavioral decisions, the acquisition difficulty of different behavioral decisions, and the acquisition cost of different behavioral decisions; and optimizing data according to the optimization priority of the different behavioral decisions. The method can ensure the accuracy of data optimization, release cache space, and improve system operation efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a data processing method and system for chip simulation software. Background Art

[0002] In today's automobile market, new energy vehicles have gradually occupied the majority of the automotive industry, and the intelligence of automobiles is one of the biggest highlights of new energy vehicles. Therefore, in order to improve the intelligent performance of automobile products, various types of in-vehicle software are gradually being developed. In order to enable the product to match the required intelligent effect, the performance of the chip is crucial, which leads to a very large demand for chips in the automotive field. In the process of developing and verifying in-vehicle software, chip simulation software is usually used to reduce R&D costs and improve R&D efficiency. In order to simulate the work of chips more realistically and efficiently, chip simulation software is designed.

[0003] The data processing method of the existing chip simulation software is to retrieve a cache table storing the calculation results for the logic unit module with the input data as the index, and retrieve the input and output cache table ports through the internal register. If the cache table has the result corresponding to the input data, the cache result in the table is directly extracted as the output of the module, and the result is updated to the cache table. Otherwise, the result is updated to the cache table after the output data is obtained.

[0004] Existing data processing methods improve simulation calculation speed by reusing previously cached calculation results. However, as the simulation progresses, the information contained in the cache table will gradually expand, and there will be more data indexes with low utilization rate, which will cause cache space congestion and reduce running memory space, thereby reducing data processing efficiency. Summary of the invention

[0005] In order to solve the technical problem of cache space congestion, the purpose of the present invention is to provide a data processing method and system for chip simulation software, and the technical solution adopted is as follows:

[0006] A data processing method for chip simulation software, comprising:

[0007] Obtain cache data, wherein the cache data includes input data and corresponding output data, and a system log of the output result process;

[0008] After determining different driving scenarios according to the input data and determining different behavior decisions according to the output data, marking the cache data to obtain cache marking data;

[0009] Obtaining hotspot feature values ​​of different behavior decisions based on the cache tag data analysis;

[0010] The difficulty of obtaining different behavior decisions is obtained based on the cache tag data analysis;

[0011] Obtaining acquisition costs of different behavior decisions based on the cached tag data;

[0012] Obtaining optimization priorities of different behavioral decisions according to the hotspot feature values ​​of the different behavioral decisions, the difficulty of obtaining the different behavioral decisions, and the cost of obtaining the different behavioral decisions;

[0013] Data optimization is performed according to the optimization priorities of the different behavioral decisions.

[0014] Preferably, the hotspot feature values ​​of different behavior decisions are obtained based on the cache tag data analysis, including:

[0015] The hotspots of different behavioral decisions in different driving scenarios and the verification ratios of different driving scenarios are calculated based on the cached tag data;

[0016] The weighted hotspot degrees of different behavioral decisions are calculated based on the hotspot degrees of different behavioral decisions under the different driving scenarios and the verification proportions of different driving scenarios;

[0017] The weighted hotspot degrees of the different behavioral decisions are used as hotspot feature values ​​of the different behavioral decisions.

[0018] Preferably, the step of calculating the hotspot levels of different behavior decisions in different driving scenarios based on the cached tag data includes:

[0019] Obtain the occurrence frequency and timestamp information of different behavioral decisions in different driving scenarios based on cached tag data;

[0020] Calculate the timestamp density and the centroid moment of the timestamp distribution of different behavior decisions in different driving scenarios based on the timestamp information of different behavior decisions in different driving scenarios;

[0021] The hotspot degree of different behavioral decisions under different driving scenarios is calculated based on the occurrence frequency, timestamp density and the centroid moment of the timestamp distribution of different behavioral decisions under different driving scenarios.

[0022] Preferably, the calculation formula for the weighted hotspot degree of the different behavior decisions is:

[0023] ;

[0024] in, Representing behavioral decisions The weighted hotspot degree, , represents the total number of driving scenarios, Representing driving scenarios Next behavior decision The degree of hotness, Representing driving scenarios The verification percentage.

[0025] Preferably, the input data includes environmental perception data;

[0026] Obtaining the difficulty of obtaining different behavior decisions based on the cached tag data analysis includes: obtaining the difficulty of obtaining different behavior decisions by analyzing the environmental perception data of all driving scenes corresponding to different behavior decisions.

[0027] Preferably, obtaining acquisition costs of different behavior decisions based on the cache tag data includes:

[0028] Obtain cost parameters of different behavioral decisions according to the system log of the output result process, wherein the cost parameters include response time, bandwidth consumption, and computing resources;

[0029] The cost parameters are de-unitized and the sum is taken to obtain the acquisition costs of the different behavior decisions.

[0030] Preferably, the calculation formula for the optimization priority of the different behavior decisions is:

[0031] ;

[0032] in, Representing behavioral decisions The optimization priority of represents the normalization function, Representing behavioral decisions The degree of hotness, Representing behavioral decisions The acquisition cost, Representing behavioral decisions The difficulty of obtaining Representing behavioral decisions timeliness.

[0033] Preferably, the data is optimized according to the optimization priorities of the different behavior decisions, and if the optimization priority of a behavior decision is greater than a preset threshold, the data is deleted.

[0034] A data processing system for chip simulation software, comprising:

[0035] A data acquisition module is used to acquire cache data, wherein the cache data includes input data and corresponding output data, and a system log of the output result process;

[0036] A data marking module, configured to mark the cached data to obtain cached marked data after determining different driving scenarios according to the input data and determining different behavior decisions according to the output data;

[0037] A data analysis module, for obtaining hotspot feature values ​​of different behavior decisions, acquisition difficulty and acquisition cost of different behavior decisions based on the cache tag data analysis, and obtaining optimization priorities of different behavior decisions according to the hotspot feature values ​​of different behavior decisions, acquisition difficulty of different behavior decisions and acquisition cost of different behavior decisions;

[0038] The data optimization module is used to optimize the data according to the optimization priorities of the different behavioral decisions.

[0039] Preferably, the data processing system further comprises: a trigger module, configured to determine whether to start a data optimization program according to a preset trigger condition.

[0040] The present invention has the following beneficial effects: the data processing method and system of the chip simulation software proposed in the present invention deeply analyzes the value of each data in the operation process of the vehicle-mounted software by combining the hotspot degree, acquisition difficulty and acquisition cost of different behavioral decisions, thereby obtaining optimization priority, and optimizing data according to the optimization priority, thereby ensuring the accuracy of data optimization, releasing cache space and improving system operation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are 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 work.

[0042] Figure 1 A schematic flow chart of a data processing method of a chip simulation software provided in the first embodiment of the present invention;

[0043] Figure 2 A schematic diagram of a sub-flow chart of step S3 in the data processing method of the chip simulation software provided in the first embodiment of the present invention;

[0044] Figure 3 It is a flowchart of the step of calculating the hotspot degree of different behavior decisions in different driving scenarios according to the cached tag data in the first embodiment of the present invention;

[0045] Figure 4 This is a flow chart of a data processing method of a chip simulation software according to a preferred implementation mode of the first embodiment of the present invention;

[0046] Figure 5 Schematic diagram of the flow of data processing methods of chip simulation software in some specific implementations of Example 1 of the present invention;

[0047] Figure 6 A schematic diagram of a module of a data processing system for chip simulation software provided in the second embodiment of the present invention;

[0048] Figure 7 This is a module diagram of a data processing system of a chip simulation software in a preferred implementation manner in Example 2 of the present invention. DETAILED DESCRIPTION

[0049] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the data processing method and system of a chip simulation software proposed by the present invention, its specific implementation method, structure, features and effects are described in detail as follows in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0050] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0051] The specific scheme of a data processing method and system for chip simulation software provided by the present invention is described in detail below with reference to the accompanying drawings.

[0052] Embodiment 1

[0053] See also Figure 1 , which shows a method flow chart of a data processing method of a chip simulation software provided by an embodiment of the present invention, including:

[0054] Step S1, obtaining cache data, wherein the cache data includes input data and corresponding output data, and a system log of the output result process;

[0055] Step S2, after determining different driving scenarios according to the input data and determining different behavior decisions according to the output data, marking the cache data to obtain cache marking data;

[0056] Step S3, obtaining hotspot feature values ​​of different behavior decisions based on the cache tag data analysis;

[0057] Step S4, analyzing the cache tag data to obtain the difficulty of obtaining different behavior decisions;

[0058] Step S5, obtaining acquisition costs of different behavior decisions based on the cached tag data;

[0059] Step S6, obtaining the optimization priorities of the different behavior decisions according to the hotspot feature values ​​of the different behavior decisions, the difficulty of obtaining the different behavior decisions, and the cost of obtaining the different behavior decisions;

[0060] Step S7, optimizing data according to the optimization priorities of the different behavior decisions.

[0061] There is no order restriction for steps S3-S5, and they can be performed simultaneously or one after another.

[0062] The data processing method of the chip simulation software proposed in the present invention deeply analyzes the value of each data in the operation process of the vehicle-mounted software by combining the hotspot degree, acquisition difficulty and acquisition cost of different behavioral decisions, so as to obtain optimization priority, and optimize the data according to the optimization priority, thereby ensuring the accuracy of data optimization, releasing cache space and improving system operation efficiency.

[0063] The main purpose of the present invention is to evaluate the retention value of data in the cache table and optimize it by analyzing the hotspot degree of each calculation result in the cache table and its acquisition difficulty, combined with the resource consumption in the acquisition process, to achieve data processing. It can be understood that the cache data exists in the form of a cache table in the vehicle system.

[0064] The specific scenario targeted by the present invention is: in the vehicle field, the development of autonomous driving functions requires a large amount of sensor data, such as radar, camera, lidar, etc. These data need to be processed and verified by chip simulation software, and the cache table is prone to accumulate a large amount of cache information (navigation output, decision output, planning output, etc.) in this process. Since the autonomous driving system has strict requirements on the real-time performance of data processing, the cache data needs to be able to read and write quickly to ensure the speed of system response. The larger the amount of data in the cache space, the greater the system response speed, resulting in delayed response and low processing efficiency.

[0065] The following is a detailed description of each step:

[0066] In step S1, the cache table can be accessed according to the index to obtain the required cache data. Specifically, the on-board automatic driving system of the car is built according to the chip simulation software, and the storage space of its calculation results is accessed, that is, the cache table is accessed according to the index to collect relevant data during system verification and testing. Among them, the input data includes environmental perception data, vehicle positioning data, navigation data, etc., and the output data includes navigation data, decision data, planning data, etc.

[0067] In some specific embodiments, specifically:

[0068] 1. Determine the key used to access the buffer, that is, the index or identifier of the input data;

[0069] It should be noted that the input data here includes video and image data collected by the camera, point cloud data collected by the lidar, vehicle speed, etc.

[0070] 2. Locate the corresponding cache item in the cache table according to the index;

[0071] 3. Determine whether the cache item exists, that is, whether the cache hits, and extract the required data;

[0072] 1) If the cache hits, the required data is directly read from the cache table and the corresponding input is read;

[0073] 2) If the cache misses, the input data corresponding to the index is discarded.

[0074] 4. According to the above steps, extract the corresponding output data for all input data in the verification and testing process, and read the system logs (memory usage, response time, etc.) during the output process;

[0075] 5. Store the extracted data samples in a data set to complete the collection of the required data samples.

[0076] In step S2, it can be understood that the current driving state and traffic scene can be determined based on the input data, thereby confirming different driving scenes; the decision type can be determined based on the output data, such as lane change, acceleration overtaking, following, etc., thereby determining different behavioral decisions. In this step, all data are marked because the method needs to comprehensively consider the multi-dimensional information of driving scenes and behavioral decisions and analyze the value of each data.

[0077] In step S3, it can be understood that when analyzing the hotspot degree of the behavior decisions in the system calculation result cache table, it is mainly obtained through the access frequency of different behavior decisions in the cache table, but when in different driving scenarios, the hotspot degree of the behavior decisions will change. Combined with the characteristics of different driving scenarios in the cache table, the hotspot degree of different behavior decisions is analyzed.

[0078] Preferably, if Figure 2 As shown, step S3 includes:

[0079] Step S31: Calculate the hotspots of different behavior decisions in different driving scenarios and the verification ratios of different driving scenarios according to the cached tag data;

[0080] Step S32: Calculating weighted hotspot degrees of different behavioral decisions based on the hotspot degrees of different behavioral decisions under the different driving scenarios and the verification proportions of different driving scenarios;

[0081] Step S33: taking the weighted hotspot degrees of the different behavior decisions as the hotspot feature values ​​of the different behavior decisions.

[0082] It is understandable that in other embodiments, the hotspot degrees of different behavioral decisions in different driving scenarios can also be used as the hotspot feature values ​​of the different behavioral decisions. In this preferred embodiment, different data information is more comprehensively considered to obtain more accurate hotspot feature values.

[0083] Among them, the better one is Figure 3 As shown in the figure, the hotspots of different behavioral decisions in different driving scenarios are calculated based on the cached tag data, including:

[0084] Step T1: Obtain the occurrence frequency and timestamp information of different behavioral decisions in different driving scenarios based on the cached tag data;

[0085] Step T2: calculating the timestamp density and the centroid moment of the timestamp distribution of different behavior decisions under different driving scenarios based on the timestamp information of different behavior decisions under different driving scenarios;

[0086] Step T3: The hotspot degree of different behavioral decisions under different driving scenarios is calculated based on the occurrence frequency, timestamp density and the centroid moment of the timestamp distribution of different behavioral decisions under the different driving scenarios.

[0087] In step T1, the timestamp information can be directly obtained, and the frequency of occurrence of different behavioral decisions in different driving scenarios is obtained as follows:

[0088] 1) First, count the number of occurrences of different behavior decisions in the cache table, such as lane change, acceleration, overtaking, following, etc., and calculate the behavior decision Frequency ;

[0089] 2) Classify the calculation results (behavior decisions) in the cache table according to the index of the input data in different driving scenarios;

[0090] 3) Count the number of occurrences of different behavioral decisions in different driving scenarios, and calculate the number of occurrences of different behavioral decisions in different driving scenarios. Next behavior decision Frequency of occurrence .

[0091] In steps T2 and T3, it should be noted that in existing cache optimization methods, the frequency of occurrence of data is usually obtained and the low-frequency data is optimized. However, the frequency of occurrence of different behavioral decisions in the overall cache table is known. And the frequency of occurrence in different scenarios , and cannot fully represent the hotness of a certain behavior decision. When the behavior decision is more frequent when it is farther away from the current moment, its hotness at the current moment is lower.

[0092] In some specific implementations, specifically:

[0093] 1) The timestamp density of different behavioral decisions in different driving scenarios To obtain;

[0094] 2) Get the driving scene Next behavior decision The timestamp distribution center of

[0095] a) Make behavioral decisions The first timestamp is used as a fixed point to obtain the time intervals between other timestamps and this timestamp. ;

[0096] It should be noted that the time interval of the timestamp here is in hours.

[0097] b) Calculate the time interval of all timestamps The mean value of ;

[0098] c) Add the mean of the time interval to the fixed point (the first timestamp) to get the driving scenario Next behavior decision The corresponding moment of the timestamp distribution center ;

[0099] 3) Computational behavioral decision making The timestamp of the center of gravity of the timestamp distribution The time interval from the current time ;

[0100] 4) Computing in driving scenarios Next behavior decision Hotspot ;

[0101] ;

[0102] In the formula, Representing driving scenarios Next behavior decision The degree of hotness, represents the normalization function, Representing behavioral decisions The timestamp of the center of gravity of the timestamp distribution The time interval from the current moment, Representing driving scenarios Next behavior decision The timestamp density of occurrences, Representing driving scenarios Next behavior decision The frequency of occurrence.

[0103] In the same way, regardless of driving scenarios, decision-making behavior can be obtained. ;

[0104] ;

[0105] In the formula, Behavioral Decision Making The degree of hotness, represents the normalization function, Indicates that it does not distinguish between behavioral decisions in driving scenarios The timestamp of the center of gravity of the timestamp distribution The time interval from the current moment, Representing behavioral decisions The timestamp density of occurrences, Representing behavioral decisions The frequency of occurrence.

[0106] 5) Behavioral decisions based on different driving scenarios Hotspot , combined with the verification ratio of each driving scenario in the verification and testing process, the behavioral decision is obtained Weighted hotspot degree .

[0107] a) Calculate driving scenarios The ratio of the corresponding index number to the total index data is used to obtain the verification ratio of the driving scene. ;

[0108] b) Computational behavioral decision making Weighted hotspot degree .

[0109] ;

[0110] In the formula, Representing behavioral decisions The weighted hotspot degree, , represents the total number of driving scenarios, Representing driving scenarios Next behavior decision The degree of hotness, Representing driving scenarios The verification percentage.

[0111] In step S4, the logic is: when the autonomous driving system obtains behavioral decisions based on environmental perception information, the more complex, faster changing, and larger the current environment is, the more difficult it is to obtain behavioral decisions, and the more computing resources it consumes. When optimizing cache space, for driving scenarios where it is difficult to obtain behavioral decisions, in order to improve the efficiency of obtaining calculation results, the corresponding behavioral decisions and action plans are not expected to be optimized.

[0112] As mentioned above, the input data includes environmental perception data; in this step, preferably, the difficulty of obtaining different behavioral decisions is obtained based on the analysis of the cache tag data, including: obtaining the difficulty of obtaining different behavioral decisions by analyzing the environmental perception data of all driving scenarios corresponding to different behavioral decisions.

[0113] Specifically, the difficulty of obtaining behavioral decisions in a certain driving scenario can be obtained in the following ways:

[0114] 1) First, use existing computer vision and deep learning technologies to extract features from the images captured by the camera;

[0115] a) Determine the number of pedestrians based on the images captured by the camera , Number of vehicles ;

[0116] b) Combine the camera image and the laser radar to detect the specific location of nearby vehicles and pedestrians, and calculate the vehicle density centered on the current vehicle , pedestrian density ; That is, the pedestrian density is obtained by dividing the number of pedestrians by the length of the observed section, and the vehicle density is obtained by dividing the number of vehicles by the length of the observed section;

[0117] c) Use LiDAR to detect the speed of nearby vehicles and calculate the average speed of surrounding vehicles centered on the current vehicle. The surrounding vehicles here refer to vehicles within a preset distance centered on the current vehicle, and the preset distance can be 20-100m;

[0118] d) Record the specific timestamp of the current input data driving scene ,During peak hours (7:00AM-9:00AM, 5:00PM-8:00PM), the road vehicle flow is large and the road complexity is high;

[0119] 2) Based on the obtained features, analyze the difficulty of obtaining the behavioral decision of the autonomous driving system under the current driving scenario (input data);

[0120] a) First, calculate the time interval between the timestamp and the peak period ,When the time interval between the timestamp and the peak period is shorter, the possible complexity of the road is higher;

[0121] b) Then, combined with the vehicle density centered on the current vehicle , pedestrian density , get the real complexity of the road ;

[0122] ;

[0123] In the formula, Indicates the actual complexity of the road. Indicates the time interval between the timestamp and the peak period. represents the vehicle density centered on the current vehicle, Indicates the pedestrian density centered on the current vehicle;

[0124] c) Finally, combined with the average speed of surrounding vehicles and vehicle density , quantify the driving danger of the current road, and obtain Difficulty in obtaining next behavior decision ;

[0125] ;

[0126] In the formula, In the driving scene The difficulty of obtaining the next behavior decision, represents the normalization function, Indicates the actual complexity of the road. represents the average speed of surrounding vehicles, represents the vehicle density of surrounding vehicles;

[0127] in, Indicates the danger level of the current driving scenario. When the traffic density is higher, the complexity of both low-speed and high-speed driving scenarios is higher, and the greater the traffic density at high speeds, the greater the danger level.

[0128] d) Calculate the difficulty of obtaining behavioral decisions in the current driving scenario , that is, the difficulty of obtaining decisions based on different input data in the current driving scenario The mean of .

[0129] Behavioral decisions are made in the calculation Corresponding to all driving scenarios Difficulty in obtaining next behavior decision After that, we can get the behavior decision Difficulty of obtaining .

[0130] In step S5, by accessing the system log, the cost of obtaining the behavior decision is evaluated according to the response time, bandwidth consumption, computing resources, etc. when outputting the result. Preferably, step S5 includes: obtaining cost parameters of different behavior decisions according to the system log of the output result process, the cost parameters including response time, bandwidth consumption, and computing resources; de-unitizing the cost parameters and taking the sum to obtain the acquisition cost of the different behavior decisions.

[0131] Specifically, the response time, bandwidth consumption, and computing resources (which can be the CPU resources or memory resources occupied by the computing process) are denormalized to obtain the response time characteristic value. , bandwidth consumption characteristic value , calculate resource characteristic values , where de-unitization is to use data standardization methods to convert response time, bandwidth consumption, and computing resources into corresponding feature values ​​to obtain behavioral decisions The acquisition cost :

[0132] ;

[0133] In the formula, Representing behavioral decisions The difficulty of obtaining represents the characteristic value of response time, Indicates the bandwidth consumption characteristic value, Indicates the characteristic value of computing resources.

[0134] In step S6, the calculation results (behavior decision ) Cost evaluation results when output , that is, the optimization priority of behavioral decision-making.

[0135] Preferably, the calculation formula for the optimization priority of the different behavior decisions is:

[0136] ;

[0137] in, Representing behavioral decisions The optimization priority of represents the normalization function, Representing behavioral decisions The degree of hotness, Representing behavioral decisions The acquisition cost, Representing behavioral decisions The difficulty of obtaining Representing behavioral decisions timeliness.

[0138] In step S7, preferably, a threshold can be preset. If the optimization priority of a certain behavior decision is greater than the preset threshold, the data is deleted. Specifically, the preset threshold is 0.8, that is, when the optimization priority of the behavior decision is greater than the preset threshold, the data is deleted. When the calculation result is stored in the cache table, it is considered that the value of the calculation result is low, and it is optimized, that is, the data is deleted from the cache table. All data in the cache table are traversed to complete the calculation result optimization of the cache table.

[0139] It can be understood that through the above steps, i.e., steps S1-S7, it is possible to achieve the situation where the amount of data in the chip simulation software cache table is too large during the vehicle software development process. In order to ensure the long-term and efficient operation of the cache system during the subsequent software development and verification process, it is also necessary to set up regular optimization of the cache table.

[0140] Preferably, if Figure 4 As shown, the data processing method further includes step S8, wherein step S8 is to preset a trigger condition, and determine whether to start the data optimization program according to the trigger condition, that is, to determine whether to start steps S1-S7. Specifically, it can be:

[0141] 1. Set the minimum optimization cycle of the cache table, that is, determine when to perform cache optimization. It can be a fixed time interval, such as daily, weekly or monthly, or based on a specific event trigger;

[0142] 2. During the optimization cycle, real-time monitoring of cache table performance indicators, such as cache hit rate, response time, etc. When the cache hit rate or response time increases significantly, it is considered that the current cache table may be out of date, and its internal data is optimized.

[0143] At this point, the data processing of the chip simulation software is completed.

[0144] In some specific embodiments, Figure 5 As shown, the data processing method is to collect data samples, obtain the access frequency of behavioral decisions → analyze the hot spot level in combination with time characteristics, obtain input data characteristics → analyze the complexity of the scene → analyze the difficulty of obtaining behavioral decisions, and then read the output cost data → obtain data optimization priority → optimize the cache table → set the cache table optimization starting conditions.

[0145] Embodiment 2

[0146] The present invention also provides a data processing system for chip simulation software, such as Figure 6 As shown, the data processing system includes:

[0147] The data acquisition module 10 is used to acquire cache data, wherein the cache data includes input data and corresponding output data, and a system log of the output result process;

[0148] A data marking module 20, configured to mark the cached data to obtain cached marked data after determining different driving scenarios according to the input data and determining different behavior decisions according to the output data;

[0149] A data analysis module 30, configured to obtain hotspot feature values ​​of different behavior decisions, acquisition difficulty, and acquisition cost of different behavior decisions based on the cache tag data analysis, and to obtain optimization priorities of different behavior decisions based on the hotspot feature values ​​of different behavior decisions, the acquisition difficulty of different behavior decisions, and the acquisition cost of different behavior decisions;

[0150] The data optimization module 40 is used to optimize the data according to the optimization priorities of the different behavior decisions.

[0151] Preferably, if Figure 7 As shown, the data processing system also includes:

[0152] The trigger module 50 is used to determine whether to start the data optimization program according to a preset trigger condition.

[0153] In the embodiment of the data processing system of the present invention, all technical features of the above-mentioned data processing method embodiments are included, and the description and explanation content are basically the same as those of the above-mentioned data processing method embodiments, and will not be repeated here.

[0154] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0155] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

Claims

1. A data processing method for chip simulation software, characterized in that: include: Obtain cache data, wherein the cache data includes input data and corresponding output data, and a system log of the output result process; After determining different driving scenarios according to the input data and determining different behavior decisions according to the output data, marking the cache data to obtain cache marking data; Obtaining hotspot feature values ​​of different behavior decisions based on the cache tag data analysis; The difficulty of obtaining different behavior decisions is obtained based on the cache tag data analysis; Obtaining acquisition costs of different behavior decisions based on the cached tag data; Obtaining optimization priorities of different behavioral decisions according to the hotspot feature values ​​of the different behavioral decisions, the difficulty of obtaining the different behavioral decisions, and the cost of obtaining the different behavioral decisions; Optimizing data according to the optimization priorities of the different behavioral decisions; Based on the cache tag data analysis, hot spot feature values ​​of different behavior decisions are obtained, including: The hotspots of different behavioral decisions in different driving scenarios and the verification ratios of different driving scenarios are calculated based on the cached tag data; The weighted hotspot degrees of different behavioral decisions are calculated based on the hotspot degrees of different behavioral decisions under the different driving scenarios and the verification proportions of different driving scenarios; The weighted hotspot degrees of the different behavioral decisions are used as hotspot feature values ​​of the different behavioral decisions; The hotspots of different behavior decisions in different driving scenarios are calculated based on the cached tag data, including: Obtain the occurrence frequency and timestamp information of different behavioral decisions in different driving scenarios based on cached tag data; Calculate the timestamp density and the centroid moment of the timestamp distribution of different behavior decisions in different driving scenarios based on the timestamp information of different behavior decisions in different driving scenarios; The hotspot degree of different behavioral decisions under different driving scenarios is calculated based on the occurrence frequency, timestamp density and the centroid moment of the timestamp distribution of different behavioral decisions under the different driving scenarios; The calculation formula of the weighted hotspot degree of the different behavioral decisions is: in, Representing behavioral decisions The weighted hotspot degree, , represents the total number of driving scenarios, Representing driving scenarios Next behavior decision The degree of hotness, Representing driving scenarios Verification percentage; The input data includes environmental perception data; Obtaining the difficulty of obtaining different behavior decisions based on the cached tag data analysis, including: obtaining the difficulty of obtaining different behavior decisions by analyzing the environmental perception data of all driving scenarios corresponding to different behavior decisions; The acquisition costs of different behavior decisions are obtained based on the cache tag data, including: Obtain cost parameters of different behavioral decisions according to the system log of the output result process, wherein the cost parameters include response time, bandwidth consumption, and computing resources; De-unitizing the cost parameters and taking the sum to obtain the acquisition costs of the different behavior decisions; The calculation formula for the optimization priority of the different behavior decisions is: in, Representing behavioral decisions The optimization priority of represents the normalization function, Representing behavioral decisions The weighted hotspot degree, Representing behavioral decisions The acquisition cost, Representing behavioral decisions The difficulty of obtaining Representing behavioral decisions Timeliness; In the driving scene Next behavior decision Hotspot The calculation formula is: In the formula, Representing driving scenarios Next behavior decision The degree of hotness, represents the normalization function, Representing behavioral decisions The timestamp of the center of gravity of the timestamp distribution The time interval from the current moment, Representing driving scenarios Next behavior decision The timestamp density of occurrences, Representing driving scenarios Next behavior decision The frequency of occurrence; Does not distinguish between driving scenarios, decision-making behavior The calculation formula is: In the formula, Behavioral Decision Making The degree of hotness, represents the normalization function, Indicates that it does not distinguish between behavioral decisions in driving scenarios The timestamp of the center of gravity of the timestamp distribution The time interval from the current moment, Representing behavioral decisions The timestamp density of occurrences, Representing behavioral decisions The frequency of occurrence.

2. The data processing method of chip simulation software according to claim 1, characterized in that: The data is optimized according to the optimization priorities of the different behavior decisions, including: if the optimization priority of a behavior decision is greater than a preset threshold, the data is deleted.

3. A data processing system for chip simulation software, characterized in that: include: A data acquisition module is used to acquire cache data, wherein the cache data includes input data and corresponding output data, and a system log of the output result process; A data marking module, configured to mark the cached data to obtain cached marked data after determining different driving scenarios according to the input data and determining different behavior decisions according to the output data; A data analysis module, used to obtain hotspot feature values ​​of different behavioral decisions, acquisition difficulty and acquisition cost of different behavioral decisions based on the cache tag data analysis, and to obtain optimization priorities of different behavioral decisions according to the hotspot feature values ​​of different behavioral decisions, acquisition difficulty of different behavioral decisions and acquisition cost of different behavioral decisions; A data optimization module, used for optimizing data according to the optimization priorities of the different behavioral decisions; Based on the cache tag data analysis, hot spot feature values ​​of different behavior decisions are obtained, including: The hotspots of different behavioral decisions in different driving scenarios and the verification ratios of different driving scenarios are calculated based on the cached tag data; The weighted hotspot degrees of different behavioral decisions are calculated based on the hotspot degrees of different behavioral decisions under the different driving scenarios and the verification proportions of different driving scenarios; The weighted hotspot degrees of the different behavioral decisions are used as hotspot feature values ​​of the different behavioral decisions; The hotspots of different behavior decisions in different driving scenarios are calculated based on the cached tag data, including: Obtain the occurrence frequency and timestamp information of different behavioral decisions in different driving scenarios based on cached tag data; Calculate the timestamp density and the centroid moment of the timestamp distribution of different behavior decisions in different driving scenarios based on the timestamp information of different behavior decisions in different driving scenarios; The hotspot degree of different behavioral decisions under different driving scenarios is calculated based on the occurrence frequency, timestamp density and the centroid moment of the timestamp distribution of different behavioral decisions under the different driving scenarios; The calculation formula of the weighted hotspot degree of the different behavioral decisions is: in, Representing behavioral decisions The weighted hotspot degree, , represents the total number of driving scenarios, Representing driving scenarios Next behavior decision The degree of hotness, Representing driving scenarios Verification percentage; The input data includes environmental perception data; Obtaining the difficulty of obtaining different behavior decisions based on the cached tag data analysis, including: obtaining the difficulty of obtaining different behavior decisions by analyzing the environmental perception data of all driving scenarios corresponding to different behavior decisions; The acquisition costs of different behavior decisions are obtained based on the cache tag data, including: Obtain cost parameters of different behavioral decisions according to the system log of the output result process, wherein the cost parameters include response time, bandwidth consumption, and computing resources; De-unitizing the cost parameters and taking the sum to obtain the acquisition costs of the different behavior decisions; The calculation formula for the optimization priority of the different behavior decisions is: in, Representing behavioral decisions The optimization priority of represents the normalization function, Representing behavioral decisions The weighted hotspot degree, Representing behavioral decisions The acquisition cost, Representing behavioral decisions The difficulty of obtaining Representing behavioral decisions Timeliness; In the driving scene Next behavior decision Hotspot The calculation formula is: In the formula, Representing driving scenarios Next behavior decision The degree of hotness, represents the normalization function, Representing behavioral decisions The timestamp of the center of gravity of the timestamp distribution The time interval from the current moment, Representing driving scenarios Next behavior decision The timestamp density of occurrences, Representing driving scenarios Next behavior decision The frequency of occurrence; Does not distinguish between driving scenarios, decision-making behavior The calculation formula is: In the formula, Behavioral Decision Making The degree of hotness, represents the normalization function, Indicates that it does not distinguish between behavioral decisions in driving scenarios The timestamp of the center of gravity of the timestamp distribution The time interval from the current moment, Representing behavioral decisions The timestamp density of occurrences, Representing behavioral decisions The frequency of occurrence.

4. The data processing system of chip simulation software according to claim 3, characterized in that: Also includes: The trigger module is used to determine whether to start the data optimization program according to the preset trigger conditions.

Citation Information

Patent Citations

  • Road driving data acquisition, analysis and uploading method for L3-level automatic driving system

    CN110264586A

  • Construction method of automatic driving decision and control joint simulation model

    CN110414082A

  • Automatic driving joint simulation method based on multiple platforms

    CN112100856A

  • Risk response and active decision-making method and device for driver in high-risk scene

    CN116968730A

  • Vehicle automatic driving decision-making method, device, equipment and medium

    CN116991077A