CN116136952A - Simulation test method and device for components - Google Patents
Simulation test method and device for components Download PDFInfo
- Publication number
- CN116136952A CN116136952A CN202310163884.1A CN202310163884A CN116136952A CN 116136952 A CN116136952 A CN 116136952A CN 202310163884 A CN202310163884 A CN 202310163884A CN 116136952 A CN116136952 A CN 116136952A
- Authority
- CN
- China
- Prior art keywords
- component
- class
- simulation
- target
- target component
- 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.)
- Granted
Links
- 238000004088 simulation Methods 0.000 title claims abstract description 102
- 238000010998 test method Methods 0.000 title claims abstract description 15
- 238000004364 calculation method Methods 0.000 claims abstract description 62
- 238000012360 testing method Methods 0.000 claims abstract description 13
- 238000000034 method Methods 0.000 claims description 49
- 238000004590 computer program Methods 0.000 claims description 16
- 238000010586 diagram Methods 0.000 description 14
- 230000006870 function Effects 0.000 description 9
- 239000003990 capacitor Substances 0.000 description 8
- 230000006872 improvement Effects 0.000 description 8
- 230000008569 process Effects 0.000 description 7
- 238000012545 processing Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 238000012795 verification Methods 0.000 description 4
- 230000007246 mechanism Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000013178 mathematical model Methods 0.000 description 1
- 238000010297 mechanical methods and process Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 229920001296 polysiloxane Polymers 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 239000010979 ruby Substances 0.000 description 1
- 229910001750 ruby Inorganic materials 0.000 description 1
- 235000013599 spices Nutrition 0.000 description 1
- 230000003068 static 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/39—Circuit design at the physical level
- G06F30/398—Design verification or optimisation, e.g. using design rule check [DRC], layout versus schematics [LVS] or finite element methods [FEM]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/12—Geometric CAD characterised by design entry means specially adapted for CAD, e.g. graphical user interfaces [GUI] specially adapted for CAD
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2111/00—Details relating to CAD techniques
- G06F2111/20—Configuration CAD, e.g. designing by assembling or positioning modules selected from libraries of predesigned modules
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Geometry (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Architecture (AREA)
- Human Computer Interaction (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Design And Manufacture Of Integrated Circuits (AREA)
Abstract
The specification discloses a simulation test method and device for components, which can acquire simulation information, wherein the simulation information is used for representing the structure of an integrated device to be simulated, and then the components to be simulated in the integrated device can be determined as target components according to the simulation information. Then, executing a preset simulation program, matching the component class corresponding to the target component from a preset component class library according to a preset component matching rule through a matching command field contained in the simulation program, obtaining an instance corresponding to the target component according to the component class corresponding to the target component, calling a preset calculation method in the instance corresponding to at least one target component through a calling command field contained in the simulation program, and outputting the simulation calculation amount of at least one target component so as to realize simulation test on the integrated component, thereby improving the simulation efficiency of the integrated component.
Description
Technical Field
The present disclosure relates to the field of simulation technologies, and in particular, to a method and an apparatus for testing components.
Background
The simulation is a method for simulating actual physical behaviors through a mathematical model. The traditional verification circuit and mechanical method need to frequently change parameters of components and parts, and an actual module is built. The disadvantage of doing so has raised the verification cost and is more cumbersome. The appearance of the simulation software greatly improves the verification efficiency and reduces the verification cost, wherein the more well-known simulation software comprises spice, matlab, AMEsim and the like.
In the prior art, simulation of an integrated device (such as an integrated circuit, a semiconductor and the like) can be realized by writing a whole set of programs, and calculation logic related to all components in the integrated device is required to be written in the programs, however, in this way, the efficiency and the flexibility are low. If components are newly added for the integrated device which has been simulated, or computing logic related to the components is modified, the whole program needs to be modified. In practice, various kinds of semiconductors and integrated devices are difficult to avoid changing components, and if the program is frequently modified, problems are likely to occur.
Therefore, how to improve the efficiency of simulating the integrated device is a urgent problem to be solved.
Disclosure of Invention
The specification provides a simulation test method and device for components, so as to partially solve the problems existing in the prior art.
The technical scheme adopted in the specification is as follows:
the specification provides a simulation test method for components, comprising the following steps:
obtaining simulation information, wherein the simulation information is used for representing the structure of an integrated device to be simulated;
according to the simulation information, determining a component needing to be simulated in the integrated device as a target component;
executing a preset simulation program, and matching the component class corresponding to the target component from a preset component class library according to a preset component matching rule by a matching command field contained in the simulation program, wherein the component matching rule is used for representing the corresponding relation between the component and the component class;
obtaining an example corresponding to the target component according to the component class corresponding to the target component;
and calling a preset calculation method in an instance corresponding to at least one target component through a calling command field contained in the simulation program, and outputting the simulation calculation amount of the at least one target component so as to realize simulation test of the integrated component.
Optionally, obtaining the instance corresponding to the target component according to the component class corresponding to the target component specifically includes:
acquiring an instance of a component class corresponding to the target component from a thread management container;
if the instance of the component class corresponding to any component in the target component does not exist in the thread management container, generating the instance of the component class corresponding to any component based on Java reflection, and transmitting the generated instance corresponding to any component into the thread management container.
Optionally, the component class corresponding to each component inherits a general class, the general class is used for representing the general attribute of the component, the component class is a subclass of the general class, and the component class corresponding to each component is used for representing the unique calculation mode corresponding to the component.
Optionally, the component matching rule is represented by map type data: correspondence between components and component classes.
Optionally, calling a preset calculation method in an instance corresponding to at least one target component through a call command field included in the simulation program, and outputting simulation calculation amount of the at least one target component, which specifically includes:
for each target component, determining the required output quantity selected by a user for the target component;
and calling a preset calculation method aiming at the required output quantity of the target component to output the required output quantity.
Optionally, the component includes at least one of inductance, capacitance, resistance, and power supply.
The specification provides a simulation test device for components and parts, including:
the system comprises an acquisition module, a simulation module and a simulation module, wherein the acquisition module is used for acquiring simulation information, and the simulation information is used for representing the structure of an integrated device to be simulated;
the determining module is used for determining a component needing to be simulated in the integrated device according to the simulation information, and taking the component as a target component;
the matching module is used for executing a preset simulation program, and matching the component class corresponding to the target component from a preset component class library according to a preset component matching rule through a matching command field contained in the simulation program, wherein the component matching rule is used for representing the corresponding relation between the component and the component class;
the instance module is used for obtaining an instance corresponding to the target component according to the component class corresponding to the target component;
and the output module is used for calling a preset calculation method in an instance corresponding to at least one target component through a calling command field contained in the simulation program and outputting the simulation calculation amount of the at least one target component so as to realize the simulation test of the integrated component.
Optionally, the instance module is specifically configured to obtain an instance of a component class corresponding to the target component from a thread management container; if the instance of the component class corresponding to any component in the target component does not exist in the thread management container, generating the instance of the component class corresponding to any component based on Java reflection, and transmitting the generated instance corresponding to any component into the thread management container.
Optionally, the component class corresponding to each component inherits a general class, the general class is used for representing the general attribute of the component, the component class is a subclass of the general class, and the component class corresponding to each component is used for representing the unique calculation mode corresponding to the component.
Optionally, the component matching rule is represented by map type data: correspondence between components and component classes.
Optionally, the output module is specifically configured to determine, for each target component, a required output selected by a user for the target component; and calling a preset calculation method aiming at the required output quantity of the target component to output the required output quantity.
Optionally, the component includes at least one of inductance, capacitance, resistance, and power supply.
The present specification provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the above-described simulation test method for a component.
The present specification provides an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the above simulation test method for a component when executing the program.
The above-mentioned at least one technical scheme that this specification adopted can reach following beneficial effect:
from the above simulation test method for components, it can be seen that simulation information can be obtained, where the simulation information is used to represent the structure of an integrated device to be simulated, and then, according to the simulation information, the components to be simulated in the integrated device can be determined as target components. Then, executing a preset simulation program, matching the component class corresponding to the target component from a preset component class library according to a preset component matching rule through a matching command field contained in the simulation program, wherein the component matching rule is used for representing the corresponding relation between the component and the component class, obtaining an instance corresponding to the target component according to the component class corresponding to the target component, and calling a preset calculation method in the instance corresponding to at least one target component through a calling command field contained in the simulation program, and outputting simulation calculation amount of at least one target component so as to realize simulation test on the integrated component.
From the above, it can be seen that, according to the simulation test method for components provided in the present specification, a class of components corresponding to each component is pre-built, and the class of components is used as a class library of components, when a user needs to simulate an integrated device, the components included in the integrated device to be simulated can be determined according to the simulation information provided by the user, so that the required components are directly determined, and an instantiated class of components is obtained, and further, by invoking the required calculation method through the instantiated class of components, the required simulation calculation amount required by the user is obtained. Compared with the prior art, a whole set of program is required to be compiled for the integrated devices, the method can be used for compiling the component class corresponding to each component in advance and compiling the method required by calculating the simulation calculation amount of the component in the component class, so that if one integrated device is required to be newly added, only one component class is required to be newly added, if the calculation logic of the simulation calculation amount corresponding to the component is required to be modified, only the inside of the component is required to be modified, and the whole program is not required to be modified, thereby improving the efficiency of simulating the integrated device.
Drawings
The accompanying drawings, which are included to provide a further understanding of the specification, illustrate and explain the exemplary embodiments of the present specification and their description, are not intended to limit the specification unduly. In the drawings:
fig. 1 is a schematic flow chart of a simulation test method for a component provided in the present specification;
FIG. 2 is a schematic diagram of an emulated LC tank circuit provided herein;
FIG. 3 is a class diagram provided herein;
FIG. 4 is a schematic diagram of a simulation test apparatus for components provided in the present specification;
fig. 5 is a schematic view of the electronic device corresponding to fig. 1 provided in the present specification.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the present specification more apparent, the technical solutions of the present specification will be clearly and completely described below with reference to specific embodiments of the present specification and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present specification. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are intended to be within the scope of the present disclosure.
The following describes in detail the technical solutions provided by the embodiments of the present specification with reference to the accompanying drawings.
Fig. 1 is a flow chart of a simulation test method for a component provided in the present specification, specifically including the following steps:
s100: and obtaining simulation information, wherein the simulation information is used for representing the structure of the integrated device to be simulated.
S102: and determining the components which need to be simulated in the integrated device according to the simulation information as target components.
S104: executing a preset simulation program, and matching the component class corresponding to the target component from a preset component class library according to a preset component matching rule through a matching command field contained in the simulation program, wherein the component matching rule is used for representing the corresponding relation between the component and the component class.
In practical application, the integrated device can be simulated, the integrated device can be composed of components, the types of the components are not limited, and the components can comprise inductors, capacitors, resistors, power supplies and the like. For example, the integrated circuit can be simulated, and the simulation software is used for simulating the integrated circuit, so that a user can quickly determine the output quantities such as current, voltage and the like generated in the integrated circuit to be constructed.
In this specification, the server may obtain simulation information, where the simulation information is used to indicate a structure of an integrated device to be simulated, for example, an example may be provided in this specification as a simulated LC oscillating circuit, where a simulation duration may be 0.2S, and a step size may be 10us, as shown in fig. 2.
Fig. 2 is a schematic diagram of a simulated LC oscillating circuit provided in the present specification.
The simulation information may indicate which components are included in the integrated device and how the components are connected, and the simulation information may be netlist file information, which may specifically indicate what the user draws the structure of the integrated device.
The server can determine the components to be simulated in the integrated device according to the simulation information, and then execute a preset simulation program as a target component, and match the component class corresponding to the target component from a preset component class library according to a preset component matching rule through a matching command field contained in the simulation program, wherein the component matching rule is used for representing the corresponding relation between the component and the component class.
The above mentioned matching command field indicates that the program execution logic of the component class required for simulating the integrated device is determined according to the component matching rule, if the component is newly added, the program execution logic is unchanged, and the component class in the component class library and the component matching rule need to be newly added.
The above mentioned components may be java class corresponding to the components, where the java class is pre-programmed with the calculation method related to the components. It should be noted that, the component class corresponding to each component may inherit a general class, the general class is used for representing a general attribute of the component, the component class is a subclass of the general class, and the component class corresponding to each component is used for representing a unique calculation mode corresponding to the component.
In the above description, for convenience of description, the execution subject for executing the method will be described as a server, and in practical application, the execution subject for executing the method is not limited, and may be a server, a desktop computer, or other devices.
The component matching rule may be represented by map type data: correspondence between components and component classes.
In practice, after the server starts the system, the gateway factor may be initialized first, where the gateway factor may load all the subclasses class of the general class (class), that is, the class of the component corresponding to all the components, and put into the memory map whose key is class name (component type, which indicates that the component is capacitor, resistor, etc.), so as to load and obtain the component matching rule, that is, the map type data as the component matching rule needs to be preloaded, where the map data indicates the correspondence between the class of the component and the component.
That is, the target component included in the integrated device that the user needs to simulate is determined through the simulation information, so as to determine the component class corresponding to the target component.
S104: and obtaining an example corresponding to the target component according to the component class corresponding to the target component.
S106: and calling a preset calculation method in an instance corresponding to at least one target component through a calling command field contained in the simulation program, and outputting the simulation calculation amount of the at least one target component so as to realize simulation test of the integrated component.
After the component class of the target component is determined, corresponding examples of components in the integrated device to be simulated, namely, class examples of the component class of the target component, can be generated based on a Java reflection mechanism according to the component class classes.
It should be noted that, because the user can simulate the integrated device for multiple times by using the method, after the server generates an instance corresponding to a certain component through the Java reflection mechanism for the first time in the process of simulating the integrated device, the instance corresponding to the component can be cached (transferred into the thread management container), and if the instance corresponding to the component is required in next simulation of other integrated devices, the instance corresponding to the component can be directly obtained from the cache without being generated again through the Java reflection mechanism.
Therefore, after the component class of the target component is determined, an instance of the component class corresponding to the target component can be obtained from the thread management container.
If the thread management container does not have the instance of the component class corresponding to any component in the target components, the instance of the component class corresponding to any component can be generated based on Java reflection, and the generated instance corresponding to any component is transmitted into the thread management container.
After the instance corresponding to the target component is obtained, a preset calculation method in the instance corresponding to at least one target component can be called through a call command field contained in the simulation program, and the simulation calculation amount of the at least one target component is output, so that the simulation of the integrated component is realized. The call command field referred to herein may refer to a part of the simulation program for calling the instance corresponding to the target component.
The above indicates that the simulation calculation amount of at least one target component is output, because the user may not need the simulation calculation amount of all target components, and only the simulation calculation amount of the target component required by the user may be determined.
The preset calculation method in the example corresponding to the component is used for calculating the value of the simulation calculation amount (or referred to as the output amount, such as current, voltage, etc.) corresponding to the component.
It should be noted that, for a component, there may be multiple simulation calculation amounts corresponding to the component, and the user needs to determine only some simulation calculation amounts of all simulation calculation amounts corresponding to the component, so the user may choose the required simulation calculation amounts, and the server may also only calculate the simulation calculation amounts chosen by the user. And, the user can also select only part of the components and only look over the simulation calculated amount of part of the components.
That is, for each component in the target component, the required output quantity selected by the user for the target component can be determined; and calling a preset calculation method aiming at the required output quantity of the target component so as to output the required output quantity. Of course, if the user does not select any required output quantity for the target component, the calculation method related to the target component does not need to be invoked. The required output quantity selected by the user for the target component may refer to the required simulation calculation quantity selected by the user.
The classes involved in the method are described below in an exemplary form, as shown in fig. 3.
Fig. 3 is a class diagram provided in this specification.
As can be seen from fig. 3, the specific form of the above-mentioned general class can be:
the common father Category interface comprises:
the "gettest method: obtaining the result of the output quantity (namely, the simulation calculated quantity) operated in the solving process of the components;
getTitle method: acquiring the name of the output quantity corresponding to the hooked component;
name: acquiring the type name (such as resistance, capacitance and the like) of the component;
label: acquiring an example label of a component (for distinguishing different components under the same type of component); "
The general class may be inherited by the component class corresponding to each component, that is, there are multiple subclasses (i.e., C, L … component xxx and other component classes) below the Category class in fig. 3, where the subclasses are different component classes, and each component class includes a method for calculating an output of a component corresponding to the component class: the getResult, because the user can select the output quantity to be checked, the component class further includes a method for acquiring the output quantity to be checked selected by the user: getTitle.
The CategoryFactoy is a main program (simulation program) for performing simulation calculation, and the program needs to load component matching rules, so that a calculation method (getResult method) in a component class corresponding to any component can be invoked.
The program includes the matching command field and the calling command field mentioned above. From the above description and fig. 3, it can be seen that, since the component class, that is, the subclass of the generic class inherits the method defined in the generic class, the call command field is not required to be changed, the simulation program only needs to call the getResult method of the target component, so as to calculate the simulated calculation amount corresponding to the simulated target component, and call the getTitle method, so as to determine the simulated calculation amount to be calculated.
For the example in fig. 2, the parameters in the simulation schematic diagram (simulation information) at time T1 may be as follows:
in the method, the capacitor C can be matched with the JAVA class C, an instance C1 of the Java class C is generated in a reflecting mode, calculating logic of the instance C1 is called, the current passing through the capacitor needs to be calculated due to the fact that the user selects simulated calculated amount of current, getTitle returns to C1I out (the simulated calculated amount of current is selected by the user for the capacitor C1), and getRESULT returns to a capacitor current value 0.31773.
The inductor L is matched with the JAVA class L, an instance L1 of the JAVA class L is generated by reflection, the computation logic of the instance L1 is called, the current passing through the inductor needs to be computed because the user selects the simulated computation current, the getTitle returns to L1.Iout (the simulated computation that the user selects the current for the capacitor L1), and the getResult returns to the inductor current value 0.68826.
The element calculation at time T1 is as follows:
if a new component is required to be added for a certain integrated device, a component similar to the type of the new component can be determined, and the component class corresponding to the new component can be automatically generated according to the component class corresponding to the component similar to the type of the new component. Specifically, the component class corresponding to the component similar to the newly added component type can be modified according to the difference between the component similar to the newly added component type and the newly added component to obtain the component class corresponding to the newly added component. After the component class corresponding to the newly added component is obtained, the component class can be added into a component class library, and the simulation program is re-executed.
From the above, it can be seen that, according to the simulation test method for components provided in the present specification, the component class corresponding to each component can be pre-built, when a user needs to simulate an integrated device, the components included in the integrated device to be simulated can be determined according to the simulation information provided by the user, so that the required component class is directly determined, and an instantiated component class is obtained, and further, by invoking the required calculation method through the instantiated component class, the required simulation calculation amount is obtained.
Compared with the prior art, a whole set of program is required to be compiled for the integrated devices, the method can be used for compiling the component class corresponding to each component in advance, and the method for calculating the simulation calculation amount of the component is compiled in the component class, so that if one integrated device is required to be newly added, only one component class is required to be newly added, if the calculation logic of the simulation calculation amount corresponding to the component is required to be modified, only the inside of the component is required to be modified, and the simulation program is not required to be modified, thereby improving the efficiency of simulating the integrated devices, namely, the simulation program only calls the component class and does not relate to the specific calculation logic of the component class.
Fig. 4 is a schematic diagram of a simulation test device for a component provided in the present specification, including:
an obtaining module 401, configured to obtain simulation information, where the simulation information is used to represent a structure of an integrated device that needs to be simulated;
a determining module 402, configured to determine, according to the simulation information, a component that needs to be simulated in the integrated device, as a target component;
the matching module 403 is configured to execute a preset simulation program, and match, according to a preset component matching rule, a component class corresponding to the target component from a preset component class library by using a matching command field included in the simulation program, where the component matching rule is used to represent a correspondence between components and component classes;
an instance module 404, configured to obtain an instance corresponding to the target component according to a component class corresponding to the target component;
and the output module 405 is configured to invoke a preset calculation method in an instance corresponding to at least one target component through a call command field included in the simulation program, and output a simulation calculation amount of the at least one target component, so as to implement a simulation test for the integrated component.
Optionally, the instance module 404 is specifically configured to obtain, from a thread management container, an instance of a component class corresponding to the target component; if the instance of the component class corresponding to any component in the target component does not exist in the thread management container, generating the instance of the component class corresponding to any component based on Java reflection, and transmitting the generated instance corresponding to any component into the thread management container.
Optionally, the component class corresponding to each component inherits a general class, the general class is used for representing the general attribute of the component, the component class is a subclass of the general class, and the component class corresponding to each component is used for representing the unique calculation mode corresponding to the component.
Optionally, the component matching rule is represented by map type data: correspondence between components and component classes.
Optionally, the output module 405 is specifically configured to determine, for each target component, a required output selected by a user for the target component; and calling a preset calculation method aiming at the required output quantity of the target component to output the required output quantity.
Optionally, the component includes at least one of a capacitor, a resistor, and a power source.
The present specification also provides a computer-readable storage medium storing a computer program operable to execute the above simulation test method for a component.
The present specification also provides a schematic structural diagram of the electronic device shown in fig. 5. At the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile storage, as illustrated in fig. 5, although other hardware required by other services may be included. The processor reads the corresponding computer program from the nonvolatile memory to the memory and then runs the computer program to realize the simulation test method for the components.
Of course, other implementations, such as logic devices or combinations of hardware and software, are not excluded from the present description, that is, the execution subject of the following processing flows is not limited to each logic unit, but may be hardware or logic devices.
In the 90 s of the 20 th century, improvements to one technology could clearly be distinguished as improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) or software (improvements to the process flow). However, with the development of technology, many improvements of the current method flows can be regarded as direct improvements of hardware circuit structures. Designers almost always obtain corresponding hardware circuit structures by programming improved method flows into hardware circuits. Therefore, an improvement of a method flow cannot be said to be realized by a hardware entity module. For example, a programmable logic device (Programmable Logic Device, PLD) (e.g., field programmable gate array (Field Programmable Gate Array, FPGA)) is an integrated circuit whose logic function is determined by the programming of the device by a user. A designer programs to "integrate" a digital system onto a PLD without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, such programming is mostly implemented by using "logic compiler" software, which is similar to the software compiler used in program development and writing, and the original code before the compiling is also written in a specific programming language, which is called hardware description language (Hardware Description Language, HDL), but not just one of the hdds, but a plurality of kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), lava, lola, myHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog are currently most commonly used. It will also be apparent to those skilled in the art that a hardware circuit implementing the logic method flow can be readily obtained by merely slightly programming the method flow into an integrated circuit using several of the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers, and embedded microcontrollers, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic of the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller in a pure computer readable program code, it is well possible to implement the same functionality by logically programming the method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Such a controller may thus be regarded as a kind of hardware component, and means for performing various functions included therein may also be regarded as structures within the hardware component. Or even means for achieving the various functions may be regarded as either software modules implementing the methods or structures within hardware components.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each element may be implemented in one or more software and/or hardware elements when implemented in the present specification.
It will be appreciated by those skilled in the art that embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present description is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the specification. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
It will be appreciated by those skilled in the art that embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing is merely exemplary of the present disclosure and is not intended to limit the disclosure. Various modifications and alterations to this specification will become apparent to those skilled in the art. Any modifications, equivalent substitutions, improvements, or the like, which are within the spirit and principles of the present description, are intended to be included within the scope of the claims of the present description.
Claims (14)
1. A simulation test method for components is characterized by comprising the following steps:
obtaining simulation information, wherein the simulation information is used for representing the structure of an integrated device to be simulated;
according to the simulation information, determining a component needing to be simulated in the integrated device as a target component;
executing a preset simulation program, and matching the component class corresponding to the target component from a preset component class library according to a preset component matching rule through a matching command field contained in the simulation program, wherein the component matching rule is used for representing the corresponding relation between the component and the component class;
obtaining an example corresponding to the target component according to the component class corresponding to the target component;
and calling a preset calculation method in an instance corresponding to at least one target component through a calling command field contained in the simulation program, and outputting the simulation calculation amount of the at least one target component so as to realize simulation test of the integrated component.
2. The method of claim 1, wherein obtaining the instance corresponding to the target component according to the component class corresponding to the target component specifically includes:
acquiring an instance of a component class corresponding to the target component from a thread management container;
if the instance of the component class corresponding to any component in the target component does not exist in the thread management container, generating the instance of the component class corresponding to any component based on Java reflection, and transmitting the generated instance corresponding to any component into the thread management container.
3. The method of claim 1, wherein the class of components corresponding to each component inherits a generic class, the generic class being used to represent a generic attribute of the component, the class of components being a subclass of the generic class, each class of components corresponding to each component being used to represent a unique computing manner corresponding to that component.
4. The method of claim 1, wherein the component matching rule is represented by map-type data: correspondence between components and component classes.
5. The method of claim 1, wherein invoking the preset calculation method in the instance corresponding to the at least one target component through the invoking command field included in the simulation program, and outputting the simulation calculation amount of the at least one target component, specifically comprises:
for each target component, determining the required output quantity selected by a user for the target component;
and calling a preset calculation method aiming at the required output quantity of the target component to output the required output quantity.
6. The method of claim 1, wherein the component comprises at least one of an inductance, a capacitance, a resistance, and a power source.
7. A simulation test apparatus for a component, comprising:
the system comprises an acquisition module, a simulation module and a simulation module, wherein the acquisition module is used for acquiring simulation information, and the simulation information is used for representing the structure of an integrated device to be simulated;
the determining module is used for determining a component needing to be simulated in the integrated device according to the simulation information, and taking the component as a target component;
the matching module is used for executing a preset simulation program, and matching the component class corresponding to the target component from a preset component class library according to a preset component matching rule through a matching command field contained in the simulation program, wherein the component matching rule is used for representing the corresponding relation between the component and the component class;
the instance module is used for obtaining an instance corresponding to the target component according to the component class corresponding to the target component;
and the output module is used for calling a preset calculation method in an instance corresponding to at least one target component through a calling command field contained in the simulation program and outputting the simulation calculation amount of the at least one target component so as to realize the simulation test of the integrated component.
8. The apparatus of claim 7, wherein the instance module is specifically configured to obtain an instance of the component class corresponding to the target component from a thread management container; if the instance of the component class corresponding to any component in the target component does not exist in the thread management container, generating the instance of the component class corresponding to any component based on Java reflection, and transmitting the generated instance corresponding to any component into the thread management container.
9. The apparatus of claim 7, wherein a generic class is inherited by each component class corresponding to a component, the generic class being used to represent a generic attribute of the component, the component class being a subclass of the generic class, each component class corresponding to a component being used to represent a unique computing manner corresponding to the component.
10. The apparatus of claim 7, wherein the component matching rule is represented by map-type data: correspondence between components and component classes.
11. The apparatus of claim 7, wherein the output module is specifically configured to determine, for each target component, a required output selected by a user for the target component; and calling a preset calculation method aiming at the required output quantity of the target component to output the required output quantity.
12. The apparatus of claim 7, wherein the component comprises at least one of an inductance, a capacitance, a resistance, and a power source.
13. A computer-readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method of any of the preceding claims 1-6.
14. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of the preceding claims 1-6 when executing the program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310163884.1A CN116136952B (en) | 2023-02-09 | 2023-02-09 | Simulation test method and device for components |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310163884.1A CN116136952B (en) | 2023-02-09 | 2023-02-09 | Simulation test method and device for components |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116136952A true CN116136952A (en) | 2023-05-19 |
CN116136952B CN116136952B (en) | 2024-07-16 |
Family
ID=86332777
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310163884.1A Active CN116136952B (en) | 2023-02-09 | 2023-02-09 | Simulation test method and device for components |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116136952B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116894412A (en) * | 2023-07-20 | 2023-10-17 | 北京云枢创新软件技术有限公司 | On-demand loading method for constructing SystemVerilog object multilayer structure, electronic equipment and medium |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6560568B1 (en) * | 1999-04-12 | 2003-05-06 | Agere Systems, Inc. | Deriving statistical device models from electrical test data |
US20100042396A1 (en) * | 2008-08-14 | 2010-02-18 | International Business Machines Corporation | Automated Method for Validating Manufacturing Test Rules Pertaining to an Electronic Component |
KR20100102394A (en) * | 2009-03-11 | 2010-09-24 | 서울대학교산학협력단 | High density flash memory device, cell string and fabricating method thereof |
CN108241357A (en) * | 2017-10-18 | 2018-07-03 | 北京车和家信息技术有限公司 | Test environment model generating method, device, computer equipment and storage medium |
CN109446600A (en) * | 2018-10-12 | 2019-03-08 | 上海望友信息科技有限公司 | Generation method, system, computer storage medium and the equipment of 3D emulation data |
CN110941942A (en) * | 2019-11-29 | 2020-03-31 | 紫光展讯通信(惠州)有限公司 | Method, device and system for checking circuit schematic diagram |
CN111368443A (en) * | 2020-03-06 | 2020-07-03 | 北京旷视机器人技术有限公司 | Equipment simulation method and device and electronic equipment |
CN111597686A (en) * | 2020-04-15 | 2020-08-28 | 北京仿真中心 | Loosely-coupled visual simulation resource integration and encapsulation method and system |
CN111858544A (en) * | 2019-04-29 | 2020-10-30 | 北京振兴计量测试研究所 | Component information management system |
CN112487072A (en) * | 2020-11-24 | 2021-03-12 | 云汉芯城(上海)互联网科技股份有限公司 | Method, device, system and medium for standardizing parameter structure of electronic component |
CN112732585A (en) * | 2021-01-19 | 2021-04-30 | 北京三快在线科技有限公司 | Simulation test method and device |
CN113505556A (en) * | 2021-09-13 | 2021-10-15 | 苏州贝克微电子有限公司 | Visual computer-aided chip design and simulation verification method and system |
CN114840729A (en) * | 2022-01-14 | 2022-08-02 | 百芯智能制造科技(深圳)有限公司 | Method, system, equipment and storage medium for generating component classification test data |
CN115510667A (en) * | 2022-10-10 | 2022-12-23 | 中车株洲电机有限公司 | Overvoltage simulation method, device, equipment and medium |
-
2023
- 2023-02-09 CN CN202310163884.1A patent/CN116136952B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6560568B1 (en) * | 1999-04-12 | 2003-05-06 | Agere Systems, Inc. | Deriving statistical device models from electrical test data |
US20100042396A1 (en) * | 2008-08-14 | 2010-02-18 | International Business Machines Corporation | Automated Method for Validating Manufacturing Test Rules Pertaining to an Electronic Component |
KR20100102394A (en) * | 2009-03-11 | 2010-09-24 | 서울대학교산학협력단 | High density flash memory device, cell string and fabricating method thereof |
CN108241357A (en) * | 2017-10-18 | 2018-07-03 | 北京车和家信息技术有限公司 | Test environment model generating method, device, computer equipment and storage medium |
CN109446600A (en) * | 2018-10-12 | 2019-03-08 | 上海望友信息科技有限公司 | Generation method, system, computer storage medium and the equipment of 3D emulation data |
CN111858544A (en) * | 2019-04-29 | 2020-10-30 | 北京振兴计量测试研究所 | Component information management system |
CN110941942A (en) * | 2019-11-29 | 2020-03-31 | 紫光展讯通信(惠州)有限公司 | Method, device and system for checking circuit schematic diagram |
CN111368443A (en) * | 2020-03-06 | 2020-07-03 | 北京旷视机器人技术有限公司 | Equipment simulation method and device and electronic equipment |
CN111597686A (en) * | 2020-04-15 | 2020-08-28 | 北京仿真中心 | Loosely-coupled visual simulation resource integration and encapsulation method and system |
CN112487072A (en) * | 2020-11-24 | 2021-03-12 | 云汉芯城(上海)互联网科技股份有限公司 | Method, device, system and medium for standardizing parameter structure of electronic component |
CN112732585A (en) * | 2021-01-19 | 2021-04-30 | 北京三快在线科技有限公司 | Simulation test method and device |
CN113505556A (en) * | 2021-09-13 | 2021-10-15 | 苏州贝克微电子有限公司 | Visual computer-aided chip design and simulation verification method and system |
CN114840729A (en) * | 2022-01-14 | 2022-08-02 | 百芯智能制造科技(深圳)有限公司 | Method, system, equipment and storage medium for generating component classification test data |
CN115510667A (en) * | 2022-10-10 | 2022-12-23 | 中车株洲电机有限公司 | Overvoltage simulation method, device, equipment and medium |
Non-Patent Citations (9)
Title |
---|
ZHU XIAOCHUN, ZHOU BO, LI JUEFENG, GAO QIU: "A Test Automation Solution on GUI Functional Test", IEEE, 16 July 2008 (2008-07-16) * |
仝庆华;: "基于Proteus单片机虚拟实验室", 山西大同大学学报(自然科学版), no. 02, 28 April 2009 (2009-04-28) * |
周灵彬;张靖武;: "创建Proteus原理图仿真模型的制作技术", 现代电子技术, no. 08, 15 April 2008 (2008-04-15) * |
姜为学;程远增;李鸣;肖志伟;: "电子装备固有测试性分析系统设计", 弹箭与制导学报, no. 03, 15 June 2009 (2009-06-15) * |
彭华林, 欧青立, 李仁发: "虚拟现实技术在电子设计与测试中的应用", 湘潭矿业学院学报, no. 02, 30 June 1998 (1998-06-30) * |
郑丽香;杨培亮;聂国健;: "元器件信息平台建设与规范化处理技术研究", 电子质量, no. 06, 20 June 2008 (2008-06-20) * |
郭梁;马立元;郭利;年海涛;: "基于仿真的电子元器件故障模型研究", 工程设计学报, no. 02, 15 April 2008 (2008-04-15) * |
陈勇;张鹏南;任艳;戴泽林;: "用于PCB协同设计的电子元器件数据模板化研究", 电子产品可靠性与环境试验, no. 03, 20 June 2018 (2018-06-20) * |
高秋: "GMTAF测试自动化框架的设计与实现", 中国优秀硕士学位论文全文数据库(电子期刊), no. 02, 15 August 2007 (2007-08-15) * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116894412A (en) * | 2023-07-20 | 2023-10-17 | 北京云枢创新软件技术有限公司 | On-demand loading method for constructing SystemVerilog object multilayer structure, electronic equipment and medium |
CN116894412B (en) * | 2023-07-20 | 2024-02-20 | 北京云枢创新软件技术有限公司 | On-demand loading method for constructing SystemVerilog object multilayer structure, electronic equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN116136952B (en) | 2024-07-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110134668B (en) | Data migration method, device and equipment applied to blockchain | |
CN110032409B (en) | Client screen adapting method and device and electronic equipment | |
CN108549562A (en) | A kind of method and device of image load | |
CN116136952B (en) | Simulation test method and device for components | |
CN109062918A (en) | A kind of method and device of SQL statement conversion | |
CN114547024A (en) | SQL statement risk detection method, device, equipment and medium | |
CN117828360A (en) | Model training method, model training device, model code generating device, storage medium and storage medium | |
CN108255471A (en) | A kind of system configuration item configuration device based on configuration external member, method and apparatus | |
CN111338655A (en) | Installation package distribution method and system | |
CN110020004A (en) | A kind of method for computing data and engine | |
CN112732252B (en) | Method and device for dynamically generating UI and electronic equipment | |
CN116150563B (en) | Service execution method and device, storage medium and electronic equipment | |
CN116107636B (en) | Hardware acceleration method and device, storage medium and electronic equipment | |
CN117033527A (en) | Knowledge graph construction method and device, storage medium and electronic equipment | |
CN115017915B (en) | Model training and task execution method and device | |
CN117311856A (en) | Method and device for generating interface calling code | |
CN110704742B (en) | Feature extraction method and device | |
CN111967767A (en) | Business risk identification method, device, equipment and medium | |
CN118586342B (en) | Simulation circuit solving method and device, storage medium and electronic equipment | |
CN116109008B (en) | Method and device for executing service, storage medium and electronic equipment | |
CN114520770B (en) | Topology diagram generation method, device, equipment and medium of network equipment | |
CN112434486B (en) | Automatic paging method, device, equipment and medium for device in PCB design | |
CN118378006B (en) | Evaluation method, device and equipment of traceability data | |
CN117875413B (en) | Concept construction method, device, medium and equipment in knowledge graph ontology | |
CN117193786A (en) | Information processing method and device |
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 |