Series-parallel equivalent fault compression method for smart meter integrated circuits

By identifying the series-parallel relationship in the smart meter integrated circuit, equivalent fault compression is achieved, which solves the problem of time-consuming and high-cost fault injection in fault diagnosis and improves the efficiency of fault diagnosis.

CN115469261BActive Publication Date: 2024-09-24UNIV OF ELECTRONICS SCI & TECH OF CHINA
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211019237.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-24
Publication Date
2024-09-24
Estimated Expiration
2042-08-24

AI Technical Summary

Technical Problem

In the existing technology for fault diagnosis of analog/mixed-signal integrated circuits in smart meters, the fault injection process is time-consuming and costly, and there is a lack of effective fault injection strategies, resulting in low diagnostic efficiency.

Method used

By identifying the series and parallel relationships of devices in integrated circuits, constructing netlist files and matrix models, the identification and merging of series and parallel devices can be realized, and equivalent fault compression can be performed to reduce the number of fault injections and diagnosis time.

Benefits of technology

It effectively shortens the fault diagnosis time, reduces the economic cost of fault injection, and improves the efficiency of fault diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115469261B
    Figure CN115469261B
Patent Text Reader

Abstract

The present invention discloses a method for compressing series-parallel equivalent faults of a smart meter integrated circuit, constructs a netlist file of the integrated circuit, constructs a relationship model between devices and network nodes according to the netlist file, obtains a device-node matrix, identifies series devices according to the device-node matrix, constructs a series device matrix and a series quantity matrix according to the obtained series group, and then merges the series relationship based on the two matrices to obtain a final series device set; identifies parallel devices according to the device-node matrix to obtain a parallel device set, and finally performs equivalent fault compression based on the series device set and the parallel device set. The present invention identifies the series and parallel relationships of all devices in the integrated circuit, and then realizes equivalent fault compression, thereby reducing the number of fault injections and shortening the fault diagnosis time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of smart electric meters, and more specifically, relates to a series-parallel equivalent fault compression method for a smart electric meter integrated circuit. Background Art

[0002] Smart meters are smart terminals of smart grids. In addition to the basic electricity consumption metering function of traditional electric energy meters, in order to adapt to the use of smart grids and new energy, they also have two-way multi-rate metering function, user-side control function, two-way data communication function with multiple data transmission modes, anti-electricity theft function and other intelligent functions. Smart meters represent the development direction of smart terminals for end users of energy-saving smart grids in the future. In smart meters, analog / mixed signal integrated circuits are widely used, which is very critical to the reliability of smart meters. When integrated circuits fail, it may cause significant losses and serious impacts, and effective fault diagnosis methods are urgently needed.

[0003] Traditional fault diagnosis methods require fault injection for all devices in integrated circuits. However, due to the large number of devices and multi-pin devices such as transistors and MOS tubes, fault injection covering all devices requires huge time and economic costs. How to reduce the number of fault injections and reduce time costs has become a serious problem in fault diagnosis. However, domestic research on simplified fault injection is still in its infancy, and existing research results are very scarce. Advanced fault diagnosis algorithms have been monopolized by foreign technology giants such as Cadence. Solving the problem of technical monopoly in fault diagnosis is still very urgent.

[0004] Fault injection is a key step in fault diagnosis. Its modes are mainly divided into open circuit, short circuit and parameter drift. For impedance devices, the characteristic impedance needs to be changed; for non-impedance devices, fault modeling is achieved by setting open circuit impedance and short circuit impedance; parameter drift is achieved by modifying characteristic parameters. Among them, the two hard faults of open circuit and short circuit can best reflect the fault condition of the circuit. A large number of open circuit and short circuit faults need to be injected during fault injection. If all devices are covered for fault injection, it is too inefficient. However, if the series and parallel relationship of the circuit can be determined before injection, an open circuit fault can be injected into any device in the series branch and a short circuit fault can be injected into any device in the parallel branch, thereby replacing the hard fault injection of all devices, thereby saving a lot of time. However, for analog / mixed signal integrated circuits of smart meters, no effective fault injection strategy has been proposed. Summary of the invention

[0005] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a series-parallel equivalent fault compression method for a smart meter integrated circuit, which identifies the series and parallel relationships of all devices in the integrated circuit, thereby realizing equivalent fault compression, thereby reducing the number of fault injections and shortening the fault diagnosis time.

[0006] In order to achieve the above-mentioned object of the invention, the series-parallel equivalent fault compression method of the smart meter integrated circuit of the present invention comprises the following steps:

[0007] S1: According to the actual situation, the network nodes are marked in the analog / mixed signal integrated circuit of the smart meter, and then the netlist file of the integrated circuit is constructed. The netlist file contains all the devices and device parameter values, as well as the connection relationship between each device and the preset network node; the netlist file is parsed, and the matrix is ​​constructed by taking the "device name" as the row of the matrix and the "node name" as the column of the matrix, and then the netlist file is compared. If a device and a node in the netlist file have a mutual connection relationship, the element at the corresponding position of the matrix is ​​marked as "1", otherwise it is "0"; in the constructed matrix, the all-0 columns are removed to obtain a matrix of size M×N as the device-node matrix S, where M represents the number of devices and N represents the number of retained nodes;

[0008] S2: Use the following method to identify the series devices:

[0009] S2.1: Traverse each column in the device-node matrix S. If the sum of all the values ​​in the column is not 2, or the values ​​of the rows where the power supply and ground are located are 1, it means that the column is not in series and it is deleted from the device-node matrix S. Otherwise, it means that the column is a series column and the row number with the value 1 in the column is recorded. The number of series columns finally obtained is recorded as N′, and the device-node matrix after the series column screening is A, whose size is M×N′; construct a series information matrix C of size N′×2, whose two values ​​in the nth row are the row numbers with the value 1 in the series column, n=1,2,…,N′;

[0010] S2.2: For the row numbers represented by the two values ​​in each row of the series information matrix C, determine the devices corresponding to the two row numbers in the row according to the construction process of the device-node matrix S, and obtain the device group φ corresponding to each row in the series information matrix C n , and then determine each device group φ in the following three cases n The series relationship of the devices in the circuit is:

[0011] If the device group φ n If both devices are two-terminal components, it is determined that the two devices are in a series relationship and the two devices are regarded as a series group;

[0012] If the device group φ nIf one of the two devices is a two-terminal component and the other is a three-terminal component, it is determined that the two devices are in a series relationship, and the port name of the three-terminal component connected in series with the two-terminal component is determined according to the device information, and the ports of the two-terminal component and the three-terminal component are regarded as a series group;

[0013] If the device group φ n If both devices are three-terminal components, then determine whether the G poles of the two three-terminal components are connected together. If not, they are not connected in series. If so, further determine whether the other two poles of the two three-terminal components satisfy that one pole node is the same and the other pole node is different. If not, they are not connected in series. If so, the two three-terminal components are treated as a series group.

[0014] The final number of series groups is K. s , take the two device names corresponding to each series group as the two element values ​​of a row, and construct a K-sized s ×2 series device matrix R s ; Then construct a size of K s ×2 concatenated number matrix Num s , whose element value Num s [i][j] is the series device matrix R s Element R s The sum of all values ​​of the row in the series information matrix C corresponding to the device [i][j], i = 0, 1, ..., K s -1, j = 0, 1;

[0015] S2.3: Based on the series device matrix R s And the concatenated number matrix Num s The specific method for merging multiple devices in series is as follows:

[0016] 1) Set row number i=0;

[0017] 2) Determine the series number matrix Num s Is Num s [i][0]=Num s [i][1]=0, if not, go to step 3), otherwise go to step 6);

[0018] 3) Connect the series device matrix R s The two devices corresponding to the i-th row in the series constitute a set of devices in series; then determine Num s [i][0]、Num s Is there any one of [i][1] equal to 2? If not, let Num s [i][0]=Num s [i][1]=0, and delete the series device matrix R sIf the element in the i-th row is found, go to step 6), otherwise go to step 4);

[0019] 4) Command line number if Device Otherwise, the device

[0020] 5) From the series device matrix R s Filter out row i' containing device c, add device c' in the same row to the existing series device set of device c, and let And delete the series device matrix R s Middle row element;

[0021] 6) Determine the number of devices c′ in the series number matrix Num s Is the corresponding element in the i′th row equal to 2? If not, let Num s [i′][0]=Num s [i′][1]=0, and delete the series device matrix R s The i′th row element in the , go to step 7), otherwise set device c = c′, Return to step 5);

[0022] 7) Determine whether i<K s -1, if yes, set i=i+1 and return to step 2), if no, obtain the set of all series devices as the series device identification result;

[0023] S3: Use the following method to identify parallel devices:

[0024] 1) Set row number m=0;

[0025] 2) Determine whether all values ​​in the mth row of the device-node matrix S are all 0, if so, proceed to step 7), otherwise proceed to step 3);

[0026] 3) Let row number m′=m+1;

[0027] 4) Determine whether the row vector of the mth row and the row vector of the m+1th row in the device-node matrix S are the same. If so, add the device corresponding to the m+1th row in the device-node matrix S to the parallel device set of the device corresponding to the mth row, and set all the data of the m+1th row in the device-node matrix S to 0, otherwise do nothing;

[0028] 5) Determine whether m′<M-1, if so, set m′=m′+1 and return to step 4), otherwise go to step 6);

[0029] 6) Determine whether the parallel device set of the device corresponding to the mth row in the device-node matrix S is empty. If so, directly proceed to step 7); otherwise, add the device corresponding to the mth row to its parallel device set, and then proceed to step 7);

[0030] 7) Determine whether m<M-1, if so, set m=m+1, and return to step 2), otherwise, take all the parallel device sets that are not empty as the parallel device identification results;

[0031] S4: According to actual conditions, a device is selected from each series device set and parallel device set as a representative device, and the failure of the device is regarded as an equivalent failure of the entire device set to achieve equivalent failure compression.

[0032] The present invention discloses a method for compressing series-parallel equivalent faults of an integrated circuit of a smart electric meter. The method comprises the following steps: constructing a netlist file of the integrated circuit, constructing a relationship model between devices and network nodes according to the netlist file, obtaining a device-node matrix, identifying series devices according to the device-node matrix, constructing a series device matrix and a series quantity matrix according to the obtained series groups, and then merging the series relationships based on the two matrices to obtain a final series device set; identifying parallel devices according to the device-node matrix to obtain a parallel device set, and finally performing equivalent fault compression based on the series device set and the parallel device set.

[0033] The present invention identifies the series and parallel relationships of all devices in an integrated circuit, thereby achieving equivalent fault compression, thereby reducing the number of fault injections and shortening the fault diagnosis time. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 This is an equivalent example diagram of a parallel short-circuit fault;

[0035] Figure 2 This is an example diagram of the equivalent fault of a series open circuit;

[0036] Figure 3 It is a flow chart of a specific implementation method of the series-parallel equivalent fault compression method of the smart meter integrated circuit of the present invention;

[0037] Figure 4 This is an example diagram of a netlist file for an analog / mixed-signal integrated circuit in a smart meter;

[0038] Figure 5 is a flow chart of series device identification in the present invention;

[0039] Figure 6 1 is an example diagram of the circuit and netlist file of the example circuit in this embodiment. DETAILED DESCRIPTION

[0040] The specific implementation of the present invention is described below in conjunction with the accompanying drawings so that those skilled in the art can better understand the present invention. It should be noted that in the following description, when the detailed description of known functions and designs may dilute the main content of the present invention, these descriptions will be omitted here.

[0041] Example

[0042] In order to better illustrate the technical solution of the present invention, the concept of fault equivalence is first briefly described. The concept of fault equivalence is mainly divided into series fault equivalence and parallel fault equivalence:

[0043] Parallel short-circuit fault equivalence: Short-circuit fault injection in parallel branches is equivalent to each other. Figure 1 This is an example diagram of the equivalent of a parallel short-circuit fault. Figure 1 As shown, if a short-circuit fault is injected into the DS pole of the PMOS tube M1 in the figure, it is equivalent to connecting a very small resistor r between the D pole and the S pole, which is equivalent to a short circuit between the D and G poles of the PMOS tube M2. When injecting a fault, only one of the situations needs to be injected.

[0044] Series open circuit equivalent fault: Open circuit fault injection in branches connected in series is equivalent to each other. Figure 2 This is an example diagram of the equivalent fault of a series open circuit. Figure 2 As shown, if the resistor R2 is open, the fault injection result is the same as that when any one of the resistors R1 and R3 is open, that is, they are equivalent.

[0045] Based on the above principle, the present invention compresses the faults in the smart meter integrated circuit, thereby streamlining the fault injection process. Figure 3 FIG. 1 is a flow chart of a specific implementation method of the series-parallel equivalent fault compression method of the smart meter integrated circuit of the present invention. Figure 3 As shown, the specific steps of the series-parallel equivalent fault compression method of the smart meter integrated circuit of the present invention include:

[0046] S301: Constructing device-node matrix:

[0047] According to the actual situation, the network nodes are marked in the analog / mixed signal integrated circuits in the smart meter, and then the netlist file of the integrated circuit is constructed. The netlist file contains all devices and device parameter values, as well as the connection relationship between each device and the preset network node. Parse the netlist file, use the "device name" as the row of the matrix and the "node name" as the column of the matrix to construct a matrix, and then compare the netlist file. If a device and a node in the netlist file have a mutual connection relationship, the element at the corresponding position of the matrix is ​​marked as "1", otherwise it is "0". Remove the all-0 columns (that is, remove the corresponding node data) from the constructed matrix to obtain a matrix of size M×N as the device-node matrix S, where M represents the number of devices and N represents the number of retained nodes.

[0048] Figure 4 The following is an example of a netlist file for an analog / mixed-signal integrated circuit in a smart meter. Figure 4 As shown in the figure, 0-5 represent network nodes in the integrated circuit. The first column in the constructed netlist file is the device name, the second and third columns are the network node numbers connected to the device, and the fourth column is the value of the device. Table 1 is based on Figure 4 The device-node matrix generated by the netlist file shown.

[0049] Node 0 Node 1 Node 2 Node 3 Node 5 Node 4 R7 0 1 1 0 0 0 R6 0 1 1 0 0 0 R5 0 1 1 0 0 0 R4 0 0 1 1 0 0 R3 0 0 0 1 1 0 R2 1 0 0 0 1 0 R1 0 1 0 0 0 1 V1 1 0 0 0 0 1

[0050] Table 1

[0051] As shown in Table 1, since there is no all-0 column in the generated matrix, the size of the generated device-node matrix S is 8*5.

[0052] S302: Series device identification:

[0053] Figure 5 Flow chart of the series device identification in the present invention. Figure 5 As shown, the specific steps of identifying the series device in the present invention include:

[0054] S501: Filter concatenated columns:

[0055] Traverse each column in the device-node matrix S. If the sum of all the values ​​in the column is not 2, or the values ​​of the rows where the power supply and ground are located are 1, it means that the column is not in series and it is deleted from the device-node matrix S. Otherwise, it means that the column is a series column and the row number with a value of 1 in the column is recorded. The number of series columns finally obtained is N′, and the device-node matrix after the series column screening is A, whose size is M×N′. Construct a series information matrix C of size N′×2, whose two values ​​in the nth row are the row numbers with a value of 1 in the series column, n=1,2,…,N′.

[0056] S502: Determine the series relationship of the devices:

[0057] According to the generation process of the series information matrix C, each row value represents a value of 1 in a column of the device-node matrix S. For example, C[3][0]=18, C[3][1]=3 means S

[18] [3]=1, S[3][3]=1, and the row number in the device-node matrix S corresponds to the device name. Therefore, the corresponding device can be determined according to the series information matrix C, thereby determining the series relationship of the device. The specific method is as follows:

[0058] For the row numbers represented by the two values ​​in each row of the series information matrix C, the devices corresponding to the two row numbers in the row are determined according to the construction process of the device-node matrix S, and the device group φ corresponding to each row in the series information matrix C is obtained. n , and then determine each device group φ in the following three cases n The series relationship of the devices in the circuit is:

[0059] If the device group φ n If both devices are two-terminal components, it is determined that the two devices are in a series relationship and the two devices are regarded as a series group.

[0060] If the device group φ n If one of the two devices is a two-terminal component and the other is a three-terminal component, it is determined that the two devices are in a series relationship. The port name of the three-terminal component connected in series with the two-terminal component is determined based on the device information, and the two-terminal component and the three-terminal component ports are regarded as a series group. By distinguishing the ports of the three-terminal component, it is avoided that the two-terminal device is connected in series with one port of the three-terminal device and then connected in series with other two-terminal devices from the other port.

[0061] If the device group φ n If both devices are three-terminal components, determine whether the G poles of the two three-terminal components are connected together. If not, they are not connected in series. If so, further determine whether the other two poles of the two three-terminal components satisfy that one pole node is the same and the other pole node is different. If not, they are not connected in series. If so, the two three-terminal components are treated as a series group.

[0062] The final number of series groups is K. s , take the two device names corresponding to each series group as the two element values ​​of a row, and construct a K-sized s ×2 series device matrix R s . Then construct a s ×2 concatenated number matrix Num s , whose element value Num s [i][j] is the series device matrix R s Element R sThe sum of all values ​​of the row in the series information matrix C corresponding to the device [i][j], i = 0, 1, ..., K s -1, j=0,1.

[0063] S503: Series relationship merging:

[0064] Step S502 obtains all devices connected in series. Next, we need to calculate the device matrix R based on the series device matrix R. s And the concatenated number matrix Num s The specific method for merging multiple devices in series is as follows:

[0065] 1) Set row number i=0;

[0066] 2) Determine the series number matrix Num s Is Num s [i][0]=Num s [i][1]=0, if not, go to step 3), otherwise go to step 6);

[0067] 3) Connect the series device matrix R s The two devices corresponding to the i-th row in the series constitute a set of devices in series. Then determine Num s [i][0]、Num s Is there any one of [i][1] equal to 2? If not, let Num s [i][0]=Num s [i][1]=0, and delete the series device matrix R s If the element in the i-th row is found, go to step 6), otherwise go to step 4).

[0068] 4) Command line number if Device Otherwise, the device

[0069] 5) From the series device matrix R s Filter out row i' containing device c, add device c' in the same row to the existing series device set of device c, and let And delete the series device matrix R s Middle Row element.

[0070] 6) Determine the number of devices c′ in the series number matrix Num s Is the corresponding element in the i′th row equal to 2? If not, let Num s [i′][0]=Num s [i′][1]=0, and delete the series device matrix R sThe i′th row element in the , go to step 7), otherwise set device c = c′, Return to step 5).

[0071] 7) Determine whether i<K s -1, if yes, let i=i+1 and return to step 2), if no, the set of all series devices will be obtained as the series device identification result.

[0072] Assume i = 3, Num s [3][0]=2, and R s [6][1]=R s [3][0], then R s [6][1] Added to R s [3][0] In the existing series device set, continue to determine Num s [6][0] is 2, if not, then R s [6][0] If there are no other devices in series, the series connection ends. Otherwise, it means R s [6][0] Also with R s Devices other than [6][1] are connected in series and identification continues.

[0073] S303: Parallel device identification:

[0074] Use the following method to identify parallel devices:

[0075] 1) Let row number m=0.

[0076] 2) Determine whether all values ​​in the mth row of the device-node matrix S are all 0. If so, proceed to step 7), otherwise proceed to step 3).

[0077] 3) Let row number m′=m+1;

[0078] 4) Determine whether the row vector of the mth row and the row vector of the m+1th row in the device-node matrix S are the same. If so, add the device corresponding to the m+1th row in the device-node matrix S to the parallel device set of the device corresponding to the mth row, and set all the data of the m+1th row in the device-node matrix S to 0 to avoid repeated judgment; otherwise, do nothing;

[0079] 5) Determine whether m′<M-1. If so, set m′=m′+1 and return to step 4). Otherwise, go to step 6).

[0080] 6) Determine whether the parallel device set corresponding to the device in the mth row in the device-node matrix S is empty. If so, directly proceed to step 7). Otherwise, add the device corresponding to the mth row to its parallel device set, and then proceed to step 7).

[0081] 7) Determine whether m<M-1, if so, set m=m+1, and return to step 2), otherwise, take all the obtained non-empty parallel device sets as the parallel device identification results.

[0082] S304: Equivalent fault compression:

[0083] According to the actual situation, a device is selected from each series device set and parallel device set as a representative device, and the fault of the device is regarded as the equivalent fault of the entire device set to achieve equivalent fault compression.

[0084] In practical applications, when selecting a representative device, the occurrence probability and fault injection cost of the device can be considered comprehensively. The specific method is: statistically record the failure probability of the device as γ, obtain the fault injection cost of the device failure and normalize it to the range of [0,1], record the normalized fault injection cost as y, and use the following formula to calculate the comprehensive score of the device:

[0085] score=λ1×(1-γ)+λ2×y

[0086] Among them, λ1 and λ2 are preset weights.

[0087] The device with the smallest comprehensive score is selected from the device set as the representative device.

[0088] In order to better illustrate the specific process of the present invention, an example circuit is used to experimentally verify the present invention. Since the overall circuit of the smart meter is too complicated, this embodiment uses a simple circuit drawn by itself as an example for illustration. Figure 6 1 is an example diagram of the circuit and netlist file of the example circuit in this embodiment.

[0089] First, generate the initial device-node matrix according to the netlist file and delete the all-0 columns to obtain the device-node matrix. Table 1 is Figure 6 Device-node matrix for the example circuit shown.

[0090]

[0091]

[0092] Table 1

[0093] Next, we will identify the series devices and parallel devices respectively:

[0094] ●Series device identification

[0095] First, delete the columns where the sum of the columns is not 2 and the rows where the power supply and ground are 1, exclude the cases where they are not in series, power supply and ground, filter out the series columns, and obtain the series information matrix. Then traverse the series information matrix, determine the series relationship of the devices, and store the two devices determined to have a series relationship in the series device matrix. Table 2 is the device-node matrix after the series columns are filtered in this embodiment. Table 3 is the series device matrix in this embodiment.

[0096]

[0097]

[0098] Table 2

[0099]

[0100] Table 3

[0101] Since one device may be connected in series with multiple other devices (for example, Figure 6 R10 in the example is connected in series with R13 and also connected in series with the first port of Q1), so the series devices need to be merged into a series device set. The series device set obtained in this embodiment includes {R9, Q1_2}, {M3, M4}, {R10, Q1_1, R13}, {L2, R11, R15, C1}, {R12, M3_3}. Figure 6 As can be seen from the circuit diagram shown, each set of series-connected devices obtained by the present invention includes all devices of a series branch, and the series relationship between all devices is accurately determined.

[0102] ●Parallel device identification

[0103] Based on the device-node matrix S shown in Table 1, parallel devices are identified, and the obtained parallel set includes {L1, R2}, {R4, R7, R3}, {M2, M1}. Figure 6 As can be seen from the circuit diagram shown, each parallel device set obtained by adopting the present invention includes all devices of a parallel branch, and the parallel relationship between all devices is accurately determined.

[0104] In order to test the efficiency of the present invention, the method of the present invention is applied to an integrated circuit containing 2000 devices. It takes 2.6147255 seconds to obtain the identification result of the series device, and 4.5910019 seconds to obtain the identification result of the parallel device. After manual comparison with the integrated circuit diagram, it is confirmed that the judgment is accurate. It can be seen that the present invention can quickly and accurately determine the series and parallel relationship of the circuit, realize the equivalent compression of series and parallel faults, and save a lot of time and cost for fault injection.

[0105] Although the above describes the illustrative specific embodiments of the present invention to facilitate those skilled in the art to understand the present invention, it should be clear that the present invention is not limited to the scope of the specific embodiments. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations using the concept of the present invention are protected.

Claims

1. A method for compressing series-parallel equivalent faults of smart meter integrated circuits, characterized in that: The following steps are involved: S1: According to the actual situation, the network nodes are marked in the analog / mixed signal integrated circuit of the smart meter, and then the netlist file of the integrated circuit is constructed. The netlist file contains all the devices and device parameter values, as well as the connection relationship between each device and the preset network node; the netlist file is parsed, and the matrix is ​​constructed by taking "device name" as the row of the matrix and "node name" as the column of the matrix, and then the netlist file is compared. If a device and a node in the netlist file have a mutual connection relationship, the element at the corresponding position of the matrix is ​​marked as "1", otherwise it is "0"; in the constructed matrix, the all-0 columns are removed to obtain a matrix of size M×N as the device-node matrix S, where M represents the number of devices and N represents the number of retained nodes; S2: Use the following method to identify the series devices: S2.1: Traverse each column in the device-node matrix S. If the sum of all the values ​​in the column is not 2, or the values ​​of the rows where the power supply and ground are located are 1, it means that the column is not in series and it is deleted from the device-node matrix S. Otherwise, it means that the column is a series column and the row number with the value 1 in the column is recorded. The number of series columns finally obtained is recorded as N′, and the device-node matrix after the series column screening is A, whose size is M×N′; construct a series information matrix C of size N′×2, whose two values ​​in the nth row are the row numbers with the value 1 in the series column, n=1,2,…,N′; S2.2: For the row numbers represented by the two values ​​in each row of the series information matrix C, determine the devices corresponding to the two row numbers in the row according to the construction process of the device-node matrix S, and obtain the device group φ corresponding to each row in the series information matrix C n , and then determine each device group φ in the following three cases n The series relationship of the devices in the circuit is: If the device group φ n If both devices are two-terminal components, it is determined that the two devices are in a series relationship and the two devices are regarded as a series group; If the device group φ n If one of the two devices is a two-terminal component and the other is a three-terminal component, it is determined that the two devices are in a series relationship, and the port name of the three-terminal component connected in series with the two-terminal component is determined according to the device information, and the ports of the two-terminal component and the three-terminal component are regarded as a series group; If the device group φ n If both devices are three-terminal components, then determine whether the G poles of the two three-terminal components are connected together. If not, they are not connected in series. If so, further determine whether the other two poles of the two three-terminal components satisfy that one pole node is the same and the other pole node is different. If not, they are not connected in series. If so, the two three-terminal components are treated as a series group. The final number of series groups is K. s , take the two device names corresponding to each series group as the two element values ​​of a row, and construct a K-sized s ×2 series device matrix R s ; Then construct a size of K s ×2 concatenated number matrix Num s , whose element value Num s [i][j] is the series device matrix R s Element R s The sum of all values ​​of the row in the series information matrix C corresponding to the device [i][j], i = 0, 1, ..., K s -1, j = 0, 1; S2.3: Based on the series device matrix R s And the concatenated number matrix Num s The specific method for merging multiple devices in series is as follows: 1) Set row number i=0; 2) Determine the series number matrix Num s Is Num s [i][0]=Num s [i][1]=0, if not, go to step 3), otherwise go to step 6); 3) Connect the series device matrix R s The two devices corresponding to the i-th row in the series constitute a set of devices in series; then determine Num s [i][0]、Num s Is there any one of [i][1] equal to 2? If not, let Num s [i][0]=Num s [i][1]=0, and delete the series device matrix R s If the element in the i-th row is found, go to step 6), otherwise go to step 4); 4) Command line number if Device Otherwise, the device 5) From the series device matrix R s Filter out row i' containing device c, add device c' in the same row to the existing series device set of device c, and let And delete the series device matrix R s Middle row element; 6) Determine the number of devices c′ in the series number matrix Num s Is the corresponding element in the i′th row equal to 2? If not, let Num s [i′][0]=Num s [i′][1]=0, and delete the series device matrix R s The i′th row element in the , go to step 7), otherwise set device c = c′, Return to step 5); 7) Determine whether i<K s -1, if yes, set i=i+1 and return to step 2), if no, obtain the set of all series devices as the series device identification result; S3: Use the following method to identify parallel devices: 1) Set row number m=0; 2) Determine whether all values ​​in the mth row of the device-node matrix S are all 0, if so, proceed to step 7), otherwise proceed to step 3); 3) Let row number m′=m+1; 4) Determine whether the row vector of the mth row and the row vector of the m+1th row in the device-node matrix S are the same. If so, add the device corresponding to the m+1th row in the device-node matrix S to the parallel device set of the device corresponding to the mth row, and set all the data of the m+1th row in the device-node matrix S to 0, otherwise do nothing; 5) Determine whether m′<M-1, if so, set m′=m′+1 and return to step 4), otherwise go to step 6); 6) Determine whether the parallel device set of the device corresponding to the mth row in the device-node matrix S is empty. If so, directly proceed to step 7); otherwise, add the device corresponding to the mth row to its parallel device set, and then proceed to step 7); 7) Determine whether m < M-1, if so, set m = m + 1, and return to step 2), otherwise, take all the parallel device sets that are not empty as the parallel device identification results; S4: According to actual conditions, a device is selected from each series device set and parallel device set as a representative device, and the failure of the device is regarded as an equivalent failure of the entire device set to achieve equivalent failure compression.

2. The method for compressing series-parallel equivalent faults of smart meter integrated circuits according to claim 1, characterized in that: The specific method of selecting the representative device in step S4 is: the failure probability of the statistical device is γ, the fault injection cost of the device failure is obtained and normalized to the range of [0,1], the normalized fault injection cost is recorded as y, and the comprehensive score of the device is calculated using the following formula: score=λ1×(1-γ)+λ2×y Among them, λ1 and λ2 are preset weights; The device with the smallest comprehensive score is selected from the device set as the representative device.

Citation Information

Patent Citations

  • Method for testing virtual failures of intelligent ammeter based on simulation

    CN103698734A

  • Rapid analysis and calculation method for reliability indexes of complex power distribution network

    CN108921725A

  • Power distribution network fault positioning method based on virtual injection current ratio and two-stage reconstruction

    CN114895140A