1. Technical Field
The present application is related to simulation systems for circuits, especially to a simulation system and method for generating equivalent circuits compatible with HSPICE.
2. Description of Related Art
S-parameters are widely used in channel models of printed circuit boards (PCB). Using measuring instruments, such as network analyzer or full-wave type field solver software, such as HFSS of Ansoft Inc., S-parameters can be obtained for a channel system, and an equivalent full wave model for the channel system can also be obtained.
HSPICE, is a circuit simulation software developed by Synopsys Inc.; it uses Inverse Fourier Transform (IFT) to predict behavior of S-parameters in the time-domain. When S-parameters are combined with a system circuit, time-domain simulation of the system circuit will cost considerable time and delay the development of new products. Furthermore, S-parameters do not correspond to the passivity of circuits, and cause problems in convergence of time-domain solution of the simulation circuit.
In this embodiment, the equivalent circuit simulation system 12 includes an acquisition module 121, a parameter check module 122, a parameter generation module 123, and an equivalent circuit generation module 124. The storage device 10 may be a memory system of the computer 1. The modules 121-124 may comprise computerized code in the form of one or more programs that are stored in the storage device 10. The computerized code includes instructions that are executed by the at CPU 11 to provide functions for modules 121-124. Modules described here refer to a section of a computer program, which is able to perform particular functions.
The acquisition module 121 is configured for reading N-port network parameter data compatible with Touchstone File format in the storage device 10, and obtaining S-parameter matrixes in the N-port network parameter. The N-port network system shown in
The parameter check module 122 checks if all S-parameters in the S-parameter matrix satisfy passivity, and performs an interpolation algorithm to supplement S-parameters with passivity when some S-parameters do not satisfy passivity. Passivity is a property describing behavior of passive components, such as resistors, inductors, and capacitors, which only consume energy instead of having power gain.
The function generation module 123 is configured for generating numbers of pole-residue, times for recursion and a tolerant system error of a rational function f(S) creating S-parameters. The tolerant system error is a maximum error allowed to exist in a simulation equivalent circuit, represented by the following rational function:
Wherein, the ƒ(s) is a continuation function, rm is a residue, and pm is a pole. The function generation module 123 increases accuracy of the rational function ƒ(s) by setting numbers of pole-residue and times for recursion of the interpolation algorithm.
The equivalent circuit generation module 124 is configured for generating a rational function matrix composed with S-parameters by performing a vector fitting algorithm, and generating an equivalent circuit compatible with HSPICE format based on the generated rational function matrix. The equivalent circuit generation module 124 is also configured for determining if a root mean square (RMS) of the error of the rational function matrix is less than selected system errors, and increasing the numbers of pole-residue to perform vector fitting when the system error is more than the RMS of the error of the rational function matrix.
In block S21, the acquisition module 121 reads Touchstone files of the N-port network, which includes parameters in frequency domain and S-parameters of electronic components in the N-port network from the storage device 10. The Touchstone file is a standard format for stored data, stipulated by IBIS Associates. In block S22, the acquisition module 121 obtains S-parameter matrix from Touchstone file data in the N-port network system. The N-port network system shown in
In block S23, the parameter check module 122 checks if all S-parameters satisfy passivity. If the S-parameters in the S-parameter matrix do not satisfy passivity, the block S24 is performed, otherwise, the block S25 is performed.
In block S24, the parameter check module 122 performs interpolation algorithm to supplement S-parameters satisfied with passivity. If S-parameters do not have passivity, the S-parameters of all points in the frequency domain of electronic components should satisfy the formula (1) shown below.
I−SH(s)S(s)>0 (1)
Wherein I is an identity matrix, s=jw, H is a conjugate transpose, also known as Hermitian transpose. Formula (1) filters reference points in the frequency domain of the electronic components, which do not satisfy passivity, and interpolation algorithm supplements passivity of S-parameters before vector fitting is performed.
In block S25, the function generation module 123 defines numbers of pole-residue, times for recursion, and system errors of the rational function f(s). The rational function f(s) is represented by formula (2).
Where f(s) is a continuation function, rm is a residue, and pm is a pole. The function generation module 123 increases accuracy of the rational function ƒ(s) by setting numbers of pole-residue and times for recursion of the interpolation algorithm.
In block S26, the equivalent circuit generation module 124 generates a rational function matrix composed of S-parameters by performing a vector fitting algorithm based on numbers of pole-residue. In this embodiment, after the parameter check module 122 checks passivity of S-parameters, the S-parameter matrix of the N-port network system is represented by formula (3):
The equivalent circuit generation module 124 performs vector fitting on each element of the above formula (3), and obtains a rational function matrix represented by the following formula (4).
In block S27, the equivalent circuit generation module 124 determines if the RMS of the rational function matrix is less than the determined system error. In block S28, if the RMS error is larger than the system error, the equivalent circuit generation module 124 returns to block S26 to perform vector fitting. In block S29, if the RMS error is less than the tolerant error of the system, the equivalent circuit generation module 124 generates an equivalent circuit compatible with HSPICE corresponding to the rational function matrix.
The relationship among the incident wave a, the reflective wave b, the port voltage V and the port current I can be represented by formula (8):
The relationship among voltage, current and S parameters can be obtained by formula (7):
I=Z0−1V−Z−1/2SZ01/2(Z0−1V+1) (7)
Formula (8) can be obtained by substituting the rational function matrix formula (4) into formula (7):
An equivalent circuit shown in
The residue of Ŝij(s) can be represented as real parts and complex parts in formula (11):
Ŝij(s)=Ŝij(s)+Ŝij(s)+ki, j+sei, j (11)
Ŝrij(s) and Ŝcij(s) can be represented by formula (12):
cvi, j≦0 for v≦V+, cvi, j<0 for v>V+
Where U+2V=M, pui, j>0, avi, j>0, bvi, j>0, bvi, j>0, dvi, j>0.
Gij Vi gnd LAPLACE {tilde over (V)}j gnd k0ij, k1ij, . . . , kM+1ij/d0ij, d1ij, . . . , dMij
Wherein k and d can be obtained by the following formula (9):
The equivalent circuit generated by the circuit simulation system and method as disclosed is compatible with HSPICE by using N-port network system simulation, avoids complicated Inverse Fourier Transform operations, and increases performance of the equivalent simulation circuits. Furthermore, the present application filters S-parameters in frequency domain without passivity, and solves diverging problems in equivalent circuits.
While the disclosure has been described by way of example and in terms of preferred embodiment, it is to be understood that the disclosure is not limited thereto. To the contrary, it is intended to cover various modifications and similar arrangements (as would be apparent to those skilled in the art). Therefore, the scope of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.
Number | Date | Country | Kind |
---|---|---|---|
99118422 A | Jun 2010 | TW | national |
Number | Name | Date | Kind |
---|---|---|---|
6998833 | Wang et al. | Feb 2006 | B2 |
20030065498 | Bois et al. | Apr 2003 | A1 |
20070005325 | Gong et al. | Jan 2007 | A1 |
20070038428 | Chen | Feb 2007 | A1 |
20090171604 | Lin et al. | Jul 2009 | A1 |
Entry |
---|
Adam Lamecki, NPL, “Equivalent SPICE Circuits with Guaranteed Passivity From Nonpassive Models”, IEEE, Mar. 2007. |
Mohamed Abdel-Rahman, NPL, “Two-Layer Network Equivalent for Electromagnetic Transients”, IEEE, Oct. 2003. |
Agilent Technologies, NPL, “Broadband SPICE Model Generator”, May 2007. |
Bjorn Gustavsen, NPL, “Fast Passivity Enforcement for S-Parameter Models by Perturbation of Residue Matrix Eigenvalues”, Feb. 2010. |
Number | Date | Country | |
---|---|---|---|
20110301923 A1 | Dec 2011 | US |