Method for cross-lingual integration with EDA software systemvue scheduling
By using the SystemVueCaller.exe driver, cross-language integration and scheduling of SystemVue software is achieved using C# and VBScript. This solves the problem of high complexity in heterogeneous language integration and scheduling, reduces development difficulty and cost, and improves integration efficiency.
Patent Information
- Application Number
- CN202310972069.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-03
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-08-03
AI Technical Summary
In existing technologies, integrating SystemVue software with modeling, design, and simulation tools of other heterogeneous languages presents challenges in terms of development complexity and learning costs.
By writing the SystemVueCaller.exe driver, which uses the C# language to call the secondary development DLL dependency library of the SystemVue software and combines it with the VBScript scripting language, cross-language integrated scheduling is achieved, shielding the technical details of SystemVue secondary development and providing a general command-line driver.
It reduces the development difficulty and cost of integrating and scheduling different programming languages with SystemVue software, simplifies the development process, reduces the need to learn complex VBScript syntax, and improves integration efficiency.
Smart Images

Figure CN117170636B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a method for cross-language integration and scheduling with EDA software SystemVue, belonging to the field of software integration technology. Background Technology
[0002] SystemVue is an electronic design automation (EDA) software specifically designed for electronic system-level design, allowing users to quickly simulate and verify their designed communication systems. In practical design applications, there are scenarios involving integration and scheduling with other modeling, design, and simulation tools. Since SystemVue's secondary development interface is primarily based on the VBScript scripting language, while other modeling and simulation tools are generally implemented in programming languages such as C++, Java, and Python, and their corresponding secondary development interfaces are also typically based on C++, Java, and Python, this introduces development complexity and learning costs due to data interaction and integration between heterogeneous languages. Summary of the Invention
[0003] To address the aforementioned technical problems, this invention discloses a method for cross-language integration and scheduling with the EDA software SystemVue, the specific technical solution of which is as follows:
[0004] Methods for cross-language integration and scheduling with the EDA software SystemVue include:
[0005] Step S1: Write the SystemVueCaller.exe driver:
[0006] Step S11: Write the SystemVueCaller.exe driver program using C#: Using the Visual Studio programming tool, create a new SystemVueCaller project, import the SystemVue secondary development dll dependency library, write a C# program, call the secondary development programming API interface of the SystemVue software in the C# program, and write specific VBScript scripts in the corresponding interfaces to implement the specific logic of the driver program.
[0007] Step S12: Define the core function call interface and input parameters of the SystemVue software to be called. SystemVue software is an EDA software, and SystemVueCaller.exe is a driver program developed in this patent for calling SystemVue software.
[0008] The specific methods for calling the SystemVueCaller.exe driver and the SystemVue software are as follows:
[0009] The SystemVue software provides a C# secondary development DLL dependency library. The SystemVueCaller.exe driver integrates with the SystemVue software by writing C# code and calling the relevant programming API interfaces in the SystemVue software DLL dependency library.
[0010] Step S13: Call the core function call interface of SystemVue software through VBScript scripting language. SystemVue software provides a DLL dependency library, which provides a RunScript method. The input parameter of this method is a VBScript script string. The SystemVueCall.exe program calls this method, passing in a VBScript script string with business logic, to achieve integration with SystemVue software.
[0011] Step S14: If the call is successful, output the call result information; if the call is unsuccessful, return to step S11.
[0012] Step S2: Compile the SystemVueCaller.exe driver source code to generate the SystemVueCaller.exe driver:
[0013] Install the .NET Framework 4.0 runtime environment.
[0014] Install the Visual Studio IDE development tools.
[0015] Import the source code of the SystemVueCaller.exe driver using the Visual Studio IDE development tool.
[0016] Compile the source code using the Visual Studio IDE development tool.
[0017] If the source code compilation is successful, the SystemVueCaller.exe driver will be generated.
[0018] If compiling the source code fails, fix the compilation errors first until the source code compiles successfully;
[0019] The process of fixing compilation errors is as follows: the programmer attempts to fix the error, but compilation fails. The Visual Studio IDE development tool will then display the specific error message and location. The programmer then modifies the code based on the message and recompiles until the error is successful.
[0020] Step S3: Call the SystemVueCaller.exe driver to achieve integrated scheduling with the SystemVue software:
[0021] This involves calling the SystemVueCaller.exe driver, including:
[0022] Step S31: Call the program interface of the command-line program.
[0023] Step S32: Call the SystemVueCaller.exe driver in the program interface.
[0024] Step S33: By calling the core function call of the SystemVueCaller.exe driver and its input parameters, the integration and scheduling with the SystemVue software is achieved.
[0025] Further, in step S11: a SystemVueCaller.exe driver is written in C#. A third-party application (here, "third-party application" is a general term; any software that needs to call and integrate with SystemVue software can be called a third-party application, specifically including modeling tools, simulation tools, design tools, etc.) calls the SystemVueCaller.exe driver indirectly to integrate and schedule with SystemVue, including:
[0026] To obtain the list of function APIs and input parameters of the SystemVueCaller.exe driver, third-party applications call the SystemVueCaller.exe driver via command-line code. At this time, the third-party application can view all the function APIs provided by the SystemVueCaller.exe driver through code, and call the specific function. The SystemVueCaller.exe driver will determine whether the called function and input parameters are valid.
[0027] If the function and its input parameters are valid, the specific function implementation corresponding to the core function provided by the SystemVueCaller.exe driver will be called;
[0028] If the function and its input parameters are invalid, the SystemVueCaller.exe driver will throw an exception indicating that the function does not exist or the parameters are invalid.
[0029] Furthermore, the SystemVueCaller.exe driver mentioned in step S12 provides core functionalities including RunScript, start, stop, getPartList, getPortList, getType, placePart, placeMATLABPort, placeWire, deletePartSymbol, importSymbolFromLibrary, clearSche, and save.
[0030] The function `start` starts the SystemVue service; the function `stop` stops the SystemVue service; the input parameters of the function `getPartList` include `string Name`, `string libraryname`, and `string PartName`, where `string Name` retrieves a list of specified component names, and `string libraryname` and `string PartName` retrieve a list of ports; the input parameters of the function `getType` include `string libraryname` and `string PartName`, retrieving a list of port types; the input parameters of the function `placePart` include `string libraryName`, `string partName`, `string dimName`, `string centerX`, and `string centerY`, representing component arrangement; the input parameters of the function `placeMATLABPort` include `string partDimName` and `string[] PortName`, setting the input and output ports of MATLAB components; the input parameters of the function `placeWire` include `string dimName`, `string partX`, `string partY`, `string targetX`, and `string targetY`, representing wire arrangement; the input parameter of the function `deletePartSymbol` includes `string partName`, deleting an inserted symbol; the input parameters of the function `importSymbolFromLibrary` include `string libraryName` and `string [] PartName`. `partName` indicates the insertion of a symbol; the `clearSche` function clears the canvas; and the `save` function saves the temporary workspace.
[0031] Furthermore, step S13: calling the core function call interface of the SystemVue software through the VBScript scripting language, includes:
[0032] The functions include OpenWorkSpace, save, getPartList, getPropertyList, getPropertyType, placeMATLABPort, placeWire, importSymbolFromLibrary, deleteSymbol, placeWire, and clearSche.
[0033] The VBScript script for the function OpenWorkSpace is FileNewFromTemplate("Blank.wsv"), which means opening the workspace;
[0034] The input parameter name for the `save` function includes `string filePath`, which is the VBScript script name.
[0035] w=Application.Manager.GetWorkspaceByIndex(0)
[0036] w.SaveAs(filePath) means saving the workspace;
[0037] The input parameter name of the function getPartList includes a string name, which is the VBScript script name.
[0038] w=Application.Manager.GetWorkspaceByIndex(0)
[0039] dim Symbols
[0040] dim temp
[0041] Library=w.GetLibrary("Design",name.Trim())
[0042] Library.GetPartList Symbols
[0043] For each part in Symbols
[0044] temp = temp + part + ""
[0045] next
[0046] SaveTextToFile"D: / PartList.txt",temp indicates that a list of specified part names is retrieved;
[0047] The input parameters of the function getPropertyList include string libraryname and string PartName, and the VBScript script is as follows:
[0048] w=Application.Manager.GetWorkspaceByIndex(0)
[0049] dim temp
[0050] w.ImportFromLibrary"Design",LibraryName.Trim(),PartName.Trim()
[0051] item=w.GetItemByName(PartName.Trim())
[0052] item.PartList.GetPropertyList Part
[0053] For each port in Part
[0054] temp = temp + port + ""
[0055] next
[0056] SaveTextToFile"D: / ProtList.txt",temp means retrieving the input and output lists based on the library name and the part name;
[0057] The input parameter names for the function getPropertyType include String PartName and List. <string>proList, a VBScript script is
[0058] w=Application.Manager.GetWorkspaceByIndex(0)
[0059] dim temp
[0060] item=w.GetItemByName(PartName.Trim())
[0061] SaveTextToFile"D: / ProtType.txt",temp
[0062] w.DeleteObject(PartName.Trim()) retrieves the port type;
[0063] The input parameter names for the function `placeMATLABPort` include `string mName` and `string[]PortName`, and the VBScript script is as follows:
[0064] w=Application.Manager.GetWorkspaceByIndex(0)
[0065] a=w.Designs.Design1.PartList.mName
[0066] `a.ParamSet.IOInfo.Set(paramList)` sets the input and output ports of a MATLAB component.
[0067] The input parameter names of the placeWire include string partLibraryName, string dimName, string CenterX, and string CenterY. The VBScript script is...
[0068] w=Application.Manager.GetWorkspaceByIndex(0)
[0069] w.Designs.Design1.Schematic.PlacePart partLibraryName,dimName,CenterX,CenterY,0,0 indicates the arrangement of lines;
[0070] The input parameters for the function `importSymbolFromLibrary` include `string libraryName` and `string partName`, and the VBScript script is as follows:
[0071] w=Application.Manager.GetWorkspaceByIndex(0)
[0072] w.ImportFromLibrary"Design",libraryName,partName indicates the insertion of a symbol;
[0073] The input parameter names for the function deleteSymbol include string partName, which is the VBScript script name.
[0074] w=Application.Manager.GetWorkspaceByIndex(0)
[0075] w.DeleteProperty("partName") means deleting the symbol;
[0076] The input parameter names of the function `placeWire` include `string wireName`, `string PartX`, `string PartY`, `string TargetPartX`, and `string TargetPartY`. The VBScript script is...
[0077] w=Application.Manager.GetWorkspaceByIndex(0)
[0078] w.Designs.Design1.Schematic.PlaceWire"wireName",PartX,PartY,TargetPartX,TargetPartY, indicates the wire arrangement;
[0079] The VBScript script for the function clearSche is as follows:
[0080] w=Application.Manager.GetWorkspaceByIndex(0)
[0081] w.Designs.Design1.Schematic.SelectAll
[0082] w.Designs.Design1.Schematic.DeleteSelection() means clearing the canvas.
[0083] Furthermore, the source code was compiled using the Visual Studio IDE development tool. The SystemVueCaller.exe program is developed in C#, and both development and compilation are performed using Visual Studio IDE. The specific execution process is as follows:
[0084] (1) Create a new project in the Visual Studio IDE, select Console Application as the project type, and C# as the project language;
[0085] (2) Configure project dependencies. Since this project needs to call the API of the SystemVue software, the dll dependency library provided by the SystemVue software needs to be added to the project dependencies.
[0086] (3) Write source code, write relevant business logic code, and then call the SystemVue software API to implement specific functions;
[0087] (4) Compile the source code. Here, the code is compiled using the compilation function built into the Visual Studio IDE.
[0088] (5) If compilation is successful, the SystemVueCaller.exe driver will be generated;
[0089] (6) If compilation fails, specific error messages will be displayed. Modify the source code and compile again until compilation is successful.
[0090] Furthermore, the SystemVueCaller.exe driver determines the validity of the called function and its parameters as follows: The third-party application passes the name of the called function and its parameters to the SystemVueCaller.exe program via command-line code. If the SystemVueCaller.exe program determines that the corresponding function and its parameters do not exist, it will throw an exception, indicating that the call is invalid.
[0091] Furthermore, the specific process of third-party applications indirectly integrating with SystemVue is as follows: Third-party applications need to integrate with SystemVue software by calling the SystemVueCaller.exe application. This is achieved through command-line code, and the specific steps are as follows:
[0092] Third-party applications call the SystemVueCaller.exe driver via command-line code. The SystemVueCaller.exe driver internally depends on the secondary development library of the SystemVue software. Within the driver, it calls the SystemVue software again through the secondary development API, thus enabling third-party applications to indirectly call the SystemVue software.
[0093] Beneficial effects:
[0094] This invention uses the C# language to call the functional functions provided by SystemVue, such as the default function API (Application.Manager.GetWorkspaceByIndex), and execute VBScript scripts. This implements a universal command-line driver that integrates with SystemVue software. This allows secondary developers to develop directly using the universal interface provided by the command-line driver, without having to deal with the complex and obscure VBScript syntax of SystemVue secondary development. It shields the technical details of SystemVue secondary development and reduces the learning cost.
[0095] Because the capabilities are provided through a command-line driver, different programming languages can directly call the command-line driver to integrate and schedule with SystemVue. This greatly reduces the development difficulty and cost caused by integrating and scheduling tool-side software developed in different programming languages with SystemVue. Attached Figure Description
[0096] Figure 1 This is a flowchart illustrating the process in this invention;
[0097] Figure 2 This is a schematic diagram of the SystemVueCaller.exe driver program developed in this invention;
[0098] Figure 3 This is a schematic diagram illustrating the compilation of the SystemVueCaller.exe driver in this invention;
[0099] Figure 4 This is a schematic diagram illustrating the invocation of the SystemVueCaller.exe driver in this invention. Detailed Implementation
[0100] The invention will now be described in further detail with reference to the accompanying drawings.
[0101] like Figure 1 As shown, the method for cross-language integration and scheduling with the EDA software SystemVue includes the following steps:
[0102] Step S1: Write the SystemVueCaller.exe driver, refer to... Figure 2 ,include:
[0103] Step S11: Write a SystemVueCaller.exe driver program using the C# language. Third-party applications can call the SystemVueCaller.exe program via the command line to indirectly integrate and schedule with the SystemVue software. The specific steps are as follows:
[0104] Obtain the input command line command and its parameters;
[0105] Determine whether the command and its input parameters are valid;
[0106] If the command and input parameters are valid, the specific function implementation interface will be invoked;
[0107] If the command or input parameters are invalid, the user will be prompted to re-enter them.
[0108] Step S12: Define the core function call interface and input parameters of the SystemVue software to be called, as shown in the table below:
[0109]
[0110]
[0111] Step S13: Call the core function interface of the SystemVue software using the VBScript scripting language, as shown in the table below:
[0112]
[0113]
[0114]
[0115] Step S14: If the call is successful, output the call result information; if the call fails, return to step S11. For example, if the call to the placeWire interface is successful, you can see that the connections in the view of the SystemVue software will be rearranged; if the call fails, an error will be reported.
[0116] Step S2: Compile the SystemVueCaller.exe driver source code to generate the SystemVueCaller.exe driver. (Refer to...) Figure 3 The specific steps are as follows:
[0117] Install the .NET Framework 4.0 runtime environment;
[0118] Install the Visual Studio IDE development tools;
[0119] Import the source code of SystemVueCaller.exe using the Visual Studio IDE development tool;
[0120] Compile the source code using the Visual Studio IDE development tool:
[0121] If the source code is compiled successfully, the SystemVueCaller.exe driver will be generated;
[0122] If compiling the source code fails, fix the compilation errors first until the source code compiles successfully.
[0123] Step S3: Call the SystemVueCaller.exe driver, refer to... Figure 4 :
[0124] Step S31: Implement program interfaces for various programming languages to call command-line programs, including Java, C++, and Python;
[0125] Step S32: Call SystemVueCaller.exe in the program interface, as shown in the table below:
[0126]
[0127]
[0128] Step S33: By calling the core function and input parameters of the SystemVueCaller.exe driver, the integration and scheduling with the SystemVue software is achieved.
[0129] Based on the above-described preferred embodiments of the present invention, and through the foregoing description, those skilled in the art can make various changes and modifications without departing from the inventive concept. The technical scope of this invention is not limited to the contents of the specification.< / string>
Claims
1. A method for cross-language integration and scheduling with EDA software SystemVue, characterized in that, include: Step S1: Write the SystemVueCaller.exe driver: Step S11: Write the SystemVueCaller.exe driver using C#: Using the Visual Studio programming tool, create a new SystemVueCaller project, import the SystemVue secondary development dll dependency library, write a C# program, call the secondary development programming API interface of the SystemVue software in the C# program, and write specific VBScript scripts in the corresponding interfaces to implement the specific logic of the driver. Step S12: Define the core function call interface and input parameters of the SystemVue software to be called. SystemVue software is an EDA software, and SystemVueCaller.exe is a driver program developed to call SystemVue software. The specific methods for calling the SystemVueCaller.exe driver and the SystemVue software are as follows: The SystemVue software provides a C# secondary development DLL dependency library. The SystemVueCaller.exe driver integrates with the SystemVue software by writing C# code and calling the relevant programming API interfaces in the SystemVue software DLL dependency library. Step S13: Call the core function call interface of SystemVue software through VBScript scripting language. SystemVue software provides a DLL dependency library, which provides a RunScript method. The input parameter of this method is a VBScript script string. The SystemVueCall.exe program calls this method, passing in a VBScript script string with business logic, to achieve integration with SystemVue software. Step S14: If the call is successful, output the call result information; If the call fails, return to step S11; Step S2: Compile the SystemVueCaller.exe driver source code to generate the SystemVueCaller.exe driver: Install the .NET Framework 4.0 runtime environment. Install the Visual Studio IDE development tools. Import the source code of the SystemVueCaller.exe driver using the Visual Studio IDE development tool. Compile the source code using the Visual Studio IDE development tool. If the source code compilation is successful, the SystemVueCaller.exe driver will be generated. If compiling the source code fails, fix the compilation errors first until the source code compiles successfully; Step S3: Call the SystemVueCaller.exe driver to achieve integrated scheduling with the SystemVue software: This involves calling the SystemVueCaller.exe driver, including: Step S31: Call the program interface of the command-line program. Step S32: Call the SystemVueCaller.exe driver in the program interface. Step S33: By calling the core function call of the SystemVueCaller.exe driver and its input parameters, the integration and scheduling with the SystemVue software is achieved.
2. The method for cross-language integration and scheduling with EDA software SystemVue according to claim 1, characterized in that, Step S11: A SystemVueCaller.exe driver is written in C#. Third-party applications call the SystemVueCaller.exe driver via command-line code, indirectly integrating and scheduling with SystemVue, including: This method retrieves the list of API functions and input parameters provided by the SystemVueCaller.exe driver. Third-party applications invoke the SystemVueCaller.exe driver via command-line code. In this case, the third-party application can view all the API functions provided by the SystemVueCaller.exe driver through the code and call the specific functions. The SystemVueCaller.exe driver checks whether the called function and its input parameters are valid. If the function and its input parameters are valid, the specific function implementation corresponding to the core function provided by the SystemVueCaller.exe driver will be called; If the function and its input parameters are invalid, the SystemVueCaller.exe driver will throw an exception indicating that the function does not exist or the parameters are invalid.
3. The method for cross-language integration and scheduling with EDA software SystemVue according to claim 1, characterized in that, The SystemVueCaller.exe driver described in step S12 provides core functions including RunScript, start, stop, getPartList, getPortList, getType, placePart, placeMATLABPort, placeWire, deletePartSymbol, importSymbolFromLibrary, clearSche, and save.
4. The method for cross-language integration and scheduling with EDA software SystemVue according to claim 1, characterized in that, Step S13: Calling the core function call interface of the SystemVue software through the VBScript scripting language, including: The functions include OpenWorkSpace, save, getPartList, getPropertyList, getPropertyType, placeMATLABPort, placeWire, importSymbolFromLibrary, deleteSymbol, placeWire, and clearSche. The input parameter names for the function `save` include `string filePath`; the input parameter names for the function `getPartList` include `string name`; the input parameter names for the function `getPropertyList` include `string libraryname` and `string PartName`; the input parameter names for the function `getPropertyType` include `String PartName` and `List<PartName>`. <string>proList; the input parameter names of the function placeMATLABPort include string mName and string[]PortName; the input parameter names of the function placeWire include string partLibraryName, string dimName, stringCenterX, and string CenterY; the input parameter names of the function importSymbolFromLibrary include string libraryName and string partName; the input parameter name of the function deleteSymbol includes string partName; the input parameter names of the function placeWire include string wireName, string PartX, string PartY, string TargetPartX, and string TargetPartY.< / string> 5. The method for cross-language integration and scheduling with EDA software SystemVue according to claim 1, characterized in that, The source code was compiled using the Visual Studio IDE development tool. The SystemVueCaller.exe program is developed in C#, and both development and compilation are performed using the Visual Studio IDE. The specific execution process is as follows: (1) Create a new project in the Visual Studio IDE, select Console Application as the project type, and C# as the project language; (2) Configure project dependencies. Since this project needs to call the API of the SystemVue software, the dll dependency library provided by the SystemVue software needs to be added to the project dependencies. (3) Write source code, write relevant business logic code, and then call the SystemVue software API to implement specific functions; (4) Compile the source code. Here, the code is compiled using the compilation function built into the Visual Studio IDE. (5) If compilation is successful, the SystemVueCaller.exe driver will be generated; (6) If compilation fails, specific error messages will be displayed. Modify the source code and compile again until compilation is successful.
6. The method for cross-language integration and scheduling with EDA software SystemVue according to claim 1, characterized in that, The SystemVueCaller.exe driver determines the validity of the called function and its parameters as follows: The third-party application passes the name of the called function and its parameters to the SystemVueCaller.exe program via command-line code. If the SystemVueCaller.exe program does not have a corresponding function and its parameters, it will throw an exception, indicating that the call is invalid.
7. The method for cross-language integration and scheduling with EDA software SystemVue according to claim 1, characterized in that, The specific process of third-party applications indirectly integrating with SystemVue is as follows: Third-party applications need to integrate with SystemVue software by calling the SystemVueCaller.exe application. This is achieved through command-line code, and the specific steps are as follows: Third-party applications call the SystemVueCaller.exe driver via command-line code. The SystemVueCaller.exe driver internally depends on the secondary development library of the SystemVue software. Within the driver, it calls the SystemVue software again through the secondary development API, thus enabling third-party applications to indirectly call the SystemVue software.
Citation Information
Patent Citations
Dynamic micro-service editing method, device and server for multi-language cloud compiling
CN106293704A
Secondary development method of cloud CAD platform based on B / S architecture
CN114564195A
