CN111859826A - Method and tool for converting PROTEL netlist into ALLEGRO text - Google Patents

Method and tool for converting PROTEL netlist into ALLEGRO text Download PDF

Info

Publication number
CN111859826A
CN111859826A CN202010708747.8A CN202010708747A CN111859826A CN 111859826 A CN111859826 A CN 111859826A CN 202010708747 A CN202010708747 A CN 202010708747A CN 111859826 A CN111859826 A CN 111859826A
Authority
CN
China
Prior art keywords
netlist
text
allegro
file
converting
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
Application number
CN202010708747.8A
Other languages
Chinese (zh)
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.)
Edadoc Co ltd
Original Assignee
Edadoc 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 Edadoc Co ltd filed Critical Edadoc Co ltd
Priority to CN202010708747.8A priority Critical patent/CN111859826A/en
Publication of CN111859826A publication Critical patent/CN111859826A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/31Design entry, e.g. editors specifically adapted for circuit design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/39Circuit design at the physical level

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention relates to a method for converting a PROTECTL netlist into an ALLEGRO text, which comprises the following specific steps: 1) importing a PROTEL netlist file needing conversion; 2) identifying packaging information in the PROTEL netlist file, performing format conversion, and outputting to an ALLEGRO text; 3) identifying network connection information in the PROTEL netlist file, performing format conversion, and outputting to an ALLEGRO text; 4) completing conversion and outputting an ALLEGRO text file; in order to complete the method, the invention also provides a tool for realizing the method, and an interactive interface of the tool comprises a file selection button, a file path display frame and a conversion button. The invention realizes the interaction between different EDA software platforms by a self-made simple tool for converting the PROTEL netlist into the ALLEGRO text, and the tool has the advantages of simple use method, simple and convenient operation, easy grasp by engineering personnel and contribution to popularization and use.

Description

Method and tool for converting PROTEL netlist into ALLEGRO text
Technical Field
The invention relates to the field of file format conversion between software platforms, in particular to a method and a tool for converting a PROTEL netlist into an ALLEGRO text.
Background
As electronic products are developed, PCBs in electronic products are various, and there are several kinds of software for designing PCBs, and in the process of designing PCBs, engineers may use their own adept design software to improve design efficiency, so that different engineers use different design software, and the formats of generated PCB files may be different, and different design software is not universal, which may cause an obstruction to engineers in technical communication.
For example, two pieces of eda (electronic design automation) software, namely, PROTEL and alloroller, are commonly used, a netlist format file used by the PROTEL software cannot be used on the alloroller software, although information of both the PROTEL netlist file and the alloroller text format file includes package information and network connection information, the expression modes are different, for example, the package information of the PROTEL netlist file is enclosed by middle brackets, the network connection information is enclosed by small brackets, the package information of the alloroller text format file is preceded by an identifier "$ PACKAGES", and the network connection information is preceded by an identifier "$ NETS". If manual translation is adopted, the files used by the PROTEL software are re-compiled into the format used by the ALLEGRO software through reading and compiling, obviously, the speed is very slow, the efficiency is low, and errors are easy to occur.
The above problems are worth solving.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention provides a method and a tool for converting a PROTECTL netlist into an ALLEGRO text.
The technical scheme of the invention is as follows:
on one hand, the method for converting the PROTECTL netlist into the ALLEGRO text is characterized by comprising the following specific steps of:
1) importing a PROTEL netlist file needing conversion;
2) identifying packaging information in the PROTEL netlist file, performing format conversion, and outputting to an ALLEGRO text;
3) Identifying network connection information in the PROTEL netlist file, performing format conversion, and outputting to an ALLEGRO text;
4) and finishing the conversion and outputting the ALLEGRO text file.
The invention according to the above aspect is characterized in that the process of step 1) includes:
101) judging whether the imported PROTEL netlist file exists and is readable, if so, entering a step 102), and if not, waiting for file import;
102) reading PROTEL netlist file data;
the invention according to the above aspect is characterized in that the process of step 2) includes:
201) identifying an initial character "[" in the PROTEL netlist file, and initializing a packaging variable;
202) judging whether the information conversion is the first packaging information conversion, if so, outputting "$ PACKAGES" to an ALLEGRO text;
203) performing encapsulation information conversion;
204) and identifying a terminator "]" in the PROTEL netlist file, and completing the conversion of the packaging information.
The present invention according to the above aspect is characterized in that the process of step 203) includes:
2031) converting bit number information;
2032) converting the package name;
2033) and (4) converting the numerical value.
The invention according to the above aspect is characterized in that the process of step 3) includes:
301) identifying a start character "(" in the PROTEL netlist file, and initializing a network connection variable;
302) Judging whether the network connection information is converted for the first time, if so, outputting a "$ NETS" to an ALLEGRO text;
303) carrying out network connection information conversion;
304) a terminator in the PROTECTL netlist file is identified ")", network connection information conversion is completed.
The invention according to the above aspect is characterized in that the process of step 303) includes:
3031) converting the network name;
3032) and (4) conversion of pin connection information.
The invention according to the above aspect is characterized in that the process of step 4) includes:
401) repeating the step 2), and completing the conversion of the packaging information in the PROTEL netlist file;
402) repeating the step 3), and completing the network connection information conversion in the PROTEL netlist file;
403) and reading and converting the file data of the whole PROTEL netlist, and outputting "$ END" to the ALLEGRO text.
In another aspect, a tool for converting a PROTEL netlist into an alloegro text is provided, comprising an interactive interface and program modules for implementing the method of converting a PROTEL netlist into an alloegro text as claimed in any one of claims 1 to 7.
The invention according to the above aspect is characterized in that the program modules include a definition module, a netlist file importing module, a package information identifying module, a network connection information identifying module, a package information converting module, and a network connection information converting module, the definition module is used for defining the attribute of the variable as the basis of the tool operation, the netlist file import module is used for judging whether the imported file exists and is readable, and obtains the PROTECTL netlist file data, the package information identification module is used for identifying the start character and the end character of the package information in the PROTECTL netlist file, the network connection information identification module is used for identifying a start character and a stop character of the network connection information in the PROTEL netlist file, the encapsulation information conversion module is used for converting the bit number information, the encapsulation name and the numerical value in the encapsulation information, the network connection information conversion module is used for converting the network name and the pin connection information in the network connection information.
The invention according to the above scheme is characterized in that the interactive interface includes a file selection button, a file path display box and a conversion button, the file selection button is used for controlling the netlist file importing module, the file path display box is used for displaying the path of the selected PROTECTEL netlist file, and the conversion button is used for controlling the package information conversion module and the package information conversion module.
Furthermore, the interactive interface further comprises a package name plus quotation mark check box, a numerical value reservation check box and a network name plus quotation mark check box.
The invention according to the scheme has the advantages that:
according to the invention, through a self-made simple tool for converting the PROTEL netlist into the ALLEGRO text, the interaction among different EDA software platforms is realized, so that the requirement of a designer on selecting proper software to design a circuit board is met, and the design efficiency is further improved; the conversion tool has the advantages of simple use method, simple and convenient operation, easy grasp by engineering personnel and easy popularization and use.
Drawings
FIG. 1 is a schematic flow chart of the method of the present invention.
FIG. 2 is a schematic diagram of a tool interface according to the present invention.
FIG. 3 is a comparison of package information excerpted in the present invention before and after conversion.
Fig. 4 is a comparison of the network connection information before and after conversion as selected in the present invention.
Detailed Description
For better understanding of the objects, technical solutions and effects of the present invention, the present invention will be further explained with reference to the accompanying drawings and examples. Meanwhile, the following described examples are only for explaining the present invention, and are not intended to limit the present invention.
As shown in fig. 1, the method for converting the PROTEL netlist into alloegro text is characterized by comprising the following specific steps,
1) importing a PROTEL netlist file needing conversion, which comprises the following steps:
101) judging whether the imported PROTEL netlist file exists and is readable, if so, entering a step 102), otherwise, waiting for file import and judging again;
102) and reading the PROTEL netlist file data.
2) Identifying the packaging information in the PROTECTL netlist file, performing format conversion, and outputting to an ALLEGRO text, wherein the steps of:
201) identifying an initial character "[" in the PROTEL netlist file, and initializing a packaging variable;
202) judging whether the information conversion is the first packaging information conversion, if so, outputting "$ PACKAGES" to an ALLEGRO text;
203) performing encapsulation information conversion, including: 2031) converting bit number information; 2032) converting the package name; 2033) converting numerical values;
204) And identifying a terminator "]" in the PROTEL netlist file, and completing the conversion of the packaging information.
3) Identifying network connection information in the PROTEL netlist file, performing format conversion, and outputting to an ALLEGRO text, wherein the method comprises the following steps:
301) identifying a start character "(" in the PROTEL netlist file, and initializing a network connection variable;
302) judging whether the network connection information is converted for the first time, if so, outputting a "$ NETS" to an ALLEGRO text;
303) performing network connection information conversion, including: 3031) converting the network name; 3032) conversion of pin connection information;
304) a terminator in the PROTECTL netlist file is identified ")", network connection information conversion is completed.
4) Completing conversion and outputting an ALLEGRO text file, comprising the following steps:
401) repeating the step 2), and completing the conversion of the packaging information in the PROTEL netlist file;
402) repeating the step 3), and completing the network connection information conversion in the PROTEL netlist file;
403) and reading and converting the file data of the whole PROTEL netlist, and outputting "$ END" to the ALLEGRO text.
In this embodiment, step 4) is to repeat step 2) first and then repeat step 3), but other embodiments may repeat step 3) first, or step 2) and step 3) are alternately completed.
To implement the above method, the present implementation adopts the following codes, including:
firstly, the definition of a variable is completed and used as the basis of operation.
Figure BDA0002595756850000051
Figure BDA0002595756850000061
And II, finishing the recognition of the packaging information in the PROTEL netlist file, performing format conversion and outputting the packaging information to an ALLEGRO text.
Figure BDA0002595756850000062
Figure BDA0002595756850000071
And thirdly, identifying the network connection information in the PROTEL netlist file, performing format conversion and outputting the information to the ALLEGRO text.
Figure BDA0002595756850000072
Figure BDA0002595756850000081
Figure BDA0002595756850000091
Fourthly, completing conversion and outputting ALLEGRO text file
Figure BDA0002595756850000092
In summary, the present invention provides a tool for converting a PROTECTL netlist into an ALLEGRO text, which comprises an interactive interface and a program module for implementing the method for converting a PROTECTL netlist into an ALLEGRO text, wherein the program module comprises a definition module, a netlist file importing module, a package information identification module, a network connection information identification module, a package information conversion module and a network connection information conversion module,
the definition module is used for defining the attribute of the variable as the basis of the tool operation,
the netlist file import module is used for judging whether the imported file exists and is readable, acquiring PROTEL netlist file data,
the package information identification module is used for identifying a start character and an end character of the package information in the PROTECTL netlist file,
The network connection information identification module is used for identifying the start character and the end character of the network connection information in the PROTECTL netlist file,
the encapsulation information conversion module is used for converting the bit number information, the encapsulation name and the numerical value in the encapsulation information,
the network connection information conversion module is used for converting the network name and the pin connection information in the network connection information.
As shown in fig. 2, the interactive interface includes a file selection button, a file path display box, and a conversion button, where the file selection button is used to control the netlist file importing module, the file path display box is used to display the path of the selected PROTEL netlist file, and the conversion button is used to control the package information conversion module and the package information conversion module.
The PROTECTL netlist file sometimes outputs some special characters, such as "#% @", when the ALLEGRO is imported, the characters cannot be recognized, and the part needs to be expanded by quotation marks to be explained as a complete character string. Therefore, the interactive interface further comprises a package name plus quotation mark checking frame, a network name plus quotation mark checking frame and a numerical value retention checking frame, wherein the package name plus quotation mark checking frame is checked, so that the converted package name and DEVICE part are added with single quotation marks, the network name plus quotation mark checking frame is checked, the network name is added with the single quotation marks, and the problem that the ALLEGRO file cannot identify illegal characters such as #,%, @ and the like is solved; and checking a value retention check frame to realize that the value of the element parameter is transmitted to the ALLEGRO file.
As shown in fig. 3 and 4, by using the method and the tool for converting a PROTEL netlist into an alloegro text of the present invention, an engineer can interact on two EDA software platforms, fig. 3 is a data schematic diagram of package information excerpting of the PROTEL netlist and the alloegro text in this embodiment, and fig. 4 is a data schematic diagram of network connection information excerpting of the both. Therefore, the invention realizes the interaction between different EDA software platforms by a self-made simple PROTEL netlist to ALLEGRO text tool, and the tool has the advantages of simple use method, simple and convenient operation, easy grasp by engineering personnel and easy popularization and use.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only show some embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

  1. The method for converting the PROTEL netlist into the ALLEGRO text is characterized by comprising the following specific steps of:
    1) importing a PROTEL netlist file needing conversion;
    2) identifying packaging information in the PROTEL netlist file, performing format conversion, and outputting to an ALLEGRO text;
    3) identifying network connection information in the PROTEL netlist file, performing format conversion, and outputting to an ALLEGRO text;
    4) and finishing the conversion and outputting the ALLEGRO text file.
  2. 2. The method for converting PROTECTEL netlist to ALLEGRO text as claimed in claim 1, wherein the process of step 1) includes:
    101) judging whether the imported PROTEL netlist file exists and is readable, if so, entering a step 102), and if not, waiting for file import;
    102) and reading the PROTEL netlist file data.
  3. 3. The method for converting PROTECTEL netlist to ALLEGRO text as claimed in claim 1, wherein the process of step 2) comprises:
    201) identifying an initial character "[" in the PROTEL netlist file, and initializing a packaging variable;
    202) judging whether the information conversion is the first packaging information conversion, if so, outputting "$ PACKAGES" to an ALLEGRO text;
    203) performing encapsulation information conversion;
    204) and identifying a terminator "]" in the PROTEL netlist file, and completing the conversion of the packaging information.
  4. 4. The method for converting PROTECTEL netlist to ALLEGRO text as claimed in claim 3, wherein the process of step 203) comprises:
    2031) converting bit number information;
    2032) converting the package name;
    2033) and (4) converting the numerical value.
  5. 5. The method for converting PROTECTEL netlist to ALLEGRO text as claimed in claim 1, wherein the process of step 3) comprises:
    301) identifying a start character "(" in the PROTEL netlist file, and initializing a network connection variable;
    302) judging whether the network connection information is converted for the first time, if so, outputting a "$ NETS" to an ALLEGRO text;
    303) carrying out network connection information conversion;
    304) a terminator in the PROTECTL netlist file is identified ")", network connection information conversion is completed.
  6. 6. The method of converting PROTECTEL netlist to ALLEGRO text as claimed in claim 5, wherein the process of step 303) includes:
    3031) converting the network name;
    3032) and (4) conversion of pin connection information.
  7. 7. The method for converting PROTECTEL netlist to ALLEGRO text as claimed in claim 1, wherein the process of step 4) comprises:
    401) repeating the step 2), and completing the conversion of the packaging information in the PROTEL netlist file;
    402) Repeating the step 3), and completing the network connection information conversion in the PROTEL netlist file;
    403) and reading and converting the file data of the whole PROTEL netlist, and outputting "$ END" to the ALLEGRO text.
  8. Tool for converting a PROTECTL netlist into an ALLEGRO text, comprising an interactive interface and program modules for implementing the method of converting a PROTECTL netlist into an ALLEGRO text as claimed in any of the preceding claims 1 to 7.
  9. 9. The tool for converting PROTECTEL netlist to ALLEGRO text as claimed in claim 8, wherein the program modules include a definition module, a netlist file import module, a package information recognition module, a network connection information recognition module, a package information conversion module and a network connection information conversion module,
    the definition module is used for defining the attribute of the variable,
    the netlist file importing module is used for judging whether the imported file exists and is readable and acquiring PROTEL netlist file data,
    the package information identification module is used for identifying a start character and an end character of the package information in the PROTECTL netlist file,
    the network connection information identification module is used for identifying a start character and a stop character of the network connection information in the PROTEL netlist file,
    the encapsulation information conversion module is used for converting the bit number information, the encapsulation name and the numerical value in the encapsulation information,
    The network connection information conversion module is used for converting the network name and the pin connection information in the network connection information.
  10. 10. The tool for converting PROTECTL netlist to ALLEGRO text as claimed in claim 8, wherein the interactive interface comprises a file selection button for manipulating the netlist file import module, a file path display box for displaying the path of the selected PROTECTL netlist file, and a conversion button for manipulating the package information conversion module and the package information conversion module,
    the interactive interface further comprises a package name plus quotation mark checking box, a numerical value reservation checking box and a network name plus quotation mark checking box.
CN202010708747.8A 2020-07-22 2020-07-22 Method and tool for converting PROTEL netlist into ALLEGRO text Pending CN111859826A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010708747.8A CN111859826A (en) 2020-07-22 2020-07-22 Method and tool for converting PROTEL netlist into ALLEGRO text

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010708747.8A CN111859826A (en) 2020-07-22 2020-07-22 Method and tool for converting PROTEL netlist into ALLEGRO text

Publications (1)

Publication Number Publication Date
CN111859826A true CN111859826A (en) 2020-10-30

Family

ID=73001555

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010708747.8A Pending CN111859826A (en) 2020-07-22 2020-07-22 Method and tool for converting PROTEL netlist into ALLEGRO text

Country Status (1)

Country Link
CN (1) CN111859826A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113468834A (en) * 2021-06-17 2021-10-01 深圳市一博科技股份有限公司 Method for simplifying generation of rpt file
CN116738898A (en) * 2023-05-04 2023-09-12 合芯科技(苏州)有限公司 Method, device, equipment and storage medium for rapidly checking mechanism diagram

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1755697A (en) * 2004-09-30 2006-04-05 华为技术有限公司 System-level circuit inspection method and tool
CN101419642A (en) * 2008-11-18 2009-04-29 北京巨数数字技术开发有限公司 Apparatus and method for extracting device connection relation from netlist file
CN103123655A (en) * 2011-11-18 2013-05-29 京信通信系统(中国)有限公司 Transfer method and device of printed circuit board (PCB) layout
CN109255161A (en) * 2018-08-17 2019-01-22 国营芜湖机械厂 A kind of method that NET net meter file generates NOD net meter file

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1755697A (en) * 2004-09-30 2006-04-05 华为技术有限公司 System-level circuit inspection method and tool
CN101419642A (en) * 2008-11-18 2009-04-29 北京巨数数字技术开发有限公司 Apparatus and method for extracting device connection relation from netlist file
CN103123655A (en) * 2011-11-18 2013-05-29 京信通信系统(中国)有限公司 Transfer method and device of printed circuit board (PCB) layout
CN109255161A (en) * 2018-08-17 2019-01-22 国营芜湖机械厂 A kind of method that NET net meter file generates NOD net meter file

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113468834A (en) * 2021-06-17 2021-10-01 深圳市一博科技股份有限公司 Method for simplifying generation of rpt file
CN113468834B (en) * 2021-06-17 2024-01-05 深圳市一博科技股份有限公司 Method for simplifying rpt file generation
CN116738898A (en) * 2023-05-04 2023-09-12 合芯科技(苏州)有限公司 Method, device, equipment and storage medium for rapidly checking mechanism diagram

Similar Documents

Publication Publication Date Title
US9791851B2 (en) Quick processing system and method for SMT equipment
CN107025362A (en) A kind of method for verifying schematic diagram and PCB creation data uniformity
US7062427B2 (en) Batch editor for netlists described in a hardware description language
CN105335570B (en) A method of netlist comparison is carried out based on component pin connection relation
CN111859826A (en) Method and tool for converting PROTEL netlist into ALLEGRO text
US20080109780A1 (en) Method of and apparatus for optimal placement and validation of i/o blocks within an asic
US9740599B2 (en) Directed random sequence generation method and apparatus for testing software
US8037436B2 (en) Circuit verification apparatus, a method of circuit verification and circuit verification program
CN108563629B (en) Automatic log analysis rule generation method and device
CN110222381B (en) Method, system, medium and terminal for generating dynamic installation guide file for PCB assembly
US8146027B1 (en) Creating interfaces for importation of modules into a circuit design
CN101192247A (en) Circuit connection calibration system and method
CN112799966B (en) Method, system, equipment and medium for generating test data in batches by extensible plug-in
CN105158673B (en) A kind of generation method and device of ATE boards file
CN102169513A (en) Wiring design system and method
CN109992567A (en) One kind is based on the matched PCB package file search method of figure
CN112416331A (en) Page adaptation method and device, electronic equipment and computer readable storage medium
EP2511841A2 (en) System and method for generation of cim-based power system circuit models
CN101986282B (en) Topology adaptation method and device
CN107688682A (en) A kind of method that circuit topology is extracted using timing path
CN115952760A (en) Method, device and equipment for simulating digital-analog circuit and computer storage medium
CN100498808C (en) Printing circuit board element height outputting method and device thereof
CN101989310A (en) Automatic system and method of wiring design of circuit board
CN112861454A (en) Method for realizing top-level automatic instantiation of chip system based on python
US20100269080A1 (en) Computer-aided design system and method for simulating pcb specifications

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
CB02 Change of applicant information

Address after: 11F, Metro financial technology building, 9819 Shennan Avenue, Shenda community, Yuehai street, Nanshan District, Shenzhen, Guangdong 518000

Applicant after: EDADOC Co.,Ltd.

Address before: 518000 Kangjia R&D Building, 28 Sci-tech South 12 Road, Nanshan District, Shenzhen City, Guangdong Province, 12H-12I, 12th floor

Applicant before: EDADOC Co.,Ltd.

CB02 Change of applicant information