Next Article in Journal
Assessment of the Mass and Surface Area of the Scots Pine (Pinus sylvestris L.) Needles
Next Article in Special Issue
2D/3D Multimode Medical Image Alignment Based on Spatial Histograms
Previous Article in Journal
PK-APF: Path-Keeping Algorithm for USVs Based on Artificial Potential Field
Previous Article in Special Issue
Research on Tiny Target Detection Technology of Fabric Defects Based on Improved YOLO
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

PCB Network Analysis for Circuit Partitioning

School of Automation Engineering, University of Electronic Science and Technology of China, Chengdu 611731, China
*
Authors to whom correspondence should be addressed.
Appl. Sci. 2022, 12(16), 8200; https://doi.org/10.3390/app12168200
Submission received: 25 July 2022 / Revised: 11 August 2022 / Accepted: 12 August 2022 / Published: 17 August 2022

Abstract

:
The complexity of automatic placement and routing is proportional to the scale of the circuit. Through netlist partition algorithms, printed circuit board (PCB) circuits are divided into different submodules, and the problem scale is effectively reduced in order to obtain the optimal automatic layout and routing. In this paper, we analyze net attributes and potential patterns in netlists through visualization, and propose a heuristic PCB netlist partition approach based on net attributes and potential patterns which we discover from netlists. Our partition approach takes the netlist as input, and module partition set as output. Firstly, the modules are prepartitioned using net attributes. Further, the special patterns in circuits are discovered, and the scattered resistors, capacitors, and other components caused by prepartitioning would be allocated to initial modules by three rules—classifying, matching, and force strategy. Our method is evaluated on 11 PCB netlists which are built manually. Experimental results show that our proposed netlist partition approach significantly outperforms the state of the art on all evaluation indices, which can achieve 80–96% partition accuracy.

1. Introduction

Placement and routing, also known as physical design, typically account for more than 30% of cost and time in integrated circuit (IC) or PCB design and production. If automatic placement and routing can be implemented, it will effectively shorten the production cycle and reduce costs, and reduce the risk of human mistake. Thus, automatic placement and routing has been an interesting and challenging research direction in the field of electronic design automation (EDA). However, whether it is the placement and routing inside the chip or PCB level, the design process is very complicated. The design complexity of modern integrated circuits has greatly increased as circuits have become larger and contain more and more components. As we all know, the complexity of automatic placement and routing is proportional exponentially to the scale of the circuit [1], and it is a nondeterministic polynomial hard (NP-hard) problem. So far, it has not been practically applied, mainly relying on manual implementation. Physical design usually consists of six main steps: module partition, chip planning, placement, clock tree synthesis, routing, and timing closure [2]. The first step of circuit partition is to divide the problem into smaller submodules, which can effectively reduce the complexity of the problem, reduce the search space for automatic placement and routing, and obtain an optimal solution. If the module can be partitioned correctly, it also improves the parallelism of automatic placement and routing, so as to improve the efficiency, the stability, and quality of module placement and routing.
The netlist is the logical basis for physical design. A netlist contains components and pin connections between components, represented as nodes, and network connections between nodes. Components mainly include resistors, capacitors, inductors, magnetic beads, crystal oscillators, two-pin switches, diodes, and other two-pin components, as well as IC chips, connectors, transistors, multi-pin LEDs, multi-pin switches, and other multi-pin components. Connections exist not only between two components, but also between multiple components. The existing circuit partition methods mainly represent the netlist in a hypergraph. Assuming a hypergraph has node set S with K nodes, and edge (net) set E , partition methods aim to divide the K nodes into N subsets S 1 , S 2 , , S N with set size m 1 , m 2 , , m N , respectively.
Most of the existing hypergraph-based partitioning methods were proposed before 20 years ago  [3,4]. Although a partition set can be obtained, the partition result is hard to effectively evaluate, and it is far from being applied in the practical application. With the development of electronic-aided design technology, the design process is more standardized, and potential patterns contained in the netlist are more regular. Inspired by the manual partitioning of physical modules, in this paper we focus on the potential features and attributes contained in the netlist, and propose a circuit module partitioning method based on the analysis of netlist network attributes and potential patterns. The partition algorithm takes the PCB netlist as input, and the module subsets as output. It is expected that these partition modules can not only be physically adjacent, but also functionally independent. The main contributions of this paper are as follows:
(1)
The visualization analysis, attribute analysis, and pattern analysis of netlists are carried out, and the potential features and attributes in netlists are discovered.
(2)
Based on the potential features and attributes, a new approach to PCB netlist partition is proposed. The method first prepartitions the PCB netlist according to the network attributes, then presents three rules of classifying, matching, and force to redistribute the scattered components, and finally obtains the partition subsets.
(3)
The partition approach is evaluated on 11 netlists, outperforming the state of the arts on five different metrics. Experiments show that our approach based on network attributes and potential patterns can obtain 80–96% accuracy.
A preliminary version of this work was published in [5]. This paper improves upon [5] in the following aspects: (1) the netlist visualization is studied to help netlist analysis, and inspires us to develop algorithms of partition; (2) some generic circuit patterns and repetitive patterns are analyzed, which is meaningful for netlist partition; (3) our algorithm is analyzed at each stage using different rules, and we report the evaluation indices to show the necessity of each stage.
This paper is divided into six parts. Section 2 is the related research work. Section 3 discusses the discovery of potential patterns and analysis of network attributes in the netlist. Section 4 describes the partition method based on network attribute and patterns, and a large number of experiments illustrate the effectiveness of the proposed method in Section 5. Section 6 gives a discussion on experiments. Section 7 concludes and gives some thoughts on the future work.

2. Related Work

As mentioned above, the netlist is usually represented as a graph—a point set S and an edge set E between points and points, and the edge set E can be attached with weights to become a weighted graph [6]. The existing netlist partitioning algorithms mainly consider two types of problems:
(1)
How to divide, that is, the partition strategy;
(2)
How to reduce the time complexity of partition, that is, the partition efficiency [7].
Partition strategies can be roughly classified into four categories: methods based on graph cut by flow [8,9,10,11], heuristic methods [1,12], eigenvector method [13], and combinations of these methods [11,14,15,16]. Generally, the methods based on graph cut have high time complexity, and the heuristic algorithms are relatively fast. All these types of algorithms can be combined into a multilevel framework [3,11,17,18], which mainly divides the partition problem into multiple levels to reduce the scale of the problem, and leads to reduce the time complexity of partition.
Heuristic methods: Kernighan and Lin proposed a netlist partition algorithm, called KL algorithm, which is the most classic of the heuristic methods [1]. The KL algorithm partitions components by evaluating a heuristic value D, which is computed from the cost matrix, and it is a two-way partition approach applied to component partition on circuit boards. The KL algorithm was extended to different variations. Manna et al. [19] used the KL algorithm to partition on mesh-based network-on-chip. Rajan and Bhaiya [20] considered a parallel KL algorithm to partition the component on very-large-scale integrated circuit (VLSI) for fast solution. Manna and Teja [21] extended the KL algorithm to 3D network-on-chip, while Lei et al. extended the KL algorithm by using the balanced bi-partition theory of graphs, and improved it by giving a reasonable initial partition in the multilevel framework [22]. Areibi and Vannelli in [12] proposed a cluster-based heuristic method. They extracted component attributes from netlist, including component terminal count, common net count, the number of nets localized, common net fanout, and so on, to identify strongly connected components to reduce the netlist complexity.
Graph cut methods: Netlists are natural graphs with nodes and connection, so the traditional graph cut algorithms were easily taken to the netlist partition. Wei and Cheng presented a partition method called ratio cut, and solved the ratio cut by linear programming techniques via the MaxFlow [23], while Hamada et al. ultilized the ratio cut in the hierarchical way in [11]. Fiduccia and Matteyses [14] combined the min-cut and KL algorithm, and proposed an iterative min-cut heuristic method with a linear time, called FM algorithm. Liu et al. [9] proposed a two-way partition strategy by solving a replication graph cut problem. Karypis et al. [3] presented a multilevel paradigm of coarse-to-coarser to partition hypergraph in VLSI with over 100k vertices. Caldwell et al. [4] provided an implementation of hypergraph partition in VLSI. However, these methods only treated the netlist as a pure graph, so only the geometric connection of the netlist was considered in the partition process.
Eigenvector methods: Hadley et al. approximated the netlist as a weighted graph, and initially partitioned the weighted graph into k blocks of fixed module size by the eigenvector technique of Barnes [6]; they also gave the lower bounds on the number of cut nets using the tightly underestimated graph approximation and the simple eigenanalysis results [13].
Other methods: Monolithic 3D (M3D) integrated circuits are a promising technology that improves integration density greatly, which is orders of magnitude higher than that offered by through-silicon-vias, so the partition of M3D netlists has attracted a number of researchers [19,24,25,26]. Manna et al. extended the Kernighan–Lin bi-partitioning approach to a mesh-based network-on-chip (NoC) architecture, which optimized both communication cost and thermal variance [19]. Desai et al. represented a graph as an adjacency matrix, and considered the problem as a layer assignment problem for 3D VLSI circuits [24]. Panth et al. considered the partitioning and placement tasks simultaneously to produce high-quality M3D placement, and developed an O(N) min-overflow partitioner [25]. Hu et al. solved the partitioning task for 3D FPGA circuits using a three-phase algorithm from coarser to uncoarsening, and reduced the hyper-edge cut by a boundary greedy refinement algorithm [26].
The method proposed in this paper starts from the perspective of engineers designing schematic diagrams, considers the attributes of circuit connections to partition the netlist, and discovers potential patterns in netlists, so that a more accurate partition result can be obtained.

3. Circuit Analysis of PCB Netlists

As mentioned previously, a netlist contains various components and the connections between component pins. As the standardization of modern circuit design, the naming of components and network connections is regular. According to the input of netlist information, we can visualize netlists and discover important modules in the netlist; we can also study the distribution of signals by connecting network attributes to infer the approximate function of each module; further, through feature extraction, we can find some potential and fixed circuit structure, exploring modules with the same function to reduce the workload of layout and wiring. In this section, we conduct research and analysis on netlist visualization, net properties, and circuit-specific patterns to aid in the design of netlist partition algorithms.

3.1. Network Attribute Analysis

The network in the netlist refers to the connection between components. The connection can be between nodes or among multiple nodes. The main networks in the PCB netlist are usually divided into the following types according to the signal properties: signal network, power network, ground network, and clock network. The signal network can be subdivided into three types: data network, address network, and control network. Networks with different attributes also show different characteristics. Among all networks, the largest is the ground network, which has the largest number of connected components; the second largest are various power networks, because IC chips are generally active chips powered by power supplies; then there are various clock networks and signal networks. The data network and the address network are multiple parallel lines connected from one chip to another or a multi-pin connector. Chips also need clock signal. The attributes of networks are summarized as follows:
GND nets Power nets Signal nets Data signal nets Address signal nets Control signal nets Clock nets

3.2. Visualization for PCB Netlists

A netlist usually contains hundreds or thousands of components and connections, but it is usually of interest to ICs with more pins and important connections. In order to better view the connection relationship of each node in the entire netlist and analyze the functional structure of the entire netlist, it is necessary to visualize the netlist. Because the module partition is centered on the IC chip, in order to simplify the visualization of the netlist, only the connections between the IC chips in the netlist are considered. Among them, IC chips include memory chips, CPU, FPGA, power chip, DSP (digital signal processor), AD/DA, MCU (microcontroller), MEMS, active crystal oscillator, etc., as well as various customized SOCs. Our netlist visualization focuses on the topology structure obtained after ignoring power nets, GND nets, and other two-pin components and non-active multi-pin components in the netlist, and retaining the core components and core networks. The visual analysis of the netlist can highlight the dependencies between the core components in the netlist and inspire hierarchical module partition. As shown in Figure 1, the solid ellipse is the core component IC, and its size is proportional to the number of pins of the component, and the black solid line is the connection relationship. Components with more pins are in the center with close connection to the rest, and components with fewer pins are scattered around the edges of the graph. For example, in Figure 1, the largest U2 chip is an FPGA, the second largest, U32 and U37, are AD chips, and U3, U4, U19, U20, U21, and U22 are memory chips. Through such simplification for the netlist, it can be seen that the connection between IC and IC is a node-to-node association. Therefore, it can be considered to simplify the netlist into a plane graph instead of a hypergraph, which effectively reduces the complexity of netlist partition.

3.3. Circuit Pattern Analysis

Repetitive pattern: It is also found that there are often many identical or similar modules in the netlist. First, from the netlist visualization, the same or similar modules can be roughly inferred based on the size of the circle representing the IC. Secondly, we can also find the same module from the connecting circuit around each IC. The surrounding circuits of these same modules are not only partitioned the same, but the layout and routing can also be reused; see Figure 2. There are so many cases where the same submodule appears in the netlist. We give the statistics of the same modules in 11 netlists to show the importance of repetitive pattern recognition in Section 5.1. This pattern will be used later by the netlist partition method.
Generic circuit pattern: There are many generic circuit patterns in both digital and analog circuits. Here, we take the filtering circuit for example. The voltage output by the rectifier circuit is a one-way pulsating voltage that cannot be used directly for the electronic circuit. Therefore, the output voltage should be filtered to eliminate the alternating current (AC) component in the voltage, and then it will be used by the electronic circuit after becoming direct current (DC). In the filter circuit, components with special impedance characteristics to AC are mainly used, such as capacitors and inductors. Therefore, there are some fixed circuit structures to filter various electrical signals. Different filtering processes have different characteristics and adapt to different situations. As shown in Figure 3, there are eight kinds of filter circuits, in which R represents resistance, C represents capacitance, L represents inductance, Q represents triode, and D represents diode. These fixed circuit structures are summarized and become fixed patterns. These patterns are not explicit in the netlist, but require to be further discovered. If these fixed patterns can be discovered from the netlist, it would be very useful undoubtedly for the design of circuit partitioning algorithms.

4. Circuit Partitioning Based on Net Attributes and Patterns

In this section, we introduce the proposed method in detail. First, ICs are selected as key components, and the partition sets are initialized by cutting the attribute networks. Scattered components are allocated by classifying, matching, and force according to different circuit patterns.

4.1. Key Component Selecting and Initial Partitioning

As the development of circuit design technology progresses, the standardization of circuit design becomes better. It is observed that the nets are always specified by keywords. These keywords could help engineers to examine the information source flow. As mentioned in Section 3.1, networks include signal network, clock network, power network, and GND network. The data network generally includes keywords such as DATA and D, and some communication protocols, such as SPI and I2C, also belong to data networks. The address network generally includes keywords such as ADRESS, A, and Add, and the clock network generally includes CLOCK, CLK, CK; the power network mainly provides power for the components, generally including VCC, VDD, VEE, VPPPOWER; GND represents the ground network. When engineers design circuits, they often label important nets, called net attributes. The net attributes help us to discover the logical structure in netlists, and inspire us to propose the system initial partition based on net attributes.
First, we select ICs as key components, for which the most characteristic is that the number of pins are greater than three. A network usually connects multiple IC modules. Each module centers around an IC chip, and many components are connected to serve the IC chip, which should belong to the module. Cutting off the attribute network can form a natural and basic module partition, as shown in Figure 4. Since these components are closely related to the IC chip, there is no significant network attribute labeling on the connection relationship, so they will be automatically divided into the IC module. Assuming that each IC chip is the center, initial partition subsets, denoted by { S 1 , S 2 , , S N } , are formed by cutting important networks, which include the closely related components around them. It is noted that the number of pins of junctors and multi-pin switches are also more than three, but they are ignored in our algorithm since they are passive components and cannot be the center of modules.

4.2. Scattered Components Description

Unfortunately, some components that are between important networks will be scattered without affiliation to any subset of the IC chip. As shown in Figure 5, scattered components, for example, capacitors C455 and C456, are located between the power supply network S _ I M G D + 3.3 V and GND. When the important networks are cut, C455 and C456 are scattered because they could belong to any module, similar to C456, C447, and C430. The problem is that we do not know the affiliation for these capacitors just from the netlist; however, some clues are found from the schematic diagram of circuits. Let N S , N P , N G represent the sets of signal net, power supply net, and GND net, respectively. We summarize the scattered components into the following categories:
(1)
Components scattered between signal network N S and signal network N S , denoted by X S S .
(2)
Components scattered between signal network N S and power supply network N P denoted by X S P .
(3)
Components scattered between signal network N S and GND ground network N G , denoted by X S G .
(4)
Components scattered between power network N P and GND ground network N G , denoted by X P G .
In actuality, the cases would be more complicated, because X S S , X S P , X S G , and X P G could have intersection. Here, we just simplify the description. Scattered components in the netlists mainly include capacitors, resistors, inductors, and others. The numbers of capacitors and resistors are the most. Capacitors between the power network and GND network mainly play four roles: filtering, voltage regulation, energy storage, and bypass energy storage, while resistors mainly play the role of bleeder resistance effect. Assuming that the scattered components between the mth net and the nth net are adjacent, denoted by { x 1 m n , x 2 m n , , x N m n } X m n , we introduce three rules to perform assignment of these scattered components to modules.

4.3. Scattered Components Allocation by Classifying

It can be observed from some circuit schematic diagrams those that have been designed by human: according to the design habits of engineers, the resistors and capacitors in the same module are usually named similarly or closed. As shown in Figure 5, the scattered components can be allocated by nearest neighbor classifier due to the special circuit structure. Let X m n = { x 1 m n , x 2 m n , , x P m n } be the candidate set to be allocated, which connects multiple IC module sets { S 1 , S 2 , , S N 1 } . Let x p m n represent the pth component to be allocated between the net N n and N m by matching with the nearest neighbor method. d n 1 is short for d ( x p m n , S n 1 ) which represents the distance between the component x p m n and the subset S n 1 , and it is calculated according to the string of scattered components. We summarize the allocated Rule (1) as follows:
If d P ( x p m n , S P ) = min ( d 1 , d 2 , , d N 1 ) & d P ( x p m n , S P ) < T 1 Then S P { x p m n , S P } ,
in which S P refers to the closest set between the component x p m n and the subsets { S 1 , S 2 , , S N 1 } , and P [ 1 , 2 , , N 1 ] , X { X S S , X S P , X S G } . T 1 is the threshold set in advance.

4.4. Scattered Components Allocating by Force

If there still exists some components un-allocated between two nets N n and N m , they will be allocated by force, which is heuristic. So far, each module set contains a certain number of components. It is observed that the bigger IC modules have more capability to host the rest components. Assume the module set S i has m i components in it, which determines the force to attract the rest of the component. They can be allocated by Rule (2) as follows:
IF | S R | = max { | S 1 | , | S 2 | , , | S N 3 | } Then S R { x r m n , S R }
in which { S 1 , S 2 , , S N 3 } are connected modules by a certain net. The magnitude of force F is proportional to the number of components in the module set. The bigger the number of components, the greater the force.

4.5. Scattered Components Allocating by Module Matching

It is observed that a netlist always contains many of the same modules, and then they have the same electrical specification; see Figure 2. If some scattered components are located between two or multiple IC chip modules, which are the same or closed modules, then the peripheral circuits of the same IC module are almost the same. Thus, it is reasonable to think that the surrounding components are also the same. If the parameters of the scattered components among them are the same, they should be evenly allocated to these closed or the same multiple IC modules. Therefore, we first detect IC chips if they are closed or the same on an individual important network through IC parameters. These parameters include the number of pins and the statistics in the module set such as the number of capacitors, resistors, inductors, others, and volume.
Let F be a feature function of IC modules { S 1 , S 2 , , S N 2 } . P ( x q m n ) represents the parameters function of the scattered component x q m n including type and volume, in which x q m n refers to the rest components between net N n and N m after the first round of allocation by Rules (1) and (2). Assume S = { S 1 , S 2 , , S N 2 } , and S J is a subset in which the modules are closed or the same from S . We summarize the allocating Rule (3) as follows:
If P ( x q m n ) = P ( x q m n ) & | F ( S j ) F ( S j ) | < T 2 & | X Q | | S J | N , Then Allocate them equally . Else Allocate them roughly equally .
where X Q is the set of candidate components to be allocated, S J is the set of candidate subsets, | X Q | and | S J | are the cardinality of the set X Q and S J , respectively. N is the set of natural numbers, T 2 is the threshold set in advance.

4.6. The Proposed Algorithm

We summarize the whole algorithm in Algorithm 1. Our method requires a PCB netlist and thresholds T 1 and T 2 as input, and takes the PCB netlist partition sets { S 1 , S 2 , , S N } as output. T 1 and T 2 are two thresholds which need to be set in advance. T 1 is a tuning parameter and is empirically set. We set less than five through our experiments. Each component has to be allocated to a certain partition subset, and every subset has one IC as the center since all resistors, capacitors, inductors, transistors, and other non-IC components are supposed to serve the IC. Of course, some connectors and switches may be independent functionally; they are allocated to the nearest module through our algorithm. Partition initial sets are obtained in Section 4.1. Rules (1), (2), and (3) are explained in Section 4.3, Section 4.5 and Section 4.4, respectively. X S , X P refer to the sets connected to X S , X P , respectively, and they are denoted as follows:
X S = { X S S , X S P , X S G } ,
X P = { X P 1 G , , X P i G , } , i = 1 , 2 , , N .
N is the number of nets N P G connected to power nets and GND net. Since our algorithm is heuristic, the time complexity is quite low compared with graph cut algorithms. The time complexity of the initial partition is O ( 1 ) , and the time complexity of the second part—allocating scattered components by Rules (1)–(3)—is O ( K ) , where K is the number of components.
Algorithm 1 The algorithm of circuit partitioning for PCB netlist based on net attributes
Require: a PCB netlist with K components, the thresholds T 1 , T 2 ;
Ensure: PCB partition sets { S 1 , S 2 , , S N } ;
 Select IC as key components;
 Obtain Partition initial sets { S 1 i n i , S 2 i n i , , S N i n i } as in Section 4.1;
 /*Allocating scattered components by Rule (1);*/—Stage 1
repeat
x p select one element from X S ;
 Check module subsets { S 1 , , S N 1 } of x p connected;
If   d P ( x p , S P ) = min ( d 1 , d 2 , , d N 1 ) & d P ( x p , S P ) < T 1
   Then  S P { x p , S P }
     X S X S { x p } ;
     n n + 1 ;
until X S ( n ) = X S ( n + 1 ) .
 /*Allocating scattered components by Rule (2);*/—Stage 2
if X S
   repeat
   x r select one element from X S ;
   Check module subsets { S 1 , , S N 3 } of x p connected;
  If | S R | = max { | S 1 | , | S 2 | , , | S N 3 | }
    Then  S R { x r m n , S R } ;
       X S X S { x p } ;
    endif
     until  X S = ;
  endif
  /*Allocating scattered components by Rule (3);*/—Stage 3
   N = | { N P G } | ;
  repeat
   N i select one net from N P G ;
   N = N 1 ;
  Check module subsets { S 1 , S 2 , , S N 2 } of N i connected, and components in X P i G ;
   If q , q , j , j , s . t . x q , x q , X Q X P i G , S j , S j { S 1 , S 2 , , S N 2 } ;
       s. t. P ( x q ) = P ( x q ) & | F ( S j ) F ( S j ) | < T 2 & | X Q | | S J | N ,
      Then Allocate them equally;
      Else Allocate them roughly equally;
  until N = 0 .

5. Experimental Results

In the experimental section, we introduce our datasets and evaluation indices, and analyze comparison results.

5.1. Datasets

Since few netlist datasets are public, we build 11 PCB netlist datasets and partition the netlists into subsets manually. The number of components in 11 netlists is from dozens to 200 + , and the total number of pins in netlists is from hundreds to tens of thousands. In addition to IC chips, there are mainly resistors and capacitors, which account for more than 80 % of the total number of components, so that the scattered components are mainly resistors and capacitors. The statistics of resistors, capacitors, and inductors are shown in Figure 6, and the statistics of components, pins, and edges for the PCB netlist datasets are shown in Figure 7. We also report the total number of subsets in our datasets, and make statistics for the same modules in each netlist, which are shown from the third column to the twelfth column in Table 1. It can be seen that each netlist has multiple same modules. We test the proposed algorithm on the netlist datasets.

5.2. Evaluation Indices

Since the netlist partition is treated as a segmentation-like problem, the evaluation indices are borrowed from the image processing field. We compute partition accuracy (ACC), Dice similarity coefficient (Dice), intersection over union (IOU), sensitivity (SE), and precision (PR). These evaluation indices are computed from true positive (TP), true negative (TN), false positive (FP), and false negative (FN) [27]. Figure 8 shows how to compute TP, TN, FP, and FN in our case, in which
TP = A B FN = A A B FP = B A B TN = C A B
The ground truth set is in the green block, the partition set from the proposed method is in the red block, and components set in the gray block are the whole possible set.
ACC = TP + TN TP + TN + FP + FN
Dice = 2 TP FP + 2 TP + FN
IOU = TP FP + TP + FN
SE = TP TP + FN
PR = TP TP + FP
A is the ground truth set, B is the partition set, C is the whole candidate set, and A, B, and C are shown in Figure 8. Since we have multiple partition subsets in each netlist, the final evaluation is a weighted index through all subsets. The equation expression is as follows:
I = i = 1 N | S i | | S | · I i
in which N is the number of partition sets obtained from the method, S i is the ith partition subset, S is the whole set, and I i = [ACC, Dice, IOU, SE, PR] is the score vector for the ith partition subset.

5.3. Comparison Results

We compare our method with the MaxFlow algorithm [10]. The MaxFlow algorithm is a popular method for graph cut. We report the comparison results in Table 2. It can be seen that our proposed algorithm can achieve 82.8–96.8% on partition accuracy, 80.2–93.0% on Dice, 72.9–89.5% on IOU, 80.6–94.2% on SE, and 79.8–93.9% on precision, while MaxFlow only has 11.4–39.2% on partition accuracy, 15.2–68.5% on Dice, 10.4–59.4% on IOU, 19.4–55.8% on sensitivity, and 12.5–63.6% on precision. This is because the MaxFlow method only considers the geometric attributes, while our method considers not only the geometric connection but also the circuit network attributes, and discovers the potential patterns to help partition algorithm, so it outperforms the MaxFlow algorithm significantly through all netlist datasets. Especially for N2, N3, N4, N5, and N6, netlists that have more than 100 subsets, the partition results from our method are also as good as those netlists that have fewer than 100 subsets, such as ANDZ, N1, N7, N8, N9, and N10. That means our proposed method is universal for the datasets and can be applied to different netlists.

6. Discussion

We also analyze the three rules proposed in this paper, and report results on Stage 1, Stage 2, and Stage 3 of the algorithm in terms of ACC, Dice, IOU, SE, and PR in Table 3. The scattered components in X S are allocated by Rule (1) in the first stage, and the rest of the components in X S are allocated by Rule (3). The scattered components in X P are allocated by Rule (2). Rule (1) is useful for the components allocated between signal net and power net, and between signal nets. Rule (2) is useful to allocate the scattered components between power nets and GND net, which are usually repetitive modules. It can be seen that the results are improved one by one from Stage 1 to Stage 3, which means that the three rules summarized from our observation are meaningful. Rule (2) significantly improves the results from Stage 2 to Stage 3. It shows that a lot of repetitive modules exist in netlists. Even with a simple pattern discovered, the partition results are improved a lot.

7. Conclusions

In this paper we analyzed the potential features in netlists through visualization, and proposed a partition algorithm with consideration of net attributes and potential patterns in circuits for PCB netlists. We extracted the net attributes from netlist first, and initially partitioned netlists. Three rules were discovered from our observation of special circuit structures. The proposed algorithm is a heuristic approach. Compared with other existing heuristic methods, our approach tries to discover the potential patterns in the netlists. The proposed algorithm outperforms the MaxFlow algorithm which is a graph cut method in the evaluation indices of accuracy, Dice, IOU, SE, and PR. In the future work, more potential circuit patterns will be studied, and they will provide more clues for module partitioning.

Author Contributions

Conceptualization, Y.Z. and L.B.; methodology, Y.Z. and D.M.; software, D.M.; validation, Y.Z. and D.M.; formal analysis, Y.Z. and D.M.; investigation, Y.Z.; resources, Y.Z.; data curation, D.M.; writing—original draft preparation, Y.Z.; writing—review and editing, Y.Z. and L.B.; visualization, D.M.; supervision, Y.Z. and L.B.; project administration, Y.Z. and L.B.; funding acquisition, Y.Z. and L.B. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China (NSFC No. 61971106).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

The authors express their sincere appreciation and profound gratitude to Jian Yang (JUJN TECH Company Limited) for his valuable suggestions and paper proofing, and to research assistants Pingyou Jia and Hongtao Jiao for data collection.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Kernighan, B.W.; Lin, S. An efficient heuristic procedure for partitioning graphs. Bell Syst. Tech. J. 1970, 49, 291–307. [Google Scholar] [CrossRef]
  2. Kahng, B.K.; Lienig, L.; Markov, I.L. VLSI Physical Design: From Graph Partitioning to Timing Closure; Springer: Berlin/Heidelberg, Germany, 2011. [Google Scholar]
  3. Karypis, G.; Aggarwal, R.; Kumar, V.; Shekhar, S. Multilevel hypergraph partitioning: Applications in VLSI domain. IEEE Trans. Very Large Scale Integr. (VLSI) Syst. 1999, 7, 69–79. [Google Scholar] [CrossRef]
  4. Caldwell, A.E.; Kahng, A.B.; Markov, I.L. Design and implementation of move-based heuristics for VLSI hypergraph partitioning. J. Exp. Algorithmics (JEA) 2000, 5, 5-es. [Google Scholar] [CrossRef]
  5. Meng, D.; Zheng, Y.L. Circuit Partitioning for PCB Netlist Based on Net Attributes. In Proceedings of the International Conference on Machine Learning and Cybernetics, Toyama, Japan, 9–11 September 2022. [Google Scholar]
  6. Barnes, E.R. An algorithm for partitioning the nodes of a graph. Algebr. Discret. Methods Siam J. 1982, 3, 541–550. [Google Scholar] [CrossRef]
  7. Nayak, S.; Panda, S.; Panda, M. Circuit Partitioning optimization using Parallel refinement algorithm. In Proceedings of the International Conference on Applied Electromagnetics, Signal Processing and Communication (AESPC), Bhubaneswar, India, 22–24 October 2018. [Google Scholar]
  8. Ford, L.R.; Fulkerson, D.R. Flows in Networks; Princeton University Press: Princeton, NJ, USA, 1962; p. 11. [Google Scholar]
  9. Liu, L.T.; Kuo, M.T.; Cheng, C.K.; Hu, T.C. A replication cut for two-way partitioning. IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst. 1995, 14, 623–630. [Google Scholar]
  10. Boykov, Y.; Kolmogorov, V. An experimental comparison of min-cut/max-flow algorithms for energy minimization in vision. IEEE Trans. Pattern Anal. Mach. Intell. 2004, 26, 1124–1137. [Google Scholar] [CrossRef]
  11. Hamada, T.; Cheng, C.K.; Chau, P.M. An efficient multilevel placement technique using hierarchical partition. In Proceedings of the IEEE International Sympoisum on Circuits and Systems, Singapore, 11–14 June 1991. [Google Scholar]
  12. Areibi, S.; Vannelli, A. An efficient clustering technique for circuit partitioning. In Proceedings of the IEEE International Symposium on Circuits and Systems. Circuits and Systems Connecting the World (ISCAS), Atlanta, GA, USA, 12–15 May 1996. [Google Scholar]
  13. Hadley, S.W.; Mark, B.L.; Vannelli, A. An efficient eigenvector approach for finding netlist partitions. IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst. 1992, 11, 885–892. [Google Scholar] [CrossRef]
  14. Fiduccia, C.M.; Mattheyses, R.M. A linear-time heuristic for improving network partitionse. In Proceedings of the Design Automation Conference, Las Vegas, NV, USA, 14–16 June 1982; pp. 175–181. [Google Scholar]
  15. Sinha, B.; Laskar, N.M.; Sen, R.; Baishnab, K.L. Heuristics in Physical Design Partitioning: A Review. In Proceedings of the IEEE International Conference on Innovations in Information Embedded and Communication Systems (ICIIECS), Coimbatore, India, 19–20 March 2015. [Google Scholar]
  16. Yeh, C.W.; Cheng, C.K.; Lin, T.T. A general purpose, multiple-way partitioning algorithm. IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst. 1994, 13, 1480–1488. [Google Scholar]
  17. Cong, J.; Lim, S.L. Edge Separability-Based Circuit Clustering With Application to Multilevel Circuit Partitioning. IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst. 2004, 23, 346–357. [Google Scholar] [CrossRef]
  18. Cherng, J.S.; Chen, S.J. An efficient multilevel partitioning algorithm for VLSI circuits. In Proceedings of the IEEE International Conference on VLSI Design, New Delhi, India, 4–8 January 2003. [Google Scholar]
  19. Manna, K.; Choubey, V.; Chattopadhyay, S.; Sengupta, I. Thermal variance-aware application mapping for mesh based network-on-chip design using Kernighan-Lin partitioning. In Proceedings of the International Conference on Parallel, Distributed and Grid Computing, Solan, India, 11–13 December 2014; pp. 274–279. [Google Scholar]
  20. Rajan, A.K.; Bhaiya, D. VLSI partitioning using parallel kernighan lin algorithm. In Proceedings of the International Conference on Communication and Signal Processing (ICCSP), Chennai, India, 6–8 April 2017; pp. 1897–1901. [Google Scholar]
  21. Manna, K.; Teja, V.S.; Chattopadhyay, S.; Sengupta, I. TSV Placement and Core Mapping for 3D Mesh Based Network-on-Chip Design Using Extended Kernighan-Lin Partitioning. ACM Trans. Embed. Comput. Syst. (TECS) 2016, 16, 1–25. [Google Scholar] [CrossRef]
  22. Lei, X.; Liang, W.; Li, K.C.; Luo, H.; Hu, L.; Cai, J.; Li, Y. A New Multilevel Circuit Partitioning Algorithm Based on the Improved KL Algorithm. In Proceedings of the IEEE International Conference on Big Data Security on Cloud (BigDataSecurity), Washington, DC, USA, 27–29 May 2019. [Google Scholar]
  23. Wei, Y.; Cheng, C.K. Ratio cut partitioning for hierarchical designs. IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst. 1991, 10, 911–921. [Google Scholar] [CrossRef]
  24. Desai, S.M.; Gambhi, S.; Sharma, P. An Improved and Optimized Layer Assignment Partitioning Algorithm. In Proceedings of the IEEE International Conference Cloud System and Big Data Engineering, Noida, India, 14–15 January 2016. [Google Scholar]
  25. Panth, S.; Member, S.; Samadi, K.; Du, Y.; Lim, S.K. Placement-Driven Partitioning for Congestion Mitigation in Monolithic 3D IC Designs. IEEE Trans. Comput.-Aided Des. Integr. Circuit Syst. 2015, 34, 540–553. [Google Scholar] [CrossRef]
  26. Hu, L.R.; Duan, Q.; Qi, Z.; Wang, J.; Lai, J.M.; Yang, M. A new hyper-graph partitioning for 3D-FPGA. In Proceedings of the IEEE International Conference on Solid-State and Integrated Circuit Technology (ICSICT), Qingdao, China, 31 October–3 November 2018. [Google Scholar]
  27. Zhou, Z.H. Machine Learning; Tsinghua University Press: Beijing, China, 2016. [Google Scholar]
Figure 1. Schematic diagram for initial partitioning by cutting important attribute networks.
Figure 1. Schematic diagram for initial partitioning by cutting important attribute networks.
Applsci 12 08200 g001
Figure 2. Repetitive pattern. Panels (a,b) are two of the same IC modules from a single netlist, U25 and U27, in green blocks. The capacitors in red blocks between the power net and GND net are scattered, and would be allocated equally by IC module matching in Section 4.5.
Figure 2. Repetitive pattern. Panels (a,b) are two of the same IC modules from a single netlist, U25 and U27, in green blocks. The capacitors in red blocks between the power net and GND net are scattered, and would be allocated equally by IC module matching in Section 4.5.
Applsci 12 08200 g002
Figure 3. Eight different structures of filtering.
Figure 3. Eight different structures of filtering.
Applsci 12 08200 g003
Figure 4. Schematic diagram for initial partitioning by cutting important attribute networks, better viewed in color.
Figure 4. Schematic diagram for initial partitioning by cutting important attribute networks, better viewed in color.
Applsci 12 08200 g004
Figure 5. The examples of scattered components in schematic diagram of the circuit. Components in red blocks are scattered after initial partition.
Figure 5. The examples of scattered components in schematic diagram of the circuit. Components in red blocks are scattered after initial partition.
Applsci 12 08200 g005
Figure 6. The statistics of resistors, capacitors, inductors, and others for the datasets.
Figure 6. The statistics of resistors, capacitors, inductors, and others for the datasets.
Applsci 12 08200 g006
Figure 7. The statistics of components, pins, and edges for the PCB netlist datasets.
Figure 7. The statistics of components, pins, and edges for the PCB netlist datasets.
Applsci 12 08200 g007
Figure 8. How to compute TP, FN, FP, and TN. Ground truth set A is in the green block, partition set B from the proposed method is in the red block, and components set in the gray block are the whole candidate set C. Better viewed in color. T P = A B , F N = A A B , F P = B A B , T N = C A B .
Figure 8. How to compute TP, FN, FP, and TN. Ground truth set A is in the green block, partition set B from the proposed method is in the red block, and components set in the gray block are the whole candidate set C. Better viewed in color. T P = A B , F N = A A B , F P = B A B , T N = C A B .
Applsci 12 08200 g008
Table 1. The statistics of the number of subsets and repetitive modules in each netlist dataset.
Table 1. The statistics of the number of subsets and repetitive modules in each netlist dataset.
Netlist IDNo. of SubsetsNo. of Same Modules
23456710121320
ANDZ577110012200
N1363020000000
N21472010010000
N31205400000000
N41527320300000
N51239011200000
N614410302010000
N7531080000000
N8946131010000
N9465100100000
N109014290102112
Table 2. Comparison results. Results are compared with MaxFlow [10] in terms of ACC, Dice, IOU, SE, and PR.
Table 2. Comparison results. Results are compared with MaxFlow [10] in terms of ACC, Dice, IOU, SE, and PR.
DatasetsACCDiceIOUSEPR
MaxFlowOursMaxFlowOursMaxFlowOursMaxFlowOursMaxFlowOurs
ANDZ11.496.822.491.415.687.728.789.018.493.9
N137.186.926.385.817.777.135.387.221.584.4
N239.284.953.288.440.580.855.888.950.887.9
N334.391.644.888.732.982.750.186.840.590.7
N434.584.432.980.223.172.935.780.630.579.8
N535.786.641.881.131.673.341.480.642.281.6
N630.089.333.984.923.577.735.085.032.984.8
N717.688.815.293.010.489.519.494.212.591.8
N822.984.938.682.729.276.243.484.334.881.2
N953.682.868.591.159.485.874.291.263.691.0
N1038.089.855.192.844.688.454.693.155.692.5
Table 3. Comparison results on each stage in terms of ACC, Dice, IOU, SE, and PR. Each stage corresponds to each step in Algorithm 1.
Table 3. Comparison results on each stage in terms of ACC, Dice, IOU, SE, and PR. Each stage corresponds to each step in Algorithm 1.
DatasetsStage 1Stage 2Stage 3
ACCDiceIOUSEPRACCDiceIOUSEPRACCDiceIOUSEPR
ANDZ91.286.980.581.692.993.589.784.885.294.796.891.487.789.093.9
N153.862.248.951.578.555.264.051.155.575.686.985.877.187.284.4
N233.048.035.335.474.543.561.649.051.077.884.988.480.888.987.9
N367.572.360.961.088.774.781.672.573.392.091.688.782.786.890.7
N449.455.946.447.268.563.265.556.758.873.988.480.272.980.679.8
N541.450.239.639.868.048.459.950.050.374.086.681.173.380.681.6
N662.168.358.659.480.371.574.565.368.581.789.384.977.785.084.8
N764.476.465.265.292.267.578.367.368.791.088.893.089.594.291.8
N854.364.853.855.777.559.770.560.563.579.284.982.776.284.381.2
N940.248.541.541.558.343.362.855.356.071.582.891.185.891.291.0
N1066.977.167.668.588.278.285.278.280.390.789.892.888.493.192.5
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Zheng, Y.; Meng, D.; Bai, L. PCB Network Analysis for Circuit Partitioning. Appl. Sci. 2022, 12, 8200. https://0-doi-org.brum.beds.ac.uk/10.3390/app12168200

AMA Style

Zheng Y, Meng D, Bai L. PCB Network Analysis for Circuit Partitioning. Applied Sciences. 2022; 12(16):8200. https://0-doi-org.brum.beds.ac.uk/10.3390/app12168200

Chicago/Turabian Style

Zheng, Yali, Da Meng, and Libing Bai. 2022. "PCB Network Analysis for Circuit Partitioning" Applied Sciences 12, no. 16: 8200. https://0-doi-org.brum.beds.ac.uk/10.3390/app12168200

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop