Simulation waveform processing method, electronic equipment and storage medium
By performing frequency domain compression processing on integrated circuit simulation waveform data, the problem of low storage and processing efficiency of integrated circuit simulation data is solved, and the data storage space is saved and processing efficiency is improved.
Patent Information
- Application Number
- CN202510180467.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-18
- Publication Date
- 2025-06-13
AI Technical Summary
As the scale of integrated circuits increases, the amount of data generated during the simulation process is huge, resulting in an increase in storage space pressure and the IO overhead of data processing is also very large, which brings great challenges to data loading.
By obtaining the voltage value or current value of each node in the circuit at multiple time points, arranging it into time domain simulation waveform data, converting it into frequency domain simulation waveform data, and filtering it to obtain compressed frequency domain simulation waveform data. Then, depending on whether the difference is within a preset range, it is determined whether to store compressed frequency domain or time domain data.
Through the frequency domain compression of data, the overhead of data storage space is significantly reduced, and the efficiency of data processing is improved, solving the problem of large-scale simulation data storage and processing.
Smart Images

Figure CN120145990A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of integrated circuit technology, and particularly to a method for processing simulation waveforms, an electronic device, and a storage medium. Background Art
[0002] Integrated circuits are widely used due to their advantages such as small size, light weight, few lead-out wires and welding points, long lifespan, high reliability, and good performance. To ensure the correctness and completeness of the logic functions of integrated circuits, it is usually necessary to verify the integrated circuits. Traditional experimental verification methods are costly and time-consuming. Therefore, electronic circuit simulation technology has emerged and become an indispensable tool in integrated circuit design. Electronic circuit simulation technology can perform fast, efficient, and low-cost circuit verification and optimization during the design phase by establishing a circuit model on a computer and conducting virtual experiments.
[0003] As the scale of integrated circuits continues to increase, the data generated by circuit simulation will continue to grow. During the entire simulation process, the number of simulation time points is in the thousands, tens of thousands, or even more, and each time point contains millions, tens of millions, or even hundreds of millions of node numbers, which will cause great pressure on the storage space. And when using these data to understand the chip behavior, it will also cause extremely large input / output (IO) overhead, posing a great challenge to data loading.
[0004] The foregoing description is provided to give general background information and does not necessarily constitute prior art. Summary of the Invention
[0005] To alleviate the above problems, the present application provides a method for processing simulation waveforms, an electronic device, and a storage medium, which can improve the compression ratio of simulation waveform data, thereby reducing the overhead of data storage space and improving the efficiency of data processing.
[0006] The present application provides a method for processing simulation waveforms. The method for processing simulation waveforms includes: obtaining voltage values or current values of each node in a circuit at multiple time points, and arranging the voltage values or current values of each node at the same time point according to position information to obtain multiple time-domain simulation waveform data corresponding to the circuit at multiple time points, where each time-domain simulation waveform data is the voltage value or current value of each node in the circuit at the same time point; obtaining multiple frequency-domain simulation waveform data corresponding to the multiple time points according to the multiple time-domain simulation waveform data; and respectively performing filtering processing on the multiple frequency-domain simulation waveform data to obtain multiple filtered compressed frequency-domain simulation waveform data corresponding to the multiple time points.
[0007] In one embodiment, the method further includes: converting the compressed frequency-domain simulation waveform data into corresponding compressed time-domain simulation waveform data; confirming whether the difference between the compressed time-domain simulation waveform data and the corresponding time-domain simulation waveform data is within a preset range; and if the difference is within the preset range, storing the compressed frequency-domain simulation waveform data.
[0008] In one embodiment, the method further includes: if the difference is not within the preset range, storing the time-domain simulation waveform data.
[0009] In one embodiment, the method further includes: determining whether the number of nodes where the difference is not within the preset range is greater than a preset threshold; if the number of nodes where the difference is not within the preset range is greater than the preset threshold, storing the time-domain simulation waveform data; and if the number of nodes where the difference is not within the preset range is not greater than the preset threshold, storing the compressed frequency-domain simulation waveform data.
[0010] In one embodiment, the step of respectively performing filtering processing on the plurality of frequency-domain simulation waveform data to obtain the plurality of filtered compressed simulation waveform data corresponding to the plurality of time points includes: obtaining a current compression ratio; determining a filtering range according to the current compression ratio; and respectively performing filtering processing on the plurality of frequency-domain simulation waveform data according to the filtering range to obtain the plurality of filtered compressed simulation waveform data.
[0011] In one embodiment, the method further includes: converting the compressed frequency-domain simulation waveform data into corresponding compressed time-domain simulation waveform data; confirming whether the difference between the compressed time-domain simulation waveform data and the corresponding time-domain simulation waveform data is within a preset range; if the difference is within the preset range, keeping the current compression ratio unchanged or expanding the current compression ratio to obtain an updated current compression ratio; and / or if the difference is not within the preset range, shrinking the current compression ratio to obtain an updated current compression ratio.
[0012] In one embodiment, the step of obtaining the plurality of frequency-domain simulation waveform data corresponding to the plurality of time points according to the plurality of time-domain simulation waveform data includes: obtaining a corresponding compensation coefficient according to the position information of each node; and performing orthogonal transformation processing on the plurality of time-domain simulation waveform data according to the compensation coefficient to obtain the coefficients of each node in the frequency domain, thereby obtaining the plurality of frequency-domain simulation waveform data.
[0013] In one embodiment, the step of obtaining a corresponding compensation coefficient according to the position information of each node includes: if the current node is the node at the start position, determining the compensation coefficient of the current node as the square root of the reciprocal of the total number of nodes in the circuit; if the current node is not the node at the start position, determining the compensation coefficient of the current node as the square root of a multiple of the reciprocal of the total number of nodes.
[0014] In one embodiment, the step of performing an orthogonal transformation process on the plurality of time-domain simulation waveform data according to the compensation coefficient to obtain the coefficients of each node in the frequency domain, thereby obtaining the plurality of frequency-domain simulation waveform data includes: multiplying the time-domain voltage values or current values of the nodes with serial numbers from 0 to N−1 by the corresponding orthogonal functions respectively, and then summing to obtain a summation result, where the parameters of the orthogonal function include the serial number of the corresponding node and the position information of the current node; obtaining the coefficient of the current node in the frequency domain according to the product of the compensation coefficient of the current node and the summation result, where N is the total number of nodes in the circuit.
[0015] In one embodiment, based on the following formula, the coefficient of the current node in the frequency domain is obtained: where F(u) is the coefficient of the current node in the frequency domain, u is the position information of the current node, c(u) is the compensation coefficient of the current node, N is the total number of nodes in the circuit, i is the serial number of the node, and f(i) is the voltage value or current value of the node with serial number i in the time domain.
[0016] The present application also provides an electronic device, including a memory and a processor, and when the processor executes a computer program stored in the memory, the above method can be implemented.
[0017] On the other hand, the present application also provides a storage medium. Specifically, a computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the simulation waveform processing method as described above are implemented.
[0018] As described above, the simulation waveform processing method, electronic device, and storage medium provided by the present application obtain the voltage values or current values of each node in a circuit at multiple time points, and arrange the voltage values or current values of each node at the same time point according to the position information to obtain multiple time-domain simulation waveform data corresponding to the circuit at multiple time points. Among them, each time-domain simulation waveform data is the voltage value or current value of each node in the circuit at the same time point; according to the multiple time-domain simulation waveform data, multiple frequency-domain simulation waveform data corresponding to the multiple time points are obtained; the multiple frequency-domain simulation waveform data are respectively filtered to obtain multiple filtered compressed frequency-domain simulation waveform data corresponding to the multiple time points. Therefore, by obtaining the frequency-domain simulation waveform data corresponding to each node at the same time point, the present application can obtain multiple frequency-domain simulation waveforms with smooth waveforms, which is beneficial to the substantial compression of data, and further can reduce the overhead of data storage space and improve the efficiency of data processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. To more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0020] Figure 1 It is a schematic flowchart of the simulation waveform processing method according to an embodiment of the present application.
[0021] Figure 2 It is a schematic flowchart of the simulation waveform processing method according to another embodiment of the present application.
[0022] The implementation, functional features, and advantages of the present application will be further described in conjunction with the embodiments with reference to the accompanying drawings. Through the above-mentioned accompanying drawings, the specific embodiments of the present application have been shown, and there will be more detailed descriptions hereinafter. These drawings and text descriptions are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0023] Here, the exemplary embodiments will be described in detail, and the examples are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0024] It should be noted that in this document, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, such that a process, method, article or device comprising a series of elements not only includes those elements but also other elements not explicitly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising one..." does not exclude the presence of additional identical elements in the process, method, article or device comprising such element. In addition, components, features, and elements with the same name in different embodiments of the present application may have the same meaning or different meanings, and their specific meanings need to be determined based on their explanations in the specific embodiments or further in combination with the context in the specific embodiments.
[0025] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0026] First Embodiment
[0027] In one aspect, the present application provides a simulation waveform processing method. Figure 1 is a flowchart of the simulation waveform processing method according to an embodiment of the present application. Please refer to Figure 1 , in one embodiment, the simulation waveform processing method includes the following steps:
[0028] S10: Obtain the voltage values or current values of each node in the circuit at multiple time points, and arrange the voltage values or current values of each node at the same time point according to the position information to obtain a plurality of time-domain simulation waveform data corresponding to the circuit at multiple time points;
[0029] Among them, the circuit refers to an integrated circuit with a specific function formed by integrating a plurality of electronic components (such as resistors, capacitors, transistors, etc.) and the connections between these components through semiconductor processes. Each node in the circuit is a point through which current must pass in the circuit. For example, it can be the source, drain or gate of a transistor, or the connection point of a resistor or capacitor, or the connection point between different layers. The multiple time points refer to multiple specific moments or instants. For example, it can include the first time point, the second time point, etc. The position information is used to represent the arrangement position of the voltage value or current value corresponding to each node in the sequence. The position information can be determined according to the position information of each node in the circuit (i.e., the actual orientation), or it can be a non-repeating index set by the user or the system.
[0030] Among them, each time-domain simulation waveform data is the voltage value or current value of each node in the circuit at the same time point. For example, if the circuit has multiple nodes n 1 、n 2 ……nN At the first time point t 1 under which, for each node n 1 、n 2 ……n N the voltage values are respectively V 11 、V 12 ……V 1N where N is the total number of nodes in the circuit. Then the first time-domain simulation waveform data is the voltage values V 1 、n 2 ……n N of each node n 1 at the first time point t 11 、V 12 ……V 1N 。If at the second time point t 2 under which, for each node n 1 、n 2 ……n N the voltage values are respectively V 21 、V 22 ……V 2N then the second time-domain simulation waveform data is the voltage values V 1 、n 2 ……n N of each node n 2 at the second time point t 21 、V 22 ……V 2N 。In one embodiment, the voltage values of each node at a certain time point can be obtained by simulating the voltage response of the circuit at that time point, or the current values of each node at that time point can be obtained by simulating the current response of the circuit at that time point. Specifically, for example, the voltage value of each node at the first time point can be obtained by the node voltage method with a current source, or the voltage value of each node at the first time point can be obtained by the branch current method, etc.
[0031] S11: Obtain the frequency-domain simulation waveform data corresponding to multiple time points according to multiple time-domain simulation waveform data;
[0032] Among them, the frequency-domain simulation waveform data is the voltage value or current value in the frequency domain obtained by transforming the voltage value or current value in the time domain in the time-domain simulation waveform data. Each frequency-domain simulation waveform data is the voltage value or current value in the frequency domain obtained by transforming the voltage value or current value of each node in the circuit at the same time point. In one embodiment, each time-domain simulation waveform data can be respectively transformed into the corresponding frequency-domain simulation waveform data through an orthogonal transformation. For example, each time-domain simulation waveform data can be respectively transformed into the corresponding frequency-domain simulation waveform data by methods such as Fourier transform or Laplace transform. Among them, the orthogonal transformation is a linear transformation that ensures the inner product, norm length, and included angle remain unchanged before and after the transformation. Specifically, in one embodiment, step S11: obtaining multiple frequency-domain simulation waveform data corresponding to multiple time points according to multiple time-domain simulation waveform data includes: respectively performing orthogonal transformation processing on multiple time-domain simulation waveform data according to the position information of each node to obtain the corresponding frequency-domain simulation waveform data.
[0033] Specifically, in one embodiment, the step of performing orthogonal transformation processing on the time-domain simulation waveform data according to the position information of each node to obtain the frequency-domain simulation waveform data includes: obtaining the corresponding compensation coefficient according to the position information of each node; respectively performing orthogonal transformation processing on multiple time-domain simulation waveform data according to the compensation coefficient to obtain the coefficient of each node in the frequency domain, so as to obtain multiple frequency-domain simulation waveform data. Among them, the compensation coefficient is the coefficient used to make the transformation an orthogonal transformation. The coefficient in the frequency domain is the coefficient used to generate the frequency-domain simulation waveform data, that is, the coefficient used to generate the voltage value or current value in the frequency domain. In this embodiment, the transformation becomes an orthogonal transformation through the compensation coefficient, and an important property of the orthogonal transformation is that it is easy to solve by inverse transformation. Therefore, this embodiment can convert the compressed frequency-domain simulation waveform data to the compressed time-domain simulation waveform data, thereby simplifying the calculation process. In addition, the compensation coefficient also plays a role in normalization, further ensuring that the frequency-domain coefficients after the change are more stable in value, avoiding large numerical fluctuations in the subsequent processing process, and thus improving the compression efficiency and inverse transformation quality.
[0034] Specifically, in one embodiment, the step of obtaining the corresponding compensation coefficient according to the position information of each node includes: if the current node is the node at the starting position, determining the compensation coefficient of the current node as the square root of the reciprocal of the total number of nodes in the circuit; if the current node is not the node at the starting position, determining the compensation coefficient of the current node as the square root of multiple times of the reciprocal of the total number of nodes. Specifically, in one embodiment, if the current node is not the node at the starting position, determining the compensation coefficient of the current node as the square root of twice or four times of the reciprocal of the total number of nodes, so as to reduce the problem that due to inappropriate multiples, the transformation matrix is no longer orthogonal and invertible, resulting in distortion of the obtained node voltage value / current value and affecting the compression accuracy and efficiency. Preferably, if the current node is not the node at the starting position, determining the compensation coefficient of the current node as the square root of twice the reciprocal of the total number of nodes, so as to further reduce the problem of low compression accuracy and efficiency caused by distortion of the obtained node voltage value / current value. Among them, the compensation coefficient is used to orthogonalize the transformation basis, so that the transformation matrix is orthogonal, thereby ensuring energy conservation before and after the transformation.
[0035] Exemplarily, based on the following formula, the compensation coefficient of the current node is obtained according to the position information of the current node: where c(u) is the compensation coefficient of the current node, u is the position information of the current node, and N is the total number of nodes in the circuit.
[0036] Specifically, in one embodiment, the step of performing orthogonal transformation processing on multiple time-domain simulation waveform data respectively according to the compensation coefficient to obtain the coefficients of each node in the frequency domain, so as to obtain multiple frequency-domain simulation waveform data includes: multiplying the time-domain voltage values or current values of the nodes with serial numbers from 0 to N - 1 by the corresponding orthogonal functions respectively, and then summing to obtain the summation result, where the parameters of the orthogonal function include the serial number of the corresponding node and the position information of the current node; obtaining the coefficient of the current node in the frequency domain according to the product of the compensation coefficient of the current node and the summation result. Among them, the orthogonal function is preferably a cosine function. Compared with other orthogonal functions, the cosine function is an even function, does not introduce singular boundary problems, and the cosine function can reduce the computational complexity, making the calculation simpler and more effective. Specifically, the cosine function is, for example where i is the serial number of the node, that is, an integer taking values from 0 to N - 1, N is the total number of circuit nodes, and u is the position information of the node. Since this embodiment projects the time-domain voltage value or current value onto the cosine function by multiplication operation to extract components of different frequencies, therefore, this embodiment can ensure the feasibility of the inverse transformation and reduce the computational complexity, thereby improving the processing efficiency.
[0037] Exemplarily, based on the following formula, the coefficient of the current node in the frequency domain is obtained: Among them, F(u) is the coefficient of the current node in the frequency domain, u is the position information of the current node, which is a preset non-repeating value. For example, it can be an integer from 1 to N. c(u) is the compensation coefficient of the current node, N is the total number of circuit nodes, i is the node number, that is, it takes values as integers from 1 to N, and f(i) is the voltage value of the node with the number i in the time domain.
[0038] Since there is often a certain correlation between adjacent nodes in the obtained time-domain simulation waveform data (for example, for two nodes that are very close in physical position, their voltage values are relatively close), this will lead to data redundancy. Therefore, in this embodiment, through orthogonal transformation, these correlations can be removed, making the transformed frequency-domain coefficients more independent, thereby helping to reduce the redundancy between data and improve the compression efficiency.
[0039] S12: Filter the frequency-domain simulation waveform data respectively to obtain multiple filtered compressed frequency-domain simulation waveform data corresponding to multiple time points;
[0040] Among them, the compressed frequency-domain simulation waveform data is the filtered voltage value or current value in the frequency domain obtained after filtering the frequency-domain simulation waveform data. In one embodiment, step S12: Filter the frequency-domain simulation waveform data respectively to obtain multiple filtered compressed frequency-domain simulation waveform data corresponding to multiple time points may include: obtaining the current compression ratio; determining the filtering range according to the current compression ratio; filtering the frequency-domain simulation waveform data according to the filtering range to obtain the filtered compressed frequency-domain simulation waveform data.
[0041] Among them, the compression ratio refers to the ratio of the data being compressed, that is, the ratio of the data size before and after compression. The filtering range refers to the interval value of the coefficients in the frequency domain to be filtered. The current compression ratio can be determined according to the acceptable error range and the storage space overhead, or can be preset by the system or set by the user. The current compression ratio can be a fixed value or an adjustable value to prevent the distortion of the simulation waveform data due to too large a compression ratio. In one embodiment, the larger the compression ratio, the larger the filtering range, and the more data is filtered out, that is, the larger the clipped range.
[0042] Specifically, in one embodiment, the step of filtering the frequency-domain simulation waveform data according to the filtering range to obtain the filtered compressed frequency-domain simulation waveform data may include: clipping the data of the nodes in the frequency-domain simulation waveform data that are within the filtering range according to the filtering range, so as to obtain the filtered compressed frequency-domain simulation waveform data. Clipping the data of the nodes in the frequency-domain simulation waveform data that are within the filtering range can be, for example, setting the coefficients in the frequency domain that are within the filtering range to 0, so as to obtain the filtered compressed frequency-domain simulation waveform data.
[0043] The simulation waveform processing method and storage medium provided in this embodiment obtain the time domain simulation waveform data of each node in the circuit at the same time point, and obtain the corresponding multiple frequency domain simulation waveform data according to the multiple time domain simulation waveform data, and then filter the multiple frequency domain simulation waveform data to obtain multiple filtered compressed frequency domain simulation waveform data. Therefore, this embodiment can obtain multiple frequency domain simulation waveforms with smooth waveforms by obtaining the frequency domain simulation waveform data corresponding to each node at the same time point, which is conducive to the substantial compression of data.
[0044] Second embodiment
[0045] Figure 2 FIG. 1 is a flow chart of a simulation waveform processing method according to another embodiment of the present invention. Figure 2 As shown, the simulation waveform processing method includes the following steps:
[0046] S20, obtaining the voltage value or current value of each node in the circuit at multiple time points, and arranging the voltage value or current value of each node at the same time point according to the position information, so as to obtain multiple time domain simulation waveform data corresponding to the circuit at multiple time points, wherein each time domain simulation waveform data is the voltage value or current value of each node in the circuit at the same time point;
[0047] S21, acquiring a plurality of frequency domain simulation waveform data corresponding to a plurality of time points according to a plurality of time domain simulation waveform data;
[0048] S22. Based on the current compression ratio, filter the multiple frequency domain simulation waveform data respectively to obtain multiple filtered compressed frequency domain simulation waveform data corresponding to multiple time points.
[0049] The execution process or principle of steps S20, S21, and S22 may refer to the description of the first embodiment, and will not be repeated here.
[0050] In one embodiment, the compressed frequency domain simulation waveform data corresponding to each time point can be directly stored, or the corresponding compressed frequency domain simulation waveform data can be stored when it is confirmed that the compressed frequency domain simulation waveform data corresponding to at least one time point meets the set conditions, wherein the set conditions are conditions for determining whether to store the compressed frequency domain simulation waveform data, and the set conditions are set according to the principle that the error of the compressed frequency domain simulation waveform data is within an acceptable error range, and in some embodiments, they can also be preset by the system or set by the user. Specifically, in one embodiment, the simulation waveform processing method also includes:
[0051] S23, converting the compressed frequency domain simulation waveform data into corresponding compressed time domain simulation waveform data;
[0052] Specifically, the compressed frequency-domain simulation waveform data can be transformed into the corresponding compressed time-domain simulation waveform data through the inverse transform of the orthogonal transform, that is, the voltage value or current value in the filtered frequency domain is restored to the voltage value or current value in the time domain through the inverse transform of the orthogonal transform.
[0053] S24. Confirm whether the difference between the compressed time-domain simulation waveform data and the corresponding time-domain simulation waveform data is within a preset range.
[0054] Among them, whether the difference is within the preset range can refer to whether the differences corresponding to all nodes at the same time point are within the preset range, or it can refer to whether the differences corresponding to a certain node or some nodes at the same time point are within the preset range. Among them, the preset range refers to the range value of the difference, and the preset range is preset based on the acceptable error range and / or the storage space size of the data. Among them, the larger the acceptable error range, the larger the preset range, and the smaller the storage space, the larger the preset range. In some embodiments, it can also be preset by the system or set by the user.
[0055] In one embodiment, the method may also but is not limited to include: if the difference is within the preset range, then proceed to S25. Store the compressed frequency-domain simulation waveform data. If the difference is not within the preset range, then proceed to S26. Store the time-domain simulation waveform data. In other embodiments, the method may also but is not limited to include: whether the number of nodes corresponding to the difference not being within the preset range is greater than a preset threshold; if the number of nodes corresponding to the difference not being within the preset range is greater than the preset threshold, then store the time-domain simulation waveform data; if the number of nodes corresponding to the difference not being within the preset range is not greater than the preset threshold, then store the compressed frequency-domain simulation waveform data. Among them, the preset threshold can be a value set by the system or the user.
[0056] Specifically, if the first time-domain simulation waveform data includes nodes n 1 、n 2 ……n N , at the voltage values V 1 、V 11 、V 12 ……V 1N at the first time point t 11 、M 12 ……M 1N , the first frequency-domain simulation waveform data is the voltage values M 11 、M 12 ……M 1N-a , where a is an integer greater than 0 and less than N. The first compressed time-domain simulation waveform data obtained after the transformation of the first compressed frequency-domain simulation waveform data is the voltage values V' 11 、V' 12 ……V' 1NThen the difference between the first compressed time-domain simulation waveform data and the corresponding first time-domain simulation waveform data includes a difference V' 11 -V 11 , V' 12 -V 12 ……V' 1N -V 1N 。
[0057] In one embodiment, the method may also but is not limited to include: when the difference is within a preset range, keep the current compression ratio unchanged or increase the current compression ratio to obtain an updated current compression ratio, and use the updated current compression ratio to filter the frequency-domain simulation waveform data corresponding to the next time point, so as to obtain the filtered compressed frequency-domain simulation waveform data corresponding to the next time point; and / or when the difference is not within the preset range, reduce the current compression ratio to obtain an updated current compression ratio. In other embodiments, it is also possible to confirm whether the error is too large based on the principle that the voltage values of the same node change very little within a very short time interval of the circuit simulation waveform data, so as to determine whether it is necessary to update the current compression ratio. Therefore, it is possible to determine whether it is necessary to update the current compression ratio according to the difference between the voltage value of a certain node in the time domain obtained after filtering according to the current compression ratio and converting the compressed frequency-domain simulation waveform data, and the voltage value of this node in the time domain at a preset time interval. Specifically, in one embodiment, the method of the present application may also but is not limited to include: obtaining the voltage difference between the first voltage value of the first node in the circuit at the first time point and the second voltage value at the second time point, where the difference between the first time point and the second time point is less than the time threshold; judging whether the voltage difference between the first voltage value and the second voltage value is less than the voltage threshold; when the voltage difference is less than the voltage threshold, keep the current compression ratio unchanged or increase the current compression ratio to obtain an updated current compression ratio; when the voltage difference is not less than the voltage threshold, reduce the current compression ratio to obtain an updated current compression ratio. Wherein, the first voltage value is the voltage value of the first node obtained after converting the filtered compressed frequency-domain simulation waveform data, and the second voltage value is the voltage value of the first node in the time-domain simulation waveform data (which can also be called key time data) corresponding to the second time point. The second time can be before the first time point or after the first time point. Wherein, the time threshold and / or the voltage threshold can be values set by the user or values set by the system.
[0058] In one embodiment, the method may also but is not limited to include: decoding and loading the stored compressed frequency-domain simulation waveform data and / or time-domain simulation waveform data, and reading the voltage values or current values of each node at different time points, so as to obtain the voltage values or current values of each node at different time points.
[0059] The simulation waveform processing method provided in this embodiment obtains the voltage values or current values of each node in a circuit at multiple time points, and arranges the voltage values or current values of each node at the same time point according to the position information to obtain multiple time-domain simulation waveform data corresponding to the circuit at multiple time points. Among them, each time-domain simulation waveform data is the voltage value or current value of each node in the circuit at the same time point; according to the multiple time-domain simulation waveform data, multiple frequency-domain simulation waveform data corresponding to multiple time points are obtained; the multiple frequency-domain simulation waveform data are respectively subjected to filtering processing to obtain multiple filtered compressed frequency-domain simulation waveform data corresponding to multiple time points. Therefore, by obtaining the frequency-domain simulation waveform data corresponding to each node at the same time point in this embodiment, multiple frequency-domain simulation waveforms with smooth waveforms can be obtained, which is beneficial to the large-scale compression of data, and thus can reduce the overhead of data storage space and improve the efficiency of data processing. In addition, this embodiment can also store the time-domain simulation waveform data or the compressed frequency-domain simulation waveform data based on whether the difference between the compressed time-domain simulation waveform data and the corresponding time-domain simulation waveform data is within a preset range, thereby improving the accuracy of the stored data. Moreover, this embodiment can also dynamically adjust the compression ratio, thereby further improving the accuracy of data processing.
[0060] On the other hand, the present application also provides a storage medium. Specifically, a computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the simulation waveform processing method described above are implemented.
[0061] It should be noted that in the present application, step codes such as S10 and S11 are used. The purpose is to more clearly and briefly express the corresponding content, and do not constitute a substantial limitation in the order. Those skilled in the art may execute S11 first and then S10 during specific implementation, etc., but these should all be within the protection scope of the present application.
[0062] In the embodiment of the storage medium provided in the present application, it may include all the technical features of any of the above method embodiments. The expansion and explanation content of the specification is basically the same as that of the above method embodiments, and will not be repeated here.
[0063] The embodiment of the present application also provides a computer program product. The computer program product includes computer program code. When the computer program code runs on a computer, the computer is made to execute the methods in various possible implementation manners described above.
[0064] The embodiment of the present application also provides a device, including a memory and a processor. The memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the device executes the methods in various possible implementation manners described above.
[0065] It can be understood that the above scenarios are only examples and do not constitute a limitation on the application scenarios of the technical solutions provided by the embodiments of the present application. The technical solutions of the present application can also be applied to other scenarios. For example, as is known to those of ordinary skill in the art, with the evolution of system architectures and the emergence of new business scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.
[0066] The serial numbers of the embodiments of the present application above are only for description and do not represent the superiority or inferiority of the embodiments.
[0067] The steps in the method of the embodiments of the present application can be adjusted, combined, and deleted according to actual needs.
[0068] The units in the devices of the embodiments of the present application can be combined, divided, and deleted according to actual needs.
[0069] In the present application, for the description of the same or similar term concepts, technical solutions, and / or application scenarios, generally only a detailed description is given when it first appears. When it appears repeatedly later, for the sake of brevity, it is generally not described again. When understanding the technical solutions and other contents of the present application, for the same or similar term concepts, technical solutions, and / or application scenarios that are not described in detail later, reference can be made to the relevant detailed descriptions before.
[0070] In the present application, the descriptions of the various embodiments have their own emphases. For the parts not described or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0071] The technical features of the technical solutions of the present application can be combined arbitrarily. For the sake of concise description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as within the scope recorded in the present application.
[0072] The above are only the preferred embodiments of the present application, and do not limit the patent scope of the present application accordingly. Any equivalent structural or equivalent process transformation made by using the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, shall be included in the patent protection scope of the present application by the same token.
Claims
1. A simulation waveform processing method, characterized in that: The simulation waveform processing method comprises: Obtaining the voltage value or current value of each node in the circuit at multiple time points, and arranging the voltage value or current value of each node at the same time point according to the position information, so as to obtain multiple time domain simulation waveform data corresponding to the circuit at multiple time points, wherein each of the time domain simulation waveform data is the voltage value or current value of each node in the circuit at the same time point; According to the multiple time-domain simulation waveform data, multiple frequency-domain simulation waveform data corresponding to the multiple time points are obtained, each frequency-domain simulation waveform data is a voltage value or current value in the frequency domain obtained by converting the voltage value or current value of each node in the circuit at the same time point; The plurality of frequency domain simulation waveform data are filtered respectively to obtain a plurality of filtered compressed frequency domain simulation waveform data corresponding to the plurality of time points.
2. The simulation waveform processing method according to claim 1, characterized in that: The method further comprises: Converting the compressed frequency-domain simulation waveform data into corresponding compressed time-domain simulation waveform data; Confirm whether the difference between the compressed time-domain simulation waveform data and the corresponding time-domain simulation waveform data is within a preset range; If the difference is within the preset range, storing the compressed frequency domain simulation waveform data; and / or, If the difference is not within the preset range, the time domain simulation waveform data is stored.
3. The simulation waveform processing method according to claim 2, characterized in that: The method further comprises: Whether the number of nodes corresponding to the difference not being within the preset range is greater than a preset threshold; If the number of nodes corresponding to the difference not being within the preset range is greater than a preset threshold, storing the time domain simulation waveform data; If the difference is not within the preset range and the number of corresponding nodes is not greater than the preset threshold, the compressed frequency domain simulation waveform data is stored.
4. The simulation waveform processing method according to claim 1, characterized in that: The step of filtering the plurality of frequency domain simulation waveform data respectively to obtain a plurality of filtered compressed simulation waveform data corresponding to the plurality of time points comprises: Get the current compression ratio; Determining a filtering range according to the current compression ratio; The plurality of frequency domain simulation waveform data are filtered respectively according to the filtering range to obtain the plurality of filtered compressed simulation waveform data.
5. The simulation waveform processing method according to claim 4, characterized in that: The method further comprises: Converting the compressed frequency-domain simulation waveform data into corresponding compressed time-domain simulation waveform data; Confirm whether the difference between the compressed time-domain simulation waveform data and the corresponding time-domain simulation waveform data is within a preset range; If the difference is within the preset range, the current compression ratio is kept unchanged, or the current compression ratio is increased to obtain an updated current compression ratio; and / or If the difference is not within the preset range, the current compression ratio is reduced to obtain an updated current compression ratio.
6. The simulation waveform processing method according to claim 1, characterized in that: The step of acquiring a plurality of frequency domain simulation waveform data corresponding to the plurality of time points according to the plurality of time domain simulation waveform data comprises: According to the position information of each node, obtaining a corresponding compensation coefficient; According to the compensation coefficients, orthogonal transformation processing is performed on the multiple time-domain simulation waveform data respectively to obtain the coefficient of each node in the frequency domain, thereby obtaining the multiple frequency-domain simulation waveform data.
7. The simulation waveform processing method according to claim 6, characterized in that: The step of obtaining the corresponding compensation coefficient according to the position information of each node includes: If the current node is a node at the starting position, determining the compensation coefficient of the current node as the square root of the reciprocal of the total number of nodes in the circuit; If the current node is not the node at the starting position, the compensation coefficient of the current node is determined to be the square root of a multiple of the reciprocal of the total number of the nodes.
8. The simulation waveform processing method according to claim 6 or 7, characterized in that: According to the compensation coefficient, the multiple time-domain simulation waveform data are respectively subjected to orthogonal transformation processing to obtain the coefficient of each node in the frequency domain, thereby obtaining the multiple frequency-domain simulation waveform data, comprising: Multiplying the time-domain voltage values or current values of the nodes numbered 0 to N-1 by the corresponding orthogonal functions respectively, and summing them to obtain a summation result, wherein the parameters of the orthogonal function include the serial number of the corresponding node and the position information of the current node, wherein N is the total number of nodes in the circuit; The coefficient of the current node in the frequency domain is obtained according to the product of the compensation coefficient of the current node and the summation result.
9. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the processor can implement the method according to any one of claims 1 to 8 when executing a computer program stored in the memory.
10. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the simulation waveform processing method according to any one of claims 1 to 8 are implemented.
Citation Information
Cited By
Voltage waveform simulation method and device of power supply and computer equipment
CN121211742A