S parameter compression method

Through the compression algorithm of one-inversion and row-sequence permutation, the S parameter compression process is simplified, the high calculation cost problem in the prior art is solved, and efficient S parameter compression is achieved.

CN118921069APending Publication Date: 2024-11-08EMPYREAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411075878.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

The prior art requires two matrix inversions during the S parameter compression process, resulting in high calculation costs, especially when there are many ports, which are inefficient.

Method used

Through a one-inverse compression algorithm, combined with row-column permutation and corresponding calculation models, matrix operations are simplified, the number and scale of matrix multiplication are reduced, and the efficient compression of S parameters is achieved.

Benefits of technology

The two inversion processes required in the prior art are simplified to one inversion, reducing the number and scale of matrix multiplication, and significantly improving the efficiency of S parameter compression.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118921069A_ABST
    Figure CN118921069A_ABST
Patent Text Reader

Abstract

The invention discloses an S parameter compression method. The method comprises the following steps: inputting an S parameter matrix needing to be compressed, a port set needing to be compressed and a compression type; performing row and column permutation on the S parameter matrix according to the set to obtain a permutated S parameter matrix; and compressing the S parameter by adopting a corresponding calculation model according to the S parameter matrix and the compression type after replacement. According to the compression method provided by the invention, the process of two-time inversion in the existing S parameter compression algorithm is simplified to one-time inversion, and meanwhile, the number of times and scale of matrix multiplication are reduced, so that the S parameter compression efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of EDA (electronic design automation) device modeling, and in particular to a S parameter compression method. Background Art

[0002] S parameters are widely used in modeling passive devices, such as inductors, capacitors, or transmission lines. The electrical characteristics of multi-port passive devices can be described by S parameter matrices. In circuit simulation, not all ports of passive devices are necessarily connected to other devices. In actual circuits, it is often seen that most ports of a passive device are grounded or floating. The voltage or current characteristics of these ports are known quantities, and people do not pay attention to the electrical characteristics of these ports.

[0003] In order to reduce the amount of calculation in circuit simulation, the ports of the device can be compressed, that is, those floating or grounded ports can be removed. At the same time, in order not to change the device characteristics, it is also necessary to adjust the S parameters of the remaining ports so that the electrical characteristics of the compressed ports are exactly the same as those before compression.

[0004] If it is a compressed grounded port, you need to convert the original S parameters into Y parameters, then delete the rows and columns corresponding to the port that needs to be compressed, and finally convert the compressed Y parameters back into S parameters.

[0005] Assuming that the passive device has n ports and the characteristic impedance of each port is a real number, formula (1) converts S parameters to Y parameters:

[0006] Y=G -1 (SZ0+Z0) -1 (IS)G (1)

[0007] Here S and Y are the S parameter and Y parameter matrices of size n×n, respectively. I is the n×n unit matrix. Z0 is the characteristic impedance matrix, which is a diagonal matrix with the main diagonal being the characteristic impedance of each port, in the form:

[0008]

[0009] Here i , i = 1, ..., n is the characteristic impedance of each port. The G matrix is ​​closely related to Z0, and it is also a diagonal matrix, which is defined as:

[0010]

[0011] After deleting the rows and columns corresponding to the ground ports in the Y parameter, its dimension is reduced to Assume its dimension is m. Then the compressed S parameter matrix is

[0012]

[0013] and Corresponding to the compressed G matrix and Z0 matrix, that is, the matrix in which the rows and columns corresponding to the ground ports are deleted from the G and Z0 matrices, both have dimensions of m.

[0014] It can be seen that S-parameter compression of the grounded port requires two matrix inversions.

[0015] If you want to compress floating ports, you need to convert the original S parameters into Z parameters, then delete the rows and columns corresponding to the ports that need to be compressed, and finally convert the compressed Z parameters back into S parameters.

[0016] When the characteristic impedance is a real number, the formula for converting S parameters to Z parameters is:

[0017] Z=G -1 (IS) -1 (S+I)G -1 (3)

[0018] Here Z is the n×n Z parameter matrix.

[0019] After deleting the rows and columns corresponding to the floating ports in the Z parameter matrix, its dimension is reduced to Assume its dimension is m. Then the compressed The parameter matrix is:

[0020]

[0021] and Corresponding to the compressed G matrix and Z0 matrix, that is, the matrix of G and Z0 matrices with the rows and columns corresponding to the floating ports deleted, both have dimensions of m.

[0022] It can be seen that the entire process of S-parameter compression for floating ports also involves two matrix inversions.

[0023] From the above discussion, we can see that each S-parameter compression requires two matrix inversions, which will result in a high computational cost for the S-parameter compression process, especially when the number of S-parameter ports is large. Summary of the invention

[0024] In order to solve the defects of the prior art, the purpose of the present invention is to provide an S parameter compression method, which can complete the S parameter compression through one inverse compression algorithm. The method also reduces the number and scale of matrix multiplications in the S parameter compression process, thereby improving the efficiency of S parameter compression.

[0025] In order to achieve the above object, the present invention provides an S parameter compression method, comprising:

[0026] Input the S parameter matrix to be compressed, the port set to be compressed, and the compression type;

[0027] Performing row and column permutations on the S parameter matrix according to the set to obtain a permuted S parameter matrix;

[0028] According to the replaced S parameter matrix and the compression type, the corresponding calculation model is used to compress the S parameters.

[0029] Furthermore, the step of compressing the S parameters using a corresponding calculation model according to the replaced S parameter matrix and the compression type further includes:

[0030] For the compression type of compressing the ground port, the calculation model used is:

[0031]

[0032] For the compression type of compressing floating ports, the calculation model used is:

[0033]

[0034] in, is the compressed S parameter matrix, The interaction matrix element corresponding to the non-compressed port in the original S parameter matrix is: The interaction matrix element corresponding to the compression port, Corresponding to the interaction matrix element between the non-compressed port and the compressed port, Yes 22 Take the inverse, It is V 22 Take the inverse, where I k is the k×k identity matrix, where k is the number of compression ports.

[0035] Furthermore, the compression type includes: compressing the grounded port and compressing the floating port.

[0036] Furthermore, the port set that needs to be compressed is represented by Ω={i1,i2,…,i k}, where i p Represents the port number, p = 1, 2, ..., k, where k represents the number of ports that need to be compressed.

[0037] Furthermore, the step of performing row and column permutations on the S parameter matrix according to the set to obtain a permuted S parameter matrix further includes:

[0038] According to the port number that needs to be compressed in the set, the rows corresponding to the port number in the S parameter matrix are replaced after the remaining rows;

[0039] The columns corresponding to the port numbers in the S parameter matrix are replaced after the remaining columns.

[0040] To achieve the above-mentioned purpose, the present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor is used to execute the computer program stored in the memory to implement the S parameter compression method as described above.

[0041] To achieve the above object, the present invention further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is loaded and executed by a processor to implement the S parameter compression method as described above.

[0042] The S parameter compression method provided by the present invention has the following beneficial effects compared with the prior art:

[0043] By permuting the rows and columns of the S parameter matrix, the row and column positions of the matrix elements corresponding to the compression port are all at the back. According to the permuted S parameter matrix and the type of the compression port, the corresponding compression calculation model is used to obtain the compressed S parameters. The process of two inversions required in the existing compression algorithm is simplified to one inversion, and the number and scale of matrix multiplications are reduced, thereby improving the efficiency of S parameter compression.

[0044] Other features and advantages of the present invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0046] Figure 1 is a flow chart of a method for compressing S parameters according to an embodiment of the present invention;

[0047] Figure 2 FIG. 4 is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0048] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0049] Embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments of the present invention are only for exemplary purposes and are not intended to limit the scope of protection of the present invention.

[0050] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0051] It should be noted that the modifications of "one" and "plurality" mentioned in the present invention are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more". "Plurality" should be understood as two or more.

[0052] Figure 1 The flow chart of the S parameter compression method according to the embodiment of the present invention is as follows. Figure 1 The implementation of the S parameter compression method of the present invention is further described in detail.

[0053] In step 101, an S parameter matrix to be compressed is input. For a multi-port passive device with grounded or floating ports, the S parameter matrix used to describe the multi-port passive device needs to be compressed to remove the floating and grounded ports to obtain a compressed S parameter matrix, and the electrical characteristics of the S parameter ports after compression are the same as before compression.

[0054] In an embodiment of the present invention, the S parameter matrix to be compressed can be directly provided by a user, or read from a given file / storage module, in which the S parameter matrix data to be compressed is stored as an input condition.

[0055] For example, the S parameter matrix that needs to be compressed is:

[0056]

[0057] This is an S parameter of a 4-port network, and the dimension of the corresponding S parameter matrix is ​​n = 4. The S parameter targeted by the compression method of the present invention must satisfy reciprocity, so the S parameter matrix is ​​a symmetric matrix.

[0058] In step 102, a port set to be compressed is input, wherein the port set includes floating ports and / or grounded ports. The set needs to be provided by the user as one of the input conditions.

[0059] In the embodiment of the present invention, the ports to be compressed are recorded as a port set Ω = {i1, i2, ..., i k}, where: i p ,p=1,2,…,k,i p Indicates the port number, which is used to distinguish the ports that need to be compressed (hereinafter referred to as compressed ports, including floating ports and grounded ports), and k indicates the number of ports that need to be compressed. For example, the first and fourth ports of the above four ports are floating ports or grounded ports, and the first and fourth ports need to be compressed, then Ω={1,4}, k=2.

[0060] In step 103, the characteristic impedance matrix of all ports is input and the compression type is obtained at the same time. The information of the characteristic impedance matrix and the compression type is provided by the user as one of the input conditions.

[0061] In the embodiment of the present invention, the characteristic impedance matrix Z0 is obtained according to the characteristic impedance of all ports (compression ports and non-compression ports described by the S parameter matrix), and Z0 is a diagonal matrix, and its main diagonal elements are the characteristic impedances of each port. For example, if the characteristic impedance of each port is 50Ω, the characteristic impedance matrix Z0 corresponding to each port and its related matrix G are as follows:

[0062]

[0063] According to the characteristic impedance matrix Z0 and the correlation matrix G, the corresponding existing S-parameter compression algorithm can be used to compress the S parameters and compare them with the S parameters compressed by the method of the present invention.

[0064] If the port to be compressed in the S parameter matrix is ​​a ground port, the compression type is to compress the ground port; if the port to be compressed in the S parameter matrix is ​​a floating port, the compression type is to compress the floating port.

[0065] In step 104, the S parameter matrix is ​​permuted in rows and columns to obtain a permuted S parameter matrix, in which the matrix elements corresponding to the compression ports are positioned at the rear.

[0066] In an embodiment of the present invention, according to the ports that need to be compressed, the rows and columns of the S parameter matrix are exchanged, and the rows and columns of the matrix elements corresponding to the non-compressed ports are arranged forward, and the rows and columns of the matrix elements corresponding to the compressed ports are arranged backward. After the permutation, the matrix elements corresponding to the compressed ports in the S parameter matrix are positioned at the back, that is, the row and column numbers of the matrix elements corresponding to the compressed ports are greater than the row and column numbers of the matrix elements corresponding to the non-compressed ports.

[0067] In this embodiment, according to the port set Ω={1,4}, it is determined that the port numbers to be compressed are 1 and 4, and the row and column numbers of the corresponding S parameter matrix are 1 and 4, while the row and column numbers of the corresponding S parameter matrix of the ports not to be compressed are 2 and 3. First, rows are swapped, that is, the 1st and 4th rows in the S parameter matrix are swapped to the back of the 2nd and 3rd rows, so that the rows of the compressed S parameter matrix correspond to the rows of the original matrix 2, 3, 1, 4.

[0068] Original S parameter matrix (before exchange)

[0069]

[0070] After row swap

[0071]

[0072] Then, we swap the columns again, placing columns 1 and 4 behind columns 2 and 3. We get the final permuted S parameter matrix:

[0073]

[0074]

[0075] at this time Still maintaining symmetry.

[0076] In the embodiment of the present invention, it is assumed that the permuted S parameter matrix is as follows:

[0077]

[0078] here is an m×m matrix, corresponding to the interaction matrix element of the non-compressed port in the original S parameters, m=nk. is a k×k matrix corresponding to the interaction matrix elements of the compressed ports, which are the ports in the compressed port set Ω, except that after permutation They are moved to the back and their new serial numbers are m+1, m+2,…, n. is an m×k matrix, corresponding to the interaction matrix elements between the non-compressed port and the compressed port. Since the S parameters satisfy reciprocity,

[0079]

[0080] The number of ports not participating in S parameter compression is m=nk=2.

[0081] S parameter matrix after permutation sorting get is an m×m matrix

[0082]

[0083] is an m×k matrix

[0084]

[0085] Due to symmetry,

[0086] is a k×k matrix

[0087]

[0088] In step 105, the compression type is determined.

[0089] In step 106, the S parameters are compressed using a corresponding calculation model according to the replaced S parameter matrix and the compression type.

[0090] In the embodiment of the present invention, if the compression type is to compress the ground port, the S parameter after compression is:

[0091]

[0092] Here the intermediate matrix Yes 22 Take the inverse. k is the k×k identity matrix.

[0093] If the compression type is to compress the floating port, the S parameters after compression are:

[0094]

[0095] here It is V 22 Take the inverse. k is the k×k identity matrix.

[0096] In this embodiment, the compression type of the above ports 1 and 4 is to compress the ground port. Therefore, according to formula (7) and the above matrix expressions, the compressed S parameter matrix can be calculated as follows:

[0097]

[0098] In the embodiment of the present invention, the relative error between the compressed S parameter matrix obtained by the existing method and the compressed S parameter matrix obtained by the present method is defined as:

[0099]

[0100] Here norm(·) is the norm of the vector. err represents the compressed S parameter obtained by the conventional method. And the compressed S parameters obtained by this method In this embodiment, err = 3.3 × 10 -14 , indicating that the difference between the two is equivalent to the machine precision.

[0101] In the embodiment of the present invention, for formulas (7) and (8), the S parameters to be compressed should satisfy reciprocity, and the characteristic impedance of each S parameter port is a real number, and the characteristic impedance of each port can be different. For complex impedance, the form of formulas (7) and (8) will change, which is not within the scope of this patent.

[0102] Compared with the prior art, the S parameter compression method of the present invention simplifies the process of two inversions required in the existing compression algorithm to one inversion, while reducing the number and scale of matrix multiplications, greatly improving the efficiency of S parameter compression.

[0103] In an embodiment of the present invention, an electronic device is also provided. Figure 2 Schematic diagram of the structure of an electronic device according to an embodiment of the present invention. Figure 2 As shown, the electronic device of the present invention includes a processor 201 and a memory 202, wherein:

[0104] The memory 202 stores a computer program. When the computer program is read and executed by the processor 201, the computer program executes the steps in the embodiment of the S parameter compression method described above.

[0105] In an embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, wherein the computer program is configured to execute the steps in the above-mentioned S parameter compression method embodiment when running.

[0106] In this embodiment, the above-mentioned computer-readable storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.

[0107] Those skilled in the art can understand that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention is described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions recorded in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for compressing S parameters, characterized in that: The following steps are involved: Input the S parameter matrix to be compressed, the port set to be compressed, and the compression type; Performing row and column permutations on the S parameter matrix according to the set to obtain a permuted S parameter matrix; According to the replaced S parameter matrix and the compression type, the corresponding calculation model is used to compress the S parameters.

2. The S parameter compression method according to claim 1, characterized in that: The step of compressing the S parameters using a corresponding calculation model according to the replaced S parameter matrix and the compression type further includes: For the compression type of compressing the ground port, the calculation model used is: For the compression type of compressing floating ports, the calculation model used is: in, is the compressed S parameter matrix, The interaction matrix element corresponding to the non-compressed port in the original S parameter matrix is: The interaction matrix element corresponding to the compression port, Corresponding to the interaction matrix element between the non-compressed port and the compressed port, Yes 22 Take the inverse, It is V 22 Take the inverse, where I k is the k×k identity matrix, where k is the number of compression ports.

3. The S parameter compression method according to claim 1, characterized in that: The compression types include: compressing the grounded port and compressing the floating port.

4. The S parameter compression method according to claim 1, characterized in that: The port set that needs to be compressed is represented by Ω={i1,i2,…,i k }, where i p Represents the port number, p = 1, 2, ..., k, where k represents the number of ports that need to be compressed.

5. The S parameter compression method according to claim 1, characterized in that: The step of performing row and column permutations on the S parameter matrix according to the set to obtain a permuted S parameter matrix further comprises: According to the port number that needs to be compressed in the set, the rows corresponding to the port number in the S parameter matrix are replaced after the remaining rows; The columns corresponding to the port numbers in the S parameter matrix are replaced after the remaining columns.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: The processor is used to execute the computer program stored in the memory to implement the S parameter compression method described in any one of claims 1-5.

7. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, which is loaded and executed by a processor to implement the S parameter compression method according to any one of claims 1 to 5.