CN108829968A - Circuit diagram checking method based on Python spread function - Google Patents
Circuit diagram checking method based on Python spread function Download PDFInfo
- Publication number
- CN108829968A CN108829968A CN201810594068.5A CN201810594068A CN108829968A CN 108829968 A CN108829968 A CN 108829968A CN 201810594068 A CN201810594068 A CN 201810594068A CN 108829968 A CN108829968 A CN 108829968A
- Authority
- CN
- China
- Prior art keywords
- examination
- circuit diagram
- function
- information
- python
- 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.)
- Pending
Links
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/30—Circuit design
- G06F30/39—Circuit design at the physical level
Abstract
The invention discloses a kind of circuit diagram checking method based on Python spread function, mainly solve the problems, such as that the prior art will rely on eda tool in checking process and not can be carried out multiplicity examination.Implementation step is:The circuit diagram EDIF file according to derived from eda tool carries out data parsing, establishes the common data structure comprising unexamined circuit diagram all information;According to the common data structure built, case-based system class, attribute ergodic classes and intelligent examination report class these three types spread function are write;Determine examination demand, selection meets the examination script of examination demand from rule database;If not being able to satisfy the examination script of examination demand in rule database, examination script is write according to the three classes spread function of aforementioned generation;Examination report is obtained according to examining that script progress task examines.The present invention can be detached from eda tool independent operating, and the multiplicity for quickly carrying out complicated circuit figure examines, can be used for design of electronic circuits.
Description
Technical field
The invention belongs to EDA Technique fields, further relate to a kind of checking method of circuit diagram, can
Circuit diagram for generating to electronic design automation tool is detected and is corrected.
Background technique
With the development of computer science and electronics science, many feature-rich electronic design automation tools
It uses, the design efficiency of electronic system is made to be greatly improved.But to design object must be reached and stability is preferable
Design, design verification is wherein indispensable important link.Although there is integrated design verification inside many eda tools
Tool, but in the case where the background being gradually increased with design complexities is gradually shortened in the design cycle of product, the included design of eda tool
Verification tool is not well positioned to meet the demand of engineer.
Currently, on the market mainstream eda tool provide design and verification method be primarily present in use it is following
Problem:
1) many kinds of due to eda tool, and there is no compatibility well between each eda tool, this requires
User uses different eda tools for the design of different EDA, and this not only adds the workloads of engineer, and increase
The degree of difficulty of collaborative design.
2) the design verification function of eda tool does not have good scalability at present.Engineer in the design process may
Different examination demands can be proposed at any time, and current tool is not usually able to satisfy these demands.
3) eda tool can not inherit outstanding design experiences well at present.In some larger design team and enterprise
It is often internal to have many successfully design experiences to instruct subsequent design and verifying work in industry, but current tool is very
Difficulty meets this demand.
In view of the above-mentioned problems, there are mainly two types of existing solutions:If 1, a variety of EDA of design team and enterprise
Tool, then they develop corresponding design verification tool according to every kind of eda tool;2, it is developed accordingly for a kind of eda tool
Design verification tool, then then the data conversion of other eda tools is reused at the identifiable data of the eda tool
The design verification tool of exploitation works under its environment.
However, following deficiency is all individually present in both schemes.
The first solution is complexity height, and this complexity will not only will use three kinds of EDA works for user
Tool, but also it to be familiar with its corresponding design verification tool again, this virtually increases many burdens of engineer, and can produce
The problem of raw overlapping development.
Second of solution is the compatibling problem not solved fundamentally between various eda tools, which limits
The use scope of tool, and the examination verification process of the program can only be run under the EDA environment, significantly limit use
Flexibility.
Summary of the invention
It is an object of the invention to overcome the defect of the above-mentioned prior art, a kind of electricity based on Python spread function is proposed
Road figure checking method with effective solution overlapping development problem and reduces complexity of the engineer when carrying out examination task, mentions
The flexibility and efficiency that height examines.
Technical thought of the invention is:Data processing is done by the standard system file EDIF generated to each eda tool, is obtained
Obtain designed private data structures;According to the interface function of offer, is compiled by user demand and examine script or directly from number
It is downloaded according to library and examines script;It completes to examine by perform script, generates examination report.Implementation step includes as follows:
(1) user inputs position and the name information of unexamined electronic design interchange format EDIF file, obtains unexamined
EDIF circuit map file:
(2) EDIF circuit map file is parsed:
(2a) traverses the EDIF file in (1), is required according to keyword specified in EDIF standard, extracts in (1)
Meet the keyword message of the requirement in EDIF file;
(2b) is extracted (1) according to the keyword message acquired in (2a) according to grammar request specified in EDIF standard
Middle EDIF file meets the syntactic information of the requirement;
(2c) terminates fortune to not meeting keyword message specified in EDIF standard and syntactic information word reports an error
Row;
(3) according to the keyword message and syntactic information acquired in (2), common data structure is built:
(3a) classifies the keyword message extracted in (2) according to page, device, pin or network, and is filled out
It is charged in page corresponding with common data structure, device, pin or network class;
(3b) first judges keyword belonging to this syntactic information according to the syntactic information extracted in (2), then by this
Syntactic information is filled into the corresponding grammer section of common data structure;
(4) three classes Python spread function is constructed:
(4a) constructs case-based system class according to the information of page, device, pin and network in common data structure in (3)
Python spread function obtains circuit map sheet, device, pin and network;
(4b) constructs attribute ergodic classes Python spread function according to the grammer segment information in common data structure, obtains
The attribute information of page, device, pin and network in circuit diagram;
(4c) constructs intelligent examination report class Python spread function, generates the examination report of XML format according to the demand of examination
It accuses;
(5) database is inquired according to the demand of examination, it is determined whether need to carry out script edit:
(5a) clearly examines demand, and is examined according to examination demand from whether can satisfy this in rule database in inquiry
Look into the examination script of demand:If so, then jumping to (6a), otherwise, execute (5b);
The three classes Python extension that (5b) is provided according to (4), carries out script edit, and the script upload service that will be write
Device goes to step (6b);
(6) script is obtained, is examined:
(6a) is downloaded from rule database according to the examination demand in (5a) and is examined script, and the task of progress is examined
Circuit diagram is modified in report.
The script file that (6b) is uploaded according to (5b), the task that carries out examine acquisition examination report, modify circuit diagram.
The present invention has the following advantages that compared with prior art:
First, the present invention, can be regular for the customized examination of user by being supplied to a set of complete interface function of user,
Greatly improve ease for use and flexibility of the invention;The present invention is realized mostly real using computer multiple thread technology simultaneously
Example, multiway this examinations, utilize database technique user custom writing or call and examine regular function.
Second, since of the invention is originally inputted file as the standard system file of EDIF format, rather than each eda tool
In ifq circuit figure information, it is possible between each eda tool of very good solution compatibility problem.
Third, the present invention has carried out detailed classification to the Python spread function of offer, for being unfamiliar with programming language
Hardware Engineer for, the classification of Python spread function that they can provide according to the present invention is guided and very easy
Writing for a script is completed, the burden of engineer is greatly reduced.
4th, the present invention not only shields the otherness between each eda tool, but also can be detached from client independent operating,
I.e. the present invention can realize that cloud is run by computer technology and database technology, greatly improve operation stability and
Efficiency.
5th, the present invention passes through due to the provision of the intelligent examination report Python spread function that XML format can be generated
The intelligent management of user's examination result may be implemented in the use of the function, makes result is more clear to be presented on user
In front, examination efficiency is improved.
Detailed description of the invention
Fig. 1 is implementation flow chart of the invention.
Specific embodiment
The present invention will be further described with reference to the accompanying drawing.
Referring to Fig.1, specific implementation step of the invention is as follows.
Step 1. obtains unexamined electronic design interchange format EDIF file.
Unexamined electronic design interchange format EDIF file refers to:In each electronic design automation tool, user is true
The circuit map file for needing to examine calmly, for the circuit map file, user generates EDIF standard system text text by eda tool
Part.
Step 2. parses EDIF circuit map file.
The EDIF file content inputted in (2a) traversal step 1 is extracted according to keyword message specified in EDIF standard
Meet the keyword message of the standard in the EDIF file;
(2b) according to the keyword message extracted, according to grammar request specified in EDIF standard, extracting should
Syntactic information in EDIF file, and the keyword message and syntactic information that EDIF standard is not met in the EDIF file are carried out
Terminator is run after reporting an error.
Step 3. obtains common data structure.
(3a) classifies to the keyword message extracted in step (2a) according to page, device, pin or network, and will
It is filled into page corresponding with common data structure, device, pin or network class;
The affiliated keyword of syntactic information extracted in (3b) judgment step (2b), and the syntactic information is filled into public
In the corresponding grammer section of the corresponding keyword of data structure.
Step 4. constructs three classes Python spread function:
(4a) constructs example and obtains according to the information of page, device, pin and network in step (3a) in common data structure
Class Python spread function is taken, such function performance is:Obtain circuit map sheet, device, pin and network.Such Python extension
Function includes:Circuit diagram device information function is obtained, circuit diagram pin information function is obtained, obtains circuit diagram network information letter
Number obtains circuit diagram module information function, obtains circuit diagram paging information function;
(4b) constructs attribute ergodic classes Python and extends letter according to the syntactic information in step (3b) in common data structure
Number, such function performance are:Obtain the attribute information of page, device, pin and network in circuit diagram, such Python spread function
Including:Traverse circuit diagram device attribute function, traversal circuit diagram pin attribute function, traversal circuit diagram network attribute function;
(4c) constructs intelligent examination report and generates class Python spread function, such function performance is according to the demand of examination:
Generate the examination report of XML format;Such Python spread function includes:Report heading generating function and report subject content are raw
At function.
Step 5. is according to examination demand rule searching database, it is determined whether needs to carry out script edit.
(5a) constructs rule database:By existing examination script storage into rule database, establish examine script and
The one-to-one relationship of examination demand;
Whether (5b) is inquired from rule database according to examination demand the examination script that can satisfy the examination demand:
If so, then jumping to (6a), otherwise, execute (5c);
The three categories Python spread function that (5c) is provided according to (4) carries out script edit, and the script write is uploaded
Server goes to step (6b).
Step 6. obtains script, is examined.
(6a) is downloaded from rule database according to the examination demand in (5b) and is examined script, and the task of progress is examined
Circuit diagram is modified in report.
The script file that (6b) is uploaded according to (5c), the task that carries out examine acquisition examination report, modify circuit diagram.
Above description is only example of the present invention, does not constitute any limitation of the invention, it is clear that for
It, all may be without departing substantially from the principle of the invention, structure after having understood the content of present invention and principle for one of skill in the art
In the case where, carry out various modifications and change in form and details, but these modifications and variations based on inventive concept
Still within the scope of the claims of the present invention.
Claims (6)
1. a kind of circuit diagram checking method based on Python spread function, includes the following steps:
(1) user inputs position and the name information of unexamined electronic design interchange format EDIF file, obtains unexamined EDIF
Circuit map file:
(2) EDIF circuit map file is parsed:
(2a) traverses the EDIF file in (1), is required according to keyword specified in EDIF standard, extracts the EDIF text in (1)
Meet the keyword message of the requirement in part;
(2b) is extracted in (1) according to the keyword message acquired in (2a) according to grammar request specified in EDIF standard
EDIF file meets the syntactic information of the requirement;
(2c) terminates operation to not meeting keyword message specified in EDIF standard and syntactic information word reports an error;
(3) according to the keyword message and syntactic information acquired in (2), common data structure is built:
(3a) classifies the keyword message extracted in (2a) according to page, device, pin or network, and fills it into
In page corresponding with common data structure, device, pin or network class;
(3b) first judges keyword belonging to this syntactic information according to the syntactic information extracted in (2b), then by this language
Method information is filled into the corresponding grammer section of common data structure;
(4) three classes Python spread function is constructed:
(4a) constructs case-based system class according to the information of page, device, pin and network in common data structure in (3)
Python spread function obtains circuit map sheet, device, pin and network;
(4b) constructs attribute ergodic classes Python spread function according to the grammer segment information in common data structure, obtains circuit
The attribute information of page, device, pin and network in figure;
(4c) constructs intelligent examination report class Python spread function, generates the examination report of XML format according to the demand of examination;
(5) database is inquired according to the demand of examination, it is determined whether need to carry out script edit:
(5a) clearly examines demand, and whether can satisfy the examination need from inquiring in rule database according to examination demand
The examination script asked:If so, then jumping to (6a), otherwise, execute (5b);
The three categories Python spread function that (5b) is provided according to (4) carries out script edit, and the script upload service that will be write
Device goes to step (6b);
(6) script is obtained, is examined:
(6a) is downloaded from rule database according to the examination demand in (5a) and is examined script, and the task that carries out, which examines to obtain, examines report
It accuses, modifies circuit diagram.
The script file that (6b) is uploaded according to (5b), the task that carries out examine acquisition examination report, modify circuit diagram.
2. the method according to claim 1, wherein EDIF circuit map file described in step 1, refers to each
The standard text file for meeting electronic design interchange format EDIF standard of eda tool output.
3. the method according to claim 1, wherein the case-based system class Python in step (4a) extends letter
Number refers to acquisition circuit diagram essential information function, including:Circuit diagram device information function is obtained, circuit diagram pin information is obtained
Function obtains circuit diagram network information function, obtains circuit diagram module information function, obtains circuit diagram paging information function.
4. the method according to claim 1, wherein the attribute ergodic classes Python in step (4b) extends letter
Number refers to acquisition circuit diagram attribute information function, including:Circuit diagram device attribute function is traversed, circuit diagram pin attribute is traversed
Function traverses circuit diagram network attribute function.
5. the method according to claim 1, wherein the intelligent examination report in step (4c) generates class Python
Spread function refers to the examination report function of generative circuit figure comprising:Report heading generating function, report subject content are raw
At function.
6. the method according to claim 1, wherein the script edit in step (5b), refers to using step (4)
The three categories spread function of offer writes the examination demand being able to achieve in step (5a), and meets the script text of Python grammer
Part.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810594068.5A CN108829968A (en) | 2018-06-11 | 2018-06-11 | Circuit diagram checking method based on Python spread function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810594068.5A CN108829968A (en) | 2018-06-11 | 2018-06-11 | Circuit diagram checking method based on Python spread function |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108829968A true CN108829968A (en) | 2018-11-16 |
Family
ID=64144952
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810594068.5A Pending CN108829968A (en) | 2018-06-11 | 2018-06-11 | Circuit diagram checking method based on Python spread function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108829968A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109885902A (en) * | 2019-01-29 | 2019-06-14 | 华南理工大学 | A kind of EDA development platform and its application method based on Python |
CN115392160A (en) * | 2022-06-10 | 2022-11-25 | 无锡芯光互连技术研究院有限公司 | Format conversion method of circuit diagram description file |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1505270A (en) * | 2002-12-04 | 2004-06-16 | 华为技术有限公司 | A schematic diagram inspection method for hardware design |
US20050055649A1 (en) * | 2003-09-10 | 2005-03-10 | Lsi Logic Corporation | First time silicon and proto test cell notification |
US20140310670A1 (en) * | 2010-01-30 | 2014-10-16 | Synopsys, Inc. | Failure analysis and inline defect characterization |
-
2018
- 2018-06-11 CN CN201810594068.5A patent/CN108829968A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1505270A (en) * | 2002-12-04 | 2004-06-16 | 华为技术有限公司 | A schematic diagram inspection method for hardware design |
US20050055649A1 (en) * | 2003-09-10 | 2005-03-10 | Lsi Logic Corporation | First time silicon and proto test cell notification |
US20140310670A1 (en) * | 2010-01-30 | 2014-10-16 | Synopsys, Inc. | Failure analysis and inline defect characterization |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109885902A (en) * | 2019-01-29 | 2019-06-14 | 华南理工大学 | A kind of EDA development platform and its application method based on Python |
CN109885902B (en) * | 2019-01-29 | 2020-09-22 | 华南理工大学 | Python language-based EDA (electronic design automation) development platform system and using method thereof |
CN115392160A (en) * | 2022-06-10 | 2022-11-25 | 无锡芯光互连技术研究院有限公司 | Format conversion method of circuit diagram description file |
CN115392160B (en) * | 2022-06-10 | 2024-04-09 | 无锡芯光互连技术研究院有限公司 | Format conversion method for circuit diagram description file |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106991023B (en) | Interface parameter checking method and component | |
CN104866599B (en) | The production method and system of Visual Report Forms | |
CN107273117B (en) | Programming-friendly agile code automatic generation system | |
CN103092761B (en) | Method and device of recognizing and checking modifying code blocks based on difference information file | |
CN107291450B (en) | Programming-friendly agile code automatic generation method | |
US20040143819A1 (en) | Generic software testing system and mechanism | |
CN106649100A (en) | Automatic test method and system | |
CN104391934A (en) | Data calibration method and device | |
CN109522228B (en) | Interface automation test data construction method, device, platform and storage medium | |
CN104657274B (en) | software interface test method and device | |
CN111026670B (en) | Test case generation method, test case generation device and storage medium | |
CN109063362B (en) | Avionics software interface control file design management system | |
CN105117215A (en) | Development method and device of automobile function | |
CN110955410B (en) | Code automatic generation method, device, equipment and medium | |
CN108255702A (en) | A kind of test case creation method, apparatus, equipment and storage medium | |
CN111581920A (en) | Document conversion method, device, equipment and computer storage medium | |
CN113238740B (en) | Code generation method, code generation device, storage medium and electronic device | |
CN105786695A (en) | Data test method and system | |
CN107992306A (en) | A kind of avionics software interface realizes uniformity automatic check method | |
CN114090671A (en) | Data import method and device, electronic equipment and storage medium | |
CN108829968A (en) | Circuit diagram checking method based on Python spread function | |
CN106919374B (en) | Script generation method and device | |
CN103488477B (en) | The visual edit system of JAVA interface and visualizing editing method | |
CN113703739B (en) | Cross-language fusion calculation method, system and terminal based on omiga engine | |
CN105607957B (en) | A kind of data acquisition analysis system based on OPC DA |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20181116 |