CN116644580B - Electronic product model design automation method, device, equipment and medium - Google Patents

Electronic product model design automation method, device, equipment and medium Download PDF

Info

Publication number
CN116644580B
CN116644580B CN202310618918.1A CN202310618918A CN116644580B CN 116644580 B CN116644580 B CN 116644580B CN 202310618918 A CN202310618918 A CN 202310618918A CN 116644580 B CN116644580 B CN 116644580B
Authority
CN
China
Prior art keywords
model
design file
model design
electronic product
abstract
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
Application number
CN202310618918.1A
Other languages
Chinese (zh)
Other versions
CN116644580A (en
Inventor
请求不公布姓名
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Yige Technology Co ltd
Original Assignee
Suzhou Yige Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Suzhou Yige Technology Co ltd filed Critical Suzhou Yige Technology Co ltd
Priority to CN202310618918.1A priority Critical patent/CN116644580B/en
Publication of CN116644580A publication Critical patent/CN116644580A/en
Application granted granted Critical
Publication of CN116644580B publication Critical patent/CN116644580B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses an electronic product model design automation method, a device, equipment and a medium, wherein the method comprises the following steps: obtaining a model design file of the electronic product, wherein the model design file is formed by writing a model design structure of the electronic product into a table according to a preset rule; the preset rule at least comprises a naming rule; the model design file is analyzed to automatically generate an abstract model corresponding to the model design file, wherein the abstract model is a model frame for constructing a simulation model of the electronic product.

Description

Electronic product model design automation method, device, equipment and medium
Technical Field
The invention relates to the technical field of model design automation, in particular to an electronic product model design automation method, an electronic product model design automation device, electronic product model design automation equipment and an electronic product model design automation medium.
Background
The design flow of the electronic product comprises a plurality of steps, firstly, the function of the electronic product which is explicitly designed is needed, the function is used as a target to carry out high-level planning, and high-level model simulation is established. And after the performance of the simulation model meets the requirements, carrying out specific design, debugging and verification according to the simulation model to obtain a design model of the electronic product, and finally converting the design model of the electronic product into a logic gate-level circuit and realizing the logic gate-level circuit in a physical layer.
However, in the current design flow of electronic products, models used in the different steps are all created by artificial programming of engineers. For the same model used in different steps, due to errors of codes or changes of model designs in a certain step, the same model may be inconsistent in different steps, which may result in a longer design and verification period of the electronic product, i.e. low design efficiency of the electronic product, and further slow updating speed of the electronic product.
Disclosure of Invention
In view of the above, the embodiments of the present invention provide an electronic product model design automation method, apparatus, device and medium, so as to solve the problem of low electronic product design efficiency caused by the fact that models used in various design steps of electronic products in the prior art need to be formed by manual programming.
According to a first aspect, an embodiment of the present invention provides an electronic product model design automation method, including:
obtaining a model design file of an electronic product; the model design file is formed by writing a model design structure of the electronic product into a table according to a preset rule; the preset rule at least comprises: naming rules;
analyzing the model design file to automatically generate an abstract model corresponding to the model design file; the abstract model is a model framework for constructing a simulation model of an electronic product.
In some embodiments, before parsing the model design file to automatically generate an abstract model corresponding to the model design file, the method comprises:
detecting whether the content of each table in the model design file accords with the naming rule;
under the condition that the table contents do not accord with the naming rules, file modification reminding information is sent out; the file modification reminding information is the reminding information for modifying the table contents which do not accord with the naming rule;
receiving a modified model design file, and re-executing the step of detecting whether each table content in the model design file accords with the naming rule;
and determining that the model design file is resolvable under the condition that each table content accords with the naming rule.
In some embodiments, the step of parsing the model design file to automatically generate an abstract model corresponding to the model design file includes:
generating an initial model corresponding to the model design file based on the model design file;
detecting whether a preset design problem exists in the initial model or not based on a preset script;
updating the initial model under the condition that the initial model has a preset design problem, so as to solve the preset design problem in the initial model, and determining the updated initial model as an abstract model of the electronic product;
based on the updated abstract model, synchronously changing a description part corresponding to the preset design problem in the model design file to form a new model design file;
and under the condition that the initial model does not have a preset design problem, determining the initial model as an abstract model of the electronic product.
In some embodiments, the model design file includes a headline and other lines in addition to the headline; each of the other rows is used to describe one module; the step of generating an initial model corresponding to the model design file based on the model design file includes:
analyzing the title line of the model design file based on the preset rule to determine the meaning of each column of information in the model design file;
analyzing other rows except the header row in the model design file based on the meaning of each column of information to at least determine module information of a plurality of modules; the module information at least comprises input signal information, output signal information and a module type module; the input signal information at least comprises a control signal type, input trend information and an input pin number; the output signal information at least comprises an output pin number and output trend information; the module type at least comprises a plurality of selectors, basic logic gates and registers, and dynamic and static adjustable attributes of each device;
and generating an initial model corresponding to the model design file based on the module information.
In some embodiments, after parsing the model design file to automatically generate an abstract model corresponding to the model design file, the method further comprises:
and executing model performance analysis processing based on the abstract model to determine a performance index value of the abstract model.
In some embodiments, after parsing the model design file to automatically generate an abstract model corresponding to the model design file, the method further comprises:
the abstract model is configured based on simulation parameters to obtain the corresponding simulation model.
In some embodiments, after parsing the model design file to automatically generate an abstract model corresponding to the model design file, the method further comprises:
and converting the abstract model into a model in a preset format so as to facilitate model simulation processing under different model formats.
According to a second aspect, an embodiment of the present invention provides an electronic product model design automation device, including:
the acquisition module is used for acquiring a model design file of the electronic product; the model design file is formed by writing a model design structure of the electronic product into a table according to a preset rule; the preset rule at least comprises: naming rules;
the automation module is used for analyzing the model design file to automatically generate an abstract model corresponding to the model design file; the abstract model is a model framework for constructing a simulation model of an electronic product.
According to a third aspect, an embodiment of the present invention provides a computer device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform steps of the electronic product model design automation method as in the first aspect.
According to a fourth aspect, an embodiment of the present invention provides a computer readable storage medium having stored thereon a computer program, characterized in that the computer program when executed by a processor implements the steps of the electronic product model design automation method as in the first aspect. The technical scheme of the invention has the following advantages:
the embodiment of the invention provides an electronic product model design automation method, which comprises the following steps: obtaining a model design file of the electronic product, wherein the model design file is formed by writing a model design structure of the electronic product into a table according to a preset rule; the model design file is analyzed to automatically generate an abstract model corresponding to the model design file, wherein the abstract model is a model framework for constructing a simulation model of the electronic product.
Drawings
For a clearer description of embodiments of the invention or of the solutions of the prior art, the drawings that are needed in the description of the embodiments or of the prior art will be briefly described, it being obvious that the drawings in the description below are some embodiments of the invention, and that, without the inventive effort, other drawings can be obtained from them to those skilled in the art:
fig. 1 is a flowchart of an electronic product model design automation method according to an embodiment of the present invention.
Fig. 2 is a flowchart of a method for automatically generating an abstract model according to an embodiment of the invention.
Fig. 3 is a flowchart of a method for automatically generating an initial model according to an embodiment of the present invention.
Fig. 4 is a flowchart of another electronic product model design automation method according to an embodiment of the present invention.
Fig. 5 is a schematic structural diagram of an electronic product model design automation device according to an embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
Fig. 1 is a flowchart of an electronic product model design automation method according to an embodiment of the present invention. As shown in fig. 1, the electronic product model design automation method includes the following steps: step S1-step S2.
Step S1, obtaining a model design file of the electronic product.
The model design file is formed by writing a model design structure of the electronic product into a table according to a preset rule.
The model design structure of the electronic product is a layout structure and a connection structure of each module (or element) in the electronic product.
The preset rule refers to a preset writing rule, and the preset rule comprises: necessary features, data formats, device names, naming rules, etc. The essential features are what has to be written when the model design structure of the electronic product is written into the form according to a preset rule, for example, the module type, the module output information, the module annotation information, etc. The data format refers to that the format of some specific data needs to meet the writing requirement, for example, for the module pin identification, the data format is an integer when writing into a table. Device names for example, the data names when writing the table are the existing device names: mux (multiple selector), LUT (truth table), AND (AND gate), etc. The naming convention is the naming format that each table content needs to satisfy, e.g., for the writing of signals, it is: the first part marks the direction, the second part marks the line length, the third part marks input and output, the fourth part is an integer not greater than 32; the first part respectively identifies the east, north, west and south directions through E, N, W, S, the second part respectively identifies the lengths 1, 2, 3, 4, 5 and 6 through LA, LB, LC, LD, LE, LF, the third part respectively identifies the output through Begin and the input through End.
A table refers to a file having a row-column relationship, for example, a table in excel software.
In one embodiment, during the design process of the electronic product, a designer writes a model design structure of the electronic product into a table according to a preset rule, generates a model design file, and stores the model design file in a preset storage location, for example, a storage location in a terminal or a storage location in a server. The model design file can accurately reflect the design intention of a designer.
In the embodiment of the invention, in any step of designing the electronic product, under the condition that the model design file of the electronic product is required to be used, the corresponding model design file can be acquired from the preset storage position.
And S2, analyzing the model design file to automatically generate an abstract model corresponding to the model design file.
The abstract model is a model framework for constructing a simulation model of the electronic product.
In the embodiment of the invention, the model design file can accurately reflect the design intention of a designer, so that the process of analyzing the model design file is the process of identifying the design intention through a program, and an abstract model corresponding to the model design file is automatically generated in the process, so that the text design can be accurately and effectively automatically converted into the abstract model.
The design flow of the electronic product comprises a plurality of steps, and models used in the different steps are all established by manual programming of engineers. For the same model used in different steps, the same model may be inconsistent in different steps due to errors in code or changes in model design in a certain step. In the embodiment of the invention, in each step of electronic product design, only the model design file acquired in advance is analyzed, so that an abstract model corresponding to the model design file can be automatically generated, the condition that the same model is inconsistent in each step caused by manual programming can be avoided, the design and verification period of the electronic product is shortened, the time required by the whole design flow of the electronic product is shortened, and the design efficiency of the electronic product is improved.
The embodiment of the invention provides an electronic product model design automation method, which comprises the following steps: obtaining a model design file of the electronic product, wherein the model design file is formed by writing a model design structure of the electronic product into a table according to a preset rule; the model design file is analyzed to automatically generate an abstract model corresponding to the model design file, wherein the abstract model is a model framework for constructing a simulation model of the electronic product.
In one embodiment, before parsing the model design file to automatically generate an abstract model corresponding to the model design file (step S2 above), the model design file needs to be detected in advance to determine whether the model design file is resolvable or not, so as to avoid an error in the parsing procedure. The step of detecting the model design file comprises the following steps of first to fourth.
Step one, detecting whether the contents of each table in the model design file accord with naming rules.
The naming convention may be referred to in the detailed description of the foregoing embodiments, and will not be described herein.
And step two, sending out file modification reminding information under the condition that the table contents do not accord with naming rules.
The file modification reminding information is the reminding information for modifying the table contents which do not accord with the naming rule.
In one embodiment, the file modification reminder may be displayed directly in the relevant page for the technician to modify the model design file and form a modified model design file.
And step three, receiving the modified model design file, and re-executing the step of detecting whether the contents of each table in the model design file accord with the naming rule.
In the embodiment of the invention, the step of detecting whether the contents of each table in the model design file accord with the naming rule is also executed on the modified model design file, so that the format accuracy of the model design file is improved.
And step four, under the condition that the contents of each table meet naming rules, determining that the model design file can be analyzed.
Under the condition that the contents of each table meet naming rules, the model design file is proved to meet the requirements, and the analysis processing can be directly carried out. Therefore, in the case that each table content conforms to the naming rule, the above-described step of parsing the model design file to automatically generate an abstract model corresponding to the model design file may be performed.
In the embodiment of the invention, the model design file is detected in advance before the model design file is analyzed so as to determine whether the model design file can be analyzed or not, and the modification reminding of the model design file is realized when the model design file cannot be analyzed, so that errors caused by an analysis program when the model design file is analyzed can be effectively avoided, and the efficiency of model design is improved.
Fig. 2 is a flowchart of a method for automatically generating an abstract model according to an embodiment of the invention. As shown in fig. 2, the step of parsing the model design file to automatically generate an abstract model corresponding to the model design file (step S2 described above) includes: step S21 to step S25.
Step S21, generating an initial model corresponding to the model design file based on the model design file.
Wherein the initial model is an undetected abstract model.
Step S22, detecting whether the initial model has a preset design problem or not based on a preset script.
The preset script is a program for detecting whether the initial model has a preset design problem. The preset script may be configured according to an actual application process, which is not limited in this embodiment.
The preset design problem refers to the problem that the signal transmission of each module in the initial model is inconsistent with the preset design.
For example, the fanout of all inputs of the converter may be listed internally, with possibly more fanouts after passing through the multiple selectors, and finally to the output port. In some embodiments, based on a preset script, it is determined whether the eastward signal has the capability of going all the way to the east or is able to turn north or south, if either capability is lacking, it is determined that the design corresponding to the eastward signal is inconsistent with the preset design, and there is a preset design problem.
In other embodiments, it is determined whether the eastward signal has westward capability based on a preset script. If the device has the westward walking capability, the design corresponding to the eastward walking signal is determined to be inconsistent with the preset design, and the preset design problem exists. Because such signaling wastes resources, it is a scenario that the designer wants to circumvent.
In practical applications, many basic devices in the design of electronic products are multiple selectors (mux). When the generated initial model has no signal connection, has a signal which does not accord with the naming rule, and has any one of the signals which does not accord with the naming rule and the signals which are simultaneously driven by the two devices, the initial model is determined to have the preset design problem.
Step S23, under the condition that the initial model has the preset design problem, updating the initial model to solve the preset design problem in the initial model, and determining the updated initial model as an abstract model of the electronic product.
Under the condition that the initial model has the preset design problem, the initial model is automatically updated with the aim of solving the preset design problem in the initial model, so that the updated initial model is not provided with the preset design problem any more, and the updated initial model is used as an abstract model of the electronic product.
Step S24, based on the updated abstract model, synchronously changing the description part corresponding to the preset design problem in the model design file to form a new model design file.
The new model design file is a model design file corresponding to the updated abstract model, that is, the updated abstract model can be obtained by analyzing the new model design file. Therefore, the original model design file is replaced by the new model design file, and if the abstract model is needed in the design flow of the electronic product, the new model design file can be analyzed to automatically generate the abstract model so as to keep the consistency of the abstract model used in each step of the design flow of the electronic product.
Step S25, determining the initial model as an abstract model of the electronic product under the condition that the initial model does not have a preset design problem.
In the embodiment of the invention, after the model design file is analyzed to automatically generate the initial model corresponding to the model design file, whether the initial model has the preset design problem is detected based on the preset script, so that the problem in the model design process can be found out in early design and correction processing can be timely carried out, the design and verification period of the electronic product can be accelerated, the time required by the overall design flow of the electronic product is shortened, and the design efficiency of the electronic product is effectively improved.
Fig. 3 is a flowchart of a method for automatically generating an initial model according to an embodiment of the present invention. As shown in fig. 3, the step of generating an initial model corresponding to the model design file based on the model design file (step S21 described above) includes: step S211 to step S213.
Step S211, analyzing the header line of the model design file based on a preset rule to determine the meaning of each column of information in the model design file.
Wherein the model design file includes a headline and other lines in addition to the headline.
The header row is a special row for indicating the meaning of column information of each column. The meaning of the column information indicates, for example, that the first column is input signal information, the second column is output signal information, the third column is a module type, and the fourth column is the number of control signals.
Each of the other rows is used to describe one module.
It should be noted that, in the embodiment of the present invention, the parsing process may be implemented by a pre-built parsing code frame, where the pre-built code frame has a function of parsing different model design files according to different preset rules.
Step S212, determining module information of a plurality of modules based on other rows except the header row in the meaning analysis model design file of each column of information.
The module information at least comprises input signal information, output signal information and module type.
In one embodiment, the input signal information includes at least a control signal type, input trend information, and an input pin number. The control signal type is, for example, one or both of a clock signal (Clk) and a reset signal (reset), and it is noted that the clock signal and the reset signal may coexist. The input trace information is information formed by adding a sequence number to the end (end) of the trace length (LA, LB, LC, LD, LE, LF) according to the trace (E, N, W, S) of the input signal, for example, slb_end_1,representing an input line (end) going south (S) and having a length of 2 (LB). The input pin number is an input pin number of each module or each device, for example, a plurality of input pin numbers of a plurality of selectors.
The output signal information includes at least an output pin number and output trend information, which is information formed by adding a sequence number to the beginning (Begin) of the length (LA, LB, LC, LD, LE, LF) of the trace according to the trend (E, N, W, S) of the input signal, for example, ela_begin_2 is an output line (Begin), and the length is 1 (LA) going to the east (E). The output pin number is an output pin number of each module or each device, for example, a plurality of output pin numbers of a plurality of selectors.
The module type at least comprises a plurality of selectors, basic logic gates and registers, and dynamic and static adjustable attributes of each device. The dynamic-static adjustable attribute refers to whether parameters of each device when not in operation (static) or in operation (dynamic) are adjustable, for example, the dynamically adjustable multiple selector and the dynamically non-adjustable multiple selector belong to multiple selectors of different types.
Step S213, generating an initial model corresponding to the model design file based on the module information.
Wherein the initial model comprises: a plurality of modules, sub-modules included in the plurality of modules, and connection relationships between the plurality of modules.
In the embodiment of the invention, the model design file is analyzed based on the preset rule to automatically generate the initial model corresponding to the model design file, so that the process of identifying the design intention through a program can be realized, and the text design can be accurately and effectively automatically converted into the initial model.
In one embodiment, after parsing the model design file to automatically generate an abstract model corresponding to the model design file, the electronic product model design automation method includes: a model performance analysis process is performed based on the abstract model to determine a performance metric value for the abstract model.
The model performance analysis process is a process for analyzing model performance of the abstract model. The performance index values include, but are not limited to, model power loss, area size, etc.
It should be noted that, because the abstract model is a model framework for constructing a simulation model of an electronic product, in the embodiment of the invention, model performance analysis processing is performed based on the abstract model to determine a performance index value of the abstract model, and the performance index value of the basic abstract model can be evaluated before the simulation model is constructed, so as to determine whether deviation occurs in a design direction according to the performance index value.
Fig. 4 is a flowchart of another electronic product model design automation method according to an embodiment of the present invention. As shown in fig. 4, after automatically generating the abstract model corresponding to the model design file, the electronic product model design automation method further includes the steps of: and S3, performing step S3.
And S3, configuring the abstract model based on the simulation parameters to obtain a corresponding simulation model.
Wherein the simulation parameters are model parameters for constructing a simulation model. Such as configuration address, operating delay of devices in each module, etc.
In the embodiment of the invention, different simulation models can be configured according to different simulation parameters so as to realize diversified simulation of the design of the electronic product and improve the design efficiency of the electronic product.
In one embodiment, after parsing the model design file to automatically generate an abstract model corresponding to the model design file, the electronic product model design automation method includes: and converting the abstract model into a model with a preset format so as to facilitate model simulation processing under different model formats.
The preset format is a model format under different simulation environments, for example verilog (a hardware description language type) or SystemC (a software and hardware co-design language type).
In one embodiment, where the abstract model is converted to a model in verilog format, the model representation in verilog format may be as follows:
wherein Module Hub () refers to a multiport repeater model; output refers to output; input refers to an input; mux8 is a multiple selector; drive refers to drive; the description of ela_begin_0 and the like can be found in the foregoing embodiments, and will not be repeated here.
In the embodiment of the invention, the abstract model is converted into the model with the preset format, so that model simulation processing is conveniently carried out under different model formats, the design and verification period of the electronic product can be accelerated, the time required by the whole design flow of the electronic product is shortened, and the design efficiency of the electronic product is improved.
Fig. 5 is a schematic structural diagram of an electronic product model design automation device according to an embodiment of the present invention. As shown in fig. 5, the apparatus includes: an acquisition module 51 and an automation module 52.
The obtaining module 51 is configured to obtain a model design file of the electronic product, where the model design file is a file formed by writing a model design structure of the electronic product into a table according to a preset rule.
An automation module 52 for parsing the model design file to automatically generate an abstract model corresponding to the model design file.
The abstract model is a model framework for constructing a simulation model of the electronic product.
In one embodiment, the electronic product model design automation device comprises a detection module, a reminding module and a control module.
The detection module is used for detecting whether the content of each table in the model design file accords with the naming rule.
And the reminding module is used for sending file modification reminding information under the condition that the table contents do not accord with the naming rules, wherein the file modification reminding information is the reminding information for modifying the table contents which do not accord with the naming rules.
And the control module is used for receiving the modified model design file and controlling the detection module to re-execute the step of detecting whether the contents of each table in the model design file accord with the naming rule.
The control module is further configured to determine that the model design file is resolvable when each table content accords with the naming rule.
In one embodiment, the automation module 52 includes a parsing sub-module, a detection sub-module, an update sub-module, and a decision sub-module.
The analysis sub-module is used for generating an initial model corresponding to the model design file based on the model design file.
And the detection sub-module is used for detecting whether the initial model has a preset design problem or not based on the preset script.
And the updating sub-module is used for updating the initial model under the condition that the initial model has the preset design problem so as to solve the preset design problem in the initial model.
And the decision sub-module is used for determining the updated initial model as an abstract model of the electronic product.
The updating sub-module is further configured to synchronously change a description portion corresponding to the preset design problem in the model design file based on the updated abstract model, so as to form a new model design file.
And the decision sub-module is also used for determining the initial model as the abstract model of the electronic product under the condition that the initial model does not have the preset design problem.
In one embodiment, the model design file includes a header line and other lines in addition to the header line, each of which is used to describe one module.
In one embodiment, the parsing sub-module includes a first parsing unit, a second parsing unit, and a generating unit. Wherein, first parsing unit is used for: and analyzing the header line of the model design file based on a preset rule to determine the meaning of each column of information in the model design file. A second parsing unit for parsing other rows except the header row in the model design file based on the meaning of each column of information to determine at least module information of a plurality of modules, the module information including at least input signal information, output signal information, and module type modules; and the third analysis unit is used for generating an initial model corresponding to the model design file based on the module information.
In one embodiment, the electronic product model design automation device further comprises: and a performance analysis module. The performance analysis module is used for executing model performance analysis processing based on the abstract model to determine performance index values of the abstract model.
In one embodiment, the electronic product model design automation device further comprises: and a simulation configuration module. The simulation configuration module is used for configuring the abstract model based on simulation parameters so as to obtain a corresponding simulation model.
In one embodiment, the electronic product model design automation device further comprises: and a model conversion module. The model conversion module is used for converting the abstract model into a model with preset rules so as to facilitate model simulation processing under different model formats.
The embodiment of the invention provides an electronic product model design automation device, which comprises: the electronic product model design module is used for obtaining a model design file of the electronic product, wherein the model design file is formed by writing a model design structure of the electronic product into a table according to a preset rule; the automatic module is used for analyzing the model design file to automatically generate an abstract model corresponding to the model design file, wherein the abstract model is a model frame for constructing a simulation model of the electronic product.
Fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present invention. As shown in fig. 6, the computer device may include a processor 601 and a memory 602, where the processor 601 and the memory 602 may be connected by a bus or otherwise, as exemplified by the bus connection in fig. 6.
The processor 601 may be a central processing unit (Central Processing Unit, CPU). The processor 601 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations thereof.
The memory 602, as a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to an electronic product model design automation method in an embodiment of the present invention. The processor 601 executes various functional applications and data processing of the processor by running non-transitory software programs, instructions, and modules stored in the memory 602, i.e., implementing the electronic product model design automation method in the method embodiments described above.
The memory 602 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for a function; the storage data area may store data created by the processor 601, etc. In addition, the memory 602 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 602 may optionally include memory located remotely from processor 601, such remote memory being connectable to processor 601 through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
One or more modules are stored in the memory 602 that, when executed by the processor 601, perform the electronic product model design automation method in the embodiment shown in fig. 1.
The details of the above computer device may be understood correspondingly with respect to the corresponding relevant descriptions and effects in the embodiment shown in fig. 1, which are not repeated here.
It will be appreciated by those skilled in the art that implementing all or part of the above-described embodiment method may be implemented by a computer program to instruct related hardware, where the program may be stored in a computer readable storage medium, and the program may include the above-described embodiment method when executed. Wherein the storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a Flash Memory (Flash Memory), a Hard Disk (HDD), or a Solid State Drive (SSD); the storage medium may also comprise a combination of memories of the kind described above. Although embodiments of the present invention have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the invention, and such modifications and variations are within the scope of the invention as defined by the appended claims.

Claims (7)

1. An electronic product model design automation method, the method comprising:
obtaining a model design file of an electronic product; the model design file is formed by writing a model design structure of the electronic product into a table according to a preset rule; the preset rules at least comprise naming rules;
analyzing the model design file to automatically generate an abstract model corresponding to the model design file; the abstract model is a model framework for constructing a simulation model of the electronic product;
before parsing the model design file to automatically generate an abstract model corresponding to the model design file, the method includes:
detecting whether the content of each table in the model design file accords with the naming rule;
under the condition that the table contents do not accord with the naming rules, file modification reminding information is sent out; the file modification reminding information is the reminding information for modifying the table contents which do not accord with the naming rule;
receiving a modified model design file, and re-executing the step of detecting whether each table content in the model design file accords with the naming rule;
under the condition that each table content accords with the naming rule, determining that the model design file is resolvable;
the step of parsing the model design file to automatically generate an abstract model corresponding to the model design file includes:
generating an initial model corresponding to the model design file based on the model design file;
detecting whether a preset design problem exists in the initial model or not based on a preset script;
updating the initial model under the condition that the initial model has a preset design problem, so as to solve the preset design problem in the initial model, and determining the updated initial model as an abstract model of the electronic product;
based on the updated abstract model, synchronously changing a description part corresponding to the preset design problem in the model design file to form a new model design file;
under the condition that the initial model does not have a preset design problem, determining the initial model as an abstract model of the electronic product;
the model design file comprises a title line and other lines except the title line; each of the other rows is used to describe one module; the step of generating an initial model corresponding to the model design file based on the model design file includes:
analyzing the title line of the model design file based on the preset rule to determine the meaning of each column of information in the model design file;
analyzing other rows except the header row in the model design file based on the meaning of each column of information to at least determine module information of a plurality of modules; the module information at least comprises input signal information, output signal information and a module type module; the input signal information at least comprises a control signal type, input trend information and an input pin number; the output signal information at least comprises an output pin number and output trend information; the module type at least comprises a plurality of selectors, basic logic gates and registers, and dynamic and static adjustable attributes of each device;
and generating an initial model corresponding to the model design file based on the module information.
2. The method of claim 1, wherein after parsing the model design file to automatically generate an abstract model corresponding to the model design file, the method further comprises:
and executing model performance analysis processing based on the abstract model to determine a performance index value of the abstract model.
3. The method of claim 1, wherein after parsing the model design file to automatically generate an abstract model corresponding to the model design file, the method further comprises:
the abstract model is configured based on simulation parameters to obtain the corresponding simulation model.
4. The method of claim 1, wherein after parsing the model design file to automatically generate an abstract model corresponding to the model design file, the method further comprises:
and converting the abstract model into a model in a preset format so as to facilitate model simulation processing under different model formats.
5. An electronic product model design automation device, the device comprising:
the acquisition module is used for acquiring a model design file of the electronic product; the model design file is formed by writing a model design structure of the electronic product into a table according to a preset rule; the preset rules at least comprise naming rules;
the automation module is used for analyzing the model design file to automatically generate an abstract model corresponding to the model design file; the abstract model is a model framework for constructing a simulation model of the electronic product;
the step of parsing the model design file to automatically generate an abstract model corresponding to the model design file includes:
generating an initial model corresponding to the model design file based on the model design file;
detecting whether a preset design problem exists in the initial model or not based on a preset script;
updating the initial model under the condition that the initial model has a preset design problem, so as to solve the preset design problem in the initial model, and determining the updated initial model as an abstract model of the electronic product;
based on the updated abstract model, synchronously changing a description part corresponding to the preset design problem in the model design file to form a new model design file;
under the condition that the initial model does not have a preset design problem, determining the initial model as an abstract model of the electronic product;
the model design file comprises a title line and other lines except the title line; each of the other rows is used to describe one module; the step of generating an initial model corresponding to the model design file based on the model design file includes:
analyzing the title line of the model design file based on the preset rule to determine the meaning of each column of information in the model design file;
analyzing other rows except the header row in the model design file based on the meaning of each column of information to at least determine module information of a plurality of modules; the module information at least comprises input signal information, output signal information and a module type module; the input signal information at least comprises a control signal type, input trend information and an input pin number; the output signal information at least comprises an output pin number and output trend information; the module type at least comprises a plurality of selectors, basic logic gates and registers, and dynamic and static adjustable attributes of each device;
and generating an initial model corresponding to the model design file based on the module information.
6. A computer device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the steps of the electronic product model design automation method of any one of claims 1-4.
7. A computer readable storage medium having stored thereon a computer program, which when executed by a processor, implements the steps of the electronic product model design automation method of any one of claims 1-4.
CN202310618918.1A 2023-05-29 2023-05-29 Electronic product model design automation method, device, equipment and medium Active CN116644580B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310618918.1A CN116644580B (en) 2023-05-29 2023-05-29 Electronic product model design automation method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310618918.1A CN116644580B (en) 2023-05-29 2023-05-29 Electronic product model design automation method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN116644580A CN116644580A (en) 2023-08-25
CN116644580B true CN116644580B (en) 2024-01-19

Family

ID=87618315

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310618918.1A Active CN116644580B (en) 2023-05-29 2023-05-29 Electronic product model design automation method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN116644580B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101339572A (en) * 2007-07-06 2009-01-07 英业达股份有限公司 Filename error checking system and method
CN107862103A (en) * 2017-09-20 2018-03-30 国家电网公司 A kind of simulation model generation method and system based on ADPSS
CN108280291A (en) * 2018-01-22 2018-07-13 湖南和信智仿信息科技有限公司 Reusable simulation model Interface design and interconnection method, device and computer equipment
CN112231928A (en) * 2020-11-02 2021-01-15 北京空间飞行器总体设计部 DEVS-based component agility simulation framework construction method
CN112801547A (en) * 2021-03-19 2021-05-14 杭州群核信息技术有限公司 Product model updating method and device and electronic equipment
CN113919138A (en) * 2021-09-15 2022-01-11 中国电子科技集团公司电子科学研究院 Simulation modeling method based on system design product and computer readable storage medium
CN114298008A (en) * 2021-12-14 2022-04-08 苏州瀚码智能技术有限公司 Method for uploading, analyzing and warehousing of Excel and CSV files to support custom table structure
WO2022110435A1 (en) * 2020-11-27 2022-06-02 中国电力科学研究院有限公司 Method, system and device for constructing power service simulation environment, and storage medium
CN114692383A (en) * 2021-11-16 2022-07-01 国家电投集团科学技术研究院有限公司 Modeling method and device for full-range analog machine simulation object and computer equipment
CN115756581A (en) * 2022-11-16 2023-03-07 中国联合网络通信集团有限公司 Script file generation method and device, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050071750A1 (en) * 2003-09-30 2005-03-31 Nelson Brent Dalmas Method and system for automated metamodel system file generation

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101339572A (en) * 2007-07-06 2009-01-07 英业达股份有限公司 Filename error checking system and method
CN107862103A (en) * 2017-09-20 2018-03-30 国家电网公司 A kind of simulation model generation method and system based on ADPSS
CN108280291A (en) * 2018-01-22 2018-07-13 湖南和信智仿信息科技有限公司 Reusable simulation model Interface design and interconnection method, device and computer equipment
CN112231928A (en) * 2020-11-02 2021-01-15 北京空间飞行器总体设计部 DEVS-based component agility simulation framework construction method
WO2022110435A1 (en) * 2020-11-27 2022-06-02 中国电力科学研究院有限公司 Method, system and device for constructing power service simulation environment, and storage medium
CN112801547A (en) * 2021-03-19 2021-05-14 杭州群核信息技术有限公司 Product model updating method and device and electronic equipment
CN113919138A (en) * 2021-09-15 2022-01-11 中国电子科技集团公司电子科学研究院 Simulation modeling method based on system design product and computer readable storage medium
CN114692383A (en) * 2021-11-16 2022-07-01 国家电投集团科学技术研究院有限公司 Modeling method and device for full-range analog machine simulation object and computer equipment
CN114298008A (en) * 2021-12-14 2022-04-08 苏州瀚码智能技术有限公司 Method for uploading, analyzing and warehousing of Excel and CSV files to support custom table structure
CN115756581A (en) * 2022-11-16 2023-03-07 中国联合网络通信集团有限公司 Script file generation method and device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种基于MDE的形式化组合建模仿真方法;吴狄;陈杰;Flavio Oquendo;;系统仿真学报(18);第5608-5613页 *

Also Published As

Publication number Publication date
CN116644580A (en) 2023-08-25

Similar Documents

Publication Publication Date Title
CN113255258B (en) Logic synthesis method and device, electronic equipment and storage medium
CN111767217B (en) JS unit test case generation method and device
CN114138244A (en) Method and device for automatically generating model files, storage medium and electronic equipment
CN111553120A (en) Method for generating SPICE netlist of digital circuit local clock network
CN111046624A (en) Method, device, equipment and medium for constructing chip module interface clock structure
US7966590B2 (en) Circuit design data conversion apparatus, circuit design data conversion method, and computer product
CN107844678B (en) Spice simulation method containing IP/Memory time sequence path
CN116644580B (en) Electronic product model design automation method, device, equipment and medium
US10430535B2 (en) Verification support program medium, verification support method, and information processing device for verification of a circuit
CN112631588A (en) File generation method and device, electronic equipment and computer readable medium
CN109324838B (en) Execution method and execution device of single chip microcomputer program and terminal
CN116720474A (en) Integrated circuit design method and integrated circuit simulation system
CN112749351A (en) Link address determination method, link address determination device, computer-readable storage medium and equipment
US10169508B2 (en) Efficient deployment of table lookup (TLU) in an enterprise-level scalable circuit simulation architecture
CN113822002B (en) Data processing method, device, computer equipment and storage medium
US20030084410A1 (en) SPICE to Verilog netlist translator
CN110874517A (en) Method for rapidly verifying connection correctness of FPGA (field programmable Gate array) interconnection line
CN115202756A (en) Vue-based component loading method and system and electronic equipment
CN106650033B (en) Process mapping method for input/output ports
CN114818595B (en) Chip module interface clock construction method and device, storage medium and electronic equipment
CN117574817B (en) Design automatic verification method, system and verification platform for self-adaptive time sequence change
US11836426B1 (en) Early detection of sequential access violations for high level synthesis
CN117787160B (en) Method and device for generating hardware description language of digital circuit
US20230214563A1 (en) Dynamic abstract generation and synthesis flow with area prediction
CN112257360B (en) Debugging method, device, debugging system and storage medium for data waveform

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