CN111695320B - Method for obtaining circuit directed graph based on traversing wire - Google Patents

Method for obtaining circuit directed graph based on traversing wire Download PDF

Info

Publication number
CN111695320B
CN111695320B CN202010544394.2A CN202010544394A CN111695320B CN 111695320 B CN111695320 B CN 111695320B CN 202010544394 A CN202010544394 A CN 202010544394A CN 111695320 B CN111695320 B CN 111695320B
Authority
CN
China
Prior art keywords
wire
wires
condition
node set
directed graph
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
CN202010544394.2A
Other languages
Chinese (zh)
Other versions
CN111695320A (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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202010544394.2A priority Critical patent/CN111695320B/en
Publication of CN111695320A publication Critical patent/CN111695320A/en
Application granted granted Critical
Publication of CN111695320B publication Critical patent/CN111695320B/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/30Circuit design
    • G06F30/39Circuit design at the physical level
    • G06F30/392Floor-planning or layout, e.g. partitioning or placement
    • 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
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation

Landscapes

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

Abstract

The invention discloses a method for obtaining a circuit directed graph based on a traversing wire, which comprises the following steps: step one, providing a required simulation circuit schematic diagram; step two, selecting any one wire in the simulation circuit schematic diagram obtained in the step one, counting the selected wire into a first-level node set, and judging a model connected with two ends of the selected wire; the method for acquiring the circuit directed graph based on the traversing wire is simple and easy to understand and easy to implement, greatly simplifies the complexity of the traditional manual extraction of the circuit directed graph, and provides an effective technical basis for circuit simulation software products.

Description

Method for obtaining circuit directed graph based on traversing wire
Technical Field
The invention belongs to the technical field of circuit directed graphs, and particularly relates to a method for acquiring a circuit directed graph based on a traversing wire.
Background
With the advent of integrated circuits, manual computing or simple computing tools are far from satisfactory, making computer applications more and more popular. The computer simulation has the characteristics of high efficiency, high precision, high reliability, low cost and the like, and larger errors brought by the analysis method in the approximation process can be avoided by the computer simulation method.
The core content of the circuit simulation software is to construct a directed graph model of the circuit, and the method is realized by adopting a circuit topology formula extraction method at present, wherein the method needs to manually draw a topological graph according to the circuit graph, analyze the serial-parallel connection relation of the circuit and establish a node association matrix, has large modeling workload and has certain difficulty in analyzing a complex circuit.
Therefore, it is necessary to study a modeling method to complete the conversion from the schematic diagram to the directed diagram to reduce the modeling workload.
Disclosure of Invention
The invention aims to provide a method for acquiring a circuit directed graph based on traversing wires, so as to solve the problems in the background art.
In order to achieve the above purpose, the present invention provides the following technical solutions: a method for obtaining a circuit directed graph based on traversing wires, comprising the steps of:
step one, providing a required simulation circuit schematic diagram;
step two, selecting any one wire in the simulation circuit schematic diagram obtained in the step one, counting the selected wire into a first-level node set, and judging the model connected with two ends of the selected wire to obtain the following three conditions:
in case 1, both ends of the selected wire are connected to the device,
in condition 2, both ends of the selected wire are connected with the wire,
in case 3, one end of the selected wire is connected to the element, the other end is connected to the wire,
judging the three conditions, wherein a primary node set is taken as a node in a condition 1, wires connected with the selected wires are counted into the primary node set in a condition 2 and a condition 3, a new set obtained by counting the wires connected with the selected wires into the primary node set in a condition 2 and a condition 3 is taken as a secondary node set, and the wires connected with the selected wires are taken as secondary wires;
judging the model connected with the other end of the secondary wire in the second step, and obtaining the following two conditions:
in condition 2-1, the other ends of the two secondary wires are connected with the wires,
in condition 2-2, the other end of one secondary wire is connected with the wire, the other end of the other secondary wire is connected with the element,
in case 3-1, the other end of the secondary wire is connected to the element,
in condition 3-2, the other end of the secondary wire is connected with the wire,
where condition 2-1 and condition 2-2 are two possible cases present in condition 2, condition 3-1 and condition 3-2 are two possible cases present in condition 3,
judging the four conditions, wherein the wires connected with the secondary wires are marked as three-level wires in the conditions 2-1, 2-2 and 3-2 and counted into a secondary node set, the wires connected with the secondary wires in the conditions 2-1, 2-2 and 3-2 are marked as three-level wires and counted into a new set after the secondary node set is counted into a three-level node set, and repeating the third step until the other end of the final wire is connected with the element, wherein the final node set is regarded as one node at the moment, and the secondary node set is regarded as a node in the condition 3-1;
traversing all wires in the simulation circuit schematic diagram according to the first step, the second step and the third step until all nodes in the simulation circuit schematic diagram are judged;
and fifthly, in the process of judging all the nodes in the simulation circuit schematic diagram in the step four, all the elements connected with the nodes can be obtained, each element is regarded as a branch, and the direction of each branch is customized, so that the circuit directed graph can be obtained.
Preferably, the node comprises all wire elements within the node set.
Compared with the prior art, the invention has the beneficial effects that: the method for acquiring the circuit directed graph based on the traversing wire is simple and easy to understand and easy to implement, greatly simplifies the complexity of the traditional manual extraction of the circuit directed graph, and provides an effective technical basis for circuit simulation software products.
Detailed Description
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 be within the scope of the invention.
In the description of the present invention, it should also be noted that, unless explicitly specified and limited otherwise, the terms "disposed," "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; can be directly connected, can be indirectly connected through an intermediate medium, and can also be communicated with the inside of two elements. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances.
The invention provides a technical scheme that: a method for obtaining a circuit directed graph based on traversing wires, comprising the steps of:
step one, providing a required simulation circuit schematic diagram;
step two, selecting any one wire in the simulation circuit schematic diagram obtained in the step one, counting the selected wire into a first-level node set, and judging the model connected with two ends of the selected wire to obtain the following three conditions:
in case 1, both ends of the selected wire are connected to the device,
in condition 2, both ends of the selected wire are connected with the wire,
in case 3, one end of the selected wire is connected to the element, the other end is connected to the wire,
judging the three conditions, wherein a primary node set is taken as a node in a condition 1, wires connected with the selected wires are counted into the primary node set in a condition 2 and a condition 3, a new set obtained by counting the wires connected with the selected wires into the primary node set in a condition 2 and a condition 3 is taken as a secondary node set, and the wires connected with the selected wires are taken as secondary wires;
judging the model connected with the other end of the secondary wire in the second step, and obtaining the following two conditions:
in condition 2-1, the other ends of the two secondary wires are connected with the wires,
in condition 2-2, the other end of one secondary wire is connected with the wire, the other end of the other secondary wire is connected with the element,
in case 3-1, the other end of the secondary wire is connected to the element,
in condition 3-2, the other end of the secondary wire is connected with the wire,
where condition 2-1 and condition 2-2 are two possible cases present in condition 2, condition 3-1 and condition 3-2 are two possible cases present in condition 3,
judging the four conditions, wherein the wires connected with the secondary wires are marked as three-level wires in the conditions 2-1, 2-2 and 3-2 and counted into a secondary node set, the wires connected with the secondary wires in the conditions 2-1, 2-2 and 3-2 are marked as three-level wires and counted into a new set after the secondary node set is counted into a three-level node set, and repeating the third step until the other end of the final wire is connected with the element, wherein the final node set is regarded as one node at the moment, and the secondary node set is regarded as a node in the condition 3-1;
traversing all wires in the simulation circuit schematic diagram according to the first step, the second step and the third step until all nodes in the simulation circuit schematic diagram are judged;
and fifthly, in the process of judging all the nodes in the simulation circuit schematic diagram in the step four, all the elements connected with the nodes can be obtained, each element is regarded as a branch, and the direction of each branch is customized, so that the circuit directed graph can be obtained.
In this embodiment, the node preferably includes all of the wire elements in the node set.
Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (2)

1. A method for obtaining a circuit directed graph based on traversing wires, comprising the steps of:
step one, providing a required simulation circuit schematic diagram;
step two, selecting any one wire in the simulation circuit schematic diagram obtained in the step one, counting the selected wire into a first-level node set, and judging the model connected with two ends of the selected wire to obtain the following three conditions:
in case 1, both ends of the selected wire are connected to the device,
in condition 2, both ends of the selected wire are connected with the wire,
in case 3, one end of the selected wire is connected to the element, the other end is connected to the wire,
judging the three conditions, wherein a primary node set is taken as a node in a condition 1, wires connected with the selected wires are counted into the primary node set in a condition 2 and a condition 3, a new set obtained by counting the wires connected with the selected wires into the primary node set in a condition 2 and a condition 3 is taken as a secondary node set, and the wires connected with the selected wires are recorded as secondary wires;
judging the model connected with the other end of the secondary wire in the second step, and obtaining the following two conditions:
in condition 2-1, the other ends of the two secondary wires are connected with the wires,
in condition 2-2, the other end of one secondary wire is connected with the wire, the other end of the other secondary wire is connected with the element,
in case 3-1, the other end of the secondary wire is connected to the element,
in condition 3-2, the other end of the secondary wire is connected with the wire,
where condition 2-1 and condition 2-2 are two possible cases present in condition 2, condition 3-1 and condition 3-2 are two possible cases present in condition 3,
judging the four conditions, wherein the wires connected with the secondary wires are marked as three-level wires in the conditions 2-1, 2-2 and 3-2 and counted into a secondary node set, the wires connected with the secondary wires in the conditions 2-1, 2-2 and 3-2 are marked as three-level wires and counted into a new set after the secondary node set is counted into a three-level node set, and repeating the third step until the other end of the final wire is connected with the element, wherein the final node set is regarded as one node at the moment, and the secondary node set is regarded as a node in the condition 3-1;
traversing all wires in the simulation circuit schematic diagram according to the first step, the second step and the third step until all nodes in the simulation circuit schematic diagram are judged;
and fifthly, in the process of judging all the nodes in the simulation circuit schematic diagram in the step four, all the elements connected with the nodes can be obtained, each element is regarded as a branch, and the direction of each branch is customized, so that the circuit directed graph can be obtained.
2. The method for obtaining a circuit directed graph based on traversing wires of claim 1, wherein: the nodes contain all of the wire elements within the node set.
CN202010544394.2A 2020-06-15 2020-06-15 Method for obtaining circuit directed graph based on traversing wire Active CN111695320B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010544394.2A CN111695320B (en) 2020-06-15 2020-06-15 Method for obtaining circuit directed graph based on traversing wire

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010544394.2A CN111695320B (en) 2020-06-15 2020-06-15 Method for obtaining circuit directed graph based on traversing wire

Publications (2)

Publication Number Publication Date
CN111695320A CN111695320A (en) 2020-09-22
CN111695320B true CN111695320B (en) 2023-10-03

Family

ID=72481277

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010544394.2A Active CN111695320B (en) 2020-06-15 2020-06-15 Method for obtaining circuit directed graph based on traversing wire

Country Status (1)

Country Link
CN (1) CN111695320B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117892684B (en) * 2024-03-18 2024-05-24 上海合见工业软件集团有限公司 Wire merging calculation method, device, equipment and medium of EDA software

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5379231A (en) * 1992-05-29 1995-01-03 University Of Texas System Method and apparatus for simulating a microelectric interconnect circuit
CN1508558A (en) * 2002-12-17 2004-06-30 �Ҵ���˾ Method and system for feedback circulation detection on non-scanning storage element
CN104123407A (en) * 2014-06-19 2014-10-29 电子科技大学 Automatic testability model building method based on circuit simulation
CN105096694A (en) * 2015-09-17 2015-11-25 中国人民解放军海军工程大学 Electrical equipment virtual maintenance training system simulation method
CN108170871A (en) * 2016-12-07 2018-06-15 中国电力科学研究院 For the element browsing method of electro-magnetic transient topological data and pattern layout method
CN109829474A (en) * 2018-12-27 2019-05-31 北京邮电大学 A kind of circuit diagram recognition methods
CN110287735A (en) * 2019-07-04 2019-09-27 电子科技大学 Wooden horse based on chip netlist feature infects circuit identification method
CN110929323A (en) * 2019-11-20 2020-03-27 上海建工四建集团有限公司 Equipment route connection relation rendering path duplicate removal method and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8050904B2 (en) * 2006-09-15 2011-11-01 Freescale Semiconductor, Inc. System and method for circuit symbolic timing analysis of circuit designs
US7568178B2 (en) * 2006-10-18 2009-07-28 National Insturments Corporation System simulation and graphical data flow programming in a common environment using wire data flow
US20100161671A1 (en) * 2008-12-22 2010-06-24 Vladimir Charnine System and method for generating hierarchical categories from collection of related terms

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5379231A (en) * 1992-05-29 1995-01-03 University Of Texas System Method and apparatus for simulating a microelectric interconnect circuit
CN1508558A (en) * 2002-12-17 2004-06-30 �Ҵ���˾ Method and system for feedback circulation detection on non-scanning storage element
CN104123407A (en) * 2014-06-19 2014-10-29 电子科技大学 Automatic testability model building method based on circuit simulation
CN105096694A (en) * 2015-09-17 2015-11-25 中国人民解放军海军工程大学 Electrical equipment virtual maintenance training system simulation method
CN108170871A (en) * 2016-12-07 2018-06-15 中国电力科学研究院 For the element browsing method of electro-magnetic transient topological data and pattern layout method
CN109829474A (en) * 2018-12-27 2019-05-31 北京邮电大学 A kind of circuit diagram recognition methods
CN110287735A (en) * 2019-07-04 2019-09-27 电子科技大学 Wooden horse based on chip netlist feature infects circuit identification method
CN110929323A (en) * 2019-11-20 2020-03-27 上海建工四建集团有限公司 Equipment route connection relation rendering path duplicate removal method and electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于路径遍历的汽车电路推理模型的建立;周平,杨浩泉;上海第二工业大学学报(第03期);第20-24页 *
继电控制线路的网络拓扑图的生成与再次抽取;宋政湘,王建华;计算机工程与应用(第01期);第18-20页 *

Also Published As

Publication number Publication date
CN111695320A (en) 2020-09-22

Similar Documents

Publication Publication Date Title
WO2017041428A1 (en) Modelling method and system for diode clamped cascaded multi-level converter
CN103559042B (en) A kind of method setting up the Line Loss of Distribution Network System CIM based on IEC61970/61968
CN111695320B (en) Method for obtaining circuit directed graph based on traversing wire
CN110783968B (en) Method and system for analyzing fragile circuit of AC/DC power grid
CN106849093A (en) For the large-sized photovoltaic power station collector system harmonic flow calculation method of home energy source
CN102403718A (en) Generating method for power grid topological relationship based on Arcgis
CN105469316B (en) Method and system for calculating theoretical line loss between any two points of power distribution network
CN210780541U (en) Parallel-connection staggered PFC power supply
CN105243241B (en) The two passage biorthogonal figure filter set designing methods based on lift structure
CN112383225A (en) Parameter design method applied to cascaded converter and cascaded converter
US20220366115A1 (en) General decoupling method and system for electromagnetic transient simulation of voltage source converter
CN104569785A (en) Inverter circuit fault diagnosis method
CN105024734B (en) Suppress the method and its system of power information acquisition system interference signal
CN106849154B (en) Photovoltaic power station node harmonic voltage and harmonic source sensitivity relation analysis method
CN106340896A (en) Analysis method of interaction influence among multi-inverter grid-connected control channels
CN102880988A (en) Topology comparison-based method and device for importing substation model
CN114069608B (en) Voltage-based distributed type platform area identification method
CN107330229B (en) Quick simulation system of double-active full-bridge direct-current converter
CN204859178U (en) System for restrain power consumption information collection system interfering signal
CN112307699B (en) VSC-HVDC electromechanical transient simulation method and system based on phase components
CN110896218B (en) Harmonic modeling method and system for establishing collective residential load
CN114662437A (en) Modeling method of power electronic device
CN105701607A (en) Quality evaluation method of electric power statistics index data
CN111159882A (en) Method for describing wind speed frequency distribution characteristics of wind power plant
CN105182266B (en) A kind of combining unit channel detection methods

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