CN-121580690-B - Signal integrity simulation method, system, computer equipment and storage medium
Abstract
The invention provides a signal integrity simulation method, a system, computer equipment and a storage medium. The method comprises the steps of obtaining execution scripts supported by a simulation tool and a first mapping relation between each execution script and each simulation flow, obtaining text information of each execution script, inputting the text information into a preset language model, obtaining a first intention text group with a second mapping relation with the execution script and a second intention text group with a third mapping relation with a calling sequence of the execution script, analyzing an input first natural language instruction through the language model to obtain a first intention instruction, wherein the first intention instruction comprises a target first intention text and a target second intention text, generating calling codes of the execution script according to the first intention instruction, and controlling the simulation tool to execute the simulation flow according to the calling codes to obtain a simulation result. According to the scheme, signal integrity simulation can be automatically carried out according to the requirements of the user, and the operation threshold is lower.
Inventors
- BAO YICHENG
- Qian Beijie
- DENG JUNYONG
- SUN JIAXIN
Assignees
- 巨霖科技(上海)有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260128
Claims (7)
- 1. A method of signal integrity simulation comprising the steps of: Acquiring an execution script supported by a simulation tool and a first mapping relation between each execution script and each simulation flow in signal integrity simulation; acquiring text information of each execution script, inputting the text information into a preset language model for training, and acquiring a first intention text group with a second mapping relation with the execution script, a second intention text group with a third mapping relation with a calling sequence of the execution script and a third intention text group with a fourth mapping relation with parameter setting of the execution script; carrying out semantic analysis on a first natural language instruction input by a user through the language model to obtain a first intention instruction corresponding to the first natural language instruction, wherein the first intention instruction comprises a target first intention text and a target second intention text; Generating a calling code of the execution script according to the first intention instruction, and setting simulation parameters of each execution script in the calling code according to a target third intention script included in the first intention instruction; controlling the simulation tool to execute a simulation flow according to the calling code to obtain a simulation result; analyzing the simulation result to obtain key performance indexes; outputting the simulation result and the analysis result in the form of a structured report; receiving a second natural language instruction input by a user according to the structured report through the language model, analyzing the second natural language instruction, and generating a second intention instruction by combining the first intention instruction; And generating a new calling code according to the second intention instruction, and controlling the simulation tool to execute a simulation flow according to the new calling code.
- 2. The signal integrity simulation method of claim 1, wherein after generating the call code of the execution script according to the first intent instruction, controlling the simulation tool to execute a simulation flow according to the call code further comprises: the method comprises the steps of checking the calling codes, judging whether each execution script in the calling codes exists in a defined interface of the simulation tool, judging whether the calling sequence of each execution script accords with simulation flow constraint, controlling the simulation tool to execute the simulation flow according to the calling codes if the verification is passed, and correcting the calling codes according to the reason that the verification is not passed if the verification is not passed.
- 3. The signal integrity simulation method of claim 1, further comprising, after obtaining a first intent instruction corresponding to the first natural language instruction: and outputting prompt information to prompt a user to input a third natural language instruction if the first intention text group does not comprise the target first intention text and/or the second intention text group does not comprise the target second intention text.
- 4. The method of claim 3, further comprising comparing the third natural language instruction entered by the user with the first natural language instruction after obtaining the first intent instruction as desired based on the third natural language instruction entered by the user, and updating the first intent text group and the second intent text group based on the comparison.
- 5. A signal integrity simulation system, comprising: The man-machine interaction end is used for receiving a first natural language instruction input by a user; the simulation end comprises a language model module and a simulation module; The processing end is used for acquiring the execution scripts supported by the simulation tool of the simulation module and the first mapping relation between each execution script and each simulation flow in the signal integrity simulation, and also used for acquiring the text information of each execution script, inputting the text information into a language model in the language model module for training to acquire a first intention text group with a second mapping relation with the execution script, a second intention text group with a third mapping relation with the calling sequence of the execution script and a third intention text group with a fourth mapping relation with the parameter setting of the execution script; The processing end performs semantic analysis on the first natural language instruction input by a user through the man-machine interaction end through the language model to obtain a first intention instruction corresponding to the first natural language instruction, the first intention instruction comprises a target first intention text and a target second intention text, a calling code of the execution script is generated according to the first intention instruction, simulation parameters of each execution script in the calling code are set according to a target third intention text included in the first intention instruction, the simulation tool is controlled to execute a simulation flow according to the calling code to obtain a simulation result, the simulation result is analyzed to obtain a key performance index, the simulation result and the analysis result are output in the form of a structured report, the second natural language instruction input by the user according to the structured report is received through the language model, the second intention instruction is generated according to the first intention instruction, a new calling code is generated according to the second intention instruction, and the simulation tool is controlled to execute the simulation flow according to the new simulation flow.
- 6. A computer device comprising a memory, a processor and a computer program stored on the memory, characterized in that the processor executes the computer program to implement the steps of the signal integrity simulation method of any of claims 1-4.
- 7. A computer storage medium having stored thereon a computer program or instructions, which when executed by a processor, implements the steps of the signal integrity simulation method of any of claims 1-4.
Description
Signal integrity simulation method, system, computer equipment and storage medium Technical Field The present invention relates to the field of EDA simulation technologies, and in particular, to a method, a system, a computer device, and a storage medium for simulating signal integrity. Background Existing EDA-based Signal Integrity (SI) simulation tools typically provide a graphical interface (GUI) and command line/script interfaces (e.g., tcl, python) for users to operate, and users can complete engineering creation, PCB modeling, device model importation, simulation parameter configuration, and result viewing, etc., by means of menus, dialog boxes, parameter tables, etc. However, although the GUI interface is intuitive, the interaction mode of the GUI interface is often dependent on a great deal of clicking and manual operations of a user, the task flow is long and the repeatability is high, and a complete simulation task often requires the user to repeatedly switch and set tens of parameters among a plurality of interfaces, which is time-consuming and labor-consuming. The simulation operation is completed by calling the script interface API, and the user is required to have programming capability although the operation is more flexible than the GUI interface operation, and the API document and the calling specification of the tool are required to be familiar, so that the threshold is too high for a non-professional engineer. Therefore, a method for automatically implementing signal integrity simulation according to user requirements with a lower operation threshold is needed. Disclosure of Invention The invention aims to provide a signal integrity simulation method, a system, computer equipment and a storage medium, which can automatically simulate the signal integrity according to the requirements of users, have lower operation threshold, greatly reduce the use threshold of a simulation system, enable non-professional engineers to easily send out simulation instructions to perform corresponding simulation, and have wider application range and better user experience. The technical scheme provided by the invention is as follows: In a first aspect, the present application provides a signal integrity simulation method, including the steps of: Acquiring an execution script supported by a simulation tool and a first mapping relation between each execution script and each simulation flow in signal integrity simulation; Acquiring text information of each execution script, inputting the text information into a preset language model for training, and acquiring a first intention text group with a second mapping relation with the execution script and a second intention text group with a third mapping relation with the calling sequence of the execution script; carrying out semantic analysis on a first natural language instruction input by a user through the language model to obtain a first intention instruction corresponding to the first natural language instruction, wherein the first intention instruction comprises a target first intention text and a target second intention text; generating calling codes of the execution script according to the first intention instruction; and controlling the simulation tool to execute a simulation flow according to the calling code to obtain a simulation result. In some embodiments, after generating the call code of the execution script according to the first intent instruction, before controlling the simulation tool to execute the simulation flow according to the call code, the method further includes: the method comprises the steps of checking the calling codes, judging whether each execution script in the calling codes exists in a defined interface of the simulation tool, judging whether the calling sequence of each execution script accords with simulation flow constraint, controlling the simulation tool to execute the simulation flow according to the calling codes if the verification is passed, and correcting the calling codes according to the reason that the verification is not passed if the verification is not passed. In some embodiments, inputting the text information into a preset language model for training, further includes: Obtaining a third intention text group with a fourth mapping relation with the parameter setting of the execution script; After a first intention instruction corresponding to the first natural language instruction is obtained, setting simulation parameters of each execution script in the calling code according to a target third intention graph included in the first intention instruction. In some embodiments, after obtaining the simulation result, further comprising: analyzing the simulation result to obtain key performance indexes; And outputting the simulation result and the analysis result in the form of a structured report. In some embodiments, the signal integrity simulation method provided by the present application further includes: receiving