CN109255161B - Method for generating NOD netlist file from NET netlist file - Google Patents

Method for generating NOD netlist file from NET netlist file Download PDF

Info

Publication number
CN109255161B
CN109255161B CN201810940992.4A CN201810940992A CN109255161B CN 109255161 B CN109255161 B CN 109255161B CN 201810940992 A CN201810940992 A CN 201810940992A CN 109255161 B CN109255161 B CN 109255161B
Authority
CN
China
Prior art keywords
file
netlist
nod
net
proceeding
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
CN201810940992.4A
Other languages
Chinese (zh)
Other versions
CN109255161A (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.)
State Run Wuhu Machinery Factory
Original Assignee
State Run Wuhu Machinery Factory
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 State Run Wuhu Machinery Factory filed Critical State Run Wuhu Machinery Factory
Priority to CN201810940992.4A priority Critical patent/CN109255161B/en
Publication of CN109255161A publication Critical patent/CN109255161A/en
Application granted granted Critical
Publication of CN109255161B publication Critical patent/CN109255161B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/39Circuit design at the physical level
    • G06F30/398Design verification or optimisation, e.g. using design rule check [DRC], layout versus schematics [LVS] or finite element methods [FEM]

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)
  • Tests Of Electronic Circuits (AREA)

Abstract

The invention relates to a method for generating an NOD netlist file from an NET netlist file, which comprises the steps of obtaining the NOD netlist file by using a flying probe tester, importing the NET netlist file corresponding to a schematic diagram into upper computer software, and replacing fields related to network names and network labels in the corresponding NOD netlist by searching information related to the network names and the network labels in the NET netlist, so as to complete the task of matching the NOD netlist with the NET netlist. The invention adopts an automatic flow, invents conversion software without manual modification, avoids the defects of easy error and low efficiency of manual modification, ensures the accuracy of the netlist file, and simultaneously has reasonable system interface design and simple operation.

Description

Method for generating NOD netlist file from NET netlist file
Technical Field
The invention relates to the field of circuit testing, in particular to a method for generating an NOD netlist file from a NET netlist file.
Background
The NOD file is a circuit board netlist file generated by the flying probe online tester and contains position information of all test points on the circuit board and connection relations among the test points. The NET file is a circuit board netlist file generated after a schematic diagram of a circuit board is drawn by using Protel, and contains the connection relation among pins of each component of the circuit board and the component value. When a flying probe online tester is used for testing the connection relation of a circuit board, an NOD netlist file of a tested board needs to be imported. At present, a large number of circuit boards with existing NET netlist files still exist, when a flying probe online tester is used for connection relation testing, data cannot be shared due to the fact that the NET files and NOD file formats are not consistent, and the traditional method is as follows: generating an NOD file only containing the position information of the test point by using a flying probe online tester, and then manually modifying the NOD file by using the connection relation information of the NET file; or the flying probe on-line tester is used for extracting the netlist information of the tested board with good functions again. The two methods have the defects of high error probability, large workload and low efficiency.
A rapid NOD file modification method is disclosed on pages 155-157 in the 14 th period of modern electronic technology published in 7 months of 2012, and the NOD file processing efficiency is effectively improved by utilizing the processing convenience of Office software. The disadvantage is that the operation still requires manual operation.
Disclosure of Invention
The invention aims to solve the technical problems that a method for generating an NOD netlist file by using a NET netlist file is provided, the NOD netlist file of a tested circuit board required by a flying probe online tester is rapidly generated, and the problems that in the NOD file modification process, the test point matching and searching difficulty is large, the modification work is more, the error is easy, the efficiency is low and the like are solved.
The technical problem to be solved by the invention is realized by adopting the following technical scheme:
a method for generating NOD netlist file from NET netlist file includes an upper computer for converting file, the operation method of the upper computer includes the following steps:
a) Selecting a NET netlist file of a tested board in a NET file dialog box, and displaying the selected NET file according to an original file format in an interface;
b) In an NOD file dialog box, selecting an NOD netlist file which is generated by a flying probe online tester and only contains component pin position information of a tested plate, and displaying the selected NOD file according to an original file format in an interface;
c) Pressing a conversion button, and modifying a netlist program according to the automatic modification;
d) After the NOD file is modified, popping up dialog box information, and displaying that the generation is finished;
e) And selecting another storage as a file dialog box, and storing the newly generated NOD netlist file.
Further, the automatic netlist modifying program in step c) includes a NET netlist information obtaining step and a NOD netlist information obtaining step, and the NET netlist information obtaining step includes:
s 1) starting an automatic program modification, and processing the imported NET netlist and NOD netlist files;
s 2) obtaining the position of the character '(' in the NET file;
s 3) obtaining the location of the character') in the NET file;
s 4) if the character including ' (' or ') is searched, proceeding to step s 5), if not, proceeding to step s 9);
s 5) obtaining a string between '(' and ')';
s 6) intercepting the signal name, namely the content of the second line in the character string;
s 7) define variable N, N =1;
s 8) intercepting the label-pin of the Nth component, namely the content of the (N + 2) th line of the character string;
s 9) determining whether the N +2 th line content is valid, if so, proceeding to step s 10), and if not, proceeding to step s 2).
Further, the step s 7) includes a program step of obtaining NOD netlist information, where the step of obtaining NOD netlist information includes:
s 71) obtaining the total line number of the NOD file;
s 72) define variable LN, LN =2;
s 73) determining whether LN < = total lines, if yes, proceeding to step s 74), otherwise, proceeding to step
s 74) acquiring a character string of the LN line of the NOD file;
s75)LN=LN+1;
s 76) intercepting the content of the COMPONENT field and the PIN field in the character string, and rewriting the content into a COMPONENT-PIN format;
s 77) determining whether the field content = = component label-pin obtained in NET file, if yes, proceeding to step s 78), and if not, proceeding to step s 73);
s 78) changes the contents of the string SIGNAL field to the name of the SIGNAL intercepted in the NET file.
The beneficial effects of the invention are:
(1) By adopting an automatic process, the conversion device is invented, manual modification is not needed, the defects of easy error and low efficiency of manual modification are avoided, and the accuracy of the netlist file is ensured;
(2) The system interface is reasonable in design and simple to operate.
Drawings
The invention is further illustrated by the following examples in conjunction with the drawings.
FIG. 1 is a flowchart of the process of the present invention.
Detailed Description
In order to make the technical means, the creation characteristics, the achievement purposes and the effects of the invention easy to understand, the invention is further explained below.
The NET list file of the circuit schematic diagram NET is a file for describing pin connection relations of schematic element components and network names, and is generally in a form of ' (' + ' network name ' + ' \ n ' + ' element 1 name-pin ' + ' \ n ' + ' element 2 name-pin ' +. + -. + '), wherein elements are separated by a line-changing symbol ' \ n ', the first line of data in a group of ' () ' is the network name, the second line starting sequence represents the element label and the corresponding pin label under the same network, and therefore the information of the group of ' () ' describes the pin connection relations of the elements under the same network.
The NOD netlist file of the circuit board obtained by the flying probe tester is a file containing the connection relation of the test points in the circuit board, and comprises the connection relation of the element names and the element pins of the circuit board, wherein the element pins in the same segment of identifier represent the state of mutual communication, but only describe the connection relation, the names of networks and the labels of components are represented by only default symbols of the system, and the names of the corresponding schematic diagrams and the corresponding network names are not used.
According to the character rules of the NET netlist and the NOD netlist, a method for generating the NOD netlist file from the NET netlist file is provided, the method comprises an upper computer for converting the file, and the operation method of the upper computer comprises the following steps:
a) Selecting a NET netlist file of a tested board in a NET file opening dialog box, and displaying the selected NET file according to an original file format in an interface;
b) In the NOD file dialog box, selecting an NOD netlist file which is generated by a flying probe online tester and only contains pin position information of a component of a tested plate, and displaying the selected NOD file according to an original file format in an interface;
c) Pressing a conversion button, and modifying a netlist program according to the automatic modification;
d) After the NOD file is modified, popping up dialog box information, and displaying that the generation is finished;
e) And selecting another storage as a file dialog box, and storing the newly generated NOD netlist file.
The program flow chart shown in fig. 1:
the automatic netlist modifying program in the step c) comprises the following steps:
further, the automatic netlist modifying program in step c) includes a NET netlist information obtaining step and a NOD netlist information obtaining step, and the NET netlist information obtaining step includes:
s 1) starting an automatic program modification, and processing the imported NET netlist and NOD netlist files;
s 2) obtaining the position of the character '(' in the NET file;
s 3) obtaining the location of the character') in the NET file;
s 4) if the character 'or' is searched, entering step s 5), and if the character 'or' is not searched, entering step s 9);
s 5) obtaining a string between '(' and ')';
s 6) intercepting the signal name, namely the content of the second line in the character string;
s 7) define variable N, N =1;
s 8) intercepting the label-pin of the Nth component, namely the content of the (N + 2) th line of the character string;
s 9) determining whether the N +2 th line content is valid, if so, proceeding to step s 10), and if not, proceeding to step s 2).
Further, the step s 7) includes a program step of acquiring NOD netlist information, and the step of acquiring NOD netlist information includes:
s 71) obtaining the total line number of the NOD file;
s 72) define variable LN, LN =2;
s 73) determining whether LN < = total lines, if yes, proceeding to step s 74), otherwise, proceeding to step
s 74) acquiring a character string of the LN line of the NOD file;
s75)LN=LN+1;
s 76) intercepting the content of the COMPONENT field and the PIN field in the character string, and rewriting the content into a COMPONENT-PIN format;
s 77) determining whether or not the field content = = component label-pin acquired in the NET file, if yes, proceeding to step s 78), and if not, proceeding to step s 73);
s 78) changes the contents of the string SIGNAL field to the name of the SIGNAL intercepted in the NET file.
A program embodiment of the present invention is introduced below according to the above method for generating a NOD netlist file from a NET netlist file, and includes the steps of:
1) Positioning and photographing a tested circuit board by using a camera of the flying probe on-line tester, selecting all pins containing components on the tested board as test points, and generating an NOD netlist file only containing the position information of the test points;
2) Setting four integer variables of a buffer _ Stop, a buffer _ Begin, an Index _ Begin and an Index _ Stop, and assigning 0;
3) Searching characters '(' in the NET netlist file from the position of the buffer _ Stop backward, and assigning the position of the nearest character '(' to the buffer _ Begin;
4) Searching characters ') in a NET netlist file backwards from the position of the socket _ Begin, and assigning the position of the character' closest to the position of the NET netlist file to a socket _ Stop;
5) Judging whether the character') is searched in the step 4), if not, executing the step 25), and if yes, executing the step 6);
6) Intercepting a character string between the Bracket _ Begin and the Bracket _ Stop, and assigning the value to a character string variable TempStr;
7) Defining a variable N, assigning the value of N to 1, searching the position of the Nth character '\ N' in TempStr, and assigning a position value to Index _ Begin;
8) Continuing to search backwards through TempStr from the Index _ Begin +1 position, searching the position of the next character '\ n', and giving the position value to Index _ Stop;
9) Intercepting a character string between Index _ Begin +1 and Index _ Stop-Index _ Begin-2 in the TempStr, and giving a modified value to a character string variable NetName;
10 Assign the value of Index _ Stop to Index _ Begin;
11 Search backwards on TempStr from Index _ Begin +1 position, search to the position of the character '\ n', and assign the position value to Index _ Stop;
12 ) judging whether the character 'n' is searched in the step 11), and if the character 'n' is not searched, executing the step 3), and if the character 'n' is searched, executing the step 13);
13 Intercept the string between Index _ Begin +1 and Index _ Stop-Index _ Begin-2 in TempStr, and assign a change value to the string variable Component;
14 Obtaining the total line number of NOD netlist files of the tested plate, recording the total line number as LineCount, setting LineNumber integer variable and assigning the integer variable as 2;
15 Judging whether LineNumber is not more than LineCount, if so, executing the step 10), and if not, executing the step 16);
16 Obtaining the content of the LineNumber line of the NOD netlist file to be tested, and assigning the value to a character string variable LineTr _ Old and LineTr _ New, wherein the value of LineNumber is added with 1;
17 Intercept the string from 23 rd to 56 th character in LineTr _ Old, and assign a string variable Component _1;
18 Replace the character ' "in Component _1 with the character ' - ', delete the character";
19 Judging whether Component _1 is the same as Component, if so, executing step 20), otherwise, executing step 15);
20 Delete the first 22 characters of LineStr _ New;
21 Add character '"and character'" to the head and tail positions of NetName, respectively;
22 Add a character "at the end of the NetName until the NetName string length is 22;
23 NetName is inserted from the beginning of LineStrer _ New;
24 Replace the content of the linensumber-1 line in the NOD netlist file with LineStr _ New, go to step 10);
25 NOD netlist file modification is complete.
Further, the steps 2) to 4) are to acquire character information in "()" and acquire information in the same network by searching for the positions of flag characters '(' and ')'.
Further, the TempStr in step 6) is a character string of all information contained in the same network.
Further, the NetName in step 9) is the searched network name of the network, and a signal name, that is, the content of the second row in the TempStr string, is intercepted.
Further, the steps 10) to 13) are to obtain the component name and the component pin number in the present network.
Further, the steps 14) to 23) are to search the fields about the network name and the element number in the NOD netlist and replace the fields with the corresponding fields in the NET netlist.
The foregoing shows and describes the general principles, principal features, and advantages of the invention. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, which are merely illustrative of the principles of the invention, but that various changes and modifications may be made without departing from the spirit and scope of the invention, which fall within the scope of the invention as claimed. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (2)

1. A method for generating NOD netlist file from NET netlist file is characterized in that: the upper computer comprises a conversion file, and the operation method of the upper computer comprises the following steps:
a) Selecting a NET netlist file of a tested board in a NET file dialog box, and displaying the selected NET file according to an original file format in an interface;
b) In an NOD file dialog box, selecting an NOD netlist file which is generated by a flying probe online tester and only contains component pin position information of a tested plate, and displaying the selected NOD file according to an original file format in an interface;
c) Pressing a conversion button, and executing an automatic netlist modifying program;
d) After the NOD file is modified, popping up dialog box information, and displaying that the generation is finished;
e) Selecting another storage as a file dialog box, and storing a newly generated NOD netlist file;
the automatic netlist modification program in the step c) comprises a NET netlist information acquisition step and a NOD netlist information acquisition step, wherein the NET netlist information acquisition step comprises the following steps:
s 1) starting an automatic program modification, and processing the imported NET netlist and NOD netlist files;
s 2) obtaining the position of the character '(' in the NET file;
s 3) obtaining the position of the character') in the NET file;
s 4) if the character including ' (' or ') is searched, proceeding to step s 5), if not, proceeding to step s 9);
s 5) obtaining a string between '(' and ')';
s 6) intercepting the signal name, namely the content of the second line in the character string;
s 7) define variable N, N =1;
s 8) intercepting the label-pin of the Nth component, namely the content of the (N + 2) th line of the character string;
s 9) determining whether the N +2 th line content is valid, if so, proceeding to step s 10), and if not, proceeding to step s 2).
2. The method for generating the NOD netlist file from the NET netlist file as claimed in claim 1, wherein: after the step s 7), a program step of obtaining NOD netlist information is included, and the NOD netlist information obtaining step includes:
s 71) obtaining the total line number of the NOD file;
s 72) define variable LN, LN =2;
s 73) determining whether LN < = total lines, if yes, proceeding to step s 74), otherwise, proceeding to step
s 74) acquiring a character string of the LN line of the NOD file;
s75)LN=LN+1;
s 76) intercepting the content of the COMPONENT field and the PIN field in the character string, and rewriting the content into a COMPONENT-PIN format;
s 77) determining whether the field content = = component label-pin obtained in NET file, if yes, proceeding to step s 78), and if not, proceeding to step s 73);
s 78) changes the contents of the string SIGNAL field to the name of the SIGNAL intercepted in the NET file.
CN201810940992.4A 2018-08-17 2018-08-17 Method for generating NOD netlist file from NET netlist file Active CN109255161B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810940992.4A CN109255161B (en) 2018-08-17 2018-08-17 Method for generating NOD netlist file from NET netlist file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810940992.4A CN109255161B (en) 2018-08-17 2018-08-17 Method for generating NOD netlist file from NET netlist file

Publications (2)

Publication Number Publication Date
CN109255161A CN109255161A (en) 2019-01-22
CN109255161B true CN109255161B (en) 2023-01-31

Family

ID=65050083

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810940992.4A Active CN109255161B (en) 2018-08-17 2018-08-17 Method for generating NOD netlist file from NET netlist file

Country Status (1)

Country Link
CN (1) CN109255161B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111141954B (en) * 2020-01-02 2022-05-06 北京半导体专用设备研究所(中国电子科技集团公司第四十五研究所) Test file generation method and device of resistor network and electronic equipment
CN111859826B (en) * 2020-07-22 2024-07-05 深圳市一博科技股份有限公司 Method and tool for converting PROTEL list into ALLEGRO text
CN113849460A (en) * 2021-09-07 2021-12-28 西安闻泰信息技术有限公司 Method and device for determining target file, electronic equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0507522D0 (en) * 2001-06-29 2005-05-18 Hewlett Packard Co System and method for management of compartments in a trusted operating system
CN106199378A (en) * 2016-06-28 2016-12-07 国营芜湖机械厂 A kind of circuit board netlist rapid extracting method
WO2017088540A1 (en) * 2015-11-24 2017-06-01 广州兴森快捷电路科技有限公司 Method for performing netlist comparison based on pin connection relationship of component
CN108111606A (en) * 2017-12-25 2018-06-01 北京车网互联科技有限公司 A kind of scenario simulation and test method for V2X equipment application functional verifications

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0507522D0 (en) * 2001-06-29 2005-05-18 Hewlett Packard Co System and method for management of compartments in a trusted operating system
WO2017088540A1 (en) * 2015-11-24 2017-06-01 广州兴森快捷电路科技有限公司 Method for performing netlist comparison based on pin connection relationship of component
CN106199378A (en) * 2016-06-28 2016-12-07 国营芜湖机械厂 A kind of circuit board netlist rapid extracting method
CN108111606A (en) * 2017-12-25 2018-06-01 北京车网互联科技有限公司 A kind of scenario simulation and test method for V2X equipment application functional verifications

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于电子设计交换格式的网表文件编译器的研究与实现;周晓亮等;《计算机测量与控制》;20131025(第10期);全文 *

Also Published As

Publication number Publication date
CN109255161A (en) 2019-01-22

Similar Documents

Publication Publication Date Title
CN109255161B (en) Method for generating NOD netlist file from NET netlist file
CN106095866B (en) The optimization method and device of application program recommended method, program starting speed
CN105138752B (en) Intelligent substation SCD file land parcel change trace differentiation compares and methods of exhibiting
CN111209344A (en) Data synchronization method and device
US7661053B2 (en) Methods and apparatus for patternizing device responses
CN111506608B (en) Structured text comparison method and device
JP4115511B1 (en) Program pattern analysis apparatus, pattern appearance status information production method, pattern information generation apparatus, and program
CN114328276B (en) Test case generation method and device, and test case display method and device
CN110765639A (en) Electrical simulation modeling method and device and readable storage medium
CN108984393A (en) A kind of unit testing code automatic generation method and device
CN111400169A (en) Method and system for automatically generating netlist file for testing software and hardware
CN113190220A (en) JSON file differentiation comparison method and device
CN103913672B (en) A kind of satellite low frequency interface automatization test system
CN110377566B (en) Method and system for sorting S parameter test files of PCB
US20230229838A1 (en) Connection analysis method for multi-port nesting model and storage medium
CN116541307B (en) Data processing method for comparing pom versions
CN108694172B (en) Information output method and device
CN115545008B (en) Spectrogram file analyzing method, device, equipment and storage medium
CN112052248A (en) Audit big data processing method and system
CN111600776A (en) TR069 batch interactive test system and method thereof
CN106293862B (en) A kind of analysis method and device of expandable mark language XML data
CN116956845A (en) Method for rapidly configuring form field, page field generation mode and system
CN115712601A (en) Method for reading fixed-length files in batch based on springbatch
CN115729886A (en) Method and device for converting test data format of semiconductor device and storage medium
CN112540958B (en) File processing method, device, equipment and computer storage medium

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