CN113033137B - Method and device for establishing digital component model and server - Google Patents
Method and device for establishing digital component model and server Download PDFInfo
- Publication number
- CN113033137B CN113033137B CN202110248751.5A CN202110248751A CN113033137B CN 113033137 B CN113033137 B CN 113033137B CN 202110248751 A CN202110248751 A CN 202110248751A CN 113033137 B CN113033137 B CN 113033137B
- Authority
- CN
- China
- Prior art keywords
- digital component
- target
- information
- file
- dynamic library
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 63
- 230000007704 transition Effects 0.000 claims description 14
- 238000004088 simulation Methods 0.000 claims description 10
- 230000001360 synchronised effect Effects 0.000 claims description 6
- 230000006870 function Effects 0.000 claims description 5
- 230000004044 response Effects 0.000 claims description 5
- 230000008569 process Effects 0.000 description 8
- 238000004891 communication Methods 0.000 description 4
- 230000006399 behavior Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 235000013599 spices Nutrition 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/30—Circuit design
- G06F30/36—Circuit design at the analogue level
- G06F30/367—Design verification, e.g. using simulation, simulation program with integrated circuit emphasis [SPICE], direct methods or relaxation methods
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Evolutionary Computation (AREA)
- Geometry (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a method, a device and a server for establishing a digital element model, which are used for responding to a loading request aiming at a target digital element and calling a target dynamic library file from a specified folder of the server; acquiring target digital component information from a target digital component model file by using a target dynamic library file; the target digital component information is in a text form; and establishing a target digital component model based on the target digital component information. In the method, a programmer only needs to write a dynamic library file in advance, and a user only needs to simply write text information of a corresponding digital component model when modeling is needed; and copying and matching the digital component model file and the corresponding dynamic library file, and then automatically generating the corresponding digital component model. The invention separates the programming from the modeling of the digital component, reduces the difficulty of establishing the digital component model, saves the labor and time cost and improves the experience of users.
Description
Technical Field
The invention relates to the technical field of digital component modeling, in particular to a method, a device and a server for establishing a digital component model.
Background
In the related art, SPICE (Simulation Program with Integrated Circuit emulator) Simulation software usually needs C language or C + + language to compile a digital component model to provide components required for Simulation; when an electronic engineer uses simulation software, if a new digital component model needs to be established, a programmer is needed to write the digital component model, and the establishment of the digital component model is completed; in the mode, programmers are required to work together with electronic engineers, the time cost and the labor cost are high, the modeling process is complex, the difficulty is high, and the experience of users is poor.
Disclosure of Invention
In view of this, the present invention provides a method, an apparatus, and a server for building a digital device model, so as to save labor and time costs, reduce difficulty in building the digital device model, and improve user experience.
In a first aspect, an embodiment of the present invention provides a method for establishing a digital device model, where the method is applied to a server; the appointed folder of the server contains various pre-written digital component model files; each digital component model file is provided with a corresponding dynamic library file which is written in advance; each dynamic library file is obtained by copying the same dynamic library file; the method comprises the following steps: in response to a loading request for a target digital component, calling a target dynamic library file from a designated folder; acquiring target digital component information from a target digital component model file by using a target dynamic library file; the target digital component information is in a text form; and establishing a target digital component model based on the target digital component information.
Further, the digital meta device model file is generated through a first specified tool in the front-end equipment; the first appointed tool is used for displaying a template page which is configured in advance on the front-end equipment; inputting digital component information through a template page; the template page comprises a plurality of designated positions, and each designated position comprises an information input identifier; each information input identification is used for indicating the input of corresponding digital element information; the digital meta device information includes: the name of the digital component, the name of the input pin, the name of the output pin and a logic truth table.
Further, the digital device information further includes: clock pin information, a synchronous sequential logic state transition table, an asynchronous sequential logic state transition table.
Further, the dynamic library file which is written in advance comprises a script file; the script file is determined according to information in a template page which is configured in advance; generating a dynamic library file which is compiled in advance through a second specified tool; the second designated tool is used for displaying a file editing page on the front-end equipment; and inputting the script file through the file editing page.
Further, the dynamic library file comprises a lexical analyzer; the method for acquiring the information of the target digital component from the model file of the target digital component by using the target dynamic library file comprises the following steps: acquiring a target digital component model file with the same name as the target dynamic library file from a specified folder by using the target dynamic library file; and reading the information of the target digital element device by using a lexical analyzer according to the information input identification in the model file of the target digital element device.
Further, after the step of establishing the target digital component model based on the target digital component information, the method further includes: and returning the target digital element model to the front-end equipment so that a circuit simulation platform of the front-end equipment displays the target digital element model and expresses the related functions of the target digital element model.
In a second aspect, an embodiment of the present invention provides a modeling apparatus for a digital device, where the apparatus is disposed in a server; the appointed folder of the server contains various pre-written digital component model files; each digital component model file is provided with a corresponding dynamic library file which is written in advance; each dynamic library file is obtained by copying the same dynamic library file; the device comprises: the file calling module is used for responding to a loading request aiming at the target digital component and calling the target dynamic library file; the information acquisition module is used for acquiring the information of the target digital element device from the model file of the target digital element device by utilizing the target dynamic library file; the target digital component information is in a text form; and the model establishing module is used for establishing a target digital component model based on the target digital component information.
The information acquisition module further includes: the file acquisition unit is used for acquiring a target digital component model file with the same name as the target dynamic library file from the specified folder by using the target dynamic library file; the information reading unit is used for reading the information of the target digital element device by utilizing the lexical analyzer according to the information input identification in the model file of the target digital element device; wherein the digital device information includes: the name of the digital component, the name of the input pin, the name of the output pin and a logic truth table.
In a third aspect, an embodiment of the present invention provides a server, including a processor and a memory, where the memory stores machine executable instructions capable of being executed by the processor, and the processor executes the machine executable instructions to implement the method for building a digital meta device model according to the first aspect.
In a fourth aspect, embodiments of the present invention provide a machine-readable storage medium storing machine-executable instructions, which when invoked and executed by a processor, cause the processor to implement the method for building a digital meta-device model of the first aspect.
The embodiment of the invention has the following beneficial effects:
the invention provides a method, a device and a server for establishing a digital element model, which are used for responding to a loading request aiming at a target digital element and calling a target dynamic library file from a specified folder of the server; acquiring target digital component information from a target digital component model file by using a target dynamic library file; the target digital component information is in a text form; and establishing a target digital component model based on the target digital component information. In the method, a programmer only needs to write a dynamic library file in advance, and a user only needs to simply write text information of a corresponding digital component model when modeling is needed; and copying and matching the digital component model file and the corresponding dynamic library file, and then automatically generating the corresponding digital component model. The invention separates the programming from the modeling of the digital component, reduces the difficulty of establishing the digital component model, saves the labor and time cost and improves the experience of users.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flowchart of a method for creating a digital device model according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for establishing a digital component model according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an apparatus for creating a digital device model according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, spice (simulation program with integrated circuit emulation) is the most popular circuit simulation program, and usually includes different versions of spice software such as Vspice, Hspice, Pspice, etc.; in the related art, SPICE simulation software needs to write a large number of digital components for simulation by using a C language or a C + + language, and an electronic engineer is generally not skilled in program writing and needs to write by a programmer skilled in program writing, but the programmer generally does not know circuits. Therefore, the digital element device modeling mode has higher time cost and labor cost, more complex modeling process, higher difficulty and poorer experience of users; in addition, it is difficult for users to add new digital devices themselves. Based on this, the method, the device and the server for establishing the digital component model provided by the embodiment of the invention can be applied to electronic equipment such as a server.
In order to facilitate understanding of the embodiment, a detailed description is first given of a method for establishing a digital device model disclosed in the embodiment of the present invention, where the method is applied to a server; the appointed folder of the server contains various pre-written digital component model files; each digital component model file is provided with a corresponding dynamic library file which is written in advance; each dynamic library file is obtained by copying the same dynamic library file; the dynamic library file needs to be written in advance by a programmer only once. When a user needs to establish a new digital meta model, a digital meta model file needs to be written in advance. The digital component model file is in a text form, and only the information of the digital component is described in the text form. After the compiling is finished, the digital component model files and the dynamic library files can be stored in a designated folder of the server, each digital component model file is provided with a corresponding dynamic library file which is compiled in advance, and the digital component model files and the dynamic library files can be obtained by copying the dynamic library which is compiled in advance.
As shown in fig. 1, the method comprises the steps of:
step S102, in response to a loading request aiming at a target digital component, calling a target dynamic library file from a specified folder;
the dynamic library file may be referred to as a dynamic link library. After the user writes the completed digital element model file, the user can click a loading control of a target digital element on the circuit simulation platform, a loading request of the target digital element is sent to the server, and the server responds to the loading request aiming at the target digital element and calls a target dynamic library file named as the target digital element in a specified folder.
Step S104, acquiring target digital component information from the target digital component model file by using the target dynamic library file; the target digital component information is in a text form;
the above target digital meta model file is usually saved in a text form, such as a txt format file; the content in the file is target digital component information and is described in a text form. The target digital component information typically includes information such as the name of the target digital component, the name of the input pins, the name of the output pins, and the logic truth table. Specifically, the target dynamic library file is utilized to obtain the target digital component information from the target digital component model file, and information such as the name of the target digital component, the name of the input pin, the name of the output pin, the logic truth table and the like is obtained.
And step S106, establishing a target digital component model based on the target digital component information.
Specifically, the target digital component information may be subjected to corresponding logical operations based on descriptions in the target digital component information according to a code program written in the dynamic library file, so that the target digital component model can express corresponding behaviors. For example, according to the level value of the input pin in the information of the target digital component, the level value result of the output pin of the target digital component can be obtained through corresponding logic operation, and then the output result of the target digital component is displayed on the circuit simulation platform.
The invention provides a method for establishing a digital element model, which is used for calling a target dynamic library file from a specified folder of a server in response to a loading request aiming at a target digital element; acquiring target digital component information from a target digital component model file by using a target dynamic library file; the target digital component information is in a text form; and establishing a target digital component model based on the target digital component information. In the method, a programmer only needs to write a dynamic library file in advance, and a user only needs to simply write text information of a corresponding digital component model when modeling is needed; and copying and matching the digital component model file and the corresponding dynamic library file, and then automatically generating the corresponding digital component model. The invention separates the programming from the modeling of the digital component, reduces the difficulty of establishing the digital component model, saves the labor and time cost and improves the experience of users.
In this embodiment, a generation process of a digital component model file is mainly described, where the digital component model file is generated by a first specific tool in a front-end device; the first appointed tool is used for displaying a template page which is configured in advance on the front-end equipment; inputting digital component information through a template page; the template page comprises a plurality of designated positions, and each designated position comprises an information input identifier; each information input identification is used for indicating the input of corresponding digital element information; the digital meta device information includes: the name of the digital component, the name of the input pin, the name of the output pin and a logic truth table.
The template page which is configured in advance is defined according to a digital component modeling text, wherein the first line of the page text starts with 'MODE _ NAME', a space is arranged behind the first line, the NAME of a digital component is named by lowercase letters, numbers and underlines, and a left brace is arranged behind the first line; starting with the second row, each row starts with "+", "+/" followed by a key, "+; "as annotated, truth table or state transition table content starts with +; the template page defines 7 keywords for representing seven parts in the model, and the keywords are easy to master and accept. The device comprises a name of a digital component, a name of an input pin, a name of an output pin and a logic truth table. The last of the text descriptions of the template page ends with a small right bracket. In addition, the logic truth table describes the level value of each output pin when each input pin is at a high level or a low level.
The contents in the template page are familiar to users (electronic engineers), are standard and concise, and can easily complete the modeling work of the digital components in the simulation software according to the specifications of the actual digital components. In actual implementation, a user only needs to open a template page, input specification information of a digital component to be modeled at a specified position, generate a digital component model file and store the digital component model file in a specified folder of a server. The modeling mode defines good modeling specifications, is easy to master by users, does not need compiling or other steps, is very convenient and is easy to operate by users.
The name of the digital component, the name of the input pin, the name of the output pin, and the logic truth table are information necessary for modeling the digital component, and the information of the digital component further includes: clock pin information, a synchronous sequential logic state transition table, an asynchronous sequential logic state transition table.
The clock pin description comprises a pin name, a trigger level, a state machine flag bit, a synchronous sequential logic truth table line number and an asynchronous sequential logic truth table line number; a synchronous sequential logic state transition table describes output state transitions caused by changes in input levels at non-clock input pins. An asynchronous sequential logic state transition table describes output state transitions caused by changes in the input level of a clock input pin. The three kinds of digital element information are non-essential items for establishing digital elements and can be input according to the requirements of users; it should be noted that, if the user does not need the three types of digital component information, the information input identifier at the position where the three types of digital component information are filled may be deleted.
In addition, a user can manufacture and define digital components by himself according to modeling specifications, and even can model digital components which do not exist in reality.
The dynamic library file which is written in advance comprises a script file; the script file is determined according to the information in the template page which is configured in advance; generating a dynamic library file which is compiled in advance through a second specified tool, wherein the second specified tool is used for displaying a file editing page on front-end equipment; the script file is entered via a file editing page.
Because the dynamic library file needs to read information in the digital meta-device model file, the description specification and the template of the digital meta-device model file need to be known first, and a code to be written needs to be determined according to information in a template page configured in advance, such as information of keywords, input information identifiers and the like of each row, so that the dynamic library file can read the digital meta-device information in the digital meta-device model file.
Specifically, the second specifying tool, such as a text editor, may be used to provide a file editing page for compiling a corresponding script file, and generate a dynamic library file from the compiled script file.
In the above manner, when an electronic engineer needs a new digital device in the process of using circuit simulation software, the electronic engineer can write a digital device text model at any time, and save a dynamic library file and a digital device model file which are written in advance to an appointed folder of a server, and when the digital device is loaded by the SPICE software, the dynamic library can read the corresponding digital device model to complete the addition of the digital device, and the compiling or other steps are not required, so that the electronic engineer is very convenient. The method saves the labor and time cost, reduces the difficulty of establishing the digital component model, and improves the experience of the user.
The embodiment is implemented on the basis of the above embodiment, and the dynamic library file includes a lexical analyzer; this embodiment focuses on a specific implementation process of the step of obtaining the target digital component information from the target digital component model file by using the target dynamic library file (implemented by steps S204-S206), and a specific implementation process of the step after the step of establishing the target digital component model based on the target digital component information (implemented by step S210); as shown in fig. 2, the method comprises the steps of:
step S202, in response to a loading request aiming at a target digital component, calling a target dynamic library file from a specified folder;
step S204, acquiring a target digital component model file with the same name as the target dynamic library file from the specified folder by using the target dynamic library file;
step S206, utilizing a lexical analyzer to input identification according to the information in the model file of the target digital component, and reading the information of the target digital component;
specifically, the position of the keyword may be obtained according to the information input identifier, the content of the digital component model text is read line by line according to the keyword, and information such as a component name, a pin name, a truth table, a state transition table, and the like is stored in software or a server.
And S208, establishing a target digital component model based on the target digital component information.
Further, after the step of establishing the target digital component model based on the target digital component information, the method further includes:
and step S210, returning the target digital element model to the front-end equipment so that a circuit simulation platform of the front-end equipment displays the target digital element model and expresses the related functions of the target digital element model.
When the dynamic library receives the calling of SPICE software, the digital element device information of a target digital element device model file is read, after a target digital element device model is established, the target digital element device model can be called and executed by simulation software, if the digital element device model is called and executed, the target digital element device model is returned to the front-end equipment, so that a circuit simulation platform of the front-end equipment displays the target digital element device model, and meanwhile, the logical operation result of the target digital element device model is returned, and corresponding behaviors are expressed according to a described logical truth table and the like. The digital component model can be easily added into simulation software, so that the digital component library is expanded.
The target digital device comprises at least one digital device. Specifically, a user can generate various digital component model files in batch, and a complex digital component is formed based on an addition request of various digital components.
The method separates the modeling of the digital component from the programming, establishes a digital component model by using a text mode, reads the model through a dynamic library, and finally calls the dynamic library by SPICE simulation software to complete the addition of the digital component and realize the circuit simulation. Compiling or other steps are not needed, and the method is very convenient. The method saves the labor and time cost, reduces the difficulty of establishing the digital component model, and improves the experience of the user.
In the above mode, a digital component model compiling specification is defined; a programmer writes a dynamic library file according to the specification, and the dynamic library can be copied and reused by a plurality of different names; when a user needs to perform modeling, only the text information of the corresponding digital component model needs to be simply written; and copying and matching the digital meta-device model file with the dynamic library file with the same name, and then automatically generating a corresponding digital meta-device model. The invention separates the programming and the modeling of the digital component, thereby reducing the difficulty of establishing the digital component model; only the text information of the digital component model is needed to be established during modeling, so that the labor and time cost is saved, and the experience of a user is improved.
Corresponding to the above method embodiment, the present embodiment provides an apparatus for creating a digital device, the apparatus is disposed in a server; the appointed folder of the server contains various pre-written digital component model files; each digital component model file is provided with a corresponding dynamic library file which is written in advance; each dynamic library file is obtained by copying the same dynamic library file; as shown in fig. 3, the apparatus includes:
the file calling module 31 is configured to respond to a loading request for a target digital component and call a target dynamic library file;
an information obtaining module 32, configured to obtain, by using the target dynamic library file, target digital component information from the target digital component model file; the target digital component information is in a text form;
and a model establishing module 33, configured to establish a target digital component model based on the target digital component information.
The invention provides a device for establishing a digital element model, which responds to a loading request aiming at a target digital element and calls a target dynamic library file from a specified folder of a server; acquiring target digital component information from a target digital component model file by using a target dynamic library file; the target digital component information is in a text form; and establishing a target digital component model based on the target digital component information. In the method, a digital component model compiling specification is defined; a programmer writes a dynamic library file according to the specification, and the dynamic library can be copied and reused by a plurality of different names; when a user needs to perform modeling, only the text information of the corresponding digital component model needs to be simply written; and copying and matching the digital meta-device model file with the dynamic library file with the same name, and then automatically generating a corresponding digital meta-device model. The invention separates the programming and the modeling of the digital component, thereby reducing the difficulty of establishing the digital component model; only the text information of the digital component model is needed to be established during modeling, so that the labor and time cost is saved, and the experience of a user is improved.
Further, the digital meta device model file is generated through a first specified tool in the front-end equipment; the first appointed tool is used for displaying a template page which is configured in advance on the front-end equipment; inputting digital component information through a template page; the template page comprises a plurality of designated positions, and each designated position comprises an information input identifier; each information input identification is used for indicating the input of corresponding digital element information; the digital meta device information includes: the name of the digital component, the name of the input pin, the name of the output pin and a logic truth table.
Further, the digital device information further includes: clock pin information, a synchronous sequential logic state transition table, an asynchronous sequential logic state transition table.
Further, the dynamic library file which is written in advance comprises a script file; the script file is determined according to information in a template page which is configured in advance; the dynamic library file which is written in advance is generated through a second specified tool, and the second specified tool is used for displaying a file editing page on front-end equipment; the script file is input through a file editing page.
Further, the dynamic library file comprises a lexical analyzer; the information acquisition module further includes: the file acquisition unit is used for acquiring a target digital component model file with the same name as the target dynamic library file from the specified folder by using the target dynamic library file; and the information reading unit is used for reading the information of the target digital element device by utilizing the lexical analyzer according to the information input identification in the model file of the target digital element device.
Further, the above apparatus is configured to: and returning the target digital element model to the front-end equipment so that a circuit simulation platform of the front-end equipment displays the target digital element model and expresses the related functions of the target digital element model.
The device for establishing the digital component model provided by the embodiment of the invention has the same technical characteristics as the method for establishing the digital component model provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
The embodiment also provides a server, which comprises a processor and a memory, wherein the memory stores machine executable instructions capable of being executed by the processor, and the processor executes the machine executable instructions to realize the method for establishing the digital meta-device model.
Referring to fig. 4, the server includes a processor 100 and a memory 101, where the memory 101 stores machine executable instructions capable of being executed by the processor 100, and the processor 100 executes the machine executable instructions to implement the above-mentioned method for building the digital meta device model.
Further, the server shown in fig. 4 further includes a bus 102 and a communication interface 103, and the processor 100, the communication interface 103 and the memory 101 are connected through the bus 102.
The Memory 101 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used. The bus 102 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 4, but that does not indicate only one bus or one type of bus.
The present embodiments also provide a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement the above-described method of building a digital meta-device model.
The method, apparatus, and computer program product for establishing a digital device model provided in the embodiments of the present invention include a computer-readable storage medium storing program codes, where instructions included in the program codes may be used to execute the method described in the foregoing method embodiments, and specific implementation may refer to the method embodiments, and will not be described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present invention can be understood in specific cases for those skilled in the art.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that the following embodiments are merely illustrative of the present invention, and not restrictive, and the scope of the present invention is not limited thereto: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (9)
1. A method for establishing a digital component model is characterized in that the method is applied to a server; the appointed folder of the server contains various pre-written digital component model files; each digital component model file is provided with a corresponding dynamic library file which is written in advance; each dynamic library file is obtained by copying the same dynamic library file; the method comprises the following steps:
in response to a loading request for a target digital component, calling a target dynamic library file from the specified folder;
acquiring target digital component information from a target digital component model file by using the target dynamic library file; the target digital component information is in a text form;
establishing a target digital device model based on the target digital device information;
the digital meta device model file is generated through a first specified tool in the front-end equipment;
the first appointed tool is used for displaying a template page which is configured in advance on the front-end equipment; the digital component information is input through the template page; the template page comprises a plurality of designated positions, and each designated position comprises an information input identifier; each information input identification is used for indicating and inputting corresponding digital element information;
the digital device information includes: the name of the digital component, the name of the input pin, the name of the output pin and a logic truth table.
2. The method of claim 1, wherein the digital component information further comprises: clock pin information, a synchronous sequential logic state transition table, an asynchronous sequential logic state transition table.
3. The method of claim 1, wherein the pre-compiled dynamic library file comprises a script file; the script file is determined according to the information in the template page which is configured in advance;
the dynamic library file which is written in advance is generated through a second appointed tool; the second specifying tool is used for displaying a file editing page on the front-end equipment; and the script file is input through the file editing page.
4. The method of claim 1, wherein the dynamic library file comprises a lexical analyzer; the step of obtaining the information of the target digital component from the model file of the target digital component by utilizing the target dynamic library file comprises the following steps:
acquiring a target digital component model file with the same name as the target dynamic library file from the specified folder by using the target dynamic library file;
and reading the information of the target digital component by using the lexical analyzer according to the information input identification in the model file of the target digital component.
5. The method of claim 1, wherein after the step of establishing a target digital component model based on the target digital component information, the method further comprises:
and returning the target digital component model to the front-end equipment so that a circuit simulation platform of the front-end equipment displays the target digital component model and expresses the related functions of the target digital component model.
6. The device for establishing the digital component model is characterized in that the device is arranged on a server; the appointed folder of the server contains various pre-written digital component model files; each digital component model file is provided with a corresponding dynamic library file which is written in advance; each dynamic library file is obtained by copying the same dynamic library file; the device comprises:
the file calling module is used for responding to a loading request aiming at the target digital component and calling the target dynamic library file;
the information acquisition module is used for acquiring the information of the target digital element device from the model file of the target digital element device by utilizing the target dynamic library file; the target digital component information is in a text form;
a model building module for building a target digital device model based on the target digital device information;
the digital meta device model file is generated through a first specified tool in the front-end equipment;
the first appointed tool is used for displaying a template page which is configured in advance on the front-end equipment; the digital component information is input through the template page; the template page comprises a plurality of designated positions, and each designated position comprises an information input identifier; each information input identification is used for indicating and inputting corresponding digital element information;
the digital device information includes: the name of the digital component, the name of the input pin, the name of the output pin and a logic truth table.
7. The apparatus of claim 6, wherein the information obtaining module further comprises:
the file acquisition unit is used for acquiring a target digital component model file with the same name as the target dynamic library file from the specified folder by using the target dynamic library file;
the information reading unit is used for reading the information of the target digital component by utilizing a lexical analyzer according to the information input identification in the target digital component model file; wherein, the digital component information includes: the name of the digital component, the name of the input pin, the name of the output pin and a logic truth table.
8. A server comprising a processor and a memory, said memory storing machine executable instructions executable by said processor, said processor executing said machine executable instructions to implement the method of building a model of digital devices of any of claims 1 to 5.
9. A machine-readable storage medium having stored thereon machine-executable instructions which, when invoked and executed by a processor, cause the processor to carry out the method of building a digital meta device model according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110248751.5A CN113033137B (en) | 2021-03-05 | 2021-03-05 | Method and device for establishing digital component model and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110248751.5A CN113033137B (en) | 2021-03-05 | 2021-03-05 | Method and device for establishing digital component model and server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113033137A CN113033137A (en) | 2021-06-25 |
CN113033137B true CN113033137B (en) | 2022-02-01 |
Family
ID=76466689
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110248751.5A Active CN113033137B (en) | 2021-03-05 | 2021-03-05 | Method and device for establishing digital component model and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113033137B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
NL2006577C2 (en) * | 2011-04-08 | 2012-10-09 | Imec | Time and workload dependent circuit simulation. |
CN103164545A (en) * | 2011-12-09 | 2013-06-19 | 北京邮电大学 | Visual editing method of virtual electronic components |
CN103336694A (en) * | 2013-07-08 | 2013-10-02 | 北京航空航天大学 | Entity behavioral modeling assembling method and system |
US10528688B1 (en) * | 2017-12-18 | 2020-01-07 | Cadence Design Systems, Inc. | System and method for schematic-driven generation of input/output models |
CN110888641A (en) * | 2019-11-15 | 2020-03-17 | 深圳市宏电技术股份有限公司 | Automatic script generation method and device, server and storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090327301A1 (en) * | 2008-06-26 | 2009-12-31 | Microsoft Corporation | Distributed Configuration Management Using Constitutional Documents |
US9582623B2 (en) * | 2014-02-12 | 2017-02-28 | Synopsys, Inc. | Dynamically loaded system-level simulation |
BR102018005101A2 (en) * | 2018-03-14 | 2019-10-01 | Samsung Eletrônica da Amazônia Ltda. | METHOD FOR MANAGING PROGRAMMABLE LOGIC CIRCUITS FOR APPLICATIONS INVOCATING DYNAMIC LIBRARIES |
-
2021
- 2021-03-05 CN CN202110248751.5A patent/CN113033137B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
NL2006577C2 (en) * | 2011-04-08 | 2012-10-09 | Imec | Time and workload dependent circuit simulation. |
CN103164545A (en) * | 2011-12-09 | 2013-06-19 | 北京邮电大学 | Visual editing method of virtual electronic components |
CN103336694A (en) * | 2013-07-08 | 2013-10-02 | 北京航空航天大学 | Entity behavioral modeling assembling method and system |
US10528688B1 (en) * | 2017-12-18 | 2020-01-07 | Cadence Design Systems, Inc. | System and method for schematic-driven generation of input/output models |
CN110888641A (en) * | 2019-11-15 | 2020-03-17 | 深圳市宏电技术股份有限公司 | Automatic script generation method and device, server and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113033137A (en) | 2021-06-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10437574B2 (en) | System and method for providing code completion features for code modules | |
US20060080603A1 (en) | Method and apparatus for utilizing an object model to manage document parts for use in an electronic document | |
CN114741070B (en) | Code generation method, device, electronic equipment and storage medium | |
CN110147402A (en) | Excel file introduction method and equipment, deriving method and equipment | |
CN107330014B (en) | Data table creating method and device | |
CN114610286A (en) | Method, device, computer equipment and storage medium for generating development documents | |
CN117453713A (en) | SQL sentence generation method, device and storage medium for multi-type database | |
CN116679912A (en) | Code generation method, apparatus, device, storage medium, and computer program | |
CN112685040B (en) | Method, device, equipment and storage medium for generating interface file in android system | |
CN113033137B (en) | Method and device for establishing digital component model and server | |
CN114297088A (en) | Test method, device, equipment and medium for front-end vue framework components | |
CN112328241B (en) | Method and device for creating Android library module dependency relationship in application program development | |
CN112052157A (en) | Test message construction method, device and system | |
CN111078529A (en) | Client write-in module testing method and device and electronic equipment | |
CN117667884A (en) | Data migration method, device, equipment and storage medium | |
CN115470152A (en) | Test code generation method, test code generation device, and storage medium | |
CN115438113A (en) | Parameter management method and device, electronic equipment and storage medium | |
CN118051209A (en) | Request parameter construction method, device, electronic device and storage medium | |
CN115509634A (en) | Input method configuration method, character input method, device and medium | |
CN110968342B (en) | Version comparison method, device and system | |
CN112306844B (en) | Interface test method, device and equipment of software development system and storage medium | |
CN112162743A (en) | Driver generation method, device, computer equipment and storage medium | |
CN117908955A (en) | Interface document generation method, device, computing equipment and storage medium | |
CN116483365A (en) | Front-end engineering construction method, device, equipment and storage medium | |
CN118312414A (en) | Chip automatic verification method, electronic equipment, storage medium and product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: Room A-1859, 2nd Floor, Building 3, No. 30 Shixing Street, Shijingshan District, Beijing, 100041 (Cluster Registration) Patentee after: Beijing Runneier Technology Co.,Ltd. Address before: 100088 No.131, 1st floor, building 4, No.44, Middle North Third Ring Road, Haidian District, Beijing Patentee before: BEIJING RAINIER NETWORK TECHNOLOGY Co.,Ltd. |
|
CP03 | Change of name, title or address |